Posts

Showing posts from 2010

Creating Password Protected Webpage / Website

Some time if you want your website or webpage to be displayed to selected people or you do not want other people to see what is behind the Page. That time you need to create password protected Site. So today I decide to share basic steps for the same. 1. You need to create file named - .htaccess 2. Write below code in .htaccess AuthUserFile /yourserver/fullpath/where.htpasswdresides/.htpasswd AuthGroupFile /dev/null AuthName "Whatever Name you want to displayed with Prompt " AuthType Basic require user Usernameyouwant  3.  create .htpasswd file on your linux system by typing command.  htpasswd -c .htpasswd  Usernameyouwant   4. Upload both file to server. There is also online utility available here:  http://www.tools.dynamicdrive.com/password/

Ant Philosophy by Jim Rohn

I was surfing the web and I came across to very good resource of Jim Rohn 's Ant Philosophy. I have decide to share with you all. Ant Philosophy divided into 4 parts, mentioned below : 1. Never Give Up 2. Look Ahead 3. Stay Positive 4. Do All You Can Courtesy: The Ant Philosophy   Read full story here.

True ;)

Programming teaches us to be good managers. !!!

YSlow - Plugin for Firefox & Website Optimization

There are tools to check the website performance. I mostly use Firebug to get overall time taken to load resource. However one another good plugin is YSlow . Take a look and try it out. Courtesy:  Firefox addon

Extract compress files on Server using PHP

Hey All, Sometimes we need to upload large files and folders to server and it takes long time to complete. To make this process faster and simpler you can uncompress the files using one line of code using PHP. <? exec("gunzip -x filename.zip"); ?> You first need to upload the zip on server, make sure to give proper path in PHP code.  You can also compress Server files using below command. <? exec("zip -x filename.zip  Foldername"); ?> Please note, execution of above code tested on PHP running on Linux / Unix Server.

Removing Address Bubble from Google Map

We often use Google Map Embed Code to display Location. Using embed will display default Bubble with map address filled. Sometimes we want map without bubble, so here is the solution which I found and implement. 1. Open you Embedded Google Map Code. 2. Search for parameter as " iwloc=A " OR " iwloc=addr ". 3. Replace " A " OR " addr " with " nea r ". So the parameter will be " iwolc=near ". Pop up will be disappear and Bubble will displayed by clicking on location mark.

Happy Birthday to Google.

Google No. 1 in all... Happy birthday !!

PHP : Get Current Page URL

Below is the PHP code snippest to get Current page URL.need to use $_SERVER array to get the server information. $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";} $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $pageURL .= $_SERVER["SERVER_NAME"].":". $_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"] } else { $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } echo $pageURL;

JQuery - JavaScript Library

JQuery is JavaScript Library which enables to do most of the things easily. It reduces code and time of development. Most of the functionalities can be done easily such as event handling, documnet traversingm animation and Ajax interaction. jQuery is designed to change the way that you write JavaScript. You can find more info @ http://jquery.com/

Mozilla.org - the internet should be public, open and accessible.

Mozilla.org, a global community belives that the internet should be public, open and accessible. Learn more about mozila @ http://www.mozilla.org/ Contribute to Mozilla, learn more @ http://www.mozilla.org/contribute/

Zend Studio 5.5 Blank Main Window

After installing Zend Studio 5.5 bin files, when I start the Zend it displays blank window (Gray Colored). I googled it out and found that, the issue lies with some form of Java incompatibility. To Solve the issue, Open the ZDE files placed inside Application root (your home directory Path/Zend/ZendStudio-5.5.0/bin). On line 1694 you will find below code, debugOut "" unset POSIXLY_CORRECT Add options="$options -Dawt.toolkit=sun.awt.motif.MToolkit" on line 1693. So your edited file will be looked like this. options="$options -Dawt.toolkit=sun.awt.motif.MToolkit" debugOut "" unset POSIXLY_CORRECT Your problem will be resolved.  

Resolve: Failed to access IIS metabase

After setting up IIS and ASP .Net, if you get error as below. Failed to access IIS metabase, when trying to browse to .NET 2.0 Website To solve the issue try below command, C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis -i That might solve your problem. Good Luck !

Most Popular Programming Languages

Most Popular Programming Languages Posted using ShareThis

Reality

Reality is what we take to be true. What we take to be true is what we believe. What we believe is based upon our perceptions. What we perceive depends upon what we look for. What we look for depends upon what we think. What we think depends upon what we perceive. What we perceive determines what we believe. What we believe determines what we take to be true. what we take to be true is our reality.  -- Gary Zukav (American best selling author)

Reinstall GRUB using Ubuntu Live CD

Few days back I installed Ubuntu on Machine which already had Windows installed. Yes your guess is correct thats basically "Dual boot". The issue I had faced was on machine startup it starts Windows only and not been able to access Ubuntu, which was installed correctly. I searched many forums and articles, then I came to know about re-installation of GRUB  GRUB is a GRand Unified Bootloader. For more info, Please Visit:  http://www.gnu.org/software/grub/ . So I thought I should share the info with all.  Below are the steps required to perform. 1. Boot into the Live Ubuntu 9.04 CD 2. Open Terminal  3. Type command:  sudo grub [This will give you grub> prompt/shell] 4. On Grub Prompt Type below commands on by one. find /boot/grub/stage1  [This will give you the location as result. In my case the location was (hd1,2)] root (hd?,?) [? = the values returned to you as result of above command] setup (hd?) quit That i...

Happy International Women's Day!

Happy International Women's Day! All of you wonderful women inspire me so much.

Happy Birthday to Ahmedabad - 600th Year

Image
Ahmedabad is celebrating its 600 Year. Map From :  http://www.mapsofindia.com/

Google truly no. 1

Image
Makarsankranti or Uttarayan  Logo from Google. Courtesy: Google

Aman Ki Asha - A Indo Pak Peace Project

Aman Ki Asha is a brave, new people-to-people initiative by The Times of India and Pakistan's Jang Group to bring the people of two fine nations closer together. Culturally, emotionally and peacefully. Courtesy: Time of India, YouTube