stl page 4 - Dave's Blog

Search
My timeline on Mastodon

Theme Options

2007 Dec 24, 12:41These days it seems like there's a social sharing website for everything representable as bits. Like Scribd for (mostly legal) documents, SciVee for scientific research videos, Wordie for words, and Kuler for color themes. Kuler seems like a ridiculous website (overkill) but I had been meaning to update my homepage's color design and Kuler has an RSS based REST API. The API lets you obtain things like the most recently added color themes or the most popular or all themes containing the color dark red, etc... So of course rather than update my website's design I hooked up my css to the color themes coming out of Kuler. Select my main page's color theme from a list of random Kuler themes. As I'm sure the regular readers can guess I use an xslt and blah blah blah... It looks OK with Silver Surfer and Happy Hipo but in general changing the colors this way doesn't produce something pretty.

When reading about Kuler I found that they may have stolen the whole idea wholeslae from ColourLovers. They discuss the thievery in an article on their blog. I would have switched over to ColourLovers out of principle but they don't have an easily accessible API.PermalinkCommentscolourlovers color xslt theme homepage technical kuler design

alecm.com - The Sci-Fi Cliche List

2007 Nov 26, 1:59Sci-Fi cliche list. Mostly ST stuff here.PermalinkCommentshumor scifi startrek reference

Dismantling the Media With the BBC's News Director, Richard Sambrook (Epicenter from Wired.com)

2007 Nov 7, 1:40Interview with BBC's News Director Richard Sambrook mostly on the topic of news medias role on the Internet.PermalinkCommentsdavid-weinberger blog bbc interview news media richard-sambrook wired audio

Backup Notes

2007 Jul 13, 8:30I bought an external backup drive a few weekends ago. I've previously setup a Subversion repository so I decided to move everything into the repository and then back it up. So in went the contents of all of my %USERPROFILE% and ~ directories with a bit of sorting and pruning. Not too much though given its much easier to dump in everything and search for what I want then to take the time to examine and grade each file. What follows are the notes I took while setting this up. It takes me a bit of time to look up the help on each command so I figure I'll write it all down here for the benefit of myself and potentially others...

Setting Up the Backup Drive For Linux
I first changed the filesystem on the drive to ext3. I plugged it into my USB2.0 port and ran fdisk:

sudo fdisk /dev/sda

Useful commands I used to do this follow mostly in order:
m
help
p
print current partitions
d
delete current partition
n
create new partition (I used the defaults)
w
write changes and exit
Then I formatted for ext3.

sudo mkfs.ext3 /dev/sda1

I made it easy to mount:

sudo vim /etc/fstab
# added line to end:
/dev/sda1 /media/backup ext3 rw,user,noauto 0 0

I setup the directory structure on the disk

mount /media/backup
sudo mkdir /media/backup/users
sudo mkdir /media/backup/users/dave
sudo chown dave:dave /media/backup/users/dave


After all that its easy to make a copy of the Subversion repository:

mount /media/backup
cp -Rv /home/dave/svn /media/backup/users/dave/
umount /media/backup

Next on the agenda is to add a cron job to do this regularly.

Subversion Command Reference
On a machine that has local access to the Subversion repository you can check out a specific subdirectory as follows using the file scheme:

svn co file:///home/dave/svn/trunk/web/dave%40deletethis.net/public_html

Note also that although one of my directories is named 'dave@deletethis.net' Subversion requires the '@' to be percent-encoded.
Other useful subversion commands:
svn help
help
svn list file:///home/dave/svn/
list all files in root dir of svn depot
svn list -R file:///home/dave/svn/
list all files in svn depot
svn list -R file:///home/dave/svn/ | grep \/$
list all directories
svn status
List status of all files in the working copy directory as in - modified, not in repository, etc
svn update
Brings the working copy up to date wrt the repository
svn commit
Commit changes from the working copy to the repository
svn add / move / delete
Perform the specified action -- occurs immediately


Setting up Windows Client for Auto Auth into SVN
When using an SVN client on Windows via svn+ssh its useful to have the Windows automatically generate connections to the SVN server. I use putty on my Windows machines so I read the directions on using public keys with putty.

