RSS

New site

Finally got this thing setup.  Took a week to purchase hosting, get my content imported, get stuff installed etc.  Up and running with backups, stats, feeds, etc.  The process has been fun.  I hope to get back to my series on bzr shortly.  I’ll be writing about repositories, uses of push/pull, and possibly start on the smart server.  Topics I plan on covering over the comming weeks(?):

  • Permissions
  • Smartserver
  • Web service (like loggerhead)
  • Migrating a large cvs repository

If you can think of anything else you’d like me to hit, let me know.

Bazaar Part 2: Branching

After part 1, we know how to create, checkout, and modify a single copy of code. It’s almost no different from CVS from a normal user’s standpoint. Add, checkout, commit, status, diff, etc. all do pretty much what they do in CVS. When dealing with a team of developers this can be a good thing, as the time spent learning the basics of the new VCS is minimized. Anyway, on to the point of this post, branching.

As I said in part one I still like the idea of a central branch, a “HEAD” if you will. I think there is also a need for “official” branches. Things like maintenance branches for each release/patch should be managed. However, I think users should be free to create their own branches for features as needed. In this post I’m going to take a look at how bazaar handles branches.

Creating a branch is very simple, you just issue the bzr branch command

[andrew karma] /Users/andrew/Development/BZR
>>>>>> bzr branch myProject myProject.branch1
Branched 2 revision(s).

[andrew karma] /Users/andrew/Development/BZR
>>>>>> ls
total 0
0 myProject/ 0 myProject.branch1/

As you can see, the branch operation created a new directory, myProject.branch1. Again, this would work with local files, remote files (via SFTP, or other protocol) as described in the documentation. Lets take a look at what myProject.branch1 is.

more »

Bazaar Part 1: Basics

Ok, this is going to be nothing new for those of you who have gone through the 5 minute tutorial on the bzr website. I’m going through it again here, so the rest of this follows. First, I created a directory like this:

% ls -R myProject
0 myDir/ 8 test1.txt 8 test2.txt 8 test3.txt
myProject/myDir:
total 0
0 test4.txt

All of the .txt files have the line “Initial Content” in them. Once this was setup, I did the following:

put myProject under management.

[andrew karma] /Users/andrew/Development/BZR/myProject
>>>>>> bzr init
Created a standalone tree (format: pack-0.92)

add the files in myProject to bzr

[andrew karma] /Users/andrew/Development/BZR/myProject
>>>>>> bzr add
adding myDir
adding test1.txt
adding test2.txt
adding test3.txt
adding myDir/test4.txt

finally, commit

[andrew karma] /Users/andrew/Development/BZR/myProject
>>>>>> bzr commit -m “First Commit”
Committing to: /Users/andrew/Development/BZR/myProject/
added myDir
added test1.txt
added test2.txt
added test3.txt
added myDir/test4.txt
Committed revision 1.

more »

Getting started with bazaar

First, some background. I work in a fast paced development shop, with a team of very talented engineers. We are currently using CVS to manage our codebase. In the not too distant past, we were actively working on as many as four different branches. Keeping code appropriately syncronized between the various branches was exceedingly difficult. I’ve been working on a little coding in my spare time, and figured now was as good a time as any to educate myself on some of the newer version control systems. I started playing around with GIT, and didn’t really see a clear line towards what I want to accomplish. Bazaar seemed to be explicitly designed to handle several different workflows. Also, it is more similar to CVS than GIT, which can be both good and bad, but things worked a little more like I expected them to with bazaar. Anyway, what do I want to do with version control?

In short I think I’d like to see a main branch, what CVS likes to call HEAD. Several release branches for maintenance, and any number of feature branches. I envision HEAD, and the release branches to be “officially” managed, while developers are more or less free to branch for features as they need to. What this requires, is some sane way to ensure that code reaches HEAD/the appropriate maintenance branch when it’s needed. With as little hell as possible. Merging branches in CVS is an f’ing nightmare.

So, given that I like what I’ve seen from bazaar so far, and a very loose idea of where I want to get, I’m going to start seeing how well bazaar fits. I’ll post what I find.

New camera

IMG_0316.CR2
Wow, it’s been a while since I’ve posted anything. Anyway. . . . I got a new camera. My waterproof olympus died. The metal bit that slides over the lense stopped moving. We used the camera a ton in and out of water, so it didn’t really owe us anything. I wished it would have lasted a bit longer, but it’s not that big of a deal.

I struggled for a while trying to figure out whether or not to go with a point and shoot or a full out SLR. I really want an SLR, but I really don’t want to carry one. A good friend of mine suggested I look at the Canon G9. I was skeptical, but figured I could take the camera back if I wasn’t thrilled with it.

