Searching txt.sour.is

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

Unfortunately not on that front. Still the same 404 posting errors and oddly occasional login errors.

That’s why I was wondering if using Go 1.22.4 could be an issue. I don’t know how exactly. Only way to test is to rebuild it with an older version I guess, which is why I did the make clean in the first place. Old habits die hard lol.

⤋ Read More

@prologic@twtxt.net Righteo, so rookie error - I obviously had some untracked, rather important files for starting my pod and I ran a make clean. Why I originally had them in the git directory is anyone’s guess. Anyway it blew away those files including the database so that’s that. So your good self and @bender@twtxt.net etc - apologies but your profiles got nuked as well (as did my own but easily recreated).

Another thing I noticed which was the reason I ran make clean in the first place. I noticed my pod was being built with Go 1.22.4. Could this be a problem @prologic? preflight.sh actually errors out about it…

⤋ Read More

【The K 聊汽车安全(1)】带你认识全球汽车碰撞安全法规
接下来的一段时间,我将推出【The K 聊汽车安全】系列文章,我尽量用所有人都看得懂的语言,给大家普及汽车安全相关的知识,欢迎持续关注。

第一讲从汽车碰撞安全法规说起。

与十年前相比,汽车消费者和汽车爱好者,对于国内第三方安全评价规程的认识有了显著的提升,我们都知道评价汽车安不安全要看碰撞得分,“五星”是最高评价得分。

那么除了我们熟知的C-NCAP和C-IASI,全球还有哪些汽车安全法规呢?

全球汽车安全评价标准

我们知道,不同国家/地区对于汽车准入条件是不一样的,全球各地的第三方评价标准也是各有差异。

那么全球有哪些与汽车碰撞相关的评价标准呢?

我们先来看一个总览:

Image

全球汽车法规Overview

上图包含了全球各地区的主要汽车安全标准。

总体而言,全球汽车安全法规主要分为 两大类: **安全法 … ⌘ Read more

⤋ Read More

Go 實現可複用的通用內存緩存
本文介紹瞭如何在 Go 語言中創建一個可重用的內存通用緩存,並提供了具體的實現代碼和使用示例。Prerequisites安裝 Go go-cache package[1] 實現首先,創建一個 cache package,它包含我們正在構建的緩存的代碼。package cacheimport ( ”time” ”github.com/patrickmn/go-cache”)使用泛型實現一 ⌘ Read more

⤋ Read More

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

⤋ Read More

10 分鐘瞭解 Golang 泛型
泛型是 Golang 在 1.18 版本引入的強大工具,能夠幫助我們在合適的場合實現簡潔、可讀、可維護的代碼。原文: Go Generics: Everything You Need To Know[1]導言可能有人會覺得 Go 泛型很難,因此想要借鑑其他語言(比如 Java、NodeJS)的泛型實踐。事實上 Go 泛型很容易學,本文希望能幫助讀者更好的理解 Go 泛型。 👉注:本文不會將 ⌘ Read more

⤋ Read More

