Search blog

Friday, May 20, 2016

Redirecting a Naked Domain (non-www to www) to its WWW Version in Blogger/Blogspot

The steps below explains the procedure to redirect your naked domain to it's 'www version' such as, 'example.com' to 'www.example.com' for blogspot.

I also found an explanation in blogger at http://bit.ly/1TiXBis but that didn't help my case.

So, goto your domain host such as Godaddy or Netfirms. Then open the section called as 'Domain Name System', 'DNS Management' or 'DNS' etc in your Domain Control Panel.

Now look for a section called as Address Record aka 'A Record.'

Then open your terminal or shell and ping your blog address as below:

 ping www.example.com  

After pinging you should get an IP address as: '74.125.200.121'

Copy/Paste this IP address and paste it in the Value box of your A Record as shown in the image below:


Save and exit.

It should work now else please allow sometime, a few hours and check again.



Monday, May 9, 2016

Interpreters and Compilers Explained Simply

Today while trying to recollect the difference between an Interpreter & a Compiler I ran across this classic Computer Science tutorial video series:


Executing Java Program from Ubuntu Terminal

If you want to execute your java program from your terminal in Ubuntu first make sure you have installed any one of the Java packages:
  • default-jdk
  • ecj
  • gcj-4.8-jdk
  • openjdk-7-jdk
  • gcj-4.6-jdk
  • openjdk-6-jdk
To know the differences in each of the above packages, please follow this link: http://bit.ly/24FpTc9
    In my case I installed the first package using the following command:

     sudo apt-get install default-jdk  
    

    Now change your directory to the directory containing your Java Program(s). Once done hit the following command to execute your Java Program:

     javac FileName.java  
    

     java FileName  
    

    Top 5 Posts (Weekly)