<?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: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-1607061143892343899</id><updated>2012-01-31T21:47:46.683-05:00</updated><category term='i/o'/><category term='nostalgia'/><category term='domestic'/><category term='commute'/><category term='creatures'/><category term='tools'/><category term='hms'/><category term='funny'/><category term='gadgets'/><category term='interesting'/><category term='latex'/><category term='3D printing'/><category term='eating out'/><category term='D40 review'/><category term='boost'/><category term='aha'/><category term='mencoder'/><category term='art'/><category term='syntax'/><category term='bottle'/><category term='iteration'/><category term='array'/><category term='firefox'/><category term='slashdot QOD'/><category term='scipy submodules'/><category term='css'/><category term='flash game'/><category term='family'/><category term='eclipse'/><category term='blogger hack'/><category term='c++'/><category term='travelling'/><category term='fraud'/><category term='archery'/><category term='python ide'/><category term='xml'/><category term='india-us'/><category term='wrapper'/><category term='CAD'/><category term='microsoft excel'/><category term='solvers'/><category term='rants'/><category term='wayback'/><category term='experiments'/><category term='government'/><category term='pretty picture'/><category term='gui'/><category term='scary'/><category term='editor'/><category term='housing'/><category term='Ipython'/><category term='plotting 3D'/><category term='software'/><category term='the price of milk'/><category term='*nix'/><category term='html'/><category term='mac'/><category term='plotting'/><category term='lyx'/><category term='statistics'/><category term='boston'/><category term='gotcha'/><category term='vista'/><category term='ide'/><category term='svn'/><category term='matplotlib'/><category term='moving'/><category term='education'/><category term='complex'/><category term='debugging'/><category term='organization'/><category term='lists'/><category term='mac-gripe'/><category term='blender'/><category term='bad science'/><category term='online book'/><category term='numerical methods'/><category term='raves'/><category term='tvtk'/><category term='shell'/><category term='analysis'/><category term='python'/><category term='browser'/><category term='deus ex'/><category term='internet'/><category term='source control'/><category term='microsoft word'/><category term='inkscape'/><category term='thunderbird'/><category term='hardware'/><category term='science'/><category term='grants'/><category term='linux'/><category term='crash'/><category term='commandline'/><category term='netiquette'/><category term='photography'/><category term='sqlite'/><category term='objects'/><category term='games'/><category term='21st century'/><category term='modules'/><category term='communication'/><category term='web framework'/><category term='reference manager'/><category term='electronics'/><category term='x'/><category term='literature'/><category term='matlab'/><category term='ruby on rails'/><category term='sql'/><category term='want my money back'/><category term='mac-tip'/><category term='qt'/><category term='fail'/><category term='space sim'/><category term='bangla'/><category term='utilities'/><category term='medicine'/><title type='text'>Assorted Experience</title><subtitle type='html'>A dumping ground for things I learned here and there pertaining to programing, experimental setups and life in general. (This blog started out as Pieces of Python)</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default?start-index=101&amp;max-results=100'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>663</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-4043179398910686180</id><published>2012-01-24T06:19:00.000-05:00</published><updated>2012-01-24T06:19:00.535-05:00</updated><title type='text'>Mac OS Lion, external display and sleep</title><content type='html'>When I close the Macbook (Mac OS Lion) lid it usually goes to sleep. But with an external display attached and a usb mouse attached the computer just switches to using the external display, rather than sleeping when the lid is closed.&lt;br /&gt;&lt;br /&gt;From &lt;a href="http://support.apple.com/kb/ht3131"&gt;here&lt;/a&gt;, we see that we should use the apple menu to explicitly send the computer to sleep.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-4043179398910686180?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/4043179398910686180/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2012/01/mac-os-lion-external-display-and-sleep.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/4043179398910686180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/4043179398910686180'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2012/01/mac-os-lion-external-display-and-sleep.html' title='Mac OS Lion, external display and sleep'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-8600354152857622095</id><published>2011-12-22T04:43:00.002-05:00</published><updated>2011-12-22T04:43:39.270-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><title type='text'>View markdown on Mac OS X</title><content type='html'>Use the Quicklook plugin from &lt;a href="https://github.com/toland/qlmarkdown#readme"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Simpy drop the QLMarkdown.qlgenerator to ~/Library/QuickLook or /Library/QuickLook&lt;br /&gt;&lt;br /&gt;Now whenever you select a markdown file (.md) it will format the file and show the formatted version to you through quicklook.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-8600354152857622095?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/8600354152857622095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/view-markdown-on-mac-os-x.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8600354152857622095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8600354152857622095'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/view-markdown-on-mac-os-x.html' title='View markdown on Mac OS X'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-7424314897508881977</id><published>2011-12-19T15:21:00.001-05:00</published><updated>2011-12-19T15:21:32.197-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='electronics'/><title type='text'>The "page flash" on the kindle</title><content type='html'>The "page flash" on the Kindle 4 - the sudden turning of all the pixels black and then white, before the page is displayed - occurs every 6 page turns. It seems to be necessary because a certain amount of 'dirt' accumulates inbetween - bold letters (and also normal text) seem to leave traces pixels around the edges of the letters after they have been wiped after a page turn. The 'flash' wipes these pixels out and makes the page look crisp again.&lt;br /&gt;&lt;br /&gt;I don't know if this is a flaw in the driver software, or a shortcoming in the e-ink display itself (that leaves the traces).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-7424314897508881977?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/7424314897508881977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/page-flash-on-kindle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/7424314897508881977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/7424314897508881977'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/page-flash-on-kindle.html' title='The &quot;page flash&quot; on the kindle'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-5423570056703931343</id><published>2011-12-15T13:21:00.000-05:00</published><updated>2011-12-15T13:21:02.728-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>Quick state machine in Python</title><content type='html'>&lt;pre&gt;SM = {&lt;br /&gt;  'INTERTRIAL': {'TRIALSTART': 'TSTART0'},&lt;br /&gt;  'TSTART0': {'TRIALSTART': 'TSTART1'},&lt;br /&gt;  'TSTART1': {'TRIALSTART': 'INTRIAL'},&lt;br /&gt;  'INTRIAL': {'TRIALEND': 'TEND0'},&lt;br /&gt;  'TEND0': {'TRIALEND': 'TEND1'},&lt;br /&gt;  'TEND1': {'TRIALEND': 'INTERTRIAL'}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;nextstate = SM[currentstate].get(input,currentstate)&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-5423570056703931343?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/5423570056703931343/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/quick-state-machine-in-python.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/5423570056703931343'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/5423570056703931343'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/quick-state-machine-in-python.html' title='Quick state machine in Python'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-5670056515305046663</id><published>2011-12-14T16:31:00.000-05:00</published><updated>2011-12-14T16:31:07.540-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='matplotlib'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><title type='text'>matplotlib installation</title><content type='html'>&lt;ol&gt;&lt;li&gt;freetype2 &lt;br /&gt;http://download.savannah.gnu.org/releases-redirect/freetype/freetype-2.4.8.tar.gz&lt;br /&gt;./configure&lt;br /&gt;make&lt;br /&gt;sudo make install&lt;/li&gt;&lt;li&gt;libpng (http://www.libpng.org/pub/png/libpng.html)&lt;br /&gt;./configure&lt;br /&gt;make&lt;br /&gt;sudo make install&lt;/li&gt;&lt;li&gt;sudo easy_install matplotlib&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-5670056515305046663?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/5670056515305046663/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/matplotlib-installation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/5670056515305046663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/5670056515305046663'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/matplotlib-installation.html' title='matplotlib installation'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-1654030440132397056</id><published>2011-12-12T12:07:00.001-05:00</published><updated>2011-12-12T12:07:31.704-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ide'/><category scheme='http://www.blogger.com/atom/ns#' term='software'/><category scheme='http://www.blogger.com/atom/ns#' term='qt'/><category scheme='http://www.blogger.com/atom/ns#' term='python ide'/><title type='text'>Bye bye eclipse, hello PyCharm and QT creator</title><content type='html'>I ditched eclipse for C when I found QT Creator. But I still kept it around for my python code, but it got annoying. Then I found PyCharm. I like it. Bye bye eclipse.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-1654030440132397056?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/1654030440132397056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/bye-bye-eclipse-hello-pycharm-and-qt.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/1654030440132397056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/1654030440132397056'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/bye-bye-eclipse-hello-pycharm-and-qt.html' title='Bye bye eclipse, hello PyCharm and QT creator'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-5868682129451972908</id><published>2011-12-12T12:05:00.000-05:00</published><updated>2011-12-12T12:05:22.651-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ipython'/><category scheme='http://www.blogger.com/atom/ns#' term='numerical methods'/><category scheme='http://www.blogger.com/atom/ns#' term='matplotlib'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>Changing how numpy arrays are printed</title><content type='html'>Use &lt;code&gt;numpy.set_printoptions&lt;/code&gt;. One of the things I like most about pylab (and numpy) is this flexibility, especially the summarization feature, which, when the array is very large, prints ellipses (...) instead of clobbering you with lines and lines of output. I like to set the threshold low (default is 1000) and I do this with &lt;code&gt;pylab.set_printoptions(threshold=10)&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-5868682129451972908?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/5868682129451972908/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/changing-how-numpy-arrays-are-printed.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/5868682129451972908'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/5868682129451972908'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/changing-how-numpy-arrays-are-printed.html' title='Changing how numpy arrays are printed'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-4933778136659508273</id><published>2011-12-09T12:51:00.001-05:00</published><updated>2011-12-09T12:51:25.479-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ipython'/><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><title type='text'>Mac OS Lion : Install ipython + readline</title><content type='html'>&lt;pre&gt;&lt;code&gt;sudo easy_install-2.7 readline ipython&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-4933778136659508273?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/4933778136659508273/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/mac-os-lion-install-ipython-readline.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/4933778136659508273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/4933778136659508273'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/mac-os-lion-install-ipython-readline.html' title='Mac OS Lion : Install ipython + readline'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-5066544147001114630</id><published>2011-12-07T07:44:00.001-05:00</published><updated>2011-12-07T07:47:00.848-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='matplotlib'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><title type='text'>Mac OS Lion : install matplotlib</title><content type='html'>&lt;ol&gt;&lt;li&gt;Download source&lt;/li&gt;&lt;li&gt;"Building mpl on Mac OS X is a nightmare" - John Hunter&lt;/li&gt;&lt;li&gt;Use his very effective make.osx:&lt;/li&gt;&lt;li&gt; sudo make -f make.osx PREFIX=/temp/build/dir PYVERSION=2.7 fetch deps mpl_install_std&lt;/li&gt;&lt;li&gt;Remove old ~/.matplotlib directory (some weird warnings)&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-5066544147001114630?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/5066544147001114630/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/mac-os-lion-install-matplotlib.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/5066544147001114630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/5066544147001114630'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/mac-os-lion-install-matplotlib.html' title='Mac OS Lion : install matplotlib'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-8988638417346690498</id><published>2011-12-06T17:40:00.001-05:00</published><updated>2011-12-07T06:45:18.004-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='matlab'/><title type='text'>Mac OS X install pytables and h5py</title><content type='html'>&lt;ol&gt;&lt;li&gt;Install tables - need NumPy version 1.6&lt;/li&gt;&lt;li&gt;Get NumPy from &lt;a href="http://sourceforge.net/projects/numpy/files/NumPy/1.6.1/numpy-1.6.1-py2.7-python.org-macosx10.6.dmg/download"&gt;sourceforge&lt;/a&gt; and install - need Python 2.7&lt;/li&gt;&lt;li&gt;Install &lt;a href="http://www.python.org/ftp/python/2.7.2/python-2.7.2-macosx10.6.dmg"&gt;python 2.7&lt;/a&gt; on Lion, open new terminal (or refresh path)&lt;/li&gt;&lt;li&gt;curl http://python-distribute.org/distribute_setup.py | python&lt;/li&gt;&lt;li&gt;curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python&lt;/li&gt;&lt;li&gt;sudo pip install ipython&lt;/li&gt;&lt;li&gt;sudo pip install tables&lt;/li&gt;&lt;li&gt;need numexpr &amp;gt; 1.4.1,&amp;nbsp;&lt;/li&gt;&lt;li&gt;Download anc ompile numexpr -&amp;gt; wants to compile using gcc-4.2&lt;/li&gt;&lt;li&gt;sudo ln -s gcc gcc-4.2&lt;/li&gt;&lt;li&gt;sudo pip install cython&lt;/li&gt;&lt;li&gt;Get HDf5 from http://www.hdfgroup.org/ftp/HDF5/current/bin/mac-intel-x86_64/hdf5-1.8.8-mac-intel-x86_64-shared.tar.gz&lt;/li&gt;&lt;li&gt;/configure and compile&lt;/li&gt;&lt;li&gt;Copy the hdf5 folder whereever you want&lt;/li&gt;&lt;li&gt;python setup.py build --hdf5=/path/to/hdf5 (from the unzipped source of h5py)&lt;/li&gt;&lt;li&gt;sudo python setup.py install --hdf5=/usr/local/hdf5/ (in the unzipped dir of pytables)&lt;/li&gt;&lt;/ol&gt;In contrast, to get h5py working on Ubuntu:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;sudo apt-get install libhdf5-serial-dev&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;sudo easy_install h5py &lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-8988638417346690498?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/8988638417346690498/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/mac-os-x-install-pytables-and-h5py.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8988638417346690498'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8988638417346690498'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/mac-os-x-install-pytables-and-h5py.html' title='Mac OS X install pytables and h5py'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-4951724662801955458</id><published>2011-12-06T12:49:00.001-05:00</published><updated>2011-12-06T12:53:27.043-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='commandline'/><title type='text'>Dealing with strict key checking for SSH</title><content type='html'>Problem:&lt;br /&gt;&lt;br /&gt;While using sftp (or some other ssh related service) the following warning shows up and we can't use the service:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&lt;br /&gt;@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @&lt;br /&gt;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&lt;br /&gt;IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!&lt;br /&gt;Someone could be eavesdropping on you right now (man-in-the-middle attack)!&lt;br /&gt;It is also possible that the RSA host key has just been changed.&lt;br /&gt;The fingerprint for the RSA key sent by the remote host is&lt;br /&gt;b0:a8:eb:30:ce:1a:0e:6a:4d:7a:6b:3a:0a:c6:27:60.&lt;br /&gt;Please contact your system administrator.&lt;br /&gt;Add correct host key in /Users/xxx/.ssh/known_hosts to get rid of this message.&lt;br /&gt;Offending key in /Users/xxx/.ssh/known_hosts:&lt;b&gt;28&lt;/b&gt;&lt;br /&gt;RSA host key for web.sourceforge.net has changed and you have requested strict checking.&lt;br /&gt;Host key verification failed.&lt;br /&gt;Connection closed&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Solution:&lt;br /&gt;&lt;br /&gt;Remove the key by doing&lt;br /&gt;&lt;code&gt;sed -i "28 d" ~/.ssh/known_hosts&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;We know it is line 28, because that came up in the warning message.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-4951724662801955458?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/4951724662801955458/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/dealing-with-strict-key-checking-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/4951724662801955458'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/4951724662801955458'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/dealing-with-strict-key-checking-for.html' title='Dealing with strict key checking for SSH'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-1430420422003719218</id><published>2011-12-06T12:38:00.001-05:00</published><updated>2011-12-06T12:38:42.181-05:00</updated><title type='text'>github project page checkout for working</title><content type='html'>&lt;code&gt;git clone git@github.com:kghose/Chhobi -b gh-pages&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-1430420422003719218?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/1430420422003719218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/github-project-page-checkout-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/1430420422003719218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/1430420422003719218'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/github-project-page-checkout-for.html' title='github project page checkout for working'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-1616677133589607620</id><published>2011-12-06T10:52:00.001-05:00</published><updated>2011-12-07T10:23:34.237-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='raves'/><category scheme='http://www.blogger.com/atom/ns#' term='mac-gripe'/><category scheme='http://www.blogger.com/atom/ns#' term='rants'/><title type='text'>Mac OS Lion</title><content type='html'>Things I like&lt;br /&gt;&lt;ol&gt;&lt;li&gt;New tab in terminal opens in same folder&lt;/li&gt;&lt;li&gt;Preview can make pdfs by stringing msic documents together &lt;/li&gt;&lt;/ol&gt;I don't like&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Preview is sooo sluggish&lt;/li&gt;&lt;li&gt;Preview messes up some transparency in pdfs&lt;/li&gt;&lt;li&gt;No save as (gotta duplicate etc etc)&lt;/li&gt;&lt;/ol&gt;&lt;ol&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-1616677133589607620?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/1616677133589607620/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/mac-os-lion.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/1616677133589607620'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/1616677133589607620'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/mac-os-lion.html' title='Mac OS Lion'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-7597731883508803444</id><published>2011-12-03T09:23:00.001-05:00</published><updated>2011-12-03T09:28:24.405-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='analysis'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>Reading Plexon files into Python</title><content type='html'>&lt;ol&gt;&lt;li&gt;Sample C code is at &lt;a href="http://code.google.com/p/plx2csv/"&gt;plx2csv&lt;/a&gt;, rather striaghtofrward reading of the plexon binary file&lt;/li&gt;&lt;li&gt;Needed to load the data into Python, so looked at &lt;a href="http://www.boost.org/doc/libs/1_48_0/libs/python/doc/"&gt;Boost.Python&lt;/a&gt; and &lt;a href="http://packages.python.org/PyBindGen/index.html"&gt;pybindgen&lt;/a&gt;, but then&lt;/li&gt;&lt;li&gt;decided that pickling the data from the c code and loading it into python scripts would be fine and so used&lt;/li&gt;&lt;li&gt;The &lt;a href="http://www.picklingtools.com/"&gt;PicklingTools&lt;/a&gt; library.&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-7597731883508803444?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/7597731883508803444/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/reading-plexon-files-into-python.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/7597731883508803444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/7597731883508803444'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/reading-plexon-files-into-python.html' title='Reading Plexon files into Python'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-5435089155021438099</id><published>2011-12-01T09:59:00.001-05:00</published><updated>2011-12-01T10:02:30.756-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='gotcha'/><title type='text'>++i OR i++ ?</title><content type='html'>From discussions on &lt;a href="http://stackoverflow.com/questions/24886/is-there-a-performance-difference-between-i-and-i-in-c"&gt;stack overflow&lt;/a&gt; we have:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;code&gt;++i&lt;/code&gt; does not expect to return a value while &lt;code&gt;i++&lt;/code&gt; might need to return avalue.&lt;/li&gt;&lt;li&gt;A modern compiler, for simple data types (i.e. integer) will treat the twothe same if the context is right e.g. in a &lt;code&gt;for&lt;/code&gt; loop&lt;/li&gt;&lt;li&gt;For an object (e.g. an interator), however, &lt;code&gt;++i&lt;/code&gt; will be faster than &lt;code&gt;i++&lt;/code&gt;because a compiler cannot optimize away the creation of a temporary object for&lt;code&gt;i++&lt;/code&gt; &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-5435089155021438099?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/5435089155021438099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/i-or-i.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/5435089155021438099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/5435089155021438099'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/12/i-or-i.html' title='++i OR i++ ?'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-7783847012775034711</id><published>2011-11-29T12:09:00.001-05:00</published><updated>2011-11-29T12:14:08.695-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='latex'/><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><title type='text'>LaTeX : pretty printing the difference between two versions</title><content type='html'>Use latexdiff&lt;br /&gt;&lt;br /&gt;e.g. latexdiff ../v01/Complete/main_v02.tex main_v02.tex &amp;gt; diff.tex&lt;br /&gt;&lt;br /&gt;Then compile diff.tex (and don't forget to run bibtex, though new citations don't show up as changes)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-7783847012775034711?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/7783847012775034711/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/11/latex-pretty-printing-difference.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/7783847012775034711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/7783847012775034711'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/11/latex-pretty-printing-difference.html' title='LaTeX : pretty printing the difference between two versions'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-7798756424167818183</id><published>2011-11-28T15:59:00.001-05:00</published><updated>2011-11-28T16:02:05.053-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><category scheme='http://www.blogger.com/atom/ns#' term='microsoft word'/><title type='text'>MS word (Mac os X) Different footer/header text</title><content type='html'>&lt;ol&gt;&lt;li&gt;Insert-&amp;gt;Break-&amp;gt;Section break(continuous)&lt;/li&gt;&lt;li&gt;&lt;b&gt;Open formatting palette&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Uncheck "link to previous"&lt;/li&gt;&lt;li&gt;Enter the new header/footer&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-7798756424167818183?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/7798756424167818183/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/11/ms-word-mac-os-x-different-footerheader.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/7798756424167818183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/7798756424167818183'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/11/ms-word-mac-os-x-different-footerheader.html' title='MS word (Mac os X) Different footer/header text'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-4236495368043192946</id><published>2011-11-21T11:37:00.001-05:00</published><updated>2011-11-21T11:46:31.041-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mac-gripe'/><category scheme='http://www.blogger.com/atom/ns#' term='gotcha'/><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><title type='text'>WARNING: terminal is not fully functional (After installing Xcode on Mac OS X)</title><content type='html'>From the first answer &lt;a href="http://superuser.com/questions/327791/terminal-strangeness-after-installing-xcode-on-lion"&gt;here&lt;/a&gt;:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;This is due to xcode install messing with /usr/share/terminfo&lt;/li&gt;&lt;li&gt;The default terminal is xterm-256color which is removed from /usr/share/terminfo/78&lt;/li&gt;&lt;li&gt;If you have a TimeMachine backup, use that to restore /usr/share/terminfo.&amp;nbsp;&lt;/li&gt;&lt;li&gt;If you don't, use the file provided &lt;a href="http://whocares.de/mac-and-solaris-fix-the-xterm-color-issue/"&gt;here&lt;/a&gt;.&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-4236495368043192946?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/4236495368043192946/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/11/warning-terminal-is-not-fully.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/4236495368043192946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/4236495368043192946'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/11/warning-terminal-is-not-fully.html' title='WARNING: terminal is not fully functional (After installing Xcode on Mac OS X)'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-3788620442696828527</id><published>2011-11-20T15:24:00.001-05:00</published><updated>2011-11-20T15:31:21.914-05:00</updated><title type='text'>How to get file creation time on Mac OS X (64 bit)</title><content type='html'>&lt;ul&gt;&lt;li&gt;QFileInfo.created() on POSIX systems (like Mac OS X) &lt;a href="http://doc.qt.nokia.com/latest/qfileinfo.html#created"&gt;returns the last modified time&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;This is annoying because on Mac OS X you &lt;i&gt;know&lt;/i&gt; the system (e.g. finder) has access to the actual creation time.&lt;/li&gt;&lt;li&gt;Turns out that BSD systems (like Mac OS X) have &lt;a href="http://developer.apple.com/library/IOS/#documentation/System/Conceptual/ManPages_iPhoneOS/man2/stat.2.html"&gt;an extension to sys/stat.h&lt;/a&gt; that contains the file creation time. &lt;/li&gt;&lt;/ul&gt;The recipe, then is (shown using the QT framework):&lt;br /&gt;&lt;pre&gt;#include &amp;lt;QtCore&amp;gt;&lt;br /&gt;#include &amp;lt;sys/stat.h&amp;gt;&lt;br /&gt;&lt;br /&gt;int main(int argc, char *argv[])&lt;br /&gt;{&lt;br /&gt;    QString fname("/Users/kghose/Sandbox/ChhobiTest/2005/2005_07_10/MVI_0693.AVI");&lt;br /&gt;    QDateTime thedatetime;&lt;br /&gt;    &lt;b&gt;struct stat64 the_time;&lt;br /&gt;    stat64(fname.toStdString().c_str(), &amp;amp;the_time);&lt;br /&gt;    thedatetime.setTime_t(the_time.st_birthtimespec.tv_sec);&lt;/b&gt;&lt;br /&gt;    qDebug() &amp;lt;&amp;lt; thedatetime;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-3788620442696828527?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/3788620442696828527/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/11/how-to-get-file-creation-time-on-mac-os.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/3788620442696828527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/3788620442696828527'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/11/how-to-get-file-creation-time-on-mac-os.html' title='How to get file creation time on Mac OS X (64 bit)'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-8247667140858481386</id><published>2011-11-07T11:34:00.001-05:00</published><updated>2011-11-07T11:34:23.531-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><title type='text'>MenuMeters (Replacement for iStat)</title><content type='html'>&lt;a href="http://www.ragingmenace.com/software/menumeters/"&gt;MenuMeters&lt;/a&gt; is an opensource program that does, very colorfully, what iStat does and works on Lion. The appearance is not as slick as iStat, but it is very configurable.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-8247667140858481386?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/8247667140858481386/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/11/menumeters-replacement-for-istat.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8247667140858481386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8247667140858481386'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/11/menumeters-replacement-for-istat.html' title='MenuMeters (Replacement for iStat)'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-3226299819894026223</id><published>2011-11-03T11:12:00.001-04:00</published><updated>2011-11-03T11:12:34.761-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><title type='text'>Show ~/Library on Lion</title><content type='html'>&lt;code&gt;chflags nohidden ~/Library/&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;From &lt;a href="http://osxdaily.com/2011/07/04/show-library-directory-in-mac-os-x-lion/"&gt;here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-3226299819894026223?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/3226299819894026223/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/11/show-library-on-lion.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/3226299819894026223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/3226299819894026223'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/11/show-library-on-lion.html' title='Show ~/Library on Lion'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-2543592726647891809</id><published>2011-10-27T14:45:00.000-04:00</published><updated>2011-10-27T14:53:25.684-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='government'/><title type='text'>Income inequality</title><content type='html'>I don't deal with political topics here. But there were some thoughts I had on this fad going around on income inequality.&lt;br /&gt;&lt;br /&gt;If you take a look at this report by the &lt;a href="http://www.economist.com/blogs/dailychart/2011/10/income-inequality-america"&gt;economist&lt;/a&gt; the claim is that while the income disparity between 99% of the people in the US hasn't changed much that between the 99% and the 1% has changed a lot.&lt;br /&gt;&lt;br /&gt;I can see in my mind's eye some person or persons with a definite political agenda sitting at their software and moving a slider control. They first split the population 50/50 and grunt with dissatisfaction. They move it to 25/75. Still not so good. Then they get all excited and move it all the way to 1/99. Yay! Look at THAT income disparity.&lt;br /&gt;&lt;br /&gt;I have a few concerns about this graph. Perhaps someone can enlighten me?&lt;br /&gt;&lt;ol&gt;&lt;li&gt;If I took the top 1% of a distribution MOST measures I would make using that 1% would be biased in some extreme way. There is no way I could stop that, because I took an extreme part of the population to start with. I'm taking a few samples from a tail, taking that average and comparing it with the average of the rest. What ELSE could I expect from any distribution in the real world?&lt;/li&gt;&lt;li&gt;What kind of outcome are we looking here? A truncation of the tail? Some way to get rid of the super rich? Sure we could, but WHAT WOULD THAT BUY US? What would we be happy with. One super rich individual per country? 10? 100?&lt;/li&gt;&lt;/ol&gt;I really don't understand this sentiment and frankly I am worried by it. I am worried by a sentiment that people should not be much more financially successful than the average.&lt;br /&gt;&lt;br /&gt;If the anger is against the bank bailouts or bank policies, take your money and put it in a different bank or a credit union! If you hate outsourcing, buy local products. If you are unhappy because you are unemployed, start a business!&lt;br /&gt;&lt;br /&gt;Life isn't easy, and never was and never will be. Anybody who promises otherwise is lying! There may be some temporary steps the government can take to increase short term demand, but getting rid of financially successful individuals can NEVER improve conditions. That's just jealousy pure and simple.&lt;br /&gt;&lt;br /&gt;Progressive tax rates is fine, it's an economic decision on the part of the govt. but just remember, the top 1% are usually mobile, and have international interests, so they just might move to somewhere else more economically suitable for them - and we are left with, well 99% of the people who don't take the financial risk that a lot of the 1% are taking (which got them to 1%).&lt;br /&gt;&lt;br /&gt;If you are angry with the bonuses that the wall street guys are getting MOVE YOUR MONEY ELSEWHERE! They didn't steal the money from us, &lt;b&gt;we gave it do them in expectation of higher returns&lt;/b&gt;. MOVE THE MONEY ELSEWHERE! It was a bad decision.&lt;br /&gt;&lt;br /&gt;If they broke laws, shout for their prosecution. If the laws were lax, shout for better ones.&lt;br /&gt;&lt;br /&gt;But don't hate on the rich: it's the surest way to stay poor and miserable.&lt;br /&gt;&lt;br /&gt;We are not serfs paying rent to rich landowners anymore. We have choices. But we need initiative and courage to take them. Sure we can take less risk, but then we get less reward. If we complain about that - well that's entitlement and that just keeps us poor.&lt;br /&gt;&lt;br /&gt;Take control, and don't hate.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-2543592726647891809?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/2543592726647891809/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/10/income-inequality.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/2543592726647891809'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/2543592726647891809'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/10/income-inequality.html' title='Income inequality'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-8921694274065761729</id><published>2011-10-26T00:54:00.001-04:00</published><updated>2011-10-26T00:54:22.406-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><title type='text'>Use preview.app to insert images as pages into a pdf</title><content type='html'>&lt;ol&gt;&lt;li&gt;Open image in Preview.app, "print" and save as pdf&lt;/li&gt;&lt;li&gt;Open pdf you want to add to&lt;/li&gt;&lt;li&gt;Open the pages pane&lt;/li&gt;&lt;li&gt;Drag and drop the image pdf you just created into the pages pane (in whatever sequence you want it)&lt;/li&gt;&lt;li&gt;Preview.app will show the pdf to be "edited"&lt;/li&gt;&lt;li&gt;Save the pdf&lt;/li&gt;&lt;/ol&gt;You can directly drag and drop the image file from the Finder into the pages pane. This will, however, add a white border round the image.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-8921694274065761729?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/8921694274065761729/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/10/use-previewapp-to-insert-images-as.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8921694274065761729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8921694274065761729'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/10/use-previewapp-to-insert-images-as.html' title='Use preview.app to insert images as pages into a pdf'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-3304496292718721854</id><published>2011-10-24T23:49:00.001-04:00</published><updated>2011-10-26T00:48:40.798-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><title type='text'>iTunes: option + maximize = real maximize</title><content type='html'>iTunes is annoying because clicking "+" (maximize) moves it to mini-player mode. Holding down "option" when clicking "+" will make it work like mazimize&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-3304496292718721854?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/3304496292718721854/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/10/itunes-option-maximize-real-maximize.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/3304496292718721854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/3304496292718721854'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/10/itunes-option-maximize-real-maximize.html' title='iTunes: option + maximize = real maximize'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-9008810106775343075</id><published>2011-10-20T08:49:00.001-04:00</published><updated>2011-10-20T08:49:31.282-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='thunderbird'/><title type='text'>Thunderbird: "Shift" sends emails in html</title><content type='html'>Holding down "shift" when you press "reply" or "forward" causes emails to be composed in HTML in thunderbird.&lt;br /&gt;&lt;br /&gt;Probably the most useful tip I have seen.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-9008810106775343075?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/9008810106775343075/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/10/thunderbird-shift-sends-emails-in-html.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/9008810106775343075'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/9008810106775343075'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/10/thunderbird-shift-sends-emails-in-html.html' title='Thunderbird: &quot;Shift&quot; sends emails in html'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-8871505623793969409</id><published>2011-10-18T14:36:00.002-04:00</published><updated>2011-10-18T14:37:39.563-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='raves'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='internet'/><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><title type='text'>Export display from Linux to Mac</title><content type='html'>From &lt;a href="http://newsgroups.derkeiler.com/Archive/Comp/comp.sys.mac.apps/2007-07/msg00553.html"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;On client Mac startup &lt;b&gt;X11.app&lt;/b&gt; and check preferences-&amp;gt;Security-&amp;gt;"Allow connections from network clients"&lt;/li&gt;&lt;li&gt;Open an xterm from the X11.app menu&lt;/li&gt;&lt;li&gt;ssh into host machine with the X flag (from the xterm)&lt;br /&gt;ssh y.y.y.y &lt;b&gt;-X&lt;/b&gt; -luser&lt;/li&gt;&lt;li&gt;Everything works (even with firewall on), no need to set DISPLAY etc.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;ol&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-8871505623793969409?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/8871505623793969409/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/10/export-display-from-linux-to-mac.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8871505623793969409'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8871505623793969409'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/10/export-display-from-linux-to-mac.html' title='Export display from Linux to Mac'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-953989397591913974</id><published>2011-10-17T13:27:00.001-04:00</published><updated>2011-10-18T14:37:20.680-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='matplotlib'/><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><title type='text'>Installing ubuntu (11.10)</title><content type='html'>&lt;ol&gt;&lt;li&gt;New HDD was cut into two partitions and win xp was installed on one.&lt;/li&gt;&lt;li&gt;Ubuntu was installed off a USB stick "Install alongside Win XP" was chosen. This correctly used the empty (unformatted) partition for Linux, with appropriate swap space choice.&lt;/li&gt;&lt;li&gt;Ssh needs to be installed - can be installed through the package manager. I used a metapackage to install both client and server. The changes took effect immediately (no restart or manually starting server). I went from not being able to ssh into the machine from my mac to being able to.&lt;/li&gt;&lt;li&gt;Python 2.6 comes installed &lt;/li&gt;&lt;li&gt;sudo apt-get python-pip&lt;/li&gt;&lt;li&gt;sudo pip install ipython&lt;/li&gt;&lt;li&gt;sudo apt-get install python-matplotlib&lt;/li&gt;&lt;li&gt;The Unity Launcher cannot be configured to be at the bottom. Idiots.&lt;/li&gt;&lt;li&gt; sudo apt-get install aptitude&lt;/li&gt;&lt;li&gt;install kubuntu-desktop via aptitude (picked kdm as display manager)&lt;/li&gt;&lt;li&gt;Muon package manager has authentication problems (can't authenticate - Muon creator says it is a policykit problem). Idiots&lt;/li&gt;&lt;li&gt;Uninstall KDE and go back to Unity: follow the instructions &lt;a href="http://www.psychocats.net/ubuntu/puregnome"&gt;here&lt;/a&gt;. (This is important)&lt;/li&gt;&lt;li&gt;(sudo apt-get autoremove because it told me to)&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-953989397591913974?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/953989397591913974/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/10/installing-ubuntu-1110.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/953989397591913974'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/953989397591913974'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/10/installing-ubuntu-1110.html' title='Installing ubuntu (11.10)'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-6905629392429784379</id><published>2011-10-12T17:51:00.001-04:00</published><updated>2011-10-13T10:59:32.643-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><title type='text'>Get rid of MySQL from Mac OS X</title><content type='html'>Follow the instructions &lt;a href="http://akrabat.com/computing/uninstalling-mysql-on-mac-os-x-leopard/"&gt;here&lt;/a&gt;. For Lion /etc/hostconfig seems to be going away.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-6905629392429784379?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/6905629392429784379/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/10/get-rid-of-mysql-from-mac-os-x.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/6905629392429784379'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/6905629392429784379'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/10/get-rid-of-mysql-from-mac-os-x.html' title='Get rid of MySQL from Mac OS X'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-7936863947550456396</id><published>2011-10-12T17:26:00.000-04:00</published><updated>2011-10-13T10:58:26.005-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='raves'/><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><title type='text'>Migrating from a 10.5 macbook to a 10.7 macbook pro</title><content type='html'>&lt;ol&gt;&lt;li&gt;Most impressed by migration: just needed to hook up my time machine disk to the new machine in in 2 hours my WHOLE computer was transplanted onto the new mac, including applications and frameworks.&lt;/li&gt;&lt;li&gt;When I went to run eclipse (Helios) I was asked to install java runtime, which the OS installer found and installed by itself.&lt;/li&gt;&lt;li&gt;The fast login switching, not so useful for single user laptops and also takes up menubar space with your name can be removed from system preferences (&lt;a href="http://decoding.wordpress.com/2011/07/21/mac-os-x-lion-remove-login-username-from-menu-bar/"&gt;here&lt;/a&gt;).&lt;/li&gt;&lt;li&gt;Spaces threw me: from &lt;a href="http://www.maclife.com/article/howtos/how_use_spaces_mac_os_x_lion%C2%A0"&gt;here&lt;/a&gt;, we see that the way to add new spaces is to go into misson control (middle click) and then move the pointer to the top right hand corner to add a new desktop.&lt;/li&gt;&lt;li&gt;To use the existing time machine backup (so you keep your history etc), however, all the files seem to be copied over afresh - so you get a new snapshot which uses a lot of space - the first new backup is not incremental.&lt;/li&gt;&lt;li&gt;The screen looks different - the colors are brighter - but perhaps my old macbook's lcd was just fading.&lt;/li&gt;&lt;li&gt;Two new bangla input methods are available and built in, though I am yet to try them properly. &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-7936863947550456396?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/7936863947550456396/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/10/migrating-from-105-macbook-to-107.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/7936863947550456396'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/7936863947550456396'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/10/migrating-from-105-macbook-to-107.html' title='Migrating from a 10.5 macbook to a 10.7 macbook pro'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-2097988218807124756</id><published>2011-09-27T00:42:00.001-04:00</published><updated>2011-10-17T10:03:27.368-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='games'/><title type='text'>Deus Ex HR</title><content type='html'>&lt;ol&gt;&lt;li&gt;One of the few games I ever bought when it came out (thus at full price. That's how much I wanted it)&lt;/li&gt;&lt;li&gt;Tossing a cardboard box at armed NPCs now leads the bastards to gun you down mercilessly, rather than simply yell at and berate you like they used to do in DE&lt;/li&gt;&lt;li&gt;You can drag a body through the vents.&lt;/li&gt;&lt;li&gt;Immersive side-story items&lt;/li&gt;&lt;li&gt;Improved dialog system much like RPG&lt;/li&gt;&lt;li&gt;You can sell stuff you don't need for cash - so I sell all the lethal weapons, which I don't use.&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;A LOT of attention has been paid to detail and atmosphere, one of the few games I would recommend to get at full price to reward the creators. If you liked Deus Ex, you will definitely enjoy this one, which has update graphics and some enjoyable new augs.&lt;br /&gt;&lt;ol&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-2097988218807124756?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/2097988218807124756/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/09/deus-ex-hr.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/2097988218807124756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/2097988218807124756'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/09/deus-ex-hr.html' title='Deus Ex HR'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-2343383983148694312</id><published>2011-09-17T05:09:00.001-04:00</published><updated>2011-09-18T08:16:17.753-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='travelling'/><title type='text'>Travelling on advance parole from India to the US through Frankfurt</title><content type='html'>&lt;ul&gt;&lt;li&gt;The person at the Lufthansa counter accepted the combo EAD/AP card&lt;/li&gt;&lt;li&gt;The immigration official at Indian customs examined the card closely, looked at my expired H1-B visa stamp, asked me if they would let me in with this card (I said yes) and then let me pass&lt;/li&gt;&lt;li&gt;At Frankfurt, I was asked if I have a visa, I said "Yes, a German visa" (I had a one year multiple entry German visa). She did not flip through the passport to actually find the visa, she just let me through after looking at the front page. Current regulations state you need a transit visa if you are on AP and are not from one of the visa waiver countries.&lt;/li&gt;&lt;li&gt;At US immigration I was asked to fill out the white I-94 card and sent to secondary inspection&lt;/li&gt;&lt;li&gt;At secondary inspection the lady asked a few questions about my specialization and then stamped the I-94 card as "DA/AOS" and let me through. She also "Cancelled Without Prejudice" my expired H1-B visa stamp&lt;/li&gt;&lt;li&gt;I did not have to show any documents other than my passport and EAD/AP card to anyone. &lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-2343383983148694312?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/2343383983148694312/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/09/travelling-on-advance-parole-from-india.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/2343383983148694312'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/2343383983148694312'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/09/travelling-on-advance-parole-from-india.html' title='Travelling on advance parole from India to the US through Frankfurt'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-3051942591927380155</id><published>2011-08-26T23:23:00.000-04:00</published><updated>2011-08-26T23:23:14.661-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mencoder'/><title type='text'>Extract a clip from a video with mencoder</title><content type='html'>mencoder -ss 00:38:46 -endpos 00:05:40 -oac copy -ovc copy movie.avi -o excerpt.avi&lt;br /&gt;&lt;br /&gt;00:38:46 is the start position and 00:05:40 is the duration&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-3051942591927380155?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/3051942591927380155/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/08/extract-clip-from-video-with-mencoder.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/3051942591927380155'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/3051942591927380155'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/08/extract-clip-from-video-with-mencoder.html' title='Extract a clip from a video with mencoder'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-4307489882799045574</id><published>2011-08-11T18:46:00.002-04:00</published><updated>2011-08-11T18:56:19.724-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='latex'/><title type='text'>Latex: Pushing floats to the end of a document</title><content type='html'>The endfloat package is kind of fancy but the problem I faced with it is that I was renumbering figures in the middle of the document and the latex referencing algorithms were handling it fine, but when the figures appeared at the end of the document their numbering was screwed up.&lt;br /&gt;&lt;br /&gt;There is an easy way, however, to push the figures to the end of the document as I wanted. From some hints &lt;a href="http://mintaka.sdsu.edu/GF/bibliog/latex/floats.html"&gt;here&lt;/a&gt; about how LaTeX decides whether there is enough space on a page to put in a figure&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;\renewcommand{\textfraction}{1.0}&lt;br /&gt;\renewcommand{\floatpagefraction}{0.9}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;in the preamble does the trick, by fooling LaTeX into deciding there is NEVER enough space to put figures on a page until it is all out of text and has to just dump the figures as best as it can, one to a page.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-4307489882799045574?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/4307489882799045574/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/08/latex-pushing-floats-to-end-of-document.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/4307489882799045574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/4307489882799045574'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/08/latex-pushing-floats-to-end-of-document.html' title='Latex: Pushing floats to the end of a document'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-8489815824933368927</id><published>2011-08-09T17:03:00.000-04:00</published><updated>2011-08-09T17:03:01.183-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='latex'/><title type='text'>Latex + Unicode = XeTeX</title><content type='html'>Never bothered to figure out what this xetex thing was. Turns out it can handle unicode. For texmaker just replace pdflatex command with xelatex and use a unicode aware font (e.g. \usepackage{helvet}) and things should work&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-8489815824933368927?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/8489815824933368927/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/08/latex-unicode-xetex.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8489815824933368927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8489815824933368927'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/08/latex-unicode-xetex.html' title='Latex + Unicode = XeTeX'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-1521110085629370345</id><published>2011-08-07T17:05:00.002-04:00</published><updated>2011-08-07T17:12:19.783-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ide'/><category scheme='http://www.blogger.com/atom/ns#' term='eclipse'/><title type='text'>Updating Eclipse</title><content type='html'>From &lt;a href="http://lenettoyeur-on-eclipse.blogspot.com/2011/06/from-helios-to-indigo-is-easy.html"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Help-&amp;gt;Install New Software-&amp;gt;Add site-&amp;gt; http://download.eclipse.org/releases/indigo (or whatever release you are going to)&lt;br /&gt;&lt;br /&gt;Help-&amp;gt;Check for updates&lt;br /&gt;&lt;br /&gt;And eclipse should update itself with no fuss.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-1521110085629370345?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/1521110085629370345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/08/updating-eclipse.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/1521110085629370345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/1521110085629370345'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/08/updating-eclipse.html' title='Updating Eclipse'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-6628116645854009466</id><published>2011-08-01T14:19:00.001-04:00</published><updated>2011-08-01T17:20:24.938-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='source control'/><title type='text'>migrating existing svn repo to git (and use with eclipse)</title><content type='html'>&lt;ol&gt;&lt;li&gt;Install git&lt;/li&gt;&lt;li&gt;sudo gem install svn2git --source http://gemcutter.org (&lt;a href="https://github.com/nirvdrum/svn2git"&gt;here&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;svnserve -d (&lt;a href="http://svnbook.red-bean.com/en/1.0/ch06s03.html"&gt;start readonly svnserver on local machine&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;mkdir new directory and cd into it &lt;/li&gt;&lt;li&gt;svn2git svn://localhost/path/to/local/svn/repo&lt;/li&gt;&lt;li&gt;Install &lt;a href="http://eclipse.org/egit/"&gt;EGit&lt;/a&gt; and restart. &lt;/li&gt;&lt;li&gt;(Eclipse) new pydev project -&amp;gt;&amp;nbsp; browse to existing folder&lt;/li&gt;&lt;li&gt;Set up git locally (&lt;a href="http://help.github.com/mac-set-up-git/"&gt;here&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;set up to use git&lt;/li&gt;&lt;li&gt;team -&amp;gt; remote -&amp;gt; push -&amp;gt; (url from your project page)&lt;/li&gt;&lt;/ol&gt;Notes:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;git svn clone file: did not work because of a file format problem (Expected FS format '2'; found format '4' at /usr/local/git/libexec/git-core/git-svn line 1535)&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-6628116645854009466?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/6628116645854009466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/08/migrating-existing-svn-repo-to-git-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/6628116645854009466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/6628116645854009466'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/08/migrating-existing-svn-repo-to-git-and.html' title='migrating existing svn repo to git (and use with eclipse)'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-6418707258547476104</id><published>2011-07-27T10:45:00.001-04:00</published><updated>2011-07-27T10:54:31.746-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='matplotlib'/><category scheme='http://www.blogger.com/atom/ns#' term='gotcha'/><title type='text'>small issue with hist</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-6dZAbQmwh8g/TjAkQ96ht0I/AAAAAAAAAlk/jvcHhHYJ7I8/s1600/Picture%2B11.png" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="194" width="320" src="http://3.bp.blogspot.com/-6dZAbQmwh8g/TjAkQ96ht0I/AAAAAAAAAlk/jvcHhHYJ7I8/s320/Picture%2B11.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;The left is the matplotlib plot - notice the slight rightward shift of the drawn histogram with respect to the solid black line.&lt;br /&gt;&lt;br /&gt;The right is the pdf produced from the same plot, which is exactly where it should be.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-lOPe6j2FI6w/TjAml7C6FcI/AAAAAAAAAls/uViJBEzC7tQ/s1600/histbug.png" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="300" width="300" src="http://4.bp.blogspot.com/-lOPe6j2FI6w/TjAml7C6FcI/AAAAAAAAAls/uViJBEzC7tQ/s320/histbug.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Same deal, but with 'Agg' backend and printed to png&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-6418707258547476104?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/6418707258547476104/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/07/small-issue-with-hist.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/6418707258547476104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/6418707258547476104'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/07/small-issue-with-hist.html' title='small issue with hist'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-6dZAbQmwh8g/TjAkQ96ht0I/AAAAAAAAAlk/jvcHhHYJ7I8/s72-c/Picture%2B11.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-8864329824421108039</id><published>2011-07-27T08:05:00.001-04:00</published><updated>2011-07-27T16:21:38.342-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gotcha'/><category scheme='http://www.blogger.com/atom/ns#' term='rants'/><category scheme='http://www.blogger.com/atom/ns#' term='lyx'/><title type='text'>LyX + Mac + Math heavy document = keystone cops</title><content type='html'>LyX has a really nice online math type setting system. I have a math heavy document that I wanted to type up using LyX. Pretty soon I had the classic problem of any feedback system with feedback delay - oscillations. I would type something, it would take about a quarter of a second to update, I would move my mouse to click on a formula, it would take a quarter of a second to change state and by that time I would have clicked twice, the document would have scrolled, and the formula would change state again, because I had clicked somewhere else.&lt;br /&gt;&lt;br /&gt;Welp. Its back to good old latex and text editors for me. I don't mind the write-compile cycle. &lt;br /&gt;&lt;br /&gt;LyX is good for text documents, but for math, at least on mac, it is so sluggish, it is more annoying than anything.&lt;br /&gt;&lt;br /&gt;UPDATE:&lt;br /&gt;&lt;br /&gt;I have found &lt;a href="http://www.xm1math.net/texmaker/"&gt;texmaker&lt;/a&gt; to be a very nice IDE on mac.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-8864329824421108039?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/8864329824421108039/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/07/lyx-mac-math-heavy-document-keystone.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8864329824421108039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8864329824421108039'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/07/lyx-mac-math-heavy-document-keystone.html' title='LyX + Mac + Math heavy document = keystone cops'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-4329660505132364446</id><published>2011-07-24T19:00:00.000-04:00</published><updated>2011-07-24T19:00:10.720-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><category scheme='http://www.blogger.com/atom/ns#' term='microsoft word'/><title type='text'>Word for Mac 2008 keyboard shortcuts</title><content type='html'>&lt;a href="http://grok.lsu.edu/article.aspx?articleid=7439"&gt;http://grok.lsu.edu/article.aspx?articleid=7439&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-4329660505132364446?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/4329660505132364446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/07/word-for-mac-2008-keyboard-shortcuts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/4329660505132364446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/4329660505132364446'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/07/word-for-mac-2008-keyboard-shortcuts.html' title='Word for Mac 2008 keyboard shortcuts'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-8942496929352065395</id><published>2011-07-21T19:49:00.000-04:00</published><updated>2011-07-21T19:49:56.420-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='organization'/><title type='text'>Tracking down backup space hogs</title><content type='html'>Problem: Even though I haven't done many file changes the Time machine incremental backup is about 350 MB per flush (resulting in many GB per day for hourly backups). I don't generate THAT much work each day.&lt;br /&gt;&lt;br /&gt;Using Time Machine and Time Tracker to track down the culprits.&lt;br /&gt;&lt;br /&gt;Thunderbird:&lt;br /&gt;&lt;br /&gt;global-messages-db.sqlite (170.5 MiB)&lt;br /&gt;&lt;br /&gt;Firefox:&lt;br /&gt;&lt;br /&gt;urlclassifier3.sqlite (50.6 MiB)&lt;br /&gt;Cache 78.2 (MiB)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-8942496929352065395?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/8942496929352065395/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/07/tracking-down-backup-space-hogs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8942496929352065395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8942496929352065395'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/07/tracking-down-backup-space-hogs.html' title='Tracking down backup space hogs'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-3566040655695852812</id><published>2011-07-15T21:50:00.000-04:00</published><updated>2011-07-15T21:50:38.522-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ipython'/><category scheme='http://www.blogger.com/atom/ns#' term='matplotlib'/><category scheme='http://www.blogger.com/atom/ns#' term='crash'/><title type='text'>ipython + matplotlib crashing</title><content type='html'>I've been having this problem ever since I changed to 1.0.1. It's not clear if it is ipython's fault or matplotlib's fault.&lt;br /&gt;&lt;br /&gt;Today I got the first error message before segfault:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;objc[56139]: FREED(id): message removeFromSuperviewWithoutNeedingDisplay sent to freed object=0x19b37470&lt;/pre&gt;&lt;br /&gt;And Mac OS X error report:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;Date/Time:       2011-07-15 21:47:54.500 -0400&lt;br /&gt;OS Version:      Mac OS X 10.5.8 (9L30)&lt;br /&gt;Report Version:  6&lt;br /&gt;Anonymous UUID:  655916BF-D521-48C5-B8A3-FBC5E5FA6683&lt;br /&gt;&lt;br /&gt;Exception Type:  EXC_BAD_INSTRUCTION (SIGILL)&lt;br /&gt;Exception Codes: 0x0000000000000001, 0x0000000000000000&lt;br /&gt;Crashed Thread:  0&lt;br /&gt;&lt;br /&gt;Application Specific Information:&lt;br /&gt;objc[56139]: FREED(id): message removeFromSuperviewWithoutNeedingDisplay sent to freed object=0x19b37470&lt;br /&gt;&lt;br /&gt;Thread 0 Crashed:&lt;br /&gt;0   libobjc.A.dylib                0x90595bfa _objc_error + 116&lt;br /&gt;1   libobjc.A.dylib                0x90595c30 __objc_error + 52&lt;br /&gt;2   libobjc.A.dylib                0x90594637 _freedHandler + 58&lt;br /&gt;3   com.apple.CoreFoundation       0x93faa676 CFArrayApplyFunction + 198&lt;br /&gt;4   com.apple.AppKit               0x91a0aadc -[NSView _finalizeWithReferenceCounting] + 712&lt;br /&gt;5   com.apple.AppKit               0x91a0a7e8 -[NSView dealloc] + 46&lt;br /&gt;6   com.apple.Foundation           0x9524e68f NSPopAutoreleasePool + 1007&lt;br /&gt;7   _macosx.so                     0x02932580 wait_for_stdin + 561 (_macosx.m:171)&lt;br /&gt;8   readline.so                    0x0133bac0 call_readline + 432&lt;br /&gt;9   org.python.python              0x001e04de PyOS_Readline + 254&lt;br /&gt;10  org.python.python              0x0028dbfc builtin_raw_input + 412&lt;br /&gt;11  org.python.python              0x00296165 PyEval_EvalFrameEx + 19429&lt;br /&gt;12  org.python.python              0x002982dd PyEval_EvalCodeEx + 2109&lt;br /&gt;13  org.python.python              0x0029634c PyEval_EvalFrameEx + 19916&lt;br /&gt;14  org.python.python              0x002982dd PyEval_EvalCodeEx + 2109&lt;br /&gt;15  org.python.python              0x0029634c PyEval_EvalFrameEx + 19916&lt;br /&gt;16  org.python.python              0x002982dd PyEval_EvalCodeEx + 2109&lt;br /&gt;17  org.python.python              0x0029634c PyEval_EvalFrameEx + 19916&lt;br /&gt;18  org.python.python              0x002982dd PyEval_EvalCodeEx + 2109&lt;br /&gt;19  org.python.python              0x0029634c PyEval_EvalFrameEx + 19916&lt;br /&gt;20  org.python.python              0x002982dd PyEval_EvalCodeEx + 2109&lt;br /&gt;21  org.python.python              0x0029634c PyEval_EvalFrameEx + 19916&lt;br /&gt;22  org.python.python              0x002982dd PyEval_EvalCodeEx + 2109&lt;br /&gt;23  org.python.python              0x002983f7 PyEval_EvalCode + 87&lt;br /&gt;24  org.python.python              0x002bcf08 PyRun_FileExFlags + 168&lt;br /&gt;25  org.python.python              0x002bddf3 PyRun_SimpleFileExFlags + 867&lt;br /&gt;26  org.python.python              0x002cf902 Py_Main + 3122&lt;br /&gt;27  org.python.python              0x00001f82 0x1000 + 3970&lt;br /&gt;28  org.python.python              0x00001ea9 0x1000 + 3753&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-3566040655695852812?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/3566040655695852812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/07/ipython-matplotlib-crashing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/3566040655695852812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/3566040655695852812'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/07/ipython-matplotlib-crashing.html' title='ipython + matplotlib crashing'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-5278642230611384356</id><published>2011-07-14T23:45:00.002-04:00</published><updated>2011-07-14T23:45:50.551-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='firefox'/><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><category scheme='http://www.blogger.com/atom/ns#' term='rants'/><title type='text'>Bug in STIX fonts</title><content type='html'>Grumble, grumble. MathML on Firefox on mac was going great guns, until I find that &lt;br /&gt;&lt;pre&gt;\mathcal{N}&lt;/pre&gt;gives me garbage (but &lt;br /&gt;&lt;pre&gt;\mathcal{M}&lt;/pre&gt;looks fine). I see from this &lt;a href="https://bugzilla.mozilla.org/show_bug.cgi?id=416062"&gt;bugreport&lt;/a&gt;, that this is an issue with the STIX fonts.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-5278642230611384356?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/5278642230611384356/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/07/bug-in-stix-fonts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/5278642230611384356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/5278642230611384356'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/07/bug-in-stix-fonts.html' title='Bug in STIX fonts'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-7562321777322596030</id><published>2011-07-14T12:48:00.000-04:00</published><updated>2011-07-14T12:48:37.790-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bottle'/><title type='text'>Making up a GET request in bottle</title><content type='html'>Problem: I'm using &lt;a href="http://bottlepy.org/"&gt;bottle&lt;/a&gt; for a desktop browser based app. I needed to call a page view from an action. The page view normally gets some parameters encoded in a GET request.&lt;br /&gt;&lt;br /&gt;Solution: The GET request can be faked by doing:&lt;br /&gt;&lt;pre&gt;request.GET.append(key, value)&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Since &lt;pre&gt;request.GET&lt;/pre&gt;is just a dictionary.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-7562321777322596030?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/7562321777322596030/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/07/making-up-get-request-in-bottle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/7562321777322596030'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/7562321777322596030'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/07/making-up-get-request-in-bottle.html' title='Making up a GET request in bottle'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-563064484001668513</id><published>2011-07-14T09:37:00.000-04:00</published><updated>2011-07-14T09:37:45.477-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='software'/><title type='text'>subclipse, branching, merging etc.</title><content type='html'>&lt;ol&gt;&lt;li&gt;Sometimes merge/branch will refuse to work, saying your resource is out of synch. Do an 'update' and then a 'commit'.&lt;/li&gt;&lt;li&gt;After a rename or move + commit, subclipse will say resource is out of synch with the filesystem, just refresh,commit and continue&lt;/li&gt;&lt;li&gt;pydev explorer does not show the .* project files. These need to be added to svnignore (or committed if you wish). Use the eclipse navigator to see these file&lt;/li&gt;&lt;li&gt;switching a branch to be the trunk is annoying in svn: basically you have to move the folder over - so the current trunk has to be moved (possibly under branches with a new name) and the branch you want has to be moved over and renamed as trunk&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-563064484001668513?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/563064484001668513/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/07/subclipse-branching-merging-etc.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/563064484001668513'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/563064484001668513'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/07/subclipse-branching-merging-etc.html' title='subclipse, branching, merging etc.'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-4318225827326203246</id><published>2011-07-13T16:05:00.000-04:00</published><updated>2011-07-13T16:05:16.378-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='raves'/><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><category scheme='http://www.blogger.com/atom/ns#' term='microsoft word'/><title type='text'>Mac OS X MS Word and Equations</title><content type='html'>I like to compose my equations in LaTeX. I find it a lot faster than the click interface of MS Word's own equation editor. I type up my notes in a LaTeX format so I already have the equations and its a terrible inefficient duplication of work to hunt-n-click them into ms word.&lt;br /&gt;&lt;br /&gt;One solution is to print a pdf of all the equations, and then use the select tool in preview to copy the equation and then paste it into the word document.&lt;br /&gt;&lt;br /&gt;The advantage in mac os x is that the copy is in vector format, which means that the inserted equation does not behave as an image - becoming pixellated at the worst moments, but rather scales gracefully.&lt;br /&gt;&lt;br /&gt;That's gonna save me some time.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-4318225827326203246?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/4318225827326203246/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/07/mac-os-x-ms-word-and-equations.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/4318225827326203246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/4318225827326203246'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/07/mac-os-x-ms-word-and-equations.html' title='Mac OS X MS Word and Equations'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-7254333324658680617</id><published>2011-07-13T14:59:00.002-04:00</published><updated>2011-07-13T15:01:45.836-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='matplotlib'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>Removing the top and right lines in the axis box in matplotlib</title><content type='html'>From &lt;a href="http://matplotlib.sourceforge.net/examples/axes_grid/simple_axisline3.html"&gt;here&lt;/a&gt;:&lt;br /&gt;&lt;pre&gt;ax.axis["right"].set_visible(False)&lt;br /&gt;ax.axis["top"].set_visible(False)&lt;br /&gt;&lt;/pre&gt;Where ax is an axis instance (you can get it using pylab.axis())&lt;br /&gt;&lt;br /&gt;PS. Those lines are called spines, in case you haven't caught on&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-7254333324658680617?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/7254333324658680617/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/07/removing-top-and-right-lines-in-axis.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/7254333324658680617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/7254333324658680617'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/07/removing-top-and-right-lines-in-axis.html' title='Removing the top and right lines in the axis box in matplotlib'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-5469973281369496924</id><published>2011-07-07T19:19:00.001-04:00</published><updated>2011-07-07T19:21:25.882-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='gotcha'/><title type='text'>Pickling python classes</title><content type='html'>Ok, this is the first thing in Python I have found to be annoying and nonintuitive. When you pickle a class object you need to make sure that the module for the class is explicitly in scope and imported.&lt;br /&gt;&lt;br /&gt;I kept banging my head against this problem and only understood it after looking at &lt;a href="http://stefaanlippens.net/pickleproblem"&gt;this guy's blog&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;When you pickle a class object included in the pickle file is a coded import statement telling the interpreter which module to import to look for the definition of the class. This leads to the following gotcha:&lt;br /&gt;&lt;br /&gt;The following code will define a class, instantiate it and pickle it without problems&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;#File class_a.py&lt;br /&gt;import cPickle&lt;br /&gt;&lt;br /&gt;class A:&lt;br /&gt;  def __init__(self):&lt;br /&gt;    self.x = 22&lt;br /&gt;&lt;br /&gt;if __name__ == "__main__":&lt;br /&gt;  a = A()&lt;br /&gt;  cPickle.dump(a, open('obja.pkl','wb'), protocol=-1)&lt;br /&gt;  print cPickle.dumps(a, protocol=0)&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Notice the stringification of the class : it begins with &lt;pre&gt;i__main__&lt;/pre&gt;&lt;br /&gt;Now, we run the following code to load the object from the pickle:&lt;br /&gt;&lt;pre&gt;import cPickle&lt;br /&gt;m = cPickle.load(open('obja.pkl'))&lt;br /&gt;---------------------------------------------------------------------------&lt;br /&gt;AttributeError                            Traceback (most recent call last)&lt;br /&gt;/Users/kghose/Research/2011/Papers/SpatialIntegration/Python/Sandbox/&lt;ipython-input-3-44efca095696&gt; in &lt;module&gt;()&lt;br /&gt;----&gt; 1 m = cPickle.load(open('obja.pkl'))&lt;br /&gt;&lt;br /&gt;AttributeError: 'FakeModule' object has no attribute 'A'&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Whaaa?&lt;br /&gt;&lt;br /&gt;Now, say we change the original file by explicitly importing our module and instantiating the object as a class from that module (as would happen if our pickling code was in a different file from the class definition file):&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;#File class_a.py&lt;br /&gt;import cPickle&lt;br /&gt;&lt;br /&gt;class A:&lt;br /&gt;  def __init__(self):&lt;br /&gt;    self.x = 22&lt;br /&gt;&lt;br /&gt;if __name__ == "__main__":&lt;br /&gt;  import class_a&lt;br /&gt;  a = class_a.A()&lt;br /&gt;  cPickle.dump(a, open('obja.pkl','wb'), protocol=-1)&lt;br /&gt;  print cPickle.dumps(a, protocol=0)&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Now notice that the serialization begins with &lt;pre&gt;iclass_a&lt;/pre&gt;which is our module name.&lt;br /&gt;&lt;br /&gt;And when we try to load it, we don't get any errors.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-5469973281369496924?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/5469973281369496924/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/07/pickling-python-classes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/5469973281369496924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/5469973281369496924'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/07/pickling-python-classes.html' title='Pickling python classes'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-70339669151105746</id><published>2011-07-01T09:50:00.000-04:00</published><updated>2011-07-01T09:50:46.613-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><title type='text'>Hide the dock icon of a program when it is running</title><content type='html'>Go to the application's bundle (e.g. X11.app) and open the bundle contents. Navigate to Info.plist, open it with a text editor or plist editor. Add or change an item with the key "NSUIElement" and set its value to "1" (type = string). On relaunch of the application, its icon will not appear in the dock.&lt;br /&gt;&lt;br /&gt;This is usefull for apps like X11 which are servers and should be running in the background.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-70339669151105746?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/70339669151105746/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/07/hide-dock-icon-of-program-when-it-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/70339669151105746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/70339669151105746'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/07/hide-dock-icon-of-program-when-it-is.html' title='Hide the dock icon of a program when it is running'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-5141981724057649961</id><published>2011-06-30T18:02:00.001-04:00</published><updated>2011-06-30T18:02:23.054-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='firefox'/><title type='text'>Force FireFox to reload a short cut icon</title><content type='html'>Type in the url of the icon file and load the image.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-5141981724057649961?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/5141981724057649961/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/06/force-firefox-to-reload-short-cut-icon.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/5141981724057649961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/5141981724057649961'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/06/force-firefox-to-reload-short-cut-icon.html' title='Force FireFox to reload a short cut icon'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-5744718055589078925</id><published>2011-06-30T14:08:00.000-04:00</published><updated>2011-06-30T14:08:01.986-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='gotcha'/><title type='text'>utf-8 encoded files in python</title><content type='html'>From this PeP:&lt;br /&gt;&lt;br /&gt;Adding a line that looks like:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;# This Python file uses the following encoding: utf-8&lt;/pre&gt;&lt;br /&gt;Is sufficient to avoid the &lt;br /&gt;&lt;br /&gt;&lt;pre&gt;no encoding declared; see http://www.python.org/peps/pep-0263.html for details&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;error&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-5744718055589078925?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/5744718055589078925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/06/utf-8-encoded-files-in-python.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/5744718055589078925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/5744718055589078925'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/06/utf-8-encoded-files-in-python.html' title='utf-8 encoded files in python'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-6903999754940246771</id><published>2011-06-27T10:18:00.000-04:00</published><updated>2011-06-27T10:18:40.654-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xml'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='gotcha'/><title type='text'>minidom.writexml handling unicode errors</title><content type='html'>&lt;b&gt;Problem:&lt;/b&gt;&lt;br /&gt;Writing xml with unicode characters does not work, even with the encoding set to 'utf-8'. Always results in something like&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;UnicodeEncodeError('ascii', u'kr\xf6se1989', 2, 3, 'ordinal not in range(128)')&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Solution&lt;/b&gt; (from &lt;a href="http://www.gossamer-threads.com/lists/python/python/468549"&gt;here&lt;/a&gt;):&lt;br /&gt;Use the codecs module and manually open the file in utf-8 mode for writing&lt;br /&gt;&lt;br /&gt;&lt;code&gt;import codecs&lt;br /&gt;doc.writexml(codecs.open(fname,'wb','utf-8'), encoding='utf-8')&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-6903999754940246771?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/6903999754940246771/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/06/minidomwritexml-handling-unicode-errors.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/6903999754940246771'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/6903999754940246771'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/06/minidomwritexml-handling-unicode-errors.html' title='minidom.writexml handling unicode errors'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-8030579447801551961</id><published>2011-06-27T09:29:00.003-04:00</published><updated>2011-06-27T09:30:36.440-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='sqlite'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>SQL query binding for a list using Python</title><content type='html'>From &lt;a href="http://stackoverflow.com/questions/283645/python-list-in-sql-query-as-parameter"&gt;here&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;code&gt; l=[1,2,3,4] placeholder= '?' # Works For SQLite.  placeholders= ', '.join(placeholder for dummy in l) #puts in len(l) '?' marks, separated by ', ' query= 'SELECT name FROM students WHERE id IN (%s)' % placeholders cursor.execute(query, l)&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-8030579447801551961?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/8030579447801551961/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/06/sql-query-binding-for-list-using-python.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8030579447801551961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8030579447801551961'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/06/sql-query-binding-for-list-using-python.html' title='SQL query binding for a list using Python'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-1647557707854720657</id><published>2011-06-16T22:29:00.000-04:00</published><updated>2011-06-16T22:29:22.484-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bangla'/><title type='text'>Firefox + Mac OS X + bangla fonts = disaster</title><content type='html'>Please see &lt;a href="https://bugzilla.mozilla.org/show_bug.cgi?id=664773&amp;amp;list_id=508826"&gt;this bugzilla issue&lt;/a&gt;.&lt;br /&gt;In short:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Test any bangla font you install using Mac OS X's fontbook. Do not install any font that shows warnings or errors&lt;/li&gt;&lt;li&gt;The only Bangla font that I found to work with Firefox and not crash it on Mac OS X is at &lt;a href="http://onkur.sourceforge.net/"&gt;onkur&lt;/a&gt;.&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-1647557707854720657?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/1647557707854720657/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/06/firefox-mac-os-x-bangla-fonts-disaster.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/1647557707854720657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/1647557707854720657'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/06/firefox-mac-os-x-bangla-fonts-disaster.html' title='Firefox + Mac OS X + bangla fonts = disaster'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-3933352555709575272</id><published>2011-06-16T21:25:00.000-04:00</published><updated>2011-06-16T21:25:07.966-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bangla'/><title type='text'>Sources for Bangla unicode fonts</title><content type='html'>&lt;ul&gt;&lt;li&gt;&lt;a href="http://salrc.uchicago.edu/resources/fonts/available/bengali/"&gt;slarc uchicago&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.nongnu.org/freebangfont/"&gt;Free bangla fonts&lt;/a&gt; (nongnu)&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-3933352555709575272?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/3933352555709575272/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/06/sources-for-bangla-unicode-fonts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/3933352555709575272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/3933352555709575272'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/06/sources-for-bangla-unicode-fonts.html' title='Sources for Bangla unicode fonts'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-6640237054872352889</id><published>2011-06-14T15:07:00.000-04:00</published><updated>2011-06-14T15:07:36.308-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sqlite'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='gotcha'/><title type='text'>Strange inefficieny of pysqlite over sqlite (and apsw)</title><content type='html'>I've been happily using &lt;a href="http://code.google.com/p/pysqlite/"&gt;pysqlite&lt;/a&gt; to access my sqlite databases from python. Suddenly, I find, however, that there is a query that runs much, much slower in pysqlite than in &lt;a href="http://code.google.com/p/apsw/"&gt;apsw&lt;/a&gt; and the sqlite shell. I've filed a &lt;a href="http://code.google.com/p/pysqlite/issues/detail?id=37"&gt;bug report&lt;/a&gt; but it looks like I'll be switching to apsw until this thing gets resolved.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-6640237054872352889?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/6640237054872352889/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/06/strange-inefficieny-of-pysqlite-over.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/6640237054872352889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/6640237054872352889'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/06/strange-inefficieny-of-pysqlite-over.html' title='Strange inefficieny of pysqlite over sqlite (and apsw)'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-2166381685995884712</id><published>2011-06-11T08:07:00.000-04:00</published><updated>2011-06-11T08:07:04.266-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='reference manager'/><category scheme='http://www.blogger.com/atom/ns#' term='organization'/><title type='text'>Another open source reference manager : Paperpile</title><content type='html'>From a blog post &lt;a href="http://blogs.plos.org/mfenner/2010/12/23/paperpile-an-open-source-reference-manager-for-mac-and-linux/"&gt;here&lt;/a&gt;, I found out about &lt;a href="http://paperpile.com/"&gt;Paperpile&lt;/a&gt;. I downloaded and ran it, but haven't used it, since I use my own, but Paperpile has&amp;nbsp; a nice clean look. Though there is GPL code of Paperpile on &lt;a href="https://github.com/wash/paperpile"&gt;github&lt;/a&gt;, the main website seems to indicate the author has hopes of commercializing (and closing the source) to Paperpile if things look successful.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-2166381685995884712?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/2166381685995884712/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/06/another-open-source-reference-manager.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/2166381685995884712'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/2166381685995884712'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/06/another-open-source-reference-manager.html' title='Another open source reference manager : Paperpile'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total><georss:featurename>United States</georss:featurename><georss:point>39.842286210295775 -77.08007850000001</georss:point><georss:box>13.461036210295774 -138.33969100000002 66.22353621029578 -15.82046600000001</georss:box></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-5976957156185138413</id><published>2011-06-08T10:11:00.001-04:00</published><updated>2011-06-08T10:11:24.645-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mencoder'/><title type='text'>Compress camera video for a windows machine</title><content type='html'>&lt;code&gt;mencoder -ovc lavc -lavcopts vcodec=msmpeg4v2:vpass=1:vbitrate=375000:mbd=2:keyint=132:vqblur=1.0:cmp=2:subcmp=2:dia=2:mv0:last_pred=3 -oac copy -o /dev/null MVI_0052.AVI&lt;br /&gt;mencoder -ovc lavc -lavcopts vcodec=msmpeg4v2:vpass=2:vbitrate=375000:mbd=2:keyint=132:vqblur=1.0:cmp=2:subcmp=2:dia=2:mv0:last_pred=3 -oac copy -o output.avi MVI_0052.AVI&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-5976957156185138413?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/5976957156185138413/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/06/compress-camera-video-for-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/5976957156185138413'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/5976957156185138413'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/06/compress-camera-video-for-windows.html' title='Compress camera video for a windows machine'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-7780414014032819332</id><published>2011-06-07T14:03:00.001-04:00</published><updated>2011-06-07T14:03:42.260-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='microsoft word'/><title type='text'>Python and word documents</title><content type='html'>From &lt;a href="http://stackoverflow.com/questions/125222/extracting-text-from-ms-word-files-in-python"&gt;here&lt;/a&gt;, using only standard python modules:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;import zipfile, re&lt;br /&gt;&lt;br /&gt;docx = zipfile.ZipFile('/path/to/file/mydocument.docx')&lt;br /&gt;content = docx.read('word/document.xml')&lt;br /&gt;cleaned = re.sub('&amp;lt;(.|\n)*?&amp;gt;','',content)&lt;br /&gt;print cleaned&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;But, if you want to mess around in more detail in the document, then we can use the &lt;a href="https://github.com/mikemaccana/python-docx"&gt;python-docx&lt;/a&gt; module.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-7780414014032819332?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/7780414014032819332/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/06/python-on-word-documents.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/7780414014032819332'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/7780414014032819332'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/06/python-on-word-documents.html' title='Python and word documents'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-5230750514357121124</id><published>2011-06-06T12:28:00.000-04:00</published><updated>2011-06-06T12:28:53.930-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>discount bug</title><content type='html'>import discount&lt;br /&gt;a = discount.Markdown('')&lt;br /&gt;a.get_html_content()&lt;br /&gt;--&amp;gt; Yields TypeError&lt;br /&gt;TypeError: 'NoneType' object is unsubscriptable&lt;br /&gt;Should return a blank.&lt;br /&gt;&lt;br /&gt;Found that markdown or markdown2 give comparable performance, so now no longer using discount.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-5230750514357121124?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/5230750514357121124/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/06/discount-bug.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/5230750514357121124'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/5230750514357121124'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/06/discount-bug.html' title='discount bug'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-7552000227228998121</id><published>2011-06-03T13:42:00.000-04:00</published><updated>2011-06-03T13:42:20.654-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sqlite'/><title type='text'>Using adminer on Mac OS X</title><content type='html'>adminer is a nice php based sqlite manager. I prefer the firefox plugin "sqlite manager" but it currently has a strange issue with FF5 that basically makes it unworkable, so I was looking for an alternative to tide me over.&lt;br /&gt;&lt;br /&gt;I really don't want apache running all the time on my computer and don't want people browsing to my computer, so what I needed to do was:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Download the &lt;a href="http://www.adminer.org/en/#download"&gt;adminer php script&lt;/a&gt; into /Library/WebServer/Documents/&lt;/li&gt;&lt;li&gt;Change /etc/apache2/httpd.conf to allow running of php scripts (uncomment the line that begins: LoadModule php5_module&lt;/li&gt;&lt;li&gt;Start the apache server: sudo apachectl -k start&lt;/li&gt;&lt;li&gt;Operate the script by going to localhost&lt;/li&gt;&lt;li&gt;Stop the server: sudo apachectl -k stop &amp;nbsp; &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-7552000227228998121?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/7552000227228998121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/06/using-adminer-on-mac-os-x.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/7552000227228998121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/7552000227228998121'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/06/using-adminer-on-mac-os-x.html' title='Using adminer on Mac OS X'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-6588530569009447194</id><published>2011-06-03T10:32:00.000-04:00</published><updated>2011-06-03T10:32:07.079-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>Bottlepy server exits during sleep (Mac OS X)</title><content type='html'>&lt;b&gt;Problem:&lt;/b&gt; Bottlepy server exits when computer comes out of sleep&lt;br /&gt;&lt;b&gt;Solution:&lt;/b&gt; Set "reloader" option to False.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-6588530569009447194?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/6588530569009447194/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/06/bottlepy-server-exits-during-sleep-mac.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/6588530569009447194'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/6588530569009447194'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/06/bottlepy-server-exits-during-sleep-mac.html' title='Bottlepy server exits during sleep (Mac OS X)'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-1437792681703762005</id><published>2011-05-31T12:28:00.001-04:00</published><updated>2011-05-31T12:29:14.678-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='sqlite'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='gotcha'/><title type='text'>Text search, sqlite bindings and Python</title><content type='html'>&lt;code&gt;c.execute("SELECT * FROM entries WHERE (title LIKE ? OR body LIKE ?) order by date desc", ("%%%s%%" %text, "%%%s%%" %text))&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Notes&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Putting %?% does not work&lt;/li&gt;&lt;li&gt;"%?%" does not work&lt;/li&gt;&lt;li&gt;Double percent sign (%%) due to python string substitution rules &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-1437792681703762005?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/1437792681703762005/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/05/text-search-sqlite-bindings-and-python.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/1437792681703762005'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/1437792681703762005'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/05/text-search-sqlite-bindings-and-python.html' title='Text search, sqlite bindings and Python'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-1415562261776250067</id><published>2011-05-28T16:50:00.001-04:00</published><updated>2011-07-14T12:44:56.616-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bottle'/><category scheme='http://www.blogger.com/atom/ns#' term='software'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='gui'/><title type='text'>Standalone browser based app</title><content type='html'>Perhaps my long search for a convenient way to code database frontends that work locally ("desktop app") but leverage the power of a browser as a GUI has come to a successful point. This point involves:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Python (Naturally)&lt;/li&gt;&lt;li&gt;&lt;a href="http://bottlepy.org/docs/dev/#"&gt;Bottle&lt;/a&gt; - a "microframework"&lt;/li&gt;&lt;li&gt;&lt;a href="http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html#py2applet"&gt;py2app&lt;/a&gt; - py2exe for windows&lt;/li&gt;&lt;/ol&gt;The only tricks making Bottle and&amp;nbsp; py2app work well together were&lt;br /&gt;&lt;ol&gt;&lt;li&gt;You need to explicitly list the template files when calling py2app, otherwise they don't get included in Resources&lt;/li&gt;&lt;li&gt;I had to add a url route (which I called /quit) that called os._exit() to shut down the server (otherwise done using CTRL-C). just exit() and even SIGINT did not work. This is a bit extreme, but I think safe in this usage.&lt;/li&gt;&lt;/ol&gt;I was happy to see that the created app used the Resources directory as the working directory and the packager put all the files in this directory making things very transparent and worry free.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-1415562261776250067?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/1415562261776250067/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/05/standalone-browser-based-app.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/1415562261776250067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/1415562261776250067'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/05/standalone-browser-based-app.html' title='Standalone browser based app'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-6432554191238036504</id><published>2011-05-28T10:10:00.000-04:00</published><updated>2011-05-28T10:10:23.967-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='software'/><category scheme='http://www.blogger.com/atom/ns#' term='html'/><title type='text'>GET or POST?</title><content type='html'>From the&lt;a href="http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13.1"&gt; HTML standards&lt;/a&gt;. &lt;br /&gt;Use POST when the operation has lasting changes on the world, like a database modification.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-6432554191238036504?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/6432554191238036504/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/05/get-or-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/6432554191238036504'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/6432554191238036504'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/05/get-or-post.html' title='GET or POST?'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-3343913122566127150</id><published>2011-05-27T18:06:00.000-04:00</published><updated>2011-05-27T18:06:25.749-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='organization'/><category scheme='http://www.blogger.com/atom/ns#' term='svn'/><title type='text'>Setting up svn repo on local machine</title><content type='html'>&lt;b&gt;&lt;code&gt;svnadmin create /path/to/repository&lt;/code&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;code&gt;Point subclipse to that repo and make a new folder &lt;/code&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-3343913122566127150?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/3343913122566127150/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/05/setting-up-svn-repo-on-local-machine.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/3343913122566127150'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/3343913122566127150'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/05/setting-up-svn-repo-on-local-machine.html' title='Setting up svn repo on local machine'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-376806861573231721</id><published>2011-05-15T21:12:00.000-04:00</published><updated>2011-05-15T21:12:32.242-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='art'/><title type='text'>3d wall decor</title><content type='html'>So, there are artists who paint patterns on walls that turn into a recognizable figure if you are standing at the right perspective (e.g. &lt;a href="http://www.moillusions.com/2006/03/3d-painted-rooms-illusion.html"&gt;here&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;One easy way to generate these patterns is to set up a projector with a slide of the pattern that you want projecting from the vantage point you want, and then paint according to the projected pattern.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-376806861573231721?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/376806861573231721/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/05/3d-wall-decor.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/376806861573231721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/376806861573231721'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/05/3d-wall-decor.html' title='3d wall decor'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-7629170184172687290</id><published>2011-05-01T10:43:00.000-04:00</published><updated>2011-05-01T10:43:26.967-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='photography'/><category scheme='http://www.blogger.com/atom/ns#' term='D40 review'/><title type='text'>Nikon D40 (almost) 2 years on</title><content type='html'>The D40 is an awesome camera, especially at the price I bought it ($375 with kit lens - but refurbished). It's years out of production now and has been superseded, but it does fine for my casual needs. The only two gripes I have about it, in order of importance are:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Auto white balance is sucky for incandescent lighting. So I always switch from auto to preset when I shoot indoors.&lt;/li&gt;&lt;li&gt;Only one func button makes it awkward. I have to pick between select ISO and select WB for that button. I think select WB wins out, but it would be nice to have dedicated buttons for that.&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-7629170184172687290?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/7629170184172687290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/05/nikon-d40-almost-2-years-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/7629170184172687290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/7629170184172687290'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/05/nikon-d40-almost-2-years-on.html' title='Nikon D40 (almost) 2 years on'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-8396411078192097876</id><published>2011-05-01T10:39:00.000-04:00</published><updated>2011-05-01T10:39:15.900-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='photography'/><title type='text'>Nikon 35mm f/1.8 AF-S One year on</title><content type='html'>This lens is very, very good. I had read on boards from people who would never take this lens off the camera. I find that most of my shooting is done with this lens. The kit lens that came with the D40 (The Nikon 18-55 mm) is very good, but the 35mm's 1.8 aperture is great.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-8396411078192097876?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/8396411078192097876/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/05/nikon-35mm-f18-af-s-one-year-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8396411078192097876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8396411078192097876'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/05/nikon-35mm-f18-af-s-one-year-on.html' title='Nikon 35mm f/1.8 AF-S One year on'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-2305331140970238861</id><published>2011-04-18T22:36:00.001-04:00</published><updated>2011-04-19T11:14:48.454-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>Size of objects in Python</title><content type='html'>&lt;a href="http://docs.python.org/library/struct.html"&gt;struct.calcsize(fmt)&lt;/a&gt; - only gives size of fixed data types given by fmt&lt;br /&gt;&lt;a href="http://docs.python.org/dev/library/sys.html"&gt;sys.getsizeof(obj)&lt;/a&gt; - (added in Python 2.7) gives the size in bytes of builtin types, but not the actual used memory&lt;br /&gt;&lt;a href="http://code.google.com/p/pympler/"&gt;pympler.asizeof(obj)&lt;/a&gt; - gives the actual memory the object uses&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-2305331140970238861?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/2305331140970238861/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/04/size-of-objects-in-python.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/2305331140970238861'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/2305331140970238861'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/04/size-of-objects-in-python.html' title='Size of objects in Python'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-1986310473895264359</id><published>2011-04-12T13:26:00.000-04:00</published><updated>2011-04-12T13:26:22.297-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><title type='text'>Python + macbook sms (sudden motion sensor)</title><content type='html'>Install &lt;a href="http://pypi.python.org/pypi/PyAppleSMS/1.0"&gt;PyAppleSMS&lt;/a&gt;. Use it as&lt;br /&gt;&lt;br /&gt;&lt;tt&gt;import applesms&lt;br /&gt;(x,y,z) = applesms.coords()&lt;/tt&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-1986310473895264359?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/1986310473895264359/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/04/python-macbook-sms-sudden-motion-sensor.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/1986310473895264359'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/1986310473895264359'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/04/python-macbook-sms-sudden-motion-sensor.html' title='Python + macbook sms (sudden motion sensor)'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-2684627054185392182</id><published>2011-04-11T12:45:00.001-04:00</published><updated>2011-04-11T12:45:37.351-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='firefox'/><category scheme='http://www.blogger.com/atom/ns#' term='organization'/><title type='text'>Multiple logins to the same site</title><content type='html'>&lt;a href="http://br.mozdev.org/multifox/"&gt;Multifox&lt;/a&gt; is a great firefox add-on that allows you to switch between multiple accounts on the same site (Say you have two facebook accounts and you need to switch between them and are tired of logging out and then back in again). It's user interface is simple and effective.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-2684627054185392182?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/2684627054185392182/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/04/multiple-logins-to-same-site.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/2684627054185392182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/2684627054185392182'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/04/multiple-logins-to-same-site.html' title='Multiple logins to the same site'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-8365855146669345525</id><published>2011-04-11T11:53:00.000-04:00</published><updated>2011-04-11T11:53:26.847-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='eclipse'/><title type='text'>Diff files in eclipse</title><content type='html'>From &lt;a href="http://heikobehrens.net/2008/12/02/use-eclipse-as-diff-tool/"&gt;here&lt;/a&gt;:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Add the two (or more) files you want to diff to your workspace.&lt;/li&gt;&lt;li&gt;Select all the files you want to diff.&lt;/li&gt;&lt;li&gt;Right click on one of the selected files and chose "Compare with -&amp;gt; each other"&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-8365855146669345525?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/8365855146669345525/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/04/diff-files-in-eclipse.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8365855146669345525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8365855146669345525'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/04/diff-files-in-eclipse.html' title='Diff files in eclipse'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-9026001174300926125</id><published>2011-04-05T18:27:00.000-04:00</published><updated>2011-04-05T18:27:37.143-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='commandline'/><category scheme='http://www.blogger.com/atom/ns#' term='software'/><title type='text'>bjobs</title><content type='html'>Whenever I submit a job to the &lt;a href="http://en.wikipedia.org/wiki/Platform_LSF"&gt;computing cluster&lt;/a&gt; I have to smile and wonder if the folks at Platform Computing planned their command naming very carefully so that one of their commands would endup as "&lt;a href="http://www.vital-it.ch/support/LSF/command_reference/bjobs.cmdref.html"&gt;bjobs&lt;/a&gt;".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-9026001174300926125?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/9026001174300926125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/04/bjobs.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/9026001174300926125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/9026001174300926125'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/04/bjobs.html' title='bjobs'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-5264496877564321206</id><published>2011-04-05T17:47:00.000-04:00</published><updated>2011-04-05T17:47:56.020-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='thunderbird'/><title type='text'>Thunderbird bug</title><content type='html'>If new mail comes in and goes through a filter and into a folder, if you are viewing that folder, the new mail does not appear until you view a new folder and then go back to the old folder.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-5264496877564321206?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/5264496877564321206/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/04/thunderbird-bug.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/5264496877564321206'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/5264496877564321206'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/04/thunderbird-bug.html' title='Thunderbird bug'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-7262379878605537845</id><published>2011-04-03T14:42:00.001-04:00</published><updated>2011-04-05T14:09:43.552-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><title type='text'>Writing to NTFS partitions from Mac OS X 10.5</title><content type='html'>Use &lt;a href="http://www.apple.com/downloads/macosx/system_disk_utilities/ntfs3g.html"&gt;NTFS-3G&lt;/a&gt;. It did something odd to my Finder, but after I restarted the computer as recommended things went back to normal, though there was a longer than usual start-up time.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-7262379878605537845?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/7262379878605537845/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/04/writing-to-ntfs-partitions-from-mac-os.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/7262379878605537845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/7262379878605537845'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/04/writing-to-ntfs-partitions-from-mac-os.html' title='Writing to NTFS partitions from Mac OS X 10.5'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-1168802846483634399</id><published>2011-04-03T14:32:00.000-04:00</published><updated>2011-04-03T14:32:33.582-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>Install multiprocessing module for Python 2.5</title><content type='html'>The great multiprocessing module was included in the Python 2.6 distribution. If you need to use it on a box with Python 2.5 with no root access then do this:&lt;br /&gt;&lt;br /&gt;From &lt;a href="http://pypi.python.org/pypi/multiprocessing/"&gt;here&lt;/a&gt; download the package. And then install in user space by doing&lt;br /&gt;&lt;br /&gt;python setup.py install --home=~&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-1168802846483634399?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/1168802846483634399/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/04/install-multiprocessing-module-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/1168802846483634399'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/1168802846483634399'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/04/install-multiprocessing-module-for.html' title='Install multiprocessing module for Python 2.5'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-1167279918214189259</id><published>2011-03-30T12:35:00.001-04:00</published><updated>2011-03-30T12:35:17.739-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='the price of milk'/><title type='text'>Medical costs in Malden/medford area</title><content type='html'>chest x-ray - $33&lt;br /&gt;routine mammogram - $100 ($10 for x-ray, rest for diagnosis)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-1167279918214189259?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/1167279918214189259/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/03/medical-costs-on-maldenmedford-area.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/1167279918214189259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/1167279918214189259'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/03/medical-costs-on-maldenmedford-area.html' title='Medical costs in Malden/medford area'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-6014586943084118327</id><published>2011-03-29T16:25:00.000-04:00</published><updated>2011-03-29T16:25:07.202-04:00</updated><title type='text'>Installing python in user space</title><content type='html'>wget http://www.python.org/ftp/python/2.6.6/Python-2.6.6.tar.bz2&lt;br /&gt;cd Python-2.6.6/&lt;br /&gt;./configure --prefix=/home/kg46/local&lt;br /&gt;make&lt;br /&gt;make install&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;git clone git://github.com/numpy/numpy.git numpy&lt;br /&gt;~/local/bin/python setup.py install --prefix=/home/kg46/local/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-6014586943084118327?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/6014586943084118327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/03/installing-python-in-user-space.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/6014586943084118327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/6014586943084118327'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/03/installing-python-in-user-space.html' title='Installing python in user space'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-3237822616929214212</id><published>2011-03-29T13:59:00.000-04:00</published><updated>2011-03-29T13:59:39.254-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='matplotlib'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>Installing matplotlib in user space</title><content type='html'>&lt;h3&gt;Problem:&lt;/h3&gt;Need to install matplotlib in user space, because I'm going to use a HPC cluster and their version of everything is just a little out of date.&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Solution:&lt;/h3&gt;&lt;tt&gt;svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib matplotlib&lt;br /&gt;cd matplotlib&lt;br /&gt;python setup.py install &lt;a href="http://docs.python.org/install/index.html"&gt;--home=~&lt;/a&gt;&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Now add to .bash_login the lines&lt;br /&gt;&lt;tt&gt;PYTHONPATH='/home/kg46/lib/python/' &lt;br /&gt;export PYTHONPATH &lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;And python is picking up the svn version&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-3237822616929214212?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/3237822616929214212/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/03/installing-matplotlib-in-user-space.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/3237822616929214212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/3237822616929214212'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/03/installing-matplotlib-in-user-space.html' title='Installing matplotlib in user space'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-64913623096187330</id><published>2011-03-29T11:30:00.001-04:00</published><updated>2011-03-29T11:31:23.708-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><title type='text'>Spotlight : disabling and reenabling</title><content type='html'>&lt;h3&gt;Problem:&lt;/h3&gt;I completely screwed up spotlight by killing the mds process AND deleting some spotlight files&lt;br /&gt;&lt;h3&gt;Solution:&lt;/h3&gt;From &lt;a href="http://tech.karbassi.com/2009/05/12/how-to-fully-disable-spotlight-in-leopard/"&gt;here&lt;/a&gt;: The following commands can be used to properly enable and disable spotlight&lt;br /&gt;&lt;br /&gt;Disable:&lt;br /&gt;&lt;tt&gt;sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist&lt;br /&gt;sudo launchctl unload -w /System/Library/LaunchAgents/com.apple.Spotlight.plist&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Enable:&lt;br /&gt;&lt;tt&gt;sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist&lt;br /&gt;sudo launchctl load -w /System/Library/LaunchAgents/com.apple.Spotlight.plist&lt;/tt&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-64913623096187330?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/64913623096187330/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/03/spotlight-disabling-and-reenabling.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/64913623096187330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/64913623096187330'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/03/spotlight-disabling-and-reenabling.html' title='Spotlight : disabling and reenabling'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-8730289619107891902</id><published>2011-03-26T12:42:00.002-04:00</published><updated>2011-03-30T23:33:18.459-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bangla'/><title type='text'>Important Bangla unicode rules</title><content type='html'>&lt;ol&gt;&lt;li&gt;Consonant conjucts are made using hashanta 0x09cd&lt;/li&gt;&lt;li&gt;Hashanta is generated using hashanta + zero width non joiner 0x09cd + 0x200c&lt;/li&gt;&lt;li&gt;The zwnj is only needed if the next letter would form a conjunct. Otherwise, 0x09cd is understood to be a hashanta &lt;/li&gt;&lt;li&gt;All indic scripts use the devnagari danda and double danda 0x0964,0x0965&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;ol&gt;&lt;/ol&gt;&lt;span class="tl"&gt;&lt;/span&gt;&lt;br /&gt;&lt;ol&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-8730289619107891902?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/8730289619107891902/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/03/important-bangla-unicode-rules.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8730289619107891902'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8730289619107891902'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/03/important-bangla-unicode-rules.html' title='Important Bangla unicode rules'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-1955266064748632248</id><published>2011-03-24T23:36:00.001-04:00</published><updated>2011-03-24T23:58:35.137-04:00</updated><title type='text'>Battlefield Bad Company 2 resources</title><content type='html'>&lt;ol&gt;&lt;li&gt;&lt;a href="http://www.mlwgames.com/badcompany2/pins-insignias"&gt;Rankings Guide and Calculator&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://bfbc2.statsverse.com/stats/"&gt;Statistics&lt;/a&gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.joinaclan.com/2010/03/six-basic-rules-of-battlefield-bad-company-2/"&gt;Play guide&lt;/a&gt; &lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-1955266064748632248?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/1955266064748632248/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/03/battlefield-bad-company-2-resources.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/1955266064748632248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/1955266064748632248'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/03/battlefield-bad-company-2-resources.html' title='Battlefield Bad Company 2 resources'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-4234424692301576477</id><published>2011-03-21T12:00:00.002-04:00</published><updated>2011-03-26T18:09:15.999-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='software'/><title type='text'>Input Method for Bengali (Bangla) on Mac OS X</title><content type='html'>&lt;ol&gt;&lt;li&gt;Wanted to have an IM for Bangla on the Mac&lt;/li&gt;&lt;li&gt;Didn't find any online&lt;/li&gt;&lt;li&gt;Found this &lt;a href="http://docs.info.apple.com/article.html?path=Mac/10.5/en/8952.html"&gt;tutorial&lt;/a&gt; from Apple on how to make an IM&lt;/li&gt;&lt;li&gt;Only problem is that the system does not seem to support the generation of conjunctions of vowel modifiers.&lt;/li&gt;&lt;li&gt;This means that each and every conjunction and consonant+vowel combination must be present in the file:&lt;br /&gt;i.e. if we want to write কৌ (kou) we have to set kou = কৌ in the file: we can't build a rule. So this file must have all the possible combinations, like কু&amp;nbsp; কূ etc. etc.&lt;/li&gt;&lt;li&gt;This is tedious to do by hand. I'm working on a small script to do these mix-n-matches and print out a input method file based on the rules I developed for &lt;a href="http://lekho.sourceforge.net/"&gt;lekho&lt;/a&gt; (see I knew that effort would come in useful some day!)&lt;/li&gt;&lt;li&gt;Jamil Ahmed has put up a &lt;a href="https://addons.mozilla.org/en-us/firefox/addon/bengali-bangladesh-dictionary/"&gt;bangla dictionary&lt;/a&gt; for Firefox.&lt;/li&gt;&lt;li&gt;Input keystrokes are case insensitive.&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-4234424692301576477?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/4234424692301576477/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/03/input-method-for-bengali-bangla-on-mac.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/4234424692301576477'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/4234424692301576477'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/03/input-method-for-bengali-bangla-on-mac.html' title='Input Method for Bengali (Bangla) on Mac OS X'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-2814401683857252774</id><published>2011-03-21T11:32:00.000-04:00</published><updated>2011-03-21T11:32:48.008-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='organization'/><title type='text'>Google can block searches for you</title><content type='html'>&lt;ol&gt;&lt;li&gt;Do a search&lt;/li&gt;&lt;li&gt;Click on the link to go to some hit (This must be done first)&lt;/li&gt;&lt;li&gt;Hit back on the browser&lt;/li&gt;&lt;li&gt;The relevant hit now has a "Block" link below it&lt;/li&gt;&lt;li&gt;Click it if you want to block search hits from that site&lt;/li&gt;&lt;/ol&gt;I was initially looking for the "Block" link and didn't find it. It is not so well advertized that you have for first visit the site, before you can block it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-2814401683857252774?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/2814401683857252774/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/03/google-can-block-searches-for-you.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/2814401683857252774'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/2814401683857252774'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/03/google-can-block-searches-for-you.html' title='Google can block searches for you'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-8487986946568367805</id><published>2011-03-18T13:12:00.000-04:00</published><updated>2011-03-18T13:12:28.705-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mac-gripe'/><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><title type='text'>Time Machine and fsck_hfs (Mac OS X 10.5.x)</title><content type='html'>Problem:You start a backup and Time Machine sits for ever in the "preparing backup" phase. It seems that fsck_hfs is suddenly doing a lot of work.&lt;br /&gt;Solution: Click "Stop backing up" and then restart the backup&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-8487986946568367805?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/8487986946568367805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/03/time-machine-and-fsckhfs-mac-os-x-105x.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8487986946568367805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8487986946568367805'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/03/time-machine-and-fsckhfs-mac-os-x-105x.html' title='Time Machine and fsck_hfs (Mac OS X 10.5.x)'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-4597194757548663575</id><published>2011-03-18T11:48:00.001-04:00</published><updated>2011-03-18T12:07:33.848-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='organization'/><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><title type='text'>Mac OS X: Sparse Bundles and backups</title><content type='html'>&lt;ol&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Sparse_image"&gt;Sparse bundles&lt;/a&gt;, like read/write disk images, can be encrypted&lt;/li&gt;&lt;li&gt;Create a sparse bundle through the disk utility&lt;/li&gt;&lt;li&gt;The sparse bundle's size on disk corresponds to its content size (which I like, but you may not like that it gives away some information about its insides)&lt;/li&gt;&lt;li&gt;The change password function of Disk Utility (Images-&amp;gt;Change Password) does not work through the GUI (the sparse bundle is greyed out and can not be selected). Use the command line instead:&lt;br /&gt;&lt;tt&gt;hdiutil chpass /path/to/Encrypted.sparsebundle/&lt;/tt&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;The sparse bundle is supposed to be &lt;a href="http://en.wikipedia.org/wiki/Sparse_image"&gt;easier&lt;/a&gt; on Time Machine and other backups, because it is not one monolithic structure.&lt;/li&gt;&lt;li&gt;Resizing the sparse bundle needs to also be done through the command line (GUI greyed out) and is done using&lt;br /&gt;&lt;tt&gt;hdiutil resize -size 1.5g /path/to/bundle&lt;/tt&gt;&lt;br /&gt;Where 1.5g is the new size. It will ask you for the password.&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-4597194757548663575?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/4597194757548663575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/03/mac-os-x-sparse-bundles-and-backups.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/4597194757548663575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/4597194757548663575'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/03/mac-os-x-sparse-bundles-and-backups.html' title='Mac OS X: Sparse Bundles and backups'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-6091650516144391372</id><published>2011-03-08T11:28:00.002-05:00</published><updated>2011-03-08T12:18:25.694-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ruby on rails'/><category scheme='http://www.blogger.com/atom/ns#' term='gotcha'/><title type='text'>Rubyforge repository public key (from Ben)</title><content type='html'>&lt;a href="http://www.blogger.com/profile/13742115150060918762"&gt;Ben&lt;/a&gt; writes:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;div&gt;&amp;nbsp;I don't  know if you use rubyforge much anymore, but I found that the reason for  this [he could not commit or update his code repository on rubyforge] was because they suddenly started requiring a public key and  password authentication is now disabled.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.ruby-forum.com/topic/1205279"&gt;http://www.ruby-forum.com/topic/1205279&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Thought  I'd give you a heads up so you don't spend the time trying to  troubleshoot on your end. &amp;nbsp;Maybe you can write a blog entry about it.  &amp;nbsp;It sort of annoys me that they didn't at least notify us by email that  they were changing their login setup.&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;Blog entry plagiarized as requested.&lt;br /&gt;&lt;br /&gt;Also see http://rubyforge.org/docman/view.php/5/460/faq.html#scm &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-6091650516144391372?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/6091650516144391372/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/03/rubyforge-repository-public-key-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/6091650516144391372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/6091650516144391372'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/03/rubyforge-repository-public-key-from.html' title='Rubyforge repository public key (from Ben)'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-7104991985115520597</id><published>2011-03-04T07:17:00.000-05:00</published><updated>2011-03-04T07:17:42.744-05:00</updated><title type='text'>Win XP: multiple time zones in system tray</title><content type='html'>&lt;ol&gt;&lt;li&gt;Use &lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=07fb0bd8-f390-458d-a629-6f0258ac7cdf&amp;amp;displaylang=en#Instructions"&gt;microsoft time zones&lt;/a&gt; application.&lt;/li&gt;&lt;li&gt;&amp;nbsp;&lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=262D25E3-F589-4842-8157-034D1E7CF3A3&amp;amp;displaylang=en"&gt;Install&lt;/a&gt; the .NET framework v1.1 (regardless of what other version you already have installed)&lt;/li&gt;&lt;/ol&gt;From &lt;a href="http://techie-buzz.com/softwares/display-multiple-time-zones-in-the-xp-system-tray.html"&gt;here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-7104991985115520597?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/7104991985115520597/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/03/win-xp-multiple-time-zones-in-system.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/7104991985115520597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/7104991985115520597'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/03/win-xp-multiple-time-zones-in-system.html' title='Win XP: multiple time zones in system tray'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-1214824379152748488</id><published>2011-02-13T10:52:00.000-05:00</published><updated>2011-02-13T10:52:24.009-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='family'/><category scheme='http://www.blogger.com/atom/ns#' term='organization'/><title type='text'>Genealogy software: GRAMPS</title><content type='html'>&lt;ol&gt;&lt;li&gt;&lt;a href="http://gramps-project.org/"&gt;GRAMPS&lt;/a&gt; is a nice, open source (GPLd) program written in python that allows you to build up a database of family relationships, from which you can make genealogy trees&lt;/li&gt;&lt;li&gt;GRAMPS runs on mac os, and they say it should run on windows and linux too&lt;/li&gt;&lt;li&gt;It is very intuitive and easy to use&lt;/li&gt;&lt;li&gt;I miss the ability to see descendant family trees with siblings etc (&lt;a href="http://www.novicki.org/images/tree.gif"&gt;like this&lt;/a&gt;), but perhaps there is a trick to do that.&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-1214824379152748488?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/1214824379152748488/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/02/genealogy-software-gramps.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/1214824379152748488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/1214824379152748488'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/02/genealogy-software-gramps.html' title='Genealogy software: GRAMPS'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-6679750997369750096</id><published>2011-02-03T11:49:00.000-05:00</published><updated>2011-02-03T11:49:27.187-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gotcha'/><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><title type='text'>Mac OS X finder not displaying thumbnails properly</title><content type='html'>&lt;b&gt;Problem:&lt;/b&gt; Mac OS X Finder doesn't show the little thumbnails properly (where it used to before). For example, it will show thumbnails for .txt or .html files, but will only show a generic JPEG thumbnail for .jpg files&lt;br /&gt;&lt;b&gt;Solution:&lt;/b&gt; (From &lt;a href="http://www.thexlab.com/faqs/finder.html"&gt;here&lt;/a&gt;) Go to (your home) &amp;gt; Library &amp;gt; Preferences folder, delete the &lt;tt&gt;com.apple.finder.plist&lt;/tt&gt; file and the &lt;tt&gt;com.apple.sidebarlists.plist&lt;/tt&gt; file if it exists, and then restart Finder from the force quit menu.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-6679750997369750096?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/6679750997369750096/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2011/02/mac-os-x-finder-not-displaying.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/6679750997369750096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/6679750997369750096'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2011/02/mac-os-x-finder-not-displaying.html' title='Mac OS X finder not displaying thumbnails properly'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-8083464202033837277</id><published>2010-12-11T17:05:00.000-05:00</published><updated>2010-12-11T17:05:31.856-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='domestic'/><title type='text'>Cleaning a fancy, metal candle holder</title><content type='html'>&lt;ul&gt;&lt;li&gt;Candle wax softens and melts below the boiling point of water&lt;/li&gt;&lt;li&gt;Heat up water in a kettle, heat a cup of water in a cup, or if your kitchen water is properly hot, use the kitchen faucet&lt;/li&gt;&lt;li&gt;Using gloves to manipulate the holder flush the holder with boiling water&lt;/li&gt;&lt;li&gt;Use a spoon (preferably plastic) to scrape away the softening wax&lt;/li&gt;&lt;li&gt;Run the faucet into hard to get at nooks and crannies&lt;/li&gt;&lt;li&gt;This will do less damage to the holder than scraping it with a hard object like a knife or scissor&amp;nbsp; &lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-8083464202033837277?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/8083464202033837277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2010/12/cleaning-fancy-metal-candle-holder.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8083464202033837277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8083464202033837277'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2010/12/cleaning-fancy-metal-candle-holder.html' title='Cleaning a fancy, metal candle holder'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-3882483599629588872</id><published>2010-10-26T14:16:00.003-04:00</published><updated>2011-05-26T06:31:21.636-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='gui'/><category scheme='http://www.blogger.com/atom/ns#' term='browser'/><title type='text'>Using a web browser as a GUI for Python programs</title><content type='html'>Resources:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://bottlepy.org/docs/dev/"&gt;Bottle&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://flask.pocoo.org/"&gt;Flask&lt;/a&gt;&amp;nbsp; &lt;/li&gt;&lt;li&gt;&lt;a href="http://pyjs.org/"&gt;PyJamas&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://dabodev.com/"&gt;Dabo&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;References:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://stackoverflow.com/questions/2924231/python-sqlite-program-write-as-browser-app-or-desktop-app"&gt;Browser app or desktop app&lt;/a&gt;? &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.aclevername.com/articles/python-webgui/"&gt;Python webgui&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-3882483599629588872?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/3882483599629588872/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2010/10/using-web-browser-as-gui-for-python.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/3882483599629588872'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/3882483599629588872'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2010/10/using-web-browser-as-gui-for-python.html' title='Using a web browser as a GUI for Python programs'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-4320922632745445482</id><published>2010-10-14T14:00:00.000-04:00</published><updated>2010-10-14T14:00:30.094-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='commandline'/><category scheme='http://www.blogger.com/atom/ns#' term='software'/><title type='text'>Eddie</title><content type='html'>"Eddie is a programmers editor for MacOSX and Gnome Linux.      Inspired by the Macintosh Programmers Workshop, Eddie brings some of it's powerful features      into a modern lightweight and capable programmer's editor.      Eddie is ideal for C/C++ development using makefiles and shell tools but can also      be used with XCode projects. The Worksheet      in Eddie is a full-featured shell that combines the power of bash and the ease of      editing in a normal text window-like mode.      Eddie is equally capable at editing HTML, JavaScript, Python, Ruby, Lua and many other languages.      &lt;br /&gt;Originally written for BeOS, it is currently actively developed for MacOSX and Gnome Linux."&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.el34.com/index.html"&gt;Homepage &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-4320922632745445482?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/4320922632745445482/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2010/10/eddie.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/4320922632745445482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/4320922632745445482'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2010/10/eddie.html' title='Eddie'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-8417658134579722177</id><published>2010-10-01T09:48:00.001-04:00</published><updated>2010-10-01T09:50:06.062-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='microsoft word'/><title type='text'>Split screen in word</title><content type='html'>&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_X_bpyPGNIdU/TKXm8CJ2vxI/AAAAAAAAAQA/LpkGV7P2gto/s1600/Picture+3.png" style="margin-left: auto; margin-right: auto;" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Use the splitter tool located on the right, just above the scroll bar&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_X_bpyPGNIdU/TKXm8CJ2vxI/AAAAAAAAAQA/LpkGV7P2gto/s1600/Picture+3.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_X_bpyPGNIdU/TKXmNBa7aMI/AAAAAAAAAP4/_kJKFl_8koc/s1600/Picture+3.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;/div&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_X_bpyPGNIdU/TKXmNR03xHI/AAAAAAAAAP8/yniqMdFjeuI/s1600/Picture+4.png" style="margin-left: auto; margin-right: auto;" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Drag the "splitter" down to where you want it&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_X_bpyPGNIdU/TKXmNR03xHI/AAAAAAAAAP8/yniqMdFjeuI/s1600/Picture+4.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-8417658134579722177?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/8417658134579722177/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2010/10/split-screen-in-word.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8417658134579722177'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/8417658134579722177'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2010/10/split-screen-in-word.html' title='Split screen in word'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_X_bpyPGNIdU/TKXm8CJ2vxI/AAAAAAAAAQA/LpkGV7P2gto/s72-c/Picture+3.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-4250591777504736414</id><published>2010-09-29T22:42:00.000-04:00</published><updated>2010-09-29T22:42:55.727-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='microsoft word'/><title type='text'>Remove horizontal line from Word</title><content type='html'>Problem: There are horizontal lines in the word document that can't be selected, only moved.&lt;br /&gt;Solution: Set the cursor above the line, go to Format-&amp;gt;Borders and Shading and then remove the border.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-4250591777504736414?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/4250591777504736414/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2010/09/remove-horizontal-line-from-word.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/4250591777504736414'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/4250591777504736414'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2010/09/remove-horizontal-line-from-word.html' title='Remove horizontal line from Word'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-807853790466553579</id><published>2010-09-09T16:25:00.000-04:00</published><updated>2010-09-09T16:25:00.084-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='matplotlib'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>Multidimensional find in pylab/numpy/matplotlib</title><content type='html'>A = pylab.random((3,3))&lt;br /&gt;print A &lt;br /&gt;idx = pylab.find(A &amp;lt; .5) #Returns an unravelled index&lt;br /&gt;A.flat[idx] = .5 #allows us to use this flat index directly&lt;br /&gt;print(A) #and it works just fine&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-807853790466553579?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/807853790466553579/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2010/09/multidimensional-find-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/807853790466553579'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/807853790466553579'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2010/09/multidimensional-find-in.html' title='Multidimensional find in pylab/numpy/matplotlib'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-3873964036143922156</id><published>2010-08-28T00:46:00.000-04:00</published><updated>2010-08-28T00:46:01.892-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='commandline'/><title type='text'>Parallel processing in a bash script - wait</title><content type='html'>Use the 'wait' command.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;some command &amp;amp;&lt;br /&gt;some other command &amp;amp;&lt;br /&gt;&lt;br /&gt;wait&lt;br /&gt;command that needs the results of the previous two&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-3873964036143922156?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/3873964036143922156/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2010/08/parallel-processing-in-bash-script-wait.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/3873964036143922156'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/3873964036143922156'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2010/08/parallel-processing-in-bash-script-wait.html' title='Parallel processing in a bash script - wait'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-4871608198928097762</id><published>2010-08-16T14:44:00.001-04:00</published><updated>2010-08-16T14:47:35.240-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='gotcha'/><title type='text'>Strange crash with pyglet, wxwindows and multiprocessing</title><content type='html'>The following code will crash. Commenting out the wx import (note that wx is never used) will work as expected. &lt;br /&gt;&lt;code&gt;&lt;pre&gt;import multiprocessing as mp&lt;br /&gt;import wx&lt;br /&gt;&lt;br /&gt;def run():&lt;br /&gt;import pyglet&lt;br /&gt;w = pyglet.window.Window(resizable=True)&lt;br /&gt;while not w.has_exit:&lt;br /&gt;w.dispatch_events()&lt;br /&gt;w.close()&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;p = mp.Process(target=run)&lt;br /&gt;p.start()&lt;br /&gt;p.join()&lt;br /&gt;&lt;/pre&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;This may be related to the &lt;a href="http://groups.google.com/group/pyglet-users/browse.../4f3e5cace3f1aa11"&gt;shadow window bug&lt;/a&gt;, but setting shadow window to False does not help.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-4871608198928097762?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/4871608198928097762/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2010/08/strange-crash-with-pyglet-wxwindows-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/4871608198928097762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/4871608198928097762'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2010/08/strange-crash-with-pyglet-wxwindows-and.html' title='Strange crash with pyglet, wxwindows and multiprocessing'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-1249365273062729363</id><published>2010-08-11T10:30:00.000-04:00</published><updated>2010-08-11T10:30:03.798-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><title type='text'>Convert flv to mov (or other format) on a Mac</title><content type='html'>&lt;ol&gt;&lt;li&gt;&lt;a href="http://perian.org/"&gt;Perian&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.squared5.com/"&gt;MPEG streamclip&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;Don't bother with ffmpeg or ffmpegX.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-1249365273062729363?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/1249365273062729363/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2010/08/convert-flv-to-mov-or-other-format-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/1249365273062729363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/1249365273062729363'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2010/08/convert-flv-to-mov-or-other-format-on.html' title='Convert flv to mov (or other format) on a Mac'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1607061143892343899.post-2022367600891168048</id><published>2010-08-06T14:55:00.000-04:00</published><updated>2010-08-06T14:55:43.805-04:00</updated><title type='text'>Svn revision numbers</title><content type='html'>From&lt;a href="http://svnbook.red-bean.com/en/1.0/ch02s03.html"&gt; here&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;"Subversion's revision numbers apply to entire trees, not individual files. Each revision number selects an entire tree, a particular state of the repository after some committed change. Another way to think about it is that revision N represents the state of the repository filesystem after the Nth commit. When a Subversion user talks about “revision 5 of foo.c”, they really mean “foo.c as it appears in revision 5.” Notice that in general, revisions N and M of a file do not necessarily differ!"&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1607061143892343899-2022367600891168048?l=assorted-experience.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://assorted-experience.blogspot.com/feeds/2022367600891168048/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://assorted-experience.blogspot.com/2010/08/svn-revision-numbers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/2022367600891168048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1607061143892343899/posts/default/2022367600891168048'/><link rel='alternate' type='text/html' href='http://assorted-experience.blogspot.com/2010/08/svn-revision-numbers.html' title='Svn revision numbers'/><author><name>KG</name><uri>http://www.blogger.com/profile/11384273399104067516</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/-tQvIbCXZbJI/TYufP_ata4I/AAAAAAAAATE/Ef2LPGWVq8w/s220/steam_avatar.png'/></author><thr:total>0</thr:total></entry></feed>
