HNHacker News
TopNewBestAskShowJobs

benjoffe

829 karma · joined September 12, 2010

My site with various personal projects and demos: https://www.benjoffe.com/
submissionscomments
benjoffe··on Report: Apple Loses iPhone 5 Prototype. Yes, in a Bar.
Also an important question: "Does your company have anywhere near as many employees as Apple?"
benjoffe··on If PHP Were British
£ isn't even available on my keyboard, I would need specific software or IDE features just for this.
benjoffe··on Things I’ve never heard a successful startup founder say
> We always knew better than our customers. Eventually, they realized that.

Pretty sure I've read quotes from Steve Jobs that follow that line of thinking actually.

benjoffe··on Warren Buffett: Stop coddling the super rich
Your big assumption there that those 200,000 people with income of $1M+ have an average of $5M per person is where your logic fails. This source: http://www.google.com/publicdata/explore?ds=a7jenngfc4um7_&#... shows the US total personal income for 2010 being over 12.5 trillion, your two groups only add up to 6 trillion.
benjoffe··on Redesigning the browser window
Modern operating systems can handle this correctly I believe.
benjoffe··on Show HN: My weekend project - Chessboard picture recognition
You have to be careful there, you can only make that assertion if you can prove that no pawn has been promoted to a bishop (eg if all 8 pawns are still on the board, or 7 pawns and 2 queens etc).
benjoffe··on Things you should know when interviewing for a programming job
> Also, when they do ask you about how much money you want, give them a range or a baseline (ex: I had X at my previous job, so I expect at least X or from my research people doing this job receive between Y and Z, so I’d expect something in that range). Let them come up with a number.

I don't understand this advice, if I say I expect 'at least X', then it's me coming up with the number, not them. I have always just said I'll comment on what is offered.

