Cold Chicken http://smux.net/blog Tue, 30 Aug 2011 19:51:16 +0000 en hourly 1 http://wordpress.org/?v=3.2.1 RAM Disk creation tool for MacOS X http://smux.net/blog/2011/03/11/ram-disk-creation-tool-for-macos-x/ http://smux.net/blog/2011/03/11/ram-disk-creation-tool-for-macos-x/#comments Fri, 11 Mar 2011 10:04:45 +0000 Sena http://smux.net/blog/?p=75 Hi.

I’ve created, as an exercise to explore AppleScript a bit (which, by the way, is a terrible language), a tool to create a RAM Disk in MacOS X.

It asks for the size of the RAM Disk to create and then does it. Beware that anything that you put in this RAM Disk will disappear on the next reboot/crash/hang.

Download it here: CreateRAMDisk.zip

]]>
http://smux.net/blog/2011/03/11/ram-disk-creation-tool-for-macos-x/feed/ 0
Page Up and Page Down History Search on bash (MacOS X) http://smux.net/blog/2010/02/26/page-up-and-page-down-history-search-on-bash-macos-x/ http://smux.net/blog/2010/02/26/page-up-and-page-down-history-search-on-bash-macos-x/#comments Fri, 26 Feb 2010 03:51:47 +0000 Sena http://smux.net/blog/?p=69 I’ve got a new Macbook laptop, and I’ve been using it for almost a month now. Pure bliss.

Anyway, I’ve made a previous blog post about using Page Up and Page Down in order to search the command history in bash (see Page Up and Page Down History Search on bash).

One thing that’s been itching me is not being able to use those keys on MacOS X. After trying to find the equivalent to /etc/inputrc, I finally gave up and created a .inputrc file.

It just works… :-)

]]>
http://smux.net/blog/2010/02/26/page-up-and-page-down-history-search-on-bash-macos-x/feed/ 1
Test post from iPod Touch http://smux.net/blog/2009/12/29/test-post-from-ipod-touch/ http://smux.net/blog/2009/12/29/test-post-from-ipod-touch/#comments Tue, 29 Dec 2009 01:26:31 +0000 Sena http://smux.net/blog/?p=65 Just got an iPod Touch for my birthday, and I’m loving it.

This is a post made using the “WordPress 2″ application. It looks nice, although a bit on the simple side. Better than the mobile version of the administration interface, tough.

Also, I’m now using a Nokia E71 phone (my E61i was crushed in a little accident). The superior hardware, coupled with the newer Symbian version provides a much better experience. It’s much more stable and considerably faster.

I’m also trying out the Joikuspot application for Symbian, which allows the sharing of the E71 3G connection through WiFi, effectively turning it into a 3G router.

For now, my main goal is to be able to connect the iPod Touch to the Internet anywhere, but it could turn out to have some other interesting uses.

Now I just have to find out how to easily insert links through this application. :-)

]]>
http://smux.net/blog/2009/12/29/test-post-from-ipod-touch/feed/ 0
Nokia E61i Factory Reset http://smux.net/blog/2009/08/30/nokia-e61i-factory-reset/ http://smux.net/blog/2009/08/30/nokia-e61i-factory-reset/#comments Sun, 30 Aug 2009 19:16:11 +0000 Sena http://smux.net/blog/?p=61 Here’s how to reset a Nokia E61i to it’s factory settings:

  1. Turn off the phone;
  2. Hold these three buttons simultaneously:
    • Call Button (the green one);
    • The letter “Y” (the number “3″);
    • The letter “U” (the “*” key);
  3. Turn on phone (don’t let go of the three buttons!);
  4. Only release the buttons when the phone is really on (when you see a bright “Nokia” logo).

That’s it. Weird, but true. Don’t know if you can do it through the menus, which should be easier…

]]>
http://smux.net/blog/2009/08/30/nokia-e61i-factory-reset/feed/ 4
Page Up and Page Down History Search on bash http://smux.net/blog/2009/03/22/page-up-and-page-down-history-search-on-bash/ http://smux.net/blog/2009/03/22/page-up-and-page-down-history-search-on-bash/#comments Sun, 22 Mar 2009 11:24:10 +0000 Sena http://smux.net/blog/?p=57 One thing I got used to when using SLES was that I was able to search bash command history simply by typing the first few letters of a previous command, and then pressing Page Up. However, Ubuntu doesn’t seem to come with that feature enabled by default.

After fiddling with CTRL-R a few times, I checked out how to make this work.

Well, simply add the following two lines on a .inputrc file on your home directory, or uncomment them on /etc/inputrc for a system-wide effect:

"\e[5~": history-search-backward
"\e[6~": history-search-forward

