HN user

gabebw

153 karma

I work at thoughtbot.

Posts10
Comments29
View on HN

With Ack, I had to set up a bunch of --type-add lines to ~/.ackrc so that Ack wouldn't ignore e.g. SCSS files. ag searches every file by default, except for VCS files (e.g. .git/ and .hg) and files that are ignored by your VCS.

Ag's default behavior is way better, and less confusing to new users. Plus, it's faster.

Try inspecting the element (in Chrome inspector or Firebug or whatever). My password is visible there. When doing a simple view-source, I just see "${password}" though.

I believe GitHub admins have that little search bar on every repo, while regular joes can only search private repos.

I assume you're basing this off the screenshot. The "Search source code" input is only available in private repos. Since kneath/resque is a public repo, apparently one benefit of working at Github is getting that input on all repos, whether public or private.

Yes, Ruby has private methods:

    def i_am_public
       ...
    end

    def i_am_private
       ...
    end
    private :i_am_private

    private

    def i_am_also_private
       ...
    end

I really didn't think the GP would get an answer to that extremely specific question. Thanks, and I'll be checking this out.

A slightly unobfuscated version of that code:

  counter=0;
  pointer;
  main(){
    while(counter<641){
      for(pointer=0;
          "##K#8(38D-##C]L5870.X7\\M_b;90\\"
          "MC-M/NZGB6Q,I0VGB6a0FbN<VG.6Q\\bNb7^@`X=N@`XQaOVX:^]NX=:Z8PY]B`:>P"
          "NY8^$#SM):XA"[counter/6]-35>>counter++%6&1;
        pointer++);
      putchar(" _/\\\n,`)('<-"[pointer]);
    }
  }

Is it possible to detect absolute position of a polygon? It looks like polygon.pos gives position relative to where it was created (and therefore polygon.pos.{x, y, height} are sort of broken).

This is actually pretty helpful, in that my approach to programming in a new language is "Try to do X with the new language, and if I can't, read the docs until I can." That is, I try to actually DO something, and gather incidental knowledge along the way.

This is a really good post on how to do something useful with Haskell (plus it has IO, which is nice). One of the nice things about this approach is that the incidental knowledge can be useful, e.g. I didn't know about the "-e" flag to GHC.

He actually switched back to Rails again. From the foreword to the Rails Tutorial [1]:

> My former company (CD Baby) was one of the first to loudly switch to Ruby on Rails, and then even more loudly switch back to PHP (Google me to read about the drama). This book by Michael Hartl came so highly recommended that I had to try it, and Ruby on Rails Tutorial is what I used to switch back to Rails again.

[1] http://ruby.railstutorial.org/ruby-on-rails-tutorial-book#fo...

The Nerd Handbook 15 years ago

Oh, absolutely. I do the whole "pause and do something else" thing too, which the OP calls Nerd ADD [1]. Netflix + tabbed browsing is especially conducive to it. My point is that flipping through channels every 5 seconds makes us sound like nerd robots from the future, which I at least am not.

On re-reading, this article comes off as more measured and less apologist, but the "nerd robot from the future" aspect still comes through.

[1] http://www.randsinrepose.com/archives/2003/07/10/nadd.html

The Nerd Handbook 15 years ago

This idealizes some not-very-nerdy habits. Yes, sometimes nerds are messy - my desk is just messy. The package of gum on my desk doesn't mean I have an efficient system, it means I made room for my laptop.

And who watches 3 TV shows at one time? Serious question - if a lot of HN does stuff like this, that's a fairly fascinating discovery for me.

This reminds me of what Steve Martin did in his early career. He played the same comedy clubs over and over again, keeping the routines that worked and ruthlessly dropping the ones that didn't, until he became the most famous comedian in the world. As he put it: "I did stand-up comedy for eighteen years. Ten of those years were spent learning, four years were spent refining, and four were spent in wild success."

P.S. Born Standing Up, his memoir, is deservedly praised.

It's be great if the dashboard showed which one of the people was me more clearly (possibly you could show that box in a different color?). Just having "^ You" is not very easy to find. Other than that, it looks pretty neat. Not sure I'd use it, though.