Search results
Happy birthday to Vim! 🥳
@itsfossIt's FOSS
:earlier 34y 🥳
Oh, it only supports [smhd], and #TIL f: Go to older text state {N} file writes before. #vim
#til 今天看影片學到三個電扶梯小知識
1. 電扶梯扶手有時候會感覺稍微比較快是故意的,因為驅動扶手的傳動輪會因為磨損而導致扶手移動速度隨時間變慢,所以全新的傳動輪故意設計會快上一點點來減少更換的頻率 😂
2. 電扶梯兩側的刷毛是為了防止東西卡進側面的縫隙,我一直以為那是給乘客刷鞋子(?)
3. 下行的電扶梯上站足夠人的時候,乘客的重量其實就可以驅動電扶梯運轉了,馬達實際上是在煞車,這還蠻合理的。但現代的電扶梯馬達其實可以利用類似電動車或油電混合車煞車回充的技術,在煞車時把這個多餘的動力轉換成電力稍微回充給電力系統 😲
@stefanoStefano Marinelli in other news, TIL that I can get a person's toots without their boosts.
from:stefano
I am a contentedly slow learner.
#TIL less 裡有的內建的 `^` `$` 書籤可以和 `|` 搭配使用
linux less 裡 `|` 可以把內容用管道傳給指令,我以前就知道這個。
但是 `|` 會要求輸入書籤過的位置,只會 pipe mark 和現在位置間的內容,
以前我都是要先 `g` 回頭頂部 `m` 標書籤,再 G 到最底部 pipe。
今天發現 less 有二個特殊書籤 `^$` 代表頂部或底部,
可以直接在最頂部輸入 `|$` 把整個 buffer pipe 出去,
或是 `|^` 在底部。
I didn't realize you could mix `import` and `require()` in Node.js now, I always thought it was either ESM or not, but you can mix: https://nodesource.com/blog/nodejs-22-features.
```js
import { createRequire } from 'module';
const require = createRequire(import.meta.url);
const pkg = require('./package.json');
```
I likewise had no idea #WASI (that is, #WebAssembly System Interface) was a thing in Node.js. Need to investigate more…
It's all still experimental and not super tightly sandbox secure yet, but #WASI support in Node.js is very much a thing: https://nodejs.org/api/wasi.html. #TIL 🤯 #Wasm #WebAssembly
#TIL about UUID7 (mainly because it's now supported in the new #python 3.14). Until today I thought, why bother, uuid4 is fine.
Turns out, UUID7 comes with a free timestamp and the generated ids sort by time.
Read about it here
https://uuid7.com/
And it's available as a library for older python versions, too. https://pypi.org/project/uuid7/
I have a few projects where I use UUID4 for temporary files - I'm going to move these over to UUID7
#til: In der Schweiz gabs einen Gefängniszug. https://www.tagesanzeiger.ch/jail-train-sbb-schaffen-schweizer-gefaengniszug-ab-393844756407
@BartoszMilewski
@acollierastroAngela Collier - that's part of the story, but there's always been vast inequality in things like knowledge of physics. One new thing is that it's easy for the uneducated to communicate to a mass audience. When it comes to technical subjects like physics I feel it's working quite badly so far: people seem more persuaded by someone charismatic and confident than someone clear, precise, credentialed and a wee bit boring.
@johncarlosbaez
@BartoszMilewski This thread makes me sad. I get where you guys are coming from but it's just not a good look (and that says a lot that even I, autistic as I am, can sense that).
So instead, maybe let's focus on the real problem which is I think you guys have an issue figuring out how to reach an audience; it's not magic, it just takes skill and time but imho, the problem is that it's just not enjoyable to develop that muscle, especially now a days. FWIW, i've been following Sabine for a decade and have been following angela's youtube channel since almost when she started it. And lo and behold, once Angela getting popular, she started running into the same scaling problems that Sabine ran into. I don't know how to make everyone play nice with each other, but I sure don't think ragging on the few science & math advocates out there is a good look for physics.
the #tldr is i guess #TIL that mathematicians are human too and are just as salty and in their feelings as the rest of us
😋
#TIL Random ordering in Django. order_by('?') works but can be costly on large tables. Prefer order_by(Random()) (Django’s DB function) + LIMIT.
Notes + pitfalls inside. #Django #Python #ORM #PostgreSQL #Perf
https://til.sanyamkhurana.com/#/topics/django/random-ordering-with-order-by-in-django
#TIL that "browser" is an acronym for
"BRowsing On-Line With SElective Retrieval" although acronyms with variable amounts of letters at the start are weird…
https://blog.mozilla.org/en/internet-culture/history-of-internet-terms/
Huh. #til that a) TI makes a calculator that runs #Python code, b) #CircuitPython is a thing - and it's from adafruit, though that's in part their packaging of MicroPython, c) my wondering which version it's based on is probably completely silly (or stupid) seeing as how Python 3 has been around longer than any kids likely to be using Python on "approved for school" devices like calculators (or at least longer than they've been using calculators)
lol It took me all these years to finally lookup why the US have ZIP codes while the rest of the world uses "Postal codes".
ZIP stands for Zone Improvement Plan and ZIP code is trademarked by USPS so we're supposed to use it like ZIP Code™
It is now seven years since we introduced #libcurl's URL API: https://daniel.haxx.se/blog/2018/09/09/libcurl-gets-a-url-api/
@bagderdaniel:// stenberg:// #TIL ;p
The link at the end is a 404 though.
===
See also
The URL API section in Everything curl.
I was called out for using old school % formatting instead of f strings today. I was using them because I remember reading somewhere that they were more performant in some situations. I looked it up, and it turns out it wasn't my use case. But good to know:
If you call logger.debug("this is %s to format", expensive()), the string won't be formatted unless the logger is going to emit a debug message.
Note that expensive() is an argument, not after a % sign.
"One notable difference between #X11 and #W3C is the case of “Gray” and its variants.
In #HTML, “Gray” is specifically reserved for the 128 triplet (50% gray). However, in X11, “gray” was assigned to the 190 triplet (74.5%), which is close to W3C “Silver” at 192 (75.3%), and had “Light Gray” at 211 (83%) and “Dark Gray” at 169 (66%) counterparts.
As a result, the combined #CSS 3.0 color list that prevails on the web today produces “Dark Gray” as a significantly lighter tone than plain “Gray”, because “Dark Gray” was descended from X11 – for it did not exist in HTML nor CSS level 1 – while “Gray” was descended from HTML." #til #Gray #DarkGray #Grey
minds.com is a social media service founded in 2011, notable for publishing source code for their platform under a free license (AGPL);
https://developers.minds.com/docs/contributing/license/
In 2021 they decentralised their in-house chat by connecting it to the Matrix network;
https://www.minds.com/newsfeed/1236784837018611712
#TIL that minds.com is implementing ActivityPub and connecting to the fediverse;
https://networks.minds.com/blog/post/what-is-the-fediverse-the-next-evolution-of-social-media
(1/2)
TIL about Bahnhof Verstehen: https://en.wikipedia.org/wiki/Bahnhof_verstehen
TIL that `git stash list` takes the same options as `git log`. So if you want to search for a specific string in your entire git stash, you can do `git stash list -S <search term>`.
#TIL Weibo's custom emoji shortcodes are in square brackets 🤔 https://emojipedia.org/sina-weibo
#TIL that the holes in Swiss cheese are properly called "eyes". Definitely not creepy in the slightest.
I just sent in some feedback to #Linear asking for tables with independently sortable and re-orderable columns, because HOW ELSE would you want to see tickets? (No, their "List" view doesn't come CLOSE to cutting it)
I got a response that said "this isn't something that has come up before".
So #TIL no one *actually* uses #Linear for work. I cannot believe no one has ever wanted this before.
#TIL “güey” which led to https://wheniroam.com/mexican-slang-words/
Thanks for the (unintentional ?) language lesson,
@IPXFongRafa https://mastodon.sdf.org/@ipxfong/114959949860151208
#TIL that one bit weighs one #quectogram. So I am assuming we will need to reduce the size of our bit or assume that we cannot store infinite amounts. #physics #metrology #scale
#TIL about a hardware company called #reMarkable;
"Our scientific advisors help us understand how technology affects attention — and guide us in creating products that protect focus and support more deliberate ways of working. This work is designed to spur innovation, test ideas through rigorous research, and champion focused thinking."
https://remarkable.com/scientific-advisory-board
Not sure if their software is Free Code. But You might find this relevant to your work on SX design
@smallcirclesjust small circles 🕊.
The beauty of the internet is that information is but a click away. I embraced the joy of random knowledge, and this book is an invitation for you to do the same. Here's #2IL, the sequel to #TIL - 52 weeks, 52 new things that we could think about.
https://alphabetapisigma.gumroad.com/l/2IL
#TIL
카카오 서비스 이용과는 별개로 카카오메일에 접속하지 않으면 휴면으로 전환된다.. 갑자기 구글 계정 복구 메일로 추가해둔 카카오메일을 사용할 수 없다는 알림이 와 확인해보니 휴면으로 전환되어있던..
tanstack query의 initialPageParam에 대하여 오늘 배운 것
자손킴 @jasonkim@hackers.pub
TanStack Query의 `useInfiniteQuery` 훅을 사용할 때 `initialPageParam`이 어떻게 동작하는지에 대한 중요한 통찰을 공유합니다. 이 훅은 초기 렌더링 시 `initialPageParam`을 `pageParams[0]`으로 설정하고, 동일한 `queryKey`를 가진 캐시가 유지되는 동안 이 값을 계속 사용합니다. 따라서 여러 컴포넌트에서 동일한 `queryKey`로 `useInfiniteQuery`를 호출하면서 다른 `initialPageParam` 값을 제공하더라도, 처음 호출된 `initialPageParam` 값으로 고정됩니다. 이는 시작 커서가 다를 경우 `queryKey`를 다르게 지정해야 함을 의미합니다. 이러한 동작은 이해하고 나면 당연하지만, 익숙하지 않은 개발자에게는 혼란스러울 수 있습니다. `initialPageParam`이 `queryKey`와 강하게 연결되어 있다는 점이 InfiniteQueryOptions에서 타입 제약으로 더 명확하게 표현된다면 개발 경험이 향상될 것입니다.
Read more →
@zehZeh Fernando
@kimsKim Scheinberg I mean, it is named after two philosophers :)
#TIL about
@fediversity;
"... a comprehensive effort to bring easy-to-use, hosted cloud services with service portability and personal freedom to everyone. We aim to provide high-quality, secure IT systems for everyday use. Without tracking, without exploitation, in a way that runs everywhere and scales effortlessly.
... based on NixOS, a disruptive Linux distribution with a unique approach to package and configuration management."
#TIL 知三當三
(到底為什麼這麼喜歡簡稱、縮寫……
#TIL Netflix is actually using #RDF for their Unified Data Architecture
https://netflixtechblog.com/uda-unified-data-architecture-6a6aee261d8d
今日先知道 Windows XP 時代的桌布原圖其實好大
比如 Azul 是由 Bill Ross 在 1991 年拍攝的作品,實際名稱是「Sailing on the Blue Sea」,大小是 4341x2841,但 Windows 內建桌布版本只有800x600 大小
這裏還有其他一些的原圖:https://archive.org/details/theoriginalfilesofsomewindowswallpapers
參考資料:
https://www.reddit.com/r/windowsxp/comments/dy1221/managed_to_find_azul_in_its_original_4341x2841/
https://windowswallpaper.miraheze.org/wiki/Azul
I don't know if I am out of the loop because I am using
@ivoryIvory by Tapbots
as a #Mastodon client, but I just now learned that "unlisted" has been renamed to "quiet public". #TIL
#TIL about boxes.py! Not a new project, but new to me. And it's super cool!
Need to build or design a laser-cut box? They've got you covered.
Did you know that there is comparison chart for
- #linux distributions
- #browser
- #android distributions
- linux desktop environments
- #messenger
- #mail providers
Take a look https://eylenburg.github.io/
it's regularly updated
#opensource #foss #development #developers #programming #coding #ubuntu #opensuse #fedora #freebsd #archlinux #arch #gentoo #nixos #alpine #redhat #debian #grapheneos #calyxos #IodeOS #lineageos #firefox #vivaldi #brave #signal #deltachat #element #matrix #til
Although I'm an internet oldtimer I'm rather inexperienced when it comes to so-called social networks. I've been learning mastodon's community rules while on the go since I've joined. I'd be happy if the following might turn out to be useful for you.
#TIL
Following somebody actually has two meanings.
1. The person wants to see postings by the followed account in their home feed (like with followed hashtags).
2. They're giving the followed account consent to comment on anything they post.
1/
#TIL 홈브류는 최초 설치 시에 아키텍쳐를 읽어서 어느 prefix를 붙일지 결정하고 이에 따라 이후 설치하는 패키지의 타겟 아키텍쳐도 결정한다. 또한 x86으로 컴파일 된 앱에서 홈브류를 구동하면 실제 아키텍쳐와 상관없이 무조건 x86 prefix인 /usr/local로 진행한다. 따라서 인텔 기반 맥에서 홈브류를 통해 별도의 터미널 어플리케이션을 설치 · 세팅하고 M1으로 넘어와서 그 터미널로 홈브류를 계속 써왔다면 여전히 인텔용 홈브류를 쓰고 있을 가능성이 크다.
그리고 지금은 M4가 현역이다..
Just released! 🚀
Enabled colour help for Python 3.14:
🎨 em-keyboard 5.2.0
🎨 linkotron 0.5.0
🎨 norwegianblue 0.22.0
🎨 pepotron 1.5.0
🎨 pypistats 1.10.0
Also added Python 3.15 to pepotron: `pep 3.15` opens PEP 790.
#release #python314 #colour #CLI #EmKeyboard #linkotron #norwegianblue #pepotron #pypistats #help
Neat. A #CLI interface to endoflife.date? I had no idea. Very cool! (The addition of color into 3.14 is pretty awesome, too!). Thanks for your work.
常常看到 equality 跟 equity 二詞,但一直不知道有何分別。查了一下才發現,equality 是指齊頭式平等、equity 是立足點平等(實質平等),所以其實不是同義詞。
Today I learned that the fediverse platform Honk can import posts from a Mastodon, Twitter, or Instagram archive and backdate them appropriately. That's honkin' terrific!
@nixCraftnixCraft 🐧
unlink?!
TIL: how to disable cron for GitHub forks
Quick update to this post: no need to hardcode the repo owner name, which makes it easier to maintain projects across organisations.
https://hugovk.dev/blog/2023/til-how-to-disable-cron-for-github-forks/
#TIL about a window manager called #Herbstluftwm. (thanks, j!)
Herbstluftwm. it's german for "find your meta key", i believe.
#introduction #Programmer by day, #Musician by night. Dad to two beautiful girls, all the time.
Currently doing #Volatil, a mostly #instrumental #music project where I try to make a piece of not-too-polished, #experimental music manifest every two weeks. With it, I've learned new stuff and played with different instruments, effects, and ideas. I may or not be compiling the best pieces from this year into an album.
I also maintain a #TIL blog with software development tips. And this server!









🇺🇦 






🕯










