Sunday, 26 November 2006

Subversion on a shared host

I finally got some hosting (bluehost specifically) going for some pet projects of my own. At this point I'm planning to wipe my linux box which has my CVS repository on it, so I thought that I would try out installing subversion on my hosted space. My goal was to be able to access subversion through an eclipse derivative: radrails.

Sorry for all the keywords, but I'm hoping that this will get picked up by google and save someone else a bunch of time. This is an account of what I did to get it working, and some steps may seem obvious to others, but I am a newbie to svn. This was only for me to get access, so tunnelling over ssh was my perfered choice.

1) I followed Matt Harvard's post on HowTo: Install Subversion on a Shared Host Install Subversion on a Shared Host. That was great, but at the end I was like "what now??".

2) Create a repo location: svnadmin create /path/to/repos.

3) While logged in over ssh to your host, run the command:
svn list svn+ssh://youraccount@yourdotcom/home/youraccount/path/to/svn/
It should prompt you for your password. ref

4) I got:
bash: line 1: svnserve: command not found
svn: Connection closed unexpectedly

which means that since the make install that I did in Matt's instructions installed subversion in ~/bin/. When you use the svn then you are not using an "interactive shell", so the path isn't set as it is when you log in. There is a couple of ways around it. Some people put a soft link in their home to the svnserve file, but I decided to just edit the ~/.bashrc file by adding PATH=$PATH:~/bin. Now if you re-run the snv list ... command from step 3, it should work.

5) Then using the subversion book as my guide, I modified config files to allow my user to have read write access.
$REPO_LOCATION/config/authz
[/]
youraccount = rw

This means for the root of the repo, my account has read write access.

$REPO_LOCATION/config/passwd
[users]
youraccount = mysecret

I just gave it a different crappy password since you will authincate against ssh.

$REPO_LOCATION/config/svnserve.conf
[general]
auth-access = write
password-db = passwd
authz-db = authz

This gives autherized people write access, shows where the password and authorization files are located. After the install the files created here have lots of comments explaining what you have to do. You pretty much just have to uncomment lines.

6) Whew. Now We're done setting up svn on the host. However, if you try and connect to svn with svn+ssh://youraccount@yourdotcom/home/youraccount/path/to/svn/ you will get:
The system cannot find the file specified.
svn: Can't create tunnel: The system cannot find the file specified.


Not so good, but fixable. I found a great post on the subclipse mailing list. It's two problems: eclipse not having a ssh program to connect with, and needing a public / private key to make connecting so much easier.

After finding all this, everything was good. ;-)
HTH

Saturday, 25 November 2006

James Bond - Casino Royale

Went out for a date last night and saw bond. Really good, I'd recomend you go out and see it.

A co-worker suggested I see it and said "oh, you won't like the CENSORED sceen". Ya, not too impressed that I was waiting for that sceen. I prefer to not actually know anything about the movies that I see. *sigh* Can't have everything I guess.

I think that with this movie they fixed a lot of the stuff that I was getting tired with, as well as made fun of themselves. Pretty refreshing. Go see it. ;-)

Monday, 20 November 2006

Fishy card trick

If you've got a couple of minutes, check out this fishy card trick.

Sunday, 19 November 2006

No Wii for Mii

Went to Walmart just as they opened the store... apparently you needed to get a ticket for the consoles that they had. No one said anything. Then we went to BestBuy and they had a sign out front saying that they had 81 consoles, tickets started to be given out at 6am. There was about 50 people ahead of us so I had hope.

We got there about 7:20 ish and waited. I heard rumors that all the tickets were gone, but I stayed. It had nothing to do with Laura going back to pick up a winter jacket 'cause I didn't bring a warm enough coat and I had no way to go home. At about 7:55 a guy from came out and confirmed that all tickets were gone, but we were able to stay around in case "anyone's cards didn't go through". So we left.

The thing that bothers me is the people in line talking about how they are just going to flip it on ebay or something. People looking to make a profit are driving up the damand. It's cyclic.

Oh well. I'll just have to wait a couple of weeks I guess. Hot chocolate makes everything better. ;-)

Friday, 17 November 2006

Wii are getting close

I'm actually really looking forward to the Wii coming out. I'm not hard core enough to camp out, but I think that I'm going to set the alarm for early on Sunday to go out and get one. My 2 options are the BestBuy and the hidden Walmart. Laura called for me (what a sweetheart!) and asked and both stores said they will have "about 50". I'm still not sure how fast those are going to fly off the shelves, but here's hoping that I'll be able to pick one up.

At this point I think that I'll just pick up Rayman and an extra controller. At some other point I might pick up a classic controller and a star wars game. I'm a sucker for the star wars games... and when they come out with one for the Wii (I'm sure that they will), that will be added to my collection if it's up to the usual quality of LucasArts.

Tuesday, 14 November 2006

Phone dancing

I gotta say that phone dancing is one of the most beautiful events that I have seen in a while. Phone dancing for Vancouver 2010!!

Monday, 13 November 2006

Smokin'!

Word from the wise, when steaming veggies, ensure that the pot still has water in it if boiling for a long time. Otherwise you have smoked veggies... not so good. :-(

Sunday, 12 November 2006

Where have I been, #1

As time goes on I trust less and less to my memory. One thing that I use this blog for is to have a nice central place for the stuff I want to remember. I figured that I would compile a short list of where I've travelled to in my life. I might be updating the list with places I forgot. If anyone's got any questions about anything I'll do my best to answer.

Places of interest in Canada (that I didn't live in long term):
Niagara Falls
Montreal (lived there for 4 months)
Quebec City
(Ottawa and Toronto don't count)

Age 6:
Disney World - don't remember tons about this trip but it was fun.

Age 15(??), family cruse to caribbean:
Aruba
Saint Lucia
CuraƁao
Barbados
Grenada
Margarita Island

Age 18, high school grad trip:
Cuba, a Cayo Coco resort.

Age 24, Europe trip with Laura to France, Spain and Portugal:
Paris
Barcelona
Madrid
Seville aka Sevilla
Lisbon
Porto
…vora
Faro
Donostia-San Sebasti·n
Bordeaux and then a side trip to Saint-…milion

Christmas Cruse 2005:
Miami
Grand Cayman (go Stingray City!)
Costa Maya, Mexico

Update: For our upcoming trip, here are the places we're planning on going. ;-)
Fort Lauderdale, Florida
San Juan, Puerto Rico
Philipsburg, St. Maarten
St. Johns, Antigua
Charlotte Amalie, St. Thomas
Nassau, Bahamas

Thursday, 9 November 2006

Bus theory

Ya, I know that I have not been blogging in a while. I keep on thinking up "great posts", but by the time I sit down at a computer to put fingers to keyboard I just don't have the energy. Meh. Okay, on to the post...

I've got a theory about what OC transpo has been telling their drivers lately: the drivers that make the most riders ill in the next couple of months gets a christmas bonus. All the drivers seem lately to be either 100% on the gas or 100% on the breaks. I've got a short bus ride (hung up the bike for the winter), and I feel like I'm going to puke by the time that I get to work / home.

My alternative theory is that since they are tracking all buses by GPS they are keeping a closer tab on drivers staying on schedule. Either way, I've got to be careful not to toss my cookies. :-/