Wednesday, July 25

Calling main method in Java


It possible to call main method in Java, here is the way ...:-


public class MainMethodCall {
static {
System.out.println("Static Block Executed");
String args[] = { "hello" };
main(args);
      }

public static void main(String[] args) {
System.out.println("Called main method by static");
}
}

Wednesday, June 20

How to Add duplicate value to HASH SET???


How to add Duplicate value to HASH SET


      In Java HASH SET doesn’t supports duplicate value, But we can add with the help of StringBuffer class. Here is the program J


import java.util.HashSet;
 // Adding duplicate to HASH SET
      public class AddingDuplicteToHashSet {
      public static void main(String[] args) {

            StringBuffer sb=new StringBuffer("Duplicate value");
            StringBuffer sb1=new StringBuffer("Duplicate value");
            StringBuffer sb2=new StringBuffer("Duplicate value");
            StringBuffer sb3=new StringBuffer("Duplicate value");
           
            HashSet set=new HashSet();
           
            set.add(sb);
            set.add(sb1);
            set.add(sb2);
            set.add(sb3);
           
           
            set.add(1);
            set.add(null);
            set.add("null");
            set.add("hello");
            set.add("Hello");
            set.add("HELLO");
            System.out.println(set);
}
}

Tuesday, February 28

Variable initialization Technique

Hi readers try the following code in any programming language


int a=09;
int b=08;

You can use any primitive data type in the place of 'int', This will give compile time error..
The reason is the 00-07 is octal character range, When your are using 08 & 09  the complier thinks out of range..

Try coding and explore something

Thursday, August 25

Save our Earth from E-waste

                            Save Our Earth



 


                            I should think about the Electronic waste [E-waste], Why not me only, everyone should think about it. Last night I watched a movie Wall-E, which posturized the future world. The amount of waste material is directly proportional to the number of productions. For example when the production of a computer, we use X number of transistors, plastic, glass and diodes etc. After a few days later technology will find out advanced products. So the earlier products become obsolete. This time the waste material is X times greater than production. We couldn’t recycle or destroying this waste. Actually we do not have any clear-cut idea about recycling. If we burn this plastic materials, it harm our environment. Everyone knows it but many continue this nonsense. Please never burn plastic.



I noticed that some guys throw out the home waste at vulnerable areas like forests and mountain ranges. They behave like senseless mechanical beings. This plastic material affects the normal growth of root systems, creates water pollution, and is very very bad for our eco system . The movie WALL–E describes the defects of waste management. In 2805, the movie says, we will miss greenish trees, blue sky, rivers and finally this magnificent earth. Did you ever think about the human became A ROBOT? After 200-500 years later this might happen. Thank God we are safe: NOW! But we are responsible for the future.


What can we do??

I have many suggestions. First reduce the use of plastic material and promote the technology like green computing. Now governments spends money for research in nuclear technology and weapons etc. Last week Japan faced Fukushima nuclear plant destruction; not only Japan but also Asian countries expect acid rain due to this problem. This is the right time think ‘ How can we clean nuclear rays from air? ’ .Governments should start ‘ clean waste ‘ plants and research labs and more. If you want to live in this beautiful world, and leave a wonderful legacy to the next generation, please think and share this with your friends, Live in nature…. Be one with nature.


Friday, May 20

Backup your mails

G-mail Backup




                           The search engine giant Google is never short of solutions for problems that may crop up any moment. In India last month Google suffered the 'Bug' problem with G-mail account and many users lost their mails. This is the right time to introduce offine facility. Listen to the words from Matthew R. Glotzbach, director for product management, "I think in the near future you will see the offline capability return to the Apps suite," We can expect this feature at the end of this year or as new year gift of 2012.Any way In the present condition we can backup mails by Gmail Backup, developed by Jan Švec, Filip Jurčíček. Not only back up but also restoring toois available with it.

