Google+

Monday, December 30, 2013

Program to display CIRCULAR PRIME numbers..

This program is used to display the circular prime numbers within 100.

EXAMPLE:

 197,971,719..97,79..3..

PROGRAM :

package Blog;
/**
 * @author Raju
 */
public class cirprime {
   public static void main(String args[])
    {
        for(int number =1;number<100;number++){
             if(isCircularprime(number)){
              System.out.println(number);              
          }}
    }
    public static boolean isCircularprime(int number)
    {
        int i=1,count=0,length = (int)(Math.log10(number)+1);
        int temp = number;
        while(i<=length){
           if(isPrime(temp))
                    {
                      count++;  
                    }
           temp = rotate(number);
           i++;
        }
        if(count==length)
        {
            return true;
        }
        return false;
    }
    public static boolean isPrime(int number){
        for(int i=2; i<number; i++){
           if(number%i == 0){
               return false; //number is divisible so its not prime
           }
        }
        return true; //number is prime now
    }
    public static int rotate(int number)
    {
        int length = (int)(Math.log10(number)+1);       
        int rotate = number%10;
        rotate = rotate * (int) Math.pow(10, length-1);
        number = number/10;
        rotate = rotate + number;
        return rotate;
    }       

}


Saturday, December 28, 2013

Program for displaying EVEN / ODD , FIBONACCI numbers and to SWAP without using Temp.

 Java is used in a wide variety of computing platforms from embedded devices and mobile phones on the low end, to enterprise servers and supercomputers on the high end.

1) This program is used to display EVEN /ODD numbers within a range you specify.

EXAMPLE :

EVEN numbers : 0 2 4 6 8 10 12 14 16 18 20 ....
ODD numbers  : 1 3 5 7 9 11 13 15 17 19...

PROGRAM :

package Blog;
import java.util.Scanner;
/**
 * @author Arun
 */
public class evenodd {
    public static void main(String args[])
    {
        System.out.println("Enter the range till which EVEN and ODD number to be printed :");
        Scanner scn = new Scanner(System.in);
        int numb = scn.nextInt();
        System.out.println("EVEN numbers within range is :");
        for(int i=0;i<=numb;i+=2)
        {
            System.out.print(i+" ");
        }
        System.out.println();
        System.out.println("ODD numbers within range is :");
        for(int i=1;i<=numb;i+=2)
        {
            System.out.print(i+" ");
        }
    }    

}

2) This program is used to display FIBONACCI numbers within a range you specify.

EXAMPLE:

Fibonacci numbers : 0 1 1 2 3 5 8 13 ...

PROGRAM:

package Blog;
import java.util.Scanner;
/**
 * @author Arun
 */
public class fibonacci {
    public static void main(String [] args)
    {
        int i=0,temp,currval;
        Scanner scn = new Scanner(System.in);
        System.out.println("Enter the range till which fibonacci number to be displayed :");
        int fib = scn.nextInt();
        System.out.print(i+" ");
        temp=i;
        i++;
        currval=i;
        while(i<fib)
        {
         System.out.print(currval+" "); 
         currval = i + temp;
         temp = i;
         i = currval;                             
        }        
    }    
}

3) This program is used to SWAP two numbers WITHOUT use of TEMPORARY variable :

EXAMPLE :

Before Swapping : a = -10 , b = -20
After Swapping : a = -20,b=-10

PROGRAM :

package Blog;
import java.util.Scanner;
/**
 * @author Arun
 */
public class swap {
    public static void main(String args[])
    {
        Scanner scn = new Scanner(System.in);
        System.out.println("Enter number A :");
        int a = scn.nextInt();
        System.out.println("Enter number B :");
        int b= scn.nextInt();
        a=a+b;
        b=(a-b);
        a=(a-b);
        System.out.println("Value in A :"+a);
        System.out.println("Value in B :"+b);
    }
    
}

Friday, December 27, 2013

Program to Rotate a Number using JAVA

