Sunday, April 02, 2006

Thanks to all of you who have used this and given me good feedback. I've made an update based on all the comments recieved so far.

1. File copy bug fixed. Now corrects Album names with invalid characters in them, so the copy process does not crash.

2. Now copies AAC files too. Thanks to Martin for letting me know what the w800i supports AAC (.m4a files).  This does not support protected AAC (.m4p) files such as tracks purchased from the iTunes Music Store.

3. Added a Quick Launch icon.

Please download the latest version and keep the comments coming in.

Instructions:
1. Install all of the requirements.
2. Download the setup and install.
3. Start iTunes, if it is not started the program will start it for you, but be patient.
4. Select the playlist you want to synch with the phone. It is better to create a new playlist like "W800i List" and add your tracks to this.
5. Click on the Synch button to start synchronising.
6. This takes a while. You can speed up the copy process by using a Memory Stick reader, which is faster than going through the USB data cable. Take the memory stick out of the phone, put it in the reader, plug the reader in and synch.

Disclaimer: Use the program at your own risk. This program is un-supported and I will not be held for any damages, liabilities, warranties, natural disasters and if your dog eats it. However, feel free to report bugs and features.

Requirements:

.Net 2.0 Framework
iTunes 6.0 and above

 

Sunday, April 02, 2006 10:12:58 AM (GMT Standard Time, UTC+00:00)  #    Comments [1]  | 
 Sunday, February 26, 2006

Found  this gem on Miguel's RSS feed.

http://tirania.org/blog/archive/2006/Feb-25.html

VSPrjMake is VS 2003 add-in that helps develop Mono applications using VS 2003. The add-in creates a make file and tests the application using the Mono runtime. The post links to tutorials on how to use this..

 

 

OSS
Sunday, February 26, 2006 12:44:27 PM (GMT Standard Time, UTC+00:00)  #    Comments [0]  | 
 Thursday, February 09, 2006

The best browser just got even better. Check it out while its hot

http://labs.opera.com/news/2006/02/07/2/

1. Rich text editing with GMail works fine.
2. Mousing over a tab shows a preview of the page.
3. Bittorrent search built-in.
4. Contect blocker, (block ads )
5. Formatted, colorized HTML source viewer..
6. Widgets support and more , just try it out

On the other hand I tried out IE 7 beta on a vmware virtual machine and it does not come close to O9 !!.

Thursday, February 09, 2006 7:23:30 PM (GMT Standard Time, UTC+00:00)  #    Comments [1]  | 
 Sunday, February 05, 2006

 http://www.urlrewriting.net/ has a free URL re-writing HTTP module for ASP .Net with source code. This supports regular expressions. This is a must have for every ASP .Net developer. I haven't compared this to the Apache mod_rewrite module yet, which I would say is very powerful.

My view is that URL rewriting is best implemented in the web server (IIS), just like the implementation in Apache. This would give URL rewriting functionality regardless of the file type served. I have yet to see a (free ? ) URL rewriting module for IIS, that gives all the features of Apache mod_rewrite.

Will we see this in IIS 7 ?

Sunday, February 05, 2006 6:38:02 PM (GMT Standard Time, UTC+00:00)  #    Comments [0]  | 

After adding an extra 1 GB of RAM, I found that my laptop will not hibernate. This is a bug in Windows XP. A bit of Googling got me here;

http://support.microsoft.com/?kbid=909095

However, the fix is not available for download yet. You have to call MS support and they will email the fix. I somehow got the patch. Download it here, extract the file to a folder and install.

Sunday, February 05, 2006 12:51:15 PM (GMT Standard Time, UTC+00:00)  #    Comments [0]  | 
 Wednesday, February 01, 2006

Typing this post from my laptop with a 1 GB upgrade. Total memory is now 1.5 GB. Can now run SQL server 2005, and VS 2005, and running Azureus in the background :).

Among other things, I've been pretty busy with work and there hasn't been much to blog about. My UK visa issues have now been sorted out, and I can now work here without any restrictions.

There is a new show on Channel 4 called the IT Crowd. The episodes are available online, and watch it if you can.

OSS
Wednesday, February 01, 2006 9:09:42 PM (GMT Standard Time, UTC+00:00)  #    Comments [0]  | 
 Sunday, January 01, 2006

The problem with Sony MP3 players is that the software is not intuitive and buggy. The Disc2Phone application included with my Sony Ericsson W800i fails to copy audio tracks to the phone properly. I was looking for a way to use Winamp or iTunes to manage the MP3s on the phone. As it turned out, I was able to do it with iTunes. 