putty.exe dave@deletethis.net
cd .ssh
vim authorized_keys # leave the putty window open for now
puttygen.exe
Click the 'generate' button
Move the mouse around until finished
Copy text in 'Public key for pasting into OpenSSH authorized_keys file:' to putty window & save & close putty window
Enter Key passphrase & Comment in puttygen
Save the private key somewhere private
pageant.exe
'Add Key' the private key just saved.



Checking out using Tortoise SVN
On one of my Windows machines I've already installed Tortoise SVN. Checking out from my SVN repository was really easy. I just right clicked in Explorer in a directory and selected "SVN Checkout...". Then in the following dialog I entered the svn URI:

svn+ssh://dave@deletethis.net/home/dave/svn/trunk/web/dave%40deletethis.net/public_html/

Note again that the '@' that is part of the directory name is percent-encoded as '%40' while the '@' in the userinfo is not.

Windows Command Line Check Out
On my media center I didn't want to install Tortoise SVN so rather I used the command line tool. I setup pageant like before the only difficulty was getting the SVN command line tool to use putty. With the default configuration you can use the SVN_SSH environment variable to point at a compliant SSH command line tool. The trick is that its interpreted as a backslash escaped string. So I set mine thusly:

set SVN_SSH=C:\\users\\dave\\bin\\putty\\plink.exe

The escaping solved the vague error I received about not being able to create the tunnel.PermalinkCommentsbackup technical personal windows svn linux subversion

Trivia

2007 Apr 21, 11:38This previous Wednesday, I went to trivia at the Wilde Rover. Our team consisted of Sarah, myself, Jane, Eric, Rachel, and Ansen. Before the last round we were 16th (out of ~32) but after the final round we were 6th! The previous time Sarah played there the exact same thing happened. Of course you must be in the top five to win money (or last place who gets their money back). You could say, of those who didn't get any money we did the best! I didn't contribute too much except for spotting a street from Paris in the picture round and knowing which generation the Wii is of Nintendo home consoles. Mostly I focused on increasing our bill =)PermalinkCommentsbar game personal trivia nontechnical

thinglink blog

2007 Apr 2, 11:48Thinglink lets you create data on their website (photo and description) for objects and gives your object an identifier. The objects on the site are mostly physical objects but that doesn't seem to be a requirement.PermalinkCommentsblog tagging social information metadata thinglink

Mike's C++ Tips

2006 Mar 21, 7:24PermalinkCommentsc++ blog mike mike-laiosa development stl software

Index: The Standard Template Library

2005 Apr 22, 12:45PermalinkCommentsreference stl development

Post-School Plans

2004 Apr 22, 3:52I actually have something to say which I thought would be appropriate for the LiveJournal format. Why I haven't posted to the LiveJournal for such a great length of time can be saved for later. I spent Easter weekend and the Monday following, in Washington, the state. Microsoft paid for me to fly up and stay in Washington so I could do the technical portion of the interview with them. I hung out with my friend Jeannie and she showed me all around Seattle on Saturday and Sunday. Each night we had somewhat expensive dinners, all paid for by Microsoft. It was cool. On Sunday I stayed at a nice hotel in Redmond and the next morning I spent just short of eight hours being interviewed by five different people from different groups within Microsoft. Each sub interview consisted of two portions. First there was the general portion where they would ask me why I wanted to work there, ask about my previous experience, and those sort of non technical questions. The second portion would take the majority of the time and it would be me trying to solve some technical problem they'd present. By the end of the interview my hands were gray with dry erase marker ink because apparently everybody's got a whiteboard and they all want me to write code on them. I have to go to class soon and I might post some more stories related to this trip, but mostly I wanted to say that last week I received a great offer from them and I'll probably be moving up to Washington sometime (weeks or months?) after graduation. Also, I've changed my AIM name from SequelGuy to SequelDave. My email address will also have to change soon, but I don't know to what it will change.PermalinkComments
Older EntriesNewer Entries Creative Commons License Some rights reserved.