benjoffe··on Cobra effect
I read the same story in The Fatal Shore [1] which to my knowledge is a very well researched/factual book on early convict history (though I don't recall the success rate being initially as low as 40%, it was low though).

[1] http://www.amazon.com/Fatal-Shore-Epic-Australias-Founding/d...

benjoffe··on Revolutionary "Light Field" camera tech - shoot-first, focus-later
Combine this with eye tracking (to the level that my focal depth can be detected) and an automatic lens over my monitor and you'd have a pretty immersive picture.
benjoffe··on iPhone 4-digit passcodes more secure when containing only 3 unique digits
I mentioned this on HN in far fewer words a few weeks back: http://news.ycombinator.com/item?id=2610235

I was thinking about making a blog post about it but couldn't see much more information to add, it seems this blogger couldn't either ;p

benjoffe··on JSON users: Avoid CSRFs by not using top-level arrays
Yes and Google has 'throw 1;' at the start of some of their files IIRC (may be some other value than '1').
benjoffe··on Stopping Screenlock Smudge Attacks On Android
Interestingly if your 4 digit key for iPhone has a digit used twice then it is harder to guess the correct order given the smudge marks:

    4 distinct digits = 4! = 24 permutations
    3 distinct digits (one repeated) = 4!/2*3 = 36 permutations
Note: division by 2 is because of the symmetry of swapping the order of the repeated digit, multiplication by 3 is because it is not known which of the 3 digits is repeated.

Note2: Using 2 distinct digits (both used twice or one used 3 times) is not as ideal as that results in: 4c1*2 + 4c2 = 14 permutations

benjoffe··on Puzzle: Count from 1 to 10 in base negative 2.
This will have more than one valid solution, eg. 110 == -10 == (two).
benjoffe··on Why Geeks Should Love HP WebOS
Tested again, seems yes I can pan sideways (not sure why I couldn't before) but still can't zoom which makes no sense when the doc is wider than the viewport.
benjoffe··on Why Geeks Should Love HP WebOS
Wow, browsing that site from my phone is a crippling experience, they have this:

    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /> 
..yet they haven't actually optimized the site properly for a small display, meaning it's not actually possible to scroll/zoom to see any full line of text (tested on iPhone).
benjoffe··on Visualizing Time with the Infinity Hour Chart
Why do you find midnight at the top more natural? I find the author's choice more natural as it reflects the apparent position of the sun.
benjoffe··on Facebook considering $3-4Bn buyout of Skype
> The fact that a company that is supposed to be worth 1 trillion USD...

"Billion"

benjoffe··on Top JavaScript Mistakes
I think there's a mistake in the first example, it talks about for-in being bad but the example doesn't actually use for-in.

> There is no really good reason to predefine the array length.

There are good reasons, though they're usually quite 'sneaky', for example:

    function repeatString(str, howMany) {
      return new Array(howMany+1).join(str);
    }
> 13. Usage of undefined as a variable... that variables isn’t read-only, and any other code can change its value... why take the risk?

There's no good reason to be that paranoid, libraries could also overwrite 'document', 'XMLHttpRequest', 'setTimeout' and a number of other variables that would likely break my code; if any of my libs are so rogue that they overwrite 'undefined' then I've got big problems.

benjoffe··on Suggestion for tweaking reddit interface
I think it has quite a positive impact on the community that this suggestion got absorbed into the site in only 7 hours.
benjoffe··on It's Time To Kill New User Confirmation Email Links
So the overwhelming attitude here is that the advice in the link is bad, so why does it still have 32 points and waste my time by being on the front page? Please down vote articles like this.
benjoffe··on HTTPS is more secure, so why isn't the Web using it?
> You wouldn't write your username and passwords on a postcard and mail it for the world to see, so why are you doing it online? Every time you log in to Twitter, Facebook or any other service that uses a plain HTTP connection that's essentially what you're doing.

I'll be honest, I didn't read any more of the article after this totally false statement in the intro. Facebook and Twitter both use https for login (they are http pages that submit to a https endpoint that redirect to http, that way https is used for authentication but never appears in the url).

benjoffe··on Useful Symbols for Facebook
Automatic selection is possible in most browsers through JS, though only some browsers allow automatic copying to the clipboard (some using flash hacks).
benjoffe··on Useful Symbols for Facebook
In case it's not clear, this really has nothing to do with Facebook except for the way it's marketed (suggested use).

Note: of the symbols there, '%' seems to stand out as a character that is on just about all keyboards right? (maybe '$' also)

benjoffe··on Japan earthquake shortened days on Earth
I don't think this will directly lead to that happening. Assuming 1.8µs/day, then it will take about 1/(365.25*1.8e-6) ≈ 1500 years for a 1 second difference to accumulate. I believe the effects of terrestrial bodies have a much larger effect.
benjoffe··on Ask HN: What do you use Firebug or Chrome developer tools?
Dragonfly (Opera)
benjoffe··on Apple releases dev preview of Mac OS X 10.7 Lion with AirDrop, FileVault
In that video it looks like safari now auto hides the scrollbar when it's not being used (kinda like on the iphone), seems like an odd thing to do, since 20px of screen space isn't as precious on a desktop as it is on a phone.
benjoffe··on New MacBook Pro series
> Frankly, I'm amazed they still offer a 13 inch MBP (which is not to say that it isn't a good little machine, but that Apple likes to segment their market clearly)

While true, it is their best selling laptop, I can imagine it happening in a few years once the air gets a few spec bumps and lowers in price.

benjoffe··on Treesaver.js - JavaScript library for creating magazine style layouts
> Great find. But, I have seen Google doing similar thing using HTML5 entirely.

"HTML5 entirely" doesn't really mean much, for example my website uses mostly HTML 4.01, but is HTML5 as well (since it's mostly backwards compatible).

eg. If you're using <div> tags then you're using HTML5.

benjoffe··on Treesaver.js - JavaScript library for creating magazine style layouts
Maybe there's something wrong with my setup, but their 2nd example flashed on/off very quickly about 15 times, really quite a disturbing bug. Anyone else get that?

edit: others who confirm are using chrome, I'm using chrome on mac so it looks like latest chrome on all platforms are affected.

benjoffe··on When Should I Visit? - A 24 hour hack I made, what do you think?
I don't think the checkmark for colour blind is needed (the colours are supplementary, not essential).
← PreviousPage 4 of 6Next →