cannam

Joined 13 years ago

Karma
1,867
Submissions
478
Member since
Jul 24
Audio and music software developer.

https://all-day-breakfast.com/cannam/

Occasional blog at https://thebreakfastpost.com/

View on Hacker News

Recent submissions

Comment · 1 year ago
Comment · 1 year ago
I'm just about old enough to remember (in the UK) foolscap paper, an imperial size also a bit longer than A4. You never see it any more (at least I don't) but foolscap sized box-files are still readily available. I guess a slightly bigger box than you need is not usually a problem.
Comment · 1 year ago
There's a link to the Perl code hidden in the third para of text ("The [Perl source] for this script is available...") Of course a big reason it still works is that it was written for Perl 5, which is still current!

What that link doesn't give you is the dictionary files I used as input for the preprocessing step - which of course were also 1998 vintage. There are copies on the server (https://all-day-breakfast.com/chinese/cedict.b5_saved, https://all-day-breakfast.com/chinese/big5-PY.tit)

My Chinese got somewhat better, then a lot worse, then a little bit better again - obviously mostly to do with whether I was actually using it, which on the whole I haven't been. But back then I was really working on it and I just wanted something to help - there were a few useful resources I knew of (CEDICT obviously, and Rick Harbaugh's zhongwen.com was mindblowing at the time) and this seemed like a way to glue them together that I actually knew how to do.

Writing learning tools is obviously not the same thing as learning though.

Comment · 1 year ago
This was my attempt at doing something a little bit like it, 27 years ago. It's mostly interesting as a historical artifact - certainly yours is a lot more sophisticated and much much prettier! This one just does greedy matching against CEDICT.

https://all-day-breakfast.com/chinese/

What is kind of interesting is that the script itself (a single Perl CGI script) has survived the passage of time better than the text documenting it.

Besides all the broken links, the text refers throughout to Big-5 encoding, and the form at https://all-day-breakfast.com/chinese/big5-simple.html has a warning that the popups only work in Netscape or MSIE 4. You can now ignore all of that because browsers are more encoding aware (it still uses Big-5 internally but you can paste in Unicode) and the popups work anywhere.

Comment · 1 year ago
Comment · 1 year ago
Comment · 1 year ago
> No-one ever called a real program an "app" before that, did they?

Yes. Apple called them apps in the 80s, at least on the Mac - this is Apple II but it's plausible they were also referred to as apps there?

For my part I read the title as "Taking over a wall changed my direction as a programmer" which had me really confused for a while. I'd like to read that article, I think.

Comment · 1 year ago
The April 1984 issue of the British magazine "What Micro?" (70p from all good newsagents) contained a spoof review of a revolutionary new PC, the "Victori XZ64/4A".

A paragraph in praise of its display reads:

"Now lets move on to the display - and what a display it is. No less than 30 colours are available from Basic: white, off-white, cream, dark cream, light tan, light brown, bamboo, medium tan, medium brown, wood brown, sepia, burnt umber, oxtail, mustard (both French and English), khaki, off-brown, chocolate, dark tan, dark brown, dark burnt umber, burnt chocolate, drinking chocolate, ovaltine, light black, medium black, dark black, brown with a hint of green, brown with a hint of red, and brown with a hint of reddy-green. On some televisions these colours tend to look a little muddy, but with a little hunting around compatible sets can be found. For the purpose of this review I am using a VictoriVision Super Compatible available at most good electrical shops in Taiwan."

Comment · 2 years ago
QString::toUpper/toLower are not locale-aware (https://doc.qt.io/qt-6/qstring.html#toLower)

Qt does have a locale-aware equivalent (QLocale::toUpper/toLower) which calls out to ICU if available. Otherwise it falls back to the QString functions, so you have to be confident about how your build is configured. Whether it works or not has very little to do with the design of QString.

Comment · 2 years ago
Comment · 2 years ago
> imagine if McLaren did this

In some sense car manufacturers do do this - their designs are famous for being full of functionally empty retro cues that customers nonetheless go for.

Comment · 2 years ago
(Amateur cellist)

Instinctively I find this absurd too. I always thought it was funny that, at least at the level of student instruments, the more you spend, the more beaten-up your new instrument looks. Basic ones have an even spray varnish (which I generally quite like). My slightly better* Chinese factory instrument is antiqued to the extent of having a more worn-looking patch where the hand rests when playing in higher positions, as if to suggest decades of performance as a soloist. It's nonsense.

But plainly people do like this and makers do make it. See e.g. the instruments at https://www.myluthier.co/category/violins (I can't afford to shop there, I just picked it because they have pretty preview images) which stand as quite good evidence against any suggestion that "reputable luthiers would never". Yes at some point you just have to make a living, but there's enough skill put into it to suggest there might be something more artistically interesting going on as well. The results are certainly quite personal.

There are practical arguments for antiquing. It's kind of handy when you're playing in an ensemble: from a distance my cello looks basically the same as the others around me in the orchestra even though some of them are a century older and genuinely quite harshly used. And you never have the pain of getting the first obvious scratch or chip in a pristine instrument.

Curiously this doesn't seem to be a very new practice either - I think even 150 years ago, new instruments were being turned out designed to look like much older ones.

* Sounds and plays better, not just cost a bit more. I didn't choose it for the antiquing!

Comment · 2 years ago
She's still playing and touring and if you get a chance to hear her, she's an absolute delight.
Comment · 2 years ago
> My greatest "unnecessary Firefox UI change gripe" is the removal of browser.urlbar.clickSelectsAll 4 years ago

Totally agree. Four years on, and it still trips me up daily.

Ironically, the usual failure mode for me is actually the one this change was supposed to help with - I want to select the whole URL, so I instinctively double-click it. This has the effect of selecting everything on the first click, then reducing the selection to a single word on the second. I am momentarily perplexed, then I recover and start clicking again, but now it takes three more clicks to get the whole URL selected.

It's surprising how annoying this is!

The explanation given in the tracker seems to amount to "at some point in the future, we might do something else that justifies this". Four years later and I'm not seeing it?

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton