Quantcast
Channel: Programming – Gea-Suan Lin's BLOG
Browsing all 99 articles
Browse latest View live

nginx 專案搬到 GitHub 上

在「Nginx has moved to GitHub (nginx.org)」看到的,原連結是「[nginx-announce] NGINX has moved to Github!」。 這次搬移也順便將本來是 Mercurial 的專案換到 Git 上了... Hacker News 有不少人在討論現在 nginx 目前的情況,像是之前有提到分家的事情:「nginx 分家:freenginx」。...

View Article


AWS CodeBuild 宣佈支援 GitLab Runner?

看到 AWS CodeBuild 宣佈支援 GitLab Runner 的公告:「AWS CodeBuild now supports managed GitLab runners」。 第一眼看到有點問號,看了公告說明後的確就是把工作丟進 GitLab Runner 跑: AWS CodeBuild now supports managed GitLab self-hosted runners....

View Article


Winamp 官方放出 Legacy 版本的程式碼

看到「Winamp Legacy player source code (github.com/winampdesktop)」這個,官方放出 Winamp 程式碼:「Winamp」,主要算是歷史的記錄,用電腦聽音樂如果是有設備的人應該會挑 foobar2000 之類的軟體,如果只是隨意聽的話應該就是開各家 streaming 的應用程式? 話說 Nullsoft 做了不少有名的東西,除了...

View Article

LINE 推出的 ts-remove-unused,移除掉沒有用到的程式碼

出國前看到的東西,LINE 在 GitHub 上發表了整理 TypeScript 程式碼的套件:「Show HN: ts-remove-unused – Remove unused code from your TypeScript project (github.com/line)」,專案在「line/ts-remove-unused」這邊: Remove unused code from...

View Article

用 C 語言寫 Android 版本的 Flappy Bird

也是在 Hacker News Daily 上看到的專案,用 C 寫的 Android 版本的 Flappy Bird,而且支援度還頗廣的,Android 5.1+ 都可以執行:「VadimBoev/FlappyBird」。 看起來也因為這篇的關係,用 C 寫 Android 程式的計畫也被再次貼到 Hacker News 上:「Rawdrawandroid – Build Android apps...

View Article


Image may be NSFW.
Clik here to view.

追 MediaWiki 頁面很慢的問題

我自己有個 wiki 拿來堆一些資料,前陣子覺得 Live 這頁很慢,實際測試發現要跑五秒多,想說到底是什麼鬼... 先從 MediaWiki 的各種 optimization 設定開始看,像是 Manual:Cache 這邊提到的東西,一路看下來看起來都已經設好最佳化了。 只好拿 profiling 工具來翻,在 PHP 上面用的是 Xdebug,裝了以後希望是特殊的情況才跑...

View Article

64-bit time_t 的事情

看到「The perils of transition to 64-bit time_t (gentoo.org)」這篇,原文在「The perils of transition to 64-bit time_t」,Gentoo 的人在討論將 time_t 從 32-bit 換成 64-bit 遇到的困難。 這邊會想把 32-bit time_t 換到 64-bit time_t 的動力是...

View Article

Conventional Commits

查資料的時候翻到的,寫 commit 常有 feat: 或是 fix: 這樣的 prefix,剛剛才突然想到這應該是有人訂規範的,翻了一下應該是「Conventional Commits」這個,裡面也引用了另外一個專案:「commitlint」。 所以 type 的部分可以有很多種類,剛剛前面提到的 feat: 以及 fix: 都在裡面: build chore ci docs feat fix...

View Article


與 的差異

