<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-9090402862789554388</id><updated>2024-11-05T18:46:26.358-08:00</updated><category term="ubuntu"/><category term="linux"/><category term="python"/><category term="command"/><category term="bash"/><category term="commandline"/><category term="install"/><category term="mysql"/><category term="php"/><category term=".iso"/><category term=".nrg"/><category term="Flex"/><category term="GE"/><category term="Google Earth"/><category term="Graph Microsoft Excel 2010"/><category term="IP address"/><category term="JDK"/><category term="KML"/><category term="Keyhole Markup Language"/><category term="Metaheutistics"/><category term="Network Link"/><category term="Oracle"/><category term="VirtualBox"/><category term="actionscript"/><category term="algorithm.sty"/><category term="apache"/><category term="believe"/><category term="binary file"/><category term="blog script codebox"/><category term="copy"/><category term="desktop"/><category term="empty trash"/><category term="ffmpeg"/><category term="file editing"/><category term="font"/><category term="friend"/><category term="graph"/><category term="hide drive icon"/><category term="hop count"/><category term="join"/><category term="kile"/><category term="latex"/><category term="list"/><category term="mount"/><category term="mxml"/><category term="network"/><category term="network simulator"/><category term="ns"/><category term="ns 3"/><category term="ntfs"/><category term="pipe"/><category term="popen"/><category term="port conflict"/><category term="reason"/><category term="restore trash"/><category term="scientific packages"/><category term="search file grep ubuntu linux"/><category term="secure shell"/><category term="sed"/><category term="selfish"/><category term="shutdown"/><category term="split"/><category term="ssh"/><category term="video song mp3 conversion"/><category term="virtual box"/><category term="virtualization"/><category term="xml"/><category term="zip archive"/><title type='text'>Sensing...</title><subtitle type='html'>a part of it.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://bdurblg.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://bdurblg.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Bidur Devkota</name><uri>http://www.blogger.com/profile/06015170217829382344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>31</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9090402862789554388.post-8266408578892171922</id><published>2018-01-01T00:38:00.000-08:00</published><updated>2018-01-01T00:43:43.358-08:00</updated><title type='text'>Python  code: Download shared file from google drive</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This python script downloads file from googledrive by using the shareable link of the file.

&lt;textarea cols=&quot;67&quot; name=&quot;textarea&quot; rows=&quot;59&quot; wrap=&quot;VIRTUAL&quot;&gt;
import requests
import sys

