Searching We Love Privacy Club

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

實現負載均衡器,打造億級流量入口
*負載均衡概述什麼是負載均衡負載均衡是指通過某種手段, 將任務合理地分配到多個操作單元上進行執行, 從而使得系統的負載分散在不同操作單元上, 避免因爲單個操作單元負載過高而影響請求服務能力的技術手段。比如將大量的客戶端請求分擔給多個服務器處理, 從而避免單個服務器超負荷工作對服務的影響。負載均衡的作用負載均衡主要有以下幾個作用: 1. 降低單個服務器的壓力, 防止服務器過載; 2. 增 ⌘ Read more

⤋ Read More

Golang 數據結構性能優化實踐
僅僅通過對 struct 字段重新排序,優化內存對齊方式,就可以獲得明顯的內存和執行效率提升。原文: How to Speed Up Your Struct in Golang[1]如果你有 Golang 開發經驗,一定定義過 struct 類型。但可能你不知道,通過簡單的重新排序 struct 字段,可以極大提高 Go 程序的速度和內存使用效率!是不是難以置信?我們一起來看一下吧!簡單 De ⌘ Read more

⤋ Read More

ESP32-H2-DEV-KIT-N4: A $5.99 Development Board Featuring a 96MHz RISC-V 32-bit Core
“Waveshare recently introduced the ESP32-H2-DEV-KIT-N4, a compact and versatile microcontroller development board equipped with essential connectivity features like Zigbee, Thread, and Bluetooth. Ideal for various applications including smart homes and other IoT projects. The board, centered around the ESP32-H2-MINI-1 module, features a RISC-V 32-bit single-core processor with a … ⌘ Read more

⤋ Read More

Golang 流水線設計模式實踐
流水線設計模式對於順序處理業務數據非常有用,可以以一致的方式直觀的定義對數據的處理流程。原文: Using a Pipeline Pattern in Golang[1]到目前爲止,我已經將 Golang 整合到項目中有一段時間了,Golang 是一種非常強大的語言,我渴望在其生態系統中進一步磨練技能。基於項目的特定需求,我需要實現流水線模式 (Pipeline Pattern),數據需要通過 ⌘ Read more

⤋ Read More

