Thursday, July 15, 2010

The New Indian Rupee Symbol


The Indian Rupee joins the league of the Dollars and Euros after all by having its own symbol as its identity for the world.

As you see, this is the new INR Symbol. This symbol was a result of a competition proposed by the Govt. of India on 5th March 2009, though after a long time since then, the Govt finally gave its verdict on 15th July 2010, as to what would be the new symbol for the Indian currency, and this was chosen.

This symbol has a lot to tell then what it shows, the new symbol is a blend of the Devanagari ‘र’ and the Roman capital ‘R’ without the stem. The parallel lines at the top(with white space between them) make an allusion to the tricolor Indian flag.

This symbol will be officially be included in the unicode and would be available in the text editors shortly like the Dollar and the Euro symbols.

It has given me one more reason to be proud about my country.

Jai Hind.

Sunday, July 4, 2010

Creating A iTunes App Store Account Without A Credit Card

In India many of us dont own credit cards and hence its difficult for us to register a itunes account in order to download apps from the App Store on our iPods and iPhones.
But there is a solution, you CAN create a app store account WITHOUT a credit card as well. :)

Here are the steps you need to follow,

1. Change the country/language by clicking at the bottom of the main iTunes page according to what is applicable.
2. If your country has a iTunes store then you will have to click the App Store tab at the top of the iTunes store, if not goto step 3 directly.
3. Now goto the Top Free Apps, you NEED to purchase a Free App for this to work, so it is very important.
4. Once you click on the "free" button near the app that you chose, a "Sign In" form will pop up, click on the "create new account" button.
5. Click continue.
6. Read and agree to the "iTunes Store Terms and Conditions".
7. Click continue.
8. Enter the details asked for, viz. your email address, password, security question, etc and click continue.
9. Now the Payment Method window will open, which will ask you to select a credit card type, but now it will have a option of "NONE" as well which wasnt present when you tried earlier. Select that option.
10. Fill in other details like Name and Address and stuff. click continue when you are done.
11. "Verify Your Account" screen will come. click "done".
12. Check for a mail from itunes in the email address you provided for opening the account.
13. There will be a verification link in the mail, click on that link to verify your email address.
14. Upon clicking that link you will see a "Congratulations" screen. Click "done" and you will be taken to the home page of iTunes App Store.
15. Your account is successfully created.
Njoy ;)

Thursday, July 1, 2010

Creating Bootable USB for Windows 7

Requirements
-- USB Flash Drive (>=4Gb)
-- Windows 7 iso
-- Computer with windows 7/vista

Steps to be followed;
1. Format Your USB Flash Drive
perform these steps in the command prompt of the windows.
a. plug in your flash drive.
b. Run Command Prompt as Administrator (start > All programs > Accessories > Command prompt), right click and select "run as administrator"
c. Type the following, this will give you the Flash drive no.
diskpart
list disk
number of your usb drive will be listed, assuming it to be disk 1,
d. Format the drive using the following cmd. (put the drive no. found in step c instead of "1" here.)
select disk 1
clean
create partition primary
select partition 1
active
format fs=NTFS
assign
exit

now your usb drive is formatted.
2. Making USB Bootable
1. insert windows 7 bootable disk(if using a disk).
2. change the path of cmd prompt to the directory containing the windows 7 boot directory.
d:
cd d:\win7\boot
3. now type in the following commands
bootsect /nt60 h: ("h" is the label of the usb drive)
4. close the cmd prompt. Our work here is done.

3. Copying the windows content into the usb drive.
copy all the windows 7 files and folders and paste them into the flash drive.
4. Set BIOS to boot using USB.
start the BIOS of your computer(by pressing the mentioned key when the machine starts up), and change the boot order such that USB comes at the first location.

And now restart your machine after plugging in the usb drive and install windows 7. :)

Java DB Connectivity

Class.forName(“sun.jdbc.odbc.JdbcOdbcDriver”);
String dataSourceName = “connectjava”; //user defined variable
String dbURL = “jdbc:odbc:” + dataSourceName;
con = DriverManager.getConnection(dbURL, “root”,”root”);
Statement s = con.createStatement();
s.execute(“insert into JAVA.test values(‘”+no+”‘,’”+name+”‘)”);
ResultSet rs1=s.executeQuery(“select * from JAVA.test”);