KeyJ (@KeyJ_trbl) header
KeyJ (@KeyJ_trbl) profile picture

⌨️ software developer 🎲 demoscener 💾 retrocomputing fan

Hannover, Germany
Joined October 2009
Photo by KeyJ (@KeyJ_trbl)Photo by KeyJ (@KeyJ_trbl)Photo by KeyJ (@KeyJ_trbl)Photo by KeyJ (@KeyJ_trbl)Photo by KeyJ (@KeyJ_trbl)Photo by KeyJ (@KeyJ_trbl)Photo by KeyJ (@KeyJ_trbl)Photo by KeyJ (@KeyJ_trbl)Photo by KeyJ (@KeyJ_trbl)Photo by KeyJ (@KeyJ_trbl)
The day has come - I have to leave this platform :( Yesterday, Twitter "suspended" my custom app that I use to read Twitter, because it "violated Twitter Rules and policies" (without saying which ones specifically, and I also don't see any that would apply).
1
263
I'd love to appeal the suspension, or get support and fix whatever issue there might be, but I can't. The "submit a support ticket" option is a dead link. I can't appeal a locked or suspended account, because my account isn't suspended. It won't even let me fill out the form.
1
1
134
So, unless @TwitterSupport can help me, or somebody points me to the form where I can indeed appeal suspension of an app (*not* an entire account!), I won't be able to access Twitter any longer :(
1
106
Hot take: the Flatpak / Snap plague is worse than everything that Poettering ever did to the desktop Linux ecosystem.
1
1
108
Windows misfeature of the day: Holding Shift while pressing a Numpad key with NumLock enabled temporarily *disables* NumLock and causes the respective cursor key to be registered. It even simulates the brief release of the Shift key to make the illusion perfect.
1
70
That is certainly a well-intentioned feature, but it's a real PITA if you want to detect such a situation and handle Shift+Numpad presses as such. You need to resort to ugly and potentially unreliable hacks to pull it off :(
1
41
(For the interested: Have a shadow Shift key state in your app that is enabled on WM_KEYDOWN of VK_SHIFT, but disabled a few milliseconds *after* the respective WM_KEYUP, assuming that the only thing quick enough to produce a keypress during that time is NumLock-off emulation.)
1
41
Monday - Greg Tuesday - Ian Wednesday - Greg Thursday - Ian Friday - Greg Saturday - Ian Sunday - Greg The Gregorian Calendar
90
936
77
9,055
639,940
1
12
1
25
4,243
Where can I get this "Git merch" everbody's talking about?
3
81
What did the color say to the other color? I love hue.
20
171
10
1,945
226,191
WTF? Debian removes Python 2: bugs.debian.org/cgi-bin/bugr… Now that's a huge "f*ck you" for everybody who still uses old scripts. This makes me really sad; Debian used to be conservative and focused on stability, and now they're doing stuff like this.
1
105
#AdventOfCode 2022/20, Python 3, 227 Bytes: V=[*map(int,open("input.txt"))];N=len(V) def P(c): O=[*range(N)];I=O.index for r in O*c:i=I(r);O.insert((i+V[O.pop(i)])%(N-1),r) print(sum(V[O[(I(V.index(0))+i*1000)%N]]for i in(1,2,3))) P(1);V=[n*811589153for n in V];P(10)
1
1
117
#AdventOfCode T,X=tuple,(0,1,2) G={tuple(map(int,l.split(',')))for l in open("input.txt")} A={0};q={T([-1]*3)} N=lambda s:(T(p[i]+d*(a==i)for i in X)for d in(-1,1)for a in X for p in s) while q:A|=q;q={z for z in N(q)if all(-2<c<22for c in z)}-A-G print(sum(z in A for z in N(G)))
1
1
154
Argh, I missed a few very obvious bytes while golfing. So here it goes again: [cont'd]
1
52
#AdventOfCode /18 T,X=tuple,(0,1,2) G={T(map(int,l.split(',')))for l in open("input.txt")} A={0};q={T([-1]*3)} N=lambda s:(T(p[i]+d*(a==i)for i in X)for d in(-1,1)for a in X for p in s) while q:A|=q;q={z for z in N(q)if all(-2<c<22for c in z)}-A-G print(sum(z in A for z in N(G)))
67
I couldn't resist solving day 1 of this year's #AdventOfCode in x86 assembly. The result: a 256-byte DOS .COM file, runs on any 8088/8086 machine with >=128k of RAM and DOS 2.0. Takes ca. 2 seconds to run on an OG IBM 5150, *including* floppy loading time. github.com/kajott/adventofco…
1
4
This can certainly be made smaller / more efficient / more robust / whatnot, but I stopped optimizing once I reached that magical 256-byte mark :)