Searching txt.sour.is

Twts matching #reading
Sort by: Newest, Oldest, Most Relevant

設計模式 in Go: State
行爲模式旨在解決對象間通信和交互相關的問題,專注於定義那些複雜到無法靜態設計的協作策略,這些協作策略使得程序可以在運行時動態地進行職責派遣以實現更好的擴展。今天我們開始第 4 個行爲模式的學習 —— State Pattern(狀態模式)。問題背景:———當一個對象的行爲需要根據其內部狀態的變化而變化時,通常的做法是使用 if-else 語句來處理不同的情況。然而,隨着狀態和行爲數量的 ⌘ Read more

⤋ Read More

golang 新一代標準日誌庫 slog
log/slog 是 Go 1.21 引入的一個新的日誌記錄包,旨在提供比傳統 log 包更靈活和現代化的日誌功能。它支持結構化日誌、可配置的日誌級別、靈活的日誌輸出格式等功能,彌補了舊版 log 包的不足。對比舊版 log 包 | 特性 | log | slog || — | — | — || 日誌級別支持 | 無 | 內置支持(Debug、Info 等) || 結構化日誌 | ⌘ Read more

⤋ Read More

Go 語言中嘗試延遲執行一個函數
Go 編程語言提供了豐富的特性,使得像 Google 這樣的大型公司能夠高效地進行軟件開發。它爲許多雲服務提供商和分佈式服務的底層基礎設施提供支持,同時保持了簡單易學的特點。在 Go 中,我們可以根據需要使用指針類型和值類型。在本文中,我們將探討一個有趣的使用場景。函數調用中的切片和映射傳遞————-通常,在 Go 中調用函數時,切片(slice)和映射(map)並不是通過指針傳遞 ⌘ Read more

⤋ Read More

用 Option 模式和對接層簡化和管理 Go 項目的外部 API
在項目開發實現功能需求的過程中不可避免的要與外部第三方系統進行交互,這些交互大部分是通過請求 API 接口來完成的。前幾節提到但一直沒帶大家用代碼過一遍的 Lib 層就是負責寫第三方對接邏輯的,通過把跟第三方對接的邏輯限制在 Lib 層裏,讓項目的其他部分不需要關注第三方的邏輯,從而達到每部分都職責分明,這樣項目的代碼多起來後纔不會變得臃腫和雜亂。不過在演示 Lib 層的使用前我們需要先一起給項目 ⌘ Read more

⤋ Read More

Go 源碼是如何解決測試代碼循環依賴問題的?
最近我寫了一篇講解 context 包源碼的文章《Go 併發控制:context 源碼解讀》,在閱讀源碼的過程中,我在 context 包測試代碼中發現了一個解決循環依賴的小技巧,在此分享給大家。xtest.go 解決循環依賴context 包源碼目錄結構如下: https://github.com/golang/go/tree/go1.23.0/src/context$ tree contex ⌘ Read more

⤋ Read More

Go 語言五種實現 broadcaster 的方法,你喜歡哪一種?
昨天看到 Jaana Dogan 創建了一個 broadcaster 的庫, 話說美女 Jaana Dogan 又回到了 Google 了麼。她的實現我們就當做 broadcaster 的第一個實現吧。什麼是 broadcaster?就是村口的大喇叭,一播音,全村都知道了。Jaana Dogan 實現的這個 broadcaster 只有通知的功能,沒有傳遞消息,也不能重用。我們就以這個庫爲基準,看 ⌘ Read more

⤋ Read More

Cake Wallet adds ‘full support’ for XMR hardware wallets via Ledger
Cake Labs1 has released Cake Wallet v4.22.02 with full support for Monero hardware wallets via Ledger3 (Flex, Stax, and Nano X) on Android and iOS:

This release of Cake Wallet includes full Monero hardware wallet support via Ledger, including USB + Bluetooth on Android and Bluetooth on iOS. It also contains a bevy of bug fixes and quality of life improvements, including proper seed … ⌘ Read more

⤋ Read More

