Sunday, November 10, 2013

Ubuntu 12.04 Change Default Resolution When No Monitor Connected

I have a Linux Ubuntu 12.04 computer running without a monitor. I usually access it via VNC viewer, when I access it normally I would get 1024 x 768 over the remote VNC viewer application. I wanted to change the default resolution from 1024x768 to 1920x1080. To do this I researched on Google and couldn't find a simple answer. I finally came across the solution and here it is.

To change the resolution of screen on Ubuntu 12.04 when no monitor is connected you have to do the following.

Create the xorg.conf file if it doesn't exist under /etc/X11/ director
sudo nano /etc/X11/xorg.conf

Paste the following content in that file
Section "Device"
       Identifier      "Default Device"
       Option  "NoLogo"        "True"
Section "Monitor"
   Identifier    "Configured Monitor"
Section "Screen"
   Identifier    "Default Screen"
   Monitor        "Configured Monitor"
   Device        "Default Device"
   SubSection "Display"
       Depth    24
       Virtual 1920 1080
Save that file Ctrl+X and yes, hit enter.
Change the virtual resolution from 1920 1080 to what ever you preferred resolution is.

Now reboot.

You changes will apply once you reboot and next time you use VNC to view you Ubuntu desktop your resolution will be what ever you had it set to in the xorg.conf file.

Tuesday, June 18, 2013

Top Free Remote Desktop Apps for iPad | iOS Apps

Using Remote Desktop your can get access to your PC or Mac securely, fast, and anytime from anywhere on your iPad. You can remote control your PC and open all your files or software's on your iPad. It would feel as if you were sitting right in front of your computer. Here is a list of free iPad remote desktop apps which allows you access remote computer.

1. LogMeIn: LogMeIn allows you to free remote control your PC or Mac on your iPad or mobile phone. Its a great tool because you can add cloud storage and share files as well. You can remotely access your files, run your applications and control your desktop anywhere. It was simple to install, just visit LogMeIn, create User-ID and download the free software. Next install the LogMeIn App on your iPad. And you can add your Computer on your iPad and access the files or the desktop itself. You can move files from you iPad to your desktop easily and vice-versa. The Quality of the screen resolution is great. The app runs great.

Saturday, May 25, 2013

How to add Yahoo! WebPlayer to Blogger?

This tutorial is for those who like to blog about music and have direct links to mp3 files and YouTube videos on their blog posts/pages.

If you have direct links to mp3 files posted on your blog, Yahoo! Mediaplayer will allow your visitors to play those links staying within your website. This will keep your users engaged longer on your site.

To add Yahoo! WebPlayer on your Blogger blog follow the steps given below.
1. Log on your Blogger account
2. Go to Your Blog -> Template
3. Click Edit Template Button
4. Look for the following code
5. Copy and paste this code directly above the closing body tag
<script type="text/javascript" src=""></script>
Here is link to official Yahoo! WebPlayer website for more information:

Sunday, May 19, 2013

Raspberry Pi Wireless Network Setup Video Tutorial

Video Tutorial On Setting Up Wifi On Raspberry Pi

Friday, February 8, 2013

Blogger: How to get values from URL parameter?

Mainly there are two ways that you can achieve this task of getting parameter values from URL on Blogger platform.

1. One way is by getting values from built-in parameter for certain page types. There are certain pages on Blogger that accept parameters from URL, for example:  search page has an input parameter called "q=SOME_VALUE", label page also has an input parameter "/search/label/VALUE"

a. The pattern for Blogger search URL is
b. The pattern for Blogger label page is

Lets me do a tutorial to teach you what you can exactly do by getting values from built-in blogger URL parameters. I am going to create a script that will allow you to embed any youtube video by getting the video id from a url parameter.

Each YouTube video has a specific video id, here is pattern for YouTube video page URL:

Lets look at a YouTube video link:

We know that the video ID for that video is R4em3LKQCAQ.

What we want to do is to embed that video on our blog by inputting the video id as a URL parameter. So, we can achieve task in two ways, either by writing script that will let you embed the video by visiting:  or

Simplest script would be to check condition if the search page query parameter q has some value and if yes, therefore, iframe the video with the parameter that has been entered. Example is
<b:if cond='data:blog.searchQuery != &quot;&quot;'>
<iframe width="560" height="315" src="<data:blog.searchQuery/>" frameborder="0" allowfullscreen></iframe>
If you have the above code in you template and you visit page:

You will see the video iframed with the ID that you input for parameter "q". You can basically change the parameter q to any video ID that you want to embed.

The script for label page would be different, to embed video on label page you want to check condition if page type is lable and use the pagename tag to use what you have inputted for the video ID. Your script would look something like below:
<b:if cond='data:blog.pageType == "data:blog.searchLabel"'>
<iframe width="560" height="315" src="<data:blog.pageName/>" frameborder="0" allowfullscreen></iframe>
If you put the above script in your template and you visit page:

That would embed the video on your label page with the id that you input as label name. Similarly you change the video ID to any other video and it will embed that new video on your label page.

2. Second way of getting the value from URL parameter on Blogger would be by using javascript. This is done on the client side, so basically, you can put any parameter on any page type where ever you want.

I am tired now, if you want to know more let me know in comments and I will write rest of the post. Enjoy.