HNHacker News
TopNewBestAskShowJobs

chris_overseas

4,371 karma · joined November 16, 2013

submissionscomments
chris_overseas··on Getting to Antarctica
There are various tour operators that will fly you to and/or from the South Shetland Islands on a charter flight too:

http://www.coolantarctica.com/Travel/Fly_to_Antarctica.php

chris_overseas··on NZ Flag Referendum – Pseudorandom Numbers in Legislation
Speaking as a NZer who's parents have a flag flying high outside their house (rural, with B&B), I disagree. My parents love countries where the flag is flown proudly - Canada being a great example where it's everywhere to be seen, Bhutan even more so. But my parents don't feel the same, mostly because they don't feel particularly patriotic about the current Kiwi flag. They partly fly it because they wish there was some sort of patriotism associated with it and they feel that flying it might help that, but partly just because it helps guests find their house when they're staying at the B&B.

Given the NZ flag's Union Jack and very close resemblance to the Australian flag I can understand why people don't feel too strongly about the current state of affairs. There's nothing evocative, nothing that feels distinctive to NZ. How many NZ flags do you see being waved at sporting events compared to silver ferns and the like? Almost none. Based on that alone I think it's high time we shrugged off the flag's colonial roots and changed it to something that's uniquely NZ. It might take a while for people to adjust to the change (after all, people generally don't like change), but in the long run people will support it just because it's truly ours.

chris_overseas··on Lockpickers 3-D Print TSA Master Luggage Keys from Leaked Photos
The only surprising thing here is that the master keys didn't leak sooner. This is a close physical analogue to why it's a very bad idea to mandate backdoors in encryption software. Hopefully the UK[1] and other governments will learn something from this, though I won't hold my breath.

[1] https://www.techdirt.com/articles/20150702/00134231524/david...

chris_overseas··on Garbage collection thoughts
As a trivial example of a data structure with circular references, how about a doubly linked list? Admittedly there are alternative data structures to solve the same problem (eg an array), but that changes the performance characteristics too and may not be optimal for your particular use case.

This isn't the point though. A general purpose programming language shouldn't impose arbitrary restrictions on data structures like this. Even if such a restriction was in place it would have to be enforced at runtime which doesn't sound like a trivial problem from a performance point of view.

chris_overseas··on Potato paradox
This is related to the base rate fallacy, the maths of which is frequently misunderstood and can lead to very real consequences:

http://metaist.com/blog/2010/02/disease-screening-base-rate-...

chris_overseas··on Match Group Buys PlentyOfFish for $575M
https://www.happn.com/ has a mobile app that seems to have a large pool of users, at least in central London.
chris_overseas··on Time Warner Cable owes $229K to woman it would not stop calling
I've been using an Android app called "Mr Number" [1] for a few years now to help block nuisance calls. One of it's more useful features is its use of crowdsourcing to identify spam numbers and automatically block them right from the first time they try to call you. There's a bunch of other similar Android apps (presumably for iOS too?) that are worth a look too, depending on your particular needs. See the "Similar" section on the link below.

[1] https://play.google.com/store/apps/details?id=com.mrnumber.b...

chris_overseas··on The Smoldering Ruins of Centralia (2006)
Fascinating. It's hard to even comprehend an underground coal fire that could burn for 250 years - though apparently the oldest known coal seam fire has been burning in Australia for 6000 years! http://en.wikipedia.org/wiki/Burning_Mountain

Centralia on Google Maps: https://www.google.com/maps/@40.8006547,-76.3428604,287m/dat...

chris_overseas··on A Guide to Debug.exe
This article really brought back some great memories for me. I learned about computers as a kid back in the early 80s on an MS-DOS clone PC. The only manuals I had was one listing the various MS-DOS commands (sadly, excluding anything about debug.exe though) and one that was a command reference for gwbasic.exe [1].

I spent many hours trying to write games in gw-basic but quickly realised that the performance was atrocious, to say the least. Eventually I stumbled across a magazine that had a two-page article about debug.exe and it was my gateway to a whole new hidden world. I went on to learn 8086 assembly with debug.exe by trial and error and from stepping through other programs. Eventually I figured out I could write little 8086 assembly routines in debug.exe myself, take the sequence of bytes that made up that routine, declare them as a DATA statement in a BASIC program and then just make call that DATA line to run the machine code directly [2]. It wasn't until many months later I finally managed to get my hands on some compilers and assemblers (Borland Turbo Pascal and Turbo Assembler being my favourites back then) which of course made my life a whole lot easier! I continued to use debug.exe for many years though, primarily for reverse engineering.

I've just managed to dig up an obfuscated "Hello World" batch file I wrote many years ago that makes use of debug.exe, see [3] below (If you actually want to run it you'll probably need an MS-DOS emulator [4][5] or an older version of Windows that still has debug.exe).

