21,281 karma · joined Nov 23, 2012 (14y ago) · 6,748 submissions
blog: https://rtpg.co
email: raphael at above domain
comment 4y ago · link · parent
I imagine that AA is not doing something out of malice. Maybe everyone who is arrested claims they're innocent, but if you're going to put someone in jail for 2 weeks you better have good evidence! Yeah, maybe it's annoying, but so what? Everyone has to do annoying shit for work.
comment 4y ago · link · parent
What was going on with the justice system here? Of course AA is a component in the events that lead up to his arrest, but surely our justice system should not just arrest people on AA's word and not provide any recourse. Why are we putting shoplifters into a jail cell for 17 days _even if you knew they were shoplifters_. How does a judge look at this situation and determine that this person is a flight risk?
There are so many points where humans could have intervened and stemmed the damage, but didn't.
comment 4y ago · link · parent
But as someone who works on a sprawling set of template files with loads of sprinkled conditionals in a template language... the idea of using a "real language" for the templating, and in particular having type checking and proper abstraction tools (you can just write functions! No weird template tag tricks) is so much nicer to me.
HTML templates have always felt super brittle to me, basically at the level of C preprocessor programming. Even just with React/TS you can get away with so much with way more confidence given the typed backing.
Though I think that you _could_ get away with some nice tricks in Rust thanks to macros, where you ingest the template files and generate render functions with all the properties... or something like that.
comment 4y ago · link · parent
There is almost nothing stopping people from writing up iPad apps for coding things up, except for the fact that there is no market. Apple is no longer standing in the way IMO (stuff like Pythonista exists after all)
comment 4y ago · link · parent
It's OK for me if there is a single binary that is "guaranteed" to work that also needs to be installed (for example "you have to install nix/tox"), similar to people having to install a JVM (which mostly works relative to Python).
comment 4y ago · link · parent
And yeah you can use curl for web requests. But when your problem then becomes "make a web request, take a chunk out of that" you're looking at curl _and_ jq. And clean error handling...
I know how to write shell scripts, but I think I hit their abstraction ceilings way too early, especially if I'm looking to write something that is maintainable by other people on the team. I know people talk about how every machine will have some shell, but when you think about it a bit more all the "nice" shell utils are not installed by default.
All the more power to people who can write clean shell scripts. I try to, but am not good at it. But I know how to write Python (or JS, or Java, or C if someone demanded I do it...)
comment 4y ago · link · parent
I know there are probably other answers (I guess writing binaries in Go?), but given how nice Python is for glue code when it works, I do wish for something like `python --config-file pyproject.toml my-script.py` that would figure out requirements, install those "somewhere", ensure the right python version (installing if necessary) and then run the script in a consistent environment (PYTHONPATH being reset, for example).
I know there's a lot of tools for packaging Python code into their own binaries, but I think we could probably get pretty far with some built-in "install and run" tooling that doesn't start with "decide where to put a virtualenv"
comment 4y ago · link · parent
Of course there’s not much when the street number is off… but even then you have the name.
I believe in the case of the USPS there’s also a lot of stuff not going into sorting machines either. It’s not all automated
I think you could do PO numbers for lots of stuff of course, and lots of checksumming could be put into place. But I think that for a lot of existing flows the zip code is super important and relied upon, and obfuscating that level of routing would not be worth it for the USPS
comment 4y ago · link · parent
I think in the more nuanced view staffing agencies allow people with irregular rhythms to still have a job. And of course helping people actually get a foot in the door! But if you're going to work full time anyways, and there's more open-ness to you being hired, why go through a staffing agency? I think the reasons end up being limited to "could not get hired yourself".
comment 4y ago · link · parent
Polytechnique has 32 university admissions compared to ~300 from the entrance exams.
Harvard is 1/3rd legacies!
comment 4y ago · link · parent
For all people talk about autoscaling and whatnot, just hitting some buttons/sending a couple commands manually and getting some temporary scaling for reason X (or a temporary container for reason Y) without messing with a bunch of admin consoles is very nice.
comment 4y ago · link · parent
I think there's definitely a huge asterisk there if the tool makes it very easy to "do it wrong", hard to "do it right", etc.
Of course with k8s it's tough because it's capturing computation! Hard for it to "know" what one is trying to do inside the containers. And in the case of k8s the only thing I could think of that is ... kinda in that space is managing volumes, since it runs into the dilemna of adding persistence to ephemeral things.
comment 4y ago · link · parent
Nothing like coming in on a Monday and having to debug 10 coworker's machines cuz suddenly python and postgres were silently upgraded (or some random shared lib was upgraded).
"Just use Docker" is also a PITA cuz of the abysmal file system performance stuff... I just want to run software! Or rather, I want my coworkers who might not be as well versed in system software to be able to have working systems.
All that being said, it's undeniable that I can daily drive Linux thanks to Mac stuff existing.
comment 4y ago · link · parent
an idea I had last week seeing this article is to buy a USB 10-key numpad from a pawn shop, and use something like kmonad[0] to map key presses from that device to specific actions.
Reuse some existing tech, and you can just tape over buttons. It's not exactly the same product for obvious reasons, but I feel like you can do some magic with statusbars and toasts in scripts to get something decent.
comment 4y ago · link · parent
Of course it's a tiny ring lock. It's to stop unmotivated people and also people just taking the wrong bike. But works well enough.
Probably not 100% but "no one locks their bike" is incorrect.
comment 4y ago · link · parent
I did an exchange year, and sent my grades over to a professor. Guy was like "What's up with all the non As" and I had to talk about how we do things differently here (giving points for right answers, and then adding them all up).
Of course there's always an overall curving happening on a high level because teachers choose how hard to make assignments or not, and ultimately grades are not really fundamentally important, but when people just have those to judge you on and choose to, it really fucks things up.
2367.
Getting Started with Home Manager for Nix(ghedam.at ↗)
3 points · by rtpg · 4y ago · discuss
comment 4y ago · link · parent
I used to complain that they didn't have recurring subscriptions, but I believe they have fixed that! Just sign up yearly, at the worst you are a patron to good journalism that is not really happening elsewhere.
Just reading an article or two a week will give you loads of insight into what is going on in the tools you have everyday