June 30, 2008

Well thanks for all the visits!

Funny that it’s just now I realized I should add my site to Google analytics.

More posts soon.

Update: Can’t install analytics, it’s not allowed. damn.

Hardy Heron Hey!

June 19, 2008

Sorry for the long gap between the posts, I kinda lost focus. So here’s a new one.

I made a fresh install of Hardy Heron. I skipped Compiz, Emerald and AWN this time. I finally realized that some of this are still buggy, and are sometimes really annoying.

I decided to have my plain old Gnome and Metacity this time. No extra eye candies.

Now, I focus on productivity. I love my Gedit. I also love it when running with administrator privileges, so I made an appliction launcher sitting on my top panel with this command.

gksudo gedit

The gksudo command makes your gedit run with administrator privileges, it’s the pretty GUI box that darkens everything in the background and asks for your password.

Before gksudo, i ran my launcher with sudo, which keeps a bash terminal running on the background, it kinda eats up some screen real estate, so i decided to find a way to get rid of it.

I’m studying up on Python, it’s a great language. Guess what’s my best IDE for python.

Of course, Gedit!

There’s many tutorials online that teaches how to make your Gedit feel like a real IDE, nothing really comes close to a real IDE, but that’s actually the best part, ’cause we don’t want all of that bloat!

Here’s a tutorial I found to try to achieve a Python IDE:

Using Gedit as a Python IDE (instructables), this is actually good, but you may want to skip the python console on the bottom pane. When your script acts up, your gedit might crash too, you may want to see Better Python Console, it opens a new window and runs your script there. Neat.

I recommend the following plugins, which I myself, use everyday.

Auto Tab, learns your tabbing preferences and uses it when you Tab.

Better Python Console, an external python interpreter window.

External Tools, built in with Gedit.

File Browser Pane, built in with Gedit.

HTML Tidy, you’re a good person when you write good html. Shows you your HTML errors and will help you clean up bad mark up.

Indent Lines, built in with Gedit.

Insert Date/Time, built in with Gedit, good for Documentation.

Modelines, built in with Gedit, this is your usual beloved modelines.

Project Manager, organize your files into one project file.

Python Code Completion, really handy.

Python Outline, browse your code in GUI in the side pane, really good for big projects or large scripts.

Snippets, built in with Gedit.

Spell Checker, built in with Gedit, of course you’d hate a typo error.

Tag List, built in with Gedit, suggests commonly used tags or strings.

Word Completion, suggests words that are used in other files opened in other tabs or windows, really handy.

Oh, I almost forgot, here’s how to install these plugins.

Extract the files to:

if you want to install them for all users extract the files to:

That simple. Some other plugins, none in this post, will require you to install the plugin via a make or something else, don’t worry, those packages usually provide a step by step instruction, just NEVER IGNORE THE README file.

i did a fresh install of gutsy on my machine, ’cause the upgrade broke almost everything (namely compizfusion, awn, and some python programs, my gnome-terminal also keeps crashing).

BEFORE YOU INSTALL any of these, update first, just to see what would not work with any of the updates.

compiz fusion came with the default installation of gutsy. so that is one less of a problem.

but compiz config settings manager is no longer installed, so we need to reinstall it.

sudo apt-get install compizconfig-settings-manager

of course we need handsome looking windows, so we install emerald.

sudo apt-get install emerald

we need to make some little configurations to make emerald work with compiz, open up compizconfig settings manager via alt+F2 then type ccsm. go to window decoration and enter emerald –replace in the command field.

after this you’ll need to restart to see the effect. you might also want to have a try icon for that, download the compiz fusion tray icon here, and install it by..

dpkg -i fusion-icon_1.0-1.0_i386.deb

i had to reinstall AWN, using this neat tutorial. I assure you that this would work smoothly with a fresh install of gutsy. and this is a howto install AWN Curves, you get a curved dock, a new feature for AWN.

i also needed my media players back, so..

sudo apt-get install vlc audacious

audacious is a winamp like audio player, it’s neat looking with a simple good equalizer.

mounting and writing to windows partitions and drives are no longer supported by default, but, it’s pretty easy to install this feature.

 sudo apt-get install ntfs-config

installin LAMP is another story, maybe in my next post.

HOWTO batch/mass image resize

September 22, 2007

so you’ve got 800 .JPGs in one folder, and you need to resize all of them. you would definitely not want to open every each one in GIMP and resize it one by one. here’s a script that would make this task easier:

but first you need imagemagick to get this to work, so:

sudo apt-get install imagemagick

and here’s the script:

for i in `ls *.jpg`;
convert $i -resize 800×600 $i

save this in a file in the same folder as your target images, then, make sure it is executable in Properties > Permissions, then run it in the terminal using ./filename

it will take some time to resize a hundred images, be patient.

note: the file extension is case sensitive, almost everything in linux is case-sensitive, well it actually should be.

so here’s the case, your screen won’t respond, you tried waiting, but nothing happened. Ctrl + Alt + Backspace gave up on you, it won’t work. Here’s what you’d want to do to softly restart your system without breaking anything, it’s fairly dangerous to restart your machine especially when it’s still trying to do something, like writing to memory or stuff. so try this.

hold down Alt and SysRq (print screen), then type in these letters REISUB. this will turn off your services, terminate all programs, and unmount your drives, then your machine will restart.

Fosswire said you should remember the keys as Raising Elephants Is So Utterly Boring.

well this is a quick and short one.

alt+f2 then run gconf-editor.

go to

apps > nautilus > desktop 

on the right side look for this entry


check the box. and you’re done. change trash_icon_name if you wish to.

things you might want to do with your grub:

1. remove/change the boot countdown
2. change the background theme
3. change the text color theme
4. change the default operating system
5. password protect your bootloader

you can do all of this with SUM, or startupmanager, found here.

you might also want to change your usplash screen, and show the loading dialog. the first one can also be done in SUM, for the latter, you need to manually edit your menu.lst file, so..

sudo gedit /boot/grub/menu.lst

remember to backup.
then look for a line that looks like this..

kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=ef286b15-9709-4448-92a6-ce70fe73a54b ro quiet splash vga=794

remove the quiet keyword, save it, then you’re done.

some notes: the format accepted for themes is only .xpm.gz. a good resource is gnome-look.org.


Get every new post delivered to your Inbox.