**“`

  • 8eef4d5d - (HEAD -> main, origin/main) Add DB restore capability and tools/backu-_db.sh script (19 seconds ago)

Oh well ...**
  • 8eef4d5d - (HEAD -> main, origin/main) Add DB restore capability and tools/backu-_db.sh script (19 seconds ago)

Oh well 😅 It works wonderfully!

In the event of a database corruption or loss:

$ URL=http://10.0.0.164:8000 ./tools/backup_db.sh > db.json
mv db.json data/db.restore.json
yarnd …

”` ⌘ Read more

⤋ Read More

* 8eef4d5d - (HEAD -> main, origin/main) Add DB restore capability and tools/backu-_db.sh script (19 seconds ago) <James Mills>

Oh well 😅 It works wonderfully!

In the event of a database corruption or loss:

$ URL=http://10.0.0.164:8000 ./tools/backup_db.sh > db.json
mv db.json data/db.restore.json
yarnd ...

⤋ Read More

Fans of ‘Interview With the Vampire’ Say the Stakes Have Never Been Higher
As social media filled with people asking why no one was watching the best show on TV, fans desperate for Interview With the Vampire’s renewal turned the blame on AMC’s own marketing. ⌘ Read more

⤋ Read More

Senate GOP blocks Democratic effort to ban bump stocks after Supreme Court ruling
AL WEAVER,  Staff Writer  -  The Hill

_Stephan: Even criminal Trump sought for a ban on bump stocks. I think he was afraid he might be assassinated by someone with an AR-15 with a bump stock. They have no use even as a. military weapons because they make the weapons so inaccurate; the only purpose of these devices is civilian mass shootings. But the Republican cu … ⌘ Read more

⤋ Read More

Breaking down the South’s economic underperformance
Chandra Childers ,    -  Economic Policy Institute

_Stephan: One would think that the fact that the Red states, particularly those in the old Confederacy, have the worst economic outcomes would be a subject of national discussion.  Some are little more than third-world countries.  Here is a fact-based answer to why this is happening. Part of it is  ”a key component of this model is ensuring the absolute minimal levels of r … ⌘ Read more

⤋ Read More

New Polling Shows the Real Fallout From the Trump Conviction
ANKUSH KHARDORI,  Senior Writer  -  Politico Magazine

_Stephan: It tells you a sad and sorry tale about the United States that millions of Americans are still willing to vote for a multiple convicted felon, rapist, and grifter. I wouldn’t sit down at a table for dinner with him. I met Trump once at a party in Manhattan when we were both in our twenties. I thought he was a loathsome nouveau-riche braggart … ⌘ Read more

⤋ Read More

Miami Is Entering a State of Unreality
Mario Alejandro Ariza,  Staff Writer  -  Microsoft Start

Stephan: This is climate change as a reality. Much of Florida is going to be destroyed, and the moron Floridians elected as their governor, Ron DeSantis won’t even allow the words “climate change” to be used by his administration. This is the eleventh-hour alarm. Pay close attention to how your state’s governor and his administration respond to what anyone can see is happening.

