Searching txt.sour.is

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

利用 Go 操控 Etcd:構建強一致性系統的祕訣
etcd 是一個開源的、高可用的分佈式鍵值(key-value)存儲系統,它主要用來共享配置和服務發現。etcd 由 CoreOS 團隊開發,是以 Go 語言編寫的。etcd 採用了 Raft 協議來處理日誌複製以提供強一致性和高可用性,它成爲很多分佈式系統和雲原生技術(如 Kubernetes)中的基礎組件。etcd 的核心特性包括:簡潔的鍵值存儲:etcd 提供 HTTP/JSON API,允 ⌘ Read more

⤋ Read More

不可思議的快!加速 Docker 中構建 Golang 應用
這些天我在工作中正在進行一個 GoLang 項目。這與我們通常使用的 Java 和 Spring Boot 應用程序有很大不同, 感覺很不錯:)。和我們所有的其他組件一樣, 這個 GoLang 項目也需要被封裝在一個容器中, 才能在 Kubernetes 集羣中執行。所以我編寫了一個 Dockerfile:構建階段FROM golang:1.22.1-alpine AS buildWORKDIR ⌘ Read more

⤋ Read More

6 Useful Apple Watch Tips
Apple Watch is a unique device that has a wealth of features crammed into a small wristwatch. By learning some handy tips and tricks, you can get the most out of your Apple Watch. From preventing accidental input, to customizing the watch face, sending messages, using as a remote control, and more, read along to … Read MoreRead more

⤋ Read More

FinOps for Kubernetes: engineering cost optimization
Community post by Saqib Jan Cloud has given on-demand access to compute resources, but high availability also makes cost a much more dynamic problem to forecast. This reverberates as companies continue to expand their cloud footprints and adopt… ⌘ Read more

⤋ Read More

Total et la tiers-mondisation de la France
Alors que la France se prépare à accueillir prochainement les épreuves des Jeux Olympiques en distribuant de plus en plus largement l’argent gratuit des autres, notamment à ceux qui lui font des clés de bras, on apprend que Total, le groupe pétrolier français, envisage de déplacer sa cotation principale de la Bourse de Paris à […] ⌘ Read more

⤋ Read More

使用 Makefile 輕鬆管理 Go 項目:提高開發效率的利器
一、介紹1、make 介紹make是一個構建自動化工具,會在當前目錄下尋找Makefile或makefile文件 如果存在相應的文件,它就會依據其中定義好的規則完成構建任務 2、Makefile 介紹 藉助Makefile我們在編譯過程中不再需要每次手動輸入編譯的命令和編譯的參數,可以極大簡化項目編譯過程。 我們可以把Makefile簡單理解爲它定義了一個項目文件的編譯規則。 ⌘ Read more

⤋ Read More

Google 孵化了 3 個 Go 安全庫,推薦使用!
大家好,我是煎魚。Google 作爲一家用戶體量很大的企業,有非常多的產品,經常會被黑客攻擊或被拿來練手。因此其設計的產品、編程語言、工具庫等都會要求考慮安全性相關的內容。例如:各種供應鏈攻擊、CWE 等安全的查缺補漏等。我們作爲用戶(使用者),可以 “白嫖” 這些功能實現。直接複用在自家的業務上就可以了。這樣每年在護網上都能省不少勁。三個 Go 安全庫———本次 Google 輸出了 ⌘ Read more

⤋ Read More

Golang 高效的切片拼接和 Go1-22 中新的拼接方法
在 Go 中,切片拼接是一種常見操作,但如果處理不當,可能會導致性能問題或意外的副作用。本文將詳細介紹幾種切片拼接的高效方法,討論它們的優缺點以及適當的使用場景。 基本的方法和其限制使用 append 函數最直接的方法是使用 append 函數,它將一個切片的元素添加到另一個切片的末尾。slice1 := []int{1, 2}slice2 := []int{3, 4}result := app ⌘ Read more

⤋ Read More

[langchaingo] 基於 Hugging Face 構建大模型應用
今天,我們將開始 Golang + LLM 系列的教程,本文將介紹如何在 Hugging Face 上使用 LangchainGo 來實現你的第一個大模型應用!Hugging Face 是什麼?Hugging Face 是一個火爆的人工智能開發社區和平臺,專注於自然語言處理(NLP)領域。該平臺提供了各種各樣的工具和資源,包括預訓練模型、模型庫、數據集、評估指標以及用於開發和部署 NLP 模型的庫 ⌘ Read more

⤋ Read More

