Thursday, 20 August 2015

How to add an existing project to GitHub Repository?

Follow these 10 simple steps to upload your local project to a GitHub repository.

1.  Download, Install and Configure Git hub for windows/Mac OS by visiting You can download Windows or Mac version based on your Operating System.
2.  After installing Git, Open Git power shell from Start -> Type "git shell" without quotes and open the "Git Shell" command line program.
3.  Now navigate to your project root folder using the command line too,
cd F:/My_Project

4.  Now issue the following command
$ git init

5.  This command would show you "Initialized empty Git repository in your project root folder"
   eg: Initialized empty Git repository in F:/My_Project
   And you could see a .git folder created under My_Project folder
6.  Add all your files to the repo using the following command,
$ git add *
7.  To check files to be committed,
$ git status

8.  Now commit all the code using the command,
$ git commit -m 'First Committ'
   You'll see something like this,
[master (root-commit) 8201309] First commit
   20 files changed, 439 insertions(+)
   create mode 100644 .classpath
   create mode 100644 .project
9.  Now navigate to Github and create a new repository with any unique name you want to. I am going to give it MyProject here and it will create a github repository with url
     - Now once the MyProject repository is create we need to push our local My_Project content to it. So enter the following two command,
$ git remote add origin

$ git push -u origin master
10.   Once you issue the above command, you'll see something like this,
Counting objects: 45, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (30/30), done.
Writing objects: 100% (45/45), 8.48 KiB | 0 bytes/s, done.
Total 45 (delta 0), reused 0 (delta 0)
             * [new branch]      master -> master
Branch master set up to track remote branch master from origin.

Now visit the to see your project files pushed to the GitHub.

Monday, 4 May 2015

How to skip the login screen Windows 7 PC

Skip Login Screen in Window 7

- Lakshman

There is a way to skip the logon window screen even if you haven't deleted your password.
 So try the following,

1. Go to Start-->Type Computer Management-->Click on Computer Management.  or 
             Start -->Run --> compmgmt.msc
2. Expand "Local Users and Groups", highlight "Users" and you should see your account in the right
 pane. Right click on your account and set a password.

Follow these steps:

    1. Click Start, click Run, and type "control userpasswords2" without quotes. 


 2. Highlight your account and uncheck the
       "Users must enter a username and password to use this computer".

    3. Click Apply.

    4. Enter the password, then click OK.

    5. Click OK again and you're all done.

Now just pressing the power button should get you to the desktop directly without clicking anything.

    Thursday, 19 February 2015

    How to get rid of mdi064.dll Windows startup error message?

    Every morning I just start up my PC just to see a bunch of popups and malware dll's starting up. However I happened to clean up all of 'em except this loner "mdi064.dll",

    The message read:
                "There was a problem starting          
                  The specific module could not be found"

    And I was really frustrated about this little popup and din't know how to get rid of it anyway. Some sites suggested that I download and run a full system scan of the free version of MalwarebytesSo, I want to know where these startup programs run from and I found the msconfig command to see the list of starup programs that start with Windows.

    Some info about why this is a Malware:
    •   The library "mdi064.dll" has been detected as malware by 8 anti-virus scanners.
    •   It is automatically set to start up on every windows logon via the current user registry key 'tsiVideo'
    Now, How to disable this item from starting up?.

         Windows key + R and type the run command "msconfig"

    And press Enter key, and now you will see "System configuration utility" interface

    Check for this "tsiVideo" Startup item and disable it(Remove the checkbox). This is the bugger which contains the startup link to the mdi064.dll file located at "C:\Users\admin\AppData\Local\Temp\\". Since its detected as a malware and deleted by your antivirus software, it will no longer be available at that location and shows the dll file is missing.

    After disabling this item, restart the computer to take effect. And you will no longer see this weird popup again.

    If you still facing this problem or if the above steps solved your problem please leave a comment. I'll be at your help anytime.

    Saturday, 7 February 2015

    How I installed Android's Lollipop update on my Moto G2

    I got a system update notification from the Motorola Notification Services on 3rd Feb 15(What better gift I can get on my birthday).

    I clicked on the notification and the above displayed "New system software available". Tapped "Yes, I'm in" to download the update.

    The update software is almost ready to install,

    When the download is finished, tap on Install now. But please make sure you have at least 50% to 60% battery charge available so that you don't end up into any issues. If you don't have enough charge available on your phone just click "Later" and once your battery is sufficient you can install the update from System Update in Setting menu. You don't have to download it again. And you cannot make or receive phone call during the update process. I had exactly 50% charge while still in charge so I clicked on install now.

    Once clicked on Install your phone restarts once the update is installed and the version is shown with the "Update complete" message. As you can see the recent apps section is smooth and line up one after another back to back.

    Goto Settings -> About -> Android Version -> Tap 5 times,
    The all new Android Lollipop version 5.0.2

    Taste the flavour of Lollipop on your phone and enjoy playing with it coz I do.

    Thursday, 22 January 2015

    Fix a clr20r3 Error

    1. Click Start button, click All Programs, click Accessories, then right-click Command Prompt, in the right click menu, please click Run as administrator.
    2. Type the following commands, press Enter after each line. 

    regsvr32 atl.dll
    cd C:\WINDOWS\eHome
    ehSched /unregServer
    ehSched /service
    ehRecvr /unregServer
    ehRecvr /service
    ehRec.exe /unregServer
    ehRec.exe /regserver
    ehmsas.exe /unregServer
    ehmsas.exe /regserver

    Monday, 5 January 2015

    Building Rest API with Spring Webinar

    Watch a webinar on how to build Spring MVC application with Spring REST Api and the questionaire by webinar attendees.

    Monday, 22 December 2014

    How to generate a random String in Java

    The following function can be used to create a random string.
     private String getRandomString(int len){
        final String AB = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";  
        Random rand = new Random();  
        StringBuilder sb = new StringBuilder(len);
        for(int i=0; i<len; i++)
             sb.append( AB.charAt( rand.nextInt(AB.length()) ) );  
        return sb.toString();  

    You can call this java utility method to generate a random String of the choice of your own length.

    getRandomString(int length); 

    Note:Here length is the parameter which accepts the integer type and generates and returns a length character String.

    For example:
         This is how you use this utility method.

     String randomStr = getRandomString(4);
     String ranString = getRandomString(8); 

    Sample output(s):