Better HN
topnewbestaskshowjobs
Log inSign up

wiredfool

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

eric@wiredfool.com
Submissions

comment 9y ago · link · parent

Every time I look at Lambda+API Gateway for a web api, there's always been one little thing that makes things way harder than they should be.

A while ago (pre proxy), it was nearly impossible to send back 302 redirects cleanly.

With LAMBDA_PROXY, it's not clear that you can actually return binary data through the Api Gateway. There's the undocumented isBase64Encoded parameter, but as far as I can tell, it's ignored. It doesn't trigger an error, but it doesn't decode base64 either.

Just this week I'm working on moving a static html site + a couple of dynamic urls over. I can work around the binary issue, but serving images is a solved problem in the rest of the world.

comment 9y ago · link · parent

And all of the special electrical thingies in my Renault are keyed to the VIN, so you can't get a used/refurb part, they've got to be new. And the Renault dealer is the only one that can program the VIN into the part.

I think my electric hand brake was 660€, but I've got a mechanic who's good at finding parts. But he still had to take it to the Renault dealer for programming.

And it relies on a 161€ clutch position sensor (which is different than the interlock for startup sensor)

Mechanically, Renaults seem pretty good. Electrically, I'm not so sure.

comment 9y ago · link · parent

Ah yes. Shifters.

Have you ever driven a three on the tree? Or where is reverse on my Renault Grand Scenic, with a 6sp manual and no markings on the shifter?

comment 9y ago · link · parent