Java a platform independent programming language.In this program you can rotate the number using Java.

EXAMPLE :
Original number:54321
Rotated Number :15432

PROGRAM :
import java.util.Scanner;
/**
 * @author Arun
 */
public class rotatetest {
    public static void main(String args[])
    {
        Scanner scn = new Scanner(System.in);
        System.out.println("Enter the Number to rotate");
        int number = scn.nextInt();
        int length = (int)(Math.log10(number)+1);       
        int rotate = number%10;
        rotate = rotate * (int) Math.pow(10, length-1);
        number = number/10;
        rotate = rotate + number;
        System.out.println("Rotated numb is "+rotate);
    }
}

How to reverse only words in a string in place using java ??

In this program you can reverse the words in a string without changing the order of placement of words using JAVA.

Example : -
original string : emoclew  ot   dehsaelnu-ofni  !! 
Reversed output : welcome to info-unleashed !!

Program :

package test;
import java.util.Scanner;
/**
 * @author Arun
 */
public class strrev {
   String original , reverse="";
   int i=0,t=0;
   void test()
   {   
    Scanner in = new Scanner(System.in);
    System.out.println("Enter a string to reverse : ");
    original = in.nextLine();
    int length = original.length();
    for (;i <length ;i++ ){
     if(Character.isWhitespace(original.charAt(i))||i == length-1)
       {
        disp(i);
       }           
     }
     System.out.println();
   }
   void disp(int l)
    {       
      for(int j = i;j>=t;j--)
       {
         reverse = reverse+original.charAt(j);
       }
      System.out.print(reverse);
      t=i;
      reverse =" ";
    }
   public static void main(String args[])
    {
        strrev s = new strrev();
        s.test();
    }
}


Tuesday, December 24, 2013

How to reduce data usage while using computer browsers in limited data plan ??

Computer browsers are mainly designed for broadband connection.They load more content then the mobile browsers.As it loads a full fledged web page it uses more data to be transferred.when we browse through mobile connection via data card or tethering with limited data plan it will be difficult for limiting the data usage.

Here are few tips for reducing the data usage.

1. Enable Click-To-Play plugin
    when we load a web page flash contents too get loaded along with it.This Flash content can be fairly large in size. To prevent Flash content from loading, you can enable the click-to-play plugin feature in your browser. When you access a page containing content that needs plugins – usually Flash, but occasionally Silverlight or something else – you will see placeholder images\. Click the placeholder and the content will download and play.
With click-to-play plugins, plugins won’t run automatically. They will only download and use your bandwidth if you actually want to view them.

2. Disabling images
   Images in pages to eats up your data.But unlike flash contents they use less data when compared to flash.We can disable those images.
  • For Chrome: Open the Settings screen, click Show advanced settings at the bottom, and click the Content Settings button under Privacy. Select Do not show any images.
  • For Firefox: Open the Options window, click the Content icon, and uncheck Load images automatically.
3. Disable Automatic updates
   When automatic updates are on your browser/operating system starts to scan for updates and updates if any.This may consume large amount of data depending on the update size.

4. Request mobile Website 
   You may request for mobile websites.Mobile website make use of less data unlike normal website.

5. Use opera Turbo
    When Opera Turbo is enabled, webpages are compressed via Opera's servers so that they use much less data than the originals. This means that there is less to download, so you can see your webpages more quickly.
Enabling Opera Turbo is as simple as clicking the Opera Turbo icon at the bottom-left of the Opera browser window. When you are on a fast connection again and Opera Turbo is not needed, the Opera browser will automatically disable it.

Thursday, November 28, 2013

Sharing and file transfer between systems in network with Samba - Windows and Ubuntu

With systems connected to local network you can transfer or share the files between those systems with simple steps.You can obtain the maximum transfer speed depending on your systems and router/modem transfer rate.You can attain high speed when you are wired then wireless.
 Now lets start how to do this ? For this you need system connected to local network (Windows / Ubuntu)

