HNHacker News
TopNewBestAskShowJobs

porges

196 karma · joined April 21, 2010

[ my public key: https://keybase.io/porges; my proof: https://keybase.io/porges/sigs/SrCe3riFOwxMh1cQghPWntrfxUIQUx_rm_xHfyhZmiM ]
submissionscomments
porges··on CoreCLR is now open source
It won't help much there as the number is static for a particular build.
porges··on A new day for Google Calendar
Given that it is now more than 2 years since Gmail cards were released for Google Now, and there's still no sign of them arriving for Apps accounts... I'd say no.
porges··on Google Inbox
This is quickly becoming SOP... I'm still waiting for Google Now Gmail cards >:/

(And as a single-user apps account I don't even get the recently-released unlimited storage...)

porges··on What if C++ looked more like Python or CoffeeScript?
This looks really error-prone to me.

Have you looked at previous attempts, such as SPECS? http://www.csse.monash.edu.au/~damian/papers/HTML/ModestProp...

porges··on Identify mystery text, win $1000
In that case I think it would read something like "cités de Iolchos et Pylos". I also can't reconcile 'cité' with what I'm seeing in the image - there's an extra stroke.

But yeah, I don't think 'unité' is definite :)

porges··on Identify mystery text, win $1000
The bit on the left of 0004 says something like:

"On trouve j'ai la ___ ancienne ____ unité d'Iolchos et de Pylos."

In legend Neleus (another son of Tyro) was king of Pylos, and he was raised in Iolcos.

But these French bits are only the reason the unknown script is "likely French" :)

porges··on -2000 lines of code
To count by author:

    git log --numstat --no-merges --pretty=format:%an
        | awk '
          author == "" { author = $0; next }
          /^$/ { author = ""; next }
          { added[author] += $1; removed[author] += $2 }
          END { for (author in added) {
            print author, "added", added[author], "removed", removed[author], "sum", added[author]-removed[author]
          } }'
        | sort -n -k 7
porges··on To close or not to close – Void HTML elements
<br/> - you might like to read the guide for 'polyglot' markup [1] that is both valid HTML & XHTML

[1]: http://dev.w3.org/html5/html-polyglot/#empty-elements

porges··on SF Is the Third Least Affordable Major City in the World
When this was in the news in NZ, there was a good series of posts on a local blog with some criticism of the way the survey is constructed: [1] [2] [3]

Demographia itself has a certain ideological bent (go read the introduction to the survey!). NZ readers will also recognize both NZers represented as current and former members of the right(er)-wing National Party.

The impression I get is that these statistics are constructed to support existing policy, not in order to inform the development of policy.

[1]: http://transportblog.co.nz/2013/01/23/demolishing-demographi... [2]: http://transportblog.co.nz/2013/01/24/demolishing-demographi... [3]: http://transportblog.co.nz/2013/01/27/demolishing-demographi...

porges··on Two "WontFix" vulnerabilities in Facebook Connect
It's the other way around. You force someone to log onto another site as your Facebook account, so you can then access all their content on the other site.

The security being breached is on the other site, not Facebook (perhaps why they are less concerned about it).

porges··on The Joys of Affordable Concurrency
> a language that makes these sorts of operations simpler

That's essentially what async/await is doing in C# (and hopefully eventually in C++).

For example the code in the original post could be in C# as:

    var facebookTestUser1 = CreateFacebookTestUser();
    var facebookTestUser2 = CreateFacebookTestUser();
    MakeFriends(facebookTestUser1, facebookTestUser2);
And asynchronously:

    var facebookTestUser1 = CreateFacebookTestUser();
    var facebookTestUser2 = CreateFacebookTestUser();
    MakeFriends(await facebookTestUser1, await facebookTestUser2);
Of course, the code inside CreateFacebookTestUser is going to have to change ;)
porges··on HTTP Security headers you should be using
'inline' is also treated as a separate source. If your policy is 'self' that only means same-origin code is allowed to run, and inline JS is disabled.
porges··on Why am I here?
Mussel Inn also make a delicious Manuka-flavoured beer.

As an NZer, I have the opposite feeling than the original article at the moment. After visiting a few cities that have 4-5x the populatation of my whole country I'm itching to live somewhere with such a large base of people. I'll probably end up back here in the future but as an underpopulated island nation, the combination of low(er) wages and high relative living (esp. housing) expenses + expensive imported goods is not helping at the moment.

