Trending
Loading...
  • New Movies
  • Recent Games
  • Tech Review

Tab 1 Top Area

Tech News

Game Reviews

Recent Post

Thursday 17 November 2016
Simple Tricks to enhance your java cui programs

Simple Tricks to enhance your java cui programs

Today I will tell you how can you enhance your simple java CUI programs and applications with these small tricks and methods

How to clear the output screen through code


If you had ever make a vast java program then you might have been met with the problem on how to clear the output screen when a specific function is called or it is also needed in large menu driven programs .If you want the answer then you are on the Wright track.
In C++ it is easy to clear the screen by just invoking the function clrscr().However java does not provide any predefined function In order to do so yet this one line code can help you to clear the output screen .

System.out.print(“\f”);
I know you could not believe it but its true this one line can clear the output screen.
For your satisfaction see this video practical below.
c




My dprint and dpritln functions


To enhance your cui java program you could use these two user defined functions in your java program these functions can be used in place of of print() and println() of System class.

What’s special in them

These function provide a special typing effect to your cui program dprint() is similar to print() and dprintln() is similar to println().

dprint():-

        
public void dprint(String textToPrint, int timeToWait) 
           {
              int  i;
              for( i=0;i<textToPrint.length();i++)
                    {
                      System.out.print(textToPrint.charAt(i));
                       try
                          {
                            Thread.sleep(timeToWait);// stop the printing process for” timeToWait” mill seconds
                           }
                       catch (Exception e){}

                     }
           }



dprintln():-


                
                 public void dprintln(String textToPrint, int timeToWait)
                 {
                      int  i;
                     for( i=0;i<textToPrint.length();i++)
                         {
                           System.out.print(textToPrint.charAt(i));
                           try
                             {
                              Thread.sleep(timeToWait); // stop the printing process for” timeToWait” mill seconds
                              }
                           catch (Exception e){}
                         }
                           System.out.println();//changes the line
                  }



Here is a video practical which will show you what special effect it gives to the program.




 My halt function


If you have seen the previous video you would have found that there is a time gap between the demonstration between output using normal print and output using dprint() this gap is created  by my halt() it stops the program compilation for  a specific period let’s see how to code it.

public void halt(int timeToWait)  //timeToWait is taken in milliseconds
{
try
{
Thread.sleep(timeToWait); // stop the printing process for” timeToWait” mill seconds
}
catch (Exception e){}

}
Download The Document Here



Hope you like this tutorial .Happy programming
Saturday 5 November 2016
no image

Hack Wi Fi password


Hello world,
I shantanu yadav want to introduce you about the app to hack the password.

This app can access over wifi security and can hack the password of wireless connectivity. This app matches the pins which were saved in it.   If any of the pin matches with it shows the password to you.

              

Things Required for Doing This

*Let’s Start WIFI Cracking But before start WIFI hacking I let you know that this app can only hack WPS enabled security WIFI. this app doesn’t work in some devices due to their unsupported kernel version. In Latest Routers app can’t crack the WIFI password because Router’s PIN Not saved in app (Hopefully in next update of app more routers pin can be added). Depends on Router pin if it saved in app you can easily crack the wifi. Except these hurdles this app can hack almost 80 to 90% wifi password that have WPS Security.

Follow These all steps carefully

  1. First Install Busy box pro apk and Install it open busybox pro and wait for Supersu app popup grant permission to app by clicking on grant button. You will see like this see Image After that you see busybox is not installed message check below Image 2
    Click On Grant button
    Click on install button
    Click on install buttonClick on install button


  2. Click On Grant button
    Click On Grant button
  3. Click below this text “will be installed to” and select the path where to install buysbox choose system/bin (! Important). Don’t install it on system/xbin.
  4. Now click on install button and wait for seconds you will see popup It’s Look like buysbox is successfully installed close this and slide the tab if busybox is installed successfully you will see something like this check the image below
    Successful installed busybox


  5. Successful installed busybox Successful installed busybox
  6. Great You Done Half process now install the both apps first WPA/WPS tester and then Terminal Emulator. Open WPS/WPA Tester and give grant access  to app. Click on three dots and menu will appear and click on Check wpa_cli It show a popup wpa_cli commands not installed. click on Install experimental button and wait now again click on check wpa_cli it shows a tooltip text wpa_cli OK!
  7. Great ! Now open Terminal Emulator and type su and hit enter give grant access to terminal emulator and close the application.
  8. Open WPS/WPA tester app and click on green button in top it’s enable the wifi interface and then scan the wifi if WPS WIFI is available in your area then it’s shows with green lock button. click on wifi name it’s shows a popup with three pin available. Select always default pin then click on Verbose button it’s open the Terminal Emulator hold and press on the screen it’s will show you paste option. Paste the command (already copied just need to paste) and hit enter wait for sometime !
  9. Voila! You auto connected to wifi . If you want to know password click on three dots go to password option and click on it. it’s shows the WIFI password. Check the image below.  
  10.                        
Showing Wifi Password
9. Enjoy ! the SuperWifi ! and feel like a hacker boy 
😛*Working Devices Xperia E1 (Single & Dual Sim), Galaxy S3 Neo (Stock Rooted not in CM 12/12.1), Moto G Series, YUPhoria and many more if you        know tell in comments I’ll add in list.

Commonly Known Issues :

  • Sometime default pin is not work in Terminal emulator it’s repeat the ssid=”” command or WPS-AP Available command. In this condition close the window of emulator go back to WPS Tester click on app and try with other pins It’s solved the problem.
  •  If WIFI automatically not connected then during running command you will see ssid=”Targeted wifi name”. If You see this go back to app click on show password scroll down you will see password tap on it and manually connect it by entering WIFI password.
  • Sometime WIFI in settings show WPS avaible WIFI but app not show in this condition reboot the phone or get go to airplane mode in your phone for 5 sec. and then enable the wifi again through WPS tester app.
  • If You fresh install busybox but it’s showing busybox installed in system/xbin then find busybox uninstaller.zip from xda (for every phone may be it’s different) . Flash zip file from recovery again install busybox and now install it to system/bin.
  • Sometimes Terminal Emulator shows Unknown username or pid error and IFNAME=unknown command in this situation try above method if it’s showing again error then may be your kernel don’t support this wpa_cli commands (Mostly happen in Gionee P series mobiles , CM12/12.1 for Galaxy s3 Neo Rom)
If You find any other error comment below I’ll try to help you to solve it 

🙂
And if you like to hack like a pro then you should buy this book

Copyright © 2012 gogfmj All Right Reserved
Designed by Odd Themes - Published By Blogger Templates20
Back To Top