HNHacker News
TopNewBestAskShowJobs

ksherlock

4,790 karma · joined July 8, 2012

submissionscomments
ksherlock··on I program without syntax highlighting
As of emacs 31.1, xterm-mouse-mode is default where supported.
ksherlock··on US will ban Wall Street investors from buying single-family homes
$2,500 cars? $10,000 houses? I found the time traveler from 1960!
ksherlock··on US will ban Wall Street investors from buying single-family homes
Houses are also put into revocable living trust to avoid probate when kicking the bucket.
ksherlock··on Why is the Gmail app 700 MB?
Back in the time of 3.5" demo disks, I know one group that filled up their disk image with random numbers so it wouldn't compress so it would look bigger and more impressive in file listings.
ksherlock··on Trump says U.S. operation captured Venezuela's president Nicolas Maduro
Cuba is better location for a Trump beachside hotel and casino than, say, Gaza.
ksherlock··on Ask HN: Is there any way to lock apps on iPhone?
Alternate approach: Delete the app. Use safari to replace the app icon on your home screen with a website. That website is goatse.
ksherlock··on Trump says American oil companies will be "involved" in Venezuela's oil industry
Chevron is already involved.
ksherlock··on A production bug that made me care about undefined behavior
The symbian source code is available. Looks like it uses a class-specific operator new() overload.

https://github.com/SymbianSource/oss.FCL.sf.os.kernelhwsrv/b...

2. Initialisation of the CBase derived object to binary zeroes through a specific CBase::operator new() - this means that members, whose initial value should be zero, do not have to be initialised in the constructor. This allows safe destruction of a partially-constructed object.

ksherlock··on Show HN: KeyByKey.app – Daily piano game for practicing playing melodies by ear
That's very nice. I used to do http://perfectpitchpuzzle.com daily, which is similar but shorter and with wordle mechanics.

I don't know how other people do these things but I've got my keyboard next to my computer so that's where I work it out and the number of attempts (that you know about) isn't meaningful. But it's still great practice.

ksherlock··on What an unprocessed photo looks like
On the mac you just type — for an em dash or – for an en dash.
ksherlock··on Ask HN: What did you read in 2025?
well, audio books:

- Salem's Lot

- the Moon is a harsh mistress

- Stranger in a Strange land

- The Stand (1990 edition, which initially confused me since I read the 1980 edition long ago)

- The best short stories of Mark Twain

- Nightmares and Dreamscapes

- Liar's Poker

- The Big Short

- The intelligent investor (2009 revised edition -- my ears perked up when he casually mentioned microsoft vs microstrategy during the .com bomb)

- Flash boys

- Next

- Bonfire of the vanities

- Barbarians at the gate

- The man who solved the market

- The Fund

- The world according to Cunk

- The house of Morgan (currently 5 hours in and currently tired of the phrase "house of")

ksherlock··on Using TypeScript to obtain one of the rarest license plates
'The South fought hard to include the "except as punishment for crime" clause in the 13th amendment.'

I don't think that's historically accurate. The 13th amendment was passed in the Senate on April 8, 1864 and HoR on January 31, 1865.

At the time, the senate and congressional seats from the 10 southern states were vacant.

So the only fighting the south was doing was in the civil war, which didn't end until May 26, 1865.

The text itself is identical to the text in the Northwest Ordinance of 1787, which prohibited slavery (but allowed for the return of fugitive slaves) in what would later be Ohio, Indiana, Illinois, Michigan, Wisconsin, and part of Minnesota.

ksherlock··on Firefox will have an option to disable all AI features
I don't use firefox so I can't confirm, but one issue might be 15+ (?!) different config settings needed to disable AI and it still won't go away.

https://news.ycombinator.com/item?id=46095873

ksherlock··on Apple Maps claims it's 29,905 miles away
As one of the commenters pointed out, altitude.

A geostationary orbit is ~26,000 miles. Dollars to donuts, that's where it is.

