Better HN
topnewbestaskshowjobs
Log inSign up

wiredfool

6,559 karma · joined Jul 6, 2009 (17y ago) · 2,470 submissions

eric@wiredfool.com
Submissions

comment 5y ago · link · parent

I can see that, but we rely on a bunch of system libraries (libjpeg/zlib, + optional libtiff/freetype/etc, and python headers as well). Pretty much by definition, if we don't provide binaries, it's not going to be that simple.

I'd say maybe 25-50% of developer linux workstations have the appropriate packages and will compile out of the box, and if they don't, it's almost always a one line command to install them with a package manager. We've got instructions or docker images for testing for most major linux distros.

MacOS is probably in the 5-10% range for successfully compiling out of the box, some of the headers ship with MacOS, but there are a couple steps to go through. M1 is still a WIP in the python packaging community.

Windows... 0% compile out of the box. You have to set it up, download dependencies and so on. There are at any one time a handful of people who can compile for the windows platform, and a smaller handful of people who can debug problems.

Now, to be fair, I think this project is probably in the most complicated 1% of python projects from a packaging point of view. There are probably more complicated ones, and the only two complications I'm aware of that we don't have to deal with are 1) The chicken and egg of if we break an update we lose the ability to update all the other packages including our own (pip) and 2) GPU drivers.

comment 5y ago · link · parent

There are several reasons that people don’t get the binary wheels, but a lot of the time it’s either pinned dependencies where they’re requesting an old version while running 3.9, that window between a new python release coming out and our quarterly release schedule, or an unsupported arch for binaries like Alpine, the m1 macs, random android.

comment 5y ago · link · parent

At that point, you should just be installing a binary wheel.

(Nb I’m a maintainer of a python project that’s difficult to build, and the number of issues we get that start: can’t install because foo.h can’t be found is very high, even though there’s other explanations closer to the end of the failed build)

comment 5y ago · link · parent

I've worn out 2 pairs of Grado SR60's and one pair of Sennheisers since ~1992, and I'm currently using a 5yr old pair of SR80s.

Each one of them has wound up needing the plug replaced, and in the case of the Sennheisers, the connection of the wire to the ear cup just got intermittent, even with replacing and tweaking. One set of the SR60s also has an intermittent connection in one of the wires near the split. I was pondering pulling themm apart and grafting in another cable, but the ear cups don't seem to come apart.

So, yeah, they last a while, there are some replacement parts, but at some point they're still e-waste.

On the other hand, making the shift from crappy earbuds to good headphones probably saved my hearing, and I wish I'd done it sooner.

comment 5y ago · link · parent

I've just put together a couple of APIs, pretty simple things, but FASTApi made the first one (a bunch of selects) go together super quick (except for matching a legacy query parameter structure that is only questionably legal), and the second one (call outs to subprocess.check_foo) was going well until I tried to access a raw post body from a sync context. As far as I can tell, it's just not possible with Starlette, so after spending as much time as I spent on the rest of the API, I ripped out FASTApi and dropped in flask.

There's a lot more messing with parameters, and it's not as clean, but it does work without dropping subprocess.

comment 5y ago · link · parent

It depends what you're optimizing for.

Alpine is subtly different for python builds:

* It uses musl-c. It's not glibc, it's different. Not necessarily better or worse.

* You can't use manylinux1 wheels with alpine, so if you've got python/c extensions, you're going to be building them instead of installing upstream binaries. So cue the need for a dev toolchain, and a much longer install time.

And once you have all that, you're running a different version in dev/prod, which is one of those things that docker is supposed to be good at fixing.

comment 5y ago · link · parent

Did you mean to expose your postgres port to the world?

Adding the port declaration to the docker file exposes it to other containers on the same network/machine, adding it in docker-compose exposes it to the world.

comment 5y ago · link · parent

And nearly 2 million for a 3 year reserved instance.

comment 5y ago · link · parent

I've done PG upgrades on a code base from ~7.x now through 11. For the most part it's pretty seamless, though there are occasionally backwards incompatible changes that pop up, but they're called out in the release notes.

The biggest bites have been changing the database driver from pypgsql to psycopg2 and there was a binary column default wire format change at the 9/9.1 upgrade. In another job, I've got essentially the same code running against 9.5 and 12, and I don't notice the difference.

Performance improvements for a feature are almost always 'free', but obviously your code isn't just going to start using CTEs if you haven't been using them.

comment 5y ago · link · parent

How do you put a terrorist attack in a byline?

comment 5y ago · link · parent

Years to Centuries. Some die, some live on. Some come around again, like the unwelcome undead.

comment 5y ago · link · parent

Your fundamental assumption is that bad ideas die. I'm not sure that is supported by the evidence.

The converse of that is "If the idea persists, it's good". I'm having a hard time seeing the evidence for that as well.

