Download iPhone SDK using wget

August 28th, 2009 8 comments

If you are using slow connection like me and trying to download the apples iPhone SDK , then you already know how much tough it is , because of apple only allow to download this file after login. And non of the download manager can give you the resume facility. so after trying 2 days with different downloaders i tried wget and got sucess 😀

Here i am discribing how to do it. First login to (if you don’t have any account, just create one, it’s free). then use firefox extension to export (firebug+firecookie) cookie to cookie.txt . Then rest of the task simple. just copy download link from and give the following command in the console.

$cd /path/to/cookie.txt

$ wget -ct 0 –load-cookies cookie.txt your_file_url

that’s all, now you can resume download without any problem. Here is the command i used to download to download it.

$ wget -ct 0 –server-response –load-cookies cookies.txt

If this post help you, don’t forget to share it with others.

Categories: iphone, mac, Tricks Tags: , , ,

my book on cacti

July 8th, 2009 35 comments

hi all,

today is my one of the happiest day of my life. today packtpub ( declared a new book on cacti that going to release this month. and i am one of the author of that book 🙂

all credit goes to my wife tania sabnam 🙂 , without your help, it was not possible for me . love you.

my first book on cacti

my first book on cacti

here is the books url 🙂

buy from amazon: cacti 0.8 network monitoring

my psp :)

March 27th, 2009 10 comments

last month i was too busy with my office work and another secrate work (i will declare it very soon). in that time suddenly i bought a cool psp 3006 🙂 . all credit goes to my wife & girl friend tania sabnam 😀

psp 3006

psp 3006

i am really happy with it’s performance. games i played:

1. god of war

2. burnout legends

3. full auto 2

4. capcom collection (20 games)

5. GTA

6. mercury meltdown


why not join with me 😛

Categories: psp Tags: ,

Website optimization 02: enable deflate /output compression (debian/ubuntu)

November 14th, 2008 2 comments

On the first post of this series we learned how to disable etags. in this post we will learn how to enable output compression.

Before enable this, let me introduce what deflate do. deflate is apache module, that main task is to compress all the output before serving or sending to client.

Nowadays most of the browser are enough expert to handle this. Here main technique is , apache will send the output in compressed format, after receiving this output your browser will uncompress it and render the formated output.

This tricks will really improve your site performance, because user will get your site with less time and bandwidth.

Let me give you an example: let’s think if you are using jquery javascript library that size is 94 Kilo bytes, but if you enable the deflate with default configuration, it will be only 14 Kilo bytes. unbelievable right ? believe me, it’s true. And we are using this on our most popular product .

OK, now i am showing how you will do this:

first of all you need to enable deflate module. You know i am debian fan, so i am giving commands for debian linux, other linux/unix commands will almost same. as ubuntu is comes from debian, these commands will also work for ubuntu

Open a new terminal and give this command.
sudo a2enmod deflate

it will enable deflate. Wait, you are not finish yet. little work left.
create new file called deflate.conf in your apache conf.d folder. and paste the following code:
<Location />

# Insert filter
SetOutputFilter DEFLATE

# Netscape 4.x has some problems…
BrowserMatch ^Mozilla/4 gzip-only-text/html

# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip

# MSIE masquerades as Netscape, but it is fine
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# Don’t compress images
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png)$ no-gzip dont-vary

# Make sure proxies don’t deliver the wrong content
Header append Vary User-Agent env=!dont-vary


save the file, and restart apache.

sudo /etc/init.d/apache2 restart

that’s all. now you can see the different.

**if you have not enabled header module of apache, please remove the line “Header append Vary User-Agent env=!dont-vary” from deflate.conf .

For more customization or option of deflate, please visit

WordPress with full bangla language support

November 8th, 2008 26 comments

Day by day more blog are coming. It’s really great news for everyone. As lot’s of bengali are asking me about WordPress bangla language file. here it is 🙂 .

In this post i wrote a little “howto” to translate or use WordPress in bangla.

First of all you need to checkout latest language pack form meghdut site.

Open your terminal and give the under given command (if you already installed subversion otherwise search google how to install subversion)

svn co .

This command will checkout latest language pack from subversion repository. or you can open in your browser and right click on file and select “save link as”.

Now you need to upload these files to your WordPress installed directory.

First make a folder called languages in wp-includes/ then upload these files to that language files.

Or if you are maintaining you WordPress (that i always suggest) then enter to that language folder then execute this command

svn co .

it will download latest langugage pack from subversion repository. more over if the repository file updated just run “svn up” on languages folder, it will get latest update from repository.

Now you need to configure your WordPress to use this new language files. so edit your wp-config.php file that you will get in the root folder of your WordPress directory.

replace define (‘WPLANG’, ”); with define (‘WPLANG’, ‘bn_BD’);

save it , done 🙂

open your blog in any browser and see the magic 🙂

**all the string will not comes with bangla, you will need to edit some values from your admin panel also, like the titles of widgets.

If you have time please visit this page and help them to translate WordPress 🙂

For writing bangla, you will need the bangla writing plugin that you will get here.

**i wrote this tutorial in short time, so may have some mistake, please inform me in comments.

Website Optimization 01: disable ETag in apache (debian/ubuntu)

October 20th, 2008 10 comments

From last few months i am working to optimize our server, because right now we are getting huge amount of hits everyday (1,00,000 + hits). In this series i will describe the tricks that i learned 🙂

On my first post of this searies i will talk about ETag. Before disable this, first we need to know what is ETags. From wikipedia:

An ETag (entity tag) is an HTTP response header returned by an HTTP/1.1 compliant web server used to determine change in content at a given URL. When a new HTTP response contains the same ETag as an older HTTP response, the contents are determined to be the same without further downloading. The header is useful for intermediary devices that perform caching, as well as for client web browsers that cache results. One method of generating the ETag is based on the last modified time of the file and the size of the file.

In certain situations, ETags may not improve the performance of a web application. For instance, some ETag generation schemes incorporate the file’s inode on the system. The file’s inode is unique to the file only on one specific machine. If a site has multiple servers, each with its own copy of the file (i.e. load balancing), then a user’s request for the same file may get served by a different machine. In that case, the inode will almost certainly be different and, if it is used to generate the ETag, it will cause the file to be re-downloaded.

So, this is not always helpfull for all type of sites. Always remember, if you are not using anything, you should not enable or kept enable on server.

Apache by default enable this ETags. We need to disable this to get better performance. Here i am describing the steps for debian and ubuntu linux.

We will take help from mod_header to disable ETags, so first we need to enable the mod_header (apache module)

sudo a2enmod header

sudo /etc/init.d/apache2 restart

this command will enable mod_header. Now open /etc/apache2/apache2.conf with your faviourate browser.

sudo nano /etc/apache2/apache2.conf

then paste the under given code to this apache2.conf file

Header unset ETag
FileETag None

now restart the apache2, and check if it working or not. If every thing OK, then you will not see the etags anymore 🙂

For better understanding i am giving you 2 screenshots.

Before ETag disable

After ETag disable:

If you don’t have root access to server, you still can do this from .htaccess , just copy that code to .htaccess instate of apache conf file.

Ask me if you have any question or problem about ETag.


July 29th, 2008 1 comment

hi visitors,

everyday i am getting more and more visitor on my technical post. recently i got a new macbook pro, and playing with it. and thinking to sharing my knowledge on mac with all of you. so started – a dedicated site for mac user/lover. recently i got 3 more guys who joined with me as contributor there. they are salahuddin66, zaher and oshim bhai. if you think you can also join with us, please register your account and send me request to smibrahim[at] so that i can add u as author.

anyway let’s go to 🙂

Categories: mac-talks Tags:

phpmailer for codeigniter (ci)

May 19th, 2008 15 comments

on our new server we was getting problem with mail sending. yahoo and some other mail server was not receiving our mails to there inbox. so i imported the most popular php class (phpmailer ) in codeigniter as plugin. it’s install and use is too simple. you have to download the zip file from here, then unzip it to your plugin (systemplugins) folder. then edit phpmailer_pi.php , and edit the default configuration as needed as your mail server (default configuration will work fine with gmail smtp, you only have to edit the user name and pass) .


phpmailer for codeigniter


you can now use all the functions that phpmailer supported. here is a the example that you will get in phpmailer site, but in ci format.

 < ?php
 * Created on May 19, 2008
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates

 class Action extends Controller {

	function Action()

   function testMailer()

	   $mail=new PHPMailer();

	$mail->SMTPAuth   = true;                  // enable SMTP authentication
	$mail->SMTPSecure = "ssl";                 // sets the prefix to the servier
	$mail->Host       = "";      // sets GMAIL as the SMTP server
	$mail->Port       = 465;                   // set the SMTP port 

	$mail->Username   = "[email protected]";  // GMAIL username
	$mail->Password   = "xxxxxx";            // GMAIL password

	$mail->From       = "[email protected]";
	$mail->FromName   = "sender name";
	$mail->Subject    = "This is the subject";
	$mail->Body       = "Hi,This is the HTML BODY";                      //HTML Body
	$mail->AltBody    = "This is the body when user views in plain text format"; //Text Body
	$mail->WordWrap   = 50; // set word wrap

	$mail->AddAddress("[email protected]");
	$mail->AddReplyTo("[email protected]","sender name");
	$mail->AddAttachment("/path/to/");             // attachment
	$mail->AddAttachment("/path/to/image.jpg", "new.jpg"); // attachment

	$mail->IsHTML(true); // send as HTML

	if(!$mail->Send()) {
	  echo "Mailer Error: " . $mail->ErrorInfo;
	} else {
	  echo "Message has been sent";



using ubunt ? need non-free software ?

April 4th, 2008 2 comments

today i passed some time tune my ubuntu gutsy (7.10). at the time of searching on the google i found :). from that site:

Medibuntu (Multimedia, Entertainment & Distractions In Ubuntu) is a repository of packages that cannot be included into the Ubuntu distribution for legal reasons (copyright, license, patent, etc).

their package collection is so interesting. they have:

  • acrobat reader
  • w32codecs (also w64codecs)
  • googleearth
  • skype
  • etc 🙂

isn’t it interesting  ?

before getting this site, i was really missing my favourite “w32codecs”

to use this repository you have to run these commands (it’s too simple)

first get the repository address:

sudo wget -O /etc/apt/sources.list.d/medibuntu.list

then add the gpg key to trusted keyring (so that you will not get warning each time you do something with apt)

wget -q -O- | sudo apt-key add - && sudo apt-get update

too simple !!

thanks for there hard work , to make life more easy :)

my engagement party

March 23rd, 2008 10 comments

last 14th march was my engagement date with tania sabnam. everything went fine. thanks to Allah.

i uploaded some pictures of the party on this server.

Categories: Personal Tags: , , ,
77 queries in 0.213 seconds