If it is Ubuntu system we need to install Package named SAMBA.you can install it using following



  • sudo apt-get install samba smbfs

Then we have edit the config file of samba to give access rights. To do this open the config file using



  • sudo gedit /etc/samba/smb.conf
Find the Authentication section and uncomment the line security = user and add a line to make look like.
security = userusername map = /etc/samba/smbusers
Now lets add samba user.

There are two steps to creating a user. First we’ll run the smbpasswd utility to create a samba password for the user.
  • sudo smbpasswd - a <username>


When it prompts for password enter it.Next, we’ll add that username to the smbusers file.
  • sudo gedit /etc/samba/smbusers


Add in the following line, substituting the username with the one you want to give access to. The format is <ubuntuusername> = “<samba username>”.  You can use a different samba user name to map to an ubuntu account, but that’s not really necessary right now.
  • <username> = “<username>”
> Now you can create samba shares and give access to the users that you listed here.
> Now move to file explorer right click the file you want to share and select share this.
> And in the window open select the option and click share.
Ubuntu - Ubuntu
>  In Ubuntu go to file explorer press  " ctrl + L " and type " smb://192.168.1.2" in the address bar.(change the address depending on your connection ip address)
You can also navigate to Network -> Browse Network and you find the home group in it you find the shared files.
 Windows - Ubuntu 
You can share file from windows similarly by right click the file you want to share and select sharing -> advance sharing and give share.
Now goto your Ubuntu system follow the similar steps as Ubuntu-Ubuntu share.
When it ask for username / password enter your windows system username and password.
Thus you are done !!

Sunday, October 27, 2013

Android development tool for Eclipse

Instead of Using the complete Android SDK we can tweak eclipse to develop android apps.To do this follow the simple steps given below.
  • First we need to download the Android developments tool.You can download the tool from android website.Link to website.
  • In it you see window like this depending on your operating system.

Download the tool and extract it.

Adding ADT plugin to Eclipse :

Next process in this to add the android plugin to eclipse.To do this follow the steps( you can refer Installing window builder on eclipse for reference ).

  • Open Eclipse.In it navigate to Help > Install new software.
  • Then copy and paste the link below to it.

   https://dl-ssl.google.com/android/eclipse/

  • Click add and in the pop-up window give the name for the plugin (Example: Android kit).
  • Click OK.
  • In the available software dialog box, select the check box next to Developer tools and click next.
  • In next window you see the list of packages need to be installed.And you have to select accept agreements. Click Finish
  • Now the packages will be installed and it prompt for restart of eclipse. In it click restart.
Configure ADT Plugin :

  • After Eclipse restarts, you need to specify the location of your Android SDK directory.
  • In this " Welcome window " select use existing SDK.
  • Then Browse and locate the Extracted SDK tools folder.
  • Click next.

Now your Eclipse is ready to develop Android apps.you have to add the respective android version for which you going to build and test in the SDK Manager. It automatically install the needed versions and corresponding tools when you select the version and click OK.


Saturday, September 28, 2013

How to chat using Google Docs ???

We have used many messengers, phones and many other gadgets for chatting with our friends..Have you ever tried to chat with your friends in Google Docs...
Now let me share you how we can use Google Docs for chatting..

Step 1 : Go to Google drive.
Step 2: Click the " CREATE " icon in top of left side. On the drop down click Document with blue icon.
Step 3: Now click on the "Untitled document " on top left to rename the file as " CHAT " .


Step 4 :  Now Click on the Share button on the top right near comments. you get a pop up window .
Step 5 : Enter your friends E-mail address on the e-mail area or copy the link that is displayed and mail it to your friend whom you want to chat.
Thus you are done when your friend start to edit document what he enters will be displayed to you..thus you both can edit document at a time..Sorry sorry both can chat...:)

Note : While you share don't change the option " Can Edit " else your friend can't edit the document and chat with you.