Mist Makes Downloading MacOS Installers & Firmwares Easy
Many Mac users, IT staff, and systems administrators like to have on hand full MacOS installers, for both current and prior versions of MacOS system software. Additionally, many advanced Mac users and IT professionals need to have readily available MacOS IPSW firmware files for performing restores to Apple Silicon Macs, for virtual machines, even for … [Read More](https://osxdaily.com/2024/12/17/mist-download-macos-installer-fir … ⌘ Read more

⤋ Read More

Beta 1 of iOS 18.3, MacOS Sequoia 15.3, iPadOS 18.3, Released for Testing
Apple has released the first beta versions of iOS 18.3, MacOS Sequoia 15.3, and iPadOS 18.3, for users enrolled in the beta testing programs for Apple system software. The upcoming updates are now in beta testing, and are expected to focus on bug fixes and security enhancements as usual. Some new features are likely to … [Read More](https://osxdaily.com/2024/12/17/beta-1-of-ios-18-3-macos- … ⌘ Read more

⤋ Read More

Kubestronaut in Orbit: David Mukuzi
Get to know David This week’s Kubestronaut in Orbit, David Mukuzi, is a DevOps Engineer in Nairobi, Kenya. David is driven by a deep-rooted enthusiasm for continuous learning and exploration of emerging technologies. He enjoys working… ⌘ Read more

⤋ Read More

NVIDIA Launches Jetson Orin Nano Super Developer Kit with 67 TOPS AI Performance
NVIDIA has introduced the Jetson Orin Nano Super Developer Kit, a compact generative AI platform designed to enhance performance while remaining affordable. This new iteration delivers up to 67 TOPS of AI performance, offering a 1.7x improvement over its predecessor. It supports a wide range of generative AI models, including vision transformers, large language models, […] ⌘ Read more

⤋ Read More

iOS 18.2: Everything You Can Do With ChatGPT Integration
With iOS 18.2, Apple introduced ChatGPT integration with Apple Intelligence to expand your iPhone’s AI capabilities in several ways. When enabled, Siri can leverage ChatGPT for complex queries about photos and documents, and the integration also extends to Writing Tools for text and image generation, while Visual Intelligence helps identify objects and places using your iPhone’s camera.

![](https://images.macrumors.com/article-new/2024/12/iOS … ⌘ Read more

⤋ Read More

Managing large-scale Redis clusters on Kubernetes with an operator – Kuaishou’s approach
Member post originally published on KubeBlocks by Yuxing Liu As a popular short-form video application, Kuaishou relies heavily on Redis to deliver low-latency responses to its users. Operating on private cloud infrastructure, automating the management of… ⌘ Read more

⤋ Read More

Docker 2024 Highlights: Innovations in AI, Security, and Empowering Development Teams
We look at Docker’s 2024 milestones and innovations in security, AI, and more, as well as how we helped teams build, test, and deploy more easily and quickly than ever. ⌘ Read more

⤋ Read More

The Planet’s Largest Iceberg Is on the Loose
Margherita Bassi,  Staff Writer  -  Gizmodo

_Stephan: Climate change is significantly altering the poles. An iceberg bigger than Rhode Island – 1,418-square-miles – has broken free in the Antarctic and is now floating in the Southern Ocean about halfway between the southeast coast of Argentina and the Antarctic continent but more than 1,200 miles east.    It will pass by South Georgia Island a British overseas territory inhabited only … ⌘ Read more

⤋ Read More

Bernie Sanders Says Defeating Oligarchy Now Most Urgent Issue
Jon Queally,  Managing Editor  -  Common Dreams

_Stephan: I was a Bernie Sanders delegate for the 2020 Presidential election and I wish he had won, we would be a very different much better country if he had. Now he is crying out to get the attention of Americans exclaiming about the demise of democracy in the United States. What surprises me is the docile response of Americans. I have been studying how … ⌘ Read more

⤋ Read More

UK Government Announces Plan for 95% Green Energy by 2030
Cristen Hemingway Jaynes,  Staff Writer  -  EcoWatch

Stephan: The science on the negative effects of carbon energy on Earth’s wellbeing is irrefutable. But still, the United States under the worst President in the country’s history is preparing to emphasize its commitment to carbon energy. In contrast the rest of the world’s democracies are going in the opposite direction. Here is the latest from the U.K.

![ … ⌘ Read more

⤋ Read More

As Trump escalates war on facts, scientists warn “we are going to get screwed”
Matthew Rozsa,  Staff Writer  -  Salon

_Stephan: So many Americans, including a large number of Republican Congress members, led by Trump, are so poorly educated that they have become convinced environmental science is some kind of conspiracy, not the actual truth. Every scientist I know, including myself, sees this Trumpian war on facts as an ongoing catastrophe for Amer … ⌘ Read more

⤋ Read More

用 Go 實現 TCP 連接的雙向拷貝
在做網絡編程時,我們常常會遇到各種性能問題,尤其是在面對大量連接和高併發的情況下。今天,我就來聊聊如何用 Go 實現一個高效的 TCP 連接的雙向拷貝機制,幫助你減少延遲、提高吞吐量。這篇文章既適合對網絡編程有一定了解的開發者,也適合那些想要進一步提升性能的程序員。首先,給大家簡要介紹一下 “TCP 連接的雙向拷貝” 是什麼意思。簡單來說,這就是將來自一個連接的數據拷貝到另一個連接,通常這種操作是 ⌘ Read more

⤋ Read More

設計模式 in Go:Prototype
建造模式,處理與創建對象及對象實例化過程相關的問題,通常尋求以分離業務代碼和對象創建邏輯,或將複雜的構造邏輯封裝在可重用組件中的方式。讓我們來探討第四種創建模式——原型模式。問題背景: 我們有一個對象,你要創建它的一個拷貝。您可以採用什麼方法來實現這一點?也許您需要知道該對象所屬的類型,從而能夠創建新的同樣類型的對象,然後將原始對象中每個字段值複製到新對象中。該類包含一些隱藏字段,因此你無法複製 ⌘ Read more

⤋ Read More

asyncgo,純 Go 編寫的異步執行器
Asyncgo[1] 是純用 Go 編寫的零依賴異步任務執行器,優先考慮速度和易用性。特徵–異步任務執行:提交任務以異步執行並檢索結果。 無需手動管理 Goroutine :抽象化管理 Goroutine 的複雜性,並簡化代碼。 工作池管理:Asyncgo 仔細處理工作池創建和任務執行。 正常關閉:確保在關閉工作線程之前完成所有現有任務。 任務取消:支持終端終止任務。 ⌘ Read more

⤋ Read More

設計模式 in Go: Memento
行爲模式旨在解決對象間通信和交互相關的問題,專注於定義那些複雜到無法靜態設計的協作策略,這些協作策略使得程序可以在運行時動態地進行職責派遣以實現更好的擴展。今天我們開始第 3 個行爲模式的學習 —— Memento(備忘錄模式)。問題背景:在我們需要記錄和恢復對象的內部狀態,而又不希望破壞封裝原則時,可以使用備忘錄模式。有時,我們需要在特定時間點保存對象的狀態,並能夠在以後恢復該狀態。然而,直接暴 ⌘ Read more

⤋ Read More

Cuprate Meeting scheduled for 24 December 2024 1800 UTC
The next Cuprate Meeting is scheduled1 to take place on Tuesday, December 24 2024 at 18:00 UTC on IRC-Libera/Matrix2 in the #cuprate channels.

Cuprate is an effort to create an alternative Monero node implementation.

Agenda overview
Greetings
Updates: What is everyone working on?
Project: What is next for Cuprate?
Any other business

The meeting’s moderator should be Boog9003. Consult the Cuprate co … ⌘ Read more

⤋ Read More

Cake Wallet partners with Foundation to develop ‘first 3rd-party app’ for Passport Prime
Cake Wallet1 has announced2 a new partnership with Foundation3 to develop the first 3rd-party app for their recently launched hardware wallet device Passport Prime 4:

Keeping crypto safe can be simple (and sexy!) [..] This means best in-class, open source Monero cold storage in 2025. We’ll also support Prime in Cake Wallet.

Cake is also w … ⌘ Read more

⤋ Read More

[ANN] Monero Hackerspace Survey: Yea or Nay

Besides providing a physical space for collaboration, learning, and creativity among like-minded individuals, a privacy-centric hackerspace could serve as an incubator for the development of Monero-related hardware. [..] Note: This is an independent new initiative not related to MoneroKon or Twister Edward z.s.

Link: https://s.42l.fr/XMRhackerspace

#monerohackerspace:matrix.org ⌘ Read more

⤋ Read More

You know what’s amazing about programming? The power to automate boring or repetitive tasks effortlessly. Renaming hundreds of files, downloading GPX files from Komoot, or updating the visibility of countless statuses on Traewelling – sure, you could do it manually, but why would you, when you can write a quick script to handle it for you? It’s hands down the best life hack I’ve ever discovered! Big thanks to my parents for putting me on this path! ⌘ Read more

⤋ Read More

How to Disable Mail Categories on iPhone in iOS 18.2 & Return to Old Inbox Style
If you have recently opened the Mail app after updating to iOS 18.2 or iPadOS 18.2, you likely discovered that Mail now defaults to a Mail “Categories” view, showing distinct mail category inboxes; “Primary”, “Transactions”, “Updates”, and “Promotions”. Presumably Apple chose to redesign everyones inbox and enable Mail Categories by default on iPhone and iPad … [Read More](https://osxdaily.com/2024/12/16/disable … ⌘ Read more

⤋ Read More

(Updated) Olimex Showcases Development Board Design Based on ESP32-P4 RISC-V SoC
Espressif Systems announced the ESP32-P4 over a year ago. While the chip is not yet available for retail, a prototype development board featuring the chip was recently showcased by Olimex. This board includes multiple interfaces, such as an Ethernet connector and a camera connector, demonstrating its versatile capabilities. The ESP32-P4, initially announced last year, features […] ⌘ Read more

⤋ Read More

Platform Engineering needs Observability: here’s why
Blog post originally published on the Middleware blog by Sri Krishna In the high-stakes environment of Black Friday, e-commerce platforms encounter intense traffic surges that can heavily strain system performance. For example, during Black Friday 2023, online… ⌘ Read more

⤋ Read More

Open-Source Hornet Nest Alarm Panel for Home Assistant and ESPHome
CrowdSupply recently featured the Hornet Nest Alarm Panel, a PoE-enabled security panel that integrates traditional wired alarm systems with modern smart home platforms like Home Assistant. Its open-source design provides flexibility and customization for enhancing home security systems. The panel allows for integration with smart home ecosystems using ESPHome, it supports straightforward configuration, enablin … ⌘ Read more

⤋ Read More

How AI Assistants Can Decode GitHub Repos for UI Writers
Exploring AI-assisted tools for UI writers, we demonstrate how to enhance GitHub PR review workflows to identify user-facing text changes, and offer a step-by-step guide and insights into leveraging LLMs effectively. ⌘ Read more

⤋ Read More

(#rcpphgq) @bender@bender It’s not super important, I tagged you on IRC, but essentially I’m trying to build a tilde (shared linux host) thin …
@bender It’s not super important, I tagged you on IRC, but essentially I’m trying to build a tilde (shared linux host) thingy of some sort 😅 just experimenting with an idea I’ve had a while back. See for example working trivial “Hello World” at http://mbox.blue/~prologic/ – The basic idea is that when you ssh -p 222 user@mbox.b … ⌘ Read more

⤋ Read More

Millions of Taxpayer Dollars Have Subsidized Project 2025 and Climate Denial
Chuck Collins ,  Staff Writer  -  truthout

Stephan: As this report describes, because the bribery of politicians is legal in the United States, and MAGAt billionaires and the corporations they control, have also rigged the nonprofit system, your money and mine is paying for the degradation of our own wellbeing. We are nation defined by corruption.

![](https://www.schwar … ⌘ Read more

⤋ Read More

Texas’ abortion pill lawsuit against New York doctor marks new challenge to interstate telemedicine
,    -  Associated Press | CNN

Stephan: The White male christofascist Republicans that the people of Texas chose to put into office want women to get the message: “You are a subordinate gender that is supposed to be obedient. We control your body, and you better listen and learn that.”

![](https://www.schwartzreport.net/wp- … ⌘ Read more

⤋ Read More

Americans spend more time living with diseases than rest of world, study shows
Maya Yang,  Reporter  -  The Guardian (U.K.)

_Stephan: ”Americans spend more time living with diseases than people from other countries, according to a new study.” What more needs to be said?  To quote from the JAMA paper: “Gains in life expectancy across global populations are recognized as a societal achievement.[1](https://jamanetwork.com/journals/jamanetworkopen/ful … ⌘ Read more

⤋ Read More

UnitedHealth Is Strategically Limiting Access to Critical Treatment for Kids With Autism
Annie Waldman,  Staff Writer  -  ProPublica | G

_Stephan: Another horror story about the American illness profit system and the UnitedHealthcare/Optum conglomerate. I understand why Congress does nothing to remedy this abuse; they are mostly whores owned by illness-profit corporations. What I don’t understand is why millions of Americans voted for … ⌘ Read more

⤋ Read More

La Haute Autorité de Santé veut vous faire payer les transitions de genre d’une minorité bruyante
Ah, enfin : voilà que la Haute Autorité de Santé (HAS) nous offre un nouvel exemple de progrès flamboyant de la société occidentale « pour une totale liberté de pensées cosmiques vers un nouvel âge réminiscent » : cet indispensable organisme administratif envisage dans un projet de recommandations (qu’on pourra ici) un accès gratuit à la t … ⌘ Read more

⤋ Read More

QuartzPro64 RK3588 Developer Board Now Available at $199.99
The QuartzPro64 is a developer board featuring the Rockchip RK3588 system-on-chip . It is designed for applications requiring high-performance computing, extensive connectivity, and flexible expansion options. Initially introduced in 2022, the board is equipped with an octa-core CPU comprising four ARM Cortex-A76 cores running at 2.4 GHz and four ARM Cortex-A55 cores at 1.8 GHz. […] ⌘ Read more

⤋ Read More

Gin 框架怎麼實現驗證請求參數和返回響應數據的函數?
大家好,我是 frank。「Golang 語言開發棧」公衆號作者。01 介紹在使用 Gin 框架開發時,入口函數通常需要支持驗證請求參數和返回響應數據。我們可以將驗證請求參數和返回響應數據整合爲一個通用函數。然後,結合響應數據返回中間件,實現通過一個函數,實現驗證請求參數和返回響應數據 的功能。02 請求參數驗證和返回響應數據首先,我們需要定義一個自定義結構體類型 Response,示例代碼: ⌘ Read more

⤋ Read More

iOS 18.2: Bring Volume Slider Back to iPhone Lock Screen
Apple in iOS 18.2 has reinstated a Lock Screen feature that was unceremoniously nixed from its iPhone OS two years ago, leaving many users wondering why it was taken away in the first place.

Image

The feature in question is the on-screen volume control slider in the Lock Screen media player interface. Prior to 2022, the volume slider was a familiar pr … ⌘ Read more

⤋ Read More

Here’s what happens when the world’s richest man buys the presidency
Sabrina Haake,  Contributing Writer  -  Raw Story

_Stephan: Here is what I think is a very insightful commentary on what is going to happen starting 21 January when the United STates becomes an authoritarian oligarchy instead of a democracy. All the weak-minded Trump voters are about to discover what they have done to themselves as they, and the rest of us, experience the worst and most bia … ⌘ Read more

⤋ Read More

‘Unprecedented risk’ to life on Earth: Scientists call for halt on ‘mirror life’ microbe research
Ian Sample ,  Science Editor  -  The Guardian (U.K.)

Stephan: You’ve probably never heard of “mirror life” microbes. I had heard of them, and read a paper on on this research, but had not understood the threat to all life on Earth they represented. We are about to see if greed trumps the safety of life on this planet.

![](https://www … ⌘ Read more

⤋ Read More

Deepfake Pornography Targeting Members of Congress
,    -  American Sunlight Project

_Stephan: The internet has become a sewer, and unbelievably – to me at least – nearly one in six women members of Congress have deepfake pornography images of themselves floating around social media sites.  I have already done several reports on schoolgirls and their classmates discovering fake nude and fake porn images of themselves; it is a particular problem in the 7th and 8th grades. … ⌘ Read more

⤋ Read More

‘Our big fear’: How Trump’s plan to privatize USPS could have ‘disastrous consequences’
Carl Gibson,  AlterNet Staff Writer  -  Raw Story | AlterNet

_Stephan: Since he took office as Postmaster General, I have been reporting in SR about Louis DeJoy’s destruction of the Postal Service. It is much slower and more expensive than it was when he came into office. I consider it one of the major failures of the Biden administration and the Republica … ⌘ Read more

⤋ Read More

Living together: Reflections on collective living
[A version of this post was initially published on 2022-05-30 (Setting
Orange, the 4 day of Confusion in the YOLD 3188) in my gemlog at:

gemini://gem.hack.org/log/collectives.gmi

It’s been slightly edited and a few photos added.

Posted on the blog on 2024-12-15 02:33 +0100. Later updated with how
Area 41 ended.]

I dreamt about Dial House last night. I’ve never been there, but it
was like I belonged, like I was meant to be th … ⌘ Read more

⤋ Read More

Neat! 👌 I have been hacking on sshbox and refactored it a fair bit to have much more flexible auth methods. In addition I also toyed around w …
Neat! 👌 I have been hacking on sshbox and refactored it a fair bit to have much more flexible auth methods. In addition I also toyed around with the idea of having a shared (free) unix environment like some of the ones around ( whose name eludes me right now 🤦‍♂️), with a couple of key differences and differentiators:

  • The environment you get is actua … ⌘ Read more

⤋ Read More

Living together: Reflections on collective living
[A version of this post was initially published on 2022-05-30 (Setting
Orange, the 4 day of Confusion in the YOLD 3188) in my gemlog at:

gemini://gem.hack.org/log/collectives.gmi

It’s been slightly edited and a few photos added.]

I dreamt about Dial House last night. I’ve never been there, but it
was like I belonged, like I was meant to be there.

Last I heard anything about Dial House they were trying to gather
enough money … ⌘ Read more

⤋ Read More

Trying to get some custom T-shirts made. Ordered my first one with This is fine! – Let’s see what eh quality of the print and T-shirt is befor …
Trying to get some custom T-shirts made. Ordered my first one with This is fine! – Let’s see what eh quality of the print and T-shirt is before I make any more 😅 ⌘ Read more

⤋ Read More

anon1337 proposes bounty for haveno-ts Dart port
anon13371 has proposed a bounty2 for porting the Haveno TypeScript Library 3 to Dart:

Total Bounty: 0 XMR (to date)

No specific details (requirements/deliverables) were provided for this bounty.

To start working on the task yourself, you should make your intentions public by posting a comment in the bounty’s thread.

To increase the bounty you can transfer some XMR to the address posted by the … ⌘ Read more

⤋ Read More

Monero Dev Activity Report - Week 15 2024: 11 PRs, 15 Issues
This weekly report aims to provide a big picture view of Monero development activity, increase community support for existing devs and, hopefully, encourage new contributions.

1 - PRs (11, 6:5:0)

Opened (6)

monero-project/monero:

  • #96121 Update monero-over-tor.sh (XMRZombie)
  • #96152 contrib: force (de)serialization to create params section incase there is none RELEASE
  • #96163 p2 … ⌘ Read more

⤋ Read More

It seems like every app is offering a “Spotify Wrapped”-style yearly review these days. One app where I genuinely find the results fascinating is Träwelldroid, which I use to log my public transport journeys on Träwelling. While the average German drives roughly 10k kilometers per year by car, I traveled approximately 9600 kilometers using public transport, spending a total of 4 days and 8 hours in transit. This is particularly noteworthy since I commuted less frequently this year and didn’t do any interrailing. Sad … ⌘ Read more

⤋ Read More