Better HN
topnewbestaskshowjobs
Log inSign up

rtpg

21,281 karma · joined Nov 23, 2012 (14y ago) · 6,748 submissions

real name: Raphael

blog: https://rtpg.co

email: raphael at above domain

Submissions

comment 4y ago · link · parent

But... I mean.... AA says "this is the guy". Police says "OK", they go to person, who says "wait what?". Police had the footage right?

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

17 days in a cell without being told what you're being locked up for? For shoplifting? Absolutely a waste of society's resources, unless you think the justice system is for vindication.

comment 4y ago · link · parent

I don't understand how AA is the one getting sued here. The police is the one who ends up making determinations right? Along with the whole "17 days without knowing what the crime was"...

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

Pretty surprising that MSFT would end up with a deal like that, I'd feel like they would be in a position of strength. Unless all the ARM vendors were pretty supicious of whether Microsoft would succeed/invest properly in the ecosystem?

comment 4y ago · link · parent

I do, in theory, understand separation of concerns.

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

This might have been a valid complaint years ago, but now I think the app store rules (and well... sideloading) means that, if you want, you could build out all the apps needed to do this stuff!

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

My use case is a... bit different. The idea is I want to be able to distribute scripts, but for those scripts to still be scripts (so that the users can fix issues and send PRs back to the project). But I want the scripts to be run in a more or less fixed environment. Or at the very least a "wipe everything and start over" solution that doesn't mess with other environments.

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

Honestly that might not be the worst idea.

Yes, you have to install nix, but you _only_ have to install nix.

comment 4y ago · link · parent

I mean shell scripts are just annoying? You don't have even the basics like dictionaries, argparse and friends don't exist, some weird space can throw everything off (yes I know about shellcheck). Every common action is some different tool that you might or might not correctly use (let's not even get into implementation differences for stuff like `find` between Mac and Linux).

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 have to imagine there are simply more people with so much money that they can throw it around easily. Isn't the whole thing that (for example) when a big startup gets bought you suddenly have loads of millionaires with money to burn in their pocket?

comment 4y ago · link · parent

Speaking of this kind of check... recently I have been trying to set up some scripts that could run on Mac with "nothing installed". I had been opting for Python (even using `urllib` to avoid having `requests` as an option) and... a good chunk of people ended up hitting weird errors with SSL certs.

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

Well for example you could set up your nix derivation for a thing and run it on more or less any OS, without needing to also ship Ubuntu or whatever base layer of your Docker image.

comment 4y ago · link · parent

Given the USPS is the one doing this, it feels like running a state or national campaign on just regulating an opt out feels extremely doable.

Hell, maybe you hate the post office? Great way to punish it!

comment 4y ago · link · parent

In Japan and France, at least, people sometimes put stickers on their mailboxes: "no ads".

It works pretty well, but I wonder if that does anything for the USPS.

comment 4y ago · link · parent

The durability of postal addresses are hard to overstate imo. You can misspell so much, there’s a lot of info to intent.

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

No extinguishers seems pretty surprising, does OVH not have all those certifications that surely ask for such things?

comment 4y ago · link · parent

Staffing agencies, from a super cynical point of view, take a slice of money that would otherwise go to the people actually working.

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

Admission sur dossier rarely happens at the engineering schools (which is where most elite go). Or it’s an extremely small sliver of the population (usually people who transfer from universities or other programs).

Polytechnique has 32 university admissions compared to ~300 from the entrance exams.

Harvard is 1/3rd legacies!

comment 4y ago · link · parent

The true happy path: you have a big monolith hungry for resources, several instances of the monolith, and you want to be able to relatively quickly spin up new instances (modulo provisioning new nodes) without having to jump through 100 hoops.

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

> Doing it wrong ™ applies to any deployment and shouldn’t be held against k8s

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

The insistence on having to install the xcode command line tools (hello "be at 99% installed for 10 hours" bug I have had over 5 different machines") is very annoyin. But I've found that brew has been a major mess as well.

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

If the API takes ownership, can't you just release the smart pointer, effectively forgetting about it and letting the new owner deal with it? Maybe I'm missing somethign.

comment 4y ago · link · parent

For someone who kinda wants this stuff but doesn't feel great about spending 200 bucks for 15 buttons and all the garbage that goes with...

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.

[0]: https://github.com/kmonad/kmonad

comment 4y ago · link · parent

People lock their bikes... just using the ring lock in general. If only because you need to put the key in to unlock the ring lock (and ride the bike) and then when you're somewhere if you don't lock it your key is just on the bike.

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

Well for example, in my school, basically nobody would get 90% on an exam. Very good people would get 80% but the average is more around 60%. So you stuff that into the grade conversion for foreign universities and ... well lots of people get C!

comment 4y ago · link · parent

Curve grading is such a messed up thing. It leads to professors assuming you should get all A's in all of your classes basically, cuz of this nonsense from US unis.

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

yep, LWN is a great resource, highly recommend for any developer (even/especially those who aren't linux people, they have lots of articles regarding other programming language development and the like).

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

1
787980
225