Friday, July 10

how to optimize firefox 3.5 using database vacuum method

Mozilla FirefoxImage via Wikipedia
firefox 3.5 uses sqlite to keep various information from cookies to browsing histories. over time of firefox usage, these file can become sort of "fragmented" as they contains alot of junk data. i am not too sure what are those junk data but in order to speed up firefox, what we can do is to 'vacuum' it (eloborate as removing junk and the file can be compacted and faster for launch).

the following short steps are meant for linux based firefox only, for windows based you might want to google to find out.

pre-requisites:

- you must have sqlite version 3 installed, do the following if you don't have it installed:

$ sudo apt-get install sqlite3

steps:
  1. create a file using your favorite editor, generally a vi should be good enough. i use the filename as "firefox-3.5-optimize", ensure the file is executable afterwards by issuing command:

    $ chmod +x firefox-3.5-optimize

  2. paste the following lines into the file:

    #!/bin/bash

    killall firefox-3.5
    ls -l $HOME/.mozilla/firefox-3.5/y6boq3kl.default/*.sqlite
    find $HOME/.mozilla/firefox-3.5/y6boq3kl.default/ \( -name "*.sqlite" \) -exec sqlite3 {} "vacuum" \;
    ls -l $HOME/.mozilla/firefox-3.5/y6boq3kl.default/*.sqlite

    the codes above will first kill all running firefox 3.5 instance, then it will list down all sqlite files under your profile (here mine is y6boq3kl.default change yours where applicable. next it will loop every sqlite file and perform the vacuum actions. later it will list those files again, you can measure their changes by each file's size.

  3. after the execution completed, use the following command to ensure no leftover instance in memory before launch the browser

    $ ps -eaf | grep firefox

    if you don't see firefox-3.5-optmize running then its safe to close the terminal and launch the browser.
enjoy!
Reblog this post [with Zemanta]

Share/Save/Bookmark

Wednesday, July 8

Google Wave: Live collaborative editing

what a dump!


Share/Save/Bookmark

Wednesday, July 1

crime rate in red alert

(click image to zoom) out of 7 news, 5 of them about crime happening around us and the rest of them are politician advertisement.
Share/Save/Bookmark

Thursday, June 25

Clever windows

this is absolutely stunning


Share/Save/Bookmark

Friday, June 5

technology that not invented by Microsoft in Windows

Image representing Windows as depicted in Crun...Image via CrunchBase
i am trying to make a list of technology and OS design that are not invented by Microsoft but existed in their operating system - Windows (regardless version):

  1. tab browsing in IE 7 onwards
  2. windows sidebar in Vista onwards
  3. pop-up blocker in IE (all versions)
  4. ... more
please help me to fill this up.. thanks
Reblog this post [with Zemanta]

Share/Save/Bookmark