January 28, 2013

Apache, Adding/Managing Website

 

Hi all,

If you like to add or manage your website on Ubuntu, its very easy to do so. Just follow these steps.

1) Get your site ready, copy it to /var/www [1] folder. Make sure that you have one initial file to start.

Ex: index.htm[l]

2) Navigate to apache folder [Default path: /etc/apache2]

3) To make your site available, please navigate to sites-available folder

$) cd /etc/apache2/sites-available

4) Copy the existing 000-default file and edit for our usage

Ex: $ sudo cp 000-default your_website

5) Change the “DocumentRoot”

Ex: /var/www to /var/www/your_website

6) Change the “Directory”

Ex: /var/www/ to /var/www/your_website

7) Disable currently active site

Syntax: sudo a2dissite 000-default

8) Activate your site

Syntax: sudo a2ensite your_website

It is as simple as that. Enjoy browsing your website.

Note:

[1] – It is not mandatory to copy your website to /var/www but its an usual procedure. Please change the /var/www/your_website to your corresponding directory and make sure that folder has proper permissions.

Please send your comments and feedback to psrdotcom@gmail.com

January 25, 2013

My First Blog Post From Windows Live Writer

 

I have just installed Windows Live Writer and set up my Blog to write my post directly.

Setup:

  1. Asks you to choose the type of account. Wordpress, Blogger, etc.
  2. Enter your blog address, username and password.
  3. There is an option to permanently remember the password in future usages.
  4. After that, it loaded an empty post with the blog current theme.
  5. Live writer user interface looks pretty cool similar to MS Office.

 

Usage:

  • Its very simple to add your content. Just like creating a document in MS Word.
  • There are options like for inserting picture, video, spell correction, hyperlink in Home tab.
  • In Insert, it has options for table, hyperlink, picture, photo album, video, map, emotion etc.
  • Blog account tab contains, blog options, view blog, blog theme, update theme.
  • At any time, we can give the tags(labels) to our blog by selecting the existing or creating new ones.
  • One more feature is we can set the posting date as well.

 

Overall it looks descent and without logging into your account and saving as draft, we can use live writer to create and post in our blog.

I liked it.

January 05, 2013

Eclipse Java Scrapbook: Run, Debug, Test Code Expressions and Statements Without Running Entire Project

Hi friends,

A very useful utility for developers who are using eclipse as their IDE is Java Scrapbook.

What is scrapbook?

Sometimes, you might think like running a statement or expression or loop without running the entire code or project. You want to try something without disturbing the existing code.

Scrapbook answers the above and lot more.

Scrapbook can be used to inspect, execute, debug your statements, expressions, loops and etc.

Creating Eclipse IDE

New -> Java -> Java Run/Debug -> Scrapbook Page

Inspecting Snippet

To inspect an snippet like 2+3, Just type 2+3 and Click on "Run->Inspect" as per your requirement. It will display the result in a pop-up.

Execute Statements

If you want to try some statements, you can execute it by performing "Run->Execute"

Debug Statements

You can put breakpoint and debug your code.

I liked it very much because we no need to run the entire project to test/try a sample code.

Hope all the developers will like this feature.

Note: Please send your feedback to psrdotcom@gmail.com

Featured Post

Java Introdcution

Please send your review and feedback to psrdotcom@gmail.com