HNHacker News
TopNewBestAskShowJobs

ehamberg

1,313 karma · joined September 26, 2010

[ my public key: https://keybase.io/eh; my proof: https://keybase.io/eh/sigs/zKBsjut-lUs31yxgm8VAhck2BOTw7B3Y-nnzIihu_ww ]
submissionscomments
ehamberg··on How Google's new Logo is just 305 bytes
I'm surprised it's still being used (and a mod fixed the link now), but if you're curious, here's the discussion on 9m.no from 15 months ago: https://news.ycombinator.com/item?id=7783239 :)
ehamberg··on Karl Ove ­Knausgaard’s ‘My Struggle: Book 4’
I simply tried (and failed, it seems) to say that they are generally considered to be equivalent, and that it's okay to use “aa” when translating a name with “å”. Reasons for this could be not knowing how to write an ‘å’ (or Ł, đ, ç, ì, etc.) or simply not wanting to distract one's readers. I do not have an authoritative source.
ehamberg··on Karl Ove ­Knausgaard’s ‘My Struggle: Book 4’
It's acceptable (or at least “not wrong”) to use “aa” for å (and “oe” for ø/ö, “ae” for æ/ä).

While ‘å’ was made an official letter in Norwegian in 1917, it's still common to see “aa” spellings of names, and “aa” and “å” spellings are considered equivalent (fun when sorting, since ‘å’ is the last letter of the Norwegian alphabet).

ehamberg··on Wi-Fi hack creates 'no iOS zone' that cripples iPhones and iPads
An iOS device will only connect to known networks. By enabling “Ask to Join Networks” it will list networks and ask if you want to join any of them – but only if no known network is in range. This is actually less safe, in that you're just a button press away from “accessing random open networks” instead of having to go into the settings and choose a network – so it makes sense to have it default to off.

tl;rl: iOS will only join known networks – toggling this setting will make it easier to join networks when no known networks are in range.

edit: Link to the relevant section in the manual: https://help.apple.com/iphone/8/#/iph1b489c85f

ehamberg··on Show HN: Discover your ranking on GitHub
There's a bug with the city/country detection:

People with only a country as their location, e.g. “Norway” are detected as being in “Norway, United States”. :-)

ehamberg··on Show HN: Exa, a replacement for ls written in Rust
… and advice/advise and prophecy/prophesy. For some reason, only the latter has kept the difference in spelling between the noun and the verb in American English.
ehamberg··on Chess game in 487 bytes – new record
Thanks! Looks interesting. :-)
ehamberg··on Chess game in 487 bytes – new record
The README file is really interesting: http://lpaste.net/119343
ehamberg··on Prolog Programming Language (1997)
> The advantage of this approach would be allowing function overloading (similarly to C++ or Java) informally without interfaces or type classes.

I might be misunderstanding something, but how does this allow function overloading more than ordinary let-polymorphism? Functions can already have a type like, say, ∀a.a→Int. It's also quite common to do type inference in two steps where the first pass creates type variables and a list of constraints. The set of constraints are then passed to a unification algorithm, see e.g. http://www.seas.upenn.edu/~cis552/lectures/stub/FunTypes.htm....

ehamberg··on Announcing LTS Haskell 1.0

  (S (VP avoid
         (NP (NP success)
             (PP at
                 (NP all costs)))))
vs

  (S (VP avoid
         (NP success)
         (PP at
             (NP all costs))))
ehamberg··on Secret surveillance detected in Oslo
Norway invented everything from the Groupe Spécial Mobile group? Citation needed.
ehamberg··on iMac with Retina 5K display
The Mac Pro has two buses, but the Macbook Pro has only one – so the fact that there are two Thunderbolt ports doesn't really help you in this case.
ehamberg··on Al-Jazari
“Nationalism teaches you take pride in shit you haven’t done and hate people you’ve never met.”

You can probably substitute any us-and-them term for “nationalism”.

