Thursday 25 July 2013

Country State city Autofill using Ajax in PHP



Automatic fill Country wise state and same as state wise city fill without page refresh.
using Ajax this concept is possible.

Country State city Autofill using Ajax in PHP

Saturday 20 July 2013

How to Pendrive Bootable for windows 7,8,vista

Microsoft provide one tool that using you can usb pendrive bootable.
This tool is provide by the Microsoft company and simple to easy to create the bootable pendrive.
below link through you can download that tool.

Pend drive bootable download here


Monday 15 July 2013

How to remove write protected error from a USB pen drive



1.  First of all try to locate a small switch (if any, that you may have not noticed) at some place on the drive or memory card reader. This is the prime reason for this error. If there is one, switch it to the other side to turn the protection off.

2. The problem can also be caused by some virus activity so just get it scanned by some updated good antivirus which may solve your problem.

3. Download HDD Low Level Format Tool 4.25 and run it to execute a “low-level format”on the drive. This may take few attempts to actually remove the error.

or

1. Open Start Menu >> Run, type regedit and press Enter, this will open the registry editor.


2. Navigate to the following path:



HKEY_LOCAL_MACHINE\SYSTEM\CurrentContr…



Note: If the registry key StorageDevicePolicies key does not exist, you will need to create it



Download this batch file called add.bat from here, and double click after download the key will be automatically added to registry.



3. Double click the key WriteProtect in the right pane and set the value to 0 in the Value Data Box and press OK button 



4. Exit Registry, restart your computer and then again re-connect your USB pen drive on your computer. That is it, done.



If the above method does not work for you, follow the below steps:



1. Copy all the important data from this drive to your computer because this method will format the drive and erase all the data on the pen drive.



2. Now download the Apacer Formatting Utility, Unzip this utility to a folder on your hard disk, preferably on a folder on desktop screen for easy access (Do Not Try To Save it on pen drive). Keep your pen drive plugged in, and double click on the Start.bat file in the folder where you unzipped the above utility. This will start formatting your pen drive, wait till the formatting completes and the LED on your pen drive stops blinking. Remove your pen drive after than and plug it in again.



The above two steps will solve the problem. If you still face the problem, follow the below steps:



1. Goto Start > Run, type cmd and press enter, this will open command prompt.



2. Type the following command on the command prompt replacing X with the drive letter of your pen drive.



CHKDSK X: /F



The above two methods will help you fix the problem.



Note: For all those who are out of luck in fixing the problem with their portable drives, I would suggest you to get your drives checked or replaced by the manufacturer to fix it for you

Java Hosting FREE


This company is called CloudBees, you can visite their website from this link http://cloudbees.com/

CloudBees offer a free play with some limits , and it also have some payed pro plans , I encourage you to try their free play for sometime and when your app gets a lot of visits and you need more space , you can upgrade to the payed plan since it doesn’t cost much .
The free plans also comes with 1 free database of 5MB size limit, I think it will be enough for your first free app.
we will start by creating our first app on cloudbees :

 creating a free account at cloudbees:

creating your first app :

a new page will show up ,  you can now see cloudbees dashboard show up , we have to say that it is one of the best dashboard for managing apps , Clickstart button .
 choosing your app type:
a new tab will show up , requesting you to choose between a wide range of supported technologies like “tomcat 7″ , “play! framework 2″ , “scala” , “jax-rs” ,”grails application” ,”hibernate app” , “google go ” ,” clojure” , lets say that it supports almoste all recent java framework and technologies (tomcat , glassfish .. ) out there , so you won’t have to worry about the compatibility issues .
and you can configure them by clicking on configure button .
we will run our app by clicking “show in new window ” button
this is our app
running .


you can also remove the sample application provided by cloudbees  , and upload your own war file .




Finnaly what I like the most about cloudbees is that it support remote repository creation (Git repository and SVN ) , you can create your private or public repository by going to the repository tab, and by coping the repository to your local pc you  you can commit your change from Eclipse or Netbeans IDE directly to the remote repository by using the URI providers in the repository tab  .

Conclution :

Cloudbees with no doubt is the best providers for Java Application , based on the number of features they offer and also the cheap mounthly price comparing with their high quality service .

Wednesday 10 July 2013

Folder Lock using bat file

following code using you have to create one file that extension is .bat .
by default password is sunny. if you change the password then you have to change only where written sunny you have to set your password.
cls
@ECHO OFF
title Folder Confidential
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Confidential goto MDLOCKER
:CONFIRM
echo Are you sure you want to lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Confidential "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter the Password to unlock folder
set/p "pass=>"
if NOT %pass%== sunny goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Confidential
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md confidential
echo Confidential created successfully
goto End
:End