<?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-5936804360129928367</id><updated>2024-09-08T11:22:25.385-07:00</updated><category term="ubuntu"/><category term="java"/><category term="windows"/><category term="latex"/><category term="c++"/><category term="doxygen"/><category term="hudson"/><category term="linux"/><category term="mediawiki"/><category term="networking"/><category term="svn"/><category term="doxyfile"/><category term="gdb"/><category term="icr"/><category term="nus"/><category term="ocr"/><category term="profiling"/><category term="python"/><category term="rdesktop"/><category term="skype"/><category term="tesseract"/><category term="unix shell"/><category term="vim"/><category term="amazon-ec2"/><category term="beamer"/><category term="boost"/><category term="build"/><category term="cdash"/><category term="cmake"/><category term="crackpot"/><category term="date"/><category term="debugging"/><category term="debugging java"/><category term="documentation"/><category term="dropbox"/><category term="eclipse"/><category term="email"/><category term="flickr"/><category term="graphite-sim multicore"/><category term="im"/><category term="inkscape"/><category term="java ubuntu"/><category term="jboss"/><category term="jni"/><category term="karmic"/><category term="kdevelop"/><category term="medical"/><category term="mingw"/><category term="netbeans"/><category term="opencv"/><category term="processing"/><category term="recovery"/><category term="scipy"/><category term="service"/><category term="sparse-matrix"/><category term="ssh"/><category term="thunderbird"/><category term="uml c++"/><category term="vmware"/><category term="vpn"/><category term="webbrowser"/><category term="xterm"/><title type='text'>Trivia@Work</title><subtitle type='html'>&lt;i&gt;Stuckness shouldn&#39;t be avoided. It&#39;s the psychic predecessor of all real understanding. An egoless acceptance of stuckness is a key to an understanding of Quality, in mechanical work as in other endeavors. It&#39;s this understanding of Quality as revealed by stuckness which so often makes self-taught mechanics so superior to institute-trained men who have learned how to handle everything except a new situation. - Robert Pirsig, Zen and the Art of Motorcycle Maintenance &lt;/i&gt;</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://triviaatwork.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://triviaatwork.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11432726417561187916</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>118</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5936804360129928367.post-5156238975876547270</id><published>2013-09-13T23:24:00.000-07:00</published><updated>2013-09-13T23:24:01.035-07:00</updated><title type='text'>Changing ulimit of open files</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I wanted to increase the limit on the number of open files, as needed to install a particular new application.&lt;br /&gt;
&lt;br /&gt;
The output of `ulimit -n` was 1024. I had expected that `ulimit -n 2048` command would set the value. Instead, I got the error `bash: ulimit: open files: cannot modify limit: Operation not permitted`.&lt;br /&gt;
&lt;br /&gt;
I tried increasing the ulimit as root: `sudo su -`, and then `ulimit -n 2048`. While this set the limit for root, it did no change for the non-root user.&lt;br /&gt;
&lt;br /&gt;
I also added the following lines to `/etc/security/limits.conf`:&lt;br /&gt;
`&lt;non-root user=&quot;&quot;&gt;&amp;nbsp; soft nofile 2048`&lt;/non-root&gt;&lt;br /&gt;
`&lt;non-root user=&quot;&quot;&gt;&amp;nbsp; soft nofile 4096`&lt;/non-root&gt;&lt;br /&gt;
&lt;br /&gt;
I understand that the above is needed to make the change to ulimit persistent.&lt;br /&gt;
&lt;br /&gt;
Finally, what did work to allow ulimit set as root to be set as non-root user, is appending line `session required pam_limits.so` in the file `/etc/pam.d/common-session`. &lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://triviaatwork.blogspot.com/feeds/5156238975876547270/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5936804360129928367/5156238975876547270?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/5156238975876547270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/5156238975876547270'/><link rel='alternate' type='text/html' href='http://triviaatwork.blogspot.com/2013/09/changing-ulimit-of-open-files.html' title='Changing ulimit of open files'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11432726417561187916</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-5936804360129928367.post-5457044431231699192</id><published>2012-12-29T00:06:00.003-08:00</published><updated>2012-12-29T00:06:56.825-08:00</updated><title type='text'>Find CPU, RAM Size, Cache Size, etc., on Ubuntu Linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;cat /proc/cpuinfo&lt;/span&gt; to get the CPU info. &lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;cat /proc/meminfo&lt;/span&gt; to get the RAM info.&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;lscpu&lt;/span&gt; to get the L1, L2 cache size. &lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://triviaatwork.blogspot.com/feeds/5457044431231699192/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5936804360129928367/5457044431231699192?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/5457044431231699192'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/5457044431231699192'/><link rel='alternate' type='text/html' href='http://triviaatwork.blogspot.com/2012/12/find-cpu-ram-size-cache-size-etc-on.html' title='Find CPU, RAM Size, Cache Size, etc., on Ubuntu Linux'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11432726417561187916</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-5936804360129928367.post-4700020145637039922</id><published>2012-08-21T18:41:00.002-07:00</published><updated>2012-08-21T18:41:19.086-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c++"/><title type='text'>Expected Primary Expression Before &#39;&gt;&#39;</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Using gcc 4.x, the above error may be encountered in template code. This &lt;a href=&quot;https://groups.google.com/forum/?fromgroups=#!topic/comp.lang.c++.moderated/yfQmVT-0iMY&quot;&gt;discussion&lt;/a&gt; is useful for the case.&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://triviaatwork.blogspot.com/feeds/4700020145637039922/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5936804360129928367/4700020145637039922?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/4700020145637039922'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/4700020145637039922'/><link rel='alternate' type='text/html' href='http://triviaatwork.blogspot.com/2012/08/expected-primary-expression-before.html' title='Expected Primary Expression Before &#39;&gt;&#39;'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11432726417561187916</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-5936804360129928367.post-2110854139082044234</id><published>2012-05-17T22:27:00.001-07:00</published><updated>2012-05-17T22:31:55.325-07:00</updated><title type='text'>Starting Testing GAE Python App with Webtest</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Recently I wanted to write automated tests for my GAE WSGI app (the app is written using web2py, but this detail may or may not be relevant to this post). Behavior-driven design, implemented by, e.g., &lt;a href=&quot;http://lettuce.it/&quot;&gt;Lettuce&lt;/a&gt;, seems to me as an ideal way to write tests---reasons seem to be well-described &lt;a href=&quot;http://www.code-magazine.com/article.aspx?quickid=0805061&quot;&gt;in this article&lt;/a&gt;&amp;nbsp;by Scott Bellware.&amp;nbsp;In python, Webtest is a good way to test WSGI apps. There are a couple of hurdles:&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;it seems that GAE &lt;a href=&quot;http://stackoverflow.com/questions/9833189/loading-from-app-yaml-as-a-wsgi-application&quot;&gt;app.yaml cannot be used to get a WSGI app&lt;/a&gt; needed to run Webtest-based tests. One get-around for this hurdle is to use &lt;a href=&quot;http://www.alexconrad.org/2011/10/proxying-tests.html&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;WSGIProxy&lt;/span&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;another (easier) problem is that Webtest redirects stdout and stderr streams, so the &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;print&lt;/span&gt; function cannot be used for debugging. This problem can be circumvented using &lt;a href=&quot;http://docs.python.org/library/logging.html&quot;&gt;logging&lt;/a&gt;.&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://triviaatwork.blogspot.com/feeds/2110854139082044234/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5936804360129928367/2110854139082044234?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/2110854139082044234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/2110854139082044234'/><link rel='alternate' type='text/html' href='http://triviaatwork.blogspot.com/2012/05/hello-world-of-testing-gae-python-app.html' title='Starting Testing GAE Python App with Webtest'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11432726417561187916</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-5936804360129928367.post-3756303804008930526</id><published>2012-05-04T05:55:00.000-07:00</published><updated>2012-05-04T05:55:25.333-07:00</updated><title type='text'>Managing Multiple .bib Files</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I am using latex for multiple papers and to merge the contents into a thesis. I have multiple .bib files, say one for each paper. Unluckily, this does not look like a good situation to be in. &lt;b&gt;There should better be only one .bib file that I should use for all the papers&lt;/b&gt;, since then I do not need to worry about duplicates; for example, correction of an entry need not be redone if the entry is duplicated in other bib files.&lt;br /&gt;
&lt;br /&gt;
To extract the subset of the consolidated bib file that a particular paper uses, it is possible to &lt;a href=&quot;http://tex.stackexchange.com/a/6398/156&quot;&gt;use JabRef&lt;/a&gt;. &amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
Here it is also worth to point out that a situation when a cited reference is missing from the bibliography can be detected using the following (assume &quot;make&quot; calls the latex command, namely: latex doc; bibtex doc; latex doc; latex doc):&lt;br /&gt;
&lt;br /&gt;
make | grep -i &quot;warning--&quot; | less&lt;br /&gt;
&lt;br /&gt;
This at best is a hack, but I could not find a better way till now. In particular, there seems to be no easy way to make missing bibentry as an error. &amp;nbsp;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://triviaatwork.blogspot.com/feeds/3756303804008930526/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5936804360129928367/3756303804008930526?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/3756303804008930526'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/3756303804008930526'/><link rel='alternate' type='text/html' href='http://triviaatwork.blogspot.com/2012/05/managing-multiple-bib-files.html' title='Managing Multiple .bib Files'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11432726417561187916</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-5936804360129928367.post-7768329509681906844</id><published>2012-05-04T02:35:00.003-07:00</published><updated>2012-05-04T02:35:51.767-07:00</updated><title type='text'>Backing Up My Ubuntu Desktop Settings and Files</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I am using the method at&amp;nbsp;&lt;a href=&quot;http://askubuntu.com/a/99171&quot;&gt;http://askubuntu.com/a/99171&lt;/a&gt;. Will shortly need to move my desktop and then I will update how it went.&amp;nbsp;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://triviaatwork.blogspot.com/feeds/7768329509681906844/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5936804360129928367/7768329509681906844?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/7768329509681906844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/7768329509681906844'/><link rel='alternate' type='text/html' href='http://triviaatwork.blogspot.com/2012/05/backing-up-my-ubuntu-desktop-settings.html' title='Backing Up My Ubuntu Desktop Settings and Files'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11432726417561187916</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-5936804360129928367.post-6249991823467890630</id><published>2012-04-20T21:59:00.001-07:00</published><updated>2012-04-20T21:59:28.865-07:00</updated><title type='text'>Easy way to install gcc-4.6 on Ubuntu 10.04</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sudo apt-add-repository ppa:ubuntu-toolchain-r/test/ubuntu&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sudo apt-get update&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sudo apt-get install gcc-4.6&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sudo apt-get install g++-4.6&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From &lt;a href=&quot;http://ubuntuforums.org/showthread.php?t=1719940&quot;&gt;here&lt;/a&gt;. The alternative is to download gcc sources and install &lt;a href=&quot;http://stackoverflow.com/questions/2886259/gcc-4-5-installation-problem-under-ubuntu&quot;&gt;like this&lt;/a&gt;.&amp;nbsp;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://triviaatwork.blogspot.com/feeds/6249991823467890630/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5936804360129928367/6249991823467890630?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/6249991823467890630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/6249991823467890630'/><link rel='alternate' type='text/html' href='http://triviaatwork.blogspot.com/2012/04/easy-way-to-install-gcc-46-on-ubuntu.html' title='Easy way to install gcc-4.6 on Ubuntu 10.04'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11432726417561187916</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-5936804360129928367.post-5751531223769048663</id><published>2012-04-19T22:41:00.002-07:00</published><updated>2012-04-19T22:41:34.941-07:00</updated><title type='text'>svn: making trunk identical to a branch</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
So, I created a branch, made changes within the branch over a period and periodically kept merging from trunk into the branch.&amp;nbsp;&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Now I want to make the trunk identical to the branch. The best approach for this is as described at&amp;nbsp;&lt;a href=&quot;http://stackoverflow.com/a/1008805/19501&quot;&gt;http://stackoverflow.com/a/1008805/19501&lt;/a&gt;, namely use the three-way merge option:&lt;/div&gt;
&lt;div&gt;
&lt;blockquote&gt;
...you want to merge &quot;FROM trunk@HEAD TO branch@HEAD&quot; with the working copy pointing to trunk. In essence:&lt;br /&gt;&quot;Give me all the changes I&#39;d need to make trunk identical to branch&quot;.&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://triviaatwork.blogspot.com/feeds/5751531223769048663/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5936804360129928367/5751531223769048663?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/5751531223769048663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/5751531223769048663'/><link rel='alternate' type='text/html' href='http://triviaatwork.blogspot.com/2012/04/svn-making-trunk-identical-to-branch.html' title='svn: making trunk identical to a branch'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11432726417561187916</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-5936804360129928367.post-2313709772772742681</id><published>2012-04-05T06:39:00.000-07:00</published><updated>2012-04-05T06:39:53.511-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="python"/><category scheme="http://www.blogger.com/atom/ns#" term="scipy"/><category scheme="http://www.blogger.com/atom/ns#" term="sparse-matrix"/><title type='text'>Copy one sparse matrix into another in 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;
Copying Xf into features. In this case, Xf is a scipy.sparse.csr_matrix and features is a dok_matrix.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nz_indices = Xf.nonzero()&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for ix, jx in zip(nz_indices[0], nz_indices[1]):&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; features[ix, jx] = Xf[ix, jx]&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Notes:&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;1. When I checked, the assignment of a 0 to an element of a dok_matrix resulted in a crash. So 0 assignments have to be avoided.&amp;nbsp;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://triviaatwork.blogspot.com/feeds/2313709772772742681/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5936804360129928367/2313709772772742681?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/2313709772772742681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/2313709772772742681'/><link rel='alternate' type='text/html' href='http://triviaatwork.blogspot.com/2012/04/copy-one-sparse-matrix-into-another-in.html' title='Copy one sparse matrix into another in Python'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11432726417561187916</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-5936804360129928367.post-8652322665399697171</id><published>2012-03-20T05:28:00.001-07:00</published><updated>2012-03-20T05:29:07.388-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="graphite-sim multicore"/><title type='text'>Installing Graphite-Sim</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;I wanted to use a multi-core simulator for scalability testing of our parallelization. Graphite-sim seems to provide the functionality of simulation.&amp;nbsp;However, there were a series of problems during the installation of Graphite-sim:&lt;br /&gt;
&lt;br /&gt;
When I downloaded and tried to install the 32-bit version on my Ubuntu linux host, the compilation failed. It seems that contrary to &lt;a href=&quot;https://github.com/mit-carbon/Graphite/wiki/Getting-Started&quot;&gt;the documentation&lt;/a&gt;, only the 64-bit version currently works, as can be seen on the &lt;a href=&quot;https://groups.google.com/forum/?fromgroups#!forum/graphite-sim&quot;&gt;forums&lt;/a&gt;.&amp;nbsp;I tried to fix the compilation for a few times, but soon it became clear that the code was not fixable by me.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, I tried to work out if a 64-bit Debian guest VM can be installed so that the guest can contain Graphite-sim. Indeed this is the way that the Graphite-sim documentation seems to be tested.&amp;nbsp;As per&lt;br /&gt;
&lt;a href=&quot;http://ubuntuforums.org/showthread.php?t=1165598&quot;&gt;http://ubuntuforums.org/showthread.php?t=1165598&lt;/a&gt;&amp;nbsp;I ran the command provided to ascertain whether my hardware can support a 64-bit vm. I installed virtualbox-ose package from synaptic.&lt;br /&gt;
I downloaded Debian-64 from&amp;nbsp;&lt;a href=&quot;http://www.debian.org/releases/lenny/debian-installer/&quot;&gt;http://www.debian.org/releases/lenny/debian-installer/&lt;/a&gt;&amp;nbsp;. Initially I tried installing ia64 businesscard version, but the VM would not recognize it as a boot iso. Later Ifound out on one of the forums that amd64 businesscard version should be used.&lt;br /&gt;
&lt;br /&gt;
Next, I installed the debian on the virtualbox, but while doing so, I had to enable &quot;Intel Virtualization Technology&quot; in the BIOS settings to overcome an error &quot;VT-x is enabled but is not operational&quot;. Besides, amd64 was not installing on the VMWare virtual machine but could install on Virtualbox.&lt;br /&gt;
&lt;br /&gt;
To summarize, the following steps should work using a Ubuntu Linux host:&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Install Virtualbox OSE (Open Source Edition).&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Enable &quot;Intel Virtualization Technology&quot; in the BIOS settings of the host machine.&lt;/li&gt;
&lt;li&gt;Download the amd64 (64-bit)&amp;nbsp;businesscard iso.&lt;/li&gt;
&lt;li&gt;Install the iso as a guest on Virtualbox.&lt;/li&gt;
&lt;li&gt;Follow up with the instructions at&amp;nbsp;&lt;a href=&quot;https://github.com/mit-carbon/Graphite/wiki/Getting-Started&quot;&gt;https://github.com/mit-carbon/Graphite/wiki/Getting-Started&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;and the following &lt;b&gt;would not work (YMMV)&lt;/b&gt;:&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Installing on a 32-bit machine&lt;/li&gt;
&lt;li&gt;Installing ia64 guest on VMware/Virtualbox OSE.&lt;/li&gt;
&lt;li&gt;Installing amd64 on VMWare player.&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;I can see that many of the exact specifications of my configuration are incompletely specified, such as the host hardware, VMWare player version, Virtualbox version, etc. Unluckily I do not have the time to find out and list these here right now.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://triviaatwork.blogspot.com/feeds/8652322665399697171/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5936804360129928367/8652322665399697171?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/8652322665399697171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/8652322665399697171'/><link rel='alternate' type='text/html' href='http://triviaatwork.blogspot.com/2012/03/installing-graphite-sim.html' title='Installing Graphite-Sim'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11432726417561187916</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-5936804360129928367.post-4505362372177696420</id><published>2012-03-19T23:23:00.001-07:00</published><updated>2012-03-19T23:24:31.575-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="latex"/><title type='text'>Latex Issues</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;I faced an issue while using dvips + ps2pdf to generate pdf from latex. Seems to be this bug (prob in dvips):&lt;br /&gt;
&lt;a href=&quot;http://bugs.ghostscript.com/show_bug.cgi?format=multiple&amp;amp;id=690427&quot;&gt;http://bugs.ghostscript.com/show_bug.cgi?format=multiple&amp;amp;id=690427&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
As a getaround, I switched to using dvipdfm.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://triviaatwork.blogspot.com/feeds/4505362372177696420/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5936804360129928367/4505362372177696420?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/4505362372177696420'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/4505362372177696420'/><link rel='alternate' type='text/html' href='http://triviaatwork.blogspot.com/2012/03/latex-issues.html' title='Latex Issues'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11432726417561187916</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-5936804360129928367.post-4679740418613330898</id><published>2011-05-18T01:12:00.000-07:00</published><updated>2011-05-18T01:12:10.665-07:00</updated><title type='text'>Setting up Git</title><content type='html'>&lt;a href=&quot;https://help.ubuntu.com/community/Git&quot;&gt;https://help.ubuntu.com/community/Git&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
There is a local machine and a server which will act as a Git Server.&lt;br /&gt;
&lt;br /&gt;
On the git server:&lt;br /&gt;
sudo apt-get install python-setuptools git-core gitosis&lt;br /&gt;
&lt;br /&gt;
On the local machine:&lt;br /&gt;
ssh-keygen -t rsa&lt;br /&gt;
scp the public key to Git Server at /tmp/pub-key&lt;br /&gt;
&lt;br /&gt;
On the git server:&lt;br /&gt;
sudo -H -u gitosis gitosis-init &amp;lt; /tmp/pub-key</content><link rel='replies' type='application/atom+xml' href='http://triviaatwork.blogspot.com/feeds/4679740418613330898/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5936804360129928367/4679740418613330898?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/4679740418613330898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/4679740418613330898'/><link rel='alternate' type='text/html' href='http://triviaatwork.blogspot.com/2011/05/setting-up-git.html' title='Setting up Git'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11432726417561187916</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-5936804360129928367.post-4996979247669698113</id><published>2011-03-24T22:57:00.000-07:00</published><updated>2011-03-24T22:57:08.742-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="networking"/><title type='text'>To get a Static IP Address from a DHCP Server (On Linux)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;i&gt;Thanks to Ivan.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;Edit /etc/network/interfaces&lt;br /&gt;
&lt;br /&gt;
Change settings to:&lt;br /&gt;
&lt;br /&gt;
# The loopback network interface&lt;br /&gt;
auto lo&lt;br /&gt;
iface lo inet loopback&lt;br /&gt;
&lt;br /&gt;
# This is a list of hotpluggable network interfaces.&lt;br /&gt;
# They will be activated automatically by the hotplug subsystem.&lt;br /&gt;
mapping hotplug&lt;br /&gt;
script grep&lt;br /&gt;
map eth0&lt;br /&gt;
&lt;br /&gt;
# The primary network interface&lt;br /&gt;
auto eth0&lt;br /&gt;
iface eth0 inet static&lt;br /&gt;
address 192.168.1.35&lt;br /&gt;
netmask 255.255.255.0&lt;br /&gt;
network 192.168.0.0&lt;br /&gt;
broadcast 192.168.1.255&lt;br /&gt;
gateway 192.168.1.254&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://triviaatwork.blogspot.com/feeds/4996979247669698113/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5936804360129928367/4996979247669698113?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/4996979247669698113'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/4996979247669698113'/><link rel='alternate' type='text/html' href='http://triviaatwork.blogspot.com/2011/03/to-get-static-ip-address-from-dhcp.html' title='To get a Static IP Address from a DHCP Server (On Linux)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11432726417561187916</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-5936804360129928367.post-9082816718963643047</id><published>2011-03-24T22:29:00.001-07:00</published><updated>2011-03-24T22:29:38.589-07:00</updated><title type='text'>Log4J Configuration</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;After a lot of headaches and retries, the log4j.properties config file that worked for me is this:&amp;nbsp;&lt;a href=&quot;http://www.benmccann.com/dev-blog/sample-log4j-properties-file/&quot;&gt;http://www.benmccann.com/dev-blog/sample-log4j-properties-file/&lt;/a&gt;&amp;nbsp;. Simply placing this under src/main/resources works. I am using standard maven settings.&amp;nbsp;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://triviaatwork.blogspot.com/feeds/9082816718963643047/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5936804360129928367/9082816718963643047?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/9082816718963643047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/9082816718963643047'/><link rel='alternate' type='text/html' href='http://triviaatwork.blogspot.com/2011/03/log4j-configuration.html' title='Log4J Configuration'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11432726417561187916</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-5936804360129928367.post-3216951611680238457</id><published>2011-02-15T20:44:00.000-08:00</published><updated>2011-02-15T20:44:20.927-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Problems in Viewing Docx On Ubuntu?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;After having a lot of trouble in viewing Docx, I installed odf-converter-integrator&amp;nbsp;from&amp;nbsp;&lt;a href=&quot;http://katana.oooninja.com/w/odf-converter-integrator/download&quot;&gt;http://katana.oooninja.com/w/odf-converter-integrator/download&lt;/a&gt;&amp;nbsp;. This helped a lot although the output was not perfect.&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://triviaatwork.blogspot.com/feeds/3216951611680238457/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5936804360129928367/3216951611680238457?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/3216951611680238457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/3216951611680238457'/><link rel='alternate' type='text/html' href='http://triviaatwork.blogspot.com/2011/02/problems-in-viewing-docx-on-ubuntu.html' title='Problems in Viewing Docx On Ubuntu?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11432726417561187916</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-5936804360129928367.post-2707828163265706302</id><published>2011-01-23T18:41:00.001-08:00</published><updated>2011-01-23T18:41:57.690-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Changing Timezone on Ubuntu</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;dpkg-reconfigure tzdata&lt;/code&gt;&lt;br /&gt;
&lt;code class=&quot;bash plain&quot;&gt;&amp;nbsp;&lt;/code&gt; &lt;br /&gt;
http://webonrails.com/2009/07/15/change-timezone-of-ubuntu-machine-from-command-line/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://triviaatwork.blogspot.com/feeds/2707828163265706302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5936804360129928367/2707828163265706302?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/2707828163265706302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/2707828163265706302'/><link rel='alternate' type='text/html' href='http://triviaatwork.blogspot.com/2011/01/changing-timezone-on-ubuntu.html' title='Changing Timezone on Ubuntu'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11432726417561187916</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-5936804360129928367.post-2246149529251212126</id><published>2011-01-22T04:52:00.000-08:00</published><updated>2011-01-22T04:52:34.122-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Disk Check during Shutdown on Ubuntu (and not during startup)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Just installed autofsck. This goes into the &quot;my base installations&quot; list.&amp;nbsp;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://triviaatwork.blogspot.com/feeds/2246149529251212126/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5936804360129928367/2246149529251212126?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/2246149529251212126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/2246149529251212126'/><link rel='alternate' type='text/html' href='http://triviaatwork.blogspot.com/2011/01/disk-check-during-shutdown-on-ubuntu.html' title='Disk Check during Shutdown on Ubuntu (and not during startup)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11432726417561187916</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-5936804360129928367.post-1026839345066003253</id><published>2011-01-14T03:32:00.000-08:00</published><updated>2011-01-14T03:32:09.134-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="vpn"/><title type='text'>Juniper VPN on Ubuntu</title><content type='html'>There are certain issues with Juniper on Ubuntu. The following getaround works well for me though:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://ubuntuforums.org/showpost.php?p=10346501&amp;amp;postcount=416&quot;&gt;http://ubuntuforums.org/showpost.php?p=10346501&amp;amp;postcount=416&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://triviaatwork.blogspot.com/feeds/1026839345066003253/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5936804360129928367/1026839345066003253?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/1026839345066003253'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/1026839345066003253'/><link rel='alternate' type='text/html' href='http://triviaatwork.blogspot.com/2011/01/juniper-vpn-on-ubuntu.html' title='Juniper VPN on Ubuntu'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11432726417561187916</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-5936804360129928367.post-2221069377253816672</id><published>2011-01-09T23:44:00.001-08:00</published><updated>2011-01-09T23:46:14.723-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>Some Windows Commands</title><content type='html'>From command prompt, Taskkill /pid &lt;pid&gt; to kill a task.&amp;nbsp;&lt;/pid&gt;&lt;br /&gt;
&lt;pid&gt;&lt;br /&gt;
&lt;/pid&gt;&lt;br /&gt;
&lt;pid&gt;Tasklist /v to get a list of running tasks.&amp;nbsp;&lt;/pid&gt;&lt;br /&gt;
&lt;pid&gt;&lt;br /&gt;
&lt;/pid&gt;&lt;br /&gt;
&lt;pid&gt;netstat -ano to get the list of used network ports and the pid using the port.&lt;/pid&gt;</content><link rel='replies' type='application/atom+xml' href='http://triviaatwork.blogspot.com/feeds/2221069377253816672/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5936804360129928367/2221069377253816672?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/2221069377253816672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/2221069377253816672'/><link rel='alternate' type='text/html' href='http://triviaatwork.blogspot.com/2011/01/some-windows-commands.html' title='Some Windows Commands'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11432726417561187916</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-5936804360129928367.post-2998949268799858025</id><published>2010-12-10T05:28:00.000-08:00</published><updated>2010-12-10T05:28:05.600-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mediawiki"/><title type='text'>Watching All Files in Mediawiki</title><content type='html'>As per the discussion &lt;a href=&quot;http://www.mwusers.com/forums/showthread.php?9094-Watch-All-Pages-and-Get-Email-Notifications&quot;&gt;here&lt;/a&gt;, the change &lt;a href=&quot;http://www.mediawiki.org/wiki/Manual:$wgUsersNotifiedOnAllChanges&quot;&gt;discussed at the Mediawiki site&lt;/a&gt; should be able to provide the functionality of notification on each file change. I verified that this change works.</content><link rel='replies' type='application/atom+xml' href='http://triviaatwork.blogspot.com/feeds/2998949268799858025/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5936804360129928367/2998949268799858025?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/2998949268799858025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/2998949268799858025'/><link rel='alternate' type='text/html' href='http://triviaatwork.blogspot.com/2010/12/watching-all-files-in-mediawiki.html' title='Watching All Files in Mediawiki'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11432726417561187916</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-5936804360129928367.post-7120906842282425939</id><published>2010-12-07T00:44:00.000-08:00</published><updated>2010-12-07T20:19:36.524-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="rdesktop"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Logging into Ubuntu from another Ubuntu Machine and View Remote Display</title><content type='html'>&lt;pre&gt;Lets call the machine on which we want the display to be shown as client machine, and the machine from which the display will be shown as the server machine.&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;SSH supports X forwarding. To enable X forwarding on the server, first install ssh using&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: normal;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;blockquote&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sudo apt-get install ssh&lt;/span&gt;&lt;/blockquote&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;/span&gt;Then, edit &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;/etc/ssh/ssh_config&lt;/span&gt; to set&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: normal;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;blockquote&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;ForwardX11 yes&lt;/span&gt;&lt;/blockquote&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;On the client, you need to start a new X server by running:&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: normal;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;blockquote&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sudo xinit -- :2&lt;/span&gt;&lt;/blockquote&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;/span&gt;Then on the client, run&amp;nbsp;&lt;/pre&gt;&lt;blockquote&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;ssh -X server -l user&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/blockquote&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;After logging in onto server via ssh, do &quot;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;echo $DISPLAY&lt;/span&gt;&quot;. This variable should have been set by ssh. Then run &quot;gnome-session&quot; on the server. You can now see it displayed onto your client. &lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;Do &quot;Ctrl+Alt+F7&quot; to go back to the X server working with your client, and &quot;Ctrl+Alt+F8/F9&quot; to toggle to the display received from the server.&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;After logging into the server, you might get errors like:&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;blockquote&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;/usr/bin/xauth:  error in locking authority file /home/user&lt;user&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;/.Xauthority.&lt;/span&gt;&lt;/user&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;user&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/user&gt;The following resolved the issue for me:&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: normal;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;blockquote&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;xauth -b quit&lt;/span&gt; &lt;/blockquote&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://triviaatwork.blogspot.com/feeds/7120906842282425939/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5936804360129928367/7120906842282425939?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/7120906842282425939'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/7120906842282425939'/><link rel='alternate' type='text/html' href='http://triviaatwork.blogspot.com/2010/12/logging-into-ubuntu-from-another-ubuntu.html' title='Logging into Ubuntu from another Ubuntu Machine and View Remote Display'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11432726417561187916</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-5936804360129928367.post-984722618887517806</id><published>2010-11-26T03:08:00.001-08:00</published><updated>2010-11-26T03:08:41.262-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><title type='text'>Eclipse stopping automatic build before launch</title><content type='html'>&lt;a href=&quot;http://dev.eclipse.org/newslists/news.eclipse.tools.cdt/msg14394.html&quot;&gt;http://dev.eclipse.org/newslists/news.eclipse.tools.cdt/msg14394.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Preferences &amp;gt; Run/Debug &amp;gt; Launch &amp;gt; untick &quot;Build before launch&quot;</content><link rel='replies' type='application/atom+xml' href='http://triviaatwork.blogspot.com/feeds/984722618887517806/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5936804360129928367/984722618887517806?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/984722618887517806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/984722618887517806'/><link rel='alternate' type='text/html' href='http://triviaatwork.blogspot.com/2010/11/eclipse-stopping-automatic-build-before.html' title='Eclipse stopping automatic build before launch'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11432726417561187916</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-5936804360129928367.post-7280706220080333424</id><published>2010-11-26T03:07:00.001-08:00</published><updated>2010-11-26T03:07:27.538-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>Recursive Find in Windows Command Prompt</title><content type='html'>dir . /s /b | find &quot;text&quot;</content><link rel='replies' type='application/atom+xml' href='http://triviaatwork.blogspot.com/feeds/7280706220080333424/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5936804360129928367/7280706220080333424?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/7280706220080333424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/7280706220080333424'/><link rel='alternate' type='text/html' href='http://triviaatwork.blogspot.com/2010/11/recursive-find-in-windows-command.html' title='Recursive Find in Windows Command Prompt'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11432726417561187916</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-5936804360129928367.post-4781859651643215219</id><published>2010-11-08T02:30:00.000-08:00</published><updated>2010-11-08T02:30:22.412-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ssh"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>Freesshd for using SCP to a Windows Machine</title><content type='html'>To install Freesshd, run the install using admin privileges, else you will repeatedly get less-privilege-related errors. &lt;br /&gt;
&lt;br /&gt;
In your windows firewall, check that Freesshd service is allowed.&lt;br /&gt;
&lt;br /&gt;
Open Freesshd and check that login is allowed for the user you want to use ssh with.</content><link rel='replies' type='application/atom+xml' href='http://triviaatwork.blogspot.com/feeds/4781859651643215219/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5936804360129928367/4781859651643215219?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/4781859651643215219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/4781859651643215219'/><link rel='alternate' type='text/html' href='http://triviaatwork.blogspot.com/2010/11/freesshd-for-using-scp-to-windows.html' title='Freesshd for using SCP to a Windows Machine'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11432726417561187916</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-5936804360129928367.post-4746891609419397759</id><published>2010-11-06T04:37:00.000-07:00</published><updated>2010-11-06T04:37:23.055-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="hudson"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Hudson on Ubuntu</title><content type='html'>http://wiki.hudson-ci.org/display/HUDSON/Installing+Hudson+on+Ubuntu&lt;br /&gt;
&lt;br /&gt;
Worked fine for me, except that Hudson has a dependency on Java. For installing Java I followed:&lt;br /&gt;
&lt;br /&gt;
http://www.cyberciti.biz/faq/howto-ubuntu-linux-install-configure-jdk-jre/</content><link rel='replies' type='application/atom+xml' href='http://triviaatwork.blogspot.com/feeds/4746891609419397759/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5936804360129928367/4746891609419397759?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/4746891609419397759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5936804360129928367/posts/default/4746891609419397759'/><link rel='alternate' type='text/html' href='http://triviaatwork.blogspot.com/2010/11/hudson-on-ubuntu.html' title='Hudson on Ubuntu'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11432726417561187916</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>