Friday, July 3, 2009

Quick Firefox 3.5 Installation Guide

10 simple steps to install Firefox 3.5 on your Linux PC

1. Download the Firefox 3.5 from here

For example, on my Linux PC, I have downloaded Firefox 3.5 (firefox-3.5.tar.bz2) in my Download folder:

[rakesh@debian Download]$ ls
firefox-3.5.tar.bz2

2. Make a folder (e.g. for me, install) in your home

[rakesh@debian ~]$ mkdir install

3. Move firefox-3.5.tar.bz2 from your gnome Desktop or Download folder to install folder (the folder where you have downloaded firefox-3.5.tar.bz2 file)

[rakesh@debian ~]$ mv /home/rakesh/Download/firefox-3.5.tar.bz2 install/

4. Goto the install folder

[rakesh@debian ~]$ cd install/
[rakesh@debian install]$ ls
firefox-3.5.tar.bz2

5. Extract firefox-3.5.tar.bz2 file

[rakesh@debian install]$ tar -xvf firefox-3.5.tar.bz2
firefox/
firefox/update.locale
firefox/plugins/
firefox/plugins/libnullplugin.so
firefox/Throbber-small.gif
firefox/components/
firefox/components/nsSessionStore.js
firefox/components/nsFilePicker.js
..........
.....

6. Goto firefox folder

[rakesh@debian ]$ cd firefox
[rakesh@debian firefox]$ pwd
/home/rakesh/install/firefox

7. Make a symbolic link to launch Firefox 3.5

[rakesh@debian firefox]$ ln -s /home/rakesh/install/firefox/firefox ~/Desktop/Firefox3.5

8. Make it (Firefox 3.5) executable

[rakesh@debian firefox]$ chmod +x ~/Desktop/Firefox3.5

To open Firefox, from the command line you would type: firefox &

[rakesh@debian firefox]$ firefox &

If steps 7 and 8 do not work for you then follow an alternative option at step 9

9. Goto your gnome Desktop and

a) Right click on the gnome Desktop and
b) select the Create Launcher... option
c) click the button labeled Basic
d) type in "Name:" field : Firefox 3.5
e) type in "Command:" field: /home/rakesh/install/firefox/firefox
f) type in "Comment:" field: Firefox 3.5
g) now click Close button

10. You will see a Firfox 3.5 logo on your Desktop and just click the logo to launch Firefox 3.5 and browser the web.

Enjoy Firefox 3.5 ... :)

Wednesday, July 1, 2009

Todo.txt CLI Manages Your Tasks from the Command Line

Dozens of fancy point-and-click task managers promise to organize your to-do list, but so often power users find that nothing outdoes that trusty old classic: the todo.txt file.

If you're a command line lover who skips checkboxes and drop-downs to dash off notes and tasks in a regular old text file, or you're intrigued by the idea and wish your todo.txt chops were stronger, read on.



Gina has been a heavy todo.txt user for years. Back in 2006, he started developing a command line interface (CLI) to my todo.txt which lets him add to and check off items without launching a full-on text editor. Three years of daily (or at least weekly) use later, version 2.0 of the script is now available. It offers basic to advanced commands for managing your todo.txt and other text files you might use to capture information, like ideas.txt or maybelater.txt. Let's take a look.

Who This Is Meant For: If you're comfortable working in the terminal, changing permissions on a file, and working with Unix-style text commands, then the todo.txt CLI is for you. If you don't spend a good amount of time at the command line—either in the Terminal on your Mac, or using a Unix command line or emulator on Windows—you're going to think this whole thing is arcane and confusing. (In that case, we highly recommend getting organized with Remember the Milk. If you want to boost your command line chops on Windows, check out our introduction to Cygwin.)

You've already got CLI religion? Good. Let's get started on some hot todo.txt command line action.

Quick Start Guide:

  1. Download the Todo.txt CLI 2.0 zip file and extract it. You'll get two files. Place both todo.cfg (the configuration file) and todo.sh in your home directory.
  2. Open the todo.cfg file with your text editor of choice. Set the TODO_DIR variable to the right path for your setup. For example, on my Linux PC, this line reads:
    TODO_DIR="/home/[your home directory name]/todo"
  3. On Windows PC, this line reads:
    TODO_DIR="C:/Documents and Settings/gina/My Documents"
  4. On my Mac, this line reads:
    TODO_DIR="/Users/gina/Documents/todo"
  5. Make the todo.sh file executable by using the command: chmod +x todo.sh
  6. (OPTIONAL) Alias the letter t to todo.sh to save keystrokes while you use it. In your ~/.bash_profile file, add the line:
    alias t='~/todo.sh'

Now you're ready to put this script to work!

Basic Usage

Before we start, keep in mind that this CLI isn't trying to reinvent the text editor. If you want to do big bulk edits to a lot of items in your todo.txt, just open it up in your favorite text editor to do so. But for quick, one-hit access to add items, mark items as complete, or slice and dice your list by project or priority, todo.sh is for you.

For example, to add a line to your todo.txt file, at the command line, type:

$ t add "Pick up milk"

Add a few more items for good measure:

$ t add "Pick up the dry cleaning"
$ t add "Clean out the inbox"

Now, to see all the items on your list, use:

$ t ls

The output will look like this:

$ t ls
03 Clean out the inbox
01 Pick up milk
02 Pick up the dry cleaning
--
TODO: 3 tasks in C:/Documents and Settings/gina/My Documents/todo.txt.

Now, you can reference each item by its ID—which is actually the line number it lives at in the todo.txt file. For instance, to prioritize task 1 to the highest level—priority A—use this command:

$ t pri 1 A

To mark task 2 as complete, use todo.sh's do action:

$ t do 2

Since a video is worth a million words, see this in action in this screencast demonstration of a to-do list you might find for a crew member on Battlestar Galactica. (Go full-screen to see what's being typed more clearly.)

If this video clip isn't clear enough for you, try this alternate high-res location.


Advanced Usage

Once you've got the basics of working with your todo.txt down, it's time to dive into more advanced tricks. Here are a few more things this CLI can do.

  • Replace or delete a task; append or prepend text to a line. When you want to re-word a task or add a context, project, or additional info to it, use the replace, append, and prepend actions to do so. For example, add "ready at 3PM" to your "Pick up the dry cleaning task" with this command:
    $ t append 2 "ready at 3PM"
  • See all the contexts and projects in your list. If you're using the + and @ sign format to signify projects and contexts, use the listcon and listproj (or lsc and lsprj for short) commands to see a short list of all your contexts or projects in your todo.txt.
  • Move items from your todo.txt to another text file. Say you've decided that the "Learn how to speak French" task is actually something you're not quite committed to doing—yet. Use todo.sh's mv command to zip that task from todo.txt to another text file in your todo directory. For example, this command will move it into a maybelater.txt file:
    $ t move 10 maybelater.txt
  • List the contents of another text file. Since I got so used to working with todo.txt this way, there's now support for working with other text files. For example, you can list the contents of your maybelater.txt file using the command:
    $ t listfile maybelater.txt

    Likewise, you can add a line to another file using:

    $ t addto ideas.txt "My bright idea"

    You can also search the contents of another text file by adding a keyword after the list command, ala:

    $ t lf ideas.txt apple

See all the options available to you using the todo.sh -h command. The full usage manual is available here.