1,689 karma · joined Mar 5, 2019 (7y ago) · 580 submissions
#include<stdio.h>//RadioGatun
#include<stdint.h>/*32-bit\*/
#define b(z) for(c=0;c<z;c++)
uint32_t c,e[42],f[42],g=19,h
=13,n[45],i,j,k;void m(){j=0;
b(12)f[c+c%3*h]^=e[c+1];b(g){
i=c*7%g;k=e[i++];k^=e[i%g]|~e
[(i+1)%g];j=j+c;n[c]=n[c+g]=k
>>j%32|k<<-j%32;}for(i=39;i--
;f[i+1]=f[i])e[i]=n[i]^n[i+1]
^n[i+4];b(3)e[c+h]^=f[c*h]=f[
c*h+h];*e^=1;}int main(int c,
char**v){char*q=v[--c];for(;;
m()){b(3){for(j=0;j<4;){f[c*h
]^=k=(*q?255&*q:1)<<8*j++;e[c
+16]^=k;if(!*q++){b(18)m();b(
8){j=c;b(4)printf("%02x",(e[1
+j%2]>>8*c)&255);c=j;if(c%2)m
();}return 0&puts("");}}}}}//comment 5h ago · link · parent
https://luarocks.org/modules/luarocks/json4lua - https://luarocks.org/modules/winterstream/wjson - https://luarocks.org/modules/xpol/rapidjson - etc.
Lua supports arrays; it has optimizations when all of a table’s keys are integers. Keep in mind that AWK is the same way: There’s no numeric array in AWK per se either, just AWK’s version of a “table”, but it works just fine when all of the keys are integers.
Keep in mind that I have a fork of Lua which is 116,224 bytes in size (security hardened Lua 5.1 with `lfs` support); Lua is tiny and that’s why it does not have a built in JSON library nor will it wash the dishes for you.
Versions of Lua after Lua 5.1 introduced changes which broke backward compatibility. Lua 5.1 is smaller than newer versions of Lua, runs great, and is incredibly fast. I see Lua 5.5 as a different language than Lua 5.1, even though one can make a polyglot program which can run in both. Lua 5.1 is also the point from which a bunch of offshoots were made: luau (Roblox Lua), LuaJIT, etc.
comment 5d ago · link · parent
A bug report is when something doesn’t work as specified in the documentation.
A feature request is when someone wanted my program to do something it can’t do.
comment 5d ago · link · parent
The problem with bug reports is that the majority of them are feature requests. Or they are support requests. Very rarely are they actual bug reports.
So, I turned off bug reports.
The way I handled them before the age of bug tickets was to have a mailing list, and to tell people who emailed me privately to instead send an email to the list if they wanted support. This way, the community as a whole could either support the person, or we could have a discussion about why I wasn’t going to implement their favorite pet feature “for fun and for free”.
Right now, in the age of AI-automated attacks based on 0-days, developers need to pause adding new features and make anything Internet-facing as secure as possible (I’m very lucky my little open source project has never had a remote code execution bug).
comment 3w ago · link · parent
My car stereo, in theory, cannot accept a drive over 32gb in size. In practice, I have a 128gb drive in there. I used a third party utility to format it as a FAT32 filesystem to be 128gb in size. The car stereo only claimed a 32gb limit only because that’s the largest fat32 filesystem Windows will make from the GUI.
comment 3w ago · link · parent
I finally replaced the head unit with a plastic bracket and a standard old school in-dash stereo system. Much nicer setup.
It’s the cars which can’t have their head unit replaced with a simple stereo which worry me.
comment 3w ago · link · parent
comment 3w ago · link · parent
I am more a RedHat user, and Ubuntu never felt really comfortable for me. I don’t like having to do incremental upgrades every two years or so; I would rather do a single big upgrade about once every 7-8 years and have a rock solid development environment. Also, `dnf` is simpler and more stable than the mess of `apt-get` and `unattended-upgrades`.
comment 3w ago · link · parent
sudo dnf --enablerepo=security update
(This command is run every time one needs an urgent security fix right now when using Rocky Linux)Reboot to have the new kernel
This is how to get the patched kernel right now if running Rocky Linux.
Here is the patched kernel (`rpm -qa | grep kernel-6`)
kernel-6.12.0-211.69.1.el10_2.x86_64
More information:https://rockylinux.org/news/2026-05-14-introducing-security-...
https://forums.rockylinux.org/t/cve-2026-98432-any-roadmap/2...
comment 3w ago · link · parent
https://access.redhat.com/security/cve/cve-2026-98432
For RedHat/Rocky 10:
https://access.redhat.com/errata/RHSA-2026:93413
Also, a mitigation:
https://access.redhat.com/security/vulnerabilities/RHSB-2026...
comment 3w ago · link · parent
When I interviewed with them a couple of years ago, I got the sense there was a lot broken with their culture. It was the best choice back when RedHat/CentOS stopped providing long term security updates, but now that Rocky Linux is around, it’s getting to be time to jump ship again.
comment 3w ago · link · parent
I might be moving over to Rocky Linux 10.
comment 3w ago · link · parent
https://ubuntu.com/security/CVE-2026-98432
It’s still, over a week after disclosure and patches, unpatched in Ubuntu.
As for me, a part of me wants to move over to Rocky Linux 10.
comment 3w ago · link · parent
comment 3w ago · link · parent
Lua5.1 is much more stable by the virtue that the only updates it code gets are very minor changes to fix any lingering security issues it has (the last Lua5.1 CVE is from 2014).
[1] I guess these days a LLM can do the grunt work of converting a Python2 script to Python3.
[2] There is a project which converts Lua in to native code: https://github.com/samyeyo/clx
comment 3w ago · link · parent
Lua 5.1’s edge over Javascript and Python is that it’s a lot smaller and simpler.
[1] It’s possible to recompile Lua 5.1 to have the numeric data type be an int, but the standard compiles of Lua5.1 only have double precision floats for numbers. Bitwise operators are technically not part of Lua 5.1, but a library to add support is easy and is usually done: Most Lua5.1 forks including LuaJIT and MediaWiki’s version of Lua5.1 have such a library available. Later versions of Lua have both int and float support.
comment 3w ago · link · parent
comment 3w ago · link · parent
https://archive.ph/HcOq2 (This is a link to the post for this article)
(If one’s ISP can’t access archive.today, I find that Firefox’s built in free VPN can usually access them)
Or, you can use on of the various Reddit scrapers, e.g:
https://redlib.catsarch.com/r/Seattle/comments/1xhf6qp/archi...
Here’s a list of Reddit scrapers:
https://github.com/redlib-org/redlib-instances/blob/main/ins...
Personally, as scummy as archive.today is at times, I can generally trust them to have an honest archive about, say, someone’s drunk post before said drunk deletes the post.
comment 3w ago · link · parent
I wish Lua 5.1 could become part of POSIX; there are a lot of implementations of it out there.
comment 4w ago · link · parent
The way to handle elements wide enough to induce horizontal scrolling is to put them in a <div> (or make CSS for the tag in question) and make CSS with overflow-x: scroll; for just that element. An example from one of my webpages:
pre {max-width: 90vw; overflow-x: scroll;}comment 4w ago · link · parent
The only way to work around this is to have two sets of chess pieces in the font, one with a white background for pieces on light squares, and one with a colored background for pieces on dark squares.
Printing web pages is rare enough I just assume someone doing that will also click on “print backgrounds”.
(The reason to not use images for the chessboard diagrams is because they use more bandwidth and can’t have usable “dark mode” colors)
comment 1mo ago · link · parent
To wit: There was a lawsuit where Susan Clements-Jeffrey sued Absolute Software (Lojack) for a stolen laptop she acquired; Lojack used surveillance to track down the stolen laptop and Susan successfully sued for invasion of privacy (Lojack settled instead of trying to fight it).