def download_file_from_google_drive(id, destination):
    URL = &quot;https://docs.google.com/uc?export=download&quot;

    session = requests.Session()

    response = session.get(URL, params = { &#39;id&#39; : id }, stream = True)
    token = get_confirm_token(response)

    if token:
        params = { &#39;id&#39; : id, &#39;confirm&#39; : token }
        response = session.get(URL, params = params, stream = True)

    save_response_content(response, destination)    

def get_confirm_token(response):
    for key, value in response.cookies.items():
        if key.startswith(&#39;download_warning&#39;):
            return value

    return None

def save_response_content(response, destination):
    CHUNK_SIZE = 32768

    with open(destination, &quot;wb&quot;) as f:
        for chunk in response.iter_content(CHUNK_SIZE):
            if chunk: # filter out keep-alive new chunks
                f.write(chunk)

if __name__ == &quot;__main__&quot;:

    
# set default values if no input is given at acommandline
 outputFileName = &quot;world13e.tif&quot;
 googleFileID = &quot;1H583z6qDwmrbb9_OYRL05EA2FKVqY8C0&quot;

# READ INPUT FROM COMMANDLINE
 inputLine = sys.argv[1]

 if len(sys.argv) == 2: # only google drive link given
  
  # set googleFileID from command line
  junk,googleFileID = inputLine.split(&#39;&amp;id=&#39;) #https://docs.google.com/uc?export=download&amp;id=1H583z6qDwmrbb9_OYRL05EA2FKVqY8C0
  
 elif len(sys.argv) &gt; 2:
  junk,googleFileID = inputLine.split(&#39;&amp;id=&#39;)
  outputFileName = sys.argv[2]
 
 download_file_from_google_drive(googleFileID, outputFileName)
 print &#39;Download Complete!&#39;

# USAGE
# python download.py  &#39;SharableLink of google drive file&#39; &#39; outputFileName&#39;
# python download.py &#39;https://docs.google.com/uc?export=download&amp;id=1H583z6qDwmrbb9_OYRL05EA2FKVqY8C0&#39; &#39;world1.tif&#39;

&lt;/textarea&gt;

However, a single command can also be used to download files from google drive using wget command as shown below

&lt;textarea cols=&quot;67&quot; name=&quot;textarea&quot; rows=&quot;2&quot; wrap=&quot;VIRTUAL&quot;&gt;
wget --no-check-certificate &#39;https://docs.google.com/uc?export=download&amp;id=1H583z6qDwmrbb9_OYRL05EA2FKVqY8C0&#39; -O outputFileName

&lt;/textarea&gt;


&lt;/div&gt;

</content><link rel='replies' type='application/atom+xml' href='http://bdurblg.blogspot.com/feeds/8266408578892171922/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9090402862789554388/8266408578892171922' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/8266408578892171922'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/8266408578892171922'/><link rel='alternate' type='text/html' href='http://bdurblg.blogspot.com/2018/01/python-code-download-shared-file-from.html' title='Python  code: Download shared file from google drive'/><author><name>Bidur Devkota</name><uri>http://www.blogger.com/profile/06015170217829382344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9090402862789554388.post-7544205431391394060</id><published>2017-12-29T02:20:00.000-08:00</published><updated>2017-12-29T02:20:04.827-08:00</updated><title type='text'>t-test with minimum number of samples</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
There are two different ways to justify the use of the t-test.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Your data is normally distributed and you have at least two samples per group&amp;nbsp;&lt;/li&gt;
&lt;li&gt;You have large sample sizes in each group&lt;/li&gt;
&lt;/ol&gt;
If either of these cases hold, then the t-test is considered a valid test. So if you are willing to make the assumption that your data is normally distributed (which many researchers who collect small samples are), then you have nothing to worry about.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
However, someone might reasonably object that you are relying on this assumption to get your results, especially if your data is known to be skewed. Then the question of sample size required for valid inference is a very reasonable one.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
As for how large a sample size is required, unfortunately there&#39;s no real solid answer for that; the more skewed your data, the bigger the sample size required to make the approximation reasonable. 15-20 per group is usually considered reasonable large, but as with most rules of thumb, there exist counter examples: for example, in lottery ticket returns (where 1 in, say, 10,000,000 observations is an EXTREME outlier), you would literally need somewhere around 100,000,000 observations before these tests would be appropriate.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://stats.stackexchange.com/questions/37993/is-there-a-minimum-sample-size-required-for-the-t-test-to-be-valid&quot; target=&quot;_blank&quot;&gt;Source: stackexchange&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://bdurblg.blogspot.com/feeds/7544205431391394060/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9090402862789554388/7544205431391394060' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/7544205431391394060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/7544205431391394060'/><link rel='alternate' type='text/html' href='http://bdurblg.blogspot.com/2017/12/t-test-with-minimum-number-of-samples.html' title='t-test with minimum number of samples'/><author><name>Bidur Devkota</name><uri>http://www.blogger.com/profile/06015170217829382344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9090402862789554388.post-7442023638337278148</id><published>2014-07-24T19:51:00.003-07:00</published><updated>2014-07-24T19:56:56.172-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mount"/><category scheme="http://www.blogger.com/atom/ns#" term="ntfs"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Error mounting NTFS drive from Ubuntu</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0_6wiOesaK92tWhVVN2aWktn8qhxMezMzkKmjXDYK84xKlW6QYMLKU21fpwJtYfh6R-CfJMBYhquY7LmU8G5i9uqIQPKBq9kFi_BcgQUdOfrFPj7Mg6p2UW94IR7_ltVButU_B3DrWrE/s1600/errorMounting.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0_6wiOesaK92tWhVVN2aWktn8qhxMezMzkKmjXDYK84xKlW6QYMLKU21fpwJtYfh6R-CfJMBYhquY7LmU8G5i9uqIQPKBq9kFi_BcgQUdOfrFPj7Mg6p2UW94IR7_ltVButU_B3DrWrE/s1600/errorMounting.png&quot; height=&quot;152&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
I came across a new problem, at least for me, in ubuntu 14.04, while trying to mount the NTFS drives. It was just saying that I did not turned off windows system properly and therefore the filesystem is corrupt. I could mount the file system in the readonly mode.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
sudo mount -t &quot;ntfs&quot; -ro &quot;uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177&quot; &quot;/dev/sda3&quot; &quot;/media/bidur/d&quot;&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
For that, I have to create a new directory beforehand i.e. &quot;/media/bidur/d&quot;.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Just now, I came across a way to deal with the problem by using ntfsfix commad:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
sudo ntfsfix /dev/sda3&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://bdurblg.blogspot.com/feeds/7442023638337278148/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9090402862789554388/7442023638337278148' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/7442023638337278148'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/7442023638337278148'/><link rel='alternate' type='text/html' href='http://bdurblg.blogspot.com/2014/07/error-mounting-ntfs-drive-from-ubuntu.html' title='Error mounting NTFS drive from Ubuntu'/><author><name>Bidur Devkota</name><uri>http://www.blogger.com/profile/06015170217829382344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0_6wiOesaK92tWhVVN2aWktn8qhxMezMzkKmjXDYK84xKlW6QYMLKU21fpwJtYfh6R-CfJMBYhquY7LmU8G5i9uqIQPKBq9kFi_BcgQUdOfrFPj7Mg6p2UW94IR7_ltVButU_B3DrWrE/s72-c/errorMounting.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9090402862789554388.post-1066831920157187625</id><published>2012-12-06T22:29:00.000-08:00</published><updated>2012-12-06T23:19:00.834-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="command"/><category scheme="http://www.blogger.com/atom/ns#" term="pipe"/><category scheme="http://www.blogger.com/atom/ns#" term="popen"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><title type='text'>Python Pipe</title><content type='html'>Pipes can be used in python using the popen command.
os.popen(command[, mode[, bufferSize]]).
The default mode is read which can also be explicitly indicated by &quot;r&quot; as shown in the example below. The parameter bufferSize can be 0 (no buffering), 1 (line buffering), negative(system default buffering) and  positive values greater than 1 (number defines the buffer size to be used).

&lt;textarea cols=&quot;67&quot; name=&quot;textarea&quot; rows=&quot;10&quot; wrap=&quot;VIRTUAL&quot;&gt;
#Open a pipe to or from command
import os
# shell command to show all the files in current directory with &quot;.py&quot; in the file name 
shellCommand = &#39; ls | grep .py&#39; 

pipe = os.popen(shellCommand,&quot;r&quot;)
while True: # read each output line
    line = pipe.readline()
    if not line: break
    print &#39;outputLine: &#39;
    print line
&lt;/textarea&gt;</content><link rel='replies' type='application/atom+xml' href='http://bdurblg.blogspot.com/feeds/1066831920157187625/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9090402862789554388/1066831920157187625' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/1066831920157187625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/1066831920157187625'/><link rel='alternate' type='text/html' href='http://bdurblg.blogspot.com/2012/12/python-pipe.html' title='Python Pipe'/><author><name>Bidur Devkota</name><uri>http://www.blogger.com/profile/06015170217829382344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9090402862789554388.post-881237787564414521</id><published>2012-11-19T07:24:00.002-08:00</published><updated>2012-11-19T07:24:52.902-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="graph"/><category scheme="http://www.blogger.com/atom/ns#" term="hop count"/><category scheme="http://www.blogger.com/atom/ns#" term="network"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><title type='text'>calculate hop count in a graph using python</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
The following program finds out the &lt;i&gt;hop count&lt;/i&gt; of the nodes in a connected network. &lt;a href=&quot;http://en.wikipedia.org/wiki/Hop_count&quot; target=&quot;_blank&quot;&gt;Hop Count&lt;/a&gt; means the number of point to point connections in a graph of network. For example, in the graph shown below the hop count from&lt;i&gt; node a&lt;/i&gt; to &lt;i&gt;node b&lt;/i&gt; is one, &lt;i&gt;node b&lt;/i&gt; to &lt;i&gt;node c &lt;/i&gt;is two, etc.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3I1Y-LK4oWyWpvx-RnnyLD4LFK4IKvvvv5sVdBf4l7LFdxHIEs6KkKaF9ckqtvLsSBfLlOYOmCNU4TEwusMqJUZVDYnXVKBpSn0y7w7aYgnUM8GjeOMQcqS9aezM125qcXxaMooxDVtI/s1600/network.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;209&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3I1Y-LK4oWyWpvx-RnnyLD4LFK4IKvvvv5sVdBf4l7LFdxHIEs6KkKaF9ckqtvLsSBfLlOYOmCNU4TEwusMqJUZVDYnXVKBpSn0y7w7aYgnUM8GjeOMQcqS9aezM125qcXxaMooxDVtI/s320/network.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
This program&amp;nbsp;assumes&amp;nbsp;the graph given above.&lt;br /&gt;
&lt;b&gt;usage&lt;/b&gt;: &lt;i&gt;getHopCount(dictNeigh, node1,node2)&lt;/i&gt;&lt;br /&gt;
Where:&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;dictNeigh&lt;/i&gt;: dictionary of list of neighbor of each node in the network&lt;br /&gt;
&lt;i&gt;node1 &lt;/i&gt;and &lt;i&gt;node2&lt;/i&gt; are the nodes for which hop count is calculated by the program&lt;br /&gt;
Exception: if the nodes are not connected then it returns Zero&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;textarea cols=&quot;67&quot; name=&quot;textarea&quot; rows=&quot;40&quot; wrap=&quot;VIRTUAL&quot;&gt;
import  copy

dictNeigh = dict() # dictNeigh defines the neighbors 
dictNeigh[&#39;a&#39;] = [&#39;b&#39;,&#39;c&#39;,&#39;d&#39;] # neighbors of &#39;a&#39;
dictNeigh[&#39;b&#39;] = [&#39;a&#39;]# neighbors of &#39;b&#39;
dictNeigh[&#39;c&#39;] = [&#39;a&#39;,&#39;d&#39;]
dictNeigh[&#39;d&#39;] = [&#39;a&#39;,&#39;c&#39;,&#39;e&#39;]
dictNeigh[&#39;e&#39;] = [&#39;d&#39;,&#39;f&#39;]
dictNeigh[&#39;f&#39;] = [&#39;e&#39;,&#39;g&#39;,&#39;h&#39;]
dictNeigh[&#39;g&#39;] = [&#39;f&#39;]
dictNeigh[&#39;h&#39;] = [&#39;f&#39;]

def getHopCount(dictNeigh, node1, node2):
    
    hopCount = 0
    listNodes = copy.deepcopy(dictNeigh[node1])
    listNodeParsed = copy.deepcopy(dictNeigh[node1])
    listNodeParsed.append(node1) # put self node as parsed
    
    listPrevNodes = copy.deepcopy(dictNeigh[node1])

    for i in range (0, len(dictNeigh.keys())):

        if node2 in listNodes:
            hopCount = i +1
            return hopCount

        else:            
            for node in listPrevNodes: 
            # copy all 1 hop neighbor of immediate neighbor             
                listNodes = copy.deepcopy(list( set(listNodes) | set(dictNeigh[node]) ))

            listNodes = copy.deepcopy(list(set(listNodes) - set(listNodeParsed))) 
            # remove the nodes already seen
            listNodeParsed = copy.deepcopy(list(set(listNodeParsed) | set(listNodes)))
            listPrevNodes = copy.deepcopy(listNodes)       
        
    return 0

print &#39;Hop:&#39; +str( getHopCount(dictNeigh, &#39;b&#39;,&#39;d&#39;))

&lt;/textarea&gt;</content><link rel='replies' type='application/atom+xml' href='http://bdurblg.blogspot.com/feeds/881237787564414521/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9090402862789554388/881237787564414521' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/881237787564414521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/881237787564414521'/><link rel='alternate' type='text/html' href='http://bdurblg.blogspot.com/2012/11/calculate-hop-count-in-graph-using.html' title='calculate hop count in a graph using python'/><author><name>Bidur Devkota</name><uri>http://www.blogger.com/profile/06015170217829382344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3I1Y-LK4oWyWpvx-RnnyLD4LFK4IKvvvv5sVdBf4l7LFdxHIEs6KkKaF9ckqtvLsSBfLlOYOmCNU4TEwusMqJUZVDYnXVKBpSn0y7w7aYgnUM8GjeOMQcqS9aezM125qcXxaMooxDVtI/s72-c/network.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9090402862789554388.post-6571639420215275109</id><published>2012-11-05T20:46:00.002-08:00</published><updated>2012-11-05T20:47:35.876-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apache"/><category scheme="http://www.blogger.com/atom/ns#" term="port conflict"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>ubuntu (10.04) apache web server not running due to port conflict</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Sometimes the port assigned to apache2 may be used by some other services. In such cases, if we try to live apache2 server then it fails. &amp;nbsp;The following message is shown in ubuntu 10.04 in my case:&lt;br /&gt;
&lt;i&gt;Starting web server apache2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;apache2: Could not reliably determine the server&#39;s fully qualified domain name, using 0.0.0.3 for ServerName (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
Here is one of the ways to overcome this problem:&lt;br /&gt;
&lt;br /&gt;
1. see who is using the port 80 :&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
sudo lsof -i :80&lt;/div&gt;
2. get the pid of the services in 1. E.g.: 1577&lt;br /&gt;
3. kill all the services in 2. :&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
sudo kill 1577&lt;/div&gt;
4. restart apache2:&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
sudo /etc/init.d/apache2 restart&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://bdurblg.blogspot.com/feeds/6571639420215275109/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9090402862789554388/6571639420215275109' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/6571639420215275109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/6571639420215275109'/><link rel='alternate' type='text/html' href='http://bdurblg.blogspot.com/2012/11/ubuntu-1004-apache-web-server-not.html' title='ubuntu (10.04) apache web server not running due to port conflict'/><author><name>Bidur Devkota</name><uri>http://www.blogger.com/profile/06015170217829382344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9090402862789554388.post-5644594080531482553</id><published>2012-10-17T21:59:00.000-07:00</published><updated>2012-11-05T20:42:32.730-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="GE"/><category scheme="http://www.blogger.com/atom/ns#" term="Google Earth"/><category scheme="http://www.blogger.com/atom/ns#" term="Keyhole Markup Language"/><category scheme="http://www.blogger.com/atom/ns#" term="KML"/><category scheme="http://www.blogger.com/atom/ns#" term="Network Link"/><title type='text'>Display dynamic content in Google Earth using KML</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Keyhole Markup Language (KML)&amp;nbsp;is a xml standard which can be used to define what and how to present geographic data in Google Earth and Google Maps. Useful examples to start can be browsed via &lt;a href=&quot;https://developers.google.com/kml/documentation/kml_tut&quot;&gt;https://developers.google.com/kml/documentation/kml_tut&lt;/a&gt;.&lt;br /&gt;
I have to display KML data in googleearth. And the KML file has to be loaded dynamically and the updates in the kml file should be shown in the googleearth on the fly.&lt;br /&gt;
For this we have to Create a Network Link.&lt;br /&gt;
Goto Add -&amp;gt; Network Link&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm4VFInbZbO8Pc2bm-9iXfkuVG_DtRMQO2HrlbEk5ERJREb_5e6EvjEfrwtNXDNOHcIgerRwHXsKUVNWc9l4Ma7wOxfmMsBHjHro86b8rwLgVwMLYv6I6DJ9C1wE96I-7lsexq_7naZhk/s1600/networkLink.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm4VFInbZbO8Pc2bm-9iXfkuVG_DtRMQO2HrlbEk5ERJREb_5e6EvjEfrwtNXDNOHcIgerRwHXsKUVNWc9l4Ma7wOxfmMsBHjHro86b8rwLgVwMLYv6I6DJ9C1wE96I-7lsexq_7naZhk/s400/networkLink.png&quot; width=&quot;267&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then specify the details as shown in the figure.&lt;br /&gt;
To specify the frequency of updating the data, go to Refresh tab.&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkTV9W8pMhpC1mWXIWM02vDdPqCkJAeN5e4iZ-w5mmQ6tzHSU1eA80kx_qR9vpIDgl6xrSmwXi9f_I48MIDHdCAuaxMVWh8nwL1A10_5fIZfx_X_Y-JmiO-7IhyphenhyphenyhDOFDU17gVRFpgcXo/s1600/refresh.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkTV9W8pMhpC1mWXIWM02vDdPqCkJAeN5e4iZ-w5mmQ6tzHSU1eA80kx_qR9vpIDgl6xrSmwXi9f_I48MIDHdCAuaxMVWh8nwL1A10_5fIZfx_X_Y-JmiO-7IhyphenhyphenyhDOFDU17gVRFpgcXo/s200/refresh.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The code for &lt;i&gt;dynamicKML.kml&lt;/i&gt; is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;textarea cols=&quot;50&quot; name=&quot;textarea&quot; rows=&quot;13&quot; wrap=&quot;VIRTUAL&quot;&gt;&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;kml xmlns=&quot;http://earth.google.com/kml/2.1&quot;&gt;
&lt;document&gt;
  &lt;networklink&gt;
    &lt;link&gt;
      &lt;href&gt;junk.kml&lt;/href&gt;
      &lt;refreshmode&gt;onInterval&lt;/refreshMode&gt;
      &lt;refreshinterval&gt;5&lt;/refreshInterval&gt;
    &lt;/Link&gt;
  &lt;/NetworkLink&gt;
&lt;/Document&gt;
&lt;/kml&gt;&lt;/textarea&gt;&lt;br /&gt;
&lt;br /&gt;
Note that, we are using a local file &lt;i&gt;junk.kml&lt;/i&gt;&amp;nbsp; (&lt;i&gt;junk.kml &lt;/i&gt;and &lt;i&gt;dynamciKML.kml&lt;/i&gt; reside in the same directory) to define the content to be displayed in the google earth interface. This can even be a remote file in which case we have to specify the remote file URL. The code for&lt;i&gt; junk.kml &lt;/i&gt;is as follows.&lt;br /&gt;
&lt;textarea cols=&quot;50&quot; name=&quot;textarea&quot; rows=&quot;13&quot; wrap=&quot;VIRTUAL&quot;&gt;&lt;?xml version=&quot;1.0&quot; ?&gt;
&lt;kml xmlns=&quot;http://earth.google.com/kml/2.2&quot;&gt;
&lt;document&gt;
  
 &lt;placemark&gt;
      &lt;name&gt;192.168.8.6&lt;/name&gt;
      &lt;point&gt;&lt;coordinates&gt;100.612875,15.078515,0&lt;/coordinates&gt;&lt;/Point&gt;
    &lt;/Placemark&gt;
&lt;/Document&gt; 
&lt;/kml&gt;&lt;/textarea&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, we can change the content of junk.kml and the changes will be seen in the google earth interface dynamically.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://bdurblg.blogspot.com/feeds/5644594080531482553/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9090402862789554388/5644594080531482553' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/5644594080531482553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/5644594080531482553'/><link rel='alternate' type='text/html' href='http://bdurblg.blogspot.com/2012/10/display-dynamic-content-in-google-earth.html' title='Display dynamic content in Google Earth using KML'/><author><name>Bidur Devkota</name><uri>http://www.blogger.com/profile/06015170217829382344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm4VFInbZbO8Pc2bm-9iXfkuVG_DtRMQO2HrlbEk5ERJREb_5e6EvjEfrwtNXDNOHcIgerRwHXsKUVNWc9l4Ma7wOxfmMsBHjHro86b8rwLgVwMLYv6I6DJ9C1wE96I-7lsexq_7naZhk/s72-c/networkLink.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9090402862789554388.post-6360925478376668753</id><published>2012-10-12T01:37:00.003-07:00</published><updated>2012-11-01T02:27:14.767-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IP address"/><category scheme="http://www.blogger.com/atom/ns#" term="list"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>python code for querying own IP address</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
The&amp;nbsp;&lt;i&gt;socket.gethostname()&lt;/i&gt; function is supposed to give the IP address of the machine but it may not give the real IP address but gives &lt;i&gt;127.0.0.1&lt;/i&gt;. Even it is said that removing &lt;i&gt;127.0.0.1&lt;/i&gt; from the &lt;i&gt;/etc/hosts &lt;/i&gt;file (in ubuntu) can give the real IP but it could not help in my case.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
import socket&lt;br /&gt;
&lt;br /&gt;
nodeName = socket.gethostname()&lt;br /&gt;
info = socket.getaddrinfo(nodeName, None, 0, socket.SOCK_STREAM)&lt;br /&gt;
print [x[4][0] for x in info] &amp;nbsp; # prints 127.0.0.1
&lt;/div&gt;
I came through another way which can print the real IP as well:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
import commands&lt;br /&gt;
NodeIPS = commands.getoutput(&quot;/sbin/ifconfig | grep -i \&quot;inet\&quot; | grep -iv \&quot;inet6\&quot; | &quot; +&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;awk {&#39;print $2&#39;} | sed -ne &#39;s/addr\:/ /p&#39;&quot;)&lt;br /&gt;
print NodeIPS&amp;nbsp;&amp;nbsp;# prints 127.0.0.1 and realIP(eg. 202.145.12.22)&lt;/div&gt;
Note: code worked for ubuntu 12.04 and python 2.7&lt;br /&gt;
&lt;br /&gt;
Sometimes its handy to have the IP address as list items. The following code does the work.&lt;br /&gt;
&lt;/div&gt;
&lt;div class=&quot;code&quot;&gt;
import os &lt;br /&gt;
listIPs=[] &lt;br /&gt;
f=os.popen(&quot;/sbin/ifconfig | grep -i \&quot;inet\&quot; | grep -iv \&quot;inet6\&quot; | &quot; +   &quot;awk {&#39;print $2&#39;} | sed -ne &#39;s/addr\:/ /p&#39;&quot;) &lt;br /&gt;
for i in f.readlines():&lt;br /&gt;
    listIPs.append(i.rstrip(&#39;\n&#39;))&lt;br /&gt;
print listIPs&lt;br /&gt;

&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bdurblg.blogspot.com/feeds/6360925478376668753/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9090402862789554388/6360925478376668753' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/6360925478376668753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/6360925478376668753'/><link rel='alternate' type='text/html' href='http://bdurblg.blogspot.com/2012/10/python-code-for-querying-own-ip-address.html' title='python code for querying own IP address'/><author><name>Bidur Devkota</name><uri>http://www.blogger.com/profile/06015170217829382344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9090402862789554388.post-8161823079993379472</id><published>2012-10-11T21:52:00.000-07:00</published><updated>2012-10-11T21:52:38.640-07:00</updated><title type='text'>Open file with unlisted application in ubuntu 12.04</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In ubuntu 12.04,&lt;br /&gt;
While browsing files in nautilus, if we want to open file with unlisted applications, for e.g. open a file with idle(but idle is not listed in the list of open with ). Enter the following command in the terminal:
&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
gksudo gedit /usr/share/applications/idle.desktop
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzQDzhMh3ncPLhAGZ7-4ba288QT7vk0KTmh015n5fXVZvd-CoiM2wXePAwjFiSiHrdvhyd5xKZXj_PBHc7cxQQW0I7r-flUiBIwOQv8N1IgUinqEVCM0JFaxxAmKW8rRX4lIyTXrFWCvc/s1600/Screenshot+from+2012-10-12+11%253A34%253A19.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzQDzhMh3ncPLhAGZ7-4ba288QT7vk0KTmh015n5fXVZvd-CoiM2wXePAwjFiSiHrdvhyd5xKZXj_PBHc7cxQQW0I7r-flUiBIwOQv8N1IgUinqEVCM0JFaxxAmKW8rRX4lIyTXrFWCvc/s200/Screenshot+from+2012-10-12+11%253A34%253A19.png&quot; width=&quot;194&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then remove the line:
&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
Exec=/usr/bin/idle -n
&lt;/div&gt;
&lt;br /&gt;
Replace it with:
&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
Exec=idle %U&lt;/div&gt;
Now we can see idle listed in the list of open with applications.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To set it as default application to open a file.&lt;br /&gt;
Go to the file properites, select idle and click set as default.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUMtpqWjKBuuKIfQMU3Vw-TpqG_YArTDxlXDXT9KStk5dgCxSFO5Q40q4WLAOp0xi6LLl6mnixX5gkPUVpueZ2MNH6oYNx4wryploDRpGdtkJMz-HKY7MS7cXHriQBxhFY94j3fkvMNvM/s1600/default.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;195&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUMtpqWjKBuuKIfQMU3Vw-TpqG_YArTDxlXDXT9KStk5dgCxSFO5Q40q4WLAOp0xi6LLl6mnixX5gkPUVpueZ2MNH6oYNx4wryploDRpGdtkJMz-HKY7MS7cXHriQBxhFY94j3fkvMNvM/s200/default.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://bdurblg.blogspot.com/feeds/8161823079993379472/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9090402862789554388/8161823079993379472' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/8161823079993379472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/8161823079993379472'/><link rel='alternate' type='text/html' href='http://bdurblg.blogspot.com/2012/10/open-file-with-unlisted-application-in.html' title='Open file with unlisted application in ubuntu 12.04'/><author><name>Bidur Devkota</name><uri>http://www.blogger.com/profile/06015170217829382344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzQDzhMh3ncPLhAGZ7-4ba288QT7vk0KTmh015n5fXVZvd-CoiM2wXePAwjFiSiHrdvhyd5xKZXj_PBHc7cxQQW0I7r-flUiBIwOQv8N1IgUinqEVCM0JFaxxAmKW8rRX4lIyTXrFWCvc/s72-c/Screenshot+from+2012-10-12+11%253A34%253A19.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9090402862789554388.post-7798336493043780982</id><published>2012-07-26T19:44:00.000-07:00</published><updated>2012-10-11T21:55:00.492-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Metaheutistics"/><title type='text'>Metaheuristics</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Generally speaking heuristics aim to find a good enough solution to a problem in a reasonable amount of time. These are mostly based on experiences and common sense. &lt;i&gt;Metaheutistics&lt;/i&gt; iteratively tries to improve a candidate solution with respect to a given measure of quality.They rarely make assumptions about the problem being optimized
They can search very large spaces of candidate solutions. Whereas they do not guarantee the finding of an optimal solution. Some of the popularly used metaheuristics for optimization problems are: 
• Simulated Annealing (SA),
• Particle Swarm Optimization (PSO),
• Differential Evolution (DE),
• Genetic Algorithm (GA),
• Evolutionary Strategy (ES).&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://bdurblg.blogspot.com/feeds/7798336493043780982/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9090402862789554388/7798336493043780982' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/7798336493043780982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/7798336493043780982'/><link rel='alternate' type='text/html' href='http://bdurblg.blogspot.com/2012/07/metaheuristics.html' title='Metaheuristics'/><author><name>Bidur Devkota</name><uri>http://www.blogger.com/profile/06015170217829382344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9090402862789554388.post-1484264189270676852</id><published>2012-07-23T10:43:00.000-07:00</published><updated>2012-07-24T08:29:22.761-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash"/><category scheme="http://www.blogger.com/atom/ns#" term="secure shell"/><category scheme="http://www.blogger.com/atom/ns#" term="ssh"/><title type='text'>secure shell (ssh)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Two machines running a server and a client running respectively can be connected securely via ssh.&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
&amp;nbsp;ssh user@serverIP&lt;/div&gt;
example:

&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
ssh tom@203.159.11.42
&lt;/div&gt;
Every time a user logs in to the server user have to provide password for getting into the server.Whereas passwordless authentication using the public key is considered more secure while loggin to a remote server. For that the following steps should be followed:&lt;br /&gt;
&lt;br /&gt;
1. Generate public/private rsa key pair:

&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
ssh-keygen -t rsa
&lt;/div&gt;
When password is asked just hit a &quot;ENTER&quot; to leave it empty &lt;br /&gt;
&lt;br /&gt;
2.Now use ssh to create a directory ~/.ssh as user (e.g. &quot;tom&quot;) on server(e.g.&amp;nbsp;203.159.11.42).

&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
ssh tom@203.159.11.42&amp;nbsp;-p .ssh&lt;/div&gt;
&lt;br /&gt;
3.Copy key to remote server
&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
cat .ssh/id_rsa.pub | ssh tom@203.159.11.42&amp;nbsp;&#39;cat &amp;gt;&amp;gt; .ssh/authorized_keys&#39;&lt;/div&gt;
&lt;br /&gt;
After finishing these three steps, login to the remote server with ssh will not require password.
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bdurblg.blogspot.com/feeds/1484264189270676852/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9090402862789554388/1484264189270676852' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/1484264189270676852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/1484264189270676852'/><link rel='alternate' type='text/html' href='http://bdurblg.blogspot.com/2012/07/secure-shell-ssh.html' title='secure shell (ssh)'/><author><name>Bidur Devkota</name><uri>http://www.blogger.com/profile/06015170217829382344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9090402862789554388.post-1892312577164986329</id><published>2012-03-25T01:40:00.002-07:00</published><updated>2012-03-25T01:44:33.550-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="file editing"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="sed"/><title type='text'>using sed from linux shell for file editing</title><content type='html'>#Delete empty lines from a file&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;sed &#39;/^$/d&#39; file.txt&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;# do the same in the source file itself&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;sed -i &#39;/^$/d&#39; file.txt&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;# copy contents from a file from 3rd line&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;sed -n &#39;3,$p&#39; file.txt&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;#copy specific lines from a file(e.g. copy line 2 to 4)&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;sed -n 2,4&#39;p&#39; file.txt&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bdurblg.blogspot.com/feeds/1892312577164986329/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9090402862789554388/1892312577164986329' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/1892312577164986329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/1892312577164986329'/><link rel='alternate' type='text/html' href='http://bdurblg.blogspot.com/2012/03/using-sed-from-linux-shell-for-file.html' title='using sed from linux shell for file editing'/><author><name>Bidur Devkota</name><uri>http://www.blogger.com/profile/06015170217829382344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9090402862789554388.post-7106566791561927027</id><published>2012-01-14T00:02:00.000-08:00</published><updated>2012-07-24T21:44:24.092-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="network simulator"/><category scheme="http://www.blogger.com/atom/ns#" term="ns"/><category scheme="http://www.blogger.com/atom/ns#" term="ns 3"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Installing NS-3 in Ubuntu</title><content type='html'>Installing testing it and running NS-3 in Ubuntu 10.04&lt;br /&gt;&lt;br /&gt;NS-3 is a discrete-event network simulator basically for simulating Internet systems.&lt;br /&gt;#The list of Dependency for ns 3.12(sorry if something is missing):&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt; sudo apt-get install gcc g++ python&lt;br /&gt; sudo apt-get install gcc g++ python python-dev&lt;br /&gt; sudo apt-get install mercurial&lt;br /&gt; sudo apt-get install bzr&lt;br /&gt; sudo apt-get install gdb valgrind &lt;br /&gt; sudo apt-get install gsl-bin libgsl0-dev libgsl0ldbl&lt;br /&gt; sudo apt-get install flex bison&lt;br /&gt; sudo apt-get install g++-3.4 gcc-3.4&lt;br /&gt; sudo apt-get install tcpdump&lt;br /&gt; sudo apt-get install sqlite sqlite3 libsqlite3-dev&lt;br /&gt; sudo apt-get install libxml2 libxml2-dev&lt;br /&gt; sudo apt-get install libgtk2.0-0 libgtk2.0-dev&lt;br /&gt; sudo apt-get install libgtk2.0-0 libgtk2.0-dev&lt;br /&gt; sudo apt-get install vtun lxc&lt;br /&gt; sudo apt-get install uncrustify&lt;br /&gt; sudo apt-get install doxygen graphviz imagemagick&lt;br /&gt; sudo apt-get install texlive texlive-pdf texlive-latex-extra texlive-generic-extra texlive-generic-recommended&lt;br /&gt; sudo apt-get install python-sphinx dia texlive texlive-pdf texlive-latex-extra texlive-extra-utils texlive-generic-recommended&lt;br /&gt; sudo apt-get install python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev&lt;br /&gt; sudo apt-get install libboost-signals-dev libboost-filesystem-dev&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;#Download and build development version:&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt; hg clone http://code.nsnam.org/ns-3-allinone&lt;br /&gt; cd ns-3-allinone&lt;br /&gt; ./download.py&lt;br /&gt;&lt;/div&gt;  &lt;br /&gt;instead of using the above method, you can directly get the ns-3 tarball and untar it and follow the following:&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt; ./build.py&lt;br /&gt; cd ns-3-dev&lt;br /&gt; ./waf distclean&lt;br /&gt; ./waf configure   OR  ./waf configure --enable-examples --enable-tests&lt;br /&gt; ./waf build&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Now test the installation of NS-3 (we expect all the tests to run successfully):&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt; ./test.py      OR  ./test.py -c core    (test core modules only)&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;other useful options:&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt; ./waf -d optimized configure&lt;br /&gt; ./waf --help shows you other options&lt;br /&gt;&lt;/div&gt; &lt;br /&gt;# To run the first program on NS-3, waf is required. Waf is a Python-based&lt;br /&gt;framework for configuring, compiling and installing applications. It is already&lt;br /&gt;included in the ubuntu repository. The syntax to run any NS-3 script is:&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt; ./waf - -run filename&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Now, we can run a very basic program on NS-3 without using any extra files and extra codes:&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt; ./waf - -run hello-simulator&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;# Writing your own NS-3 programs:&lt;br /&gt; The scratch/ directory is supposed to contain the user written programs and they are automatically build while running the waf.&lt;br /&gt;For example, let us copy wifi-adhoc.cc from the example/ directory to the scratch/ directory.&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt; cp ns-3.12.1/examples/wireless/wifi-adhoc.cc ns-3.12.1/scratch/wifi-adhoc.cc&lt;br /&gt; ./waf&lt;br /&gt; ./waf --run scratch/wifi-adhoc&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;To visualize the program :&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt; ./waf --run scratch/wifi-adhoc --visualize&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;To plot the output :&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt; ./waf --run scratch/wifi-adhoc | gnuplot&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bdurblg.blogspot.com/feeds/7106566791561927027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9090402862789554388/7106566791561927027' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/7106566791561927027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/7106566791561927027'/><link rel='alternate' type='text/html' href='http://bdurblg.blogspot.com/2012/01/installing-ns-3-in-ubuntu.html' title='Installing NS-3 in Ubuntu'/><author><name>Bidur Devkota</name><uri>http://www.blogger.com/profile/06015170217829382344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9090402862789554388.post-447889276436255208</id><published>2012-01-09T19:25:00.000-08:00</published><updated>2012-01-09T22:04:37.565-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Graph Microsoft Excel 2010"/><title type='text'>Graph: Ms Excel 2010</title><content type='html'>To plot a graph in Microsoft Excel 2010 by taking the column data as axis in the graph:&lt;br /&gt;1.Highlight the column data that you wish to plot.&lt;br /&gt;2.Insert-&gt; scatter graph&lt;br /&gt;&lt;br /&gt;If you wish to plot a chart of X1 and X2 against Y&lt;br /&gt;X2 X1 Y&lt;br /&gt;88 123 100&lt;br /&gt;188 234 200&lt;br /&gt;350 345 300&lt;br /&gt;500 456 400&lt;br /&gt;Select these columns, goto insert and then click scatter chart. This will give the following chart:&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwtXzb2VgZJEY9usr2GyeUUfBL87fotlQQcbYOe5CqPMkuh52PitnXrr1hGUGq4i_TVT8KbxEffSvln4TuIcO3w5VRm2yqNhHVHUGmEtIXOxe1fcnoiDI6NVA5F2mWIiigbUmmAsJstX0/s1600/1.png&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 240px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwtXzb2VgZJEY9usr2GyeUUfBL87fotlQQcbYOe5CqPMkuh52PitnXrr1hGUGq4i_TVT8KbxEffSvln4TuIcO3w5VRm2yqNhHVHUGmEtIXOxe1fcnoiDI6NVA5F2mWIiigbUmmAsJstX0/s320/1.png&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5695840880694860498&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;But this is not what we want. Now plot X2 and Y , then plot X1 and Y. Then copy the curve from a plot and paste the curve to another plot.&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgb3Y6ugpEJEYoSJbRmMlAvSaWLKJ4e8tVhHY8jsvmgIVuGlhoimIsaBZwGLRET-Hfxwxj4fz1Do0JLi1XQW7FB3Fzf-NFuex_6lJfG_XSrdTqAR1tRcNNkFboB3AQXOFECKFPVSAeNKn8/s1600/merged.png&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 74px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgb3Y6ugpEJEYoSJbRmMlAvSaWLKJ4e8tVhHY8jsvmgIVuGlhoimIsaBZwGLRET-Hfxwxj4fz1Do0JLi1XQW7FB3Fzf-NFuex_6lJfG_XSrdTqAR1tRcNNkFboB3AQXOFECKFPVSAeNKn8/s320/merged.png&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5695843227767895394&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you wish to edit the style of the plot. For e.g. changing the thickness of the graph line:&lt;br /&gt;1. Right click on the graph -&gt; format data series -&gt; line style -&gt; width (you can specify the thickness value here)&lt;br /&gt;&lt;br /&gt;If you wish to scale the range of x-axis and y-axis data values:&lt;br /&gt;1. Double click on th ex-axis -&gt; axis options -&gt; set the minimum/maximum values ( you can also change other values as you need)&lt;br /&gt;&lt;br /&gt;If you wish to label some data points:&lt;br /&gt;1. Double click on the curve -&gt; add data label at specific points&lt;br /&gt;&lt;br /&gt;If you wish to provide label for the x-axis and y-axis:&lt;br /&gt;1. click on the graph -&gt; Layout -&gt; AxisTitle -&gt; Primary Horizontal/Vertical Axis Title -&gt; write your title&lt;br /&gt;2.similar process for giving chart name as well.</content><link rel='replies' type='application/atom+xml' href='http://bdurblg.blogspot.com/feeds/447889276436255208/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9090402862789554388/447889276436255208' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/447889276436255208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/447889276436255208'/><link rel='alternate' type='text/html' href='http://bdurblg.blogspot.com/2012/01/merge-charts.html' title='Graph: Ms Excel 2010'/><author><name>Bidur Devkota</name><uri>http://www.blogger.com/profile/06015170217829382344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwtXzb2VgZJEY9usr2GyeUUfBL87fotlQQcbYOe5CqPMkuh52PitnXrr1hGUGq4i_TVT8KbxEffSvln4TuIcO3w5VRm2yqNhHVHUGmEtIXOxe1fcnoiDI6NVA5F2mWIiigbUmmAsJstX0/s72-c/1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9090402862789554388.post-9201654386658320661</id><published>2012-01-07T20:51:00.000-08:00</published><updated>2012-07-27T01:59:30.014-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="virtual box"/><category scheme="http://www.blogger.com/atom/ns#" term="VirtualBox"/><category scheme="http://www.blogger.com/atom/ns#" term="virtualization"/><title type='text'>VirtualBox in ubuntu10.04</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
VirtualBox is a virtualization tool which allows us to install and run different OS like windows and linux. I had tried installing ubuntu10.04 over ubuntu 10.04. To install it in Ubuntu (10.04 for now):&lt;br /&gt;
i. go to Ubuntu Software Center and search for Oracle VM VirtualBox, then click install.&lt;br /&gt;
ii. Goto virtualbox.org -&amp;gt; Downloads and get the package that you need for your system (For e.g. &quot;.deb&quot; package for Ubuntu)&lt;br /&gt;
iii. Install virtualbox from commandline:&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install virtualbox-4.1&lt;/div&gt;
&lt;br /&gt;
If writing the version number fails then trying without version number might work:
&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
sudo apt-get install virtualbox
&lt;/div&gt;
&lt;br /&gt;
After installing the Virtualbox, we can install any Operating System over it. Installing a new OS is more or less similar to installing an OS in a new computer but you need to do some more before proceeding to install the new OS:&lt;br /&gt;
i. Open the VirtualBox window, then Press New button and create a new Virtual Machine.&lt;br /&gt;
ii. Specify the Name (e.g. ubu10.04)for it and select the OS Type (e.g. Linux )and version (e.g. Ubuntu)&lt;br /&gt;
iii. Next, set the memory and virtual hard disk for the new OS to use.&lt;br /&gt;
&lt;br /&gt;
Installing Guest Additions is an imporatant part of VirtualBox:&lt;br /&gt;
[Source: http://bit.ly/zJ2DYg]&lt;br /&gt;
i. Add the userName to virtualbox user group: &lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;

(in the host OS)
&lt;br/&gt;
sudo usermod -a -G vboxusers userName&lt;/div&gt;
&lt;br /&gt;
ii. Under the Devices menu in VirtualBox, you can select Install Guest Additions and follow the instructions&lt;br /&gt;
iii. Dont forget to install the guest utils in guest OS: &lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;br /&gt;
sudo apt-get install build-essential&lt;/div&gt;
&lt;br /&gt;
iv. Enable folder sharing, clipboard sharing and Screen resizing feature:&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
(in the host OS)
&lt;br/&gt;
sudo apt-get install virtualbox-guest-dkms&lt;/div&gt;
&lt;br /&gt;
I used this command sicne I had problem while mounting shared folder.&lt;br /&gt;
v. Create a folder for sharing between host OS and guest OS in the Guest:&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;br /&gt;
mkdir /mnt/u10.04  # create a folder named u10.04&lt;br /&gt;
chmod 777 /mnt/u10.04  # make it accessible by all user&lt;/div&gt;
&lt;br /&gt;
vi. Create a folder for sharing between host and guest Os in the Host:&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;br /&gt;
mkdir /home/user/Desktop/u10.04 &lt;/div&gt;
&lt;br /&gt;
vii. Goto Devices -&amp;gt; shared Folders -&amp;gt; New and specify the folder path (browse the link to the Host folder created in step vi) and provide the folder name.&lt;br /&gt;
viii. Run the following command to mount the shared folder:&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;br /&gt;
sudo mount -t vboxsf -o uid=1000,gid=1000 u10.04 /mnt/u10.04&lt;/div&gt;
&lt;br /&gt;
Removing  -o uid=1000,gid=1000  options from above command makes the mounted folder to be writeable only by the root. If there is problem in mounting, then sometimes changing vboxsf to vboxfs does the trick.&lt;br /&gt;
&lt;br /&gt;
ix. If you wish to mount the shared folder during the boot, then run the following command in the command line:&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;br /&gt;
sudo gedit /etc/rc.local&lt;/div&gt;
&lt;br /&gt;
Now, copy the following command in the file and save it.&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;br /&gt;
mount -t vboxsf -o uid=1000,gid=1000 u10.04 /mnt/u10.04&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, you may need to rebbot your guest OS for all the changes to make an effect.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bdurblg.blogspot.com/feeds/9201654386658320661/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9090402862789554388/9201654386658320661' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/9201654386658320661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/9201654386658320661'/><link rel='alternate' type='text/html' href='http://bdurblg.blogspot.com/2012/01/virtualbox-in-ubuntu1004.html' title='VirtualBox in ubuntu10.04'/><author><name>Bidur Devkota</name><uri>http://www.blogger.com/profile/06015170217829382344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9090402862789554388.post-3382800523170560380</id><published>2012-01-03T19:55:00.000-08:00</published><updated>2012-10-17T22:09:09.352-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="blog script codebox"/><title type='text'>Post Scripts in blogs</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Posting scripts in the blogs is not straightforward. I came across some ways to do so:&lt;br /&gt;
&lt;strong&gt;Method #1: Simple Approach:&lt;/strong&gt;&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPDQhAA2qqw56X59I7PK8azWylvQ7wrGV6V37t3TsfJPzh_28ohdCGY8DpMM5RshUyF_Q-nbYvoH4O7u7KtrlYX-t8WN50rpgpq57OgpLkoVn5o-hCwbvs4rDzbJvC7yizAvbai1ZMXXE/s1600/1.png&quot; onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5693689341027171250&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPDQhAA2qqw56X59I7PK8azWylvQ7wrGV6V37t3TsfJPzh_28ohdCGY8DpMM5RshUyF_Q-nbYvoH4O7u7KtrlYX-t8WN50rpgpq57OgpLkoVn5o-hCwbvs4rDzbJvC7yizAvbai1ZMXXE/s320/1.png&quot; style=&quot;cursor: hand; cursor: pointer; display: block; height: 45px; margin: 0px auto 10px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
This will display the script as follows:&lt;br /&gt;
&lt;textarea cols=&quot;40&quot; name=&quot;textarea&quot; rows=&quot;2&quot; wrap=&quot;VIRTUAL&quot;&gt;Print(&quot;This is my code in codebox&quot;);&lt;/textarea&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt; Method#2: Better Approach: &lt;/strong&gt;&lt;br /&gt;
1. Login to your Blogger account.&lt;br /&gt;
2. Goto Design and then Edit HTML. Then you will see the script for your current blog template.&lt;br /&gt;
3. Backup your current template by clicking at &quot;Download Full Template&quot;. You may skip this step if you are confident that you do not need it afterwards.&lt;br /&gt;
4. Find &lt;span style=&quot;color: #006ab0;&quot;&gt;]]&amp;gt;&amp;lt;/b:skin&amp;gt; &lt;/span&gt; in the code and add the following code just before &lt;span style=&quot;color: #006ab0;&quot;&gt;]]&amp;gt;&amp;lt;/b:skin&amp;gt;&lt;/span&gt;:&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;br /&gt;
.code {color: #006AB0; border : 1px solpd #DfADADA;padding : 5px 5px;font-family : Consolas, &quot;Courier New&quot;, Courier, mono, serif;font-size : 12px;background-color : #fAfAfA; width : 90%;overflow : auto;margin : 10px 0 10px 10px; border-left : 20px solid #DADADA;max-height : 500px;min-height : 16px;line-height : 16px;}&lt;br /&gt;
.code:hover {background-color : #f3f3f3;}&lt;/div&gt;
&lt;br /&gt;
5. Save the template. &lt;br /&gt;
&lt;br /&gt;
To post code in the blog just follow this example(NO Spaces within the div tag):&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgve3UJdd7KrhJXB1noI32Dd9ABWLR9ur-t7mhB1vfv49z2pm_S4wbh5Fs8MqQgExehXg63ah0xiwxUGWydbWjRpoR1kbKl0B56pvOms7rakOTvoo114a8wPulI3HywUmp_5wDUH3eidEE/s1600/codeBox.png&quot; onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5693627099605766770&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgve3UJdd7KrhJXB1noI32Dd9ABWLR9ur-t7mhB1vfv49z2pm_S4wbh5Fs8MqQgExehXg63ah0xiwxUGWydbWjRpoR1kbKl0B56pvOms7rakOTvoo114a8wPulI3HywUmp_5wDUH3eidEE/s320/codeBox.png&quot; style=&quot;cursor: hand; cursor: pointer; display: block; height: 76px; margin: 0px auto 10px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
This will display as follows:&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;br /&gt;
Print(&quot;This is my code in codebox&quot;);&lt;/div&gt;
&lt;br /&gt;
But sometimes you may require to do more things if you want to display symbols like &quot;&amp;lt;&quot; , &quot;&amp;gt;&quot; ,&quot;&amp;amp;&quot;, etc. In that case you have to used the following:&lt;br /&gt;
for &amp;lt; use &amp;amp; lt; (no spaces between &amp;amp; and lt)&lt;br /&gt;
for &amp;gt; use &amp;amp; gt; (no spaces between &amp;amp; and gt)&lt;br /&gt;
for &amp;amp; use &amp;amp; amp; (no spaces between &amp;amp; and amp)&lt;br /&gt;
for &quot; use &amp;amp; quot; (no spaces between &amp;amp; and quot)&lt;br /&gt;
for space use &amp;amp; nbsp; (no spaces between &amp;amp; and nbsp)&lt;br /&gt;
for ± use &amp;amp; plusmn;  (no spaces between &amp;amp; and plusmn)&lt;br /&gt;
&lt;br /&gt;
[Sources:mainly from http://bit.ly/zpC2RX ]&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://bdurblg.blogspot.com/feeds/3382800523170560380/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9090402862789554388/3382800523170560380' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/3382800523170560380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/3382800523170560380'/><link rel='alternate' type='text/html' href='http://bdurblg.blogspot.com/2012/01/post-scripts-in-blogs.html' title='Post Scripts in blogs'/><author><name>Bidur Devkota</name><uri>http://www.blogger.com/profile/06015170217829382344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPDQhAA2qqw56X59I7PK8azWylvQ7wrGV6V37t3TsfJPzh_28ohdCGY8DpMM5RshUyF_Q-nbYvoH4O7u7KtrlYX-t8WN50rpgpq57OgpLkoVn5o-hCwbvs4rDzbJvC7yizAvbai1ZMXXE/s72-c/1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9090402862789554388.post-6740053999809322678</id><published>2012-01-03T03:15:00.000-08:00</published><updated>2012-01-04T02:19:43.277-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="search file grep ubuntu linux"/><title type='text'>Search File with specific content in Ubuntu</title><content type='html'>The following command can be used to search any files that is under /home/myFolder and which has the content &#39;my search string&#39;.  The man page for the given command can be browsed for more detail information. &lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;grep -i -r -n &#39;my search string&#39; /home/myFolder&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Where:&lt;br /&gt;-i=ignore case, -r=recursive, -n= give line number</content><link rel='replies' type='application/atom+xml' href='http://bdurblg.blogspot.com/feeds/6740053999809322678/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9090402862789554388/6740053999809322678' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/6740053999809322678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/6740053999809322678'/><link rel='alternate' type='text/html' href='http://bdurblg.blogspot.com/2012/01/search-file-with-specific-content-in.html' title='Search File with specific content in Ubuntu'/><author><name>Bidur Devkota</name><uri>http://www.blogger.com/profile/06015170217829382344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9090402862789554388.post-4096103833249959350</id><published>2012-01-01T18:01:00.000-08:00</published><updated>2012-01-13T01:29:18.598-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="install"/><category scheme="http://www.blogger.com/atom/ns#" term="JDK"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>JDK6 in Ubuntu 10.04</title><content type='html'>To install JDk 6 (Java Developement Kit 6 ) in ubuntu 10.04 from the command line, we just need to use the following command. This will install all other dependencies automatically. &lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;sudo apt-get install openjdk-6-jdk&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bdurblg.blogspot.com/feeds/4096103833249959350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9090402862789554388/4096103833249959350' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/4096103833249959350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/4096103833249959350'/><link rel='alternate' type='text/html' href='http://bdurblg.blogspot.com/2012/01/jdk6-in-ubuntu-1004.html' title='JDK6 in Ubuntu 10.04'/><author><name>Bidur Devkota</name><uri>http://www.blogger.com/profile/06015170217829382344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9090402862789554388.post-4685705297959405491</id><published>2011-12-29T00:31:00.000-08:00</published><updated>2012-01-13T01:27:32.904-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="command"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="shutdown"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>shutdown</title><content type='html'>&lt;div&gt;&lt;div&gt;We may think that why to bother typing commands when using the GUI to shutting down the computer is easy and straight. But at time we may want to shut down the computer after some time when the download finishes or some other task completes. But we cannot wait until that time. So we can use shutdown command in such cases. For example, if you want to shut down the computer at 2:12 pm then you can use the following command in your ubuntu box:&lt;/div&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;code&quot;&gt;sudo shutdown -h 14:12 &amp;quot;Going to Shutdown at 2:12 pm&amp;quot;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bdurblg.blogspot.com/feeds/4685705297959405491/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9090402862789554388/4685705297959405491' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/4685705297959405491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/4685705297959405491'/><link rel='alternate' type='text/html' href='http://bdurblg.blogspot.com/2011/12/shutdown.html' title='shutdown'/><author><name>Bidur Devkota</name><uri>http://www.blogger.com/profile/06015170217829382344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9090402862789554388.post-1644870301739862657</id><published>2011-12-28T09:58:00.000-08:00</published><updated>2012-01-13T01:27:16.218-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="algorithm.sty"/><category scheme="http://www.blogger.com/atom/ns#" term="kile"/><category scheme="http://www.blogger.com/atom/ns#" term="latex"/><category scheme="http://www.blogger.com/atom/ns#" term="scientific packages"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Kile</title><content type='html'>Though the default installation of Kile, a latex editor, in ubuntu works fine for simple things, but at times it needs extra packages (for e.g. algorithm.sty, etc). In that case we can install the following extra scientific packages in Ubuntu linux as follows:&lt;div&gt; &lt;br /&gt;&lt;div&gt;&lt;div&gt;&lt;div class=&quot;code&quot;&gt;sudo apt-get install texlive-science&lt;/div&gt; &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bdurblg.blogspot.com/feeds/1644870301739862657/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9090402862789554388/1644870301739862657' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/1644870301739862657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/1644870301739862657'/><link rel='alternate' type='text/html' href='http://bdurblg.blogspot.com/2011/12/kile.html' title='Kile'/><author><name>Bidur Devkota</name><uri>http://www.blogger.com/profile/06015170217829382344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9090402862789554388.post-4806131709094326551</id><published>2011-12-27T19:33:00.000-08:00</published><updated>2012-01-13T01:26:30.428-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".iso"/><category scheme="http://www.blogger.com/atom/ns#" term=".nrg"/><category scheme="http://www.blogger.com/atom/ns#" term="command"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Convert .nrg format to .iso format</title><content type='html'>&lt;div&gt;A .nrg file is image file format of Nero Burning ROM. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;installing .nrg to .iso converter&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;div class=&quot;code&quot;&gt;sudo apt-get install nrg2iso&lt;/div&gt;&lt;/div&gt; &lt;div&gt; Usage:&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;div class=&quot;code&quot;&gt;nrg2iso image.nrg image.iso&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bdurblg.blogspot.com/feeds/4806131709094326551/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9090402862789554388/4806131709094326551' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/4806131709094326551'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/4806131709094326551'/><link rel='alternate' type='text/html' href='http://bdurblg.blogspot.com/2011/12/convert-nrg-format-to-iso-format.html' title='Convert .nrg format to .iso format'/><author><name>Bidur Devkota</name><uri>http://www.blogger.com/profile/06015170217829382344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9090402862789554388.post-4158137556051765400</id><published>2011-12-27T19:29:00.000-08:00</published><updated>2012-01-13T01:26:09.634-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="font"/><category scheme="http://www.blogger.com/atom/ns#" term="install"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Installing new fonts to Ubuntu Linux</title><content type='html'>Here is an example to install the font &#39;Times_New_Roman.ttf&#39;:&lt;br /&gt;1.copy font the new font to &amp;lt;/usr/share/fonts/truetype&amp;gt; &lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;sudo cp Times_New_Roman.ttf /usr/share/fonts/truetype&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;2. Restart your machine OR just Clear the font cache&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt; sudo fc-cache -fv&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bdurblg.blogspot.com/feeds/4158137556051765400/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9090402862789554388/4158137556051765400' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/4158137556051765400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/4158137556051765400'/><link rel='alternate' type='text/html' href='http://bdurblg.blogspot.com/2011/12/installing-new-fonts-to-ubuntu-linux.html' title='Installing new fonts to Ubuntu Linux'/><author><name>Bidur Devkota</name><uri>http://www.blogger.com/profile/06015170217829382344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9090402862789554388.post-6360240054344368617</id><published>2011-12-27T08:28:00.000-08:00</published><updated>2012-01-12T04:45:20.154-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="desktop"/><category scheme="http://www.blogger.com/atom/ns#" term="hide drive icon"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Hide drive icon from your Ubuntu Desktop</title><content type='html'>&lt;div&gt;It is useful when we wish to configure our desktop item to be stable. Sometimes its annoying when the drive icons appear and disappear when we mount and unmount them. So follow the following steps to get rid of this situation:&lt;/div&gt; &lt;div&gt;   1. Hit Alt+F2 then the  &amp;quot;Run Application&amp;quot; window will apper.&lt;/div&gt;&lt;div&gt;   2. Then type &amp;quot;gconf-editor&amp;quot; and press Enter  so as to get the Configuration Editor.&lt;/div&gt;&lt;div&gt;   3. Browse to apps &amp;gt; nautilus &amp;gt; desktop.&lt;/div&gt; &lt;div&gt;   4. Check off  &amp;quot;volumes_visible&amp;quot;  then you are done&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bdurblg.blogspot.com/feeds/6360240054344368617/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9090402862789554388/6360240054344368617' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/6360240054344368617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/6360240054344368617'/><link rel='alternate' type='text/html' href='http://bdurblg.blogspot.com/2011/12/hide-drive-icon-from-your-ubuntu.html' title='Hide drive icon from your Ubuntu Desktop'/><author><name>Bidur Devkota</name><uri>http://www.blogger.com/profile/06015170217829382344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9090402862789554388.post-5579848779127946006</id><published>2011-12-27T08:21:00.000-08:00</published><updated>2012-01-11T03:19:30.749-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="commandline"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="restore trash"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Restore items from trash to current directory via commandline in Ubuntu Linux</title><content type='html'>Once I had to look for command line alternatives to restore items from trash since I was not able to do it from the GUI.&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;mv ~/.local/share/Trash/files/myFile.doc ./&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bdurblg.blogspot.com/feeds/5579848779127946006/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9090402862789554388/5579848779127946006' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/5579848779127946006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/5579848779127946006'/><link rel='alternate' type='text/html' href='http://bdurblg.blogspot.com/2011/12/restore-items-from-trash-to-current.html' title='Restore items from trash to current directory via commandline in Ubuntu Linux'/><author><name>Bidur Devkota</name><uri>http://www.blogger.com/profile/06015170217829382344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9090402862789554388.post-4228792185779683615</id><published>2011-12-27T08:14:00.000-08:00</published><updated>2012-01-11T02:40:12.568-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="empty trash"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>How to Empty trash from commandline in Ubuntu Linux</title><content type='html'>&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;rm -rf /home/username/.local/share/Trash/info/* &lt;/div&gt;&lt;div&gt;rm -rf /home/username/.local/share/Trash/files/*&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bdurblg.blogspot.com/feeds/4228792185779683615/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9090402862789554388/4228792185779683615' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/4228792185779683615'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9090402862789554388/posts/default/4228792185779683615'/><link rel='alternate' type='text/html' href='http://bdurblg.blogspot.com/2011/12/how-to-empty-trash-from-commandline-in.html' title='How to Empty trash from commandline in Ubuntu Linux'/><author><name>Bidur Devkota</name><uri>http://www.blogger.com/profile/06015170217829382344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>