HNHacker News
TopNewBestAskShowJobs

qiqitori

1,068 karma · joined November 5, 2016

https://blog.qiqitori.com/

Do not upvote past 999 karma, thank you very much.

submissionscomments
qiqitori··on The C++ Iceberg
I don't think the standard (C99) uses the term "undefined" in its description of the gets() function. (Also gets has been removed from the standard in C11.) But maybe it uses the term to describe what happens when you change memory that shouldn't be changed. Well, what do you think the C standard should say in such a case, without knowledge of the system you're running on?

There are of course some functions where it would have been nice to allow passing in an invalid value and the function just returning its normal error or "no" return value. E.g. isalnum might be nicer if it didn't crash for input > 255. (But perhaps it's not possible in all implementations without adding some other constraints that didn't exist before.)

qiqitori··on Woodworking as an escape from the absurdity of software
It's the same with many things. Hotel users suck sometimes, restaurant users suck sometimes, even museum users suck sometimes. Some people are grateful, some people think you're the hostile one.
qiqitori··on Pixiv Blocks Adult Content, but Only for US and UK Users
Heh, most commenters here are way off-base IMO, and IMO the real reason is hinted at in the article. Notably, there are categories of adult content that are illegal in the US and UK, but not in Japan. Based on something that very recently happened to someone I know in the UK, I think it is likely that Pixiv was compelled to hand over information on users who were looking at illegal-in-UK stuff. Perhaps Pixiv has gotten tired of doing that.
qiqitori··on Incident: Swiss A333 at New York, rejected takeoff due to traffic on runway
I don't get why this incident occurred, it should be quite preventable with the currently installed (quite simple) technology, namely status lights. https://en.wikipedia.org/wiki/Runway_status_lights

They're apparently installed according to this PDF: https://www.faa.gov/air_traffic/technology/rwsl/media/JFK.pd...

In this case, planes coming from 04R (per the article) were crossing 04L. All the normal crossings of 04L I see in this PDF are equipped with the lights.

So what went wrong?

qiqitori··on Kate editor on all platforms
Too bad that gedit is utter garbage now. Lol Gnome. My pet rabbit gets confused when there are too many features so let's remove them all.
qiqitori··on Changes in conspiracy beliefs are rare, but possible
Maybe educate people about conspiracy theories in school. Too late for current believers, but maybe it'll get rid of the problem in a couple decades.
qiqitori··on Going in circles without a real-time clock
Some unsolicited solutions, maybe not for you but somebody in a similar situation: maybe replace it with a supercapacitor (needs some wiring changes, otherwise it won't ever be charged, should last long enough for most power outages), or use a stack of coin cells in parallel (difficult due to physical dimensions, and they'll still go dead at some point). You can also short two wires on the ATX supply to automatically turn on the computer when power is supplied (which may not be good enough if you have to press a key during boot to dismiss the low battery warning). Or hack the BIOS :)
qiqitori··on It's Dante's hell – we're just living in it
I'd like to try and read a modern English & prose (i.e. highly non-poetic, non stilted, if necessary non-direct) translation of Dante's Inferno sometime. (Poetry is incompatible with my brain, unless it's funny. I can't be the only one? Yes, school was hell sometimes. (No pun intended.)) Does anyone have any recommendations?
qiqitori··on A disk so full, it couldn't be restored
I have an answer, but I'm not sure you'll find it particularly fulfilling because it is quite hypothetical.

The average user just needs to be able to ask the question in a decent place. E.g., Hacker News or a fitting Stack Exchange site. Some developers not afraid of touching the kernel will see the question (or one like it), and if no workaround (e.g. truncation) is found to be acceptable, someone may decide to look into the kernel source to see if it's feasible at all. They may find a lower level function that deletes without writing metadata. Or they may find the function in the filesystem driver's source code where the metadata is written first, and if that was successful, the actual data is written. In the easiest case, you could create a copy of the function with the calls swapped, and a live CD with the modified driver could be created. (Course, this solution is quite unsafe, as writing the metadata could still fail for some other or related reason, so it's a bit of an emergency solution.)

There are two other filesystems that were mentioned in the discussion here, btrfs and ZFS.

ZFS solved the problem by reserving space, so creating such a tool isn't needed. (However, ZFS is not part of Linux, so I'm not too interested in digging into the details.)

btrfs users apparently accept this as a fact-of-life, but have what they consider decent-enough workarounds, see e.g. https://www.reddit.com/r/btrfs/comments/ibjrpm/can_i_somehow....

(I use neither ZFS nor btrfs; I prefer boring filesystems, thank you very much.)