I gotta say, I’m really impressed with the thing. It’s not an SLR (and I still kinda want one) but it can take some pretty fantastic pictures. The reviews say it starts to get noisey over ISO400, and they’re right. The lowlight perf is not great (better than my olympus, but not as good as an SLR with a good lense). Overall I’m thrilled with the thing. I’ve started to take pictures for the sake of taking pictures which is something I haven’t done since early college. I’ve been having a blast with it.

I’ve also been playing around with flickr a ton recently as well. I found out about groups and joined one for the G9. They’ve been really helpful and have given me some decent feedback about my shots. One of the better online “communities” I’ve run across since my time playing counterstrike.

Plants…


Work let us out early today so we could start the holiday weekend early. WOOT!

My daughter and I got our plants put out on the deck while mom went to costco. It was a beautiful day and it was great to spend some time with the kid. Looking forward to a nice long weekend.

We now have some catnip, some flowers, mint, basil, rosemary, thyme, and a cucumber that we planted. I’m not sure that the cucumber will really amount to anything but we’ll see. My parents and my wife also planted some flowers in the front yard. After 4 years our house is finally starting to look respectable. :)

Crazy week. . . .

This is going to be an incredibly inane post.

My inlaws got back into town, so we had a dinner at their place. Got back, and our dishwasher was stuck in “make everything really f’ing hot mode.” Realizing the thing was probably 20 years old we decided to get a new one. I was stuck at work late dealing with some last minute bug, so my wife drug our daughter out to Sears to get the dishwasher. The next day the dishwasher installer showed up 10 minutes after my parents showed up at the house. The influx of insanity must have been challenging. It was great to have the dishwasher the next day, it was great to have my parents over. It was a bit of a circus though (a fun one, but a circus none the less).

My daughter has been so off schedule this week she barely knows which end is up. Fortunately she’s a great kid and deals with this insanity surprising well considering she’s only 18 months old.

I did get the latest Hillegass book so I’ll have something to work through for learning cocoa and objective c. Should be fun. Anyway, I’m incredibly happy that this is a long weekend coming up.

Nice weekend and some productivity.


First of all, saturday was a beautiful day. I was expecting cool and overcast, instead I got warmish and sunny. I took our daughter to the aquarium to get my wife a break. We had a great time, Liz spent 30 minutes or so just staring at the dolphins. I really recommend a membership. Treat going as something you can just do on the spur of the moment rather than “An Educational Trip To the Museum” that must be carefully planned. Go, walk around for an hour (or however long your kid wants to), grab some lunch, take the long way back to the car, or whatever.

On other fronts, I ran across a few links on doing some firefox plugin work. I haven’t really spent a ton of with ‘em but I think they’ll be neat to read through. I’ll be adding stuff to delicious, so get the links from there. I’ll post up any experiences I have while diving into that stuff. Same with anything I end up doing with Ruby/Objective C. I’m mulling over what I want to write, not really sure yet. Have some ideas floating around, but I think I’m going to lean more towards something not so much work related. Finding the time to do this stuff is going to be a challenge. Mostly because any downtime I get I usually spend doing other stuff (games, reading, etc). Anyway, that’s enough for now. . . .

need to code more. . . .

I need to spend more time learning/creating new things. I need to spend less time playing games. I really enjoy games, and I don’t really see it as time wasted, however, I’d like to get back to really enjoying writing code, and creating things. I’m torn between doing something in rails or learning how to write stuff for the iPhone. I don’t know C particularly well (been years since I had to seriously write any) and learning Objective C seems interesting. However, I know the web space much better, so rails seems more attainable.

I guess it’s a good problem to have. I’ve really been enjoying writing here, even if no one is reading. :) Off to Liberty City. . . .

The Election. . .

I’ll get this out of the way up front. I voted for Ron Paul in the republican primary. I tend to be pretty liberal socially, and fairly conservative economically. Make your judgements, etc. I don’t really care that much. (though if you want to rationally discuss any of this, I’m game. I love civil discourse about politics)

Anyway. . . .

At this point, I really hope Obama wins the nomination. He is the only one of the major party candidates that I wouldn’t absolutely despise voting for. He’s the only candidate who voted against the war, though I’m not entirely convinced it wasn’t a hedge so he could say “I voted against the war” during the primaries. Other positions he has just makes me scratch my head.

I want him to win because I think he is FAR better than the other two major party choices, but he is not someone I actually “want” to be president. I follow Dave Winer on twitter and it seems like every other post from him is some form of “Obama is teh awsome.” I’d say “Obama is better than the rest of the pile of suck” but far from awsome. (I do appreciate the articles that Dave posts, I f ind many of them interesting lunchtime reading)