[1] http://en.wikipedia.org/wiki/GW-BASIC

[2] http://www.antonis.de/qbebooks/gwbasman/appendix%20d.html

[3] http://www.redyeti.net/extra/hello.bat

[4] https://jamesfriend.com.au/pce-js/ibmpc-games/

[5] http://www.dosbox.com/

chris_overseas··on Cuban youth build secret computer network despite Wi-Fi ban
Heh... he was one of the many doctors in Cuba and had been fortunate enough to travel to a couple of countries to work, so he'd had a bit of a taste of the outside world. As far as I could tell he mostly used the Internet to keep informed on what was really going on in the world, without the censorship or propaganda that affected the local news sources. Based on some of the things he said I suspected he was very active politically though I didn't feel it was wise or fair to question him about that, as much as I wanted to.
chris_overseas··on Cuban youth build secret computer network despite Wi-Fi ban
I stayed in a casa particular in Baracoa, Cuba, a couple of years ago. The owner had an illegal Internet connection that was beamed down via a Pringles can style setup from a tourist hotel on top of a nearby hill (apparently fancy tourist hotels there often have unrestricted Internet). He would lose his connection for a day or two each month when the setup had to be removed and hidden from the local inspector. I can't remember exactly how much he said he was paying but it was a lot even by Western standards, something like US$200/month, and the performance was pretty awful.
chris_overseas··on New, more powerful Google Translate app
That only works for the (amazing) WordLens functionality. Live audio translation still requires Google's cloud for processing.
chris_overseas··on Researching a new form of HTTP caching optimization
Thanks, I hadn't heard of the names "Russian doll" or "partials" before. I haven't worked with a CMS (or even web apps at all really) for over a decade now but I'm surprised you seem to imply that automatic dependency management isn't standard stuff these days already. It was certainly very useful to us, though admittedly tricky to implement robustly.
chris_overseas··on Researching a new form of HTTP caching optimization
I had a contract at a company about 13 years ago where I was working on a web-based CMS that had been built entirely in-house. Because each rendered page's content was built up in a hierarchical manner, I added a caching layer that allowed arbitrary portions of the rendered page "tree" to be cached all the way up to the entire page and HTTP response if possible. Each cached portion could be located quickly based on its dependencies (template ID, content ID, CSS etc). If any edits were made to the site, only the relevant portions needed to be flushed and re-rendered. User-specific portions could be cached in the user's session rather than site-wide. (Thinking about it now, each portion could have been rendered in parallel too, though this was back in the days when multicore machines weren't very common and it wasn't something that occurred to me.)

I built this without giving much thought to whether anyone else had attempted something similar. Presumably they had though I do remember being disappointed when researching the various open source caching libraries, they didn't offer much help at the time. Overall I was pretty happy with the way it all worked and the performance boost it provided was like night and day.

Sadly the company is no longer operating, presumably the CMS codebase is long lost.

