Searching We.Love.Privacy.Club

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

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

Wasm on Go
本篇內容,是對極客兔兔: Go WebAssembly (Wasm) 簡明教程 [1] 的實踐與記錄,主體內容來自這篇博客,推薦閱讀原文。 是否需要搭建 wasm 環境? WebAssembly 上手 [2]如果是 C/C++,需要藉助 emcc,將 C 和 C++ 代碼編譯到 WebAssembly 和 JavaScript。在 Mac 上,brew install emscripten然後 ⌘ Read more

⤋ Read More

330 rokov Nového Sadu
Nový Sad, Neoplanta, Neusatz, Újvidék…bol založený v roku 1694. Avšak, za Deň Nového Sadu je zvolený 1. február na počesť pamiatky na rovnaký deň z roku 1748 keď cisárovná Mária Terézia udelila Novému Sadu štatút slobodného kráľovského mesta v rámci Habsburskej monarchie. Vtedy mesto bolo i pomenované dnešným menom. Bolo to teda tri roky po tom, ako Slováci osídlili Petrovec a tri roky po tom ako známa hercegovská šľachtická rodina Stratimirovićovcov dostala roku 1745 od … ⌘ Read more

⤋ Read More