The latest release is 0.107, which welcomes improvisation by comments. If you are using Gmail Labs, make sure you have enabled the IMAP access. Otherwise Gmail Back up will say "Unsupported language of Gmail". If you wish to use this software in Linux you will need the wxPython (http://wxpython.org/) packages installed. It also requires the ctypes module, and it should be included in the Python 2.5 distribution. Google Labs is one of the best features from Google, unfortunatly, though not so familure with users.

Please backup your mails using Gmail backup, Oh! you should not worry about the password, They will not store password. Passowrd is not a problem when you are using "2 step verification" Softpedia certified 100% virus, spyware and adware.



You may download Gmail Backup @

http://home.zcu.cz/~honzas/gmb/gmail-backup-0.107.exe

Friday, May 13

Hack Your Own Google Account

                              Hack your own Google account



           
                            In this article I would like to explore on six ways how your Googl account may end up in trouble. Google introduced new security technique against these methods, hence I request you to use Google ‘2 step verification’ to protect your account. I hope this will give sound knowledge about hacking and may help you protect other internet accounts too.



1. Using Keyloggers is one of the Easiest Way to Hack Google password. Not only for Google, but also We can hack Internet bank details too. Keylogger programs can spy on what the user types from the keyboard. If you think that you can just uninstall such programs, you are wrong as they are completely hidden.

          A keylogger, sometimes called a keystroke logger, key logger, or system monitor, is a hardware device or small program that monitors each keystroke a user types on a specific computer’s keyboard. Keylogger is the easiest way to hack account.A keylogger program is widely available on the Internet. It is a Trojan Horse. The worst one is SniperSpy.


2. Phishing Attack is the most popular way of hacking/stealing other’s password. This attact works by using fake login pages to fool innocent Orkut users to enter their Orkut username and password in these fake login pages instead of the real ones. When the users land on these pages they enter their Orkut username and password thinking it to be the real page but actually it is other way round. It submits all the entered details to the creator of the fake login page. In this way it’s obvious for many people to lose their Google account password.


3. Orkut New Features: Some sites on internet may claim to offer many additional features for Orkut users. Also these sites will offer a login page from their own website and force users to login to their Orkut account from this page itself in order to gain access to the additional features. In fact these sites take away your password when you enter your Orkut username and password on their pages. This is similar to that of phishing attack.

4. Community Links: Many times you are provided with a link to a community in a scrap. Read the link carefully, It may be something like http://www.okrut.com/Community.aspx?cmm=22910233 OKRUT not ORKUT. This is definitely a trap created by the hacker to hack your Orkut password. Clicking on this link will take you to a fake login page and there you lose your password.

5. Java script: You must have seen circulating scraps that asks you to paste this code in your address bar and see what happens! Well sometimes they also leak out your information. Check the code and if you are unsure of what to do, then I recommend not to use it. So be careful, javascripts can even be used to hack Orkut!





6. Primary mail address: If by some means a hacker came to know the password of your Yahoo mail or Gmail, which users normally keeps as their primary mail address in their Orkut account, then hacker can hack Orkut account by simply using USER ID and clicking on ‘forget password’. This way Google will send link to the already hacked primary email ID to change the password of the Orkut account. Hence the email hacker will change your Orkut account’s password. Hence your, Google account is hacked too.



So a better thing would be to keep a very unknown or useless email ID of yours as primary email id so that if the hacker clicks on ‘Forgot password’ the password changing link goes to an unknown email id i.e. not known to the hacker. Hence your Google account saved.

So, I hope this post reminds you of the cautions we need to take in this wide web world to protect your Google account, Please refer Google two step verification article to protect your Google accounts.

Friday, March 18

Google Account Protection

                    Dobule Key Protection for Google Account




          My sister wants to check my internet activities, so she asked my mail password. Now I don't have worry about it, earlier also, coz nothing is there. But today she asking my mobile phone also. Thanks Google.com for protecting me from hackers, also from sister.

                           On the last month Google.com had  annouced "2 step verification" . This is a extra layer security. That is means that is someone steals or guessess your password, but they still can't  sign in your account without your phone.

               You can activate this service from Google account settings. This very easy to config, thtas why note explained. After confirmitation of cell phone/landline Google will providing you 10 back up codes. That shoud be keep it in safe. If your phone is unavilable you can use these codes to access account.. Hey hackers are u ready to beat this magnificant services????

Monday, March 7

Four Security Suggestions from Facebook





If you are the unfortunate victim of a scam on Facebook, and your Facebook account gets hacked, there are several steps you can take to reclaim your account and your get your Facebook life back in order.

1. Attempt to Reclaim your Account -If your account has been hacked, but you can still access your Facebook login email address, then you can reclaim your account by resetting the password here: http:facebook.com/reset.php. You may also use the "Forgot your password?" link on the Facebook sign on screen. If you know the hacker changed the email address you use to log in to your Facebook account, report the issue to Facebook with this link: http://www.facebook.com/help/?page=1011#!/help/?page=1023. They will investigate the matter and attempt to restore your account.

2. Change your Passwords - The hacker obviously gained access to your email address and password somehow, so you need to make sure you change the password to your email address immediately. If you use the same password to access other accounts, especially banking, financial institutions, and other email addresses, etc., then make sure to change those passwords immediately as well. Assume the hacker gained complete access to the email account you use to access Facebook. Carefully assess the impact of the compromise and try to do as much damage control as possible.

3. Scan your Computer - It is likely that the hacker gained entry to your computer through a virus or other malware. Make sure you have a current and up-to-date anit-virus program installed on your computer, and do a thorough scan of your system. If you accessed your Facebook account from another computer, then let the owner of that computer know of the attack. They will need to scan their machine as well.

4. Notify your Friends & Family - Getting hacked can be an embarrassing and humiliating experience, but don't let this discourage you from notifying your friends and family of the incident. The hacker may use your account to send them malicious links and to phish for their personal information as well. By alerting them immediately, you can help them avoid the same situation you have found yourself in.

Lastly, take a deep breath and try not to panic! It may take a little bit of time and effort to correct the situation, but quick action on your part can help to minimize the damage caused by the incident and help get things back to normal

Monday, February 21

Letz Compute,,,,

Windows Phone 7






                                           Windows Phone 7 is a mobile operating system developed by Microsoft, and is the successor to their Windows Mobile platform. It was launched in Europe on 21st October 2010. It is not related to Windows 7 Operating System. Microsoft's marketing budget for the Windows Phone 7 launch is approximately $500 million. Windows Phone Marketplace allows buying and selling applications in 17 countries and regions: Australia, Austria, Belgium, Canada, France, Germany, Hong Kong, India, Ireland, Italy, Mexico, New Zealand, Singapore, Spain, Switzerland, Puerto Rico, United Kingdom, and United States and supports five languages: English, French, Italian, German and Spanish.

Must know facts ::

Wallpaper :: Windows Phone features a new user interface, based on Microsoft's Windows Phone 7 design system. The home screen, called the "Start Screen", is made up of "Tiles". Tiles are links to applications, features, functions and individual items (such as contacts, web pages, applications or media items). Users can add, rearrange, or remove Tiles. Tiles are dynamic and updated in real time - for example, the tile for an email account would display the number of unread messages or a Tile could display a live update of the weather.

Battery Life:: Users didn’t have to worry about battery life, the engineer’s have done tricky jobs for that. The default Windows Phone 7 user interface has a dark theme that prolongs battery life on OLED screens as fully black pixels don't emit light.

Social Networking :: Windows Phone 7's integration with popular social networks such as Face book and Windows Live and G-mail services. So it is very easy to upload your photos to it with the help of hub, which combines local and online content

Touch me :: Windows Phone 7 uses multi-touch technology. Users can input text by using an on-screen virtual keyboard, which has a dedicated key for inserting emoticons. Manufactures can include hardware keyboards too.

WWW :: Windows Phone 7 features a version of Internet Explorer Mobile with a rendering engine that is "halfway between IE7 and IE8". Supports six tabs, which can load parallel. Adobe releases flash player for Windows phone7, now also it supports YouTube video streaming. Bing is the default search engine on Windows Phone 7 handsets due to the deep integration of functions into the OS. However, Microsoft has stated that other search engine applications can be used.

Do your work with MS office ::Microsoft Office Mobile provides operability between Windows Phone 7 and the desktop version of Microsoft Office. Word Mobile, Excel Mobile, PowerPoint Mobile, OneNote Mobile, and SharePoint Workspace Mobile allow Microsoft Office file format to be viewed and edited on the go

Minimum Windows Phone 7 device requirements ::

1. Capacitive, 4-point multi-touch screen with WVGA (800x480) resolution

2. 1 GHz ARM v7 "Cortex/Scorpion" or better processor

3. DirectX9 rendering-capable GPU

4. 256MB of RAM with at least 8GB of Flash memory

5. 5-megapixel camera with an LED flash and FM radio tuner

6. 6 dedicated hardware buttons - back, Start, search, camera, power/sleep and Volume Up and Down...





LG, Dell, HTC, Samsung, Sony Ericsson, Toshiba and Qualcomm will make hardware for Windows phone 7 OS. I hope in future this will be known as a palm computer and beats I-PAD. Are you ready to buy your palm computer???

Saturday, January 8

How is secure your Password

My Password is secure; What about you??






What is a password?

Is it a code to protect your account?

Yes, password is combination of character, symbol, and numbers etc. to protect your account.

Last year, a website published that most of the people used their password as 123456, a-z, 0-9 & their name.. It doesn’t make any sense in this world as this is very easy to identify by hackers.

I think now you have a question in your mind.. “How can we set a secure password?”

It is very easy to set a secure password. When you set a password, it must contain at least one symbol, upper case letter , lower case letter, number etc.. Minimum 10 letters are needed in your password..



Suppose you created a mail account in Hotmail [First E-mail service by Sabir Bhatiya]. Then registered your details in other website using your mail id with same password.. So your password is shared.

Remember ::When you want to register in a website , you must use different password for that website..

One important things is that your account provider will not ask your password by E-mail. If you want someone’s password, you can hack it. If you do this job it’s a cyber-crime. So never try hacking. To type password , it is better to use ‘on screen keyboard’. Because keylogger software will get your password, if it is in your computer.

To secure your password, use on screen keyboard and to type your password & your password must contain lower case, upper case character, symbol and numbers . My password is now secure; what about you??

Happy, but careful browsing J