Better HN
topnewbestaskshowjobs
Log inSign up

ehamberg

1,313 karma · joined Sep 26, 2010 (16y ago) · 119 submissions

[ my public key: https://keybase.io/eh; my proof: https://keybase.io/eh/sigs/zKBsjut-lUs31yxgm8VAhck2BOTw7B3Y-nnzIihu_ww ]
Submissions

1.

Fast, Offline, Reverse Geocoding; Or, in Which Polygon Am I? (2015)(hamberg.no ↗)

64 points · by ehamberg · 7y ago · 6 comments

2.

Fast, Offline, Reverse Geocoding; Or, in Which Polygon Am I?(hamberg.no ↗)

3 points · by ehamberg · 11y ago · discuss

comment 11y ago · link · parent

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 :)

4.

Show HN: Location-based, no-config, offline currency converter for iPhone/Watch(gethowmuch.com ↗)

2 points · by ehamberg · 11y ago · discuss

5.

Want Millennials to Start Paying for Music? Start Paying Them(medium.com ↗)

1 points · by ehamberg · 11y ago · discuss

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

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).

comment 11y ago · link · parent

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

9.

The Google University Effect(theness.com ↗)

3 points · by ehamberg · 11y ago · discuss

comment 11y ago · link · parent

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”. :-)

comment 11y ago · link · parent

… 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.

comment 11y ago · link · parent

Thanks! Looks interesting. :-)

comment 11y ago · link · parent

The README file is really interesting: http://lpaste.net/119343

comment 11y ago · link · parent

> 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....

comment 11y ago · link · parent

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

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

comment 11y ago · link · parent

Norway invented everything from the Groupe Spécial Mobile group? Citation needed.

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

“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”.

comment 12y ago · link · parent

Yes, thanks for pointing that out. This was done really quickly and I didn't expect it to get that much attention. :-)

comment 12y ago · link · parent

To give you a clue: This was a really quick for-fun project and I did not expect it to get this much attention. ;-)

comment 12y ago · link · parent

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...

comment 12y ago · link · parent

That was indeed a typo. Thanks!

23.

9m.no – Short URLs for the Unicode Age(9m.no ↗)

202 points · by ehamberg · 12y ago · 69 comments

24.

Modular Cargo Cycles(lowtechmagazine.com ↗)

2 points · by ehamberg · 12y ago · discuss

25.

Make all mac apps available from the command line(hamberg.no ↗)

1 points · by ehamberg · 12y ago · discuss

comment 12y ago · link · parent

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)}

27.

Paris Cabbies Slash Tires, Smash Windshields in Protest Against Uber(businessweek.com ↗)

5 points · by ehamberg · 12y ago · discuss

comment 12y ago · link · parent

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

comment 12y ago · link · parent

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

30.

Why do Russians pour asphalt over snowed roads instead of plowing them?(sploid.gizmodo.com ↗)

1 points · by ehamberg · 12y ago · 2 comments

1234