HNHacker News
TopNewBestAskShowJobs

damncabbage

3,050 karma · joined August 2, 2010

Ruby/Haskell/JavaScript webdev based in Sydney, Australia.

  rob@robhoward.id.au
  http://robhoward.id.au
  http://twitter.com/damncabbage  
  http://github.com/damncabbage
submissionscomments
damncabbage··on Vim is the worst editor, except all the other editors
Wow, that sounds nuts. What OS are you running? I've never actually seen this happen before.
damncabbage··on Australian opposition vows to implement Internet filter by default
"Mistake". It was likely just testing the waters.
damncabbage··on Australian opposition vows to implement Internet filter by default
Snuck in less than 48 hours before the federal election, in the media blackout[1] period that immediately precedes it. Disgusting.

1. http://www.aec.gov.au/faqs/election_advertising.htm#blackout

damncabbage··on Learning how to think
TV Tropes (!) of all places has a great explanation, applied to comedy: http://tvtropes.org/pmwiki/pmwiki.php/Main/SeinfeldIsUnfunny
damncabbage··on Intern’s death puts banking culture under microscope
How is it voluntary if everyone else is pulling crazy hours and you need to keep up (or pull ahead) to stand a chance of making the jump from Intern to Real Employee?

Directly from the article:

“Sure, you may not be achieving much by midnight, but do you really want to be one of the first in the team to leave your desk?” George Herbert at PolicyMic asks. “If you’re always the one who leaves first will your boss question your commitment when it comes to calculating your annual bonus or deciding whether to take you onto a regular contract?”

damncabbage··on (Unconfirmed) Twitter hacked, accounts leaked.
Apologies for the shortened title. I don't very much like either this or the original title ("Twitter Hacked, Thousand of account leaked, millions compromised by Mauritania Attacker"), but there's that no-editorialised-titles rule.

I don't know if this leak is legitimate. Has this been covered by other sources, or has anyone downloaded the dump to see?