Go 語言將 PDF 轉爲 Word ,代碼怎麼實現?
將 PDF 轉換爲 Word 這是一個很常見的功能了,用 Go 語言實現,可以通過以下步驟完成:1 安裝 PDF 轉換工具庫:首先需要使用 Go 語言中的 PDF 轉換庫,比如 pdftoword 或 pdfcpu。你可以使用 Go 的包管理工具(如 go get)來安裝這些庫。2 導入依賴庫:在 Go 項目中導入你選擇的 PDF 轉換庫,並確保正確地導入了所有需要的依賴項。3 加載 PDF 文件 ⌘ Read more

⤋ Read More

LILYGO New T-Panel S3 Lite with 4” LCD and Wireless Connectivity
The T-Panel Lite by LILYGO is a compact ESP32S3-based development board designed for makers and hobbyists who are interested in creating IoT projects with a visual display component. This user-friendly tool provides a rich set of features packed into a small form factor with Arduino and MicroPython support. At the heart of the T-Panel Lite […] ⌘ Read more

⤋ Read More

What do Blue Underlines on Text Mean in Microsoft Edge?
If you use Microsoft Edge as your web browser, whether for free GPT 4 access or and DALL-E use, for cross-platform syncing, or any other reason, you may have noticed that you will often see blue underlined text when you’re typing within the browser. If you’re like me, you’re probably wondering what on earth the … Read MoreRead more

⤋ Read More

Holybro Integrates Pixhawk and NVIDIA Jetson into Advanced Flight Controller Baseboard
Holybro recently introduced the Pixhawk Jetson Baseboard, designed for autonomous vehicle systems. This compact baseboard seamlessly integrates the capabilities of both Pixhawk and NVIDIA Jetson platforms, making it ideal for developers and researchers focused on advanced robotics and unmanned vehicles. According to the product page, the Pixhawk Jetson Baseboard is fully … ⌘ Read more

⤋ Read More