Beta 1 of iOS 17.6, macOS Sonoma 14.6, iPadOS 17.6 Released for Testing
Apple may be beta testing the next major system software releases with MacOS Sequoia beta and iOS 18 beta, but concurrently they’re also continuing to beta test upcoming system updates for existing iOS and macOS versions. Specifically, Apple has just released the first beta versions of iOS 17.6, MacOS Sonoma 14.6, iPadOS 17.6, watchOS 10.6, … [Read More](https://osxdaily.com/2024/06/17/beta-1- … ⌘ Read more

⤋ Read More

Here’s Everything New in the Messages App on iOS 18
iOS 18 adds many new features to the Messages app, including the ability to schedule messages to be sent later, the ability to use any emoji or sticker as a Tapback, text formatting options like bold and italics, and much more.

Image

iOS 18 is currently available in beta for members of the Apple Developer Program, with … ⌘ Read more

⤋ Read More

PineTab2: A Linux Tablet Featuring Rockchip RK3566 SoC and DanctNix Arch Linux
The PineTab2 is a Linux tablet based on the Rockchip RK3566 System-on-Chip clocked at 1.8GHz and comes pre-loaded with DanctNix Arch Linux. Recently announced on Pine64’s social media, this device is now available again for interested customers. Powered by the Rockchip RK3566 processor, the PineTab2 integrates four Cortex-A55 64-bit ARM cores running at 1.8 GHz, […] ⌘ Read more

⤋ Read More

庄园领主的一些发展方式和技巧
1.主要贸易村镇

发挥市场集中和首位作用 可以有 400 多人口,大量依靠贸易,食物依赖进口,从早期卖优势作物,后期点出绵羊繁殖的科技以后,产能最过剩的产业链是 羊毛 毛线 斗篷 产业链,包括绵羊和羔羊都可以卖,真实体现了圈地运动羊吃人的场景,从引进 30 只羊,到几年后 400 头各种羊,还是主要兵员产地,资金充足,锁子甲和头盔大量进口,生产武器和盾牌,能拉出 5 队满编民兵。

Image

Image

2.小型村镇

堡地不用多 36 栋 3 级堡地 就能有 216 人口 种胡萝卜 养鸡 种黑麦 打猎即可维持,啤酒和麦芽靠贸易进口,卖一些优势产业作物有一些利润即可,每年 9 月小麦收获,10 月种下一年冬小麦,辛苦耕种以后,就磨出面粉烤 … ⌘ Read more

⤋ Read More

Alogic Unveils 5K 27-Inch Touchscreen Display and More
Alogic today introduced several new display options that it plans to ship out later in 2024, including a 5K 27-inch touchscreen display, several ultrawide displays, and portable touchscreen monitors.

Image

The Clarity Touch 5K 27” UHD Monitor has a resolution identical to that of the Studio Display or the LG UltraFine 5K, but with the … ⌘ Read more

⤋ Read More

使用 Golang 構建你的第一個 k8s Operator
本文將展示如何使用 Operator SDK[1] 搭建一個基本的 k8s Operator。在本文中,您將瞭解如何創建一個新項目,並通過創建自定義資源定義 (CRD) 和基本控制器來添加 API。我們將在 CRD 中添加字段,以包含一些有關期望狀態和實際狀態的信息,修改控制器以調和新資源的實例,然後將 operator 部署到 Kubernetes 集羣。Prerequisites安裝 Oper ⌘ Read more

⤋ Read More

MacOS Sequoia 15 Beta 1 Available to Download Now
Apple has rolled out the first beta version of MacOS Sequoia 15 to users enrolled in the developer beta testing program for Macintosh system software. MacOS Sequoia 15 introduces a variety of new features and capabilities for the Mac, including iPhone Mirroring, Apple Intelligence AI features, easy window tiling, a dedicated Passwords app, improvements to … [Read More](https://osxdaily.com/2024/06/11/macos-sequoia-15-beta-1-available- … ⌘ Read more

⤋ Read More

Mixtile mPCIe Module Adds Zigbee & Z-Wave Support to Mixtile Edge 2
The Mixtile 2-in-1 Zigbee & Z-Wave mPCIe Interface Module enhances smart home gateways by integrating advanced wireless technologies. This new product is designed for any IoT gateway with a mini PCIe interface running Home Assistant, it also works seamlessly with the Mixtile Edge 2 Kit, offering versatility for various setups. The Mixtile module incorporates two […] ⌘ Read more

⤋ Read More

利用 Go 語言加速 Redis 操作:掌握 go-redis 包的高效應用技巧
一、golang 操作 redis 1、安裝初始化文件夾 c:\aaa mkdir testredisc:\aaa\testredis go mod init testredis安裝 go get github.com/go-redis/redis/v82、基本使用 package mainimport ( “context” “fmt” “github.com/go-r ⌘ Read more

⤋ Read More

iOS 18 Lets You Hide App Labels on Your iPhone Home Screen
As part of its Home Screen customization overhaul, iOS 18 lets iPhone users hide the labels on app icons for a cleaner look.

Image

Turning off the labels causes the icons to expand and take up the space where the text usually appears underneath. Here’s how it currently works in the iOS 18 Developer Beta.

  1. On the Home Screen, press and hold on an empty area.

… ⌘ Read more

⤋ Read More

iOS 18 Beta 1 Download Available Now for iPhone & iPad
Apple just announced iOS 18 at the WWDC 2024 keynote, and it’s already available to download and install onto eligible iPhone models right now. Specifically, iOS 18 beta 1 is available to download for registered Apple Developers. You can also find iPadOS 18 beta 1 available to download too if you’re using iPad, along with … Read MoreRead more

⤋ Read More

Gajim: Gajim 1.9.0
Half a year after the last release, Gajim 1.9.0 is finally here. 🎉 This release brings long awaited support for message replies and message reactions. Message Moderation has been improved as well. Say hello to voice messages! Thank you for all your contributions!

What’s New

It took us quite some time, but now it’s here: Gajim 1.9 comes with a complete database overhaul, which enables new features such as Message Replies and Message Reactions.

Message Replies ( [XEP-0461: Message Repl … ⌘ Read more

⤋ Read More

M5PoECAM-W V1.1: A Programmable PoE Camera with ESP32+W5500 Chipset & 3MP OV3660 Sensor
This week, M5Stack launched the M5PoECAM-W V1.1, a Power over Ethernet camera with Wi-Fi 802.11 b/g/n support. Powered by the robust “ESP32 + W5500” chipset, it features a 3-megapixel OV3660 sensor that offers a 65° field of view, ideal for extensive image capture. This ESP32 module comes equipped with 16MB of Flash memory and 8MB […] ⌘ Read more

⤋ Read More

Revealed: Complete iPhone 16 Pro and iPhone 16 Pro Max Dimensions
This year, Apple is set to increase the size of its premium iPhones, and it will be the first size update we’ve had in several years. While we’ve known for some time that the iPhone 16 Pro will measure in at 6.3 inches (up from 6.1) and the Pro Max will measure in at 6.9 inches (up from 6.7), we have not had a complete picture of every dimension, until now.

![](https://images.macrumors.com/article-new/2024/06/iphone-16-pro-max-i … ⌘ Read more

⤋ Read More

考考你它在哪,拍摄者即将出发,他乘坐的车次是?
个人认为答案为:G1065次北京南-青岛

1、首先梳理图中关键信息:

(1)对面列车为终到上海虹桥,当前时间为四位数(即10:00以后)。

Image

(2)远处站台出站口写着 “ 7(西)”,近处对面列车所在站台反光也为“ 7(西)”

Image

Image

(3)车站有比较特色的顶棚。

![] … ⌘ Read more

⤋ Read More

Go:泛型全面解析,從基礎到實際應用
引言Go 語言在其 1.18 版本中引入了泛型功能,這是一個具有里程碑意義的更新。此前,Go 開發者常常藉助接口、反射等方法間接實現泛型的需求,這既複雜又影響性能。泛型的引入使得代碼不僅更加靈活,同時也更加高效和類型安全。本文通過解析一段 Go 語言的泛型示例代碼,詳細講解泛型的特性及其在 Go 中的實際應用。Go 語言泛型特性詳解基本語法和定義泛型,或者說參數化類型,是一種在編程時不具體指定其數 ⌘ Read more

⤋ Read More

Golang 插件系統實現
插件可以在解耦的基礎上靈活擴展應用功能,本文介紹瞭如何基於 Golang 標準庫實現插件功能,幫助我們構建更靈活可擴展的應用。原文: Plugins with Go[1]什麼是插件簡單來說,插件就是可以被其他軟件加載的軟件,通常用於擴展應用程序的功能和外觀,插件的開發人員甚至可以不直接修改基礎應用程序。你很可能在日常生活中使用過插件,也許用的是其他名稱,如擴展 (extensions) 或附加 ⌘ Read more

⤋ Read More

實現微服務註冊的高效利器:gRPC 與 Nacos 集成教程
一、golang gRPC 註冊 nacosgithub 地址 nacos-sdk-go(opens new window) nacos 官網 1、目錄結構 2、pb/person.protosyntax = “proto3”;option gopackage = “./person”;package pb;message Person { string name = 1; in ⌘ Read more

⤋ Read More

Go 實現的一個 bitset,設計思想非常棒,值得參考收藏!
這兩日讀了一個實現二維碼生成的庫。其中的 bitset 設計得非常好,就摘抄記錄下來,與大家一起分享。bitset 實現一個可擴展的 bit 集合,可以添加 bit 和查看 bit。它在二維碼生成中,用來將編碼後的內容協助生成位圖,然後通過位圖進行繪製二維碼。二維碼的黑白格子正好用二進制 0 和 1 來表示。 下面開始詳細講解這個功能設計: 一、我們使用一個結構體來存儲 bit 序列。Bits ⌘ Read more

⤋ Read More

Golang 中 JSON 操作的 5 個常見陷阱(建議收藏!)
JSON 是許多開發人員在工作中經常使用的一種數據格式。它一般用於配置文件或網絡數據傳輸等場景。由於其簡單、易懂、可讀性好,JSON 已成爲整個 IT 界最常用的格式之一。對於這種情況,Golang 和許多其他語言一樣,也提供了標準庫級別的支持, encoding/json[1]。就像 JSON 本身很容易理解一樣,用於操作 JSON 的編碼 / JSON 庫也非常容易使用。但我相信,很多開發者可 ⌘ Read more

⤋ Read More

Golang 狀態機設計模式
本文介紹了 Golang 狀態機模式的一個實現示例,通過該模式,可以解耦調用鏈,有助於實現測試友好的代碼,提高代碼質量。原文: Go State Machine Patterns[1]導言在我們開發的許多項目中,都需要依賴某種運行狀態從而實現連續操作。這方面的例子包括:解析配置語言、編程語言等 在系統、路由器、集羣上執行操作… ETL(Extract Transform Loa ⌘ Read more

⤋ Read More

The XMPP Standards Foundation: Scaling up with MongooseIM 6.2.1
MongooseIM is a scalable, extensible and efficient real-time messaging server that allows organisations to build cost-effective communication solutions. Built on the XMPP server, MongooseIM is specifically designed for businesses facing the challenge of large deployments, where real-time communication and user experience are critical. The main feature of the recently released [MongooseI … ⌘ Read more

⤋ Read More

Armbian 24.5.1: Emphasizing Stability & User Experience For Diverse Hardware Platforms
Armbian 24.5.1: Emphasizing Stability & User Experience For Diverse Hardware Platforms
The release of Armbian 24.5.1 Havier marks a significant update focusing on stability enhancements and user experience improvements for a variety of supported hardware platforms. This latest version introduces substantial modifications and updates as detailed in an extensive changelog. ⌘ Read more

⤋ Read More

在 Golang 中不要簡單的返回 err
相反, 添加相關的調試細節。有些人喜歡抱怨 Go 需要編寫大量的 “ iferr!=nil{returnerr}” 代碼塊。這些人並沒有真正理解 Go 的錯誤處理機制。實際上, 他們抱怨的正是處理 Go 錯誤的完全錯誤方式: returnerr是一種反模式。讓我通過一些示例代碼來解釋我的意思: 一個用於配置 mTLS[1] 連接的輔助庫。(“雙向 TLS” 是向服務器證明客戶端身份的一種方式。)p ⌘ Read more

⤋ Read More

探索 Go 語言數據庫查詢的終極指南:深入解析 GORM 的強大查詢功能
一、GORM 基本查詢1、基本查詢func (c UserController) UserSelect() { //1、查詢id=3的用戶 user := models.User{Id: 3} models.DB.Find(&user) //2、查詢所有數據 user := []models.User{} result := models.DB.Find(&user) //5 (統計 ⌘ Read more

⤋ Read More

名画pk决赛:当名画《清明上河图》PK《千里江山图》,你觉得哪幅画在你心中更胜一筹?
太巧了,这正是个把月前我在高中美术鉴赏课中抛给学生的一个辨析问题。学生们回答的很不错。我就直接搬运一下他们的答案吧。先说结果。52人的班级多过半数(有超过30人)投给了《清明上河图》,我也是。学生比较成熟的代表观点如下:

选《清明上河图》方:

1 题材稀缺,古代绘画中描绘祖国大好河山的作品比比皆是,关注民生反映现世生活的比较稀有,表现内容看似平常,但人间烟火的平凡朴实更能打动人心,相较古人胸中丘壑的理想,不仅具有丰富的艺术价值,历史价值更胜一筹。

2 画工超牛,几百个人物生动形象,细致描画,三教九流,神态各异。细节丰富耐看,画面节奏感强,突出高潮,故事性、趣味性,引人入胜。

3 画面有深刻内涵,通过特有的风俗画的艺术形式即实现了当时隐喻曲谏的政治目的,如今又是考证宋代社会经济,民生阶层,城市治理,对外贸易交流,国防政策及实效的第一手资料,比《东京梦华录》的记载更详实生动细致。

4 作品强烈的个 … ⌘ Read more

⤋ Read More

Top Stories: iOS 17.5.1 Fixes Concerning Photos Bug, All-New iPhone 17 Model Rumored, and More
It’s been quite a week of Apple news and rumors, ranging from a concerning bug with deleted photos reappearing on users’ devices to hot rumors about a new high-end iPhone model for 2025 and a MacBook with a foldable screen coming as soon as 2026.

Image

Other news and rumors this week included fresh expectations for iOS 18 fe … ⌘ Read more

⤋ Read More

高考志愿填报有哪些方法和技巧?
志愿填报方法其实也是这些年老生常谈的问题了,首先从填报模式上来看,目前志愿填报就是三种模式:

1.新高考的专业+院校模式,适用于2024年的浙江、山东、辽宁、河北、重庆、贵州以及2025年的青海。

2.新高考的院校+专业组模式,2024年适用于上海、北京、天津、海南、江苏、湖南、湖北、广东、福建、黑龙江、吉林、甘肃、广西、安徽、江西等省市和自治区;2025年第一年参加新高考的省份中,除青海外都采用该模式。

3.老高考模式,2024年适用于陕西、山西、宁夏、西藏、新疆、四川、云南、青海、河南等省份。

志愿填报的方法当然多种多样,我也只是一家之言,但可以肯定的是不同的志愿填报模式对志愿填报方法肯定会存在影响,我尽量从这一层面来给大家分享一些志愿填报的思路和注意事项。

对于专业+院校模式,这种模式优点很明显,没有调剂,而且志愿填报的灵活度非常大,可以充分考虑考生对专业、院校、城市等等各方面的需求,夸张点说几乎是想怎么填就怎么填。但同样也存在缺点 … ⌘ Read more

⤋ Read More

iOS 17.5.1 & iPadOS 17.5.1 Update Released to Fix Reappearing Deleted Photos Bug
Apple has released a small bug fix update for iPhone and iPad versioned as iOS 17.5.1 and iPadOS 17.5.1. The update specifically aims to fix a very strange bug where deleted photos would randomly reappear on some users devices. Sometimes the photos that reappeared on user devices were deleted many years prior, raising serious questions … [Read More](https://osxdaily.com/ … ⌘ Read more

⤋ Read More

ADHD需要哪些因素才能取得更高成就呢?
Garber将取得较高成就的ADHD的共同特征进行了归类,将之称为“复原力(resilience factor)”,可以被分为内部因素(internal)和外部因素(external)

Image

图片来自:https://www.linkedin.com/pulse/internal-innovation-versus-external-yaron-flint

内部因素:

1.控制(Control):关注如何获得并保持对自己生活的控制;

2.动机(Desire):积极或消极的动机都可以,比如“我希望我的理想可以实现”。

3.目标导向(Goal orientation):聚焦于特定的、明确的目标,当然这个目标应该是现实的、可行性的;

4.重构(Reframing):重新定义ADHD,找到自己的优势,从而克服困难和挑战;

5.持之以恒(Pers … ⌘ Read more

⤋ Read More

A人好书-社群书单分享

序言

在快节奏、充满干扰的世界里,找到一片宁静的阅读空间似乎是一项挑战。但阅读不应该是负担,它应该是一次冒险,一次发现,一次心灵的旅行。

今日书单 1.《为什么长大》 ​苏珊·奈曼

Image

《为什么长大》 ​苏珊·奈曼

“成长更多地关乎勇气而非知识:世界上所有的知识都无法代替你运用你自己的判断力的勇气。”

——很有启发的易读哲学书 by蘑菇

2.《射雕英雄传》 ​金庸

Image

《射雕英雄传》 ​金庸

“可是天下尽有聪明绝顶之人,文才武功,琴棋书画,算数韬略,以至医卜星相,奇门五行,无一不会,无一不精!只不过你们见不着罢了。”

_——傻小子初入社会遇到很多人心险恶的故事,不知为 … ⌘ Read more

⤋ Read More

Cloudflare 最佳實踐:如何通過 Go PGO 回收 CPU
Golang 1.20 在 go 編譯器引入了對配置文件引導優化 (PGO) 的支持。這允許指導編譯器根據系統的真實行爲引入優化。在 Cloudflare 的可觀察性團隊中,我們維護着一些基於 Go 的服務,這些服務在全球範圍內使用數千個內核,因此,即使宣傳的節省 2-7%,也能大幅減少我們的 CPU 佔用空間,而且實際上是免費的。這將減少我們內部服務的 CPU 使用率,釋放這些資源來滿足客戶請求 ⌘ Read more

⤋ Read More

QCS6490 Vision-AI Development Kit: Featuring 13 TOPs NPU and 8-Core Kryo 670 CPU
QCS6490 Vision-AI Development Kit: Featuring 13 TOPs NPU and 8-Core Kryo 670 CPU
Avnet has introduced the QCS6490 Vision-AI Development Kit, a sophisticated solution designed for vision-based AI applications. This kit includes an energy-efficient, multi-camera SMARC 2.1.1 compute module powered by the Qualcomm QCS6490 SoC. ⌘ Read more

⤋ Read More