qiqitori··on A disk so full, it couldn't be restored
Maybe flamebait, but here is my honest opinion, which I believe is aligned with the hacker ethos: maybe if you were using an open-source operating system you could, with a little experience, write a simple tool that deletes a couple files without allocating new metadata. (Or more likely, somebody else would have been there before you and you could just use their tool.)
qiqitori··on Logik: Open-source FPGA toolchain by Zero ASIC
Lattice Semiconductor's iCE40 sort of qualifies, no? (Maybe getting a little old now?) Cheap and fully supported by an open-source toolchain and really easy to use. (Unless a GUI is needed.)
qiqitori··on XZ Backdoor: Times, damned times, and scams
> Notably, on Tuesday, Jun 27, 2023, we see two commits: 23:38:32 +0800 and 17:27:09 +0300. If we do the math, there is about a 9-hour difference between the two commits.

Isn't 17:27:09 +0300 == 22:27:09 +0800, making the commits just about one hour apart?

qiqitori··on Genetically engineering koji mold to create a meat alternative
Aspergillus oryzae (koji) is eaten raw in Japan, every day, since a long time ago. It's used to make miso. When making miso soup from raw miso (which is made using raw koji), you shouldn't bring the soup to a boil after putting in the miso in order to preserve the positive health effects.

Koji is relatively well-known even outside of Japan these days I believe, even Fedora's build system is named after it.

qiqitori··on Deleting Software I Wrote Upon Leaving Employment of a Company
There are a lot of comments saying that the situation is clear-cut and the guy is commiting a crime. But that's BS, this situation isn't a normal situation at all. Also, intent matters. If I delete some old code that I think I no longer need, to free up space or even to get my home directory into an OCD state, I'm not liable for destruction of company property even if I accidentally got rid of something that might have been useful. In fact, it could be argued that when leaving a workplace you should maybe make sure that you don't leave behind any customer data that should be deleted.
qiqitori··on Simplicity of IRC (2022)
The thing is... most small or medium-sized channels are idle most of the time. Some then unidle for a bit if you wait e.g. a couple hours or even days. Even if there's no activity for months, if someone says something, someone may respond. Large channels are often quite active. Most channels have a topic of discussion, which can usually be inferred from the channel's name. If you like computers you may have a favorite programming language or whatever, and often there's a channel for it on chat.libera.org. E.g. #perl, #python, #c, #linux, #debian, #ubuntu, etc. (note, I'm currently on none of these). There's also channels for natural languages, electronics, etc. And most of the time the channel name is #WORD or ##WORD. Some of these channels are very active, some aren't.

Many mature channels have a group of regulars that have been part of the channel for years or decades. Many channels are a bit of a social club. Some channels have regulars that are insufferable.

qiqitori··on Playing audio files in a Pi Pico without a DAC
Last year when I did a lot of sound-related projects, I implemented the YM3012 DAC on a Pico: https://blog.qiqitori.com/2023/03/raspberry-pi-pico-implemen... I used PIO to read the digital input and used PWM for the sound output. I verified that the conversion was correct but unfortunately never really put in a lot of effort to try to make it sound good. There's a bit of a hiss.
qiqitori··on Show HN: 3 years and 1M users later, I just open-sourced my "Internet OS"
Love it! I liked the Solitaire implementation. The terminal seems very lacking, "ls" worked but e.g. "ls *" or the "find" command didn't work.
qiqitori··on Fourays: A Tribute to the AY-3-8910
The ZX Spectrum has this sound chip (or almost, for the pedants) and there's a lot of interesting music composed for it. Mostly from Eastern Europe apparently? Here's a good selection: https://zxart.ee/eng/music/top-100/

(I had a bunch of time last year and learned a lot about some retro sound chips, including this one, and while at it converted two tunes I liked to MSX ROMs, as I have an MSX and the sound chip is the same: https://blog.qiqitori.com/2023/05/playing-psg-tunes-or-even-...)

qiqitori··on Thou shalt follow these vintage computing commandments
I have an old MSX including its box. The box is of course dirty/moldy, and I derive zero value from it. I think most retro nerds wouldn't derive any value from it. Am I wrong? I mean, if I wanted to (I don't) I could take a picture/scan of each side and make a better-than-current-state replica of the box. I've had it for over a year. What to do? :/
qiqitori··on Apple declares last MacBook Pro with an optical drive obsolete
You could rip those streams if you really wanted to. Even an analog rip could have better quality than a DVD. (Analog rips don't really circumvent the DMCA and would be legal at least in Japan (my jurisdiction), where copying stuff (including rented stuff) is legal as long as it's for private purposes). (IANAL)
qiqitori··on Arctic Adventure: A Lost 1981 TRS-80 Adventure Game
I "preserved" a (probably somewhat lost) sokoban-like game (from the makers of Sokoban in fact) from the early 1980s as a JavaScript game about a year ago.