gnet:基於 Go 語言的高性能網絡框架
gnet 是一個基於 Go 語言的事件驅動型網絡框架,其設計宗旨是實現高性能和輕量級。gnet 在底層採用了 epoll 和 kqueue 機制,相較於 Go 語言標準庫 net 在特定場景下有着更好的性能和更低的內存消耗。雖然 gnet 並非旨在取代 Go 語言的 net 庫,但它提供了另一種在 Go 生態系統中構建性能敏感型網絡服務的選擇。通過實現應用層的協議(如 HTTP、RPC、WebSo ⌘ Read more

⤋ Read More

go-money 實現貨幣運算的金標準
在進行金融領域的軟件開發時,貨幣值的精確表示和操作至關重要。由於浮點數帶來的精度問題,傳統的處理方式經常導致數值上的細微誤差。針對這一問題,go-money包提供了基於 Go 語言的解決方案,實現了 Fowler 的貨幣模式。本文將深入解析go-money包,演示其具體的使用方式,並通過豐富的示例讓您掌握如何在 Go 項目中實現精確的貨幣計算。起步:安裝 go-money————- ⌘ Read more

⤋ Read More

What’s a PXM File & How Do You Open It?
File types and file formats can be a bit of a mystery, especially when you stumble into a file that you don’t necessarily recognize. One such case that you may come across is a file that has a .pxm file extension, and if you haven’t heard of a PXM file before you understandably might be … Read MoreRead more

⤋ Read More

M5Stack CoreMP135: A Versatile Linux Industrial Control Host with Advanced Connectivity
M5Stack has launched the CoreMP135, an industrial control host equipped with the STM32MP135 processor. This device is engineered for a diverse range of uses, including industrial automation, smart home systems, IoT edge gateways, multimedia devices, and robot motion control, delivering robust performance and multifunctional capabilities. The CoreMP135 is powered by the S … ⌘ Read more

⤋ Read More

Fixing Apple Watch False Touch & Ghost Touch Issues
Some Apple Watch users have experienced a situation where their Apple Watch seems to respond to phantom touches, which some users have come to call ghost touches. These false touches can happen in a variety of different situations, from the Apple Watch simply being on your wrist and doing nothing out of the ordinary, to … Read MoreRead more

⤋ Read More

The hidden economy of open source software
Member post originally published on Sysdig’s blog by Nigel Douglas The recent discovery of a backdoor in XZ Utils (CVE-2024-3094), a data compression utility used by a wide array of various open-source, Linux-based computer applications, underscores the importance of open-source… ⌘ Read more

⤋ Read More

Open source software in AI and cloud trends to watch in 2024: thoughts from the Netris community
Member post originally published on Netris’s blog Let’s face it: The world of open source software can feel boring – in a good way. Open source has become so pervasive, and so deeply entrenched within modern software stacks… ⌘ Read more

⤋ Read More

L’intelligence artificielle pour tous ?
Malgré une géopolitique internationale toujours plus tendue, malgré les odeurs de crise économique et financière toujours plus fortes, le monde de l’intelligence artificielle continue d’avancer et le précédent billet relatif à ce domaine, pourtant vieux de quelques semaines seulement, semble déjà fort lointain tant les nouveautés se sont accumulées depuis. Ainsi, les questions posées sur […] ⌘ Read more

⤋ Read More

Olimex ESP32-POE2: A Versatile Open Source Hardware PoE IoT Board
Introducing the ESP32-POE2 by Olimex, an evolution of the ESP32-POE board, designed to meet the demands of IoT applications. This iteration boasts enhanced power delivery capabilities, with the ability to provide up to 25W of power to external circuits via Power over Ethernet connections. Key features of the ESP32-POE2 include the ESP32-WROOM-32 module for Wi-Fi […] ⌘ Read more

⤋ Read More

使用 GitHub Actions 構建 Golang PGO
今年 2 月,我宣佈 Dolt 版本現已構建爲配置文件引導優化 (pgo) 二進制文件,利用 Golang 1.20 的強大功能將 Dolt 的讀取性能提高 5.3%。在我宣佈這一消息之前,我們的一位常駐 Golang 專家 Zach 試驗並測試了 Golang 的 pgo 功能,並寫下了他在使用 Dolt 構建後觀察到的性能提升,該配置文件首先針對 Dolt 運行我們的 Sysbench 基準測 ⌘ Read more

⤋ Read More

How to Connect AirPods to a Smart TV
AirPods are extremely popular wireless earbuds, and while most people associate them with the Apple ecosystem, they can be used outside of that too. One common situation that appeals to many people is the idea of connecting AirPods to a smart TV, allowing for the use of the wireless headphones for watching a show, movie, … Read MoreRead more

⤋ Read More

How Katalyst guarantees memory QoS for colocated applications
Member post originally published on Katalyst’s blog In the previous post[1], we introduced Katalyst – a QoS-based resource management system that helps ByteDance improve resource efficiency through colocation of online and offline workloads. In the colocation scenario, memory… ⌘ Read more

⤋ Read More

Erlang Solutions: Technical debt and HR – what do they have in common?
At first glance, it may sound absurd. Here we have technical debt, a purely engineering problem, as technical as it can get, and another area, HR, dealing with psychology and emotions, put into one sentence. Is it possible that they are closely related? Let’s take it apart and see.

Exploring technical debt

What is technical debt, anyway? A tongue-in-cheek definition is that it is code written by someo … ⌘ Read more

⤋ Read More

ADLINK Launches Innovative A380E Graphics Card Featuring Intel Arc GPU
ADLINK Technology Inc. has unveiled the EGX-PCIE-A380E graphics card, integrated with the Intel Arc A380E GPU. This new card is specifically designed to enhance commercial gaming and edge AI applications, supported by compatibility with the OpenVino toolkit. The card leverages the Arc Alchemist architecture and is equipped with 6GB of GDDR6 memory, ensuring high efficiency […] ⌘ Read more

⤋ Read More

使用 Go 語言中的 Buffer 實現高性能處理字節和字符串
在 Go 語言標準庫中,bytes包提供了對 byte slice ([]byte) 的便捷操作,其中Buffer是一個實現了io.Reader和io.Writer接口的可變大小的字節緩衝。我們通常使用Buffer來讀寫數據、處理字符串和字節的過程中實現高性能的操作。Buffer 的使用場景————Buffer在以下場景中特別有用:當需要一個字節緩衝時 進行字符串的高效拼接 ⌘ Read more

⤋ Read More

Golang - Jaeger 實現分佈式鏈路追蹤
什麼是分佈式鏈路追蹤(Distributed Tracing?)?分佈式追蹤是軟件開發和性能監控中使用的一種技術,用於跟蹤和分析請求在分佈式系統的各個組件中的流動。在現代軟件應用中,不同的服務和微服務通常一起工作來滿足用戶請求。這些服務可能分佈在多臺服務器、容器或地理位置上。瞭解這些服務之間的交互並識別瓶頸或性能問題可能是具有挑戰性的。不同服務生成的跨度被收集併發送到一個稱爲追蹤系統的集中式存儲庫 ⌘ Read more

⤋ Read More

Beta 3 of iOS 17.5, macOS Sonoma 14.5, iPadOS 17.5, Available for Testing
Apple has issued the third beta versions of iOS 17.5, macOS Sonoma 14.5, iPadOS 17.5, watchOS 10.5, visionOS 1.2, and tvOS 17.5, to all users participating in the beta testing programs for Apple system software. The new beta builds are available to both developer beta and public beta testers on any actively enrolled device, though … [Read More](https://osxdaily.com/2024/04/24/beta-3-of-ios- … ⌘ Read more

⤋ Read More

How to Customize the Finder Sidebar on Mac
Do you want to change the way the sidebar looks on your Mac when you open a new Finder window? This is done by customizing the Finder Preferences according to your liking. Apple offers several ways to customize the Finder sidebar on macOS computers. Finder is the default file manager on macOS systems and the … Read MoreRead more

⤋ Read More

ProcessOne: ejabberd Docs now using MkDocs
The ejabberd Docs website did just get a major rework: new content management system, reorganized navigation, improved markdown, and several improvements!

Brief documentation timeline

ejabberd started in November 2002 (see a timeline in the ejabberd turns 20 blog post). And the first documentation was published in January 2003, using LaTeX, see [Ejabberd Installation and Op … ⌘ Read more

⤋ Read More

Better Debugging: How the Signal0ne Docker Extension Uses AI to Simplify Container Troubleshooting
Get started with Signal0ne, a Docker Desktop extension that scans Docker containers’ state and logs in search of problems, analyzes the discovered issues, and outputs insights to help developers debug. ⌘ Read more

⤋ Read More

Une idiocratie française
Ah, enfin, le gouvernement prend des mesures fortes en faveur des Français ! Alors que les impôts n’ont jamais été aussi hauts, que l’insécurité augmente, que l’économie du pays vacille et que l’inflation fait rage, Olivia Grégoire, la ministre déléguée au commerce a courageusement retroussé ses manches. C’est donc décidé : le 1er Juillet, des affichettes seront […] ⌘ Read more

⤋ Read More

Golang 異步編程方式和技巧
Golang 基於多線程、協程實現,與生俱來適合異步編程,當我們遇到那種需要批量處理且耗時的操作時,傳統的線性執行就顯得喫力,這時就會想到異步並行處理。下面介紹一些異步編程方式和技巧。作者:zvalhu一、使用方式1.1、最簡單的最常用的方式:使用 go 關鍵詞func main() { go func() {  fmt.Println(“hello world1”) }() go func( ⌘ Read more

⤋ Read More

從零到生產:Go 在 Google 的歷程 [譯]
2007 年 Go 誕生於 Google,2009 年 Google 正式對外宣佈了 Go 語言的開源!時至今日,距離 Go 開源已經過去了近 15 個年頭了 [1]!Go 在 Google 公司內部究竟是怎樣的一個狀態呢?前 Google 員工 Yves Junqueira 近期撰文從其個人所見所聞談了 Go 在 Google 的歷程 [2]!這裏簡單翻譯,供大家參考! 最近,Jeremy Ma ⌘ Read more

⤋ Read More

Unmanned Ground Vehicle Rover for Raspberry Pi 4 & 5 SBCs
Unmanned Ground Vehicle Rover for Raspberry Pi 4 & 5 SBCs
Waveshare recently featured a UGV Rover compatible with the popular Raspberry Pi single board computer. This open-source platform can be used for robotic and vision computer applications due to its 5MP camera and Lidar support. ⌘ Read more

⤋ Read More

How to Uninstall Apps on MacOS Sonoma & Ventura via System Settings
Uninstalling and removing apps is a necessary task on any computer, and the Mac is no exception. One of the benefits of MacOS is that it makes uninstalling applications pretty easy, and there are several ways to go about participating in the removal of apps from your Mac computer. One of the handiest ways to … Read MoreRead more

⤋ Read More

Apple Event Set for May 7, New iPads Expected
Apple has set an online event for 7:00AM PST on Tuesday, May 7, for the early birds on the west coast, or mid-morning east coast folks. While Apple offers only a vague hint of what’s to come with the event artwork, the rumor mill speculates that updated iPad models will be revealed that feature the … Read MoreRead more

⤋ Read More

How to Uninstall Apps on MacOS Sonoma & Ventura via System Settings
Uninstalling and removing apps is a necessary task on any computer, and the Mac is no exception. One of the benefits of MacOS is that it makes uninstalling applications pretty easy, and there are several ways to go about participating in the removal of apps from your Mac computer. One of the handiest ways to … Read MoreRead more

⤋ Read More

A recap: KubeCon + CloudNativeCon Europe 2024
Community post originally published on Medium by Ryan Gough and Majid Att This year, we (JYSK tech) took to Paris to attend KubeCon + CloudNativeCon Europe 2024. After three days of talks, networking and workshops. We put together… ⌘ Read more

⤋ Read More

Decoding your daily typing habits with GreptimeDB and Streamlit
Member post originally published on Greptime’s blog by Tison Nowadays, typing is a nearly daily occurrence for most people. Interestingly, your typing habits may vary significantly from what you might assume. Below, you’ll find a dashboard that provides… ⌘ Read more

⤋ Read More