tag:blogger.com,1999:blog-67392480165279548222024-03-04T21:50:55.635-08:00The little, that can make a difference...Unknownnoreply@blogger.comBlogger18125tag:blogger.com,1999:blog-6739248016527954822.post-7736430691978998642014-01-04T03:18:00.001-08:002017-08-03T10:01:31.144-07:00Virtio-9p Failed to initialize fs-driver with id:fsdev0 and export path:/tmp/share</b:if>
<div class="para">
While installing a virtual machine with the virtio drivers using the instructions given on Linux-KVM:
<ul>
<li>
<a href="http://www.linux-kvm.org/page/9p_virtio">Manually, using qemu-kvm command line</a>,
</li>
</ul>
you may encounter an error such as this:<br /><br />
<div class="code">
Virtio-9p Failed to initialize fs-driver with id:fsdev0 and export path:/tmp/share
</div>
<br />
To solve this error, just create a folder in your <code>/tmp</code> folder using this:
<br /><br />
<div class="code">
mkdir /tmp/share
</div>
</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6739248016527954822.post-61054701789443723462013-10-31T09:15:00.000-07:002013-10-31T10:48:35.942-07:00How to highlight PDF's in Ubuntu?<div>
This post is the sequel to the earlier article on <a href="http://thelittleican.blogspot.in/2013/01/how-to-annotate-pdfs-in-ubuntu.html">How to annotate PDF's in Ubuntu?</a>. In this article, we will install Adobe Reader XI in Ubuntu 12.04, though you should be able to install it on higher versions too, without any changes.<br /><br />
Lets begin rightaway. We will install the Adobe Reader XI developed for Windows, since Adobe Reader 8 available for Linux-based OS's does not support highlighting PDF's.<br /><br />
To install and run this Windows-based version, we need to install wine on Ubuntu. To install wine, open Ubuntu Software Center and install "Microsoft Windows Compatibility Layer (meta-package)" and "Wine Windows Program Loader" packages.<br /><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBh2fK0cwYLOjqGqZpy4BsVcoa5cSJqCspBqFZzwZwvECwtCEhZuj09xCKbFl_DZ0j9H9vQKBgYPW5IK4opSprsYud7mXNgHoVnTplb_SR0m3osNilnPeXesLSddrCmpyqIkP-5z3IRmHH/s1600/1+Install+wine+in+ubuntu.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBh2fK0cwYLOjqGqZpy4BsVcoa5cSJqCspBqFZzwZwvECwtCEhZuj09xCKbFl_DZ0j9H9vQKBgYPW5IK4opSprsYud7mXNgHoVnTplb_SR0m3osNilnPeXesLSddrCmpyqIkP-5z3IRmHH/s640/1+Install+wine+in+ubuntu.png" /></a></div><br /><br />
It will take some time to install, in the mean time, download Adobe Reader by clicking the button below.<br /><br />
<form method="link" action="http://ardownload.adobe.com/pub/adobe/reader/win/11.x/11.0.00/misc/AdbeRdr11000_mui_Std.zip" target="_blank">
<input class="get_adobe_reader_button" type="submit" value="Download Adobe Reader XI !"></br></br>
</form>
Unzip the contents either by right-clicking on the file and clicking on "Extract" or using the following command:</br></br>
<div class="code">unzip AdbeRdr11000_mui_Std.zip</div><br /><br />
Now right-click on Setup.exe and open with "Wine Windows Program Loader"<br /><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAk3ehSwQYrEQTt5_1CTCMtVyabAQu3qZ9ypX7DwHZT3wZjgfC_e_v7klohmMPaHblLyxFARZrstkbLYehjAPOc0hRtEiVDIAT5Y4R0Nn_l3L5JSe3zGuihVRWhtmPlo2cPT7jM2fX3ocm/s1600/1+open+setup+exe+adobe+reader.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAk3ehSwQYrEQTt5_1CTCMtVyabAQu3qZ9ypX7DwHZT3wZjgfC_e_v7klohmMPaHblLyxFARZrstkbLYehjAPOc0hRtEiVDIAT5Y4R0Nn_l3L5JSe3zGuihVRWhtmPlo2cPT7jM2fX3ocm/s640/1+open+setup+exe+adobe+reader.png" /></a></div><br /><br />
After this, wine will start the Adobe Reader installer.
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUMxnmdzku1XJX4TxTQa-icznfiBhxTMdtKZ3NsLk7-3uDvdbo0FHWNxn89RAJRQs6-_8iFFfFdDwVcY3LFIxLKshnPQrjcwMABdZlD7vIdaKFhdqIOT3MrB55M9_70_T8G-7J_7Eey2Le/s1600/2+wine+starts.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUMxnmdzku1XJX4TxTQa-icznfiBhxTMdtKZ3NsLk7-3uDvdbo0FHWNxn89RAJRQs6-_8iFFfFdDwVcY3LFIxLKshnPQrjcwMABdZlD7vIdaKFhdqIOT3MrB55M9_70_T8G-7J_7Eey2Le/s640/2+wine+starts.png" /></a></div><br /><br />
Adobe Reader installer dialog box should pop-up. In this, there may be a tick on "Make Adobe Reader my default PDF viewer", you can ignore this, since it may not be able to become the default PDF reader for compatibility issues. Click on "Next".
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDYSJVjkU71ZYg27PugvFGmNlHEYGoPev_9T8n_zukzzSPhROVSdwxA551SSxjpPx68spPkXLuurInzqls6OUh4lKXZy7QN6evLtmZ-FMCE1t-7g7U46gT-sEmlNmZ2cUm7J8p0MbQKw6h/s1600/3+adobe+reader+starts+installing.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDYSJVjkU71ZYg27PugvFGmNlHEYGoPev_9T8n_zukzzSPhROVSdwxA551SSxjpPx68spPkXLuurInzqls6OUh4lKXZy7QN6evLtmZ-FMCE1t-7g7U46gT-sEmlNmZ2cUm7J8p0MbQKw6h/s640/3+adobe+reader+starts+installing.png" /></a></div><br /><br />
Now, in the next dialog box, I prefer "Manually check for and install updates (not recommended)", you may click on "Install updates automatically (recommended)" but I am not sure if it will be able to automatically download.<br /><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlpcln1C_Axk2dASI_Iyfr6VgyFjL4aD1zsiMT1tveCI9RIh-N1fQF1YkIO46CxZJip1VJE9tbOqY4dtTbZpCFtSRZaLDZ9_W26P8eM80r1ikc6NecU3fjeFrbrqC8M2lJpsoMU8bsysdy/s1600/4+updates+in+adobe+reader.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlpcln1C_Axk2dASI_Iyfr6VgyFjL4aD1zsiMT1tveCI9RIh-N1fQF1YkIO46CxZJip1VJE9tbOqY4dtTbZpCFtSRZaLDZ9_W26P8eM80r1ikc6NecU3fjeFrbrqC8M2lJpsoMU8bsysdy/s640/4+updates+in+adobe+reader.png" /></a></div><br /><br />
It will start extracting and copying files to appropriate locations(in <code class="code">.wine/drive_c/Program Files (x86)/</code> folder of your Home folder).<br /><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBWoM5iXnGTX3UaRIUBJpgsR9_d7cTcY439K8NvfYiianT6jcTCPlvtpEbmYN77WKN7LLhCHA2jFJ3iBnH1OQyvNipxXd-TcvJ_N1FNY9RP5I0hMmj5y6gf6YKJRU4AUarX7XQgvPG3Bgc/s1600/5+adobe+reader+is+installing.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBWoM5iXnGTX3UaRIUBJpgsR9_d7cTcY439K8NvfYiianT6jcTCPlvtpEbmYN77WKN7LLhCHA2jFJ3iBnH1OQyvNipxXd-TcvJ_N1FNY9RP5I0hMmj5y6gf6YKJRU4AUarX7XQgvPG3Bgc/s640/5+adobe+reader+is+installing.png" /></a></div><br /><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_yK2YjAeyfWPWbLY3SMR4RPxeTL6m07bq6Kiq_hNGpz_LLQuYOgzqD-eNmXud3Zwfy8LzYMrWPCs2ObW9vmcjSN6TZ8Wj_HjbK6O5OT_XWKpIHX_aLMBZm0hp6YOdDGfQt3RBb0SN3q3L/s1600/6+finished+successfully.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_yK2YjAeyfWPWbLY3SMR4RPxeTL6m07bq6Kiq_hNGpz_LLQuYOgzqD-eNmXud3Zwfy8LzYMrWPCs2ObW9vmcjSN6TZ8Wj_HjbK6O5OT_XWKpIHX_aLMBZm0hp6YOdDGfQt3RBb0SN3q3L/s640/6+finished+successfully.png" /></a></div><br /><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGz3725OIeG6Li7Xo3l_N8dWzdAfyI9fGmB7atbg2LX5UeeDHliZofUidbgI84aiNvHcq_QR58OhGLLwEhW6XPXijHf4fQXABCE5hARIp5WcljZGZt-G3z-04HZDWO0pRVSME4UzHgKabd/s1600/2+open+adobe+reader+using+wine.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGz3725OIeG6Li7Xo3l_N8dWzdAfyI9fGmB7atbg2LX5UeeDHliZofUidbgI84aiNvHcq_QR58OhGLLwEhW6XPXijHf4fQXABCE5hARIp5WcljZGZt-G3z-04HZDWO0pRVSME4UzHgKabd/s640/2+open+adobe+reader+using+wine.png" /></a></div><br /><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsmKWjbW6nnee9qgv-7nBCZd__UekZ607Eek0xZKzI2aT6VzOAIi__nilVFCgIvpBTFJpwSXr16FXD2MA0ZphYPHZU6kByGNUv6O_EueqOxTPJNddYahgMylq-qwYUXsAGegnS1XcZNbaJ/s1600/7+adobe+reader+protected+mode.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsmKWjbW6nnee9qgv-7nBCZd__UekZ607Eek0xZKzI2aT6VzOAIi__nilVFCgIvpBTFJpwSXr16FXD2MA0ZphYPHZU6kByGNUv6O_EueqOxTPJNddYahgMylq-qwYUXsAGegnS1XcZNbaJ/s640/7+adobe+reader+protected+mode.png" /></a></div><br /><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSeVJehJIqJr_T1KAdutAaanfviI-I_ZN9JoUc2cxIY_QEnj1nGjlIiUKUP8OpAvTctWomJJNzpWsrhsZIYKlwuOo8EYcWVKzKFN4wyzm0DXHgjdU3YRYheg9nVkxDgPcSqh42Puu9fYu3/s1600/8+adobe+reader+licence.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSeVJehJIqJr_T1KAdutAaanfviI-I_ZN9JoUc2cxIY_QEnj1nGjlIiUKUP8OpAvTctWomJJNzpWsrhsZIYKlwuOo8EYcWVKzKFN4wyzm0DXHgjdU3YRYheg9nVkxDgPcSqh42Puu9fYu3/s640/8+adobe+reader+licence.png" /></a></div><br /><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJJrW0BuskumwkvQtqCav4O_Xa6_HjpOnjHzYX-1NZfQGcLZeZJ1nit8E7r1rVs1W6MPdidwAF0TIvr3nAgC2HpmkisHsaC-Kc4cISAhzM0ZMt8HR05ymf711-o6LAu7nIpujaJvQfBV_q/s1600/9+adobe+reader+installed.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJJrW0BuskumwkvQtqCav4O_Xa6_HjpOnjHzYX-1NZfQGcLZeZJ1nit8E7r1rVs1W6MPdidwAF0TIvr3nAgC2HpmkisHsaC-Kc4cISAhzM0ZMt8HR05ymf711-o6LAu7nIpujaJvQfBV_q/s640/9+adobe+reader+installed.png" /></a></div><br /><br />
</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6739248016527954822.post-28872515341692631842013-09-27T06:13:00.001-07:002014-04-24T05:41:47.129-07:00Unable to add ppa behind proxy<div>
While trying to add softwares from sources other than the central debian repository, we may have to add a PPA (Personal Package Archive), so that the software(<a target="_blank" href="http://en.wikipedia.org/wiki/Advanced_Packaging_Tool">apt</a> or <a target="_blank" href="http://en.wikipedia.org/wiki/Aptitude_%28software%29">aptitude</a>) which installs other softwares fetches packages for us from the new location.
<br /><br />
The default or normal method to add a PPA via command line is as follows:
<br /><br />
<div class="code">
sudo add-apt-repository ppa:something
</div>
<br />
However, if you are behind a proxy, you may not be able to add this way and when you try to do something like this:
<br /><br />
<div class="code">
sudo add-apt-repository ppa:gnome3-team/gnome3
</div>
<br />
you may get an error like this:
<br /><br />
<div class="code">
Cannot access PPA (https://launchpad.net/api/1.0/~gnome3-team/+archive/gnome3) to get PPA information, please check your internet connection.
</div>
<br />
This may happen even if you have added your proxy using <b>System Settings -> Network -> Network proxy</b> or in <code class="code">/etc/apt/apt.conf</code> or even in <code class="code">/home/$USER/.bashrc</code>. This is because the <code class="code">sudo</code> user is not aware of the proxy set in the places above. This tutorial explains how to make this work to add a PPA the terminal way.
<br /><br />
So lets get started. Please note that all commands and text hereon are case-senstive, take care not to make any typos hereon, to avoid messing up your system):
<br /><br />
<ul>
<li>
Open a terminal using <code class="code">Ctrl</code> + <code class="code">Alt</code> + <code class="code">t</code>
</li>
<li>
Type
<br />
<code class="code">
export http_proxy="http://username:password@your proxy":"port"
</code>
<br />
<code class="code">
export https_proxy="https://username:password@your proxy":"port"
</code>
<br />
Remember to replace "username" by your username and "password" by your password, if applicable, "your proxy" by your proxy address like <b>10.1.101.150</b> or <b>proxy.college</b> and "port" by something like <b>3128</b>.
</li>
<li>
Now we have two methods to export these parameter to "sudo" user:
</ul>
<ul>
<b>Method 1:</b>
<br />
<li>
Type
<code class="code">
sudo visudo
</code>
</li>
<li>
Add
<code class="code">
Defaults env_keep="https_proxy"
</code>
to the end of the file. (Note that <code class="code">Defaults</code> has a capital "d")
</li>
<li>
Type
<code class="code">
Ctrl</code> + <code class="code">x</code> and <code>y</code>
to save and exit.
</li>
</ul>
<ul>
<b>Method 2:</b>
<br />
<li>
Whenever you use sudo command, export the environment variables of the user you are currently using. To do this, when you use <code>sudo</code>, use
<code class="code">
sudo -E
</code>
</li>
</ul>
<br />
You are now ready to add PPA using the terminal. Please let me know, via comments, if you face any issues while doing this.
<br />
<b>Source:</b> <a target="_blank" href="https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/516032">The bug filed regarding this at launchpad</a>.
</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6739248016527954822.post-52791279917140669282013-09-17T05:07:00.000-07:002013-09-17T05:07:10.113-07:00Virtual Machine Manager Error: "The emulator may not have search permissions" for a certain path<div>While installing a new virtual machine (VM) using <a href="virt-manager.org/"
>Virtual Machine Manager (VMM) </a>, if you ever come across this error:<br /><br />
</div>
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTiMEmDaG9SUMD7KB5vRbMlyj2P1xclSgZ50dEuwnyx0Tx_WPx50MPL6yYrQf2QcaI01bzNN0RiT6WHnt3RNNhFWOmeGJEBQ19iGIP_mLN9lV2owRxISVha309HHsy4F35mdQ7nAQMlODS/s1600/The+emulator+may+not+have+search+permissions+for+path%E2%80%8E.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTiMEmDaG9SUMD7KB5vRbMlyj2P1xclSgZ50dEuwnyx0Tx_WPx50MPL6yYrQf2QcaI01bzNN0RiT6WHnt3RNNhFWOmeGJEBQ19iGIP_mLN9lV2owRxISVha309HHsy4F35mdQ7nAQMlODS/s400/The+emulator+may+not+have+search+permissions+for+path%E2%80%8E.png" /></a></div><br /><br />
it is probably because you have stored the ISO file where the emulator is not able to read and also create an image file for the Virtual Machine.<br /><br />
To resolve this error, store the ISO file where you can change the permissions of the directory to assign read-write permissions to the emulator. For example, you can store the ISO file in the home directory of the user you are logged into.<br /><br />
However, it is recommended to store the ISO file in the <code class="code">/var/lib/libvirt/images/</code> directory. To assign read-write permissions to this directory, open a terminal and do the following:<br /><br />
<div class="code">sudo chmod 755 /var/lib/libvirt/images/</div>
<br /> and enter your password. If you get the following error:
<br /><br /><div class="code">$USER is not in the sudoers file. This incident will be reported.</div><br /> you are not in the "sudoers" group and therefore, cannot perform some priviledged commands(executed by prepending "sudo"). Either ask you system adminstrator to execute this for you, or if you have access to a user in sudoers group, log in using that user and add the following lines to <code class="code">/etc/sudoers</code> file:<br /><br />
<div class="code">$USER ALL=(ALL:ALL) ALL</div>
<br />
replacing <code class="code">$USER</code> by the user you want to add to the sudoers group. <br /><br />
<div>Now copy the ISO image of the Virtual Machine you want to create to this directory and create the VM again using VMM. Please feel free to report any errors you face, as comments below.</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6739248016527954822.post-22945960153580909662013-08-12T06:50:00.001-07:002013-08-25T22:47:19.323-07:00How to install Dangerous Dave in Ubuntu and other linux-based systems<div class="paragraph">
Dave has been one of favourite games right from childhood. It had been a long time playing <href="http://en.wikipedia.org/wiki/John_Romero">John Romero's</href> ultimate creation and felt I should install it on my Ubuntu. So lets start rightaway!</br></br>
First, we need wine, an application used to run programs designed to run on Windows-based platform to run on Linux-based Operating Systems like Ubuntu. Wine is available in Ubuntu repository, so we can install wine using
</br></br><div class="code">sudo apt-get install wine</div></br>
Install dosbox using
</br></br><div class="code">sudo apt-get install dosbox</div></br>
Get the Dangerous Dave compressed file from here:</br></br>
<form method="link" action="http://www.dosgamesarchive.com/download/dangerous-dave/" target="_blank">
<input class="get_button" type="submit" value="Download Dangerous Dave!"></br></br>
Unzip the contents either by right-clicking on the file and clicking on "Extract" or using the following command:</br></br>
<div class="code">unzip dave.zip</div></br>
Now right-click on DAVE.EXE and choose open-with "Wine Windows Program Loader" or in the terminal type:
</br></br><div class="code">dosbox DAVE.EXE</div></br>and here you go!
</form>
<h2>Troubleshooting:</h2>
If you are getting the following error when trying to run DAVE.EXE from the terminal:</br></br>
<div class="code">DOSBox version 0.74</div>
<div class="code">Copyright 2002-2010 DOSBox Team, published under GNU GPL.</div>
<div class="code">---</div>
<div class="code">CONFIG:Loading primary settings from config file /home/jobin/.wine/dosdevices/c:/users/jobin/Temp/cfgbab4.tmp</div>
<div class="code">MIXER:Got different values from SDL: freq 44100, blocksize 512</div>
<div class="code">ALSA:Can't subscribe to MIDI port (65:0) nor (17:0)</div>
<div class="code">MIDI:Opened device:none</div>
</br></br>
Then you need to copy the contents of dave directory into your /home/<username>.wine/drive_c/ using the following command:</br>
<div class="code">cp <path_where_dave_is_stored> /home/$USER/.wine/drive_c/</div>
</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6739248016527954822.post-31274772014380112972013-04-24T20:42:00.000-07:002013-04-24T20:50:52.100-07:00PHP script downloading instead of executing in browser<div class="paragraph">
To run a <b class="main_app">PHP</b> script in Ubuntu or likewise other Linux-based distributions, your file should be located in the <b class="code">/var/www/</b> folder. To run the script in the terminal, you can type
<code class="code">php filename.php</code> when in <b class="code">/var/www</b> folder. To run the script in browser, type the url as <b>localhost/filename.php</b>.<br /><br />
If opening the file in the browser, downloads the file, instead of executing it, you need to install some packages. To do this, type the following in a terminal:<br /><br />
<code class="code">sudo apt-get install apache-mod2-php5</code><br /><br />
Now open the file again in the browser by using the url shown above, and your script should be up and running.
</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6739248016527954822.post-1417421012830143192013-04-21T01:07:00.000-07:002013-04-21T02:24:51.693-07:00Trouble installing Adobe Flash Player on Firefox in Windows<div class="paragraph">
Installing or updating <b class="main">Adobe Flash Player</b> using the links redirecting it to <a href="http://get2.adobe.com/flashplayer/" taget="_blank">its official online page</a> almost never works for me. Be it network connection or some other problem, it is very difficult to get this working. What I usually get is this or some other kind of error:<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhg4tv196ETGbgpqvEtV2c7Xqm44saKBgocYBSaQ0yPg0BcpzN5w1m8eskOBDQc1TCkoFEcIGwO6btuUovvR6I_GTFp05Z8FuzHPv2LoSBqFPbyhbg4OsOSemWs-3aNi1mU3-XnqRdJNYc/s1600/adobe+flash+player+update+error.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height=auto width=auto src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhg4tv196ETGbgpqvEtV2c7Xqm44saKBgocYBSaQ0yPg0BcpzN5w1m8eskOBDQc1TCkoFEcIGwO6btuUovvR6I_GTFp05Z8FuzHPv2LoSBqFPbyhbg4OsOSemWs-3aNi1mU3-XnqRdJNYc/s320/adobe+flash+player+update+error.png" /></a>
</td></tr><br /><br />
<tr><td class="tr-caption" style="text-align: center;">The error I usually get when installing the online version</td></tr>
</tbody></table>
If you are one of me, don't worry, there is a solution to this; download the full offline installer!<br /><br />
To get the offline installer, download the offline version by clicking on the button below and follow the normal <code class="code">Next-Next-Finish</code> method on Windows applications and you have the latest version of <i class="main_app">Adobe Flash Player</i>. <br /><br />
<tr><td style="text-align: center; margin-left: auto; margin-right: auto;">
<form method="link" action="http://download.macromedia.com/get/flashplayer/current/licensing/win/install_flash_player_11_plugin.exe" target="_blank">
<input class="get_adobe_flash_button" type="submit" value="Download the offline installer!">
</form></td></tr>
<br />
</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6739248016527954822.post-26810793323535303672013-03-23T12:11:00.000-07:002020-04-27T13:05:07.666-07:00Trivial Lex program to tokenize a C program<div dir="ltr" style="text-align: left;" trbidi="on">
<code class="program"><br />
/*<br />
* Copyright (c) 2012-13 Jobin Raju George<br />
*<br />
* Licensed under the GNU General Public License Version 2<br />
*<br />
* This program is free software; you can redistribute it and/or modify<br />
* it under the terms of the GNU General Public License as published by<br />
* the Free Software Foundation; either version 2 of the License, or<br />
* (at your option) any later version.<br />
*<br />
* This program is distributed in the hope that it will be useful,<br />
* but WITHOUT ANY WARRANTY; without even the implied warranty of<br />
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br />
* GNU General Public License for more details.<br />
*<br />
* A copy of the GNU General Public License is available at<br />
* <http://www.gnu.org/licenses/>.<br />
*/<br />
%{<br />
#include <stdio.h><br />
%}<br />
<br />
DIGIT [0-9]<br />
NUMBER {DIGIT}+<br />
REAL {DIGIT}*"."{DIGIT}+<br />
TEXT [a-zA-Z ]+<br />
TEXT_NUMBERS [a-zA-Z0-9]<br />
CONDITIONALS "if"|"else"|"else if"|"switch"|"case"<br />
KEYWORD "break"|"continue"|"goto"|"printf"|"scanf"|"sprintf"|"sscanf"|"fopen"|"fwrite"|"fread"|"fclose"|"write"|"read"|"open"|"close"|"return"|"int"|"float"|"char"|"unsigned"|"signed"|"short"|"long"|"double"<br />
ITERATORS "for"|"while"|"do"<br />
PREPROCESSOR "#"|"#line"|"#undef"|"#error"|"#elif"|"#else"|"#endif"|"#if"|"#define"|"#include"|"#pragma"|"#ifndef"|"#ifdef"<br />
DELIMITER [; :\t\n()"]<br />
IDENTIFIER [a-zA-Z]{TEXT_NUMBERS}*|[a-zA-Z]{TEXT_NUMBERS}*[[{NUMBER}+]]<br />
NON_IDENTIFIER {NUMBER}+[A-Za-z]+<br />
FORMAT_SPECIFIER "%"{TEXT_NUMBERS}+<br />
FILE "<"{IDENTIFIER}.h">"<br />
COMMENT "/*"[a-zA-Z0-9 \t\n;.~!@#$%^&*()_+=<>?:"{}]*"*/"<br />
AOPERATOR "+"|"-"|"*"|"/"|"="<br />
BLOCK_BEGINS "{"<br />
BLOCK_ENDS "}"<br />
UNARY "++"|"--"<br />
LOPERATOR "&"|"|"|"&&"|"~"|"||"|">"|"<"|">="|"<="|"=="<br />
FUNCTION {IDENTIFIER}+"("{DELIMITER}*{TEXT}{TEXT_NUMBERS}*{DELIMITER}*")"<br />
%%<br />
<br />
{CONDITIONALS} { printf("%s is a conditional\n", yytext); }<br />
{ITERATORS} { printf("%s is an iterator\n", yytext); }<br />
{DIGIT} { printf("%s is a digit\n", yytext); }<br />
{NUMBER} { printf("%s is a number\n", yytext); }<br />
{REAL} { printf("%s is a real number\n", yytext); }<br />
{PREPROCESSOR} { printf("%s is a preprocessor directive\n", yytext); }<br />
{DELIMITER} { printf("%s is a delimiter\n", yytext); }<br />
{KEYWORD} { printf("%s is a keyword\n", yytext); }<br />
{NON_IDENTIFIER} {printf("Could not process %s", yytext); }<br />
{IDENTIFIER} { printf("%s is an identifier\n", yytext); }<br />
{COMMENT} { printf("%s is a comment\n", yytext); }<br />
{AOPERATOR} { printf("%s is a mathematical operator\n", yytext); }<br />
{LOPERATOR} { printf("%s is a logical operator\n", yytext); }<br />
{BLOCK_BEGINS} { printf("Block begins\n", yytext); }<br />
{BLOCK_ENDS} { printf("Block ends\n", yytext); }<br />
{FILE} { printf("%s is a file\n", yytext); }<br />
{UNARY} { printf("%s is a unary operator\n", yytext); }<br />
{FUNCTION} { printf("%s is a function\n", yytext); }<br />
{FORMAT_SPECIFIER} {printf("%s is a format specifier\n", yytext); }<br />
%%<br />
<br />
int main(int argc, char *argv[]) {<br />
yylex();<br />
return 0;<br />
}<br />
</code>
<br />
<form action="http://dl.dropbox.com/u/96118037/analyzer.l" method="link" target="_blank">
<input class="get_new_button" type="submit" value="Download this code" />
</form>
<br />
<div class="paragraph">
To compile this program, type the following commands:<br />
<div class="code">
lex filename.l<br />
cc lex.yy.c -ll<br />
./a.out</div>
</div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6739248016527954822.post-35471836944578932862013-02-09T20:48:00.000-08:002013-02-19T08:42:51.597-08:00How to read files in Linux-based partitions from Windows?<div class="paragraph">
A PC with <a href="http://en.wikipedia.org/wiki/Microsoft_Windows" target="_blank">Windows</a> and <a href="http://www.ubuntu.com/project/about-ubuntu" target="_blank">Ubuntu</a> lets you choose the best of both Operating Systems. While I use Windows usually for gaming, Ubuntu is all for work, and need to store data in both of them.<br /><br />
As you all are aware, Ubuntu can read <code class="code"><a href="https://www.google.com/search?q=define+ntfs&ie=utf-8&oe=utf-8&client=ubuntu&channel=fs&safe=active#hl=en&safe=active&client=ubuntu&hs=ZuY&tbo=d&channel=fs&sclient=psy-ab&q=define+ntfs&oq=define+ntfs&gs_l=serp.3..0l2j0i30l2.4170.5676.3.5977.7.7.0.0.0.5.1088.3799.0j1j0j2j0j3j0j1.7.0.les%3B..0.0...1c.1.nSp8wl9joAw&pbx=1&bav=on.2,or.r_gc.r_pw.r_cp.r_qf.&bvm=bv.41642243,d.bmk&fp=ad05219103ae9625&biw=1366&bih=645" target="_blank">NTFS</a></code>, the file system that Windows uses, so can read and also store data into Windows' drives. But unfortunately, Windows is "blind" to <code class="code"><a href="https://www.google.com/search?q=define+ntfs&ie=utf-8&oe=utf-8&client=ubuntu&channel=fs&safe=active#hl=en&safe=active&client=ubuntu&hs=jvY&tbo=d&channel=fs&sclient=psy-ab&q=define+ext+partition&oq=define+ext+partition&gs_l=serp.3...4670.4670.8.5042.1.1.0.0.0.0.104.104.0j1.1.0.les%3B..0.0...1c.1.0UmbXPnRcV8&pbx=1&bav=on.2,or.r_gc.r_pw.r_cp.r_qf.&bvm=bv.41642243,d.bmk&fp=ad05219103ae9625&biw=1366&bih=645" target="_blank">ext</a></code> partitions, i.e, Windows does not read data in <code class="code">ext</code> partitions, the ones used by Ubuntu. So, while on Windows, I was unable to read files stored in my Ubuntu operating system. It was only when I came to know about <b class="main_app"><a href="http://www.diskinternals.com/linux-reader/" target="_blank">Linux Reader</a></b>, that I stopped rebooting my Windows to fetch files from Ubuntu.<br /><br />
<i class="main_app">Linux Reader</i> is an application that lets you read Linux-based Operating System files from Windows.<br /><br />
<form method="link" action="http://www.diskinternals.com/files/LinuxReader.zip" target="_blank">
<input class="get_new_button" type="submit" value="Download Linux Reader!">
</form><br /><br />
<h2>Getting started:</h2>
To read files, first download this application and install using the usual <code class="code">Next-Next-Finish</code> installation method of Windows and then open <i class="main_app">Linux Reader</i> and choose the partition from which you want to read files from.<br /><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhloqKmRe8s23f9NGtQyoe9_IOHkDQSxMEQkVvswqol8xVGdZ5SwMrT6yhCSyvVujvEM_M-_ugfSsrLD9uLihrnuQvGIdvsWDlVupoV84j9wzgvclu2KY3HLjF69guf1_VwvRn6hFIHS_Qa/s1600/first+screen.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhloqKmRe8s23f9NGtQyoe9_IOHkDQSxMEQkVvswqol8xVGdZ5SwMrT6yhCSyvVujvEM_M-_ugfSsrLD9uLihrnuQvGIdvsWDlVupoV84j9wzgvclu2KY3HLjF69guf1_VwvRn6hFIHS_Qa/s400/first+screen.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">The first screen that you see when you open "Linux Reader"</td></tr>
</tbody></table>
<h2>This way, please:</h2>
I want to copy my <code class="code">Pictures</code> folder from my <code class="code">/home</code> partition. So I go to <code class="code">/home</code> and then choose <code class="code">Pictures</code> and then <code class="code">Save</code> to save the folder to any location that you want in Windows.<br /><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv1Mjxv36NwFGTKXbGDAdzJ-LF5edZzgQ_7iP8AbwKtp3OzNef8-LGBoxoHyx-VlQCymk4SdU43xfxmZPHq6xtIM60lpCzCyrIKfaq__RXBuRhRBsFqPf4kjyM6nAuAK53yRyMdxuFK6Fv/s1600/second.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv1Mjxv36NwFGTKXbGDAdzJ-LF5edZzgQ_7iP8AbwKtp3OzNef8-LGBoxoHyx-VlQCymk4SdU43xfxmZPHq6xtIM60lpCzCyrIKfaq__RXBuRhRBsFqPf4kjyM6nAuAK53yRyMdxuFK6Fv/s400/second.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">The folder I want to save is located in /home. The screen shot shows "Pictures" folder is selected.</td></tr>
</tbody></table><br /><br />
This will copy the files from your Linux partition to the folder you desire.<br /><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjik_VuZMv5GnyfwgncAY9StwfzohTreAlq76wYZhyphenhyphenR9rw-9YjoZiKVk_j2aXuC1lMr96b98yEyLsouNgWUwkC6LJAZFpHaFc9qqaHS4aC_LNpkPcGNBTW5uEeilBB_O0yccps7QqdaRlLM/s1600/third+screen.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjik_VuZMv5GnyfwgncAY9StwfzohTreAlq76wYZhyphenhyphenR9rw-9YjoZiKVk_j2aXuC1lMr96b98yEyLsouNgWUwkC6LJAZFpHaFc9qqaHS4aC_LNpkPcGNBTW5uEeilBB_O0yccps7QqdaRlLM/s400/third+screen.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Select the location where you want to save the folder.</td></tr>
</tbody></table>
<br /><br />
I have tested this application to work for <a href="http://www.debian.org/intro/about#what" target="_blank">Debian</a> and Ubuntu, though it should work on all Linux-based operating systems.<br /><br />
<h2>Drawbacks:</h2>
<ol style="text-align: left;">
<li>The worst thing about this application is you can't edit files unless you save them to Windows.<br /><br />
</li>
<li>The second drawback is a less serious one, but is relevant to some: Though this application is free of cost, its not <a href="https://www.google.com/search?q=what+is+open+source+software&ie=utf-8&oe=utf-8&client=ubuntu&channel=fs&safe=active#hl=en&sugexp=les%3B&gs_rn=1&gs_ri=serp&tok=5nADV4NNEVUYLyM3M_pIyA&pq=what%20is%20open%20source%20software&cp=2&gs_id=vj&xhr=t&q=define+open+source+software&es_nrs=true&pf=p&safe=active&client=ubuntu&hs=SVt&tbo=d&channel=fs&sclient=psy-ab&oq=de+open+source+software&gs_l=&pbx=1&bav=on.2,or.r_gc.r_pw.r_cp.r_qf.&bvm=bv.41642243,d.bmk&fp=ad05219103ae9625&biw=1366&bih=680" target="_blank">open source</a>, so you won't get to see the source code.<br /><br />
</li>
</ol>
<div class="notes"><b>P.S.:</b>There may be many other softwares better than these, offering more and better functionalities. Please let me know if you know of any. I liked <i class="main_app">Linux Reader</i>, that's why I personally recommend this software.</div>
</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6739248016527954822.post-86503118073205158872013-01-26T21:30:00.002-08:002013-02-01T03:02:01.770-08:00How to use conky to configure my Ubuntu's desktop?<div class="paragraph">
Ubuntu is a very powerful Operating System which offers immense control and options to its users so that they can customize it to their own needs. One of these options is customizing the desktop using various tools and softwares.</br></br>
One of the most popular tools to customize the desktop is <i class="main_app">conky</i>. From the manual page of <i class="main_app">Conky:</i> <p class="code">"A system monitor for X originally based on the torsmo code, but more kickass. It just keeps on given'er. Yeah."</p><br />
Though this does not provide sufficient information about <i class="main_app">conky</i>, it does reveal a lot about its developers. Yeah!</br></br>
In order to customize your desktop using <i class="main_app">conky</i>, you need to configure the conkyrc file located in the .conky folder of your home folder. Don't worry, if you could not locate such a folder, since it has to be created when you first configure this file.</br></br>
So, lets begin customizing our desktop.</br></br>First, install <i class="main_app">conky</i> by typing the following command on your terminal:</br><p class="code">sudo apt-get install conky-all</p>Next, we need to configure the <i class="code">/home/$USER/.conky/conkrc</i> file. I was too lazy to do this myself and looked out for a good Samaritan who could provide me with a fully configured file. I found <a href="http://www.lffl.org/2011/02/conky-lua-2011-bellezza-stile-ed.html" target="_blank">this website</a> while going through <a href="https://plus.google.com/113125592048316212297/posts" target="_blank">my Google+ posts</a> when I saw <a href="https://plus.google.com/108191085553501782152/about" target="_blank">Carlo Coppa</a>'s post, and the wallpaper <a href="http://www.a-gc.com/images/2012/11/abstract-linux-ubuntu-HD-Wallpapers.png" target="_blank">from here</a>, which appeased me and I quickly pilfered it! This page is in Italian, so I thought I could just translate it for you, in my words, using <a href="http://translate.google.com/#it/en/" target="_blank">what you have already guessed</a>!</br></br>
Next, <a href="http://gnome-look.org/CONTENT/content-files/139024-Conky-lua.tar.gz" target="_blank">click here</a>, and press "Save". The file will be saved in a location depending upon the configuration of your browser. Its probably in your "Downloads" folder. Extract it by right-clicking on it and clicking on "Extract here". Open the newly created folder, named "Conky-lua", and again extract the contents of "Conky ubuntu-lua.tar.gz".</br></br>
Now, copy all the files of this folder, "Conky ubuntu-lua" and create a folder .conky in your home folder and paste all the files you just copied to .conky .</br></br>
Next, open a terminal and type the following:</br></br>
<p class="code">mkdir -p ~/.lua/scripts/ </br>
cp ~/.conky/clock_rings.lua ~/.lua/scripts/</p></br></br>
Don't worry about the -p option to mkdir, it resolves errors if parent directories are not found, by creating them.</br></br>
Now, we are almost set to watch the show, type the following to run <i class="main_app">conky</i>:</br></br>
<p class="code">conky -c ~/.conky/conkyrc</p></br></br>
This is how my desktop looks after this configuration. I'm lovin it!<br /><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiawXJngl_H_OGGfixyF-u5tWqtHzUntNMZBJzhS2yIZ6nm6hIlhDnPnCaQ-IXg3Hr0AqPB19OaRBuWyDS40HkPzK27-yG5e7zZPy2pe6CvnxhXIe_YivPeKNga_LgYk6cs9UD_qruopa5k/s1600/wallpaper.png" imageanchor="1" style="margin-left:1em; margin-right:1em"><img border="0" height="225" width="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiawXJngl_H_OGGfixyF-u5tWqtHzUntNMZBJzhS2yIZ6nm6hIlhDnPnCaQ-IXg3Hr0AqPB19OaRBuWyDS40HkPzK27-yG5e7zZPy2pe6CvnxhXIe_YivPeKNga_LgYk6cs9UD_qruopa5k/s400/wallpaper.png" /></a></div>
<h2>The script to get this!</h2>
You can click on "Download the script", which will help you to configure your desktop exactly as shown. <br /><br />
<form method="link" action="http://dl.dropbox.com/u/96118037/get_this.sh" target="_blank">
<input class="get_button" type="submit" value="Download the script!">
</form><br /><br />
Click "Save" after you click on the link and to run this, open a terminal and go to the path where you have downloaded this script and type:
<p class="code">bash get_this.sh</p><br /></br>
This will only run <i class="main_app">conky</i> this time. The next time you login, the script will have to be run again using the command
<p class="code">conky -c ~/.conky/conkyrc</p>
I am sorry for this trouble, but I am working to add it to "Start-up Applications" and will soon add this, till then, Enjoy!<br /><br />
Feel free to question me regarding these configurations or if you have any problems before, during or after running this script, I'll be very happy to solve them for you, if I am able to!</br></br>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6739248016527954822.post-68243374238190952882013-01-25T09:44:00.001-08:002014-09-08T22:18:17.509-07:00How to annotate PDF's in Ubuntu?<div class="paragraph">
According to me, there is no particular application in Ubuntu that annotates PDF's well, or at least, as well as Nitro PDF reader or Adobe Reader's Professional version. Because of this reason, I had to keep switching to Windows whenever I wanted to read and annotate PDF's, which is the common source of learning material in college. Annotations formed a very important part of reading as marking the important lines for further reading were essential, which would otherwise lead me to constant searching of certain important points.</br></br>
However, recently, courtesy<a href="http://blogs.perl.org/users/cyocum/2011/10/annotating-pdfs-with-evince.html" target="_blank"> a good read</a>, I found a very useful tool in <i class="main_app">evince</i>, the default PDF reader in Ubuntu, which could annotate PDF's albeit involving some laborious tasks.</br></br>
There is a little drop-down menu "Thumbnails" at the top-left corner of <i class="main_app">evince</i>, when you open a PDF in it. Click on the arrow besides it. You should see the "Annotations" option that appears in the list just appeared.
<br /></br>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOjSA1u0UaHhU5xP8pPswyOA28iLU6drYR71WtIlu5noCvgdYIhpw9dxMY9__Mu6Quyyz2YkiCdMLfERpWLBNU9OhQIHhm2SR255tMEC6KUDVOqsFGp6TLcyjUgvJePALrn_vLP9uYUXAt/s1600/annotations.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="264" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOjSA1u0UaHhU5xP8pPswyOA28iLU6drYR71WtIlu5noCvgdYIhpw9dxMY9__Mu6Quyyz2YkiCdMLfERpWLBNU9OhQIHhm2SR255tMEC6KUDVOqsFGp6TLcyjUgvJePALrn_vLP9uYUXAt/s400/annotations.png" width="400" /></a></div></br></br>
Next, click on "Add" that has appeared now, which may give you a small icon with a "pencil" image over it. Click on the "pencil", and move the cursor over the reading region, which would change the pointer to a "cross-signed" cursor. Now click where you want to add a note. A yellow-colored mark-up should appear accompanied by a note that can be edited below it. You may not be able to type on it, unless you try to resize it by clicking on its lower corners and resize it to a different size.<br /> If you don't seen the "Thumbnails" drop-down menu, click on "View" on the menu bar and then on "Sidepane". (Thanks to <a href="https://apis.google.com/u/0/wm/1/104095677605302934297">John McCreesh</a> for pointing this out in the comments).
<br /></br>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGs3uQTfGWJKU3Gwp8BeCQZygGSK7aPXLW7zsJDHZYucIA5PEqH0Ogo1DL_vAOR1LQHLV1m8b-ZrBXoA8sAqWjmkiOUVPjJodCVAAjQVbbpZmw3jHvw83F4dFId0Ur7d5ynP9mr3FwChMl/s1600/resize.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGs3uQTfGWJKU3Gwp8BeCQZygGSK7aPXLW7zsJDHZYucIA5PEqH0Ogo1DL_vAOR1LQHLV1m8b-ZrBXoA8sAqWjmkiOUVPjJodCVAAjQVbbpZmw3jHvw83F4dFId0Ur7d5ynP9mr3FwChMl/s400/resize.png" width="400" /></a></div></br></br>
Unfortunately, even after this arduous and tedious toil, you may only be able to type in lemon yellow colored font, which for-the-moment seems to be immutable.
<br /></br>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFmk4lK_414Sd_F-SslbbAuygwQT1bSxYZE4cvFeTkWJiChFLeaW4yaRrvsycJtkFwqOG0-ABVDjG7brlVBpmRUf1WGeyje4AOCYnmozwhg5cV96hALyhFlJIKHkUkfqeuGvY79KAityfU/s1600/written_annotation.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="325" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFmk4lK_414Sd_F-SslbbAuygwQT1bSxYZE4cvFeTkWJiChFLeaW4yaRrvsycJtkFwqOG0-ABVDjG7brlVBpmRUf1WGeyje4AOCYnmozwhg5cV96hALyhFlJIKHkUkfqeuGvY79KAityfU/s400/written_annotation.png" width="400" /></a></div></br></br>
I'll surely try to find a better alternative to this, before that, lets hope the <i class="main_app">evince</i> authors write a better "annotator".</br></br>
<p class="notes">
<b>P.S.</b>: There are some other PDF readers which you may want to try out:</br>
1) <b class="add_app" style="color:red">Okular:</b> a light-weight PDF reader. This is a very compact reader, about 1.5 MB in size,(Adobe reader is more than 40 MB!, just for comparison) and allows simple configuration like full-screen reading, colour inversion, etc.</br></br>
2) <b class="add_app" style="color:red">Xournal:</b> Another light-weight application, specially designed for taking down hand-written notes but also allows PDF's to be read and annotated. Though not very useful for annotation, highlighting and mark-up tools are available, worth giving a try.
</p>
</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6739248016527954822.post-6824321249840292172013-01-25T02:27:00.001-08:002013-02-01T03:03:04.492-08:00How to measure the temperature of your processor?<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div class="paragraph">
If you have experienced that your laptop or desktop heats up a lot due to some strange reasons like may be having a dedicated graphics card and have wanted to check out some options to solve this, <b><i class="main_app">jupiter</i></b> is one of the tools for you. This software was hinted to me by one of my good friends, <a href="https://plus.google.com/100760479793793967765" target="_blank">+Pratik Nadagouda</a>, thanks Nada!</br></br>
<i class="main_app">jupiter</i> is a tool that measures temperature and provides certain measures to reduce it like closing unwanted applications that are using up the processor and other resources.</br></br>
To install <i class="main_app">jupiter</i>, open "Software center" and go to "Edit" in the menu bar at the top. Select "Software Sources..." from the drop-down menu.</br><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU71GBQ9XkFshSzW1eFmykwGMO7R08JJ0mL-TWXDq_W7XoQxdkbsV0AyBTWDkWAMYFt8kI2Ifj51hZoDFg3SHjaT9kaNXsUW1ZnZ5uFK5kQENCggP5uy-CE5P4n37youdJQq9OukTdFpZs/s1600/software_sources.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="293" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU71GBQ9XkFshSzW1eFmykwGMO7R08JJ0mL-TWXDq_W7XoQxdkbsV0AyBTWDkWAMYFt8kI2Ifj51hZoDFg3SHjaT9kaNXsUW1ZnZ5uFK5kQENCggP5uy-CE5P4n37youdJQq9OukTdFpZs/s400/software_sources.png" width="400" /></a></div>
In the second tab, "Other softwares", click on "Add" button, and add the following line:
<br />
<i class="code">ppa:webupd8team/jupiter</i> and click on "Add Source".
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQsjNU9nQiCqUObODOEYJOAGzr-XDbVOxPykz28bQtpSy2wPsSFo4zyVm84O_2KVdGoTbCVKspksbDArtFjHjWWGDN9UDBO5RgnCsjyCPEQaC7Teel3MF9UcLsOrkQS6GbDcMrgLQMmDTK/s1600/add_ppa.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="291" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQsjNU9nQiCqUObODOEYJOAGzr-XDbVOxPykz28bQtpSy2wPsSFo4zyVm84O_2KVdGoTbCVKspksbDArtFjHjWWGDN9UDBO5RgnCsjyCPEQaC7Teel3MF9UcLsOrkQS6GbDcMrgLQMmDTK/s400/add_ppa.png" width="400" /></a></div></br></br>
Then open a terminal and type:</br><i class="code"> sudo apt-get update</i>
and then </br><i class="code">sudo apt-get install jupiter</i></br></br>
After <i class="main_app">jupiter</i> is installed, a thunder-like icon appears at the top menu bar. Click on the icon to see the temperature of your processor.
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhs6xLmCqpir2DfqOXeoIc_wkoWsYg4MiACqvJgDX8FrWC3JUsgAA3Dp5Be9yrptgBUvxWtUDq-o8G10iFa-qS8cUGA7Dnj0T8s6e0jv50JZ-twGLyiB-PpnBfhJSUse4wyvPwePJlN7gci/s1600/jupiter_power_saving.png" imageanchor="1" style="clear:right; float:right; margin-left:1em; margin-bottom:1em"><img border="0" height="216" width="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhs6xLmCqpir2DfqOXeoIc_wkoWsYg4MiACqvJgDX8FrWC3JUsgAA3Dp5Be9yrptgBUvxWtUDq-o8G10iFa-qS8cUGA7Dnj0T8s6e0jv50JZ-twGLyiB-PpnBfhJSUse4wyvPwePJlN7gci/s400/jupiter_power_saving.png" /></a></div>
"<i class="main_app">jupiter</i>" tunes the kernel and processor for AC or battery and subsequently increases battery-life.<br />
If you can compromise on a little performance, then <i class="main_app">jupiter</i> offers a mode called "Power Saving"(in the performance option when you click on the thunder-like icon of <i class="main_app">jupiter</i>). This helps to cool down the processor a bit, albeit with a trade-off with performance.<br />
<br /></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6739248016527954822.post-62479336343682556512013-01-08T03:32:00.000-08:002013-02-01T03:03:44.953-08:00How to open C drive when Windows is hibernated?<div class="paragraph">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
<div class="paragraph">
<span>Windows saves the information needed to wake up from <a href="http://thelittleican.blogspot.in/p/appendix.html#hibernate" target="_blank">hibernation</a> usually in the "C" drive, in a file named hiberfil.sys. Its size is approximately the size of your RAM and is stored on the hard disk when the computer is asked to hibernate.</span></div>
</div></br>
<div style="text-align: justify;">
<span>Because the system is hibernated and needs to be in the same state when revived, the partition is made read-only and should not be changed from another operating system, if it is a multi-boot system.
So, when you open your Windows drive from a Linux-based operating system, such as Ubuntu, you may get an error message such as this:</span></div>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXaHbZi0WAj7a8jc3599VLUXp_yQNd1i4CSu7p61vIfnt6bm2dl1CB5iyLkRdMKAHssQsabWCrlKBH5GYSfFtYQw7sC2PT-0UJz-mEWeXrxrzXBaRJPrDJhbB6jhbto63RQf8NBsYsfbjq/s1600/Hibernate+mount+error.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="162" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXaHbZi0WAj7a8jc3599VLUXp_yQNd1i4CSu7p61vIfnt6bm2dl1CB5iyLkRdMKAHssQsabWCrlKBH5GYSfFtYQw7sC2PT-0UJz-mEWeXrxrzXBaRJPrDJhbB6jhbto63RQf8NBsYsfbjq/s320/Hibernate+mount+error.png" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">The error message obtained when the hibernated Windows partition is asked to mount.</td></tr>
</tbody></table>
<span>You can retrieve your data from this drive, without having to open Windows in steps:</span><br />
1) Open a command-prompt, such as your gnome-terminal.<br />
2) Type <p class="code">sudo mount -r /dev/sda2 /media/your_username</p><br />
<div style="text-align: justify;">
<span>In place of <b><span style="color: #38761d; font-family: "Courier New",Courier,monospace;">sda2</span></b>, type the name of the device where your Windows is installed, like sda1 or sdb1 or something like that. To see which device on your Windows is installed on, type <p class="code">sudo fdisk -l</p> and try to recognise the Windows partition by looking at the "<b><span style="color: #38761d; font-family: "Courier New",Courier,monospace;">blocks</span></b>" column which shows the size of the Windows partition. And in place of <b style="font-family: "Courier New",Courier,monospace;"><span style="color: #38761d;">your_username</span></b>, type your user-name or type <b style="color: #38761d; font-family: "Courier New",Courier,monospace;">/media/</b> and press <b><span style="color: #38761d; font-family: "Courier New",Courier,monospace;">tab</span></b> to see a list of options or the correct option itself! The "C drive" is now mounted and you can see your data!</span></div></br>
<div style="text-align: justify;"></br>
<span style="color: #ea9999;">Caution: Do not try to modify any thing in the Windows drive, even if it may seem to be abnormal as this may cause your data to be lost which may not have been saved while hibernating.</span></div>
</div>
</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6739248016527954822.post-11222564234427955812013-01-04T01:49:00.002-08:002013-02-01T03:04:52.333-08:00How to set proxy authentication for applications in Ubuntu<div class="paragraph">
<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<link href="styles.css" media="screen" rel="stylesheet" type="text/css"></link><br />
<div dir="ltr" style="text-align: left;" trbidi="on">
<span>Applications in Ubuntu can be configured to use your proxy authentication settings by configuring it in <b><span style="color: #38761d;"><span style="font-family: "Courier New",Courier,monospace;">gsettings / dconf</span></span></b>.</span><br /><br /><br />
<div style="text-align: justify;">
<span>From the <a href="https://live.gnome.org/dconf" target="_blank">official GNOME site</a>: <span style="font-family: "Courier New",Courier,monospace;"><b>dconf</b></span> is a low-level configuration system. Its main purpose is to
provide a backend to <b>GSettings</b> on platforms that don't already have
configuration storage systems.</span></div>
<br /><br />
In order to set and authenticate proxy, type <span style="font-family: "Courier New",Courier,monospace;"><span style="color: #38761d;"><b>dconf-editor</b></span></span> at the <span style="color: #38761d;"><b><span style="font-family: "Courier New",Courier,monospace;">terminal</span></b></span>. If it asks you to install <span style="color: #38761d;"><span style="font-family: "Courier New",Courier,monospace;"><b>dconf-tools</b></span></span>, then type <p class="code">sudo apt-get install dconf-tools</p> and enter your password and then, after installation, type <p class="code">dconf-editor</p>.<br />
A window, as shown below, shall open.<br /><br /><br />
<div class="separator" style="clear: both; text-align: center;">
<span><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXKkQGxTLfVubdGurCh8uySaO7Pu7443Y-2PjmReOaFsupmNp1g1kqljiYpgHTFnZ1Cr1IC8-w5VGcoGQaD-bsbAVlSqTb9GoggBu56wbinvq7FXU0sUZ5YB5OXsMOM_WcxE4UbbCP-iJO/s1600/dconf-editor.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="251" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXKkQGxTLfVubdGurCh8uySaO7Pu7443Y-2PjmReOaFsupmNp1g1kqljiYpgHTFnZ1Cr1IC8-w5VGcoGQaD-bsbAVlSqTb9GoggBu56wbinvq7FXU0sUZ5YB5OXsMOM_WcxE4UbbCP-iJO/s320/dconf-editor.png" width="320" /></a></span></div>
<span><br /><br />
On your left hand side panel, click on the arrow besides "<span style="font-family: "Courier New",Courier,monospace;"><span style="color: #38761d;"><b>system</b></span></span>", then on the arrow besides "<span style="color: #38761d;"><span style="font-family: "Courier New",Courier,monospace;"><b>proxy</b></span></span>".</span><br /><br /><br />
<div class="separator" style="clear: both; text-align: center;">
<span><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDn93LTIwFE4aHFLw7FC0bKk223UFGg5YWhygQm_2dyI37jPQZ7Cxa5PfnBfC_swnfBbqOd7r15u8ziNuVh8btGl9DtLKjBweIxOZ6trN1h90heql14xmpUsaI8N9CVDGCqHzInM99WQqy/s1600/dconf-editor-proxy.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="251" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDn93LTIwFE4aHFLw7FC0bKk223UFGg5YWhygQm_2dyI37jPQZ7Cxa5PfnBfC_swnfBbqOd7r15u8ziNuVh8btGl9DtLKjBweIxOZ6trN1h90heql14xmpUsaI8N9CVDGCqHzInM99WQqy/s320/dconf-editor-proxy.png" width="320" /></a></span></div>
<br /><br />
<div style="text-align: justify;">
<span>Check whether the <span style="color: #38761d;"><span style="font-family: "Courier New",Courier,monospace;"><b>mode</b></span></span> is "<span style="font-family: "Courier New",Courier,monospace;"><span style="color: #38761d;"><b>manual</b></span></span>".</span></div>
<br /><br />
<div style="text-align: justify;">
<span>Now, click on <span style="color: #38761d;"><span style="font-family: "Courier New",Courier,monospace;"><b>http</b></span></span> and set your <span style="color: #38761d;"><span style="font-family: "Courier New",Courier,monospace;"><b>password</b></span></span> and <b><span style="color: #38761d;"><span style="font-family: "Courier New",Courier,monospace;">user-name</span></span></b> by clicking on "Value" field in "<b><span style="font-family: "Courier New",Courier,monospace;"><span style="color: #38761d;">authentication-password</span></span></b>" and "<span style="font-family: "Courier New",Courier,monospace;"><span style="color: #38761d;"><b>authentication-user</b></span></span>" respectively. Let the "<span style="color: #38761d;"><span style="font-family: "Courier New",Courier,monospace;"><b>enabled</b></span></span>" and "<span style="font-family: "Courier New",Courier,monospace;"><span style="color: #38761d;"><b>use-authentication</b></span></span>" fields have a tick on them.</span></div>
<br /><br /><br />
<div style="text-align: justify;">
<span>Next, click on <span style="color: #38761d;"><b><span style="font-family: "Courier New",Courier,monospace;">ftp</span></b></span>, <span style="color: #38761d;"><b><span style="font-family: "Courier New",Courier,monospace;">https</span></b></span> and <span style="color: #38761d;"><b><span style="font-family: "Courier New",Courier,monospace;">socks</span></b></span> and type your <span style="font-family: "Courier New",Courier,monospace;"><span style="color: #38761d;"><b>host</b></span></span> and <span style="font-family: "Courier New",Courier,monospace;"><b><span style="color: #38761d;">port-number</span></b></span>. Unfortunately, these cannot be assigned authentication parameters for reasons I am not aware of.</span></div>
<span><br />
You can also download <a href="https://docs.google.com/file/d/0BwrQAI1vxQbiT1RPNTZZNGNJcEE/edit" target="_blank">this script</a>, which I prepared to configure your proxy settings.</span><br />
<br /><br />
<h3 style="text-align: left;">
<span>
How to use this script: </span></h3>
<div style="text-align: justify;">
<span>1) Clicking on the link will lead you to a Google document, click on "<b style="color: #38761d; font-family: "Courier New",Courier,monospace;">Download</b>" and then on "<b><span style="color: #38761d; font-family: "Courier New",Courier,monospace;">Save</span></b>".</span></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<span>2) It will get saved to the path either given by you or most probably to your "Downloads" directory.</span></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<span>3) Open your terminal and go to location where the file is saved. Suppose the file is saved on the "Desktop". Type <p class="code">cd Desktop</p></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<span>4) Type <p class="code">sudo bash proth.</p> This will ask for your password, after entering your password, it will ask you for the host, port no, user-name and password for authentication. Give the appropriate details and you are done!</span><br />
<br />
<span>To watch a video of how to use this script, click the link below: </span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<span><iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/H9K-vLdiNPw?feature=player_embedded' frameborder='0'></iframe></span></div>
</div>
</div>
</span>
</div></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6739248016527954822.post-90863543755830649532012-12-18T05:54:00.004-08:002013-02-01T03:05:12.440-08:00How to run an application from any path in Windows Command prompt<div class="paragraph">
<div dir="ltr" style="text-align: left;" trbidi="on">
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="clear: right; float: right; margin-bottom: 1em; text-align: center;"><tbody>
<tr><td style="text-align: center;"></td></tr>
<tr><td class="tr-caption" style="text-align: center;"></td></tr>
</tbody></table>
<div style="margin-left: 1em; margin-right: 1em;">
</div>
<h2 style="text-align: left;">
The problem: </h2>
<div style="text-align: justify;">
If you need to open an application or software such as Microsoft Notepad, you need to go to the path where the application is installed, usually the default location is
<br /><br />
<div class="code">
C:\Windows\system32\</div></br>
and then type</br></br> <div class="code">
notepad</div></br>
to open a new Notepad window. To search for the path where the application is installed, type the following on the prompt:</div>
</br><div class="code">
C:\>for %i in (notepad.exe) do @echo: %~$PATH:i</div>
<div class="code">
C:\WINDOWS\system32\notepad</div>
<br /><br />
<span style="color: #ea9999;"><i>Note the blank spaces, you need to specify it properly to work.</i></span><br /></br>
Replace <br /></br>
<div class="code">
notepad</div></br>
by the application name you want to search for.<br />
<div style="text-align: justify;">
This can be very irritating if you need to open an application often through the prompt and have to go to the path every time where the program is installed. If you try to type the name of the application anywhere other than the path where the application is installed, you will get an error which looks like this:</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.blogger.com/blogger.g?blogID=6739248016527954822" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.blogger.com/blogger.g?blogID=6739248016527954822" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="" border="0" height="161" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqAAAAFUCAIAAAB0tRkAAAAgAElEQVR4nO3de5RdVX3A8QsEEuIDVJTa1orVWl9Y0aKhPrr6h12pddVaqzwSEx+hkPAIUYu2VV4CVhRQkLYIBISuGkKglKdUCReKQNBKEiJCAoVMkkkmCWTuJPfOnTtzZ/ePPXNy5py99/ntc997vp/1W3rm3H33686cX373RaHwV/9GEARBEERoof+vtKePIAiCIIgAYtnSRVMSvAIAAD1u1YqrDQl+w9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CAAFHBAwAQICp4AAACRAUPAECAqOABAAgQFTwAAAGiggcAIEBU8AAABIgKHgCAAFHBAwAQICp4AAACRAUPAECAqOABAAgQFTwAAAGiggcAIEBU8AAABIgKHgCAAFHBAwAQICp4AAACRAUPAECAqOABAAgQFTwAAAGiggcAIEBU8AAABIgKHgCAAFHBAwAQICp4AAACRAUPAECAqOABAAgQFTwAAAGiggcAIEBU8AAABIgKHgCAAFHBAwAQICp4AAACRAUPAECAqOABAAgQFTwAAAGiggcAIEBU8AAABIgKHgCAAFHBAwAQICp4AAACRAUPAECAqOABAAgQFTwAAAGiggcAIEBU8AAABIgKHgCAAFHBAwAQICp4AAACRAUPAECAqOABAAgQFTwAAAGiggcAIEBU8AAABIgKHgCAAFHBAwAQICp4AAACRAUPAECAqOABAAgQFTwAAAGiggcAIEBU8AAABIgKHgCAAFHBAwAQICp4AAACRAUPAECAqOABAAgQFTwAAAGiggcAIEBU8AAABIgKHgCAAFHBAwAQICp4AAACRAUPAECAqOABAAgQFTwAAAGiggcAIEBU8AAABIgKHgCAAFHBAwAQICp4AAACRAUPAECAqOABAAgQFTwAAAGiggcAIEBU8AAABIgKHgCAAFHBAwAQICp4AAACRAUPAECAqOABAAgQFTwAAAGiggcAIEBU8AAABIgKHgCAAFHBAwAQICp4AAACRAUPAECAqOABAAgQFTwAAAGiggcAIEBU8AAABIgKHgCAAFHBAwAQICp4AAACRAUPAECAqOABAAgQFTwAAAGiggcAIEBU8AAABIgKHgCAAFHBAwAQICp4AAACRAUPAECAqOABAAgQFTwAAAGiggcAIEBU8AAABIgKHgCAAFHBAwAQICp4AC8/nMMAAAHfSURBVAACRAUPAECAqOABAAgQFTwAAAGiggcAIEBU8AAABIgKHgCAAFHBAwAQICp4AAACRAUPAECAqOABAAgQFTwAAAGiggcAIEBU8AAABIgKHgCAAFHBAwAQICp4AAACRAUPAECAqOABAAgQFTwAAAGiggcAIEBU8AAABIgKHgCAAFHBAwAQICp4AAACRAUPAECAqOABAAgQFTwAAAGiggcAIEBU8AAABIgKHgCAAFHBAwAQICp4AAACRAUPAECAqOABAAgQFTwAAAGiggcAIEBU8AAABIgKHgCAAFHBAwAQICp4AAACRAUPAECASnv6vGLZ0kUkeAAAup3OyEI6ZZPgAQDodlG2lgQJHgCA3kCCBwAgQCR4AAACRIIHACBAJHgAAAKUSPDGNiR4AAB6TLqCTzSgggcAoPcYn6KPbuUpegAAepLtNfhCKruT4AEA6Bm8yQ4AgACR4AEACBAJHgCAAJHgAQAIUGlP36oVV8vDleCVUiR4AAC6wbKli3zDI8H7/tfmCYIgCILoYIgSvPy/Mw8AALpEMsHrs/EETxAEQRBEL0YywcffZEcQBEEQRO+GIcF7vWePIAiCIIjujCkfk8vxnj2CIAiCILoz9id4Il/o5z8IgiAIotvi/wFsCzCpsjm1TgAAAABJRU5ErkJggg==" style="cursor: move;" width="320" /></a></div>
<br />
<br />
<br />
<br />
<br />
<h2 style="text-align: left;">
The solution: </h2>
<br />
<br />
<div style="text-align: justify;">
To reduce this effort, you can specify Windows to search for the term you type in the prompt in certain fixed locations, called as class paths. You can specify the path to search as follows:</div>
<br />
<div class="code">
Start -> Settings -> Control Panel</div>
<br />
<br />
<br />
<div style="text-align: justify;">
Double-click on System, open "<span style="color: #38761d;">Advanced</span>" tab, click on the "<span style="color: #38761d;">Environment Variables</span>" button below. In the "<span style="color: #38761d;">System variables</span>" frame below, scroll if there are many variables and click on "<span style="color: #38761d;">Path</span>", click "<span style="color: #38761d;">Edit</span>" to add or delete a new path. You can enter the path where your desired application is stored. If there are multiple paths, separate them by semi-colons(<span style="color: #38761d;">;</span>).</div>
<br />
For example, if you need to specify the class path for <a href="http://notepad-plus-plus.org/" target="_blank">notepad++</a>, installed at <span style="font-family: "Courier New",Courier,monospace;"> </span><br />
<br />
<div class="code">
C:\Program files\Notepad++\</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div></br>
<div style="text-align: justify;">
Click on "Path", then "Edit" button, if there already is a path specified, add a semi-colon after that, and type</div></br>
<div class="code">
C:\Program files\Notepad++\</div></br>
<br />
after the already present path.<br /><br />
<div style="text-align: justify;">
Now, you can type <b><span style="font-family: "Courier New",Courier,monospace;">notepad++</span></b> at any path at the command prompt and a new "Notepad++" window will be opened.</div>
<h2 style="text-align: left;">
Even more shorter: </h2>
<div style="text-align: justify;">
In order to shorter the command <b><span style="font-family: "Courier New",Courier,monospace;">notepad++</span></b>, you can rename the file at the installed path to, say, <b><span style="font-family: "Courier New",Courier,monospace;">np</span></b>, and then type <b><span style="font-family: "Courier New",Courier,monospace;">np</span></b> at the prompt.</div>
<div style="text-align: justify;">
<div style="text-align: justify;">
<i><span style="color: #e06666;">Caution: Renaming the executable file may cause the files linked to it, like a shortcut file on the Desktop, to stop working, so you will have to change the filename at respective locations too. However, this is one of the easiest methods to shorten the command. Please share if you find better methods to do so. </span></i></div>
</div>
</div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6739248016527954822.post-8043330636831059022012-12-11T17:08:00.002-08:002013-02-01T03:05:41.016-08:00GNOME Terminal Shortcuts<div class="paragraph">
<div dir="ltr" style="text-align: left;" trbidi="on">
<style type="text/css">
<!--
@page { margin: 2cm }
TH P { margin-bottom: 0cm }
TD P { margin-bottom: 0cm }
P { margin-bottom: 0.21cm }
</style><br />
The <a href="http://thelittleican.blogspot.in/p/appendix.html#gnome">GNOME</a> Terminal is a
very useful tool for students as well as professionals to perform
important and critical tasks as simple as editing a text document to
some complex system administration. It is very handy to know a few
shortcuts which can go a long way in reducing the number of
keystrokes and some headache as well!
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<br /></div>
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<br /></div>
<div align="JUSTIFY" style="margin-bottom: 0cm;">
Given below is a list of
12 shortcuts that can help a lot, especially if you need to type the
same commands again and again:
</div>
<div style="margin-bottom: 0cm;">
<br /></div>
<table cellpadding="4" cellspacing="0" style="width: 100%px;">
<colgroup><col width="200*"></col>
<col width="186*"></col>
</colgroup><thead>
<tr valign="TOP">
<th style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: 1px solid #000000; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0.1cm;" width="27%"><span style="color: orange;">Shortcut</span></th>
<th style="border: 1px solid #000000; padding: 0.1cm;" width="73%"><span style="color: orange;">Description</span></th>
</tr>
</thead>
<tbody>
<tr valign="TOP">
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="27%">Ctrl + Alt + t</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0.1cm; padding-top: 0cm;" width="73%">Opens a new Terminal window</td>
</tr>
<tr valign="TOP">
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="27%">Ctrl + Shift + t</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0.1cm; padding-top: 0cm;" width="73%">Opens a new tab</td>
</tr>
<tr valign="TOP">
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="27%">Ctrl + w</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0.1cm; padding-top: 0cm;" width="73%">Closes the current tab</td>
</tr>
<tr valign="TOP">
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="27%">Ctrl + Shit + q</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0.1cm; padding-top: 0cm;" width="73%">Closes all open tabs</td>
</tr>
<tr valign="TOP">
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="27%">Alt + num</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0.1cm; padding-top: 0cm;" width="73%">Shifts focus to the tab given by <i>num</i>(<i>num </i>should
be less than or equal to 10 here)</td>
</tr>
<tr valign="TOP">
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="27%">Up arrow</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0.1cm; padding-top: 0cm;" width="73%">The most recently used commands in reverse chronological
order.</td>
</tr>
<tr valign="TOP">
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="27%">Ctrl + r</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0.1cm; padding-top: 0cm;" width="73%">Searches for recently used commands</td>
</tr>
<tr valign="TOP">
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="27%">Ctrl + p</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0.1cm; padding-top: 0cm;" width="73%">Displays the last command used and keeps displaying previous
ones if repeated</td>
</tr>
<tr valign="TOP">
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="27%">Ctrl + l</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0.1cm; padding-top: 0cm;" width="73%">Clears the screen</td>
</tr>
<tr valign="TOP">
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="27%">! + first character of a command + Enter</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0.1cm; padding-top: 0cm;" width="73%">Executes the command excuted most recently whose first
character is the one given here</td>
</tr>
<tr valign="TOP">
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="27%">First few characters + tab</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0.1cm; padding-top: 0cm;" width="73%">Displays one by one, in reverse chronological order, the
commands beginning with the characters typed here</td>
</tr>
<tr valign="TOP">
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="27%">tab + tab</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0.1cm; padding-top: 0cm;" width="73%">Displays a list of all possible commands</td>
</tr>
</tbody>
</table>
</div>
</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6739248016527954822.post-17259589066474782802012-12-11T00:11:00.002-08:002013-02-01T03:06:23.449-08:00Difference between Shut down, Hibernate and Suspend options<div class="paragraph">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
<span>The “<i>Hibernate</i>” option is a
tool capable of saving our current session and then powering down,
unlike the “<i>Shut down</i>” option, which closes all open
applications and then powers the system off. Here, we compare the
<i>Shut down</i>, <i>Hibernate </i>and <i>Suspend </i><i>options </i>and
then try to figure out which one to use for a particular session.<span style="color: #e06666;"><i><span style="color: red;"> </span></i></span></span></div>
<div style="margin-bottom: 0cm;">
<span><br />
<style type="text/css">
<!--
@page { margin: 2cm }
TH P { margin-bottom: 0cm }
TD P { margin-bottom: 0cm }
P { margin-bottom: 0.21cm }
</style>
</span></div>
<span><br />
<br />
</span><br />
<table cellpadding="4" cellspacing="0" style="width: 601px;">
<colgroup><col width="96"></col>
<col width="137"></col>
<col width="137"></col>
<col width="197"></col>
</colgroup><thead>
<tr valign="TOP">
<th style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: 1px solid #000000; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0.1cm;" width="96"><span style="color: orange;">Parameter</span></th>
<th style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: 1px solid #000000; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0.1cm;" width="137"><span style="color: orange;">Shut down</span></th>
<th style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: 1px solid #000000; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0.1cm;" width="137"><span style="color: orange;">Hibernate</span></th>
<th style="border: 1px solid #000000; padding: 0.1cm;" width="197"><span style="color: orange;">Suspend</span></th>
</tr>
<tr valign="TOP">
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="96"><b><span style="color: #9966cc;">Powers down the system</span></b></td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="137">Yes</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="137">Yes</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0.1cm; padding-top: 0cm;" width="197">No</td>
</tr>
<tr valign="TOP">
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="96"><b><span style="color: #9966cc;">Closes all open applications</span></b></td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="137">Yes</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="137">No</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0.1cm; padding-top: 0cm;" width="197">No</td>
</tr>
<tr valign="TOP">
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="96"><b><span style="color: #9966cc;">Consumes power</span></b></td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="137">No</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="137">No</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0.1cm; padding-top: 0cm;" width="197">Yes</td>
</tr>
<tr valign="TOP">
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="96"><span style="color: #9966cc;"><b>Relative time to power down</b><span style="color: red;">*</span></span></td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="137"><div style="margin-bottom: 0.5cm;">
Highest</div>
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="137"><div style="margin-bottom: 0.5cm;">
Moderate</div>
<br /></td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0.1cm; padding-top: 0cm;" width="197"><div style="margin-bottom: 0.5cm;">
Least</div>
</td>
</tr>
<tr valign="TOP">
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="96"><span style="color: #9966cc;"><b>Time to wake up</b><span style="color: red;">*</span></span></td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="137"><div style="margin-bottom: 0.5cm;">
Highest</div>
<br /></td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="137"><div style="margin-bottom: 0.5cm;">
Moderate</div>
<br /></td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0.1cm; padding-top: 0cm;" width="197"><div style="margin-bottom: 0.5cm;">
Least</div>
</td>
</tr>
<tr valign="TOP">
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="96"><b><span style="color: #9966cc;">Thus, particularly useful when</span></b></td>
<td style="border-color: -moz-use-text-color -moz-use-text-color rgb(0, 0, 0) rgb(0, 0, 0); border-style: none none solid solid; border-width: medium medium 1px 1px; padding: 0cm 0cm 0.1cm 0.1cm; text-align: left;" width="137">Hardware is to repaired or replaced</td>
<td style="border-color: -moz-use-text-color -moz-use-text-color rgb(0, 0, 0) rgb(0, 0, 0); border-style: none none solid solid; border-width: medium medium 1px 1px; padding: 0cm 0cm 0.1cm 0.1cm; text-align: left;" width="137">The system is not in use for a long period of time, say, more
than 2 hours</td>
<td style="border-color: -moz-use-text-color rgb(0, 0, 0) rgb(0, 0, 0); border-style: none solid solid; border-width: medium 1px 1px; padding: 0cm 0.1cm 0.1cm; text-align: left;" width="197">The system is not in use for a short period of time, say, upto
2 hours and the system has enough battery power to stay alive</td>
</tr>
</thead>
</table>
<span><br />
<br />
<br />
</span><br />
<div style="text-align: justify;">
<span><span style="color: #e06666;"><i><span style="color: red;">
<style type="text/css">
<!--
@page { margin: 2cm }
TH P { margin-bottom: 0cm }
TD P { margin-bottom: 0cm }
P { margin-bottom: 0.21cm }
</style>
</span></i></span>
<span style="color: #e06666;"><i><span style="color: red;">*</span>Actual time depends on the environment like the processor, RAM, Operating System under consideration, viruses, etc.</i></span>
</span></div>
<div style="margin-bottom: 0cm;">
<span><br /></span></div>
<div style="margin-bottom: 0cm;">
<div style="text-align: justify;">
<span>It should be that, the “<i>Hibernate</i>”
option saves the current session to Hard disk, on one of the
partitions on which the Operating System(Microsoft Windows or
Canonical Ubuntu, etc) resides. So, when you <i>hibernate</i>, the
Operating System locks the partition and makes is unopenable from the
other operating systems, in a<span style="color: #9966cc;"> <span style="color: black;">multi-</span></span>boot computer, until the partition
is either mounted as a read-only partition, or the OS that <i>hibernated
</i>is resumed and shut down.</span></div>
<span><br />
</span><br />
<div style="text-align: justify;">
<span>For example, if you have a computer that has Microsoft Windows 7 and Ubuntu 12.10 dual booted and
you <i>hibernate </i>from Windows, you may not be able to
open the <a href="http://thelittleican.blogspot.in/p/appendix.html#C_drive">“C” drive</a> until you open Windows and use “<i>Shut
down</i>”. This means if your Windows accidentally crashes, recovering
data from the “C” drive would become a bit complicated, unless
you apply some kind of work around like copying files after mounting
the partition as read-only.</span></div>
</div>
</div></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6739248016527954822.post-91284646328403009232012-12-09T04:25:00.002-08:002013-02-01T03:06:39.888-08:003 Power tips when using laptop and related portable devices<div class="paragraph">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
<span style="color: blue;"><span style="color: black;"><span style="color: black;">Laptops and other portable devices are meant to be used for convenience and portability. However, there are many times when we have a choice and have no idea about the advantage of one over the other and just use the one we have been using over the years. Here are some suggestions that can help your choice for the better: </span></span></span></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<span style="color: blue;"><span style="color: black;"><span style="color: black;">1)</span></span></span><b><span style="color: blue;"><span style="color: black;"> </span><span style="color: #e69138;">Keep your laptop always, or whenever possible, plugged into AC power</span></span></b>: Most modern day batteries are Lithium ion batteries, compared to Nickel Cadmium batteries of olden days. These are a bit costlier but last longer and do not develop the "<a href="http://en.wikipedia.org/wiki/Memory_effect" target="_blank">Memory Effect</a>" that the olden batteries suffered from. So, instead of charging and discharging always and consuming the chemicals that compose the battery, it is better to let the laptop be plugged in to the main supply whenever possible and save the battery a few more months or may be even years.</div>
<div style="text-align: justify;">
<br />
2) <span style="color: #e69138;"><b>Hibernate, instead of shut down</b></span>: The "Hibernate" option saves your current session to hard disk, meaning all open files and applications, and then powers down the laptop, thus, not only saving power but also booting up much more faster than the usual boot up if you had shut it down.<br />
<br />
However, do this with caution especially if you have a dual boot system, because if you hibernate, you won't be able to open the partition which houses the operating system you have put to hibernate and it returns an error, saying you need to shut down the other operating system and then try to open this partition.<span style="color: #b00000;"><b> </b><span style="color: black;">Other than this, you need to shut down only when you need to work with the hardware of your system like changing your RAM or replacing your hard disk</span>.</span><br />
<span style="color: #b00000;"><br /></span>
3) <span style="color: #e69138;"><b>Never move your laptop when powered on</b></span>: Moving your laptop when it is powered on may lead to physical damage of some critical components of the hard disk which has many moving parts like the platter and the actuator arm. The head of the disk arm is very close to the platter which rotates at a very high speed(of the order of 5400 to 7200 rotations per minute). If the arm accidently touches the surface of the platter at this speed, it may lead to loss of data or even losing the entire hard disk to permanent physical damage. </div>
</div></div>Unknownnoreply@blogger.com0