Thursday, April 29, 2010, at 9:30 PM

Enjoy a Mont Blanc-like writing feeling, for a (very small) fraction of the price

I stumbled upon an Instructables article a couple of days ago, and since then, I was obsessed to give it a try. Even though I'm a technology geek, I just can't deny my obsession with pen and paper.


The whole thing consists of taking a simple Pilot G2 Pro pen body, and replacing the ink shaft by a nice Mont Blanc one. The refills are surprisingly similar, just requiring a lit trim at the top of the Mont Blanc one. The details are in this article, with a little bit of humor threw in.

And for the records, this also works with a standard G2 (non-pro) pen, and probably any other that would normally take a G2 refill. Just saying, because I know I wasn't able to find any G2 Pro in local stores around me, but standard G2 were aplenty.

Enjoy your while music collection from (almost) everywhere... even your iPhone or Android device!

Over the years, you may have grown quite a huge music (digital) collection. You know, the kind of collection that doesn't quite fit into your portable device storage space. Smartphones and even laptop hard drives have their limit, or you may prefer to keep an empty buffer for other things.

Well, if you got an always-on computer at home that is storing your whole collection (or if you're ready to do a move in that direction), you'll be able to free your music from the confine of your walls, thanks to Subsonic.

The setup requires that you first install the Subsonic server on your always-on machine. The software is free, and available for Windows, Mac and Linux. For the download and details on installation and configuration, just head to their site.

Once the server is setup and running good locally (you'll be able to test it in your web browser), it's time to make it accessible from the Internet. Don't worry, your precious music (and bandwidth) will be protected from strangers by the built-in Subsonic user accounts system.

First, you will probably want an easy-to-remember URL. If you opt to donate to the Subsonic project, they'll happily provide you with a user.subsonic.org address. Or, you may want to take a look at my strangely convenient previous article about a dynamic DNS.

Next, if your home network is running behind a router, you need to make sure the Subsonic traffic gets correctly routed. Just forward the port 4040 to your local Subsonic server, or any other port if you changed the default configuration, which might have been necessary if your ISP blocks some ports or something like that.

At this point, you'll be able to access your collection from any browser, everywhere the connection speed is at least decent. But what about when it's a bit less speedy? In that case, you can create a specific Subsonic user account on your server, on which you'll set a speed limit. By activating and configuring this option, Subsonic will transcode (i.e. resample as it streams) any file to the specified bandwidth. This will allow you to better control you own upload bandwidth, and also limit the download bandwidth you be using on the receiving end.

There are a couple more options you may want to take a look at on the server. For example, you can associate a Subsonic user account to a last.fm one, so that all songs played are scrobbled. There is the possibility to let each user select it's own browser skin. You can also ask Subsonic to retrieve all your missing albums cover art. There's really a lot to explore here, so enjoy!

Ok, now that everything is configured on the server side, it's time to look a the options we have on the client side. Sure, we can stream from the browser, but it can be a bit clunky, especially on a smartphone's small screen. If you're running on an iPhone or Android-powered device, you have access to native player applications that will connect to your Subsonic server, and deliver you all that audible goodness. A simple search on "subsonic" in the device's integrated app store will show you what's available. At the time of this writing, two $5 applications are available on the iPhone, and a free one will satisfy those Android users. There's also a desktop application, for those interested.

All is not perfect, however. To make sure you don't abuse your phone data plan, or simply to allow your 3G connection to keep up the pace, you'll probable need to down-sample what you're listening to. Also, at least on the iPhone, you won't be able to stream music while you're doing something else, thanks to its no-multitask "feature". And there's always the risk of a connection problem, preventing you from accessing your collection. That being said, just make sure you still keep a couple of classics on your device for those cases, and you'll have the best of both worlds.

Monday, April 26, 2010, at 1:00 PM

No need to remember your public IP address

There are a lot of reasons why you may want to know you public IP address. Maybe you set up an FTP server, so you can always access your files when you're away. Maybe you collaborate on a project, and want to host a source control server. Maybe you installed some other service, that you would access through a web interface. Or, maybe, just maybe you refrained doing any of this, because you couldn't bother to take note of your public IP address each morning before leaving home, just in case your service provider changed it overnight.

Well, there's really no need to remember your public IP address (sounds like the title of this article, doesn't it?). For quite some time now, it's possible to freely register a subdomain (for example, myname.dyndns.org), and link it to your own setup.

How does that work? It's quite simple, really. There's no redirection, port forwarding or anything like that. The subdomain you register will simply resolve to your public IP address. Consider that the subdomain will act as an exact synonym for your public IP address. That's it, nothing more, nothing less. This will not create a web server or anything though. This will only allow you to easily access any service you provide (and have set up) on your home network.

Once you register your subdomain, you'll need to keep it up-to-date with your public IP address. Depending on the service you choose, you may have to run an application in background, that will detect any change, and inform the server of it as it happens. If you're lucky enough, you may even have a built-in option in your router configuration that does exactly this, so there's no need to lose some precious CPU cycles and kilobytes of RAM on one of your computers. I know some Linksys routers (WRT54G and WRT310N, at least) offer the option for dyndns subdomains. Whichever method you use to keep the service updated, once it's set up, you can forget about it, and let it do it's job.

There are a couple of offerings for this kind of service. However, there are really no options or anything, so it's really a matter of reliability, and the availability of update tools, that will direct your choice. I personally opted for dyndns.com a couple of years ago (the free service), and never looked back.

Saturday, March 13, 2010, at 7:20 PM

Holy box of rhythm, Beatman, I can now sync my iPhone on Ubuntu!


Yup, you read right: it's now possible to sync the music on your iPhone directly in Ubuntu, with Rhythmbox. Personally, I don't have a need for video transfer, and all my other stuff (contacts, mails, tasks list, etc.) is already synchronized automatically through the Internet, so that's a really good news for me.

I may be a couple weeks late, but I just read the article over at OMG! Ubuntu! (by the way, I added a shortcut to that site in the "Links of Interest" box, bottom-right corner of this page). If you want a (very) more detailed how-to, with screenshots and all that, you can head to the original article, at MakeTechEasier. I won't repeat the whole how-to here: just use one of the two links in this paragraph to enable this goodie on your own machine. It may seem complicated, but seriously, it's a matter of minute(s).

I just tried transferring a 13-track, about 55-MB album, and it took about 5-10 minutes. Not thaaaaat fast, but then again, it beats the über-long synching that usually comes with the whole process in iTunes. Plus the fact that, as a Ubuntu user, I normally had to launch VirtualBox, my Windows XP virtual machine, then iTunes, then start synchronizing stuff... Saving me a lot of time.


To send music on your iPhone, simply drag and drop what you want, in Rhythmbox, from your library to your device (on the left-side bar). A little progress bar will appear on the bottom, so you know when it's done... almost! I noticed my iPhone going into "Synchronizing" and "home screen" mode, back and forth, a couple of times. I don't know why it did that, but I wait for the back-and-forth to stop, then I went into the iPhone's iPod app to validate all was sent. At that moment, it was OK to eject the device (right-click the device name, then select the appropriately named option "Eject"), then disconnect. Joy!

Just a quick note, as seen in the comments of one of the how-to's: make sure to disable your iPhone's password, or else, it won't be detected in Rhythmbox.

Sunday, February 28, 2010, at 2:40 PM

Avoid procrastination by using a work-only firefox profile

Most of us have been there before: you begin to do some work, which at some point involves browsing the web for some information or another. While you're there, your time-wasting bookmarks poke at you, an email or RSS feed notification pops, and before you know it, you lost twenty minutes, an hour or even more. And, mainly, all motivation to finish what you started is gone.

In an open-space work environment, where people can see at any moment at you're doing, this is less of a problem; there's some kind of self-regulation taking place, and you can hardly abuse. However, if you got an isolated workstation, are self-employed, or working on side projects, there's no one to keep you on track. If you regularly find yourself in such a time-wasting situation, like I am - this blog is a living (dying...?) proof of it, as are a lot of other personal projects -, you'll want a solution that will force at least a bit of discipline into your work time.

There's a lot of Firefox plugins that can help you stay on track, by blocking access to certain sites depending on the time, etc. (see LeechBlock), but I found that was not enough. First, it assumes a regular work schedule, which is not the case with my side projects. My shortcuts still remain there, prompting some kind of reflex to open them (even though they are blocked). My email and RSS notifications sometimes pop. I can glance at the weather widget a bit too often (I know it's snowing, damnit!). So, there's too much I can do that's not work.

