Archive for April, 2007

How to use Bazaar and Launchpad for Hosting your Code

Wednesday, April 25th, 2007

I recently put some code up onto Launchpad (a superb software development tool from Canonical Limited), but it wasn’t immediately apparent to me how to do it. I found tips on a few different websites, but thought I’d bring it all together here for convenience.

First of all you’ll need a launchpad account. Go create one.

Now you require an SSH key. This is so you can prove to launchpad/bazaar that you are who you say you are. If you don’t already have one, here’s how to make one.

ssh-keygen -t dsa

You will now be asked for a secret password. Choose one and press enter. Your key has now been generated. You can see it by typing

nano ~/.ssh/id_dsa.pub

Go to your launchpad profile now, and copy/paste the text from the file you opened in the section above, into the section marked Update SSH Keys. That’s that bit done.

Now you need to introduce yourself to bazaar.

bzr whoami 'Your Name email@example.com'

To create a bazaar branch on your computer, navigate to the folder that contains you code, and type the following.

bzr init

You now need to tell bazaar which files or folders within the branch you want to record changes to. For this example we have a branch folder called ‘test’, which contains the files ‘hello.php’, ‘install.txt’ and a sub folder called ’stuff’.

bzr status

would return

unknown:
hello.php
install.txt
stuff/

You need to tell bazaar which files and folders you want to add to the system. You can do this by issuing the command:

bzr add

This will add all of the files and folders in the current directory recursively.

You can also add files and folders individually.

bzr add hello.php
bzr add install.txt
bzr add stuff

If ’stuff’ contained any files, those files would be added too.

To remove a file (in this instance ‘install.txt’) you can either delete them the folder on your computer, or run

bzr remove install.txt

When you have your code in a state that you want to upload then you need to run the commit command. This creates a revision and allows you to add a message regarding the changes you’ve made.

bzr commit -m "added my first file"

You can also selectively commit specific files.

bzr commit -m "added GPL licence info" install.txt

Now that you’ve finished editing your code and getting it ready on your local computer, you’ll want to upload it to launchpad.

bzr push sftp://UserName@bazaar.launchpad.net/~UsernameOrTeamName/Project/Branch

To break down that url a little more, UserName is your Launchpad username, after the ~ you can then include either your launchpad username or a teamname, project is the name of the project in the launchpad url and branch is what you would like to call the branch.

Note that the project must be created in launchpad before you can publish to it. If you don’t want to publish to a particular project, you can push to the +junk project instead (Thanks Dean).

So in practice.

bzr push sftp://uberperson@bazaar.launchpad.net/~uber-dev-team/ubuntu/development

would create a branch called ‘development’ in the ‘ubuntu’ project which can be edited by anyone in ‘uber-dev-team’. The person who created this upload would have the username ‘uberperson’ on launchpad.

Give it a couple of minutes, and you should be able to see your files go live on the launchpad site.

That’s about it. If I’ve made any mistakes or anything seems misleading, please add a comment so I can fix it ;-)

Helpful links:

Full Bazaar Tutorial

As suggested by Dean in the article comments, this has also been added to the Ubuntu wiki here.

Microsoft Can’t Pay Bollywood Enough Money to Use Windows

Wednesday, April 25th, 2007

Sunidhi Chauhan is a Bollywood playback singer. She was employed by Microsoft India to sing a song about Windows Vista - The Wow is Now! You can listen to it here or here.

So what you may say? Well its another example of Microsoft marketing over function. Take a look at Sunidhi’s website. If you run it through the netcraft uptime tool you’ll see its hosted on Linux.

Hmmm seems like even paid employees of MS prefer Linux :-P

Say Hello to Henry and George

Monday, April 23rd, 2007

I don’t usually post much personal stuff but these two are cute! Henry and George are the newest editions to my household!

Henry and George

Getting Your Digital Photos Printed Online

Sunday, April 22nd, 2007

Recently I noticed that I’ve been amassing photos on my flickr account and not really doing anything with them. Its all very well to chronicle my sons growth from a baby into a little boy - but no fun if I can’t show the piccies to non-computer-using Gran.

I’d had a look around, but couldn’t find any photo printers by recommendation so I decided to give one a go and report my findings. The only requirements being that the uploading tool/website had to work with Linux, and the printing had to be consistently inexpensive.

Enter online photo printing company Pixdiscount. They’re based in Europe (France) and cheap as chips so I thought I’d give them a try.

