News for hackers. Stuff that matters.

arthurdenture

This is way more pleasant than the kazoo version by famous children's author Sandra Boynton. https://www.youtube.com/watch?v=U14IBek-wNU
Re:A Rural Public Transit Odyssey on Tuesday June 17, 2025 @06:28PM (#44304668)
There's also a Youtuber who did this type of journey from San Francisco to Seattle (https://www.youtube.com/watch?v=7OQwA95sMbg) and to Los Angeles (https://www.youtube.com/watch?v=S-Jdfkuy9Ik).
Re:Let Everybody Sing on Wednesday February 28, 2024 @04:13PM (#39543504)
> Something that surprised me is that [1] is of a minor key, but the solfege marks are for the relative major

Major and minor keys use the same shapes / solfege system. The major scale is "fa, so, la, fa, so, la, mi, fa", while the minor scale uses the same syllables but starts on la. This means that the shapes always represent the same intervals (i.e. pattern of whole and half steps) whether a song is in a major or minor. It's hard to describe but makes sense when singing.

Re:Let Everybody Sing on Wednesday February 28, 2024 @04:08PM (#39543446)
One limitation is that the shapes are really only useful for singing, not for instrumental music. They also would not be meaningful for music that switches keys or that isn't tonal (i.e. isn't in a particular key at all). So they are a very good fit for what you might think of as "church music" (at least written before the 20th century), but for other settings they would be either meaningless or a hindrance.

That's one reason shape notation never caught on; another reason is that the notation was introduced by publishers of American sacred music and not by, say, music conservatories.

Re:A SimCity Interactive Map of Chicago's Zoning on Wednesday December 27, 2023 @12:39AM (#38779422)
Is it possible that many of those uses predate the current zoning? There are numerous buildings in Chicago that would not be permitted by their current zoning.
Re:Google Imagen 2 on Wednesday December 13, 2023 @11:54AM (#38630148)
I asked imagen 2 to generate a transparent product icon image, and it generated an actual grey and white square pattern as the background of the image... https://imgur.com/a/KA2yWHp
Re:SL(1): Cure your bad habit of mistyping on Tuesday July 12, 2022 @07:34PM (#32077199)
Extremely useful .gitconfig snippet:

  [alias]
   git = !sl
catches e.g. `git git status`, which I run shockingly often.
Re:Improving large monorepo performance on GitHub on Tuesday March 16, 2021 @11:29PM (#26486183)
That was the case many years ago (extremely customized perforce server), but after that there was a full rewrite as a distributed system built on Bigtable etc. - https://cacm.acm.org/magazines/2016/7/204032-why-google-stor... is an overview. It wasn't a ship-of-Theseus type situation where they incrementally replaced components.
Re:Tunnels in the US cost more than anywhere else on Tuesday November 03, 2020 @12:37AM (#24976704)
You're comparing regional rail terminal stations, which serve many lower-frequency lines, to subway platforms, which typically serve a single higher-frequency line. (2-10 minutes between trains.) That's the scenario where a mezzanine is less useful.
Re:How porting to TypeScript solved our API woes on Wednesday April 08, 2020 @09:54PM (#22819106)
I completely agree with the more general point, that consuming external data requires a validation layer. But oh boy do I have feelings about class-validator.

Here's what it looks like to correctly annotate an array of objects with with class-validator and json-schema annotations:

  @ApiProperty({ type: Foo, isArray: true })
  @ValidateNested({ each: true })
  @Type(() => Foo)
  @IsArray()
  items: Foo[];
It's not just that you have to define everything in triplicate, it's that the failure mode for forgetting any of the above is to silently not validate your data. Unless you're very careful, you don't get the safety benefits that were the whole point of using class-validator in the first place.

If I were starting from scratch, I would instead consider either io-ts or a solution that involves a code generation step, where this entire category of risk is avoided.

Re:Build Your Own React on Thursday November 14, 2019 @03:23PM (#21539031)
The alternative would be to write a side effect inside your `render()` function, which is illegal -- it breaks the new Concurrent mode rendering, which can call render() speculatively.

I mean, I see why it's intuitively unappealing to you, but there are perfectly good reasons for the design.

Interactions can be extremely negative without making the news.
Re:Emacs 26.3 on Thursday August 29, 2019 @09:43AM (#20829395)
That is very good to hear. I've used Emacs for a decade, but I recently switched to VS Code because JSX support in Emacs was such a mess.
Re:My Sudden Trip to Hell on Wednesday August 21, 2019 @11:04AM (#20757895)
That's great as long as the insurance company deigns to cover you. Before the ACA, that was not guaranteed.
Re:Thaddeus Kosciusko on Friday July 12, 2019 @10:04AM (#20420799)
For instance, the polonaise attributed to Kosciuszko might have been composed by someone else. Wikipedia reports the composition as fact, but https://polishmusic.usc.edu/research/dances/polonaise/ suggests otherwise.
Re:Apple kills the non-Touch Bar MacBook Pro on Tuesday July 09, 2019 @04:02PM (#20396001)
Heh, be thankful you figured out the problem before taking it in for hardware repairs: https://9to5mac.com/2019/06/11/macbook-pro-problem/
Re:Virtual DOM is pure overhead (2018) on Saturday May 18, 2019 @11:04PM (#19951183)
lit-html is context-aware and safe, just like JSX. It's not a raw string templating library.

https://lit-html.polymer-project.org/guide/template-referenc...

+1 to freetaxusa. I started using them a decade ago when I first had to file taxes, and I've been pleasantly surprised that they have remained a good choice this whole time. The product doesn't even feel like it has changed much (other than the never-ending tax law changes) over the years, which is a rarity for web-based products. It just does what it needs to do.
Re:Analyzing the chords of 1300 popular songs for patterns on Monday January 14, 2019 @08:34PM (#18908185)
Eb is probably disproportionately popular due to the common practice of tuning guitars down a half step, making Eb instead of E the natural/easy root chord.

I'm not sure why F would be more popular than D and A. One hypothesis would be that it has fewer accidentals; it's not a fun key for guitars, but many contemporary pop songs aren't guitar-driven anyway.

Re:Drivers Complain Raised Crosswalk Slows Vehicles on Saturday January 05, 2019 @03:32PM (#18834041)
No, if the majority of drivers want to drive faster than 35mph, the road is badly designed. It needs traffic calming devices, such as narrower lanes, curb extensions, and, yes, raised crosswalks. Enforcement (including automated enforcement) is a useful tool, but the start should be designing the road so that drivers naturally go at a safe speed.
Re:Software Testing Anti-patterns on Sunday April 22, 2018 @10:15AM (#16896245)
Similarly, overly elaborate test code can itself be buggy. A specific instance of this anti-pattern is when the test code duplicates the same logic as the code under test, logic which turns out to be incorrect.

In test code, I am a lot more tolerant of straight-line repetition in the name of simplicity, in a manner that would be worth abstracting were it in non-test-code.

Re:“Coming Out” as Face Blind on Sunday April 15, 2018 @09:11PM (#16846031)
As someone with prosopagnosia, I definitely rely on cues like hair. (It works until someone gets a haircut or changes their facial hair.)

There used to be a great face blindness test online where it first showed you a bunch of full pictures of heads to memorize, then for the quiz it showed cutouts of just the face. I had no idea that I was relying on all these non-face features until they were dramatically removed for that test. (Which I bombed.)

Re:“Coming Out” as Face Blind on Sunday April 15, 2018 @09:05PM (#16845997)
> Do you think you suffer from prosopagnosia?

I do.

I once watched Up in the Air and had to ask at the end which one was George Clooney. (In my defense, I had previously seen him in Syriana, where he had a beard. Hair and facial hair are the crutches I tend to use to recognize people.) Needless to say, on the Famous Faces test I had trouble with anyone less memorable than, say, Barack Obama.

Older »