HNHacker News
TopNewBestAskShowJobs

joshd

137 karma · joined April 16, 2008

submissionscomments
joshd··on From Redmond with Love - IE team sends cake for FF4
This probably explains Mozilla's target of reaching Firefox 7 by end of 2011. They just really like cake.
joshd··on [dead]
I usually use `that`. I've seen examples use `self`, but that could potentially conflict with `window.self` in the browser.

    var that = this;
    return function(){
      that.fire();
    }
joshd··on The Wristwatch Looks For a New Use
To me checking a message is much more rude than checking the time. It's actively stating "I have more important people to talk to than you".
joshd··on How to Manage CSS Explosion
Have you looked into Sass and Less CSS? I haven't used them in production. They seem to achieve reuse in a CSS-like way.
joshd··on The $85 Smartphone and the imminent extinction of non-smartphones
In Auastralia the plan I've just moved to (http://www.tpg.com.au/mobile/plans.html) gives me enough calls, text and data for $15 a month without any lock in.

I've been looking into US contracts in preperation for a move and was shocked at the rates people are willing to pay.

joshd··on I am graduating soon. Should I work at a small startup or a large company?
I think both have their good points. Smaller companies allow more freedom and a wider range of experience. If you pick the wrong small company you'll pick up bad habits (what's version control? backups? testing?). I didn't have a software engineering degree, so wasn't aware of some of the things I was doing wrong (or missing) until I spent some time in bigger companies.
joshd··on Australia blocks access to Wikileaks, $11K/day fine for linking to it (2009)
It's also worth pointing out that Australians don't have constitutionally protected free speech.
joshd··on Instapaper's backup method
Another issue is that your S3 credentials are stored on your primary server. An attacker who gains access to that machine will also gain access to off site backups, and can completely destroy your business.
joshd··on World's largest association of pilots boycotts body scanners
(Cross-posted from my Reddit account)

I went through SFO on the weekend and said I didn't want to go through the machine. You're made to feel pretty stigmatised, you have to stand there while the TSA officer repeatedly yells out "We got an opt-out. Male opt-out." across the hall.

The pat down itself was extremely thorough but considering how much the TSA gets bagged on Reddit, the officer was incredibly professional. It didn't feel lewd or dirty. Sure, it was violating and I resented having to be put through the experience, but the guy was just doing his job and it was obvious he'd been extensively trained. All up it took about 5 minutes of my time.

What worried me the most was that afterword he asked "The TSA is conducting a survey, why did you opt-out?" I replied that I didn't like my freedoms being taken away. However, thinking about this later, I realised that if in a year they release stats that say "only 1% of people opt-out, and only 5% of those people do so for medical or religious reasons" then it is going to be a hell of a lot easier for them to push for the scans to become mandatory.

joshd··on Opera holds the web's most valuable secret
Opera Mini stores the page state on their servers. If you click on a JS link then the Opera Mini client treats it like a new page load, but the server is just executing the JS and resending the page.
joshd··on Writer for iPad: First Reactions
We only use monospace because there is a lot of symmetry in code, and unlike other forms of writing, a single punctuation characters can completely change the meaning of the text (/.!^,;).
joshd··on Do you know Ruby’s ‘Chainsaw’ method?
"I use method_missing()to remove duplication ... On the other hand, I usually think twice about using method_missing() for cosmetic reasons, like getting cool method names such as find_by_name_and_address()."

That seems backwards to me. I use magic methods to define methods that can only be defined at run time, like his example of creating methods based on schema introspection.

Using magic methods breaks a lot of tools: IDE code completion, reflection, documentation generation so I always explicitly define methods unless it's not possible.

joshd··on The App Store is slow, so I built App Store Instant
Are you logging your queries? If you have enough searches you could build your own predictions. You're also proxying results, so you could use those to build an index too.
joshd··on Adioso (YC W09), Flight Search For People Keeping Their Options Open
It would be nicer to see dates further in the future. The error message for exceeding the 4 month window is rubbish too: http://adioso.com/au/bne-to-dps-april-2011. By putting scare quotes around "April" in the underlined text it look like the natural language processing engine doesn't know what "April" means. Also, that error message shouldn't be a "Tip", as it's completely failed for that search.

It would be nice to have an optional advanced search form so I could see exactly what a parameters I can search for. Free form search just lets me try permutations of text until I find one that works.

Also, the related searches bar is really confusing. It looks like crumb trails. Turning the arrow into a magnifying glass could be a good way to fix that.