First of all I was impressed by the fact their browser based uploading tool worked on linux without issues. I had visited a couple of other sites first which required the download of a Windows only app, or employed dodgy activex stuff or poorly written java that wouldn’t work.

The order was entered into the Pixdiscount site early hours of Mon Apr 9th with promises of my order being processed within 4 working days (although this actually refers only to the pictures being printed, the time taken for delivery with be longer).

The order was split into two sections:

1 of 18″ X 12″ poster at £5.50 plus delivery at £2.99:
Total £8.49

6 of 6″ x 4″ prints at £0.01 ea 24 of 6″ x 4.5″ prints at £0.08 ea (which was refunded due to this being a first order) plus delivery at £1.49 and a photo index at £0.69:
Total at £2.24

Jolly cheap I’m sure you’d agree!

Friday 13th (oooh er missus…), 5 days after placing the order, my 18″ X 12″ poster was delivered by Parcel Force.

Packaged in a strong cardboard box it arrived unscathed and unmarked. Quality was absolutely great, the poster was printed on good quality Kodak paper and the colour reproduction was spot on. Absolutely no complaints there.

For the price, I can highly recommend this option if you need a photo blowing up to poster size. Mounted in a glass frame, my new picture of my little boy will look great in my home.

Thursday 19th April - Smaller standard sized photos arrived. Again, well packaged and printed on quality Fuji paper.

All in all, it looks like PixDiscount provides a reasonable service at a rather cheap cost. Delivery of the smaller photos could have happened a little quicker, but given the inexpensive cost, I was happy to wait.

Oh, and just as a bootnote. Those crappy phone camera pictures you thought you’d never do anything with. At this price, get them printed on photo paper (There where a few phone camera shots amongst the small photos I had done). You’ll be surprised but they look better on paper than on screen (about the same quality as a dodgy disposable camera) and some are worth salvaging for the photo album.

Microsoft Complains about Google, DoubleClick Monopoly

Tuesday, April 17th, 2007

I had to chuckle when I read this article on The Register.

“Microsoft is calling for regulator action to stop Google and DoubleClick merging, saying the deal would be anti-competitive if it went through.”

Oh the irony……

Life on Mars - Spin off Series

Wednesday, April 11th, 2007

If you - like me felt slightly sad after the last episode of the excellent ‘Life on Mars’ TV series, you’ll no doubt be interested to hear that the BBC has commissioned a spin off series named ‘Ashes to Ashes’.

Set in 1981, Ashes to Ashes brings back the popular character DCI Gene Hunt along with sidekicks Ray Carling and Chris Skelton and pits them against the ‘Southern Nancies’ of London (Hunt’s words not mine!).

life on mars

A new character - sexy female cop DCI Alex Drake is thrown into the mix after being involved in a horrific accident in 2008. Hmmm sounds familiar…..

I’m not sure how well this part of the story will work out. DCI Drake is supposed to have knowledge of Hunt et al from notes which Sam wrote when he ‘awoke’ in the ‘real’ world….

Anyway, filming on Ashes to Ashes begins soon and you can read more here.

Vista Sales Disappointing Despite Microsoft Spin

Sunday, April 1st, 2007

Microsoft is touting Vista as the best-selling version of WIndows ever.

MS point towards 17 million copies of Windows XP sold in the first two months of 2002 (its consumer release date), against 20 million copies of Vista in the first month of its release to support these claims.

When taken at face value the figures may seem to prove MS’s point but as Ars Technica demonstrate MS couldn’t be further from the truth.

“Still, even assuming a dropoff in sales for Q1 2007, the “doubling” effect can easily be explained by rising PC sales alone. In early 2002, ten million new PCs were sold each month, along with 8.5 million copies of Windows XP. If the numbers hold, the first quarter of 2007 will see at least 21 million new PCs sold per month with Microsoft’s announced 20 million copies of Windows Vista.”

With the continuing improvements in Desktop Linux offerings - along with better hardware recognition, easier configuration and better support - Desktop Linux looks set to become solid contender for the consumer market.

PC manufacturers are noticing Desktop Linux maturity, and with manufacturers such as Dell to offer pre-installed Desktop Linux - Linux is likely to make inroads into MS market share.

If indeed - as stats seem to suggest - it is true that the large majority of the MS OS market share is due to pre-installation then pre-installed Linux could very well be the thing that blows Microsoft out of the water.

Watch this space!