Archive for January, 2009

uTorrent: How to Share Between Ubuntu and Windows


While Ubuntu (Wine) and Windows can both run uTorrent, it’s not that easy to keep one copy. Say, for example, that you want to use uTorrent on a Flash drive (USB stick). You run with the problem of having a Z: drive in Wine, which most likely won’t be anything like the structure in Windows (even if you simulate or change the drive letter.)

For example, I have set a partition under a folder in Ubuntu, so the torrent destination path in Wine is Z:\partition\Torrents

In Windows, I can only point a drive letter to a folder, but not the other way around!

I wondered if Windows had anything similar to symbolic links. I figured I could point a drive letter to a folder, then put a symbolic link to the folder, to simulate the path in Wine.

Apparently, it’s not well-known, but there are symbolic links in Windows. They’re not documented, and you need to buy a Microsoft software kit, which includes special tool to create them. They’re also called something else: junction points.

Fortunately, there’s a freeware GUI program that can do this for you: Junction Link Magic. It’s a very small download!

Create a virtual drive

subst Z: C:\vdrive

The vdrive folder is a placeholder, we’ll never actually see vdrive. Create a folder called partition inside Z: (C:\vdrive\partition).

Use Junction Link Magic

Create a link from Z:\partition to the actual partition drive.

When you browse Z:\partition, you should see your Torrents folder.

Now, you can safely run uTorrent from the USB stick, and it won’t notice a thing!


Facebook Dev: You CAN use your localhost as test server


This might be obvious, but if you don’t want to have a test server online because Facebook doesn’t seem to allow “localhost”, all you need to do is edit your hosts file.

Yep, it’s THAT simple. Here are the locations of the hosts file on different systems.

All you need to do is add an entry:

This should only be used for the very first stages of your site development, as it doesn’t allow any other users. It also might not be team-friendly. In that case, you can use a dynamic DNS service and use a temporary URL in the App’s settings.

Note: It’s possible that if you’re behind a router and you use a dynamic DNS service, *you* will be shown your router’s control panel. Confirm this with a trusted friend before giving away the temporary URL. Once you’re sure only you can see your router’s control panel, correct this issue locally by using the hosts file solution above.