![](https: … ⌘ Read more

⤋ Read More

Go 實現可複用的通用內存緩存
本文介紹瞭如何在 Go 語言中創建一個可重用的內存通用緩存,並提供了具體的實現代碼和使用示例。Prerequisites安裝 Go go-cache package

⤋ Read More

Go:log 庫的全面指南與使用技巧
引言–在 Go 語言的標準庫中,log包提供了簡單而強大的日誌功能。日誌記錄是軟件開發中不可或缺的一部分,它不僅幫助開發人員調試和排查問題,還在系統運行中提供了寶貴的運行時信息。本文將詳細講解 Go 語言log庫的各種功能及其使用技巧,幫助開發者更好地掌握和應用這一重要工具。log 包簡介——-log包是 Go 語言標準庫的一部分,提供了基本的日誌記錄功能。它支持日誌消息的格式化、日誌輸 ⌘ Read more

⤋ Read More

深入理解 AI 大模型:參數、Token、上下文窗口、上下文長度和溫度
隨着人工智能技術的不斷髮展,AI 大模型在各個領域展現出強大的能力,也引起了廣泛關注。在瞭解這些模型時,我們經常會看到諸如「參數」、「Token」、「上下文窗口」、「上下文長度」 和「溫度」等術語。這些術語代表着什麼意思?它們對 AI 大模型有何影響?本文將深入淺出地爲你解析這些概念,並結合實際案例和數據,幫助你理解 AI 大模型的運作機制。Parameter 參數:模型的複雜度和性能指標—- ⌘ Read more

⤋ Read More

Go 實現雙 buffer id 生成器
本文通過 Go 實現一個 Leaf——美團點評分佈式 ID 生成系統 雙 buffer 的 id 獲取器。一. 主流程———-主流程看圖似乎步驟非常多,但實際上總結起來就以下三個步驟:客戶端發起請求 id 獲取器從緩存中獲取 如果 id 已經被消耗超過閾值,則重新加載新的號段到內存中 接下來我們來具體看一下 Go 代碼是如何實現的二. 代碼實現——-2.1 S ⌘ Read more

⤋ Read More

Select Multiple Items Faster With This Simple iPhone Gesture
Your iPhone has multiple touch and gesture capabilities that can enhance how you interact with apps. Some, like pinch and zoom, are well known enough to be considered second nature, but others are less obvious, like the one we’re about to explain.

Image

Two-Finger Drag to Select Items

If have apps whe … ⌘ Read more

⤋ Read More

說一說 linux 虛擬機的 ringbuffer 大小由來
linux 下的網卡 ringbuffer 大小可以通過 ethtool -g eth0 獲取,eth0 是網卡設備名,如果是其他網卡則更換爲對應網卡名即可。

⤋ Read More

超級底層:10WQPS-PB 級海量存儲 HBase-RocksDB,底層 LSM 結構是什麼?
一次穿透:10WQPS/PB 級海量存儲 HBase/RocksDB 的底層 LSM 結構———————————————LSM tree 是很多數據庫內部的核心數據結構,包括 BigTable,ClickHouse、Cassandra, Scylla, RocksDB,HBase。ClickHouse、Cassandra, Scylla, ⌘ Read more

⤋ Read More

Go:For-Select-Done 併發設計模式應用
引言Go 語言支持的併發模型是其一大亮點,它內建的 Goroutine 機制爲構建高性能併發應用提供了基礎。在這種環境下,使用 For-Select-Done 設計模式可以優雅地處理併發任務和通道(Channel)的交互,從而實現高效的數據處理和狀態管理。For-Select-Done 設計模式概述For-Select-Done 模式是一種結構化的方式來處理 Go 中的多個通道讀寫操作,使代碼更加 ⌘ Read more

⤋ Read More

Netflix 如何打造高可靠在線有狀態系統
作者 | Joseph Lynch譯者 | 王強策劃 | Tina要點可靠性意味着花錢將故障概率、爆炸半徑和恢復時間都降至零。 大規模可靠服務的構建工作必須在客戶端、服務器和 API 上三管齊下。 可靠的服務器是冗餘的、對負載優化的和被大量緩存的。它們提供快速數據恢復和跨多個雲可用區利用多個複製副本的能力。 可靠的客戶端會持續迭代前進,並使用來自服務器的信號來學習如何重試或對沖請 ⌘ Read more

⤋ Read More

多模態大模型:基礎架構
文|龐德公編輯|郭嘉大模型技術論文不斷,每個月總會新增上千篇。本專欄精選論文重點解讀,主題還是圍繞着行業實踐和工程量產。若在某個環節出現卡點,可以回到大模型必備腔調或者 LLM 背後的基礎模型重新閱讀。而最新科技(Mamba,xLSTM,KAN)則提供了大模型領域最新技術跟蹤。若對於具身智能感興趣的請移步具身智能專欄。技術宅麻煩死磕 AI 架構設計。當然最重要的是訂閱 “魯班模錘”。 多模態大型 ⌘ Read more

⤋ Read More

10 分鐘瞭解 Golang 泛型
泛型是 Golang 在 1.18 版本引入的強大工具,能夠幫助我們在合適的場合實現簡潔、可讀、可維護的代碼。原文: Go Generics: Everything You Need To Know

⤋ Read More

如何優雅關閉過期訂單?
如何關閉過期訂單?設計一個關閉過期訂單的系統至關重要:資源管理 通過關閉過期訂單,系統可確保資源(如庫存、資金和人員)得到有效分配,不會被未完成或過期訂單佔用。用戶體驗 該系統允許與客戶就其訂單狀態進行清晰及時的溝通,防止出現混亂和潛在的不滿情緒。通過關閉過期訂單,系統可以集中精力處理有效訂單,提高整體服務效率和速度。運行效率 從活動隊列中刪除過期訂單可減少雜亂和簡化數據處理,從 ⌘ Read more

⤋ Read More

Rust 中的編程範式:命令式和函數式編程範式
Rust 是一種多範式編程語言,支持命令式、面向對象和函數式編程風格。風格的選擇通常取決於開發人員的背景和他們要解決的具體問題。隨着 Rust 吸引了來自 C++、Java、Python 和 Haskell 等不同背景的開發人員,它已經形成了自己獨特的風格和習慣用法。這種多樣性是一種優勢,但它也會導致在不同場景中使用哪種風格的不確定性。Rust 當然受到面向對象編程概念的影響,將它與其他面嚮對象語 ⌘ Read more

⤋ Read More

duckdb: 一個超火的數據庫,背後公司只有 18 人?
簡介–DuckDB 是一個嵌入式、內存中、SQL OLAP 數據庫管理系統。它提供了一種高效的方式來查詢和分析數據, 可以被集成到各種應用程序或編程語言中。最近非常的 🔥,一個月下載超過 200 萬次。實際上,這家位於荷蘭阿姆斯特丹的小型公司只有 18 人,下面這篇公衆號介紹了它的背景:震驚:開發一款世界矚目的數據庫僅需 18 人。這讓我想起了 clickhous。duckdb 的簡單易用、提供 ⌘ Read more

⤋ Read More