chris_overseas··on Android Studio 1.0
Even quicker: Ctrl+` brings up a quick switch context menu that allows you to instantly switch keymaps, code styles, L&F and colors.
chris_overseas··on Cursors
[Spoiler Alert] I did this on the first play through too. I played through again and it turns out that's the last level anyway. If you take the easy option you end up in a blank level where all the winners can hang out and just draw pictures. When I was there it was 50% people expressing their joy in finishing, and 50% dick pics :)
chris_overseas··on Ask HN: Are there any innovative startups in the porn/adult industry?
Here's another data point confirming the "regular world" issues you mention: http://recode.net/2014/10/17/its-hard-out-there-for-a-sex-to...
chris_overseas··on Cursors
On the narrow stretches you can cheat by right-clicking at the entrance (so you have a context menu and the game cursor freezes), then moving to the far end of the narrow section and left-clicking to release the menu. The game cursor will jump to the new position.
chris_overseas··on Show HN: New cross-platform interaction between mobile devices
This reminds me of Blinkendroid https://code.google.com/p/blinkendroid/ which was the first time I'd seen multiple devices interact with each other like this. Sadly that project never managed to get much traction despite how much potential it had.
chris_overseas··on Ask HN: What should I save for offline reading during 5 weeks without Internet?
Over the past few years I've spent a total of five months travelling through or living in various remote corners of Africa. My advice would be to forget the Internet and all that is on it. Take a decent camera, learn photography. Take a local dictionary, learn the language. Take some art supplies, learn to paint. Take a guidebook and learn about the animals and plants. Get up for sunrise. Immerse yourself in the culture and the environment. You'll get far more out of your trip that way than if you're glued to a computer screen the whole time.
chris_overseas··on Pushing iOS
Sure, and the lockscreen is another place to put information like this.

> It's just a swipe down or a swipe up.

That's why I prefer a widget (or lockscreen), there's no swiping required at all. As for getting push notifications for the subway... No thanks, I don't want a notification every time some subway line is running a little slow. I only want notifications for events I care about, with few or no false-positives.

chris_overseas··on Pushing iOS
Yes, a custom Android launcher would be able to implement this (though it might be a little tricky to figure out how to make the transition between app icon and widget since some apps don't have widgets, some have multiple widgets).

Given the way the Android community has picked up on these sorts of things in the past, I wouldn't be too surprised if someone creates a launcher that implements this relatively soon.

chris_overseas··on Pushing iOS
I find them useful. Here's how:

- Weather info. Before heading out for the day I can see instantly if I might need a jacket or umbrella later.

- Tube status. I can see at a glance if there are any problems on any underground lines. If there are, I can click on the problem line to get more detailed information with a single touch.

- Calendar. Shows me my schedule for the day.

- Music. Control playback without having to launch an app.

I also have widgets I tend to only use when I'm travelling, showing currency and timezone information.

chris_overseas··on Flickr: Invitations disclosure (resend feature)
So I clicked on one of the example invite links listed in the bug report. I was then prompted to log in to my Yahoo account. Hmm, OK... so I logged in, at which point I was taken to a page with a form asking me to join Flickr. I did NOT fill in or submit the form because I don't want a Flickr account, though it was presented with defaults based on my Yahoo ID anyway. I closed that window and tried clicking on an invite link again. Much to my surprise, the link then worked and I received an email saying "Welcome to Flickr". What the hell?

[edit: on the plus side, Flickr make it very easy to delete your account entirely. The only obvious side effect is that the screen name you had is now unavailable for any further users]

chris_overseas··on Don't use assembly unless you're an expert
True enough. That reinforces a couple of other points that tend to become apparent from these sorts of comparisons and benchmarks:

1) High level languages are easier to refactor and maintain than lower level languages (changing the algorithm in the assembly's a big job).

2) For performance, the algorithm used is almost always more important than the language you choose to implement it in.

Both of those points back up the author's assertion, it's a shame he didn't specifically discuss them.

I used to hand-code assembly (or generate it, eg "compiled bitmaps") back in the 8086 days. For many situations there were easy gains to be had that couldn't be achieved so easily in high level languages. These days I wouldn't dream of attempting it other than perhaps for vector code in an inner loop. I'd far rather spend the time profiling and optimising the algorithms and data structures because that's where the big gains are going to be. To go ahead and implement something in assembly when the algorithm clearly isn't yet optimal is perhaps fun but also kinda insane.

chris_overseas··on Don't use assembly unless you're an expert
Well the previous discussion was centered around the same assembly implementation as this one. The only difference is, in the previous discussion the fastest C/C++ implementation was 1.1x slower than the assembly. In this current discussion, the author managed to write a C++ implementation that runs faster than the assembly version.
chris_overseas··on Kill the Snowden interview, congressman tells SXSW
I didn't know about this either until now. This is a great example of the Streisand Effect in action http://en.wikipedia.org/wiki/Streisand_effect
chris_overseas··on ARM immediate value encoding
Sure they can, by setting the rotate bits to 0xC (1100). Have a play with the interactive widget near the bottom of the article.

Interestingly, there is some redundancy with this encoding meaning you can't represent a full 2^12 unique values. Eg 0x1 could be represented by 0x1 and 0x0 in the rotate field, 0x4 with 0x1 in the rotate field, 0x10 with 0x2, or 0x40 with 0x3. The same applies for every other combination - this means that there are only (2^12)/4 = 1024 unique values that are representable in total.

chris_overseas··on Announcing Scala.js v0.1
Take a look at Kotlin (http://kotlin.jetbrains.org), it was designed to address the issues you mention.
← PreviousPage 6 of 6