News for hackers. Stuff that matters.

mlni

Re:Babylonian Lamb Stew with Beets (1750–1730 BCE) on Monday September 07, 2026 @04:12AM (#49595411)
Potatoes are called "earth apples" in french (pomme de terre) and a bunch of other european languages
I bet they entered the scramble U2 D2 R2 L2 F2 B2 or something to that effect. My 9yo loves this pattern.
Re:The Protesters' Guide to Smartphone Security on Monday January 27, 2025 @01:22AM (#42838003)
Anonymous prepaid cards still available in any corner shop
Re:Mocking Is an Anti-Pattern on Monday June 17, 2024 @04:01PM (#40710388)
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.

Re:Sam Altman returns as CEO, OpenAI has a new initial board on Thursday November 30, 2023 @07:15AM (#38472570)
In a recent interview with Lex Fridman: https://youtu.be/JN3KPFbWCy8?t=5185
Re:Live telecast of Chandrayaan-3 Soft-landing on Wednesday August 23, 2023 @02:00PM (#37239805)
Probably this one: https://youtu.be/2ngVl6iO94c
The article seemed to be about worldwide sales. There's no tax rebate on a Model Y (or Corolla) around here.
Re:EV adoption in US is happening faster than predicted on Monday September 05, 2022 @07:28AM (#32723136)
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.
Re:Reddit’s database has two tables (2012) on Wednesday August 10, 2022 @03:49AM (#32408928)
> 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.

Re:Ask HN: Favorite purchases of last two years? on Thursday May 20, 2021 @11:42AM (#27222616)
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.

Re:3D Printer Comparison: $200,000 vs. $2500 on Monday July 11, 2016 @12:28PM (#12072181)
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.

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.

Re:Amazon's customer service backdoor on Monday January 25, 2016 @05:30AM (#10966449)
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.
Re:E-Residency in Estonia, Part I on Monday December 07, 2015 @04:39PM (#10692917)
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.
Re:Make a Lisp on Saturday February 28, 2015 @04:04AM (#9123228)
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.
Re:Chromebox, now for simpler and better meetings on Thursday February 06, 2014 @04:26PM (#7193053)
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.
Re:Explorations in Unix on Monday December 03, 2012 @02:13PM (#4867236)
And for really wide commands (like java) you can add another w to get the whole thing: ps auxww
Re:Cable lacing on the Curiosity rover on Tuesday September 04, 2012 @09:00AM (#4474324)
Re:Poll: Have you read SICP? on Thursday August 04, 2011 @04:07PM (#2847526)
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.
Re:A Beautiful Race Condition on Friday February 04, 2011 @05:11PM (#2181492)
Here you go:

Collections.synchronizedMap(new HashMap());

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.
Re:Is user a monkey? on Tuesday November 02, 2010 @03:04PM (#1861825)
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.
Re:Why Clojure? on Thursday August 19, 2010 @09:25AM (#1617273)
The paperback version is under $40 on Amazon.
Re:Clojure Workers and Large Scale HTTP Fetching on Monday August 16, 2010 @12:25PM (#1608241)
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.
Re:SeaMicro drops an atom bomb on the server industry on Monday June 14, 2010 @01:48PM (#1430372)
Why not just buy google ads for technical keywords and target only the desired countries?
Re:The Nexus One Is A Flop: 74 Days In, Just 135,000 Sold on Tuesday March 16, 2010 @11:46AM (#1195937)
Given that much of Europe is used to smartphones costing €600, Nexus One should fit right in.
Re:Hacker's life in Tallinn, Estonia, end of week 1. on Monday February 15, 2010 @03:42PM (#1127428)
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.