Golang 如何有效限制併發數?
Go 語言目前很火熱,一部分原因在於自身帶 “高併發” 的標籤,其本身就擁有優秀的併發量和吞吐量。1 協程可以無限創建嗎?我們在日常開發中會有高併發場景,有時會用多協程併發實現。在高併發業務場景,能否可以隨意開闢 goroutine 並且放養不管呢?畢竟有強大的 GC 和優越的 GMP 調度算法。看下面的代碼:package mainimport (    ”fmt”    ”math”    ” ⌘ Read more

⤋ Read More

4th Beta of iOS 17.4, macOS Sonoma 14.4, iPadOS 17.4, Available for Testing
Apple has issued the fourth beta versions of iOS 17.4, iPadOS 17.4, macOS Sonoma 14.4, watchOS 14.4, and tvOS 17.4. Additionally a new beta of visionOS 1.1 is available for the developers who are working with Apple Vision Pro. These beta updates are available to all users who are enrolled in the beta testing programs … [Read More](https://osxdaily.com/2024/02/21/4th-beta-of-ios-17-4-mac … ⌘ Read more

⤋ Read More

Medzinárodný deň materinského jazyka
Dnes oslavuje svet medzinárodný deň materinského jazyka, ktorý vznikol z iniciatívy Organizácie Spojených národov pre výchovu, vedu a kultúru (UNESCO) v novembri 1999. Pripomínajú si ho aj slovenské komunity v zahraničí, pre ktoré je zachovanie si materinského slovenského jazyka veľmi dôležitou súčasťou prežívania a uchovávania si národného povedomia. Slovenská reč je tým najuniverzálnejším spojením so všetkými Slovákmi a Slovenkami naprieč … ⌘ Read more

⤋ Read More

Bruno Le Maire tente de faire des zéconomies
Allons bon, zut, flûte, saperlipopette ! Voilà que les choses prennent une tournure embarrassante : alors qu’avec une crânerie que certains n’imaginait possible que pour les cuistres les plus inconscients, le gouvernement français tablait sur une croissance tournant autour de 1,4% pour l’année 2024, Bruno Le Maire s’est dernièrement retrouvé dans un quelconque journal télévisé pour expliquer […] ⌘ Read more

⤋ Read More

程序員必會的任務調度實踐
*1. 延時任務系統介紹延時任務系統 (Delayed Job System) 是一種用於設置任務在將來的某個時刻自動觸發執行的機制。定義:延時任務系統使作業 / 任務能夠在未來的某個預定義時間運行。簡單來說, 就是一種可以設置任務在未來執行的系統。延時任務系統的主要特點是:時間觸發: 根據預設的時間來自動觸發任務執行可靠性: 具備容錯能力, 防止任務丟失擴展性: 可以水平擴展, 提高吞吐量靈活性 ⌘ Read more

⤋ Read More

精心設計的 DNS Failover 策略在 Go 中竟然帶來了反效果,發生了什麼?
本期作者衛智雄嗶哩嗶哩高級運維工程師一. 背景如下配置所示,我們在 /etc/resolv.conf 中配置了兩個 nameserver,其中 server2 在災備機房 ,作爲一種 failover 策略。nameserver server1nameserver server2options timeout:1 attempts:1我們的預期是如果 server1 服務正常,則所有的 DNS 請 ⌘ Read more

⤋ Read More

Go 語言版本 1-22 的路由增強功能
Go 1.22 對 net/http包中的路由器進行了兩項增強:方式匹配和通配符。這些特性允許你將常見的路由表示爲模式,而非 Go 代碼。儘管這些功能簡單易解釋和使用,但想選擇成功模式的正確規則(當多個模式匹配一個請求時)依然是個挑戰。我們作出這些改變是爲了持續讓 Go 成爲構建生產系統的優秀語言。我們研究了許多第三方 web 框架,提取出我們認爲最常用的特性,並將它們集成進 net/http。然 ⌘ Read more

⤋ Read More

Beta 3 of macOS Sonoma 14.4, iOS 17.4, iPadOS 17.4, Available for Testing
The third beta version of macOS Sonoma 14.4, iOS 17.4, iPadOS 17.4, and watchOS 10.4, has been released to users enrolled in the beta testing programs for Apple system software. Additionally, beta 2 of VisionOS 1.1 is available for users beta testing software on the Apple Vision Pro. Downloading Beta 3 of iOS 17.3/iPadOS 17.3, … [Read More](https://osxdaily.com/2024/02/13/beta-3-of-macos-so … ⌘ Read more

⤋ Read More

Waveshare’s ESP32-S3 Boards Offer LTE CAT-1, Wi-Fi, Bluetooth, and GNSS for Mobile IoT Solutions
Waveshare has unveiled two new boards based on the ESP32-S3, each equipped with 4G, Wi-Fi, and Bluetooth capabilities. Additionally, these boards support 18650 batteries and come with a camera interface, making them ideal for uses such as outdoor monitoring, portable 4G Wi-Fi, and smart home applications. The ESP32-S3-A7670E-4G development board is powered … ⌘ Read more

⤋ Read More

Safari 17.3.1 Update for MacOS Ventura & Monterey Fixes Overlapping Text Bug
Apple has released Safari 17.3.1 as a software update for macOS Monterey and macOS Ventura. The small Safari update appears to resolve the same overlapping text bug that was patched with macOS Sonoma 14.3.1, iOS 17.3.1, iPadOS 17.3.1, and watchOS 10.3.1. When users experience this bug, it can look like text is either disappearing (even … [Read More](https://osxdaily.com/2024/02/10/safari-17-3-1-up … ⌘ Read more

⤋ Read More

MacOS Sonoma 14.3.1 Update Fixes Text Overlap Bug on Macs
iOS 17.3.1 and iPadOS 17.3.1, which fixes the same bug on iPhone and iPad, and watchOS 10.3.1, which resolves the bug on Apple Watch. How to Download & Install MacOS Sonoma 14.3.1 Update Be sure you backup the Mac to Time Machine before beginning any software update. Go to the  Apple menu Choose “System … Read MoreRead more

⤋ Read More

iOS 17.3.1 Update Released to Fix Overlapping Text Bug on iPhone & iPad
Apple has released iOS 17.3.1 as an update for iPhone, along with iPadOS 17.3.1 for iPad. The small software update includes a bug fix for an issue where text may duplicate or overlap while typing. There do not appear to be any other changes or security fixes in this update. Separately, macOS Sonoma 14.3.1 and … [Read More](https://osxdaily.com/2024/02/08/ios-17-3-1-update-released-to-fix … ⌘ Read more

⤋ Read More

Beta 2 of macOS Sonoma 14.4, iOS 17.4, iPadOS 17.4, Available for Testing
Apple has issued the second beta versions of iOS 17.4, iPadOS 17.4, macOS Sonoma 14.4, watchOS 10.4, tvOS 17.4, along with the first beta version of visionOS 1.1 for Apple Vision Pro. What new features are expected in betas of iOS/iPadOS 17.4, macOS Sonoma 14.4? These beta updates to iOS, iPadOS, and macOS include a … [Read More](https://osxdaily.com/2024/02/06/beta-2-of-macos-sonoma-14-4-i … ⌘ Read more

⤋ Read More

Go1-22 新特性:增強 http-ServerMux 路由能力,將有更強的表現力!
大家好,我是煎魚。Go1.22 有一個比較重要的新特性,那就是基於提案《net/http: enhanced ServeMux routing[1]》,增強了 http.ServerMux 的路由匹配能力。非常值得大家學習和關注。本次的新特性主要是新增了 HTTP 方法和路徑變量的支持。快速學習—-在 Go 中,可以認爲幾乎所有的路由相關的庫都會基於 net/http 或是兼容其 interf ⌘ Read more

⤋ Read More

收到請求數據的常用安全驗證方案,go 語言,gin 框架
在使用 Gin 框架處理前端請求數據時,必須關注安全性問題,以防範常見的攻擊。本文將探討 Gin 框架中常見的安全問題,並提供相應的處理方法,以確保應用程序的穩健性和安全性。第一章:概述———-1.1 安全性的重要性處理前端請求數據時,確保應用程序的安全性是至關重要的。常見的攻擊方式包括 SQL 注入、跨站腳本攻擊(XSS)、跨站請求僞造(CSRF)等。下面我們將逐一探討這些問題及其處 ⌘ Read more

⤋ Read More

替代 zap,Go 語言官方實現的結構化日誌包
在 Go 1.21 中,引入了一個新的 log 包 – log/slog,這是一個強大的日誌記錄庫,提供了許多用於幫助開發人員更加有效地記錄、管理和理解日誌的工具。無論你是一個初級還是高級的 Go 開發人員,理解和掌控 go 的日誌系統是非常有用的。接下來,讓我們深入研究一下 Go 中的日誌行爲,並通過實例來詳細理解每個主要功能。安裝–在 Go 1.21 中,log/slog 是系統自帶的,無 ⌘ Read more

⤋ Read More

Mathieu Pasquet: slixmpp v1.8.5

Highlights
  • Moving away from self-hosted gitlab (mathieui)
  • Fix connection to Snikket instances (pep., mathieui)
  • Performance fix for XEP-0115 queries
  • New documentation listing projects using slixmpp (genghis)
  • Bugfix and improvements (nicoco, mostly)
Details
  • Gitlab migration: see the otherblogpost
  • Fix connections to Snikket instances:

Snikket decided to forbid PLAIN
authentication, which is good but exposed … ⌘ Read more

⤋ Read More