porges··on Making Map Operations Implicit in Programming
My favourite example of a language with 'automatic functorization' is Icon/Unicon. All functions, when applied to generators, themselves become generators.

So e.g. `read` is a generator that reads lines from the input, `write` writes a line to output, and the composition of them, `write(read())`, is a generator that copies lines from input to output. To run the generator, you can write `while write(read())`.

porges··on Mandatory bicycle helmet law in New Zealand
Also NZ has universal no-fault accident insurance (ACC). If not wearing helmets leads to higher costs then...

Motorcycle riders already pay higher registration fees due to the higher likelihood of injury.

porges··on Exact numeric nth derivatives
>Dual numbers cannot, because they use plain old floating point math in the derivative equations.

There's nothing stopping you from switching out the floating point for rationals or something like that.

For example, the Haskell `ad` package has its functions parameterized over all instances of Num: http://hackage.haskell.org/package/ad-3.4/docs/Numeric-AD.ht...

porges··on Strings, bytes, runes and characters in Go
Note that in C# indexing on char is really indexing on UTF-16 codepoint, which is arguably worse because it seems to work, until it doesn't.
porges··on Lavabit SSL Cert Revoked
It depends on what ciphersuite was being used for the particular session. Some offer forward secrecy, but not all.
porges··on Don't use Hadoop when your data isn't that big
In the future, the Square Kilometre Array is forecast to require 300-1500 PB/year of archiving, somewhere between 10 PB/hr and 1 EB/day of raw data. (That's 3-12 TB/s...)
porges··on JPEG image glitching / corruption
That sounds plausible. Another idea: choose a section of "bad image" and a section of "good image" which should have similar colours and then generate mutations of the corrupted DCT square until you have a close match between the two areas.
porges··on W3C Approves RDFa 1.1 for HTML5
Property and Datatype are in the HTML namespace* and their values are namespaced identifiers (in XML, QNames).

The identifiers are namespaced so that if you have differing vocabs with the same property names (or datatypes), you can distinguish which one you're talking about.

Your proposed transformation means that Property lives in the example namespace, meaning it has a completely different interpretation, which is specific to the example namespace.

*: (before someone pulls me up on this, it's not 100% correct)

porges··on [dead]
A more direct link: http://tools.ietf.org/html/rfc3986#appendix-C
porges··on Use RF noise from VGA DAC to drive VHF TV
The general term for this (although a different concept to TFA) is http://en.wikipedia.org/wiki/Van_Eck_phreaking (as popularized in Cryptonomicon)
porges··on Boarding Pass Redesign
The airline I catch most often has the option of an RFID tag or their branded (RFID) credit card, or you can use your phone to display a QR-code via their app, or an EAN barcode if you just have the confirmation email.

If you only have carry-on luggage you just head to the gate, no need to deal with a check-in counter or anything.

Once you get to the gate, you scan your pass and it prints a small slip with seat + flight number.

Of course, international flights still have all the rigmarole of big paper passes.

Oh, and their printable boarding passes already look like: http://passfail.squarespace.com/storage/boardingpass_airnz.j...

The international ones are still fairly standard: http://jecielkonsult.com/onewebstatic/928d2eb4df-perakl6.JPG

porges··on Programming languages list, by Ian Hickson
C# has virtual constructors? I also wouldn't rate its Unicode support as highly as Java or Perl's.
porges··on Mio: A High-Performance Multicore IO Manager for GHC [pdf]
From the introduction:

> Mio will be released as part of GHC 7.8.1

porges··on We have an employee whose last name is Null. He kills our employee lookup (2012)
> If you escape it then there's no XSS issue.

Not XSS, but you need to be careful about allowing through things like the LTR/RTL override characters.

porges··on Authy: Faster Two-Factor Authentication
There is one terrible thing which is that adding an account for a different service but with the same email will overwrite any account with the same email without prompting you.

e.g. setting up 2-factor with MS with the same email you use for Google will overwrite the Google one unless you rename it.

porges··on Unicode Character 'Slice of Pizza'
Note that Google Chrome on Windows often can't display characters even if you have an appropriate font installed.
porges··on Gmail: Introducing Actions in the Inbox
Google Now still doesn't support a lot of cards for Apps accounts either.
← PreviousPage 2 of 3Next →