Fork me on GitHub

Archive for May, 2008

TreeHugger requirement: Manual lawn mower. 0

I just bought a Scotts 20inch manual reel mower today.



I figured that since the pollution levels of a 2 stroke gas mower running for an hour is about equivalent to driving a car 1300 miles I would, in good conscience, have to switch to a manual mower.

I put it together and tackled my front and back lawns. With about 2 weeks of growth I had to set the mower at it’s tallest cut level for the first pass and then drop it down a bit lower for pass two.

The nice surprise was that it was easier than I thought it would be.

Tweets on 2008-05-24 0

  • Todo today: Buy a lawn mower, pick up friends at the airport, code, rock out! #
  • @jeresig - I can trade you for the $6 US I have in coins. :) #
  • @mrtibbs - I need something to keep up with @dpp #
  • I actually enjoy reading other people’s code. #
  • Frigging construction made the airport pick last 3 hours. No lawnmover for me, all the stores are closed. #

Powered by Twitter Tools.

Keeping a git fork in sync with the forked repo. 0

I forked http://github.com/dpp/lift/tree/master to http://github.com/tjweir/lift/tree/master and I want to keep in sync with the update to dpp/lift. This is how I do it.

In my repo add a remote reference to dpp/lift:
$ git remote add dppmaster git://github.com/dpp/lift.git

Fetch
$ git fetch dppmaster

This will create a branch, so then you just have to merge back:
$ git checkout master
$ git merge dppmaster/master

Commit those new changes:
$ git commit -a -m "Sync to fork master"

Tweets on 2008-05-23 0

  • Baby let’s fork! Fork lift.git. Sexy. #
  • The armchair Twitterbacks must be annoying. #
  • Just turned off Compiz completely… I had guessed that it would just become annoying and I was right. #
  • @dpp - I agree, github is awesometown #
  • @twleung - github has hooks to a bunch of other webapps, twitter is one of them. Pretty sweet. #
  • LazyTwitter: What twitter client should I use on Linux? gTwitter? #
  • I think it’s fair to say that I eat too many Bold BBQ Doritos. #
  • This may just be me, but I snicker when I type “mvn jetty:ruin” instead of “mvn jetty:run.” Anyone? No? #
  • @toomasr - thanks, that’s what I’m using now… It appears that dedicated clients are more reliable, so I was looking around. #

Powered by Twitter Tools.

Iron Man - finally. 3

We’re finally going to see IronMan tonight.

Tweets on 2008-05-22 0

  • May 20 and I have a toque on - not right. #
  • I made coffee that tastes like death. Not a bad way to start the day. #
  • @jorgeortiz85 - Got notes from that dpp talk? #
  • So git is super fast… it appears faster than “cp” even. I don’t know how that works, but I’ll take it. #
  • @toomasr - but it appears you have power. :) #
  • @ekabanov - I hope @toomasr is still in shape from the military then :) #
  • @toomasr - good luck spreading the JR love. #
  • just loved Young Jeezy & Bun B. - Over Here (Ratatat Remix) http://hypem.com/track/552923 #
  • Go go MappedDouble* - * sung to SpeedRacer theme. #
  • @ekabanov - you talk to him slowly… to annoy him. #
  • just loved Handsome Furs - Dead + Rural http://hypem.com/track/555231 #
  • just loved Handsome Furs - Dumb Animals http://hypem.com/track/555230 #
  • just loved Handsome Furs - What We Had http://hypem.com/track/555229 #
  • just loved The Black Keys - Modern Times http://hypem.com/track/540708 #

Powered by Twitter Tools.

Tweets on 2008-05-21 1

  • installing a 256 color aware terminal for os x… #
  • @dpp - Sometimes I wish I lived in San Fran. :) #
  • Working on MappedDouble, or should I call it MappedTrouble! No? ok. #
  • Further testing on MappedDouble points to me not being a buffoon, so that’s a good thing. #
  • Has anyone bought the Penny Arcade game yet? Opinion? #

Powered by Twitter Tools.

Tweets on 2008-05-20 0

  • I would say I’m currently knee-deep in web services. Earlier it was about waist deep. #
  • To increase your Karma follow this rule: If you finish the coffee, make more coffee. #
  • My internal lift app has many more users and many cool features in the pipe. Does anyone know how to stop time? #

Powered by Twitter Tools.