在追奇怪的問題時發現的,實際上是個當年沒學好 (或是太久沒用忘記了),現在回頭重新學的東西,在 Stack Overflow 上很久前就有人問過了:「<button> vs. <input type="button"> -- which to use?」。 我遇到的問題是 <button> 預設會觸發 submit 事件 (<input...

View Article


AWS 提供 Console-to-Code 功能

這個是在 Reddit 上看到的:「Convert AWS console actions to reusable code with AWS Console-to-Code, now generally available (aws.amazon.com)」,原文在「Convert AWS console actions to reusable code with AWS...

View Article

來試著用 mise

應該是前幾天在 Mastodon 上看到 (但找不到了) 有人提到 mise 這個套件,可以不用每個程式語言都裝各自的 version manager (以 Node.js 這邊的話就像是 nvm 或 fnm 的東西),剛剛先開個獨立的 user 丟進去測,測試的情況還可以接受,就換起來用看看... 官網提供的安裝方式有不少選項可以選,除了 ... | bash 的方法以外,還有自己抓 binary...

View Article

mise + cron 的組合問題

mise + cron 環境時會遇到「User's bash PATH doesn't seems to be updated in non-interactive session? #2382」這邊的問題,在 cron 跑起來的 shell script 裡面雖然有請 mise 初始化環境,但會發現應用程式沒有指到對應的地方。 目前的 workaround 是增加...

View Article

把 Mastodon 的文字同步到 Bluesky 上

看了 atproto 的 Python SDK 說明,不會太難寫,就花了點時間整理一版出來,另外順便 refactor 之前的 code。 比較特別的是用的是 username + password 的登入方式,而現在比較主流的 app id + token: client = Client() profile = client.login('my-handle', 'my-password')...

View Article


AWS Labs 拿 Amazon S3 搞了 Git Remote?還有 AWS CodeCommit 落日計畫...

昨天看到「S3 as a Git remote and LFS server (github.com/awslabs)」這個東西,本來沒仔細看想說拿 Amazon S3 當 Git 的 backend storage 有什麼特別的,但發現是 AWS 自己搞的東西就... 笑出來?:「git-remote-s3」。 先是看到 id=41892890 這個笑出來: Wow, AWS really...

View Article

Dropbear SSH 不會讀 /etc/environment 的問題

在 Raspberry Pi 上追問題一路找原因發現的,起因是 Dropbear SSH 預設不支援 PAM,所以不會觸發 PAM 會在登入時讀 /etc/environment 的設計。 其中 PATH 變數比較特別,Dropbear SSH 預設會塞很基本的值進去: /* The default path. This will often get replaced by the shell */...

View Article


Image may be NSFW.
Clik here to view.

Python 3.13 的 free-threading mode 以及 no GIL mode

前幾天看到「State of Python 3.13 performance: Free-threading (codspeed.io)」這篇,在講 Python 3.13 的 free-threading mode & no GIL mode 的效能:「State of Python 3.13 Performance: Free-Threading」。 從這張圖可以看到一些資訊: 首先是...

View Article

getenv() + putenv() + setenv() 的 thread-safe 問題

在「Improving Steam Client Stability on Linux (ttimo.typepad.com)」這邊看到的,原文在「Improving Steam Client stability on Linux: setenv and multithreaded environments」這邊。 裡面提到了 getenv() + putenv() + setenv()...

View Article


另外一套相容 Kafka 協定的 Bufstream

在 Hacker News 上「Jepsen: Bufstream 0.1 (jepsen.io)」這邊看到的,原文在「Bufstream 0.1.0」這邊。 然後我注意到的反而不是測試的內容,而是發現其實透過 Jepsen 其實也有很好的廣告效果?而且 Jepsen 從更工程的角度先介紹軟體,其實相當於把重點先劃出來: Bufstream is a Kafka-compatible...

View Article

Image may be NSFW.
Clik here to view.

Promise.try() 的支援度

在「BCD Universal Implementations Report Mon Nov 11 2024」這邊看到的,其中 Promise.try() 的部分,在 Safari 也實作後,所有主要的瀏覽器引擎都支援了,後面就是 release 的時間問題了: 原生的 Promise 物件功能不多,現在看起來陸陸續續加上去,寫起來會更方便一些...

View Article

Image may be NSFW.
Clik here to view.

Hyrum's Law

看到「Hyrum's Law in Golang」這則提到的 Hyrum's Law: With a sufficient number of users of an API, it does not matter what you promise in the contract: all observable behaviors of your system will be depended on...

View Article
Browsing all 99 articles
Browse latest View live