Recently I wanted to set up multiple profiles in Google Chrome. One for my personal browsing and one for my work. This way I don’t need to sign in and out from my different google, twitter, flickr and facebook accounts.
There is no GUI for this and it involves running some command line but it’s not too hard.
You should run all commands on one line and make sure to change the paths to your user name and profile.
Windows 7 / Vista
First you make a copy of your current default profile. You can do it either in Windows Explorer on on the command line.
I while ago I introduced a friend to Firefox. I didn’t want to push it but just show it and I hoped it would stick. After some weeks I asked if she liked it and she said it was nice but that she missed the tabs that IE had. I was amazed… Firefox were years before IE with tabs but still it fails… Look at the screen shot from Firefox 3. Nothing tells you the interface is tabbed.
Luckily Firefox 3.5 seems to address the issue. Firefox 3.5 also makes it even clearer than Internet Explorer with a + in the new tab button. Way to go Firefox!
Update: I used FFmpeg for some conversions but I just found out Avidemux and it seems promising! Trying it right away!
Every once in a while I get my hands on a video file that I can’t play. Today when I wanted to watch a bouldering movie it failed. Not sure why. Maybe becuase my WLAN wasn’t fast enough to stream the huge HD file?
I looked around and found no nice tools to convert the movies. Either it was some shareware, adware or I just couldn’t find the download link on the ugly web site… I reverted and decided to try to use the command line tool FFmpeg to encode my videos to mpeg and be able to play them. It worked so good I’m amazed!
If you want the Gimp toolbars to behave like normal windows it’s easy to change. Just select Edit / Preferences / Window Managment and change Hint for the toolbox and Hint for the other windows to Normal window.
I have been thinking about creating an easy solution to backup some files from different computers to thumb drives. I wanted a solution that was portable (so I could run it from the thumb drive) and easy to configure (maximum update one path to copy from and one to copy to).
I decided to give Robocopy (that I use for complete backups) a try. The portable requirement was solved by copying the file Robocopy.exe from the folder C:WindowsSystem32 (in Windows Vista) to my thumb drive. And the easy to configure requirement was solved by creating a Backup.bat file on the thumb drive with the following content:
SET copyMode=/MIR /XF desktop.ini
SET options=/R:0 /W:0 /LOG+:%logfile% /NFL /NDL
Robocopy.exe %source% %destination% %copyMode% %options%
It copies the folder Code from my D: drive to the folder CodeBackup in the root folder on the thumb drive.
I popped out the thumb drive and stuck it in a Windows XP computer that didn’t have Robocopy installed. I ran the bat file and it didn’t work. It seems like you need to have different versions of Robocopy for it to run in Vista and XP so I downloaded the Windows Server 2003 Resource Kit which includes a Robocopy version that workes in XP. To be able to run robocopy on both Vista and XP I renamed the files to RobocopyXP32.exe and RobocopyVista32.exe. Then I updated the Backup.bat file to point to the XP version when I’m doing the backups from XP and the Vista version when doing backups from Vista. It seems to work fine and is an easy enough solution!
I have been using a custom build CMS that’s really basic for a tiny site for some years. It has around 200 posts so it’s not a huge site but too much too migrate to a new host by hand. I have been using WordPress for some other sites and I really like it so I decided to look into migrating the data from my current custom CMS to WordPress (and host it on wordpress.com). I also wanted to replace some low resolution images with the same images but in higher quality (if possible automatically).
I decided to try to export all posts on my old site to a RSS file that I then convert to a WordPress WXR file (which is a RSS file with some extra tags). I couldn’t find any specification for the WXR file but it’s really simple so I’ll just write down some notes.
The first part is the XML specification and blog description. It should look something like this
The Car Numberplate Game
Sat, 27 Sep 2008 16:08:57 +0000
Then each blog post, page or attachment is wrapped in tags
A house in our neighbourhood caught fire so we went to look and on our way I found 181.
Along with all item tags comes the the history for each post but since I didn’t have any history in my old CMS so I exclude it.
To create WXR XML from my standard RSS XML I decided to build a quick .NET program (download the source code) that just reads all fields from the RSS file and then converts them to their corresponding fields in WXR. You’ll need to customize the tool but the class WordPressWxrItem.cs might be a good start…
I usually use web based disposable e-mail addresses from Mailinator to avoid giving away my address. I have noticed that some companies don’t let you register using a Mailinator address. Today when I registered to download TimeSnapper (classic) I got this funny note.
I have been playing around with Microsoft ICE (Image Composite Editor) some days and it’s really great for stitching several images to a panorama! The only thing missing is a way to open images in ICE from Picasa without needing to locate them in Explorer.
I created a button that you can add to Picasa that opens the selected images in ICE. It’s available for automatic installation or manual installation. If you choose manual installation copy the file to <your user folder>AppDataLocalGooglePicasa2buttons. If you want to remove it from Picasa you can delete the file from that directory. The pbz file contains two zipped files; one XML-file and one icon file. See Picasa Button API for more information about Picasa Buttons.
Picasa Installed. I used the version 3 beta.
Microsoft ICE installed. Note! It must be installed to the following folder: C:Program FilesMicrosoft ResearchImage Composite Editor
Issues / TODOs:
There are a hard coded path for the ICE executable. I tried to find a registry key for ICE but I found none so you must install Microsoft ICE to the following folder: C:Program FilesMicrosoft ResearchImage Composite Editor
The icon and text on the button doesn’t look quite alright. It works but looks a bit lame.
Try to send a path where ICE should save the stitched image so it defaults to the same location as the unstitched.
I’ll try to fix the above issues. See my post in ICEs forum.
Some years ago I wrote about how to create a Windows Rescue CD. Today I was stuck with a similar problem. I wanted to merge all data from one disk to another without needing to re-install my computer.
My first thought was to create a new rescue CD that I could restore to my new drive. But that didn’t seem like the easiest solution so I looked up a tool called Clonezilla. I started out by setting up similar partitions using GParted and boy am I glad I did? It turned out that you can use GParted to copy one partition to another. It took some minutes, I rebooted and it didn’t work.
I was a bit clueless until I remembered that you need to write a Master Boot Record (MBR) to the disk before it’s possible to boot from it. I booted up from an old DOS cd and wrote fdisk /mbr. Rebooted and still no luck so I fired up GParted again and saw that I had forgotten to set the bootable flag on the drive. I rebooted and everything went fine.