HNHacker News
TopNewBestAskShowJobs

spectre

263 karma · joined March 23, 2009

Software Engineer at OnPoint Digital. USAR Responder, NZ Response Team 11
submissionscomments
spectre··on Nelson woman delighted after Apple unlocks iPhone of late husband
No inheritance doesn't compel Apple to unlock that inherited property. Imagine it like a safe. You might inherit a safe but there is no obligation on the manufacturer to help you unlock it.
spectre··on Online flag waver
https://krikienoid.github.io/flagwaver/#?src=https%3A%2F%2Fi...
spectre··on Lack of ethics education for computer programmers shocks expert
That's a bit of a harsh comparison. Stuff is the online format of all of Fairfax New Zealand's newspapers, some of which occasionally produce decent stories. Stuff is mostly just shitty poorly researched journalism rather than the Daily Mail's sensationalised tabloid bullshit.
spectre··on Incomprehensible job titles are an elitist affectation
Self proclaimed "Thought Leader" and "Digital Prophet" sounds rather egomaniacal. I just assume anyone with titles like that is trying to sell synergy and snake oil.
spectre··on The nationwide roll-out of the 911 system was a difficult endeavor
There's some interesting technical history behind some of the emergency number choices:

999 in the UK (from 1937) was chosen because public payphone could be easily modified to make it a free call.

111 in New Zealand (from 1958) was chosen because the system was implemented using British Post Office equipment that already supported 999. But New Zealand phones pulsed in reverse so 111 on a New Zealand phone produced the same pulse as 999 on a British phone.

000 in Australia (from 1961) was chosen because 0 was already used for trunk access. On an automated rural exchange, 0 would connect you to a main centre. In remote communities it was 00. This meant that dialing 000 through an existing remote exchange would at least connect you to an operator in a main centre.

spectre··on Uber president Jeff Jones is quitting
The lawsuit is from Waymo which is technically a sibling company to Google.
spectre··on Henry Heimlich has died
The general recommendation is now to start with 5 Back Blows then 5 Abdominal Thrusts (the Heimlich), repeated as necessary.

Mayo Clinic: http://www.mayoclinic.org/first-aid/first-aid-choking/basics...

European Resuscitation Council: http://ercguidelines.elsevierresource.com/european-resuscita...

Australia (and New Zealand) Resuscitation Councils: http://www.nzrc.org.nz/training/ECI/anzcor-guidelines-2016-u...

In the case of Australia/New Zealand the recommendation is to do 5 Back Blows then 5 Chest Thrusts. My understanding is that it's believed to be similarly effective but has less risk of causing internal injuries.

spectre··on Saving the Internet 2000TB a Day: Fixing Font Awesome’s Fonts
The claim of being the most funded software project is down to Font Awesome being the most funded project in the Software category. https://www.kickstarter.com/discover/categories/technology/s...

Pillars of Eternity is in the Video Games category and so isn't counted as Software.

