GitHub’s top blog posts of 2023
As the year winds down, we’re highlighting some of the incredible work from GitHub’s engineers, product teams, and security researchers.
The post GitHub’s top blog posts of 2023 appeared first on The GitHub Blog. ⌘ Read more
ProcessOne: Matrix protocol added to ejabberd
ejabberd is already the most versatile and scalable messaging server. In this post, we are giving a sneak peak at what is coming next.
ejabberd just get new ace in it sleeve – you can now use ejabberd to talk with other Matrix servers, a protocol sometimes used for small corporate server messaging.
Of course, you all know ejabberd supports the XMPP instant messaging protocol with hundreds of XMPP extensions, this is what it is famous for.
The second ma … ⌘ Read more
ProcessOne: Automatic schema update in ejabberd
ejabberd 23.10 has a new feature that is currently in beta testing:
Automatic relational schema creation and update.
Previously, if you were using ejabberd with an external relational database, you might have to manually apply some schema changes that come with new features when you upgrade to a new ejabberd release. ejabberd can now handle this schema upgrade automat … ⌘ Read more
How to Open a Pop-up Window on Mac in Safari
While pop-up windows have long been the bane of the web, some websites require the use of pop-up windows for various reasons. Safari for Mac will automatically block pop-up windows, but since some websites require the usage of popup windows, you may end up in a situation where you need to open a pop-up window … Read More ⌘ Read more
[47°09′03″S, 126°43′13″W] Raw reading: 0x658C5811, offset +/-3
ProcessOne: Happy New Year: Celebrating 21 Years of Innovation with ejabberd
Time flies, and it’s hard to believe that ejabberd, our beloved open-source project, celebrated its 21st anniversary last November 16th! It’s a milestone that we’ve proudly highlighted over the years – remember the 4th, [10th](https://www.process-one.net/blog/close … ⌘ Read more
Linux Foundation now spends only 2% of their revenue on Linux
Lunduke’s Big Tech Show - Dec 27, 2023 ⌘ Read more
First Successful Intercontinental Missile! ⌘ Read more
[47°09′46″S, 126°43′56″W] Raw reading: 0x658C11C1, offset +/-4
[47°09′43″S, 126°43′37″W] Raw reading: 0x658BD981, offset +/-4
Supersymmetry
⌘ Read more
When Apollo 8 Discovered the Earth ⌘ Read more
How to Reverse Function Keys (F1, F2, etc) on MacOS Sonoma
Some Mac users have noticed that after updating to macOS Sonoma, or various macOS Sonoma updates, their function keys are reversed. A common example of this is that when you tap on the F1 or F2 key to adjust the display brightness, nothing happens. Or you may press F10, F11, or F12 to adjust audio … Read More ⌘ Read more
tar 歸檔文件處理操作指南
*1. tar 文件的概述打包和壓縮多個文件在文件處理中,經常需要將多個文件打包成一個歸檔文件以便傳輸或存儲。tar 文件就是一種常見的歸檔文件格式,它能夠將多個文件和文件夾組織成一個單一的文件。結構簡單,跨平臺特性好Tar 文件採用簡單的文件組織結構,這種結構使得 tar 文件在不同操作系統之間具有很好的兼容性。Go 語言通過標準庫內置了對 tar 文件的支持,使得在 Go 中處理 tar 文件 ⌘ Read more
深入淺出內存管理:空間分配及逃逸分析
大家好,我是小❤,一個漂泊江湖多年的 985 非科班程序員,曾混跡於國企、互聯網大廠和創業公司的後臺開發攻城獅。引言—–內存管理,是開發者在程序編寫和調優的過程中不可繞開的話題,也是走向資深程序員必須要了解的計算機知識。有經驗的面試官會從內存管理的掌握程度去考察一個候選人的技術水平,這裏面涉及到的知識可能包括操作系統、計算機組成原理以及編程語言的底層實現等。說到內存,其實就是存儲器,我們可以 ⌘ Read more
基於 Go-Kit 的 Golang 整潔架構實踐
如何用 Golang 實現簡潔架構?本文介紹了基於 Go-Kit 實現簡潔架構的嘗試,通過示例介紹了簡潔架構的具體實現。原文: Why is Go-Kit Perfect For Clean Architecture in Golang?[1]簡介Go 是整潔架構 (Clean Architecture) 的完美選擇。整潔架構本身只是一種方法,並沒有告訴我們如何構建源代碼,在嘗試用新語言實現時 ⌘ Read more
基於 FX 構建大型 Golang 應用
Uber 開源的 FX 可以幫助 Go 應用解耦依賴,實現更好的代碼複用。原文: How to build large Golang applications using FX[1] 構建複雜的 Go 應用程序可能會引入很多耦合Golang 是一種流行編程語言,功能強大,但人們還是會發現在處理依賴關係的同時組織大型代碼庫很複雜。Go 開發人員有時必須將依賴項的引用傳遞給其他人,從而造成重用代碼 ⌘ Read more
手把手教你寫個自己的 protoc-gen-go
你是否用過 protobuf 或 gRPC? 你們公司項目的 API 有沒有用到 proto 文件? 本文將帶你一步一步寫個類似protoc-gen-go-grpc的 proto 文件生成工具,從 proto 文件生成兼容 Go 標準庫的 HTTP 框架代碼。掌握它之後,你就能隨心所欲的從 proto 文件生成gin、echo、net/http代碼,甚至生成你自己的框架代碼。 別擔心 ⌘ Read more
從 Go channel 中批量讀取數據
有時候批量積攢一批數據集中處理,是一個高效的提高程序性能的方法,比如我們可以批量寫入數據庫,批量發送消息到 kafka,批量寫入網絡數據等等。 批量把數據收集出來,我們常用 channel 類型,此時 channel 的功能就是一個 buffer, 多個生產者把數據寫入到 channel 中,消費者從 channel 中讀取數據,但是 Go 的 channel 並沒有提供批量讀取的方法,我們需要自 ⌘ Read more
Go 語言實現高性能分佈式鎖
在分佈式系統中,實現跨不同服務或節點的同步操作是一個常見的挑戰。分佈式鎖提供了一種有效的機制來確保在分佈式環境中只有一個進程或線程能執行特定的操作。本文將探討在 Go 語言環境中實現分佈式鎖的原理和方法,包括使用 Redis 和 Etcd 作爲鎖的存儲後端,並提供實際的代碼示例。分佈式鎖的基本概念———定義和用途分佈式鎖用於在不同的進程或系統間同步訪問共享資源。 它特別適用於分佈 ⌘ Read more
Hydrothermal Vents
⌘ Read more
Merry Christmas, Happy Holidays, or just a great day! 🎄🎅 ⌘ Read more
How to Track Santa from Mac, iPhone, iPad, PC, Android, etc
Want to track Santa’s progress as he delivers gifts around the world? You can do that, thanks to NORAD. NORAD, also known as North American Aerospace Defense Command, may be the aerospace and maritime defense system for North America, with their vision to “outpace global competitors, deter adversaries, deny and defeat threats through all-domain awareness, … [Read More](https://osxdaily.com/2023/12/24/how-to-track-santa- … ⌘ Read more
Daily Deals: Gift Cards, Apple Watch Series 9 for $329, iPad Air for $499, etc
Shopping for some discounted Apple products? Amazon continues to amaze with not only great deals, but some of their offers are available with same-day delivery, meaning you can still get gifts in time for Christmas… if you act quickly! Amazon stock moves fast so you may need to explore different color options and sizes for … [Read More](https://osxdaily.com/2023/12/24/daily-deals-gif … ⌘ Read more
Insanely High-Pressure Steam Harnessed in a Turbine! ⌘ Read more
[47°09′43″S, 126°43′55″W] Reading: 1.60000 PPM
Remko Tronçon: Uxn in WebAssembly
While watching a Strange Loop talk on concatenative\
programming,
I learned about Uxn,
a small virtual machine that runs games, editors, drawing programs, … Uxn has been ported to various platforms, including classic consoles such as the Nintendo DS … ⌘ Read more
How to Send Full Quality Images & Video on WhatsApp
WhatsApp now offers the ability to send full original quality photos and videos over the messaging service. You may already be familiar with sending HD photos on WhatsApp, but now with a new feature addition and change, you can send full quality photos and videos, meaning there’s no compression at all, over WhatsApp too. Sending … Read More ⌘ Read more
Daily Deals: Apple Watch 9 for $329, Apple Watch SE2 for $199, iPad mini for $399, etc
Christmas may be two days away, but Amazon still has a handful of Apple products that can ship today or arrive in time, depending on your location anyway. Treat a loved one, or yourself, there is still time! Amazon item stock changes quickly so you may need to check different colors, sizes, bands, etc for … [Read More](https://osxdaily.com/2023/12/23/daily-deals-apple- … ⌘ Read more
How to Send Full Quality Images & Video on WhatsApp
WhatsApp now offers the ability to send full original quality photos and videos over the messaging service. You may already be familiar with sending HD photos on WhatsApp, but now with a new feature addition and change, you can send full quality photos and videos, meaning there’s no compression at all, over WhatsApp too. Sending … Read More ⌘ Read more
Quelques jours de confiserie
L’habitué s’en doutait, le lecteur de passage en aura ici la confirmation : ce blog va s’arrêter quelques jours pendant lesquels les uns et les autres pourront se retrouver autour d’une bonne table, d’un sapin, de menus cadeaux, des chatons mignons, de quelques bonnes bouteilles et, je l’espère pour vous tous, les êtres chers et les […] ⌘ Read more
Have You Ever Heard Of Aerogel? #neildegrassetyson href=”https://txt.sour.is/search?q=%23startalk”>#startalk** ⌘ Read more
Microsoft Ending Support For Windows 10 Could Send 240 Million PCs To Landfills, Study Finds
According to Canalys Research, Microsoft’s plan to end support for Windows 10 could result in about 240 million computers being sent to landfills. “The electronic waste from these PCs could weigh an estimated 480 million kilograms, equivalent to 320,000 cars,” adds Reuters. From the report: W … ⌘ Read more
Deals: Apple Watch 9 for $329, MacBook Air 15″ for $999, iPad mini for $399, Delivery for Xmas!
Amazon continues to offer great deals on Apple products, with many still being available to ship immediately and arrive in time for Christmas. If you’re shopping for yourself or someone else, you’ve still got time! Plus, Amazon is continuing to sell Apple Watch Series 9 and Apple Watch Ultra 2, and both at nice discounts, … [Read More](https://osxdaily. … ⌘ Read more
[47°09′24″S, 126°43′32″W] Reading: 0.49000 PPM
5 iPhone Tips for the Holidays & Christmas
The holidays are here, so let’s cover a few iPhone tips that will help you get the best use of technology over Christmas and New Years. From capturing and sharing moments, making sure your device lasts through the festivities, getting festive, to staying connected to those you’re apart from, let’s use your iPhone well this … Read More ⌘ Read more
Go 處理二進制文件這麼簡單
*1. 概述1.1 爲什麼學習二進制文件讀寫Go 語言內置了豐富的文件操作函數,可以很方便地處理文本文件。但對於音視頻、圖像等二進制文件,文本文件函數就不太適用了。學習 Go 語言的二進制文件讀寫操作,可以更高效地處理這些非文本文件,在實際項目中也很常用。1.2 Go 語言處理二進制文件的優勢Go 語言處理二進制文件具有以下優勢 1. 性能高,讀寫速度快 2. 支持跨平臺,代碼可以在多 ⌘ Read more
Comment l’Occident attaque les piliers de sa civilisation
L’année 2023 s’achève doucement et jamais il n’aura autant été évident qu’une petite clique de psychopathes s’acharne actuellement à attaquer chacun des piliers de la civilisation moderne. C’est en substance ce que Michael Shellenberger (connu pour avoir participé aux révélations des “Twitter files“) explique, à raison, dans un entretien qu’il a récemment accordé à Tucker […] ⌘ Read more
在 golang 中如何實現 WebSocket 的雙向通信
在 Go 語言中實現 WebSocket 的雙向通信通常需要使用第三方庫,其中 gorilla/websocket 是一個非常流行和廣泛使用的庫。以下是實現 WebSocket 雙向通信的步驟和簡單示例代碼:1 安裝 gorilla/websocket 庫:go get github.com/gorilla/websocket2 編寫 WebSocket 服務器:package mainimpor ⌘ Read more
Somebody Got Arrested ⌘ Read more
Definitely
⌘ Read more
Why We Probably Can’t Terraform Mars ⌘ Read more
NERFs (No, not that kind) - Computerphile ⌘ Read more
Deals: Last Minute Christmas Apple Deals Still Available! Apple Watch 9, iPad Air, iPad mini, MacBook Air, & More
Christmas is fast approaching, with an increasingly small window available to shop online for various gifts and have them delivered in time for the holiday. Fortunately, Amazon continues to offer a variety of great Apple products at discounted prices with delivery in time. Keep in mind that stock and delivery time … ⌘ Read more
Download Over 900 eBooks of Classics Free from StandardEbooks
If you’re interested in doing some reading of the classics, you may appreciate the Standard Ebooks project, which offers free high quality ebooks that are well-formatted, proofread, and professionally designed using style manuals. Standard Ebooks focuses on books that are in the public domain and without copyright restrictions, which is how they’re able to offer … [Read More](https://osxdaily.com/2023/12/21/dow … ⌘ Read more
Deals: M2 MacBook Air 15″ for $999! ($300 Off!!)
Amazon is offering a whopper of a deal on the M2 MacBook Air 15″ base model in Silverlight color, taking $300 off the MSRP of $1299, and bringing the price of the 8GB / 256GB model to just $999. The M2 MacBook Air 15″ features the speedy and efficient M2 processor, a 15.3-inch Liquid Retina … Read More ⌘ Read more
NERFs (No, not that kind) - Computerphile ⌘ Read more
Download Over 900 eBooks of Classics Free from StandardEbooks
If you’re interested in doing some reading of the classics, you may appreciate the Standard Ebooks project, which offers free high quality ebooks that are well-formatted, proofread, and professionally designed using style manuals. Standard Ebooks focuses on books that are in the public domain and without copyright restrictions, which is how they’re able to offer … [Read More](https://osxdaily.com/2023/12/21/dow … ⌘ Read more
How to Use OpenPubkey with GitHub Actions Workloads
Learn how to use OpenPubkey to bind public keys to workload identities using GitHub Actions and Docker. And find out how Docker is using OpenPubkey with GitHub Actions to sign Docker Official Images and improve supply chain security. ⌘ Read more
Ignite Realtime Blog: Dan is voted in the XSF’s Council!
Our very own @danc was voted into the XMPP Standards Foundation Council not to long ago!
The XMPP Standards Foundation is an independent, nonprofit standards development organisation whose primary mission is to define open protocols for presence, instant messaging, and real-time communication and collaboration on top of the IETF’s Extensible Messagin … ⌘ Read more
將 go 代碼打包成 docker 鏡像
概述–在本教程中,你將生成一個容器映像。該映像包括運行應用程序所需的一切:編譯的應用程序二進制文件、運行時、庫以及應用程序所需的所有其他資源。前置條件—-若要完成本教程,需要滿足以下條件:golang 1.19+ 本地安裝了 docker Git 客戶端 程序–該應用程序提供兩個 HTTP endpoint:/ 返回符號 < 3 /health 返回 {“Statu ⌘ Read more
grpc-go 從使用到實現原理全解析!
前言–本期將從 rpc 背景知識開始瞭解,如何安裝進行開發前的環境準備,protobuf 文件格式瞭解,客戶端服務端案例分享等,逐漸深入瞭解如何使用 grpc-go 框架進行實踐開發。背景知識瞭解——rpcrpc(Remote Procedure Call)遠程過程調用協議,採用的是客戶端 / 服務端模式,常用於微服務架構,通過網絡從遠程計算機上請求服務,而不需要了解底層網絡技術的協議, ⌘ Read more
How to Set the Finder Default Folder in MacOS
Finder is the native file manager on macOS which is running pretty much all the time once you log in to your system. It allows users to organize and locate all the files that are stored on their Macs. By default, launching the Finder window shows you all the recent files, but this can be … Read More ⌘ Read more
Last Minute Holiday Apple Deals with Great Prices on AirTags, AirPods, iPad, Apple Watch, MacBook Air, etc, Delivered Before Xmas!
While it’s getting increasingly difficult to shop online with delivery before Christmas, Amazon continues to offer plenty of great deals for the holiday shopping season with delivery in time for the holidays. With huge discounts on everything from AirPods, airTags, various iPad models … ⌘ Read more
ProcessOne: Instant Messaging: Protocols are “Commons”, Let’s Take Them Seriously
TLDR;
**Thirty years after the advent of the first instant messaging services, we still haven’t reached the stage where instant messaging platforms can freely communicate with each other, as is the case with email. In 1999, the Jabber/XMPP protocol was created and standardized for this purpose by the Internet Engineering Task Force (IETF). Since then, proprietary messaging services ha … ⌘ Read more
ProcessOne: Instant Messaging: Protocols are “Commons”, Let’s Take Them Seriously
TLDR;
**Thirty years after the advent of the first instant messaging services, we still haven’t reached the stage where instant messaging platforms can freely communicate with each other, as is the case with email. In 1999, the Jabber/XMPP protocol was created and standardized for this purpose by the Internet Engineering Task Force (IETF). Since then, proprietary messaging services ha … ⌘ Read more
ProcessOne: Instant Messaging: Protocols are “Commons”, Let’s Take Them Seriously
TLDR;
**Thirty years after the advent of the first instant messaging services, we still haven’t reached the stage where instant messaging platforms can freely communicate with each other, as is the case with email. In 1999, the Jabber/XMPP protocol was created and standardized for this purpose by the Internet Engineering Task Force (IETF). Since then, proprietary messaging services ha … ⌘ Read more
How to Set the Finder Default Folder in MacOS
Finder is the native file manager on macOS which is running pretty much all the time once you log in to your system. It allows users to organize and locate all the files that are stored on their Macs. By default, launching the Finder window shows you all the recent files, but this can be … Read More ⌘ Read more
Can My Rocket Use Itself as Fuel!? ⌘ Read more
ProcessOne: Instant Messaging: Protocols are “Commons”, Let’s Take Them Seriously
TLDR;
**Thirty years after the advent of the first instant messaging services, we still haven’t reached the stage where instant messaging platforms can freely communicate with each other, as is the case with email. In 1999, the Jabber/XMPP protocol was created and standardized for this purpose by the Internet Engineering Task Force (IETF). Since then, proprietary messaging services ha … ⌘ Read more
iOS 16.7.4 and iPadOS 16.7.4 Released for Older iPhone & iPad Models
Apple has released iOS 16.7.4 for older iPhone and iPadOS 16.7.4 for older iPad models that are not updating to iOS 17.2.1 or iPadOS 17.2.1. Specifically, iOS 16.7.4 and iPadOS 16.7.4 are available for iPhone 8, iPhone 8 Plus, iPhone X, iPad 5th generation, iPad Pro 9.7-inch, and iPad Pro 12.9-inch 1st generation. The software … [Read More](https://osxdaily.com/2023/12/20/ios-16-7-4-and-ipados- … ⌘ Read more
Docker 2023: Milestones, Updates, and What’s Next
Couldn’t keep up with the pace of Docker news and product announcements in 2023? We rounded up milestones, performance improvements, product announcements, new features, acquisitions, and more to help you catch up. ⌘ Read more
I appreciate living in a city with a university and multiple libraries nearby. Whenever there is too much noise from construction works at home, I can simply go to the library and enjoy a quiet place. 😌 A 5G cell tower is also within reach, enabling fast internet access without the necessity of logging into the eduroam Wi-Fi network. 🤓 ⌘ Read more
使用 Go 構建高性能的事件管理器
事件驅動編程是一種編程範式,在這種範式下,程序的執行流由外部事件(如用戶操作、傳感器輸出或消息傳遞)來決定。在 Go 語言中,構建一個事件管理器可以幫助我們更好地組織和處理這些事件。本文將詳細探討如何在 Go 語言中創建和使用事件管理器,包括事件的定義、監聽和觸發,提供豐富的示例來指導你構建自己的事件驅動應用。Golang 事件管理器概述————–事件驅動編程的優勢解耦:減少組件 ⌘ Read more
Gob 實踐全攻略,數據傳輸利器
*1. Gob 簡介1.1 Gob 概述Gob(Go binary)是 Go 語言中用於序列化和反序列化數據的編碼庫。它是 Go 語言的標準庫之一,專門設計用於在 Go 程序之間高效地傳輸數據。Gob 可以將複雜的數據結構編碼成二進制格式,便於在不同系統之間傳遞,並支持版本控制和演進。1.2 爲什麼選擇 GobGob 相比其他序列化格式(如 JSON、XML)具有更高的性能和更小的數據體積。它是專 ⌘ Read more
Un Noël écolo-pauvre pour le peuple mais carbo-riche pour les dirigeants !
Et voilà, ça y est, l’habituelle propagande de fin d’année est de retour : à en croire le déferlement d’articulets d’une presse résolument écolo-branchouille, il faut absolument faire un effort pour que ce Noël soit davantage vert ! Car tout le monde sait que ce qui compte pendant ces périodes de fêtes, ce n’est pas de passer […] ⌘ Read more
Airline Workers Confess Their SINS ⌘ Read more
Love Songs
⌘ Read more
How Batteries Work ⌘ Read more
MacOS Sonoma 14.2.1 Update Released with Bug Fixes
Apple has released macOS Sonoma 14.2.1 as a software update for Mac users running the Sonoma operating system. The update is said to include important bug fixes and security updates, and is therefore recommended for all users to install. Separately, Apple has released iOS 17.2.1 for iPhone, iPadOS 17.2.1 for iPad, iOS 16.7.4 and iPadOS … Read More ⌘ Read more
iOS 17.2.1 & iPadOS 17.2.1 Updates Released for iPhone & iPad with Bug Fixes
Apple has released iOS 17.2.1 for iPhone, and iPadOS 17.2.1 for iPad. The small point release updates are said to include important but unspecific bug fixes for those devices, and is therefore recommended for all users to install. Separately, Apple also released a similar update for Mac as macOS Sonoma 14.2.1, and for older iPhone … [Read More](https://osxdaily.com/2023/12/19 … ⌘ Read more
How we organize and get things done with SERVICEOWNERS
Take CODEOWNERS and GitHub teams to the next level. Learn about how GitHub engineering solves the age old problem of who owns what.
The post How we organize and get things done with SERVICEOWNERS appeared first on The GitHub Blog. ⌘ Read more
Today, while remotely accessing my home server, I noticed that the network was a bit slower than usual. It turns out, there’s no 5G connection and only an LTE connection with another cell tower more far away. I checked the service provider’s website and there’s actually a problem with a base station nearby. ⌘ Read more
Today, I finally finished the reworked MicroPub endpoint in GoBlog using the indielib library by Henrique. It killed about 400 lines of my spaghetti code. 😅 ⌘ Read more
From migration tools to updates to Enterprise Managed Users, what’s new in GitHub Enterprise
Read a round-up of the exciting, new innovation coming from GitHub Enterprise.
The post From migration tools to updates to Enterprise Managed Users, what’s new in GitHub Enterprise appeared first on [The GitHub Blog](https://githu … ⌘ Read more
Release Radar · End of 2023 Edition
Hacktoberfest has wrapped up, GitHub Universe has come to a close, and our community has been super hard at work. All the while people enjoyed turkey over thanksgiving and expressed gratitude for those around them. In this edition, we’d like to thank the open source community for all the awesome projects shipped over the past […]
The post Release Radar · End of 2023 Edition appeared first on [The GitHub Blog](https://gi … ⌘ Read more
Using Authenticated Logins for Docker Hub in Google Cloud
Learn four best practices that your teams can implement to maintain a secure and reliable software delivery process with Docker Hub in Google Cloud. With these guidelines, you can leverage the benefits of open source software while safeguarding your development workflow. ⌘ Read more
How to Set the Finder Default Folder in MacOS
Finder is the native file manager on macOS which is running pretty much all the time once you log in to your system. It allows users to organize and locate all the files that are stored on their Macs. By default, launching the Finder window shows you all the recent files, but this can be … Read More ⌘ Read more
Today, while remotely accessing my home server, I noticed that the network was a bit slower than usual. It turns out, there’s no 5G connection and only an LTE connection with another cell tower more far away. I checked the service provider’s website and there’s actually a problem with a base station nearby. ⌘ Read more
Go: XML 文件的讀寫操作詳解
*概述XML(可擴展標記語言)作爲一種常見的數據交換格式,廣泛應用於配置文件、數據傳輸等場景。本文將介紹如何在 Go 語言 中進行 XML 文件的讀寫操作,涵蓋 XML 基礎知識、編碼 / 解碼基礎、讀取 XML 文件、寫入 XML 文件、實戰操作示例以及 XML 與 JSON 對比選型。一、XML 基礎知識簡介XML 語法結構XML 採用標籤(tag)來標記數據,具有自我描述性。一個基本的 XM ⌘ Read more
使用 gorm-Scopes 函數複用查詢邏輯
今天要學習的是gorm.Scopes函數的使用。該函數的作用就是複用查詢條件。gorm Scopes 是什麼—————在項目中,你一定會遇到過很多需要複用的查詢條件。比如常用的場景有分頁、查詢時判定數據權限等操作。比如,我們有兩個數據資源:用戶列表和部門列表。那麼,在查詢列表的時候都會涉及到分頁。當然可以在每個列表中都增加上列表相關的查詢。同時,也可以將分頁的查詢抽取出來,做成 ⌘ Read more
Copyright, Piracy, and the bleak future of The Internet Archive
Lunduke’s Big Tech Show - Dec 19, 2023 ⌘ Read more
[47°09′34″S, 126°43′24″W] Reading: 0.75000 PPM
Could EV batteries someday send power back to the grid? #neildegrassetyson href=”https://txt.sour.is/search?q=%23startalk”>#startalk** ⌘ Read more
Local man throws out box of cables
“Those might be useful some day,” exclaims onlooker. ⌘ Read more
MC in the US: OSFC, SF, Seattle, Microsoft
I attended the Open Source Firmware Conference (OSFC) on Oct 10-12 in
Sunnyvale, spent a long weekend in San Francisco, took a very long
train ride to Seattle, spent a week in the Seattle area, and held an
intimate talk at Microsoft. Managed to meet friends, drink some nice
beverages, and even see a show but came home with a heavy heart. Then
tried to relax in the cottage.
Why is My iPhone Playing Music Randomly? Here’s a Fix
Some iPhone users may discover their iPhone is randomly playing music, sometimes from within a pocket, or a purse, from a lap, or when being held in a hand but otherwise not in use. An iPhone may begin to randomly play music even when the iPhone is locked, making this a frustrating and potentially embarrassing … Read More ⌘ Read more
Deals: Get Apple Watch Series 9 for $329, Series 8 for $249, Ultra for $730, Before Sales Ban Starts
If you’re shopping for an Apple Watch this holiday season, you’re running short on time. Not only is Christmas fast approaching, but a new twist has developed where Apple must stop selling Apple Watch models due to an ongoing patent issue. Apple will stop selling Apple Watch due to a patent dispute, starting on December … [Read More](https:/ … ⌘ Read more
Maximizing Software Development’s ROI: Forrester’s TEI Study of Docker Business
The recent Forrester Total Economic Impact™ (TEI) study underscores for us the measurable benefits experienced by Docker Business users, including accelerated development agility, reduced time-to-market, and substantial cost savings. ⌘ Read more
Finally vacation! No work until (including) 2024-01-07. 😎🎅🎄🎆 ⌘ Read more
События сериала Мэтта Ривза о лечебнице Аркхэм будут разворачиваться в основной киновселенной DC
Режиссёр также продолжит развивать свою франшизу.
Adult Swim выпустил отрывок из аниме по «Рику и Морти»
В честь завершения седьмого сезона основного шоу.
L’horreur qui vient
Les autorités redoutent un attentat d’ici la fin de l’année. Elles l’ont d’ailleurs très médiatiquement fait savoir, tant du côté européen que du côté français afin que toute la population soit correctement transie d’inquiétude et de méfiance pour la période des fêtes. Et donc, que ce soit le résultat d’une action préparée de longue date […] ⌘ Read more
Джеймс Ганн: Suicide Squad от Rocksteady не планируется как последняя игра во вселенной Arkham
Руководитель надеется, что Rocksteady продолжит развивать её.
Сборы приквела «Голодных игр» превысили 300 миллионов долларов при бюджете в 100 миллионов
А «Вонка» с Тимоти Шаламе стартовал в США выше ожиданий.
** Accessibility-first **
Whereas mobile-first design and development invited folks to think more expansively about the physical reality of the devices people use, accessibility-first design and development invites folks to think more expansively about the lived experiences, and physical reality of actual people. ⌘ Read more
UK 2024 Election | Tactical voting ⌘ Read more
Go 語言爲什麼很少使用數組?
01 介紹在 Go 語言中,數組是一塊連續的內存,數組不可以擴容,數組在作爲參數傳遞時,屬於值傳遞。數組的長度和類型共同決定數組的類型,不同類型的數組之間不可以比較,否則在編譯時會報錯。因爲數組的一些特性,我們在 Go 項目開發中,很少使用數組。本文我們介紹一下數組的特性。02 數組聲明方式在 Go 語言中,數組的聲明方式有三種。示例代碼:func main() { var arr1 [2]int ⌘ Read more