Saturday, December 31, 2011

How to setup LAMP server in Ubuntu by only one command

Here is a shortcut and easiest way of setting up LAMP server in Ubuntu.
Well, there is obviously option of installing packages separately for making ready a LAMP server in Ubuntu.
Open  terminal or Connect to remote server via it and then execute the following commad.
Only command:

Then the following window should pop-up in the terminal.

Select ([.] LAMP server) by pressing arrow key and do (OK) by pressing Tab key of keyboard. On the next screent, type your desired password for MySQL and Done!!!

Sunday, November 27, 2011

How to restore Gnome panel, Ubuntu 10.x later

Ubuntu gnome panels are nice enough to arrange shortcuts, menus, items on it. Even new panel can be added on gnome desktop's left, right or bottom side. But some times a panel can be customized or assembled roughly. Then you would like to reset all as its default sate. For that, open Terminal and run these following commands:



It should be restored on its default settings!!!

Friday, November 25, 2011

How to install memcache on MAMP 1.9

I assume you have Apple developer tools (Xcode) installed already because we need GNU Compiler Collection (gcc) (that is integrated to Xcode installation) according to complete the following process. Also I assume you installed MAMP 1.9.x with PHP 5.3.x
Lets follow these steps:

Step 1: Need to Download the PHP source of version same as of your MAMP's PHP and configure it. For these, open the terminal and run the following commands:


Step 2: Now need to Downloadthe latest stable version of memcache and then configure it. I assume you are in the /Downloads/ directory now on terminal. Then run the following commands:

Step 3: Lets make and install memcache by running the following commands. I assume you are in the /memcache-2.2.6/ directory on terminal.


Step 4: Add this new extension on php.ini file. That file can be found here /Applications/MAMP/conf/php5.3/php.ini
Edit the file by adding the following line

extension=memcache.so

Step 5: Restart the Apache server.

Done!!!

Monday, November 21, 2011

How to install Citycell Zoom ZTE AC2726 modem on Mac OSX Lion 10.7.x

1. Download the application from here: http://www.box.com/s/f3mayu4hppdyx2x8uufu
2. Install it on your Mac
3. Plugin your Zoom Modem.
4. Ignore any auto installation if occurred. Just launch the installed app.
5. Configure phone, user, pass to #777, waps, waps respectively under [settings] then press the [netconnect] button

Wednesday, May 25, 2011

How to authenticate user using their Facebook, Twitter account

Now a days, getting users detail on your website or web application is a normal fact. But its so boring to users/visitors to fill up a registration form then choosing a userid and finally to generate or remember a new password just for accessing your site. They would obviously like/prefer a button to registered automatically to your site/app.
Thats why twitter oAuth, facebook connect become more popular to both users/visitors and providers/owners. Here I will show you such an example module that can be used for this purpose.

After a short work flow, we will get some thing like the following screenshot:



First lets go through the making of the mark up:

Thursday, March 24, 2011

How to make a thumb up/down voting by ajax

Here I will show a very simple technique to make a thumbs up/ thumbs down voting using ajax. It is something like youtube concept where a content such as post or comment will have votes after the summation of up vote and down vote. So, lets make it...

Step 1: Here is our index.php file. The file has necessary info in it in commented lines.



Monday, March 21, 2011

How to remove scrollbars from facebook iframe app

Well, I will share some techniques collected from several resources that can be implemented to get rid of your unwanted scrollbars of your iframe facebook app. So, here is the first technique:

Using the latest Facebook Javascript SDK



Using Latest Javascript Facebook SDK [Without using Body OnLoad]