I would say further, that If you are in a position to be implementing some non-trivial algorithm that's not currently in the toolbox, then your best approach is probably to go read a few papers first, and make sure that the algorithm you're looking at has not been surpassed. (Or, perhaps, you just need to dig something up from the '70s. A lot has been forgotten).

Then again, if you can implement Paxos on the first try...

comment 9y ago · link · parent

And then there are the more out-there toxic ones like hydrazine and whatever fuel they use with oxidizers like nitric acid and the chloroflourines.

comment 9y ago · link · parent

Right. That corn is feedstock for making food/ethanol. It's not corn as you would eat.

Saying that Iowa covers the food problem is a little like saying that we've got transportation covered because there are railroads that move tons of stuff.

comment 9y ago · link · parent

Iowa can feed the country, so long as you're fine with eating field corn and unprocessed soy, with a little pork on the side.

comment 9y ago · link · parent

My SR60's broke that plastic yoke -- I wound up replacing the part. They lasted ~20 years until the Y junction of the headphone cord started having intermittent faults.

I was going to replace the cord with a detachable mic + volume cable, but wound up just getting a set of SR-80s.

Sound wise, I think the high end Sennheisers have better balance and are a bit more comfortable. A little clearer treble, not as heavy bass. But either way, they're really good for the price.

comment 9y ago · link · parent

HP 28S.

comment 9y ago · link · parent

Design loading for human occupancies come in in the range of 100psf, which is something like 500kg/m2. That's roughly one 200lb adult per 2sf.

You can pack a _lot_ of humans into a small space.

Cars are about half that, because they don't pack well.

Of course, libraries are even worse, sometimes you're looking at 300+ psf design loads there.

comment 9y ago · link · parent

Generally, the load requirements for parking garages are smaller than the loading for space where humans can crowd.

Cars just aren't that heavy compared to people.

comment 9y ago · link · parent

It erodes in normal use.

comment 9y ago · link · parent

And the 100000cfs on the main spillway is 5 million lbs/sec.

Edit: oops. Off an order of magnitude.

comment 9y ago · link · parent

You can intentionally do calculations to 'break’ indexes and take them out of consideration. (E.g., pg will tend to prefer scanning a primary key index if you're ordering by that in the query. Sometimes this is a very poor choice if there's a more selective index)

There are also statistics that can be tweaked on vacuum analyze to improve the accuracy of the planner.

comment 9y ago · link · parent

IIRC, ATP is a short lived energy carrier in cells. Instead of harvesting it from cells, it's probably easier to turn that around and use the existing ATP mechanism in cells to generate ammonia.

comment 9y ago · link · parent

That sounds like your archive_timeout is set to 10 seconds. (or close, as WAL segments are 16MB pre-compression).

That's the maximum age of a WAL segment before rotation, and Postgres will force the log rotation even if there's no data in the WAL segment.

If you're worried about keeping the last n seconds of data in replication, streaming replication is a far better tactic than log-shipping. (Though log shipping is useful for longer term storage)

1517.

New Zealand Is ‘the Future,’ Peter Thiel Said in His Push for Citizenship(nytimes.com ↗)

68 points · by wiredfool · 9y ago · 61 comments

comment 9y ago · link · parent

I've left money on the table for flexibility. I've been WFH for a long time now, and I'm far more effective than in the office. They don't mind errands, and I don't mind working the occasional evening when out of time zone calls come up. Some weeks it's most evenings till 11, but I can balance that with working out in the mornings.

comment 9y ago · link · parent

Maybe.

Here's the thing. Think about this as an MVP slapped together in a weekend, about to hit the biggest batch of software testers around. They're going to find show stopping bugs. And every one of those bugs is going to be someone's life, uprooted.

Visa allocation changes _going_forward_ are certainly a reasonable thing. Fully within the realm of policy.

But I'm going to bet that these changes are going to be of a far wider scope than expected and include people on current visas, and I wouldn't bet against visas getting revoked and workers having to go home the next day or get deported.

comment 9y ago · link · parent

Yeah, but it doesn't do \n \r, and iirc, it's not too happy when the line endings change midstream.

comment 9y ago · link · parent

And helpfully enough, EPS files can contain \r and \n as line feeds, singly or both, in either order.

comment 9y ago · link · parent

Cornell had of a rivalry with Harvard (who can't play hockey).

Stanford really wasn't a concern, they're on the other coast. Though, this was from afew years after my time.

comment 9y ago · link · parent

Iowa is mostly not irrigated.

comment 9y ago · link · parent

Do you remember the Pontiac Fiero?

Nice looking car (for the time), underperformed, had a habit of catching on fire.

comment 9y ago · link · parent

I'd not take any bet that maciej is unaware of any major tech movement.

Look in the third paragraph from the end:

> I love free software and could not have built my site without it. But free web services are not like free software. If your free software project suddenly gets popular, you gain resources: testers, developers and people willing to pitch in. If your free website takes off, you lose resources. Your time is spent firefighting and your money all goes to the nice people at Linode.

comment 9y ago · link · parent

No, but you'd need a better Faraday cage than a microwave.

comment 9y ago · link · parent

If a guy that rides 1200km on a bike in 50 hours prefers a generator vs batteries based on drag vs weight I'd say that the generator + lights is pretty much solved technology.

comment 9y ago · link · parent

I look to replace chains at about 1-2k miles in winter, or 2k+ in the summer. Ymmv.

Honestly, unless you're on a 11sp, chains are cheap compared to any of the other parts.

comment 9y ago · link · parent

Pillow doesn't do anything with gamma by default, nor does it require that color management be compiled in.

(I'm a maintainer of pillow)

comment 9y ago · link · parent

There was another problem -- the beams were spec'd as box section, but what was on the shop drawings was 2 channel sections with the flanges welded together. (like this: []). The attachment point that supported twice the design load was also compromised by the weld and less competent section. Whoever was checking the shop drawings didn't pick up on the importance of the change.

IIRC, either change on it's own would have been marginally ok, the two together weren't. (by marginally, I mean probably wouldn't have killed people but wouldn't be to code)

When I was going through civil engineering, there was a big push to use a statistical basis for loads and resistances, rather than using a blanket factor of safety. Loads vary, strengths vary, potentially normally, probably not. But they're described by statistics at any rate. Blunders of this sort aren't, at least on a per project basis.

1
505152
83