US to hit debt ceiling Tuesday, starting Congress’ countdown clock
Tami Luhby, Senior Writer - CNN
Stephan: This isn’t what everyone is talking about today but starting tomorrow we will see this and newly inaugurated Trump’s executive orders sweep across the United States like a hurricane. Buckle up it is going to get strange and, I am afraid, very chaotic.
 就是這樣一款輕量級、高性能的表達式求值引擎。無論你是初學者還是需要在項目中集成 cel-go,這篇文章都將帶你從入門到精通!什麼是 CEL 和 cel-go?CEL( ⌘ Read more
Go 項目實戰 - 讓自定義 Error 支持 Go 的 errors-Is 判定以及原型模式的應用
經過前面三節高代碼強度的學習,相信大家都已經有點累了,本節我們不着急繼續 “趕路”,休息片刻!我們換個輕鬆點的話題,聊一聊咱們項目定製化 Error–AppError 怎麼支持 Go 語言的 errors.Is 判定,以及項目預定義的那些 Error 在實際使用過程中某些情況下會出現循環引用的問題,我們會利用一個原型設計模式來解決這個問題。項目定製化 Error 回顧————– ⌘ Read more
Real Estate Vultures Eye Middle-Class Enclave of Ravaged LA
Michelle Ma, Jennifer Epstein and Kelsey Butler , Staff Writers - msn | Bloomberg
_Stephan: Even as the fires still rage, the real estate profit vultures have descended on the burned-out neighborhoods of Los Angeles. We are far far from the end of this story. And, I predict, it is going to play out all over the nation as climate change wreaks havoc. To his credit, California’s Democratic Governor Gavin … ⌘ Read more
U.S. Political Parties Historically Polarized Ideologically
Megan Brenan, - The Gallup Organization
_Stephan: I have been telling you for years about what I call The Great Schism Trend. As this report from Gallup confirms this trend is real, and the split is growing ever greater. We are increasingly becoming two countries in a single nation. I think we will stay one nation, but I also think real power is going to move to the states, and they are going to become … ⌘ Read more
Patient Care Deteriorates After Private Equity Acquisition of Hospitals
Kristina Fiore, Director of Enterprise & Investigative Reporting - MedPage Today
_Stephan: American healthcare is getting worse, as this evidence proves. Under Trump, I think the trend will continue downward because of the people he is appointing and his Congressional subservients are going to confirm. Think about it. Mehmet Oz, Robert Kennedy, Jr. both incompetent conspiracy fre … ⌘ Read more
Instagram Adds New Features to Reels as TikTok Ban Looms
With TikTok on track to be banned from U.S. app stores starting on Sunday, Instagram is adding new features to Reels, its video-based feature that’s modeled after TikTok.
Going forward, there will be a new Reels feed that includes videos that your friends have liked or commented on, so you can see what your friends have watched and what they like. Your friends … ⌘ Read more
Oligarchs already own much of U.S. – can they buy democracy?
, - Agence France-Presse (France) / Raw Story
Stephan: Can the oligarchs buy control of the United States? They already control many of the levers of power, corporations, media, and influence in government. I think we are going to get our answer in the first 100 days of criminal Trump’s presidency.
_ … ⌘ Read moreGo os-exec 極速入門
os/exec 是 Go 提供的內置包,可以用來執行外部命令或程序。比如,我們的主機上安裝了 redis-server 二進制文件,那麼就可以使用 os/exec 在 Go 程序中啓動 redis-server 提供服務。當然,我們也可以使用 os/exec 執行 ls、pwd 等操作系統內置命令。本文不求內容多麼深入,旨在帶大家極速入門 os/exec 的常規使用。極速入門如下是 os/exec ⌘ Read more
Go 語言主流安全庫使用指南
Secure Middleware - Secure—————————–secure 是一個 HTTP 中間件,提供了多種安全相關的特性。1.1 基礎使用secure 中間件提供了多個重要的安全選項,每個選項都針對特定的安全威脅:package mainimport ( ”net/http” ”github.com/unrolled/secure ⌘ Read more
Cleaning up some of the 500 open tabs on my phone. I realized that if I don’t have some place to stash the good ones, I won’t go through any. http://a.9srv.net/b/2025-01-16
Young, single men are leaving traditional churches. They found a more ‘masculine’ alternative
Susie Coen, U.S. Correspondent - The Telegraph (U.K.)
_Stephan: We have what I see as a serious negative cultural trend going on in the United States. Young single, mostly White, men don’t seem to understand what the role of manhood is about. They are frightened and resentful about gender equality. This is strongly reflected in what is happ … ⌘ Read more
I have no idea what happened in/around instagram but, Holly Shi_ !! People have been pouring out of it and into #Pixelfed for hours now. 😆 way to go #Fedi
Alright, I have a little 8086 assembler for my toy OS going now – or rather a proof-of-concept thereof. It only supports a tiny fraction of the instruction set. It was an interesting learning experience, but I don’t think trying to “complete” this program is worth my time.
The whole thing is just a learning project, I don’t want to actually make a usable OS. There are a few more things I want to have a look at and then I’ll eventually move on to 386/amd64 later this year (hopefully).
Go 併發機制解密:Goroutine 調度
Goroutine 是 Go 編程語言中一個極具特色的設計,也是其併發能力的核心亮點之一。Goroutine 本質上是一種協程(Coroutine),是實現並行計算的關鍵。使用 Goroutine 非常簡單,只需通過 go 關鍵字即可啓動一個協程,協程會以異步方式運行。程序無需等待 Goroutine 完成即可繼續執行後續代碼。go func() // 使用 go 關鍵字啓動一個協程 II. Go ⌘ Read more
淺談 Go 語言 Optional 模式和 Builder 模式
在 Go 語言中,Optional 模式和 Builder 模式都是用於對象構建和配置的重要設計模式,但它們各自具有獨特的特點和應用場景。但是使用起來也是非常的類似,就好比電動車和摩托車,都能讓你不費太多力氣的騎行,把你送到目的地,這篇文章我們就來討論一下這兩個模式的本質區別和不同的使用場景。我們首先聲明一個結構體,後面我們就研究使用兩種不同方式來創建這個結構體的實例:type Person st ⌘ Read more
@johanbove@johanbove.info Way to go! ✊ what will you be reading? Got anything planned?
** Styrofoam cups and awk **
I like writing these posts for my website, but I’ve sat down to write this one like 11 times and it either takes on a tone of totally encompassing dread and dystopian navel gazing or I feel like I’m burying my head in the sand and ignoring reality as it happens around me.
…I finished reading Victor LaValle’s The Changeling. It was engaging, and I was interested in where it was going, but I found that where it went wasn’t interesting. The dialogue and prose were lively and contemporary, which is what r … ⌘ Read more
While Los Angeles Burns, AI Fans the Flames
Schuyler Mitchell , Staff Writer - trruthout
_Stephan: I hope that you understand that the catastrophe in Los Angeles, like the one in Ashville, North Carolina, represent opening acts in what is going to be the heart-rending drama of climate change. But here, as this article describes, is an aspect of this epoch that I have not even seen mentioned before: The link between AI and the growing scarcity of water in urban areas already expe … ⌘ Read more
This could be the beginning of the end for fire insurance in California
Blanca Begert, Camille von Kaenel, Thomas Frank and Zack Colman, Staff Writers - Poliitico
_Stephan: Putting aside the disinformation crap that felon Trump endlessly spews – a revealing sign as to what his administration is going to be like – what is standing out for me is the insurance issue. In large parts of Florida, it is already impossible to get home insurance, and it loo … ⌘ Read more
Policing White Supremacy: The Enemy Within
Mike German, Contributing Writer - Brennan Center for Justice
_Stephan: I can remember walking down to the Lincoln Memorial with a Black friend to listen to Martin Luther King deliver his I Have a Dream speech, and looking over and seeing two highly conservative attorney lobbyists walking with us and thinking, “Maybe this is really going to be the end of White racism.” Sadly it wasn’t, and part of the reason for White Supremacy’s continu … ⌘ Read more
So Go lang is at a funny version huh’ v1.23.4
will there ever be a v1.23.45678? 🫠🤡
Doctors Against Genocide Hold Global Sick-Out to Highlight Atrocities in Gaza
Chris Walker , Staff Writer - truthout
_Stephan: I want to be clear that I do not in any way condone or support what the Muslim terrorist groups did and have done to keep the wars in the Middle East going. But I see all that as no justification for your money and mine being used to finance an Israeli genocide of Muslims. More than that as this article describes is the … ⌘ Read more
Ugh! Not @david@collantes.us, but this one. I am going nuts. Well, I am nuts!
I am letting this domain go at the end of this year. Another of my alter ego feeds will be gone then. Oh, the humanity! 😅
@prologic@twtxt.net so i did a mistake that i’ve done before and i think i just pulled from the main branch which is STUPID i KNOW and i don’t LEARN but whatever. i was having trouble with my go version and the makefile so i think i literally just ran it as my user with go in the path and redirected the binaries to go to a temporary directory i made and then moved them to /usr/bin lol. i’m not sure what could’ve caused this! probably something in the pipeline of weirdness i just wrote out
@prologic@twtxt.net i thought i was going insane when i saw blank posts on my TL i was like is noscript fucking with me again but no it’s you guys fucking around LOLLLL
@<url>
form of mentions. Strictly require that all mentions include a nickname/name; i.e: @<name url>
.
For the record; we consider the new authority on the Twtxt spec(s) going forward (has been for some years actually) to be implementers / primary maintainers of widely used clients. To date that is:
yarnd
@prologic@twtxt.net (me and others)
jenny
@movq@www.uninformativ.de
tt
@lyse@lyse.isobeef.org
Timeline
@darch@neotxt.dk / @eapl.me@eapl.me and others
twtxt-el
? – @andros@twtxt.andros.dev
Full list of supported and widely used clients can be found at https://twtxt.dev/clients.html – which I note a few above are actually missing from this page haha 🤣
Apple Seemingly Working on New ‘Invites’ App to Manage Events
Apple could be developing a new app that’s designed to help users organize meetings and in-person events, if code discovered in the latest iOS 18.3 beta is anything to go by.
References in iOS 18.3 beta 2 spotted by 9to5Mac suggest the app is called “Invites,” and it will show users a list of … ⌘ Read more
Miami’s Beachfront High-Rises Are Sinking Fast. It’s A Warning For Coastal Properties Worldwide
Corina Pintado, Staff Writer - digg | Business Insider
_Stephan: I have been warning you for several years now this was coming, and now it is here. A large part of Florida is going underwater; that’s why the insurance companies are already pulling out. It will be a real estate disaster. The state’s voters have put into office a christ … ⌘ Read more
用 Go 語言併發處理 CSV 文件到數據庫
問題背景假設你擁有一個包含大量聯繫人信息的 CSV 文件,需要將這些信息遷移到數據庫中。這些聯繫人信息可能包含姓名、電話號碼、郵箱地址等。如果使用傳統的單線程方式,逐條處理數據,遷移過程可能會非常緩慢,尤其是在數據量很大時。在處理大量的 CSV 文件數據並遷移到數據庫時,使用併發可以顯著提升處理效率。Go 語言的 goroutine 和通道(channel)非常適合用來併發地處理數據。下面我將給出 ⌘ Read more
Mark Cuban spills about ‘penultimate global power war’ between billionaires
David McAfee, Senior Editor - Raw Story
_Stephan: I confess I had not thought that the struggle amongst the uber-billionaires is actually about which of these men is going to control AI and, thus, have the power to shape human civilization. But I think billionaire Mark Cuban, who knows these people is, upon my doing further research on this issue, probably correct. I don’t … ⌘ Read more
At least Minnesota won their bowl game. Go Gophers!
i thought about making a chill little vlog putting together my new pi4 for KVM purposes but unless i make it go fast somehow i’d probably quickly exceed the 30 mins on the last mini DVD i have for recording lol
@kat@yarn.girlonthemoon.xyz ok yeah idk what’s going on whatever i’ll mess with config later
wishing everyone an awesome 2025! Less go
How in da fuq do you actually make these fucking useless AI bots go way?
proxy-1:~# jq '. | select(.request.remote_ip=="4.227.36.76")' /var/log/caddy/access/mills.io.log | jq -s '. | last' | caddy-log-formatter -
4.227.36.76 - [2025-01-05 04:05:43.971 +0000] "GET /external?aff-QNAXWV=&f=mediaonly&f=noreplies&nick=g1n&uri=https%3A%2F%2Fmy-hero-ultra-impact-codes.linegames.org HTTP/2.0" 0 0
proxy-1:~# date
Sun Jan 5 04:05:49 UTC 2025
😱
Gun Violence by the Numbers in 2024
Chip Brownlee , Reporter - The Trace
Stephan: Here, as bad as it still is, is some good news about gun violence in the United States. Gun violence is going down, so are gun sales. Children killed by gun violence is down. Mass shootings are down, although still high. Federal spending for research on gun violence is much larger. We still have the most gun violence in the developed democracies, but the trends are better, so that is good news.

_Stephan: Here is another American trend that is getting almost no coverage in the increasingly coorrupted U.S. billionaire owned media. Once again I saw the trend but have had to go to another British newspaper to get a decent article describing the trend. The Republican Party has become a billionaire-controlled organiz … ⌘ Read more
KAIST Develops Foundational Technology to Revert Cancer Cells to Normal Cells
KAIST Research Team, - KAIST
Stephan: Here is what looks like it is going to be very good healthcare news. If cancer is an issue for you or someone you know or care for you might alert your oncologist about this research.
Despite the development of numerous can … ⌘ Read more
使用 Go 構建基於時間的一次性密碼 -TOTP- 生成器
前言–現在很多網站都開啓了 2FA(Two-Factor Authentication,雙因素認證),如 GitHub、Google、微軟等。這種額外的安全層顯著提高了賬戶的安全性。本文將深入探討如何使用 Go 語言實現 TOTP 生成器,並詳細解釋其工作原理和安全考慮原理解析—-兩步驗證要求用戶提供兩種不同形式的身份驗證:知識因素:用戶知道的信息(如密碼) 所有權因素:用戶擁有的設 ⌘ Read more
Go Gin 源碼分析:上下文複用與 Goroutine 中的潛在坑
前言如果你看過Go 語言中Gin 框架的官方文檔,你可能會注意到一條重要的提醒:當在中間件或 handler 中啓動新的 Goroutine 時,不能使用原始的上下文,必須使用只讀副本。文檔中還提供了以下示例代碼:func main() { r := gin.Default() r.GET(“/longasync”, func(c gin.Context) {// 創建在 goroutine 中使 ⌘ Read more
my friend is getting into snh48 and its sister groups and it makes me miss being a fan but my oshi (shen mengyao) graduated so i don’t have any reason to follow them. but the thing about snh48 is that it’s a group full of messy toxic lesbians with mental problems so there is always some wild ass drama going on. you can never leave snh48 standom
ladyflash by the go team is sooo good my friend just shared it and i’m obsessed already
my camcorder videos are gonna go so hard yall like i can post them exclusively to my own youtube site and just do whatever tf i want with it. i should make more vlogs
@kat@yarn.girlonthemoon.xyz i also like the separation inherent with using dedicated devices. like i have a DAP, a fiio X1 ii from 2019, and it’s still going strong. it’s perfect for on the go music listening and i never have to worry about like going somewhere with no reception and the music drops out. it’s all local AND the battery lasts longer because i’m not using wi-fi or bluetooth or data. also i can directly access the file system and just add files anytime. this goes for my point & shoot and other devices too. i love this shit i’m such a nerd
Go 指針進階:從入門到被虐,90- 開發者都踩過這些坑!
指針是 Go 語言中最強大但也最容易出錯的特性之一。本文將帶你從基礎概念到高級應用,全方位掌握 Go 指針的使用技巧。無論你是初學者還是老手,都能在這裏找到價值。一、指針基礎:從零開始什麼是指針? Go 語言中的指針是一個用來存儲變量內存地址的變量,可以使用 & 運算符獲取變量的地址,使用 `` 運算符獲取指針所指向的變量的值,可以進行運算來移動指針。var a int = 10var p ⌘ Read more
如何使用 Golang 進行 Kafka 的監控
Kafka 是一個高吞吐量、可擴展的分佈式消息系統,廣泛應用於實時數據流處理場景。監控 Kafka 是確保其平穩運行和及時處理問題的關鍵。本文將介紹如何使用 Golang 來執行 Kafka 的監控任務。前置準備—-安裝依賴庫: 安裝 Sarama,用於 Kafka 的操作$ go get github.com/Shopify/sarama 安裝 Kafka 管理擴展$ go get g ⌘ Read more
Go: 如何寫出內存泄露的程序
不管使用什麼語言,內存泄露是經常遇到的一類問題,然而使用 Go 語言編寫內存泄露的代碼卻不容易,本文將列舉幾個可能出現內存泄露的場景,從反例中學習如何避免內存泄露。資源泄露—-不關閉打開的文件當你不再需要一個打開的文件, 正常你需要調用它的 Close 方法, 如果你不調用 Close,就有可能文件描述符達到最大限制,無法再打開新的文件或者連接, 程序會報too many open files ⌘ Read more
爲你的 Go 應用添加定時任務
在 Linux 上,我們經常使用計劃任務來執行一些定時任務,比如,在凌晨執行數據庫備份、進行賬務日結操作等。在我們的 Golang 應用中,我們也想執行一些定時任務,怎麼辦?cron 是 Golang 的一個定時任務庫,被廣泛應用於 Golang 應用中。cron 目前使用的 V3 版本,默認支持 Linux cron 表達式,沒有秒的字段。Linux cron 表達式格式: comma ⌘ Read more
really wanna make an ssh zine app inspired by a telnet zine cms i found on github. i’m gonna probably go ahead with the telnet zine idea i have if i can get people for it but if i could build my own ssh mirror for it with golang and the charmbracelet wish library that’d be epic
Where the minimum wage will rise in 2025
Emily Peck, Staff Writer - Axios
Stephan: Here is some good news. Even in some Red states, and many Blue states the minimum wage will be going up.
Millions of workers are getting a raise on Jan. 1, when the minimum wage is set to rise across 21 states, and 48 cities and counties.
Why it matters: Th … ⌘ Read more
** Year in review, 2024 **
As a treat, I figured I could write a year in review kinda thing, too. In no particular order here are some reflections organized into some mostly sensical categories.
Since recovering from my brain bleed and the subsequent repair procedures, this year I’ve enjoyed getting back into a routine of exercising. I’ve never been one to track numbers, or reps, or distances — I mostly exercise because I enjoy doing it. This year I got back into going for regular short runs, very long walks (sorry aging d … ⌘ Read more
Costco is pushing back — hard — against the anti-DEI movement
Nathaniel Meyersohn, Staff Writer - CNN
_Stephan: Here is some good news. Costco, is the store where we do most of our shopping. It is owned by one of the few American companies that actually support social wellbeing. In contrast to, say, Walmart, owned by the Walton family, a store system we don’t shop in because of its vile corporate policies and support of MAGAt politicians. Costco is going more orga … ⌘ Read more
Plants Are Becoming Less Nutritious Because of Climate Change, Impacting Herbivores From Insects to Giant Pandas
Cristen Hemingway Jaynes, Contributing Writer - EcoWatch
Stephan: We are destroying the ecosystems of Earth, and making wholy inadequate attempts to restore Earth’s matrix of life. For that reason humanity is going to have a horrible planet-wide catastrophe occur about 2040, 15 years from now.
![] … ⌘ Read more
設計模式 in Go: Observer
行爲模式旨在解決對象間通信和交互相關的問題,專注於定義那些複雜到無法靜態設計的協作策略,這些協作策略使得程序可以在運行時動態地進行職責派遣以實現更好的擴展。今天我們開始第 8 個行爲模式的學習 —— Observer(觀察者模式)。問題背景:—–觀察者模式用於當對象之間存在一對多關係時,即一個對象的變化需要傳播給多個其他對象。它允許被觀察對象的狀態發生變化時,其他依賴對象能自動收到通知並進行 ⌘ Read more
What to Expect From Apple in 2025
Apple is going to have a busy year in 2025, based on the rumors that we’re hearing right now. All of the rest of the Mac lineup will be updated with M4 chips, plus there’s a new iPhone SE coming, and a whole new iPhone 17 “Air” that’s slimmer than any iPhone to date.
_[Subscribe to the MacRumors YouTube channel](https://www.youtube.c … ⌘ Read more
Go Protobuf 新增全新不透明 API
Protobuf 是 Google 的語言中立的數據交換格式。早在 2020 年 3 月,就發佈了 google.golang.org/protobuf 模塊,這是對 Go protobuf API 的重大修訂。該包引入了對反射的一流支持、一個 dynamicpb 實現和 protocmp 包,以便於測試。現在,我們將爲生成的代碼發佈一個新的 API,我們將說明創建新 API 的動機,並展示如何在 ⌘ Read more
高性能 Gin 框架原理學習教程
作者:jiayan 工作中的部分項目使用到了 gin 框架,因此從源碼層面學習一下其原理。1. 概述Gin 是一款高性能的 Go 語言 Web 框架,Gin 的一些特性:快速 基於 Radix 樹的路由,小內存佔用,沒有反射,可預測的 API 性能。 支持中間件 傳入的 HTTP 請求可以由一系列中間件和最終操作來處理,例如:Logger,Authorization,GZIP,最終操作 D ⌘ Read more
‘Concentration Camps’: Border Czar Says Trump to Detain Migrant Families
Jessica Corbett, Staff Writer - Common Dreams
_Stephan: Tom Homan looks like a thug and, I suspect, has been chosen by Trump because he has no qualms about behaving like one. I fear that on 21 January Homan will start the trend Trump has constantly promised, and that it is going to provoke a civil uprising in Blue states and in Red states it may become so intense that, as in the K … ⌘ Read more
Where Will All of Big Tech’s Nuclear Waste Go?
Matthew Gault, - Gizmodo
_Stephan: What few know today is that civilian nuclear power came about because Admiral Hyman Rickover figured out how to create nuclear-powered ships and submarines, and General Electric and Westinghouse which he was working with wanted a civilian market so they could develop a large enough corps of engineers and civilian nuclear reactors so that the whole effort would be as profitable as possible. What … ⌘ Read more
Merrick Garland’s DOJ criticized for impeding Ethics Committee’s Matt Gaetz investigation
Sarah K. Burns, Senior Digital Editor - Raw Story
_Stephan: It is my belief that in the future historians are going to see Senator Mitch McConnell and Attorney General Merrick Garand as two of the worst villains and the weakest men of this period. Biden is an institutionalist and he has been weak in dealing with Garland whom he should have replac … ⌘ Read more
Spain’s MetroCHARGE Powers EVs With Energy Recovered From Barcelona Subway Train Brakes
Paige Bennett, Contributing Writer - EcoWatch
_Stephan: Here is some good news although, once again, it is not a development in the United States. While we are about to go backwards to sustain the carbon era to the profit of the oligarchs that have supported criminal Trump’s election, the other democracies of the world are trying to exit that era, a … ⌘ Read more
Golang 中的 Context 如何讓代碼更智能、更安全、更易於擴展
Go 開發中,context 包已經成爲一個必不可少的工具。它提供了一種在不同的 goroutine 之間傳遞請求範圍內變量、取消信號和截止時間的方法。通過合理地使用 context,我們可以使代碼變得更智能、更安全,並且更易於擴展。本文將詳細探討 context 的作用以及如何在實際開發中應用它。什麼是 Context?————context 是 Go 1.7 引入的一個標準庫 ⌘ Read more
設計模式 in Go: Strategy
行爲模式旨在解決對象間通信和交互相關的問題,專注於定義那些複雜到無法靜態設計的協作策略,這些協作策略使得程序可以在運行時動態地進行職責派遣以實現更好的擴展。 今天我們開始第 9 個行爲模式的學習 —— Strategy(策略模式)。問題背景:—–策略模式用於當有多種可以互換的算法或策略來完成特定任務時。使用這些算法的客戶端不需要知道算法的具體實現細節。解決方案:—–定義一個所 ⌘ Read more
@bender@twtxt.net Bahahaha in hindsight I got rid of that 🤣 Just silly nonsense, just one of those things when you create an account on yet-another silly centralized platform(s) and go “fuck” someone’s already taken the username I want 😅
and going back to a handle you could input in your client to look for the user/file, like @nick@domain.tls
I think Webfinger is the way to go. It has enough information to know where to find that nick’s URL.
@prologic@twtxt.net does that webfinger fork made by darch work OK with yarn as it is now? (I’ve never used it, so I’m researching about it)
https://darch.dk/.well-known/webfinger/
Panama’s president and Trump spar over Panama Canal
Eric Bazail-Eimil and Mia McCarthy, Staff Writers - Politico
Stephan: Fascist Trump is giving the world a heads-up on the kind of international crises he is going to create as soon as he is sworn into office. He is making it clear that he isn’t going to address any of the geopolitical problems, he is going to bully little countries that have no means to oppose him. Trump is first and last a coward and a bully.
。問題背景:—–中介模式用於當一組對象需要以鬆散耦合的方式相互通信時。在複雜系統中,對象之間的直接通信會導致緊耦合和增加複雜性。中介模式有助於集中和控制對象間的通信 ⌘ Read more
Golang workspace 多模塊工作區是真的好
最近,使用了 Golang workspace,它是真的好。今日推薦給大家。Golang 在 1.18 版本開始支持多模塊工作區。使用多模塊工作區,可以幫助您同時在多個模塊中編寫代碼,並在這些模塊中輕鬆構建和運行代碼。要創建多模塊工作區,請確保你安裝的 Go 版本在 1.18 及以上纔行。我們以 Windows 爲例,演示如何創建工作區。一、創建一個目錄叫 workspace,這個是工作區的名稱。 ⌘ Read more
微服務的終極 Golang 框架:GoFr
前言–Go 語言因其出色的併發處理能力和簡潔的語法,成爲開發微服務的理想選擇。而 GoFr 框架則是一個專門爲構建 Go 微服務而設計的框架,它提供了一套完整的工具和最佳實踐,幫助開發者快速構建可靠的微服務應用。GoFr 框架簡介———GoFr 是一個專注於簡單性和性能的微服務框架。它的主要特點包括:零依賴:框架本身不依賴於任何第三方包 高性能:經過優化的路由和中間件系統 ⌘ Read more
使用 Buf 和 Nix 構建 Go 語言 gRPC 服務
在本文中,我們將探討如何在 Go 中構建一個可擴展且易於管理的 gRPC 服務。我們將使用 Buf 來管理 Protocol Buffers(Protobuf),並藉助 Nix 創建一個一致且可復現的開發環境。Buf 提供了一種高效且有組織的方式來管理 Protobuf,而 Nix 則確保開發環境在不同系統之間的一致性。通過本指南的學習,你將能夠構建一個具有清晰代碼結構和良好可維護性的完整 gRP ⌘ Read more
Monero Tech meeting scheduled for 30 December 2024 1800 UTC
The next Monero Tech meeting is scheduled to take place on Monday, December 30 2024 at 18:00 UTC, in the #no-wallet-left-behind 1 IRC-Libera/Matrix channels:
Based on the opinions given here2 I decided to go back to the No Wallet Left Behind Matrix room and IRC channel for the next i.e. coming Monday’s meeting, and to not contiune to hold meetings like the last one in the -dev Matrix room and IRC channel.
This meeting’s c … ⌘ Read more
Man, I love Gopher. I also love that I can use Termux to get Lynx and Gopher on the go. As much as I like Floodgap, Overbite on Android needs more features (like downloads).
Here’s what happens when the world’s richest man buys the presidency
Sabrina Haake, Contributing Writer - Raw Story
_Stephan: Here are the four things I think citizens should be demanding, with tens of millions going into the streets across the nation to demonstrate for them. First, the Supreme Court Citizens United decision has to be rendered meaningless by the Congress passing legislation that can overcome Trump’s veto. Second, Congress should pass le … ⌘ Read more
[ANN] Brave Wallet poll: ‘Should Monero be integrated?’ - Go vote!
Link: https://farside.link/nitter/lukemulks/status/1870239086231044598
u/Unimamo (Reddit) ⌘ Read more
Monero Tech meeting scheduled for 23 December 2024 1800 UTC
The next Monero Tech meeting is scheduled to take place on Monday, December 23 2024 at 18:00 UTC, in the #no-wallet-left-behind 1 IRC-Libera/Matrix channels:
Based on the opinions given here2 I decided to go back to the No Wallet Left Behind Matrix room and IRC channel for the next i.e. coming Monday’s meeting, and to not contiune to hold meetings like the last one in the -dev Matrix room and IRC channel.
This meeting’s c … ⌘ Read more
Top 5 Apple Products to Look Forward to in 2025
It’s looking like 2025 is going to be an important year for Apple, with the company planning to revamp the iPhone, push further into smart home products, and improve Apple Intelligence. There are tons of new products rumored for 2025, including new iPhones, M4 Macs, a smart home command center, and much more.
。問題背景:—–在設計一系列步驟的算法時,有些步驟可能在各個子類中都是通用的,而其他步驟則會有所不同。如果我們每個子類都實現所有步驟,將會產生大量重複代 ⌘ Read more
Republicans cry foul with some judges ‘unretiring’ before second Trump term
Anthony Adragna, Staff Writer - Politico
Stephan: The Republicans have been trying to take over the nation’s judiciary for several decades led by Leonard Leo and the Federalist Society. This “unretiring” of Democratic judges, blocks Trump as this article describes. This isn’t getting much media attention, but it is going to have an interesting positive effect.
進行通信。相比傳統的單體架構,微服務架構具有高靈活性和擴展性,使團隊可以在開發、測試和部署上實現高度的自治。要深度理解微服務架構的基礎和設計。一. 微服務基礎1. 微服務架構的核心基礎—————–服務劃分(Service Partitioning) 微服務的核心是將應 ⌘ Read more
Dr. Oz Exposed for Colossal, Multimillion Dollar Conflict of Interest
Edith Olmsted, Staff Writer - The New Republic
_Stephan: Out of half a dozen stories I saw today reporting the organized corruption that constitutes the incoming Trump administration, I picked this one because it is going to directly affect your life if you are a recipient of Medicare of Medicaid. But I thought I should also mention that Elon Musk spent $277 million buying Trump the Pr … ⌘ Read more
NSQ 分佈式消息隊列的最佳實踐 - Go 語言實戰指南!
NSQ 是由 Go 語言編寫的一個分佈式實時消息隊列系統,以其簡單、高性能和可擴展性著稱。今天咱們就來深入瞭解如何在實際項目中最佳地運用 NSQ,讓你的系統既穩定又高效!NSQ 架構簡介——–NSQ 採用分佈式架構,主要包含以下核心組件:nsqd: 接收、排隊、投遞消息的守護進程 nsqlookupd: 管理拓撲信息並提供發現服務 nsqadmin: Web 管理界面,用於實 ⌘ Read more
設計模式 in Go: State
行爲模式旨在解決對象間通信和交互相關的問題,專注於定義那些複雜到無法靜態設計的協作策略,這些協作策略使得程序可以在運行時動態地進行職責派遣以實現更好的擴展。今天我們開始第 4 個行爲模式的學習 —— State Pattern(狀態模式)。問題背景:———當一個對象的行爲需要根據其內部狀態的變化而變化時,通常的做法是使用 if-else 語句來處理不同的情況。然而,隨着狀態和行爲數量的 ⌘ Read more
golang 新一代標準日誌庫 slog
log/slog 是 Go 1.21 引入的一個新的日誌記錄包,旨在提供比傳統 log 包更靈活和現代化的日誌功能。它支持結構化日誌、可配置的日誌級別、靈活的日誌輸出格式等功能,彌補了舊版 log 包的不足。對比舊版 log 包 | 特性 | log | slog || — | — | — || 日誌級別支持 | 無 | 內置支持(Debug、Info 等) || 結構化日誌 | ⌘ Read more
Go 語言中嘗試延遲執行一個函數
Go 編程語言提供了豐富的特性,使得像 Google 這樣的大型公司能夠高效地進行軟件開發。它爲許多雲服務提供商和分佈式服務的底層基礎設施提供支持,同時保持了簡單易學的特點。在 Go 中,我們可以根據需要使用指針類型和值類型。在本文中,我們將探討一個有趣的使用場景。函數調用中的切片和映射傳遞————-通常,在 Go 中調用函數時,切片(slice)和映射(map)並不是通過指針傳遞 ⌘ Read more
用 Option 模式和對接層簡化和管理 Go 項目的外部 API
在項目開發實現功能需求的過程中不可避免的要與外部第三方系統進行交互,這些交互大部分是通過請求 API 接口來完成的。前幾節提到但一直沒帶大家用代碼過一遍的 Lib 層就是負責寫第三方對接邏輯的,通過把跟第三方對接的邏輯限制在 Lib 層裏,讓項目的其他部分不需要關注第三方的邏輯,從而達到每部分都職責分明,這樣項目的代碼多起來後纔不會變得臃腫和雜亂。不過在演示 Lib 層的使用前我們需要先一起給項目 ⌘ 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
Go 語言五種實現 broadcaster 的方法,你喜歡哪一種?
昨天看到 Jaana Dogan 創建了一個 broadcaster 的庫, 話說美女 Jaana Dogan 又回到了 Google 了麼。她的實現我們就當做 broadcaster 的第一個實現吧。什麼是 broadcaster?就是村口的大喇叭,一播音,全村都知道了。Jaana Dogan 實現的這個 broadcaster 只有通知的功能,沒有傳遞消息,也不能重用。我們就以這個庫爲基準,看 ⌘ Read more
since twtxt is based on text files, I think you can consider @domain.tld as an alias of http://domain.com/twtxt.txt (or https://domain.com/tw.txt, among other combinations in the wild).
Or perhaps you can use DNS TXT records?
Although I think that’s a bit more complicated for some environments and users, I’d go with looking for a default /tw*.txt
One benefit with bluesky is your username is also a website. And not a clunky URL with slashes and such. I wish twtxt adopted that. I have advocated for webfinger to for twtxt to let us do something like it with usernames. Nostr has something like it
By default the bsky.social urls all redirect to their feeds like: hmpxvt.bsky.social
Many custom urls will redirect to some kind of linktree or just their feed cwebonline.com or la.bonne.petite.sour.is or if you are a major outlet just to your web presence like https://theonion.com or https://netflix.com
Its just good SEO practice
Do all nostr addresses take you to the person if typed into a browser? That is the secret sauce.
No having to go to some random page first. no accounts. no apps to install. just direct to the person.
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
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