I was able to wrap it all up in a small C# program. Download it from here . Update : this now also deletes files on the phone that are not in the play list, keeping it completely in sync. It only deletes files inside the MP3 directory, so dont put anything else in there :)

Instructions:
1. Install all of the requirements.
2. Download the setup and install.
3. Start iTunes, if it is not started the program will start it for you, but be patient.
4. Select the playlist you want to synch with the phone. It is better to create a new playlist like "W800i List" and add your tracks to this.
5. Click on the Synch button to start synchronising.
6. This takes a while. You can speed up the copy process by using a Memory Stick reader, which is faster than going through the USB data cable. Take the memory stick out of the phone, put it in the reader, plug the reader in and synch.

Disclaimer: Use the program at your own risk. This program is un-supported and I will not be held for any damages, liabilities, warranties, natural disasters and if your dog eats it. However, feel free to report bugs and features.

Requirements:

.Net 2.0 Framework
iTunes 6.0

How it all works

When plugged in to the computer,the phone is bacially a Mass Storage Device just like any other USB flash drive. The Memory Stick on the phone contains a directory "MP3". All that needs to be done is to copy the MP3s to this folder. Use the System.IO.DriveInfo.GetDrives() method of the DriveInfo class in .Net 2.0  to get an array of DriveInfo objects representing all the drives on the computer. Iterate through this array to check for removable drives using the DriveInfo.DriveType property and then check for drives that have a "MP3" directory in the root. Use the DriveInfo.IsReady to check if the removable disc is ready.

The next step is to copy only the MP3s in a specific iTunes playlist. iTunes has an exellent COM interface. To program against this in C#, add a COM reference to the "iTunes 1.6 Type Library". iTunes is started by;

itunesApp = new iTunesAppClass();

Use the iTunesAppClass to get the collection of playlists;

playlistCollection = itunesApp.LibrarySource.Playlists;

You can then get a specific playlist, like the playlist you want to synch the phone with;

playListToSynch = playlistCollection.get_ItemByName("W800i");

The playlist will have a collection of IITFileOrCDTrack objects. Each IITFileOrCDTrack object has  Artist,Album and Location properties. The Location property gives the physical location of the audio track on the computer. This is used to copy the track to the phone. Iterate through the tracks in the playlist and copy the files to the phone. Thats all there is to it. With this technique it is possible to use iTunes with other USB type devices that play MP3's.

The next step is to improve the synch functionality, right now it is just a one way copy process. Update : This functionality is now included. 

 

Sunday, January 01, 2006 10:51:49 AM (GMT Standard Time, UTC+00:00)  #    Comments [8]  | 
 Friday, December 30, 2005

This should apply for the K750i as well. The w800i phone has a built-in POP email client. GMail uses SSL for both POP and SMTP e-mail transfers.  The w800i has support for SSL/TLS in its mail client.

However, the phone does not come with two root certificates required to get Gmail to work. Gmail uses two different certificates on pop.gmail.com and smtp.gmail.com, and each of these certificates are issued by two certification authorities. The trick to get gmail to work is simply install the root certificates of these two CAs. These are Thawte and Equifax.

To get the root certificates, open the Certificates manager in Windows XP or 2000 ( open a blank Microsoft Management Console , by typing mmc at the command prompt, and then add the Certificates snap-in). In the certificates tree, under Trusted Root Certification Authorities , find the certificate for Equifax Secure Certification Authority and Thawte Premium Server CA.

Now, export each of these certificates in turn as a DER encoded binary X.509 certificate. Send these two files via a bluetooth or infrared link (does not work when the files are copied using file manager ). The phone will prompt to accept the certificates and you are good to go :).

Gmail also has a mobile interface at http://m.gmail.com, but this is not good enough to compose emails.

Friday, December 30, 2005 6:23:18 PM (GMT Standard Time, UTC+00:00)  #    Comments [5]  | 
 Wednesday, December 28, 2005

While working with the System.Timers.Timer class last week, I found that the timer_elapsed method is not synchronized, i.e the event is fired without waiting for the completion of the previous invocation.

Say for example you have a method that pulls up the latest records from a table and do some processing. The timer event can fire while you are doing this processing and have still not marked the records as processed. The safe way is to wrap the code in the timer_elapsed event inside a lock statement.

Wednesday, December 28, 2005 10:36:32 PM (GMT Standard Time, UTC+00:00)  #    Comments [0]  |