Tweets on 2008-05-19 0

  • @rontibbs - http://es.cohesiveft.com/ #
  • @rontibbs - Like the virtual machine dave was going to build for you. #
  • Pushed out a new version of a webapp. That feels good. #
  • Sweet Canadian holiday… #
  • @ev - it’s 9*C in Toronto, we didn’t take your summer :) #
  • Happily realizing that things are less complicated than I am making them. Being a n00b… #
  • @mrtibbs - bye Ron *waves* #
  • coding lift apps all day so far, minus a run for tea. An excellent way to spend a holiday. #

Powered by Twitter Tools.

victoria day 0

From here, you realize that the kind of fireworks you buy at the variety store, they’re really not all that impressive.  They float up to about 4 or 5 storeys before they pop or fizzle out.  7, if you’re lucky.  I’m on the 9th floor, so I can kind of gauge how high these things are getting.

But, when you put them all together, the effect is pretty interesting.  I wonder if all those people down there realize what this looks like from here.  I wonder if they realize that there are hundreds of other people shooting off $4 fireworks, all looking up at their little star, hoping that theirs will break out past the canopy of roofs that sprawl out as far as the eye can see.

For a moment, I can’t tell the difference between the lights in apartment windows and the planes flying by and the flashing of turn signals and the exploding balls of phosphorus.  It all kind of melts into a sparkly horizon.

Tweets on 2008-05-18 0

  • Incorrectly moving a repo from svn to git. I’ll call it a learning experience, not a mistake :) #
  • Building server images… I don’t know what I’m doing. #

Powered by Twitter Tools.

Tweets on 2008-05-17 0

  • About to head down and see Toronto FC take on Columbus Crew. I’m glad the weather broke. #

Powered by Twitter Tools.

Tweets on 2008-05-16 0

  • Dear TimeMachine, thank you for saving a copy of a old src tree that I deleted. That was really helpful. Thanks, #
  • @mrtibbs - thanks, pullups were slow because I didn’t want to rip up my hands… again. #
  • @DavidAuyeung - no problem. #
  • Rereading the MapReduce paper from Google. #
  • @mrtibbs - a big fun dog or clothes? You choose. :) #
  • @twleung - I have a dropbox invite. #
  • @twleung - 10 in fact :) #
  • @ShawnY - that’s because no one is using it. #

Powered by Twitter Tools.

Liftweb + ctags + vim 0

[Updated: 2008/12/10]

This is how I set up /Lift/, ctags, and vim (on OS X and Ubuntu):

Add some scala definition to ctags:

ty@Astra:~$ cat /home/ty/.ctags
--langdef=scala
--langmap=scala:.scala
--regex-scala=/^[ \t]*class[ \t]+([a-zA-Z0-9_]+)/\1/c,classes/
--regex-scala=/^[ \t]*trait[ \t]+([a-zA-Z0-9_]+)/\1/t,traits/
--regex-scala=/^[ \t]*type[ \t]+([a-zA-Z0-9_]+)/\1/T,types/
--regex-scala=/^[ \t]*def[ \t]+([a-zA-Z0-9_\?]+)/\1/m,methods/
--regex-scala=/^[ \t]*val[ \t]+([a-zA-Z0-9_]+)/\1/C,constants/
--regex-scala=/^[ \t]*var[ \t]+([a-zA-Z0-9_]+)/\1/l,local variables/
--regex-scala=/^[ \t]*package[ \t]+([a-zA-Z0-9_.]+)/\1/p,packages/
--regex-scala=/^[ \t]*case class[ \t]+([a-zA-Z0-9_]+)/\1/c,case classes/
--regex-scala=/^[ \t]*final case class[ \t]+([a-zA-Z0-9_]+)/\1/c,case classes/
--regex-scala=/^[ \t]*object[ \t]+([a-zA-Z0-9_]+)/\1/o,objects/
--regex-scala=/^[ \t]*private def[ \t]+([a-zA-Z0-9_]+)/\1/pd,defs/

Build the tags file:

ty@Astra:~$ /opt/local/bin/ctags -h ".scala" -R --exclude=*.js -f liftags /Users/tjweir/g/clean/liftweb/

I prefer to keep the tags file, in this case liftags, in the root of home. Put it where you want.

Add the tags location to ~/.vimrc

set tags=/home/ty/liftags

Now you can open a file and execute

:tag LiftSession

and jump to the file.

« Previous PageNext Page »