Better HN
topnewbestaskshowjobs
Log inSign up

mlni

64 karma · joined Dec 12, 2009 (16y ago) · 28 submissions

Submissions

comment 2mo ago · link · parent

Potatoes are called "earth apples" in french (pomme de terre) and a bunch of other european languages

comment 3mo ago · link · parent

I bet they entered the scramble U2 D2 R2 L2 F2 B2 or something to that effect. My 9yo loves this pattern.

comment 1y ago · link · parent

Anonymous prepaid cards still available in any corner shop

comment 2y ago · link · parent

Running all migrations before every tests can take you a surprisingly long way.

Once that gets a bit too slow, running migrations once before every suite and then deleting all data before each test works really well. It's pretty easy to make the deleting dynamic by querying the names of all tables and constructing one statement to clear the data, which avoids referential integrity issues. Surprisingly, `TRUNCATE` is measurably slower than `DELETE FROM`.

Another nice touch is that turning off `fsync` in postgres makes it noticeably faster, while maintaining all transactional semantics.

comment 2y ago · link · parent

In a recent interview with Lex Fridman: https://youtu.be/JN3KPFbWCy8?t=5185

comment 3y ago · link · parent

Probably this one: https://youtu.be/2ngVl6iO94c

comment 3y ago · link · parent

The article seemed to be about worldwide sales. There's no tax rebate on a Model Y (or Corolla) around here.

comment 4y ago · link · parent

There are a bunch of these four-wheel bikes (https://vokbikes.com/) rolling around where I live. They're meant for commercial use and are slow enough for sidewalks and they do have a roof covering the rider. Cost more than $2000 though.

comment 4y ago · link · parent

> I am fairly convinced that most modern DBs have almost zero impact from relationship constraints

It cannot fundamentally be zero impact, the database needs to guarantee that the referred record actually exists at the time the transaction commits. Postgres takes a lock on all referenced foreign keys when inserting/updating rows, this is definitely not completely free.

Found this out when a plain insert statement caused a transaction deadlock under production load, fun times.

comment 5y ago · link · parent

Same here. It's absolutely amazing for exploring an urban environment. Floating around in a large open space like a plaza is serene.

It's not too fast and it doesn't go very far, but this hasn't been limiting so far. My legs get tired before the battery runs out.

comment 10y ago · link · parent

As a start you can just go to Thingiverse to search for a model that fills your need and send it to the printer. That would take you all of a couple of minutes. Per try, until it comes out ok.

If you want to try your hand at 3d modelling then you'll probably download Sketchup as a start and noodle around while watching youtube tutorials on the side. In about 8h you'll feel confident enough to actually model something meaningful. After ~40h you'll be able to knock together a model quite proficiently.

After you'll have gotten tired of Skethub producing broken STLs and not allowing you to change your mind after modelling a thing, you'd move on to one of the real CAD software package, like Solidworks or Fusion 360 (which is great for beginners, btw). That rabbithole goes exactly as deep as you've got time for :)

Fiddling with the printing itself will take a bit of setup time before each print and then a lengthy wait (hours to days) to get the result, or see it fail in some new and unfunny way. It's not really all that difficult, to be honest, just takes some time to develop an intuition about what's likely to fail.

comment 10y ago · link · parent

The described system is absolutely great for selling your vote, as you can prove within 30 minutes of voting who you voted for. It also allows you to change your mind an unlimited number of times until the voting deadline.

It is a very inconvenient system for buying votes though, as the voters can pick up your money and then go vote for whoever they wanted to in the first place.

comment 10y ago · link · parent

How would you pull money from an account by knowing just the IBAN? That's just the public address of your bank account and can be used to give you money, but you need all kinds of authentication to actually get money out of that account.

comment 10y ago · link · parent

You need to present a legal travel document (passport or ID-card), driver license won't do as mentioned in an update to the original article.

comment 11y ago · link · parent

I assume you already saw this by now: https://github.com/kanaka/mal/blob/master/process/guide.md#s...

comment 12y ago · link · parent

Chrome dev tools make testing RESTful backends with curl very easy: right-click on a request in network panel and choose "Copy as curl". Priceless little gem.

comment 12y ago · link · parent

Also, the speaker looks pretty much like Jabra Speak 410. And the camera looks like a Logitech fullhd webcam without Logitech logos. Which are all admittedly excellent products for doing video meetings.

comment 13y ago · link · parent

And for really wide commands (like java) you can add another w to get the whole thing: ps auxww

comment 14y ago · link · parent

Well, there's always http://www.reddit.com/r/cableporn

comment 15y ago · link · parent

The "interpretation of computer programs" part is nice to know, in my opinion. But the book gives a whirlwind tour of a sizeable chunk of computer science on the way, and the examples are concise to the point of being beautiful. Great book. Used it to learn clojure along the way.

comment 15y ago · link · parent

Here you go:

Collections.synchronizedMap(new HashMap());

comment 16y ago · link · parent

In my opinion these examples are mere annoyances compared to the evil of the skype plugin. It actively monitors and modifies all of your browsing so it can inject those green skype "call" buttons in unexpected places. Now that I call evil.

comment 16y ago · link · parent

Skype must to have a similarly named function in it. In skype chat window, when you press random keys on a keyboard in groups, the other side sees a cat icon in the chat. Kind of neat of them to think of that.

comment 16y ago · link · parent

The paperback version is under $40 on Amazon.

comment 16y ago · link · parent

Because clojure has a number of built-in ways to manage state in a multi-threaded program, but does not re-implement work queues as there are quite excellent implementations bundled with the JDK. Rich Hickey mentions this during his concurrency talk, if Im not mistaken.

comment 16y ago · link · parent

Why not just buy google ads for technical keywords and target only the desired countries?

comment 16y ago · link · parent

Given that much of Europe is used to smartphones costing €600, Nexus One should fit right in.

comment 16y ago · link · parent

You won't have too much trouble as long as you keep to the center of the city. As in pretty much any Eastern European country, anybody under the age of 30 can speak english more or less acceptably. And expect to get ripped off by taxies if you don't speak at least one local language.