https://blog.qiqitori.com/tnt_bomb_bomb/ Check it out if you're interested.

* "probably somewhat lost" as in, not available as a ROM/image anywhere on the internet AFAICT, but some mentions, and even gameplay videos on YouTube

qiqitori··on Building a USB SNES Controller
A while ago I was a little into controller hardware hacking and did almost the same thing but for an MSX! Even wrote a blog entry, but unfortunately in Japanese (with pictures though): https://blog.qiqitori.com/2022/09/%E6%9D%90%E6%96%99%E8%B2%B...

And one year later I also used a Raspberry Pi Pico to convert a USB controller's signals to MSX: https://blog.qiqitori.com/2023/09/using-a-usb-hid-game-contr...

(And later, USB controller to Nintendo Switch, https://blog.qiqitori.com/2023/09/playing-on-the-nintendo-sw...)

qiqitori··on Which word begins with "y" and looks like an axe in this picture? (2017)
Here's another question with an answer that blew my mind just the other day; not nearly as long though: https://scifi.stackexchange.com/questions/283546/does-hagrid...
qiqitori··on Ask HN: Should I try to manufacture toasters?
Maybe off-topic, but having recently repaired a cheap-ass toaster, maybe some insights:

When you get a cheap toaster, they will probably have a design flaw: when the toaster pops up, there will be arcing. This means that the toaster will only last a few years. My repair was in this section. The heat eventually desoldered the mains pad on the PCB. You can maybe repair it once and get another year out of it, after that the PCB will be very charred and brittle. The fact that the PCB gets toasted a little bit every time probably isn't great for your health either, so I think I wouldn't recommend repairing toasters with this flaw, unless you have some clever plan to get around this problem. My new toaster is a name-brand one. And I don't see any light when it pops up, so maybe it's fine. I've also seen other name-brand toasters that were only replaced because they got filthy -- due to improper maintenance I must add :p

My toaster was mostly made of metal that was bent into the shape of a toaster, plus plastic on the outside. To disassemble it, you have to use pliers to bend some interlocking metal bits into a different shape. That should be pretty cheap to manufacture! The pop-op logic was very simple, not even sure if it used a chip or not. If it did, probably nothing digital, maybe just a 555. Single-sided cheap circuit board.

I want the following functions: stop button, extra long button, short button, single slot operation.

Most people are probably comfortable with a toaster that just lets you adjust the duration. But if you add sensors that can reliably(!) detect how much browner your toast or bread has become compared to when it was inserted, go for it. If that sensor goes haywire after two years, then don't bother IMO. If you can add odor or smoke sensors that react when the toast is burnt, that might be nice too. (Course they might go off when you run the toaster for the first time to burn off the lubricant(?), so that may add some complexity)

qiqitori··on Ask HN: Why do computers/tablets/etc "freeze up" as they get older?
This is obviously not the case in general. There are a few things that may be correlated with the age of a computer though -- full SSDs are often slower; newer programs/sites require more memory and CPU; thermal throttling due to dried up thermal paste or dust.
qiqitori··on Ants recognise infected wounds and treat them with antibiotics
I've had excellent results with ant bait containing hydramethylnon. Just placed a couple bait containers in the room I had them; they were gone the next day and it's been almost three years.
qiqitori··on Coherent: The affordable Unix-like PC OS from over a decade before Linux 0.01
Commodore's UNIX machine also ran Coherent (https://en.wikipedia.org/wiki/Commodore_900). That machine didn't make it to market, but its video chip found its way into the C128.
qiqitori··on Signal reflections in electronic circuits
The Commodore 128 had a bodge wire that was added very late in the development cycle, and it was there to get rid of an instance of signal reflection. Bil Herd mentions it in his book, and I think this video of his goes into more depth: https://youtube.com/watch?v=kQXdEdsT5qw
qiqitori··on OpenAI's employees were given two explanations for why Sam Altman was fired
To me at least that's an _extremely_ rude thing to do. (Unless one person is asked to do it this way, the other one that way, so people can compare the outcome.)

(Especially if they aren't made aware of each other until the end.)

qiqitori··on I spent 3 years working on a coat hanger [video]
These are the nicest clothes hangers I have in my possession, i.e. they can be used with a lot of different stuff: https://www.topvalu.net/items/detail/4549741790529/

Now I wish they had a hinge too. (Hmm, weekend project?)

← PreviousPage 5 of 15Next →