damncabbage··on Kal – a clean JavaScript alternative without callbacks
If you are looking for Haskell, you can take a look at Fay (https://github.com/faylang/fay/wiki).
damncabbage··on [dead]
No, there isn't. And only a few domains get the full subdomain listed; HN used to get a ton of "(github.com)" submissions that were just GitHub pages.

It's an annoying bug, it keeps getting raised as a problem, but it's never been dealt with.

damncabbage··on What I learned from others' shell scripts
... But only in Bash 4. This doesn't appear to work with stock OS X (Bash 3).
damncabbage··on What I learned from others' shell scripts
The outer quotes aren't required:

  APP_ROOT=`dirname "$0"`
(See http://www.tldp.org/LDP/abs/html/varassignment.html#EX16)

Also, even if ^J or ^M were present in a parent directory's name, the command above would still work. Whitespace-like characters take some getting used to with Bash.

damncabbage··on Bootstrap 3 RC2
More that you have to memorise what the word is and what letters they're removing from it.

("Is it Lg, or Lrg? Err, hold on, I'll check...")

damncabbage··on You Might Have an Invisible Facebook Account Even if You Never Signed Up
> I also don't know why I should desire to work at company $q which is has a completely incompetent hiring department.

The pendulum is swung our way right now. Put yourself in the position of someone going for a job in a market that's tight and competitive.

(Like trying to rent a place in Sydney or NYC, they can discard you and there'll be plenty of people left lining up to take your place.)

damncabbage··on PEP 8 Modernisation
If you emulate the way the MRI parses it, sure.

For example:

  # Is this some_method with an empty block, or an empty hash?
  some_method {}

  # Is this a regex or a comment?
  #
  # It depends how many arguments "whatever" takes, and you
  # don't know that until you run the code that defines it.
  #
  # Interpretation is implementation-defined. It just so
  # happens that the MRI determines that the below ISN'T a
  # regex because it has a SPACE character just after the "/".
  whatever  / 25 ; # / ; raise SystemExit.new;
damncabbage··on We're about to hit phase 3 of ARIN IPV4 rationing
> designed-by-nerds

I hate to break it to you, but everything you're using right now to send this information was arguably designed by nerds.

damncabbage··on XSS in Google Finance
Why bother with session cookies when you can just throw up an official-looking login dialog on the google.com domain and just steal credentials from everyone not aware enough?
damncabbage··on Show HN: CoreOS, a Linux distro for containers
"LXC" (for LinuX Container) will get you what you're looking for.
damncabbage··on Identical Droplets in the DigitalOcean: Regenerate your Ubuntu SSH Host Keys now
I've had a Ubuntu instance running for three months now; no notification.
damncabbage··on Devs: Make Capistrano Your New Friend
Page is blank owing to it trying to load socket.io (!) from http://localhost:3000/socket.io/socket.io.js.js

And http://cmj.io/posts/devs-make-capistrano-your-new-friend just doesn't work.

This just seems like a really poorly put-together custom blog. #-only routes, websockets for loading content, hostile error pages, etc. :(

damncabbage··on Leading Australian Telco storing data on behalf of US government
Worse, a number of ISPs use Telstra's lines, eg. iiNet, Internode, TPG. I have no idea if that agreement also covered others using the same cables.

(Telstra was government-owned until it was privatised from 1997-2000, and as such has a monopoly on most of the phone lines; the government sets the wholesale rates at which the lines are leased to other companies. Optus ran a bunch of their own cables, but the coverage isn't nearly as extensive.)

damncabbage··on Why Ruby rocks

  That's a myth, a pervasive one. I'll point you to one 
  source that debunks this, but there are many. 
  http://www.unlimitednovelty.com/2012/06/ruby-is-faster-than-python-php-and-perl.html
It's unfortunately compromised by some boneheaded things in the MRI implementation. Method caching is a great example: https://charlie.bz/blog/things-that-clear-rubys-method-cache

(Rails startup does a lot of the mentioned things, for example, but then so do a lot of apps' controller actions unless they're careful. The OpenStruct example is particular egregious.)

damncabbage··on Why Ruby rocks
They are. (And generated behind the scenes by "attr_accessor :sanity", if you'd prefer the short version.)

The benefit everything-is-a-message is that you can swap out the implementation of sanity (or sanity=) if needed, eg.

Before:

  attr_accessor :radius, :diameter

After:

  # Refactored radius to be the new source of truth.
  def diameter
    radius * 2
  end
  
  def diameter=(val)
    self.radius = val / 2
  end

In PHP (for example), MyClass->diameter and MyClass->diameter() are completely different things. Any existing code (including code you don't control) needs updating to change references from the former to the latter when moving logic into something that was previously static.

This article is flawed by holding up those six lines in themselves as something great, but I think the point the author is trying to get across is valid.

damncabbage··on Healthcare.gov: Code by the People, for the People, Released Back to the People
A link to the GitHub source: https://github.com/CMSgov/healthcare.gov

(The article buries the link to the page with the link: https://www.healthcare.gov/developers )

damncabbage··on Who is using Yii framework?
I used it for a couple of years (2009 - 2010) after getting frustrated with Zend Framework's Java-envy and enjoyed it; it was the last straw that pushed me over to Ruby and Rails, though, given Yii's attempt at bizarro-Rails with CActiveRecord, and the problems with getting testing working properly.

I really wish they would stop using statics so much, though (eg. CHtml::activeTextField()); it's really inflexible, particularly when statics call other private statics with self::... making subclassing really tough.

damncabbage··on Show HN: Complete list of Google Reader alternatives
Also, http://lector.io
damncabbage··on Changing gut bacteria through diet affects brain function
Thanks. :-)

(I thought "speed of light" at first, but didn't think of a way it could be applicable.)

damncabbage··on Changing gut bacteria through diet affects brain function
Sure. Except then you need to define c. Back to square one.
damncabbage··on “Accounts merged and now my files are gone”
I upvoted you and I'm the OP. I couldn't think of a better title that didn't span an entire line.

("Use Incognito Mode when using a friend's machine or risk having your accounts stuck together"? Or maybe "Don't log into a Google account on a friend's machine without using Incognito"? It's a bit too late for me to edit, unfortunately.)

damncabbage··on “Accounts merged and now my files are gone”
I think there are two lessons:

1) Use Incognito when using other machines, or

2) Don't trust Google with precious things.

damncabbage··on Pin Payments is Australia’s first all-in-one online payment API
It also has a VC culture of not funding anything that isn't pulling valuable things out of the ground. :(
damncabbage··on Pin Payments is Australia’s first all-in-one online payment API
I work at Bigcommerce. The development, QA, design and product teams are here in Australia; the sales, support and marketing teams are in Austin.

(There is some mixing, eg. a few devs in Austin, a few support guys here.)

← PreviousPage 3 of 23Next →