comment 5y ago · link · parent

I can tell you that I’m a not terribly highly paid software dev (by US standards) in Ireland and my marginal tax rate is about 50%, and it could go up a few points if I made more. Add 40% tax on cap gains as well. And bank interest. (I get < 1 eur a year in interest, and they send 40% of it odd to revenue. Why bother? Hell if I know.)

comment 5y ago · link · parent

I'm not sure that it's really a 2 week thing.

It was going badly before Christmas, compared to earlier, and the break of Christmas/St Stephens made a gap in the testing, and then it slammed upwards over the next week, overwhelming the IT and health professionals dealing with turning positive swab numbers into confirmed cases.

By NYE, there were 9k tests in limbo that weren't in the stats.

At the point where the daily positives get over 2k, that's with a different test population. They're no longer testing contacts of people with COVID, they're testing people with symptoms. The positive rate went from 8% -> 40% in that time.

Anecdotally, I had no 1st order contacts with Covid (i.e., I know them well, rather than my sister's friend sort of thing), and over Christmas that went to more like 5 in three separate clusters.

comment 5y ago · link · parent

I've got the same thing, I'm running a 32" 4k at 1x resolution, so the desktop thinks it's 3800px wide.

I've got a hacked version of rectangle.app giving me 3x2 tiled windows. Some stuff will be in 6ths, some will be in full height 3rds. And occasionally, I'll get a spreadsheet that needs full screen.

Web browsers tend to run at normal res, terminal and emacs are using Anonymous Pro 14pt. At that size, terminal is 157x122 when running in a full height third. Works pretty well for my aging eyes.

comment 5y ago · link · parent

I know, but try explaining that to someone in very small words. There is no admin. There is no login. The api has open CORS because we want reuse and there’s no risk because there’s literally no concept of identity in the app. Everything is public data or f(public).

Scanners see things through their eyes, and they’re not used to static/public.

I the end, It was easier just to rewrite 403 into 404.

comment 5y ago · link · parent

Oh god. One client I work for does automated scans, and we had an s3 bucket set up as a static site.

They freaked out when /admin/ returned permission errors, essentially a 404, because it was information leakage about admin functions of the website.

comment 5y ago · link · parent

There are actually two exclusions for countries on the treaty list, one is the first ~100k of income, and the other is a tax credit for taxes paid in the other country.

So, if you happen to be an expat in a higher tax country (which is certainly Europe), then you won't owe taxes in the US. You still have to file, which can cost $500 for an accountant to make sure everything is correct, but owing taxes isn't really an issue.

comment 5y ago · link · parent

I've bought 3 versions of lightroom over the years, and I'm still on LR5. Fired it up for the first time in a couple of years, and it's ... not working well. Cropping doesn't focus right on the drag, and some of the commands don't seem to 'take'.

I'm done with Adobe, except for the _tons_ of photos and develop settings that I have in LR from 10 years back.

comment 5y ago · link · parent

Only a problem if you're on the same subnet.

comment 5y ago · link · parent

I love how the dialog in each of the languages in Ada Palmer's Terra Ignotia series have their own quotation marks.

comment 5y ago · link · parent

It's 4c/1k tile loads, vs $5/1k sessions for mapbox.

I don't have great handle on the number of tiles per map, but I wouldn't be surprised if my more complicated maps don't have o(100) tile loads per session.

On the other hand, a managed geoserver replacement would be worth a significant premium.

comment 5y ago · link · parent

Perhaps they could make it into a threaded chat product.

comment 5y ago · link · parent

I finally wound up with multi pass, but on the Mac it’s limited to ubuntu images, and I occasionally need to spin up arbitrary distros for testing things.

comment 5y ago · link · parent

I had system 7 on an SE, so, yeah... slower.

comment 5y ago · link · parent

Want something fast? Mac IIci, 8MB memory, System 6. Word 4 Screams.

Boots in literally seconds, cold boot is longer due to memory check.

comment 5y ago · link · parent

There are bits here and there that apply.

"Someone on this job has to know WTF is going on. And that person needs to be you."

It was construction management, but yeah. It applies to Project management as well.

comment 5y ago · link · parent

I’m using xhyve as well, but I’m having trouble getting it to boot newer kernels. 4.4 era works, (16.04) but 18.04 and 20.04 have various failures. I note that docker is built on xhyve and doesn’t seem to have this issue. So it’s not fundamental, but the fix hasn’t made it back to thx mostly abandoned xhyve.

comment 5y ago · link · parent

I'm trying to picture SSL written in Prolog.

comment 6y ago · link · parent

Fins, but there comes a time when your largest customer doesn’t fit on your largest machine.

I wouldn’t say that killed my first startup, but it certainly didn’t help.

1
353637
83