Friday, April 5, 2013

Javascript : Checkbox Validation

<html>

<head>
<script LANGUAGE="JavaScript">function ValidateForm(form){
ErrorText= "";if ( ( form.gender[0].checked == false ) && ( form.gender[1].checked == false ) ) 
{
 alert ( "Please choose your Gender: Male or Female" ); 
 return false;
  }
if (ErrorText= "") { form.submit() }
}
</script>
</head>
<body>

<form name="feedback" action="#" method=post>

Your Gender: <input type="radio" name="gender" value="Male"> Male

<input type="checkbox" name="gender" value="Female"> Female

<input type="checkbox" name="SubmitButton" value="Submit" onClick="ValidateForm(this.form)">

<input type="reset" value="Reset">

</form> 

</body>

</html>
Your Gender: Male Female

Monday, April 1, 2013

Google Nose : A Search Engine you can smell, April Fools' Day Prank

Google launches new product today Google Nose. A search engine you can smell. It's in

beta mode now.

With this you can go beyond typing, touching, speaking, Just smell it.

Google nose includes new smellLED High resolution. which smells upon your searches.

In addition, Google has you covered. Their "Android Ambient Odor Detection" allows you to collect smells on your phone.



Technology is taking new shape with Google Nose, so you will have to wait for it. 
Enjoy !

Thursday, March 28, 2013

Enable cURL in PHP in XAMPP, WAMP, Ubuntu and IIS Server

When running php scripts may be you have faces an error saying cURL not installed or not enabled. So to solve this error I'm giving you simple solution. Please follow the simple steps.

This will work for XAMPP, WAMPP or directly PHP (who are not using any software for server.)

For XAMPP :



  • Locate your XAMPP directory.
  • Open 'php.ini' file located at 'XAMPP\php\php.ini'
  • Now search for 'curl'.
  • Approximately on line no 952 you will get text like ';extension=php_curl.dll'
  • Now remove semicolon (';') from starting of line.
  • It is now 'extension=php_curl.dll'
  • Save file.
  • Restart Apache.


For WAMP : 

   Method 1 (Manually):
  • Locate WAMP directory
  • in WAMP directory open 'bin\php\php x.x.x'(according to your PHP version)
  • open 'php.ini' file. 
  • follow the same procedure as XAMPP from step 3.
   Method 2 :
  • Click WAMPP icon on system tray.
  • Select 'PHP > php extensions > php_curl' (see image)

For Ubuntu :

Run following command in Terminal.


sudo apt-get install php5-curl sudo service apache2 restart

And if you are not using any server above and using PHP with IIS server than follow the same procedure as XAMPP after locating 'php.ini' file in your PHP Installation directory.


Enjoy !


Saturday, March 2, 2013

Linux File System Explained

In the Linux operating system, all filesystems are contained within one directory hierarchy. The root directory is the top level directory, and all its subdirectories make up the directory hierarchy. This differs to other operating systems such as MS-Windows which applies a separate hierarchy for each device and partition.

  • /bin -- binary applications (most of your executable files)
  • /boot -- files required to boot (such as the kernel, etc)
  • /dev -- your devices (everything from drives to displays)
  • /etc -- just about every configuration file for your system
  • /etc/profile.d -- contains scripts that are run by /etc/profile upon login.
  • /etc/rc.d  -- contains a number of shell scripts that are run on bootup at different run levels. There is also typically an rc.inet1 script to set up networking (in Slackwar), an rc.modules script to load modular device drivers, and an rc.local script that can be edited to run commands desired by the administrator, along the lines of autoexec.bat in DOS.
  • /etc/rc.d/init.d -- contains most of the initialization scripts themselves on an rpm-based system.
  • /etc/rc.d/rc*.d -- where "*" is a number corresponding to the default run level. Contains files for services to be started and stopped at that run level. On rpm-based systems, these files are symbolic links to the initialization scripts themselves, which are in /etc/rc.d/init.d.
  • /etc/skel -- directory containing several example or skeleton initialization shells. Often contains subdirectories and files used to populate a new user's home directory.
  • /etc/X11 -- configuration files for the X Window system
  • /home -- locally stored user files and folders
  • /lib -- system libraries (similar to Program Files)
  • /lost+found -- lost and found for lost files
  • /media -- mounted (or loaded) devices such as cdroms, digital cameras, etc.
  • /mnt -- mounted file systems
  • /opt -- location for “optionally” installed programs
  • /proc -- dynamic directory including information about and listing of processes
  • /root -- “home” folder for the root user
  • /sbin -- system-only binaries (see /bin)
  • /sys -- contains information about the system
  • /tmp -- temporary files
  • /usr -- applications mainly for regular users
  • /var -- mainly logs, databases, etc.
  • /usr/local/bin -- the place to put your own programs. They will not be overwritten with upgrades.
  • /usr/share/doc -- documentation.
Enjoy...!!!

Tuesday, January 29, 2013

Thursday, January 17, 2013

Monday, January 14, 2013

Windows8: Introduction & Features - Walkthrough

Microsoft has released Windows8 with great features and graphics compared to before released operating systems. But still some users are hanged on Windows XP and Windows7.  However Windows7 was also a great features.

Here below I have listed some features of  windows8 that has never seen before this operating system.

Charm Bar

            Charm bar is a bar given right side to window screen. It contains Search, Share, Start, Devices and Setting button.  This bar can be popup by hovering your mouse pointer to top-right or bottom-right corner of the window or by pressing Ctrl + C also popups charm bar. By opening it also displays battery info, Date and time on the left side.


 

 

 

Settings

             As windows8 made for Tablet touch interface so that here settings are also designed according to touch interface. Though we can use mouse pointer instead of finger if using on non-touch device. As shown in below figure. You can change Users, Wireless, Notification, Search, General etc settings. However, we can change all this settings from Control Panel as well as in Windows 7.

Start Menu

           Windows 8 comes with totally charming and beautiful Start Menu, this type of menu has never seen in before released operating systems. This is specially designed for touch devices, so that here all apps icon is presented as tiles. This start menu contains Mail, People, Calender, Store, XBOX, Skydrive, Flickr Photos, Videos, Music, Maps, Internet Explorer etc. apps.

          By opening this apps and synchronizing with your Gmail, Facebook, Skydrive or other account you can chat online friends of Google Talk or Facebook Chat with Messaging application. Photos, Calender, Videos, Mail also will be synchronized automatically. People app will show your Facebook friends and their profiles. Store app is Windows Store from which you can download windows8 apps and games as well.  There are lots features that you can explore by experience.

Some New Shortcuts

+ C   >> Charm Bar
 
 + (1,2,3,4,5,6,7,8,9)  >> Respected app on taskbar
 
+ Q        >>App Search 
 
 + W      >>  Setting Search 



More Screenshots





Related Posts Plugin for WordPress, Blogger...