joshd··on How Scribd's HTML5 conversion works ... even when it shouldn't
That's almost what Google Docs PDF viewer does. Each page is a JPG. This is served to the user with a catalogue of text layout then JavaScript is used to simulate selection and copying.
joshd··on Why aren't you using git-flow?
Is there a reason to delete the branch? I don't think I've ever tried to delete a branch in subversion. I imagine it's possible, and can be reversed if necessary, but goes against my thinking of the repository as a canonical log of all development.
joshd··on Homoglyph attacks: How to create an internet hoax
> Right now, users are "trained" (to dignify what's happening) to look at the browser URL bar for a name and a lock icon.

If only that were true.

A payment gateway I stumbled across the other day (http://www.centricom.com/flashdemo/POLi_demo.html) gets the user to download an application which they use to log into their bank from. The intro video instructs the user to check the address bar and the lock icon in the fake browser they've just downloaded. The best part is that the payment gateway goes through all this so they can edit the HTML of the users bank and inject payment details.

One of the Australian airlines is pushing this instead of Paypal, and it's getting real world use.

joshd··on Computer Randomly Plays Classical Music
I think a simple rendition of "Daisy, daisy... " might be more appropriate.
joshd··on Technical cofounder wanted for disrupting the wedding industry
Sounds kind of like http://www.zazzle.com/invitations.
joshd··on Handy cheat sheet for 3D films: RealOrFake3D.com
I think different 3D technologies could account for the in-ness and out-ness. Where you at the same cinema both times?
joshd··on Dear American Website Owner
My favourite are the dropdowns that place "popular" countries at the top. This means that if I scroll through the list then my country may or may not be where I expect it based on how the developer was feeling that day.
joshd··on Stupid American Website Owners
So lets weigh up the options:

A) Let non-US customers enter whatever billing information they want. Accept that a small percentage will fail when we try and charge the credit card. Everyone else is happy and we make more money.

B) Explicitly block non-US citzens who are trying to give us money.

Oh! Let's choose B.

joshd··on Stupid American Website Owners
"So why not make two forms".

Exactly. Have a US form. If the customer selects a non-US country then switch out the state for a freeform "state/territory" field and skip the US-centric validation. All up you might need 10 lines of HTML and server side code.

This applies to US-only services too. When trying to book accomodation and flights for a US trip I have heaps of websites refuse my money because I couldn't provide a US billing address. For example it didn't occur to the brain-dead developers of the Disneyland website that tourists be from outsite the US.

The problem is developers who seem to think they know what the customer wants. I know because I've done the same thing. If you're relying on your intuition then you are almost certainly wrong.

joshd··on Stupid American Website Owners
But he doesn't know even what conversion rates he could achieve because he chose to totally ignore non-US billing addresses. He's just assumed that it's not worth his effort.

He's talking about a web-based product. There is no reason to require a properly formatted address. When people are trying to give you money you should make things as simple as you can.

joshd··on Nokia N97 Promotional Video vs Real Life
My girlfriend has a 5530. It uses the same browser as shown in the video and doesn't have any of that stuttering. Best of all it cost £100 outright. It is a really solid little phone for what I paid for it. It even comes with a stylus tucked away which she uses all the time (not just for nerds apparently).
joshd··on Ask HN: Aussies, put your hands up
London (by way of Brisbane).
joshd··on My Duck Duck Go reddit ad by the numbers
"...reddit specific discount code (I went with diggsucks)"

Proving you don't know reddit that well. That will appeal to the 13 year old digg converts. The people with money to spend will just see it as immature, and therefore perceive your produce as being unprofessional.

OK. I just found your ad - http://www.reddit.com/comments/bgb99. You might want to consider the fact that A Small Orange were advertising pretty heavily recently. That would have cut down on people looking for entry level hosting. Or, perhaps you are right in saying that redditor's are cheap.

joshd··on Am I the Only One Who Uses a Text Editor to Edit Files?
Netbeans? There is a drop down of all open tabs, but that can't be filtered. There is also a window which shows open documents but for some unfathomable reason it can't be docked.

The only navigation I can see for open projects is the tree view which is painful for large projects with files scattered across the project (e.g. web frameworks).

edit: Ah, I see. The article wasn't about text editors. It was about how file navigation (within whatever environment you use) sucks.

joshd··on Photoshop CS5's new "Content-aware Fill"
noidi's yotube link explains it pretty well. It searches the rest of the image for sections that are similar to the edges of the deleted area and extrapolates from there. I imagine for large deleted areas this would have to be done multiple times to build up the deleted area. It woudl be kind of lie markov chains, but for image data.

The current patch tool in Photoshop can already adjust contrast and hue to make a patch source match the patched area, so when the algorithm is searching for similar areas to use as a source it can just focus on the image details and not the lightness or actual colours.

joshd··on PHP Fat Free Framework aka F3
That's quite cool. That's some of the cleanest PHP I've seen.

When I've tried to write long-running applications in PHP I always get memory leaks. How do you handle this in Kelpie?

Page 1 of 2Next →