spectre··on Millennium Tower is tilting, sinking
I did a bit of work on a 28 story building that developed a 1.5m lean during an Earthquake. The story of the demolition http://www.ward-demolition.co.nz/grand-chancellor/
spectre··on Passport Index 2016
There are a couple other interesting variations from the default. Having a border (Republic of Congo, using a map rather than a coat of arms (El Salvador, Guatemala, Honduras), and additional imagery that runs over the edge (Brazil, New Zealand, Portugal, and Sweden).
spectre··on Churchill’s disaster – Gallipoli
I'm well aware of the nature of, and reason for the ANZAC day commemorations. The irony was that an event that served to define New Zealand and Australia's national identities, is also one of British Empires greatest failures.
spectre··on Churchill’s disaster – Gallipoli
In New Zealand and Australia, the landings at Gallipoli are commemorated with a national holiday (ANZAC day, 25 April). I've always found it ironic that what is probably our most important holiday is a commemoration of one of Britain's greatest blunders.
spectre··on What If Money Were Designed to Celebrate Science Instead of Presidents?
Why just celebrate Science? In New Zealand our banknotes feature people famous for all kinds of achievements: $5 - Sir Edmund Hillary (Climber), $10 - Kate Sheppard (Woman's Suffrage), $50 - Sir Āpirana Ngata (Māori Culture), $100 - Lord Ernest Rutherford (Nuclear Physics).

http://www.rbnz.govt.nz/notes_and_coins/notes/

spectre··on Nearly Every USGS Topo Map For Free
In New Zealand, LINZ (government mapping agency) provides all of their data online under a Creative Commons Attribution License: https://data.linz.govt.nz/
spectre··on What would a UK flag look like without Scotland?
A number of countries that incorporate the union flag would also need to consider changing: Australia [1], New Zealand, Niue, Tuvalu, Fiji, The Cook Islands, Bermuda. Also assorted states and provinces: British Columbia, Hawaii, Manitoba, Ontario, Queensland.

[0] http://www.news.com.au/national/could-the-scottish-vote-for-...

spectre··on Float Label Pattern
Implementation using CSS3:

http://jsfiddle.net/spectre/52Bf2/3/embedded/result/

spectre··on Auto-Threading Is Actually About Mutability And Safety
A programmer is always capable of writing better parallel code then such a compiler but writing safe and correct parallel code is beyond the skills of many programmers. A good analogy is that a good programmer can hand write assembly that out performs compiled code but that is too hard for most programmers to achieve.

There is some interesting research into languages that explicitly control mutability and object reachability (A set of objects don't need to be immutable if we can guarantee that only one thread has access to them).

http://ecs.victoria.ac.nz/foswiki/pub/Main/TechnicalReportSe...

spectre··on Non-terminating compilation in Java
while the compilation does technically terminate it is doing so with a StackOverflowError which along with the resulting stack-trace most likely indicates a non-terminating recursion.

It only terminates due to a finite limit on the size of the stack.

spectre··on Liblime seeks trademark for an open source product created by an NZ library
I'm surprised the Maori Advisory Board of the Intellectual Property Office hasn't blocked this on the grounds that 'koha' is a Te Reo Maori word (translated as gift or offering). They tend to be highly protective of the language as it's considered to be taonga (treasure).
spectre··on Go Cry on Somebody Else's Shoulder: MongoDB is fine
While anecdotal evidence is always suspect, remember that the case in the article is MongoDB's optimal use case. That being of being extremely read heavy (There is no indication that they did more than one write that day).
spectre··on An Architect Squeezes 24 Rooms Into 344 Square Feet (Video)
Cool idea, but unless there is some system to lock the walls into place, this would be very dangerous in an earthquake. I've seen a number of high density file systems (same idea but just files) that caused significant safety issues in the recent Christchurch Earthquake.
spectre··on CompSci 101 - Big-O notation
Keep up the good work I look forward to your next article.
spectre··on CompSci 101 - Big-O notation
While a good description of Big O notation in relation to time he doesn't mention that Big O notation is also used in relation to other factors such as memory.
spectre··on Foodtube - transporting food like oil, water, and gas.
I'm dubious of how such a system would stand up during an earthquake. As a member of Civil Defence in a city that was recently struck by a 7.1 magnitude earthquake (http://en.wikipedia.org/wiki/2010_Canterbury_earthquake) it was remarkable how with just a bulldozer any damaged transport routes could be returned to mostly usable condition. I shudder to think what would happen if we had been reliant on something like these foodtubes, image how long a minor displacement would take to fix.
spectre··on Speed-Freak Football
If this becomes a common trend in American Football it could cause the game to evolve back towards Rugby Football. A good example of how fast rugby is played is this game: http://www.youtube.com/watch?v=g7ZU4GKmOoQ

Particularly at 3:15 where the ref gives a player a yellow card for slowing down the game. (Note that this isn't just a minor game, its an International Test between the worlds two top ranked teams).

spectre··on Go compiler now committed to gcc mainline (to be gcc 4.6)
Jython doesn't compile to JVM bytecode its just a Python interpreter/implementation written in Java that runs on the JVM.
spectre··on Students Read Hacker Monthly For Free
I've seen a number of groups that organised recreational sports events that offer discounts to people who are students or unwaged. That seems to be kinda of what you suggesting.

A good example: http://www.madeventz.co.nz/tmrogaine/files/tm-entryform.pdf

Unfortunately this practise seems to be contained to the amateur adventure sport community.

spectre··on Implementing the auto-buying bot from xkcd #576
selling $1 bills would likely be difficult using the bot in the article because the site (trademe.co.nz) is only in New Zealand where the smallest bill is the $5 one. Although there are probably other equally effective sales you could run using $1 and $2 coins.
spectre··on Implementing the auto-buying bot from xkcd #576
trademe is pretty much just the New Zealand version of ebay (albeit with a better reputation and more engaged community). They are also impressive because they cloned ebays business model early enough to prevent ebay from dominating the New Zealand online auction sector (as ebay did in Australia with ebay.com.au) and sold in 2006 for $700 million (NZD) ($550m in USD).
spectre··on First public release of the Gosu programming language for the JVM
On the compare page: "Reified generics (check generic types at run time)"

Does anyone know how they've gotten around the issue of Type Erasure on the JVM?

Page 1 of 4Next →