Following the advice in found in a LifeHacker article, I created a "work-only" profile in Firefox. It may seem an overkill, but believe me, it's easy to setup, and does a really nice job.

What is a Firefox profile?
You can consider a Firefox profile as if it was a completely different Firefox installation than the one you're normally using. That means it has it's own set of bookmarks, extensions, navigation history, password, etc. Anything you do in one profile, never affects the other one(s).

Nice. Now, how do I create and access that profile?
First, you need to access the Firefox Profile Manager. On the command line, this can be done with the following command:
firefox -ProfileManager -no-remote

The -no-remote option is necessary only if you have an instance of Firefox currently running (which is most probably the case if you are reading this article).

Firefox Profile Manager
From there, you can create your new profile.

Now, to start Firefox using your newly created profile, simply launch it using the following command:
firefox -P NAME_OF_THE_PROFILE

Note that is there's already an instance of Firefox running, the command above will use the profile of that instance, and not the one you specified. To override this restriction, simply add the -no-remote option at the end of the command.

To facilitate the use of that new profile, without using the command line, just create a launcher with the whole command.

OK, that profile is completely bare. What should I put in it?
Personally, I go with a couple of productivity-enhancing, twaeking extensions, like Tab Mix Plus and FireGestures. Also, Adblock Plus does a nice job reducing distractions (annoyances) on a lot of sites. Also, think of any job-related extensions you might want, like Web Developer, Firebug and the like.