ksherlock··on Berkshire Hathaway Announces Leadership Appointments [pdf]
BRK-B is also a top-10 (currently #10) component in the S&P 500 with a 1.74% weight. They also own ~40 stocks and I think around half of them are in the S&P 500 (including Apple, Amazon, and Google, which are also top 10 components but a combined ~15% weight), so, yeah.
ksherlock··on Netflix to Acquire Warner Bros
"The goal is to become HBO faster than HBO can become us." -- Ted Sarandos, Netflix co-CEO, circa 2012.

(Actually, he walked it back slightly in 2024 - https://archive.ph/V5Kt1).

ksherlock··on RCE Vulnerability in React and Next.js
You can't have Vercel without RCE.
ksherlock··on Why xor eax, eax?
I mean, he IS the Chief EORfficer
ksherlock··on After nearly 100 years, scientists may have detected dark matter
The theory is that dark matter can decay or annihilate and when that happens there is an emission. A dark, or perhaps, nocturnal, emission if you will, which can be detected.

https://arxiv.org/abs/2507.07209

ksherlock··on Orion 1.0
I appreciate that it supports Mojave.
ksherlock··on Ask HN: Does anyone just listen to their own AI music now?
I use AI to split music into separate tracks.
ksherlock··on Show HN: Cynthia – Reliably play MIDI music files – MIT / Portable / Windows
I'd guess approximately nobody does it, but with winelib you can do a native compile and link.
ksherlock··on A time-travelling door bug in Half Life 2
There was at least one reason...

    long double x87me(long double a, long double b) {
        return a+b;
    }

    pushq %rbp
    movq %rsp, %rbp
    fldt 32(%rbp)
    fldt 16(%rbp)
    faddp %st(1)
    popq %rbp
    retq
ksherlock··on We should all be using dependency cooldowns
The slow food movement encourages eating local foods and gardening, among other things, so it actually improves food security, for people who aren't food insecure.
ksherlock··on Giving C a superpower: custom header file (safe_c.h)
[[ ]] attributes were added in C++11 and later C23. There are 7 standard(C32) attributes but GCC has hundreds of them.

https://en.cppreference.com/w/c/language/attributes.html

https://en.cppreference.com/w/cpp/language/attributes.html

https://gcc.gnu.org/onlinedocs/gcc/Attributes.html

https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attribute...

ksherlock··on Reuters.com no longer works with JavaScript disabled
lite.cnn.com doesn't need javascript. "decent" and "biased", of course, depends on your perspective.
ksherlock··on Show HN: Pianolyze – Learn any piano song using AI/ML, right in the browser
Interesting. Here's some UI feedback:

There seems to be a thermometer and a waveform display that are half synchronized; clicking in the thermometer moves the cursor in the waveform but clicking in the waveform doesn't adjust the thermometer. This was annoying and confusing.

Also, the thermometer has labels on both ends so it doesn't line up with the cursor in the waveform. Please move the labels to be above the thermometer so everything lines up.

Maybe it's just me but I would find it more intuitive if the current notes were in the middle of the window (rather than at the extreme left). For the most part, the keyboard will be lit up in the middle of the screen. don't make my eyes bounce around.

ksherlock··on Ask HN: Where to begin with "modern" Emacs?
By the way, Richard Stallman uses emacs from a text console. A text console! Not an xterm, not a terminal emulator, the text console.
ksherlock··on Ask HN: Where to begin with "modern" Emacs?
The emacs GUI is basically a dog-shit terminal emulator that only runs emacs. Just run emacs in the terminal.
ksherlock··on YouTube is taking down videos on performing nonstandard Windows 11 installs
The Bootleg Series Volume 18: Through The Open Window, 1956-1963 will be released on Friday. If it's material in that timeframe, it's probably a Sony/Columbia DMCA issue or from google music file matching songs that are (soon to be) officially released.
← PreviousPage 4 of 34Next →