ehamberg··on 9m.no – Short URLs for the Unicode Age
Yes, thanks for pointing that out. This was done really quickly and I didn't expect it to get that much attention. :-)
ehamberg··on 9m.no – Short URLs for the Unicode Age
To give you a clue: This was a really quick for-fun project and I did not expect it to get this much attention. ;-)
ehamberg··on 9m.no – Short URLs for the Unicode Age
I had briefly used Scotty before, but never acid-state. All of this is just the result of a discussion at work where my position was “oh, come on! it's not that stupid!”, so I just chose something I though would let me get a test site up and running really quickly.

I would probably polish it a bit more if I knew it would get this much attention, but hey! – it works, and uses almost no resources on the cheapest Digital Ocean account.

I recently saw some discussion about acid-state on Reddit, and it seems that the Hackage developers have had some troubles with it: http://www.reddit.com/r/haskell/comments/26405r/storing_data...

ehamberg··on 9m.no – Short URLs for the Unicode Age
That was indeed a typo. Thanks!
ehamberg··on hr for your terminal
If you want a solid line, you could use U+2501 (━) from the set of box drawing characters (https://en.wikipedia.org/wiki/Box-drawing_character):

    <━> 9473, U+2501 BOX DRAWINGS HEAVY HORIZONTAL

    hr(){printf '━%.0s' $(seq $COLUMNS)}
ehamberg··on Why the World Needs OpenStreetMap
Can anyone recommend an iPhone app for viewing maps and getting directions? The OSM wiki lists a lot of apps [1], but they seem to be of varying quality. I'd love to be able to use something that's close in functionality and simplicity of the Google Maps app.

[1] http://wiki.openstreetmap.org/wiki/Apple_iOS

ehamberg··on Why do Russians pour asphalt over snowed roads instead of plowing them?
The top comment has an interesting suggestion for why this is done:

  […] this is how people in local governments make money in Russia:
  
  Step 1: have a $100,000 of tax money budget for fixing the pavement on street XYZ
  Step 2: pay your nephew's 'construction company' $10,000 for the 'work' they did
  Step 3: pocket $90,000 of tax money
  Step 4: oh noes!! the road cracked AGAIN! not AGAIN!! oh well, guess gotta go fix it
  Step 5: goto Step 1	 Today 1:36am
ehamberg··on Learn to code like it's 1996
Oh yeah, technicolor rainbow.
ehamberg··on I Tried to See Where My T-Shirt Was Made
Well, not that easy. A quarter of 105 is 26.25.
ehamberg··on ‘Fuck’ in Linux Kernel
Check out the Linux Kernel Swear Count for graphs of the prevalence of various swear words in the Linux source code over the years:

http://www.vidarholen.net/contents/wordcount/

ehamberg··on Save 50% on All O'Reilly Ebooks and Videos
Just for the record: You don't just get a PDF. You get a real e-book too.
ehamberg··on He got 1%, we can't hire him
> Is this a common practice?

I've gone through two interview processes in Norway – none of them took longer than ten days and I can't say I have heard about anyone else that has been through months-long processes either. (I'm a software engineer.)

ehamberg··on Snowden's Asylum: 'It's the law, stupid'
It should be noted that Norway and Sweden were in a personal union at that time – a union that wasn't dissolved until 1905.
ehamberg··on Spotify and Facebook: Is that phishing?
Not necessarily. They also give you a “gibberish” address to the account. So if I use “foobar” as my mailbox on mailinator, they will list an address like M8R-wk43th@mailinator too, that does not let people log in.
ehamberg··on A nice, little known C feature: Static array indices in parameter declarations

    test.c:3:30: warning: 'static' has no effect on zero-length arrays [-Warray-bounds]
ehamberg··on A nice, little known C feature: Static array indices in parameter declarations
No, C99 – this is the the C99 standard with corrigenda TC1, TC2, and TC3 included.
ehamberg··on A nice, little known C feature: Static array indices in parameter declarations
From http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf:

6.7.5.3 point 7: “If the keyword static also appears within the [ and ] of the array type derivation, then for each call to the function, the value of the corresponding actual argument shall provide access to the first element of an array with at least as many elements as specified by the size expression.”

Page 1 of 3Next →