Useful Note : You can use this functionality not only to chat but it will be also very useful when you need to prepare your resume and your friend can help by making changes..or while preparing any other document you and your friend can work together on the same copy of file at a time and save time and effort..

Sunday, September 1, 2013

Samsung wave 525 tips and tricks - part 2 (Collection of large info)

Message
-Under contacts/message, swipe left to message that person-When messaging, long press the space bar to get shortcuts to punctuations(. , - ? @ !)
-When you view message, you can use multitouch feature to zoom in and out the text message -Swipe left or right to go to next or previous sms message-Tap on the name entered to get the number of that person.
-You can also type omega , dots above o stylish n and many more while typing message.To do this Goto Settings -> Applications ->messages -> Text messages -> character support. change from Automatic to " GSM alphabet ".while not using dictionary mode you can make use of this characters.

-While typing message you volume rockers to go begin or end line also to go to top of message.
Call
-Under contacts/message, swipe right to call that person
-To filter/block calls, go to call logs --> select contact --> tap on '...' --> select 'Block Contact' --> select you want to block : 'Call' or 'Message'. also you can long press the contact in call logs and select option for block contact.
-To record a call (depending on region & firmware), during an ongoing call , tap on '...' --> select 'Record Voice'. Record will be stored as .amr file in 'Sounds' folder

-Set FAKE CALL : Settings -> Applications -> call settings -> Fake call .Set the details and activate it. Press and hold the volume down key to activate Fake call,even when the key lock is enabled.

Camera
-press the camera button at the right side for quick access to camera or (camcorder)
-in camera mode, click Settings --> Tools and you can set review of photos after a shot is taken to be 'on', 'off' or review for 2 seconds
-press the volume keys to zoom in or zoom out

Internet
-when typing the URL, long press the .com to get different variants internet domains (.net, .org, .edu)

- Use volume rockers to move up /down a page.
Email
-go to Settings --> Applications --> Email --> Email accounts and select a web account to set the download limit to determine the no. of emails to download whenever you sync your web account. You can also set whether to download just the Subject or the whole email

General
-Under the App store, click on '...' --> Downloads to show a list of apps/games you have downloaded before
-You can turn on/off your keytone by pressing the volume buttons on the left side.
-Use the volume rocker (up or down) to scroll up or down long SMS/internet pages
-To take screenshots, press the menu button + lock key simultaneously
-Long press the menu button to see task manager
-Double press the menu button to access smart search function
-Under call logs/music player, long press the tabs and 2 rows of tabs will appear. rearrange the tabs to your preference and long press again to switch back to single row before closing

Music
-When in Album/Genre/Artist/ playlist, you can swipe right to play it all. E.g: When on Artist 1 playlist, you can swipe right to play all Artist 1 songs
-When in all track playlist, you can tap on the album cover to play song without exit the playlist jump to the music player
-Tap on music player while playing to get the status bar and other settings.

- check info about the song , Music recognition and find similar .when you have internet connection enabled.
-Swipe the visual image on Music player to different Visual effects.

Saturday, August 31, 2013

How to repair your pen drive when all folders change into shortcut

Ever have you wonder the files you copy on your pen drive turns to be a short cut  on your windows system.?? 
 This is because of the autorun.inf virus It is actually not an virus but can be a terribly devastating when one failed to remove it.It create a whole lot more of ending which caused the files in the pen drive failed to open.If you are facing the same problem don't get panic.Because the files you copied still remain on pen drive and it is hidden.Also you can't view the files even when you enable show hidden file and folders option on settings.But you may open the file when you click on shortcut created also this doesn't affect your file as it just hide the file creating shortcut.

This can be resolved by simple steps :
start > cmd  > type your pen drive path (say g: or h:)
Enter this command  : attrib -h -r -s /s /d g:\*.* 

Thus you are done.
Back up your files.Format your pen drive and use it..


Thursday, August 29, 2013

Shutdown computer remotely using cell phone..