And, last but not least, LeechBlock. This can block access to all the sites you specify. You know where you normally lose track of time (digg anyone?). Make sure to configure the extension as tight as possible. Remember, this profile is to be used when you plan on working.

Also, to make your job easier, set all the bookmarks, search engines, and remembered password that can help you work.

That seems good. Anything I should avoid?
Sure! First, make sure you don't have any bookmark or remembered password for sites you should not use. But then again, you blocked them, right?

Also, avoid any pop-up extension, like mail and RSS feed checkers. Even when you are the most focussed, it doesn't take more than a little "You got new mail!" sliding window, or a huge count of unread items, to make you lose your precious concentration.
This is plain evil!
This is just plain evil...


And what's next?
Hopefully, a more productive environment. On my side, let's see if that leads to a bit more articles on this blog.

Also, if you are a bit of a jack-of-all-trades person, working on a couple unrelated projects (e.g. web development, writing, etc.), you could create more than only one "work" profile, and tailor each profile to its tasks. If you're willing to spend a couple of minutes to tailor your work environment(s), you can probably save a lot more in the long run.

Saturday, January 2, 2010, at 2:00 PM

Just rescued my (software) RAID5.

Yesterday, after rebooting my home server, I noticed I couldn't access any of its data, which sits on a normally fine software RAID5 device. When trying to mount the device, I always got the following error: "mount: /dev/md0 already mounted or /mnt/share busy".

I tried rebooting: fail.

I messed a bit with my /etc/fstab config file: fail.

Suspecting the mdadm config file could be the culprit, I uninstalled, then reinstalled mdadm, to make sure it regenerates its config file: fail again.

After some long (and panicking) minutes, I found this savior's post:
http://matthew-garman.blogspot.com/2009/12/device-already-mounted-or-mountpoint.html.

Just a quick note though: make sure to remove ("comment out") the necessary entry in your /etc/fstab config file, then reboot, before attempting to run e2fsck. If not, the device may be "busy", probably trying to be mounted, and the scan won't launch. Then, after all is repaired, restore your original fstab file content, and remount your device. Voilà!

Friday, November 6, 2009, at 9:06 PM

Easily manage multiple launchers in a GNOME panel with quick-lounge-applet

If you like to have a great number of application launchers on your GNOME panel, but don't like the way you have to move each and every one of them when you re-organize your applets, quick-lounge-applet is for you.

What is it?
quick-lounge-applet is a GNOME panel applet that can manage a list of launchers, with ordering, icon and name selection, separators for sections, etc.




Why use it?

Since you'll be using only one applet for are launchers, instead of an applet for each single launcher, you'll be able to move this as a whole, should you want to re-organize your panels. For example, if you have 15 launchers on the top-left panel, and would like to move them to the bottom panel, it would be cumbersome with actuals launchers. With quick-lounge, it's a one-step operation.

Also, you'll be sure that the launchers get all evenly spaced, and you won't have any trouble adding a new launcher between two already existing ones.

How to use it?
In Ubuntu (and possibly other distros), you can install the quick-lounge-applet package.
sudo apt-get install quick-lounge-applet

Once done, right-click on the GNOME panel, where you want to install the applet, and select "Add to Panel...". Select "Launchers List" from the list, then click "Add".

To add, remove and edit existing launchers, right-click on the applet you just added, where there is no launcher icon, and select "Preferences" from the popup menu. From there, I'm sure you can figure out what you have to do.

That being said, do you think such application launchers are still relevant? Personally, I don't see myself getting rid of them soon, but who knows?