That’s it. Enjoy.

]]>
http://smux.net/blog/2009/03/22/page-up-and-page-down-history-search-on-bash/feed/ 0
Using Google Apps as default mail client in Linux (Gnome) http://smux.net/blog/2009/02/08/using-google-apps-as-default-mail-client-in-linux-gnome/ http://smux.net/blog/2009/02/08/using-google-apps-as-default-mail-client-in-linux-gnome/#comments Sun, 08 Feb 2009 17:05:46 +0000 Sena http://smux.net/blog/?p=46 Ok, pretty simple. I had a couple of machines where I wanted to keep the installation base to a minimum, so WebMail was a natural choice.

I neded to be able to send mails when clicking mail links everywhere in Firefox or other application, so we need to tell Gnome that Firefox is it the default mail client.

So I created the following shell script, which I placed in /usr/local/bin:

#!/bin/bash

DOMAIN=example.com
FIREFOX=/usr/bin/firefox

if [[ "" != "$1" ]]; then
  SEND="?extsrc=mailto&url=$1"
fi

URL=https://mail.google.com/a/${DOMAIN}/${SEND}

if (pidof $FIREFOX); then
  $FIREFOX -remote "openurl($URL, new-tab)"
else
  $FIREFOX $URL
fi

You must replace “example.com” with your own domain.

This script opens a new tab in Firefox, loading Google Apps Mail directly. If Firefox is not yet running, it starts a new instance. If you provide a mailto: URL in the command line, it opens the mail composition section. If no URL is provided, it opens the regular Inbox view.

Now, we must tell Gnome to use this script as the default mail client. Simply open the Preferred Applications dialog in the System/Preferences menu. In the Mail Client section, select Custom and type the name of the script we just created in the Command field, followed by “%s”.

Preferred Applications window

Preferred Applications window

That’s it. It should be working now.

One last warning, tough. If you’re not logged in Google Apps, you will get the username/password dialog, and then you must click the e-mail address link again, in order to send a message.

Edit: you must verify if Firefox is running or not and start a new instance if it’s not. Changed the code accordingly.

]]>
http://smux.net/blog/2009/02/08/using-google-apps-as-default-mail-client-in-linux-gnome/feed/ 1
EeePC 901 desktop screenshot (#2) http://smux.net/blog/2009/02/08/eeepc-901-desktop-screenshot-2/ http://smux.net/blog/2009/02/08/eeepc-901-desktop-screenshot-2/#comments Sun, 08 Feb 2009 08:36:10 +0000 Sena http://smux.net/blog/?p=33 Just for fun, a screenshot of Ubuntu Intrepid Ibex running on my EeePC 901.

Desktop screenshot thumbnail
(desktop-20090208.png, 329 KB)

]]>
http://smux.net/blog/2009/02/08/eeepc-901-desktop-screenshot-2/feed/ 0
Desktop Meme http://smux.net/blog/2008/09/25/desktop-meme/ http://smux.net/blog/2008/09/25/desktop-meme/#comments Thu, 25 Sep 2008 00:07:48 +0000 Sena http://smux.net/blog/2008/09/25/desktop-meme/ My Ubuntu desktop, on an Asus EEE PC 901:

Desktop Screenshot

Take a screenshot of your desktop right now, don’t change anything, post it on your blog.

]]>
http://smux.net/blog/2008/09/25/desktop-meme/feed/ 0
Rage Against The Machine http://smux.net/blog/2008/07/10/rage-against-the-machine/ http://smux.net/blog/2008/07/10/rage-against-the-machine/#comments Thu, 10 Jul 2008 12:23:33 +0000 Sena http://smux.net/blog/?p=28 After some tribulations, I’ll really be attending the Rage Against The Machine gig in Lisbon, at the Optimus Alive! Festival.

I was almost not going, but since I got hold of a couple of free tickets (thank you, Optimus), I’ll be there.

Eleven years later, in the exact same place where the Super Bock Super Rock Festival took place in the 4th of July 1997 (in the Passeio Marítimo de Algés), also with Rage Against The Machine.

]]>
http://smux.net/blog/2008/07/10/rage-against-the-machine/feed/ 0
Google Gears and Firefox 3 http://smux.net/blog/2008/06/10/google-gears-and-firefox-3/ http://smux.net/blog/2008/06/10/google-gears-and-firefox-3/#comments Tue, 10 Jun 2008 13:06:01 +0000 Sena http://smux.net/blog/2008/06/10/google-gears-and-firefox-3/ Seems like Google has finally updated their Gears Firefox extension to work with Firefox 3.

Nice.

]]>
http://smux.net/blog/2008/06/10/google-gears-and-firefox-3/feed/ 0