fucking up ruby

1 Jul 11:27pm (2 days ago) reply

class Fixnum
  alias :plus :+
  def + other
    if self == 1
      plus(other).plus 1
    else
      plus(other)
    end
  end
end

puts 1 + 2
puts 2 + 2
puts (1 + 2) == (2 + 2)
yes, it outputs:
4
4
true

not using msn chat anymore

30 Jun 3:14pm (3 days ago) reply

just like hotmail, all i was getting from msn chat/messenger was spam and i barely talk to anyone via it anymore. so, goodbye msn. i hope you fix your spam problem.

looking forward to hurting myself

27 Jun 5:08pm (6 days ago) reply

mai just got me a belated birthday skateboard!!! i’m excited. i even get to put it together myself. fuck yeah.

summer movies i wanna see

27 Jun 3:13pm (6 days ago) reply

i need to write these down or i’ll forget. there are so many:

git grep, mdfind > script/find

27 Jun 3:11pm (6 days ago) reply

in previous rails projects i’ve written, i’ve used a shell script i put in script/find that did a recursive grep on certain subdirectories that avoids .svn directories. it’s worked pretty well.

find {app,lib,config,test/unit,test/functional,test/integration,public/*} -name .svn -prune -o -type f -print0 | xargs -0 fgrep -- "$*"

lately as i’ve moved to git, i’ve started using git grep as a replacement though. it has more features than my basic find, plus i can search against the index to make it faster.

git grep search_string

it also just occurred to me that i can use mdfind on the mac which is also arguably faster since everything’s already been indexed by spotlight.

mdfind -onlyin . search_string

ddamn (git took four days to self-host itself)

23 Jun 2:57pm (10 days ago) reply

The development of Git began on April 3, 2005. The project was announced on April 6, and became self-hosting as of April 7.

source: wikipedia

broken

3 Jun 10:44pm (about 1 month ago) reply

i’m broken

the loverboy

30 May 5:17pm (about 1 month ago) reply

The Loverboy

Random Gentle Love Master (RGLM)

Well-liked. Well-established. You are The Loverboy. Loverboys thrive in committed, steady relationships—as opposed to, say, Playboys, who want sex without too much attachment.

You’ve had many relationships and nearly all of them have been successful. You’re a nice guy, you know the ropes, and even if you can be a little hasty with decisions, most girls think of you as a total catch. Your hastiness comes off as spontaneity most of the time anyhow, making you especially popular in your circle of friends, too.

You know not to make the typical Loverboy mistake of choosing someone who appreciates your good humor and popularity, but who offers nothing in return. You belong with someone outgoing, independent, and creative. Otherwise, you’ll get bored. And then instead of surprising her with flowers or a practical joke, you’ll surprise her by leaving.

Link: The Online Dating Persona Test | OkCupid – singles | Dating

my distraction list

27 May 8:54am (about 1 month ago) reply

  1. fix house (there’s a big sub-list for that)
  2. exercise
  3. this blog
  4. skateboard
  5. lockpick

yay me and my mom

22 May 1:49am (about 1 month ago) reply

she birthed me a whole 29 years ago. coincidentally i’m picking her up from the airport in about 9 hours.

btw, if you feel like getting me a gift for whatever reason, i want:

  • a skateboard
  • a lock-pick set
  • “norwegian wood” by murakami
  • a macbook air
  • someone to fix the wiring in my wall
Strawberry loading
entries items