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

November 22, 2012

Mount TrueCrypt Volume with Read and Write File Permission for Users and Groups

Hi friends,

I have been working on Ubuntu from a long time. Recently I am exploring on TrueCrypt and I faced the following issue. After searching lot of websites and forums, I made a solution which worked for me perfectly.

Objective:
TrueCrypt volume copied data should be available to all when its mounted.

Usual Procedure:
Mount the TrueCrypt volume in Ubuntu
Copy some data to the volume
Change file permissions to other users or groups
Other users should be able to view the data from the volume when mounted

Hiccup(Problem):
After mounting the TrueCrypt Volume the directory permissions are changed and fixed to 700 (rwx --- ---). i.e. No access to groups and others.
Changing the directory permissions and changing the ownership will not be applied.
So, other groups and others cannot access the data.

Solution:
While mouting the TrueCrypt volume we need to specify the file system type and give permission to user[s] and/or group[s] with umask.

Please find the syntax and example below

Syntax:
$sudo /usr/bin/truecrypt -t --filesystem={filesystem_type} --fs-options={rwx},uid={userid},gid={groupid},umask={ugorwx} {your_tc_volume} {mounting_folder}

Example:
$sudo /usr/bin/truecrypt -t --filesystem=vfat --fs-options=rw,uid=1000,gid=1000,umask=022 tc1.tc /mnt/folder1

Thanks for visiting my blog.

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

November 20, 2012

Display Flash SWF Object File in Max Width and Height of Browser (Autofit)

Hi coders,

Today I have come across a situation where I need to display some .swf file in browser by using 100% browser width and height irrespective of the screen resolution. Generally we will specify the object width and height while display the flash on browser.

But I want the flash content to get display in maximum (full) width and height of the browser to any screen resolution. i.e. Automatically it has to adjust the width and height of the flash object.

I have found the following method
  • Please download the swffit from here 
  • It has lot of custome functions which developers can use
  • After downloading the zip file, please extract the content
  • You can find lot of sample codes
  • I have used example.html code and changed the fit method to 
    • swffit.fit("my_flash", 1, 1, null, null, true, true);
  • Now it will display the flash object in maximum width and height of the browser
Enjoy coding :)

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

November 18, 2012

Windows 8 Installation, Kaspersky Anti-Virus Issue and resolved

Hi,

After a big gap, I am writing this post.

Today, I have upgraded my sister's laptop from Windows 7 to Windows 8 Pro by purchasing online for just Rs. 1999/-. Its cool, I am liking the Windows 8 look and feel (Metro interface). I have created ISO image for backup.

But I got a problem with the KasperSky anti-virus. The version which I installed in Windows 7 doesn't support in Windows 8. While uninstalling from Windows 8, it was not successfully uninstalled.

So, I removed it from registry and corresponding folders in file explorer. It was suddenly not recognizing the trackpad and even mouse. So, using USB flash drive, I had burned ISO to a USB Pendrive and booted from it. Refreshed the OS.

You know what, all the installed apps were gone. It moved to a folder named Windows.old(>10GB). I decided to delete it. So, I performed "cleanmgr" and deleted the old windows folder Windows.old. Finally I have installed all the required softwares.

The apps from Windows store are ok. But not many apps ( I know still lot of apps will come). I liked the Wikimedia, Photofunia, ToDo, Tasklists, Engadget, etc.

Overall weekend spent on Installing Windows 8 and corresponding software updates.

Note: Please uninstall the anti-virus before you upgrading to Windows 8.

August 25, 2012

Combine Different Network Connections to get Faster Internet Connection Speed Simultaneously

Hi friends,

Have you ever thought of combining your ethernet connection internet speed and your mobile internet speed and wi-fi internet speed and etc.?

Getting one active Internet connection speed doesn't suite for high speed downloads.

But Connectify Dispatch made this possible to combine different Internet connections and made a single, faster Internet connection to download with summation of all available networks.

Use multiple connections simultaneously to get a faster connection speed.

Please find more details at

http://www.kickstarter.com/projects/523076551/dispatch-the-internet-faster

References:

Connectify

Featured Post

Java Introdcution

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