Archive for January, 2009

Migrating to Linux ( in my case Ubuntu 8.10 )

Breaking a Habit is tough; But was planning this for long to migrate to linux. In my case i had two options : Fedora Core 9 and Ubuntu 8.10. At the very end, i choose Ubuntu 8.10 . Someday i will briefly discuss about that. For now , I am about to discuss how i moved to linux without breaking most of my habits:

Total Commander  Vs Krusader

I am a total Commander User and  i don’t know how could i have survived in linux without Krusader. It’s a nice replacement of Total Commander with little bits of lacking. But i am fine with it. Another hint,  If you are too glued with total commander then use WINE ( windows enviroment in Linux )  and install totalcommander in it.

NOTEPAD++ Vs Kate /Vim

As i have already told you about WINE so i think you may not want to know about KATE. But KATE can be a good replacement for Notepad++. But if you are a NOTEPAD++ addict like me then install an FTP server and then use total commander ( inside wine) and then work in your files.

WINE( Microsoft Windows Compatibility Layer )

This will remove most of your headache but don’t expect much from it.

Multimedia

I use gxine, VLC, Rhythmbox player for multimedia purpose.

Some other tools :

Openoffice , Firefox, Downloader 4 X ..

Still Looking for :

I am still looking for a nice visual MySQL management like SQLYog replacement in Ubuntu. Currenlty i am using PHPMyAdmin. If anyone knows a better one leave a comment.

Comments (4)

LAMP configuration in Ubuntu 8.10

Recently i have installed Ubuntu and trying to move all my work and tools ( some replacements ) in Ubuntu. The first thing i was troubled by was to install LAMP. After searching and reading some of the blogs it helped me to solve the problem.  Here is the collection of commands that helped out:

sudo aptitude purge apache2 apache2-common php5 php5-common libapache2-mod-php5 mysql-server
sudo aptitude install apache2 apache2-common php5 php5-common libapache2-mod-php5 mysql-server
sudo aptitude install phpmyadmin

Here are the 2 blog posts which helped me :  by wulfshayde and from here

Hopefully this will help others …

Comments (5)

Character Limiter: My first Jquery plugin

I was looking for a character limiter for jhoroTEK SMS server reporting panel. Then i found this one in ajaxray’s blog.  Though i liked the code much but writting some extra targeted code seems too much for me. So, i forked a jquery plugin from that one.

Let’s say your textarea class name is ‘test’.

in your HTML head add this :


$(document).ready(
function() {
$('.test').startCounting({limit: 160});
}
);

And here is the plugin file name:  ajaxray_textcounting.js


/*
Original Code was by: AjaxRay ( http://www.ajaxray.com/blog/2007/11/09/interactive-character-limit-for-textarea-using-jquery/ )
Plugin Written by : Mohammad Amzad Hossain ( tohin.wordpress.com)
Thanks to : http://www.learningjquery.com/2007/10/a-plugin-development-pattern
*/

(function($) {

$.fn.startCounting = function(options){

var defaults = {
limit: 30
};

options = $.extend( defaults, options);

return $(this).each( function(i) {

var elem = $(this);
elem.after('');
elem.keyup( function(i) {
var limit = options.limit;
var text = elem.val();
var textlength = text.length;

if( textlength > limit)
{
elem.next('.counting_class').val( limit + ' / ' + limit);
elem.val(text.substr(0,limit));
return false;
}
else
{
elem.next('.counting_class').val( textlength + ' / ' + limit);
return true;
}
});
elem.trigger('keyup');
});
};

})(jQuery);

I hope this comes handy… as it comes to me. Dont’ forget to add jquery as it depends on jquery.

Note: Please let me know if you have any pointing, suggestion or bugs :) .

Please Download the js file from Download Section or click here . Thanks

Comments (1)

CSS and JS multiple file compression

For last 2 days i was looking for a nice CSS/JS compression tool not online but offline. I saw YUI compressor but still that does not mesmerized me much. And another thing i wanted to compress multiple CSS/JS files into one to reduce HTTP request and site loading time.

After searching a lot, i found many solution but none of them provide all in one. At last i come up to a 2 step solution.

Here is it for CSS files :

STEP-1: Packed my all css files using this little AIR tool here. This can pack JS files too.
STEP-2: Now compress again by eliminating all un-necessary characters from that pack file using 1 of the 3 following online sites.

  1. here – To use this you have to show it the URI of your CSS pack file. It has so many features.
  2. here -  My personal favorite.
  3. here -  This one has multiple options but still i like the 2nd one.

Now for JS files follow STEP 1 and then choose any one of the following compressor to make the job done:

  1. http://dean.edwards.name/packer/
  2. http://javascriptcompressor.com/

If you have a better solution please do share.

Note: here is nice link for CSS related stuffs from smashing magazine.

Comments (1)