How to Use Pendrive as RAM memory in Windows 7?


  • Plug in your pendrive -> Format with NTFS or FAT32
  • Now go to properties ->Select REadyBoost
  • Check Use this device ->Choose maximum space to reserve system speed
  • Click on Apply and OK.Your Readyboost PenDrive is ready Now to Use
  • My Personal Suggestion is to use HP and SanDisk, Pendrives for this work.

Friday, August 16, 2013

Install Google window Builder on eclipse - Work with GUI to create java application

Hope you have installed eclipse on your system.Now let me teach you how to install window builder so that you can make use of GUI to create your java apps without need of typing long pages of code.

INSTALLING GOOGLE WINDOW BUILDER :
  • In Eclipse, click Help > Install New Software... 
               Help > Software Updates Menu
  • In work with add the respective Google window Builder link for your eclipse edition.
  • You can copy the respective link from here 
NOTE : You have to provide the respective version link else it produce " parsing error "
  • Then click add
  • It loads the packages available for installation
  • Select the needed packages or select all
  • Click Next to confirm installation.
  • Read and accept the license agreement. To continue installing, select "I accept the terms of the license agreement" and click Finish.
  • When prompted to restart Eclipse, click Yes to restart.
UPDATING ALREADY INSTALLED SOFTWARE :

  1. In Eclipse, click Help > Check for Updates...
    Help > Software Updates Menu
  2. If updates are available, a dialog comes up asking for confirmation. Select all components to update then click Next then Finish to continue.
  3. When prompted to restart Eclipse, click Yes to restart.
OPEN JAVA FILE IN WINDOW BUILDER EDITOR :
  • Create a java file 
  • Right click it and select " open with " in that select "window builder editor ".
  • In the new tab opened, select the "Design" option at bottom of tab and start creating the window of your choice in GUI that opened.
Thus you are done..

Sunday, July 28, 2013

How to make your system to run smooth and fast ??

# Clean the temporary files and recent cache location that dump the memory.


  • ~  You can do this by following simple steps below.
  • Press "win-key+r " or open run from start menu.
  • ~ In the Run window , Type " temp " and click OK. If you are using first time you have to give admin permission.
  • ~ Now the temporary files window appears.Then  press " Ctrl+a " to select all the files.
  • ~ Click delete button.Some files show error that unable to delete skip those files.
  • = Similarly follow the steps to delete "recent" and "%temp%" files. 


# Clean the windows dump files and error files.

  • To do this Go to my computer.right click on the drive you have installed the windows and click properties.
  • In the window appears, Click " Disk Cleanup" appears next to the usage graph.
  • It starts to calculate the dump files.
        (Note : It may take long time if you do it for first time.) 
  • Now it show the list of files you can delete.Select all the files in file to delete area.
  • Now click OK button.
  • Same way you can delete the unwanted system dump files in memory by clicking on the button " Clean up System files" that appears in the disk clean up window.
  • If you are doing this for first time first clean the basic files first and then the system files as it may take long time to search both the files.
Clear the unwanted and dump registry file in memory.
  • To clear registry, you can use "Registry cleaner" 
  • There are many free reg cleaner available.
  • You can download it from here.
# Use game booster to play games or open a graphics file.
    :: you can download from here.

Thus you have tuned your system..

Saturday, July 27, 2013

Retrieve deleted email contacts...

Here are the steps which will help you to recover your deleted Gmail Contacts :-

1. Login to your Gmail account.
2. Once you have logged in, go to Contacts.
3. In Contacts, go to More actions->Restore contacts …
4. When the Restore Contacts window pops up, select a time to restore to and hit Restore. Please note that you can only restore deleted contacts within the past 30 days.
5. After that, you will see a notification on the top of Gmail’s user interface. You can click on Undo to rollback the change.


Here are the steps which will help you to recover your deleted yahoo mail Contacts :-

1. Login into your yahoo mail,
2. Once you logged in, go to contacts tab ,near inbox.
3. In the shortcuts click deleted contacts.you will be listed out of contacts you deleted within a month.
4. Now select the contacts you want to retrieve and click restore.now the contacts will be listed in main list.
Note : you can also delete the contacts permanently too.
5. Thus you are done...!!

