HNHacker News
TopNewBestAskShowJobs

mlni

64 karma · joined December 12, 2009

submissionscomments
mlni··on Babylonian Lamb Stew with Beets (1750–1730 BCE)
Potatoes are called "earth apples" in french (pomme de terre) and a bunch of other european languages
mlni··on Show HN: Scroll through all 43252003274489856000 Rubik's Cube states
I bet they entered the scramble U2 D2 R2 L2 F2 B2 or something to that effect. My 9yo loves this pattern.
mlni··on The protester's guide to smartphone security
Anonymous prepaid cards still available in any corner shop
mlni··on How to test without mocking
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.

mlni··on Sam Altman returns as CEO, OpenAI has a new initial board
In a recent interview with Lex Fridman: https://youtu.be/JN3KPFbWCy8?t=5185
mlni··on Chandrayaan-3 Soft-landing [video]
Probably this one: https://youtu.be/2ngVl6iO94c
mlni··on Tesla Model Y overtakes Corolla to be world’s best-selling car in 2023
The article seemed to be about worldwide sales. There's no tax rebate on a Model Y (or Corolla) around here.
mlni··on EV adoption in US is happening faster than predicted
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.
mlni··on Reddit’s database has two tables (2012)
> 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.

mlni··on Ask HN: Favorite purchases of last two years?
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.

mlni··on 3D Printer Comparison: $200,000 vs. $2500
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.

mlni··on The Estonian president wants a more digitally-integrated Europe
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.

mlni··on Amazon's customer service backdoor
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.
mlni··on E-Residency in Estonia, Part I
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.
mlni··on Make a Lisp
I assume you already saw this by now: https://github.com/kanaka/mal/blob/master/process/guide.md#s...
mlni··on Postman: a powerful HTTP client (for Chrome) to test web services
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.
mlni··on Chromebox, now for simpler and better meetings
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.
mlni··on Explorations in Unix
And for really wide commands (like java) you can add another w to get the whole thing: ps auxww
mlni··on Cable lacing on the Curiosity rover
Well, there's always http://www.reddit.com/r/cableporn
mlni··on Poll: Have you read SICP?
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.
mlni··on A Beautiful Race Condition
Here you go:

Collections.synchronizedMap(new HashMap());

mlni··on Apple, Microsoft, and Google called out by Mozilla to "stop being evil"
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.
mlni··on Is user a monkey?
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.
mlni··on Why Clojure?
The paperback version is under $40 on Amazon.
mlni··on Clojure Workers and Large Scale HTTP Fetching
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.
mlni··on SeaMicro drops an atom bomb on the server industry
Why not just buy google ads for technical keywords and target only the desired countries?
mlni··on The Nexus One Is A Flop: 74 Days In, Just 135,000 Sold
Given that much of Europe is used to smartphones costing €600, Nexus One should fit right in.
mlni··on Hacker's life in Tallinn, Estonia, end of week 1.
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.