Profile for hikari
About hikari
Bio
from another world; anime girls on the internet who are terrible at playing guitar and slightly less bad at programming; EN/SV/DE/日本語
Stats
- Joined
- Posts
- 17518
- Followed by
- 1558
- Following
- 198
gonna piss everyone off by writing a tty driver that emits backspace characters on truncation, so you must open the device file with append rather than truncate mode
if ([it looksLike:Duck] &&
[it respondsToSelector:@selector(swim)] &&
[it respondsToSelector:@selector(quack)]) {
assert([it isKindOfClass:Duck]);
}
Neither ISO/IEC 9899:1999 (“ISO C99”) nor IEEE Std 1003.1-2001
(“POSIX.1”) requires time() to set errno on failure; thus, it is impossible
for an application to distinguish the valid time value -1
(representing
the last UTC second of 1969) from the error return value.
so many people talking about y2k38, we forgot to consider y1k969 (or all the overflows after y2k38)
wtf the king of sweden’s personal information is secret since some time in 2021. you used to be able to find out his personnummer etc https://carup.se/carup-avslojar-kungens-nya-hemliga-liv-har-fatt-skyddad-identitet-i-alla-register/
0x0502, the number every opengl programmer fears
hahaha the EU Commission’s tool for checking VAT numbers now labels the member state drop-down box “Member State / Northern Ireland”
heh, Terminal.app gets confused if you have a tab character in exactly the right place in an overflowing line
ok so I was going to ask what fread() does when it partially reads an object, but then I didn’t, because I realised the whole point of it working with “objects” must be so it can ensure the file position is at an object boundary if an error occurs.
JOKE’S ON ME, THIS IS C
unix users really think it’s ok to write shit like ‘Any created files will have mode “S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH”’
[NSCharacterSet illegalCharacterSet]