Friday, July 19, 2013

Mysore Wax Museum - Melody World

 Based on music and musical instruments, this, one-of-its kind in the world wax museum exhibits over 100 life-size wax statues and over 300 musical instruments categorized in various bands and stage settings. Representing Stone Age to Modern instruments, some of the bands displayed are of Indian Classical North & South, Punjabi Bhangra, South Indian, Jazz, Rock, Middle East etc. It was established in October 2010 by an IT professional.It is located on the way to chamundeshwari temple mysore.

Timings : Everyday from 9.30am until 7.00pm.
Located at : 1 Vihara Marga, Sidhartha Layout, Mysore.

WAX MUSEUM - Welcome entrance 
Life-size wax statues and musical instruments from different part of world has been categorized and showcased.It says about the different lifestyle and tradition of past India.


Ancient telecommunication devices which where used during Mid and Late 19's

It speaks about different lifestyle of people lived from ancient cave men to recent life style...


Ancient Australian people
Kerala Musical Instruments

Also it contains many wax statues which creates awareness among people.. 
Statue saying " NO TO DRUGS"
It also has statues which says how Rich getting more rich and poor getting more,also about the cultural waste that is happening and unawareness of wealth in India.. 

Statue Showing how Art in India is consider without its real value.

The images above and below show the gap between rich and poor prevailing in India.
  

If you like this post.Give +1 for us..

Saturday, July 6, 2013

Aircel 3G Morning Offer - Chennai


This offer was in few other states of India.Now Aircel have given this to their Chennai users. 
By this Offer users can browse or download movies,games,.... at speed of 3g. This is a promotional offer from Aircel to attract users and To give the experience of 3G to their existing customers.

Users can avail this offer by dialing  *122*456#

The Offer will be available for 30 days and user can enjoy the benefits of this offer from 6 am - 9 am on each day of validity.

Note : Be careful and check balance on regular interval because they may charge you sometimes.

Installing PERL on windows

In this tutorial I teach you how to install PERL on windows and run UR first sample Program.To install   PERL we need the Following package :

  ActivePerl 5.16.3 - Download (25.7 mb)

Now lets begin Installation of Active Perl.

  • Launch the downloaded file. 


Continue the installation......


Mark both the selections...and continue installation..
Now on the final window click install.

  
Now setup will install necessary components on your windows system.Click allow if windows alert prompt appears.After setup have installed necessary files on computer you may get a window like below. 
  • Now the actual work begins.

Thursday, June 27, 2013

Windows 8 tips

Windows 8 keyboard shortcuts
Knowing at least some of the Windows 8 keyboard shortcuts will make your Windows 8 experience much more enjoyable. Try to memorize these top Windows 8 shortcut keys.
  • Press the Windows key to open the Start screen or switch to the Desktop (if open).
  • Press the Windows key + D will open the Windows Desktop.
  • Press the Windows key + . to pin and unpin Windows apps on the side of the screen.
  • Press the Windows key + X to open the power user menu, which gives you access to many of the features most power users would want (e.g. Device Manager and Command Prompt).
  • Press the Windows key + C to open the Charms.
  • Press the Windows key + I to open the Settings, which is the same Settings found in Charms.
  • Press and hold the Windows key + Tab to show open apps.
  • Press the Windows key + Print screen to create a screen shot, which is automatically saved into your My Pictures folder.
Use a picture password to log into your computer
Windows 8 includes a new feature called Picture password, which allows you to authenticate with the computer using a series of gestures that include circles, straight lines, and taps. Enable this feature if you want a new way to access your computer or have a hard time with passwords.
  1. Open the Windows Charms.
  2. Click Settings and then More PC settings
  3. In the PC settings window click Users and then select Create a picture password
Bonus tip: A four digit pin password can also be created and used to access your computer.