Hacker Newsnew | past | comments | ask | show | jobs | submit | dantle's commentslogin

A dishwasher micro optimization: put the small forks/spoons face down in the basket, and the large ones face up. Helpful when unloading because these items are time consuming to visually distinguish, but we sort them.

Works best if you can somehow convince your spouse to do it, too. :)


I made a Shortcut to strip links. You can add it to the share sheet. It'll give you a new share sheet with the stripped link. Much faster than mashing backspace.

https://www.icloud.com/shortcuts/528c9af856fc46c9a3d164a85e8...


Did you have the full GUI running back then? I tried this in 2021 but couldn’t get the GUI to launch. It seemed like an expected graphics lib wasn’t available.


Fasting always gets me into a high focus zone (but I don't have ADHD). Try doing a 48 hour zero-calorie/liquid-only fast. Black coffee and teas are fine. Get plenty of electrolytes, especially magnesium and potassium, or else you'll have a headache. Take an ibuprofen if you really need it. And reward yourself at the end. I always get an amazing amount of reading done in these periods.


Nice article. Saw a few things I wish I'd known about.

1. %n in printf would be handy when writing CLIs dealing w/ multiple lines or precise counts of backspaces.

2. Using enums as a form of static_assert() is a great idea (triggering a div by zero compiler error).


%n is an extremely poor fit for CLI manipulation or tokenization for backspacing.

%n is for bytes, not user-perceived characters.


using enums as a form of static_assert is very bad when C nowadays literally has static_assert (_Static_assert: https://gcc.godbolt.org/z/bfv6rKdKM)


The enum idea is interesting. I've previously used an extern with a conditional size of either 1 (valid) or -1 (invalid). This requires no additional boilerplate, and is #define-able into a static assert when built with a recent enough compiler. Something like this, from memory:

    #define STATIC_ASSERT(COND) extern char static_assert_cond_[(COND)?1:-1] /* C99 or earlier */
    #define STATIC_ASSERT(COND) _Static_assert(COND) /* C11 or later */
As both are declarations, I don't think you'll end up in a situation where one is valid and the other isn't - but I could be wrong, and I suspect it would rarely matter in practice anyway.


I enjoyed the rhetorical style used in this article. A nicely presented mixture of humor and information.


Locality has everything to do with performance. It's why your L1 cache is faster than your L2 cache.


I've used this for about a year, and it has been stable. Hosted on my home computer.

https://github.com/tomav/docker-mailserver

My emails get rejected from @comcast.net but nobody else as far as I can tell. I haven't figured out a good way to debug the issue. As a result, I am not completely off of free Gmail. If you need your emails to be 100% received on the other end, I would recommend paying a hosting provider.


It's harder to imagine coming from the IBM of today, but historically the company has earned many laurels from its numerous important contributions to computing. As my computer architecture professor used to say, "everything that's worth inventing already has been at IBM." In addition to RISC, they created out-of-order, superscalar processing, relational databases, TCM, magnetic hard discs, DRAM, etc.


IBM Research also supported a number of first rate scientists. Just a couple of the better known names: Mandelbrot and Landauer worked there, and Charles Bennett still works there I think.


Cuprate superconductors were discovered by Bednorz and Müller at IBM in Zurich in 1986. They got the Nobel for it the next year. The physics Nobel the previous year also went to researchers at IBM Zurich, for the invention of atomic force microscopy.


Here's a trivial python script to download them, for the lazy among us.

https://gist.github.com/dantler/f26d75f1051db13649aaedf73f7d...


Awesome sauce. Even runs on Windows, as long as wget is in the path.


Thanks - this is very useful. Any idea how I can adapt this to download articles behind paywalls? For instance for bookmark archival?


Perhaps adapt something like https://github.com/iamadamdev/bypass-paywalls-chrome to run in a scripted headless environment?


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: