<?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-2257132938364734745</id><updated>2011-04-21T10:54:52.642-07:00</updated><category term='firefox'/><category term='buffer'/><category term='print'/><category term='flush'/><category term='python'/><category term='restart'/><category term='Matlab'/><category term='wxpython'/><category term='windows'/><category term='default application'/><category term='remote desktop connection'/><category term='ubuntu'/><category term='write now'/><category term='shut down'/><title type='text'>Reinvent The Wheel</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://inventingthewheel.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://inventingthewheel.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Othello</name><uri>http://www.blogger.com/profile/14286381117415940061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://4.bp.blogspot.com/_o0-3bjftaC4/SsWK3rL611I/AAAAAAAABdU/-Nad_SrxrMo/S220/kermit.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>23</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2257132938364734745.post-8443955298746851785</id><published>2009-05-06T11:07:00.000-07:00</published><updated>2009-05-06T11:08:37.385-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wxpython'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><title type='text'>wxpython with python 2.6 crashes in Windows Vista</title><content type='html'>Solution found in: &lt;a href="http://www.python-forum.org/pythonforum/viewtopic.php?f=4&amp;t=11331#p54621"&gt;http://www.python-forum.org/pythonforum/viewtopic.php?f=4&amp;t=11331#p54621&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;To fix this, do the following:&lt;br /&gt;&lt;br /&gt;    * Make a copy of python.exe&lt;br /&gt;    * Use that copy(!) to run 'update_manifest.py' that wxPython installed in you python folder&lt;br /&gt;&lt;br /&gt;The problem is that by default a wrong DLL version is loaded, this causes crashes in the wxWidget C++ code. In Python 2.5 and earlier the presence of the python.exe.manifest (installed by wxPython) was enough to fix this, but Python 2.6 is compiled with internal manifests, so external manifest don't work. The script will update the internal manifest so the right DLL is loaded.&lt;br /&gt;&lt;br /&gt;You need to use a copy of python.exe to execute the script, because otherwise the program is in use and cannot be updated. After updating the manifest the program should no longer crash on mouse-events (worked for me).&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257132938364734745-8443955298746851785?l=inventingthewheel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inventingthewheel.blogspot.com/feeds/8443955298746851785/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257132938364734745&amp;postID=8443955298746851785' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/8443955298746851785'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/8443955298746851785'/><link rel='alternate' type='text/html' href='http://inventingthewheel.blogspot.com/2009/05/wxpython-with-python-26-crashes-in.html' title='wxpython with python 2.6 crashes in Windows Vista'/><author><name>Othello</name><uri>http://www.blogger.com/profile/14286381117415940061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://4.bp.blogspot.com/_o0-3bjftaC4/SsWK3rL611I/AAAAAAAABdU/-Nad_SrxrMo/S220/kermit.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257132938364734745.post-5828385845763597699</id><published>2009-05-01T12:14:00.001-07:00</published><updated>2009-05-01T12:14:22.872-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Matlab'/><title type='text'>MATLAB: Multiplying with a Matrix Inverse</title><content type='html'>M-Lint has detected a call to inv in a multiplication operation.&lt;br /&gt;The inverse of a matrix is primarily of theoretical value, and rarely finds any use in practical computations. Never use it to solve a linear system Ax=b with x=inv(A)*b, because it is slow and inaccurate.&lt;br /&gt;&lt;br /&gt; Suggested Action&lt;br /&gt;Instead of multiplying the matrix by its inverse, use matrix right division (/) or matrix left division (\). That is:&lt;br /&gt;Replace inv(A)*b with A\b&lt;br /&gt;Replace b*inv(A) with b/A&lt;br /&gt;Frequently, an application needs to solve a series of related linear systems Ax=b, where A does not change, but b does. In this case, use lu, chol, or qr instead of inv, depending on the matrix type.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257132938364734745-5828385845763597699?l=inventingthewheel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inventingthewheel.blogspot.com/feeds/5828385845763597699/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257132938364734745&amp;postID=5828385845763597699' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/5828385845763597699'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/5828385845763597699'/><link rel='alternate' type='text/html' href='http://inventingthewheel.blogspot.com/2009/05/matlab-multiplying-with-matrix-inverse.html' title='MATLAB: Multiplying with a Matrix Inverse'/><author><name>Othello</name><uri>http://www.blogger.com/profile/14286381117415940061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://4.bp.blogspot.com/_o0-3bjftaC4/SsWK3rL611I/AAAAAAAABdU/-Nad_SrxrMo/S220/kermit.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257132938364734745.post-1558368521029489510</id><published>2008-12-22T14:54:00.001-08:00</published><updated>2008-12-22T15:06:57.246-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='firefox'/><category scheme='http://www.blogger.com/atom/ns#' term='default application'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Ubuntu: Change Default Applications in Firefox</title><content type='html'>Right clicking on a file of the same type and changing the default application via the properties does not help because GNOME default applications and system default applications are stored in two different lists.&lt;br /&gt;&lt;br /&gt;To change the system default application (This will change the default application in Firefox):&lt;br /&gt;1) sudo gedit /usr/share/applications/defaults.list&lt;br /&gt;2) search and modify the line for appropriate file extension&lt;br /&gt;&lt;br /&gt;To change the default application for GNOME:&lt;br /&gt;1.a) sudo gedit /etc/gnome/defaults.list&lt;br /&gt;2) search and modify the line for appropriate file extension&lt;br /&gt;or &lt;br /&gt;1.b) right click on file -&gt; properties -&gt; open with tab&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257132938364734745-1558368521029489510?l=inventingthewheel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inventingthewheel.blogspot.com/feeds/1558368521029489510/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257132938364734745&amp;postID=1558368521029489510' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/1558368521029489510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/1558368521029489510'/><link rel='alternate' type='text/html' href='http://inventingthewheel.blogspot.com/2008/12/ubuntu-change-default-applications-in.html' title='Ubuntu: Change Default Applications in Firefox'/><author><name>Othello</name><uri>http://www.blogger.com/profile/14286381117415940061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://4.bp.blogspot.com/_o0-3bjftaC4/SsWK3rL611I/AAAAAAAABdU/-Nad_SrxrMo/S220/kermit.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257132938364734745.post-7388380405274075498</id><published>2008-10-09T14:57:00.000-07:00</published><updated>2008-10-09T14:58:08.276-07:00</updated><title type='text'>How To Compile OpenCV in Linux</title><content type='html'>&lt;p class="line867"&gt; &lt;/p&gt;&lt;h3 id="HowtocompileConLinux.3F"&gt;How to compile C on Linux ?&lt;/h3&gt; &lt;span class="anchor" id="line-3"&gt;&lt;/span&gt;&lt;ul&gt;&lt;li style="list-style-type: none;"&gt;You need to setup the PKG_CONFIG_PATH variable. For example (assuming you are using a sh-based shell, like bash or zsh): &lt;span class="anchor" id="line-4"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-5"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-6"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-7"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-8"&gt;&lt;/span&gt;&lt;pre&gt;cd /where/you/have/the/source/code&lt;br /&gt;PKG_CONFIG_PATH=/where/you/have/installed/opencv/lib/pkgconfig:${PKG_CONFIG_PATH}&lt;br /&gt;export PKG_CONFIG_PATH&lt;/pre&gt;&lt;span class="anchor" id="line-9"&gt;&lt;/span&gt;You can check that the PKG_CONFIG_PATH is correct by doing either: &lt;span class="anchor" id="line-10"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-11"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-12"&gt;&lt;/span&gt;&lt;pre&gt;pkg-config --cflags opencv&lt;br /&gt;pkg-config --libs opencv&lt;/pre&gt;&lt;span class="anchor" id="line-13"&gt;&lt;/span&gt;You must have something like: &lt;span class="anchor" id="line-14"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-15"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-16"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-17"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-18"&gt;&lt;/span&gt;&lt;pre&gt;$ pkg-config --cflags opencv&lt;br /&gt;-I/where/you/have/installed/opencv/include/opencv &lt;br /&gt;$ pkg-config --libs opencv&lt;br /&gt;-L/where/you/have/installed/opencv/lib -lcxcore -lcv -lhighgui -lcvaux  &lt;/pre&gt;&lt;span class="anchor" id="line-19"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-20"&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class="line867"&gt; &lt;/p&gt;&lt;h3 id="HowtocompileandlinksomeOpenCVbasedprogramonLinux.3F"&gt;How to compile and link some OpenCV based program on Linux ?&lt;/h3&gt; &lt;span class="anchor" id="line-21"&gt;&lt;/span&gt;&lt;ul&gt;&lt;li style="list-style-type: none;"&gt;&lt;p class="line862"&gt;The best way is to use &lt;tt&gt;pkg-config&lt;/tt&gt;. Just define the correct PKG_CONFIG_PATH: &lt;span class="anchor" id="line-22"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-23"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-24"&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;PKG_CONFIG_PATH=/where/you/have/installed/opencv/lib/pkgconfig:${PKG_CONFIG_PATH}&lt;br /&gt;export PKG_CONFIG_PATH&lt;/pre&gt;&lt;span class="anchor" id="line-25"&gt;&lt;/span&gt;And then, compile as below: &lt;span class="anchor" id="line-26"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-27"&gt;&lt;/span&gt;&lt;pre&gt;gcc `pkg-config --cflags opencv` `pkg-config --libs opencv` -o my-opencv-prgm my-opencv-prgm.c&lt;/pre&gt;&lt;span class="anchor" id="line-28"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-29"&gt;&lt;/span&gt;Simpler way is as below: &lt;span class="anchor" id="line-30"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-31"&gt;&lt;/span&gt;&lt;pre&gt;gcc `pkg-config --cflags --libs opencv` -o my-opencv-prgm my-opencv-prgm.c&lt;/pre&gt;&lt;span class="anchor" id="line-32"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-33"&gt;&lt;/span&gt;If those two fails, try this: &lt;span class="anchor" id="line-34"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-35"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-36"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-37"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-38"&gt;&lt;/span&gt;&lt;pre&gt;gcc -I/home/intel/opencv/include/opencv -L/home/intel/opencv/lib -lcv -lhighgui -lstdc++ \&lt;br /&gt;   -o my-opencv-prgm my-opencv-prgm.c&lt;/pre&gt;&lt;span class="anchor" id="line-39"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-40"&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class="line867"&gt; &lt;/p&gt;&lt;h3 id="HowtocompileOpenCVwithsomelibrariesnotinstandardpathonLinux.3F"&gt;How to compile OpenCV with some libraries not in standard path on Linux?&lt;/h3&gt; &lt;span class="anchor" id="line-41"&gt;&lt;/span&gt;&lt;ul&gt;&lt;li style="list-style-type: none;"&gt;&lt;p class="line862"&gt;The solution is to use the &lt;tt&gt;CFLAGS&lt;/tt&gt;, &lt;tt&gt;CPPFLAGS&lt;/tt&gt; and &lt;tt&gt;LDFLAGS&lt;/tt&gt; environment variables at configure time. For example, if you have ffmpeg library in one of your own directories, you can do (all on one command line): &lt;span class="anchor" id="line-42"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li style="list-style-type: none;"&gt;&lt;span class="anchor" id="line-43"&gt;&lt;/span&gt;&lt;pre&gt;./configure CFLAGS=-I/where/is/ffmpeg/include CPPFLAGS=-I/where/is/ffmpeg/include LDFLAGS=-L/where/is/ffmpeg/lib&lt;/pre&gt;&lt;span class="anchor" id="line-44"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-45"&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class="line867"&gt; &lt;/p&gt;&lt;h3 id="WhatifIgetanerroraboutOpenCVlibrarieswhenrunningaprogram.3F"&gt;What if I get an error about OpenCV libraries when running a program?&lt;/h3&gt; &lt;span class="anchor" id="line-46"&gt;&lt;/span&gt;If an error occurs that 'a library cannot be found' during compilation on Fedora systems: &lt;span class="anchor" id="line-47"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-48"&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;create a file called opencv.conf in /etc/ld.so.conf.d/ which contains the path to your opencv libraries (by default /usr/local/lib). &lt;span class="anchor" id="line-49"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;run ldconfig as root. &lt;span class="anchor" id="line-50"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-51"&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;Or, add the location of the OpenCV libraries to your LD_LIBRARY_PATH (should work on most systems including Fedora)  &lt;span class="anchor" id="line-52"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-53"&gt;&lt;/span&gt;For additional help on FFMpeg compilation: &lt;a class="http" href="http://freeshells.ch/%7Ephoenix/ocv.htm"&gt;http://freeshells.ch/~phoenix/ocv.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257132938364734745-7388380405274075498?l=inventingthewheel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inventingthewheel.blogspot.com/feeds/7388380405274075498/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257132938364734745&amp;postID=7388380405274075498' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/7388380405274075498'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/7388380405274075498'/><link rel='alternate' type='text/html' href='http://inventingthewheel.blogspot.com/2008/10/how-to-compile-opencv-in-linux.html' title='How To Compile OpenCV in Linux'/><author><name>Othello</name><uri>http://www.blogger.com/profile/14286381117415940061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://4.bp.blogspot.com/_o0-3bjftaC4/SsWK3rL611I/AAAAAAAABdU/-Nad_SrxrMo/S220/kermit.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257132938364734745.post-8512991709854180844</id><published>2008-07-23T08:04:00.001-07:00</published><updated>2008-07-23T08:05:03.502-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='restart'/><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><category scheme='http://www.blogger.com/atom/ns#' term='shut down'/><category scheme='http://www.blogger.com/atom/ns#' term='remote desktop connection'/><title type='text'>Shutdown Remote Desktop Windows Machine</title><content type='html'>run &gt;&gt; cmd &gt;&gt; shutdown&lt;br /&gt;&lt;br /&gt;then follow the instructions.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257132938364734745-8512991709854180844?l=inventingthewheel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inventingthewheel.blogspot.com/feeds/8512991709854180844/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257132938364734745&amp;postID=8512991709854180844' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/8512991709854180844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/8512991709854180844'/><link rel='alternate' type='text/html' href='http://inventingthewheel.blogspot.com/2008/07/shutdown-remote-desktop-windows-machine.html' title='Shutdown Remote Desktop Windows Machine'/><author><name>Othello</name><uri>http://www.blogger.com/profile/14286381117415940061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://4.bp.blogspot.com/_o0-3bjftaC4/SsWK3rL611I/AAAAAAAABdU/-Nad_SrxrMo/S220/kermit.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257132938364734745.post-2864599925337599843</id><published>2008-06-29T17:18:00.001-07:00</published><updated>2008-06-29T17:18:33.333-07:00</updated><title type='text'>Useful Linux Commands</title><content type='html'>&lt;a href="http://atoztoa.blogspot.com/2008/06/linux-commands-i-hardly-knew.html"&gt;http://atoztoa.blogspot.com/2008/06/linux-commands-i-hardly-knew.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257132938364734745-2864599925337599843?l=inventingthewheel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inventingthewheel.blogspot.com/feeds/2864599925337599843/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257132938364734745&amp;postID=2864599925337599843' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/2864599925337599843'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/2864599925337599843'/><link rel='alternate' type='text/html' href='http://inventingthewheel.blogspot.com/2008/06/useful-linux-commands.html' title='Useful Linux Commands'/><author><name>Othello</name><uri>http://www.blogger.com/profile/14286381117415940061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://4.bp.blogspot.com/_o0-3bjftaC4/SsWK3rL611I/AAAAAAAABdU/-Nad_SrxrMo/S220/kermit.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257132938364734745.post-6600694438602389775</id><published>2008-06-26T16:21:00.001-07:00</published><updated>2008-06-26T16:21:39.023-07:00</updated><title type='text'>Clear disk cache linux</title><content type='html'>1) become root&lt;br&gt;2) echo 3 &amp;gt; /proc/sys/vm/drop_caches&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257132938364734745-6600694438602389775?l=inventingthewheel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inventingthewheel.blogspot.com/feeds/6600694438602389775/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257132938364734745&amp;postID=6600694438602389775' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/6600694438602389775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/6600694438602389775'/><link rel='alternate' type='text/html' href='http://inventingthewheel.blogspot.com/2008/06/clear-disk-cache-linux.html' title='Clear disk cache linux'/><author><name>Othello</name><uri>http://www.blogger.com/profile/14286381117415940061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://4.bp.blogspot.com/_o0-3bjftaC4/SsWK3rL611I/AAAAAAAABdU/-Nad_SrxrMo/S220/kermit.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257132938364734745.post-7746032183959943727</id><published>2008-06-14T14:52:00.001-07:00</published><updated>2008-06-14T14:52:53.772-07:00</updated><title type='text'>Linux Directory name with a space</title><content type='html'>Example:  The directory name is: &amp;quot;My Stupid Directory&amp;quot;&lt;p&gt;Access is as: &amp;quot;My\ Stupid\ Directory/&amp;quot;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257132938364734745-7746032183959943727?l=inventingthewheel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inventingthewheel.blogspot.com/feeds/7746032183959943727/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257132938364734745&amp;postID=7746032183959943727' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/7746032183959943727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/7746032183959943727'/><link rel='alternate' type='text/html' href='http://inventingthewheel.blogspot.com/2008/06/linux-directory-name-with-space.html' title='Linux Directory name with a space'/><author><name>Othello</name><uri>http://www.blogger.com/profile/14286381117415940061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://4.bp.blogspot.com/_o0-3bjftaC4/SsWK3rL611I/AAAAAAAABdU/-Nad_SrxrMo/S220/kermit.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257132938364734745.post-5483436734173426281</id><published>2008-05-26T12:08:00.001-07:00</published><updated>2008-05-26T12:08:11.944-07:00</updated><title type='text'>Location of Gnome Thrash in Ubuntu</title><content type='html'>~/.local/share/Trash/files&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257132938364734745-5483436734173426281?l=inventingthewheel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inventingthewheel.blogspot.com/feeds/5483436734173426281/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257132938364734745&amp;postID=5483436734173426281' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/5483436734173426281'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/5483436734173426281'/><link rel='alternate' type='text/html' href='http://inventingthewheel.blogspot.com/2008/05/location-of-gnome-thrash-in-ubuntu.html' title='Location of Gnome Thrash in Ubuntu'/><author><name>Othello</name><uri>http://www.blogger.com/profile/14286381117415940061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://4.bp.blogspot.com/_o0-3bjftaC4/SsWK3rL611I/AAAAAAAABdU/-Nad_SrxrMo/S220/kermit.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257132938364734745.post-3282447732657007840</id><published>2008-05-23T13:39:00.001-07:00</published><updated>2008-05-23T13:39:46.476-07:00</updated><title type='text'>Laptop HDDs may die prematurely in Linux</title><content type='html'>&lt;a href="http://ubuntuforums.org/showthread.php?t=795327&amp;amp;highlight=prematurely"&gt;http://ubuntuforums.org/showthread.php?t=795327&amp;amp;highlight=prematurely&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257132938364734745-3282447732657007840?l=inventingthewheel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inventingthewheel.blogspot.com/feeds/3282447732657007840/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257132938364734745&amp;postID=3282447732657007840' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/3282447732657007840'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/3282447732657007840'/><link rel='alternate' type='text/html' href='http://inventingthewheel.blogspot.com/2008/05/laptop-hdds-may-die-prematurely-in.html' title='Laptop HDDs may die prematurely in Linux'/><author><name>Othello</name><uri>http://www.blogger.com/profile/14286381117415940061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://4.bp.blogspot.com/_o0-3bjftaC4/SsWK3rL611I/AAAAAAAABdU/-Nad_SrxrMo/S220/kermit.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257132938364734745.post-1392150956125916913</id><published>2008-05-23T12:27:00.001-07:00</published><updated>2008-05-23T12:28:10.806-07:00</updated><title type='text'>Howto install OpenCV with FFMPEG functionality</title><content type='html'>&lt;a href="http://www.pauker3.de/projects/ffmpeg_opencv.html"&gt;http://www.pauker3.de/projects/ffmpeg_opencv.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;http://dircweb.king.ac.uk/reason/opencv_cvs.php&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257132938364734745-1392150956125916913?l=inventingthewheel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inventingthewheel.blogspot.com/feeds/1392150956125916913/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257132938364734745&amp;postID=1392150956125916913' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/1392150956125916913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/1392150956125916913'/><link rel='alternate' type='text/html' href='http://inventingthewheel.blogspot.com/2008/05/howto-install-opencv-with-ffmpeg.html' title='Howto install OpenCV with FFMPEG functionality'/><author><name>Othello</name><uri>http://www.blogger.com/profile/14286381117415940061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://4.bp.blogspot.com/_o0-3bjftaC4/SsWK3rL611I/AAAAAAAABdU/-Nad_SrxrMo/S220/kermit.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257132938364734745.post-7979243727037260409</id><published>2008-05-22T13:38:00.001-07:00</published><updated>2008-05-22T13:38:52.316-07:00</updated><title type='text'>encoding xvid in linux from a sequence of images</title><content type='html'>xvid: you must specify one or a valid combination of &amp;#39;bitrate&amp;#39;, &amp;#39;pass&amp;#39;, &lt;br&gt;&amp;#39;quantizer&amp;#39; settings&lt;p&gt;solution:&lt;br&gt;mencoder mf://*.png -ovc xvid -xvidencopts pass=1 -of avi -o &lt;br&gt;./tmp/filename.avi&lt;p&gt;or&lt;br&gt;mencoder mf://*.png -ovc xvid -xvidencopts bitrate=1600 -of avi -o &lt;br&gt;./tmp/deneme2.avi&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257132938364734745-7979243727037260409?l=inventingthewheel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inventingthewheel.blogspot.com/feeds/7979243727037260409/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257132938364734745&amp;postID=7979243727037260409' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/7979243727037260409'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/7979243727037260409'/><link rel='alternate' type='text/html' href='http://inventingthewheel.blogspot.com/2008/05/encoding-xvid-in-linux-from-sequence-of.html' title='encoding xvid in linux from a sequence of images'/><author><name>Othello</name><uri>http://www.blogger.com/profile/14286381117415940061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://4.bp.blogspot.com/_o0-3bjftaC4/SsWK3rL611I/AAAAAAAABdU/-Nad_SrxrMo/S220/kermit.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257132938364734745.post-8396080403617790511</id><published>2008-05-22T12:48:00.001-07:00</published><updated>2008-05-22T12:48:05.280-07:00</updated><title type='text'>Debian package manager manual (APT)</title><content type='html'>&lt;a href="http://www.debian.org/doc/manuals/apt-howto/"&gt;http://www.debian.org/doc/manuals/apt-howto/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257132938364734745-8396080403617790511?l=inventingthewheel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inventingthewheel.blogspot.com/feeds/8396080403617790511/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257132938364734745&amp;postID=8396080403617790511' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/8396080403617790511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/8396080403617790511'/><link rel='alternate' type='text/html' href='http://inventingthewheel.blogspot.com/2008/05/debian-package-manager-manual-apt.html' title='Debian package manager manual (APT)'/><author><name>Othello</name><uri>http://www.blogger.com/profile/14286381117415940061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://4.bp.blogspot.com/_o0-3bjftaC4/SsWK3rL611I/AAAAAAAABdU/-Nad_SrxrMo/S220/kermit.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257132938364734745.post-2746039361902304529</id><published>2008-05-22T12:47:00.001-07:00</published><updated>2008-05-22T12:47:11.346-07:00</updated><title type='text'>convert multiple images from command line in linux (ubuntu)</title><content type='html'>sudo apt-get install imagemagick&lt;p&gt;convert &amp;#39;*.jpg&amp;#39; -resize 120x120 thumbnail%03d.png&lt;p&gt;more on the topic:&lt;br&gt;&lt;a href="http://www.imagemagick.org/script/command-line-processing.php"&gt;http://www.imagemagick.org/script/command-line-processing.php&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257132938364734745-2746039361902304529?l=inventingthewheel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inventingthewheel.blogspot.com/feeds/2746039361902304529/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257132938364734745&amp;postID=2746039361902304529' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/2746039361902304529'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/2746039361902304529'/><link rel='alternate' type='text/html' href='http://inventingthewheel.blogspot.com/2008/05/convert-multiple-images-from-command.html' title='convert multiple images from command line in linux (ubuntu)'/><author><name>Othello</name><uri>http://www.blogger.com/profile/14286381117415940061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://4.bp.blogspot.com/_o0-3bjftaC4/SsWK3rL611I/AAAAAAAABdU/-Nad_SrxrMo/S220/kermit.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257132938364734745.post-4938076492610247344</id><published>2008-05-22T08:42:00.001-07:00</published><updated>2008-05-22T13:52:42.397-07:00</updated><title type='text'>Matlab Tips and Tricks</title><content type='html'>&lt;a href="http://www.ee.columbia.edu/%7Emarios/matlab/matlab_tricks.html"&gt;http://www.ee.columbia.edu/~marios/matlab/matlab_tricks.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257132938364734745-4938076492610247344?l=inventingthewheel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inventingthewheel.blogspot.com/feeds/4938076492610247344/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257132938364734745&amp;postID=4938076492610247344' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/4938076492610247344'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/4938076492610247344'/><link rel='alternate' type='text/html' href='http://inventingthewheel.blogspot.com/2008/05/matlab-tips-and-trick.html' title='Matlab Tips and Tricks'/><author><name>Othello</name><uri>http://www.blogger.com/profile/14286381117415940061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://4.bp.blogspot.com/_o0-3bjftaC4/SsWK3rL611I/AAAAAAAABdU/-Nad_SrxrMo/S220/kermit.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257132938364734745.post-3211726504226415222</id><published>2008-05-22T08:00:00.001-07:00</published><updated>2008-05-22T08:00:11.055-07:00</updated><title type='text'>Pass arguments to python script</title><content type='html'>import sys&lt;p&gt;print sys.argv&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257132938364734745-3211726504226415222?l=inventingthewheel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inventingthewheel.blogspot.com/feeds/3211726504226415222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257132938364734745&amp;postID=3211726504226415222' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/3211726504226415222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/3211726504226415222'/><link rel='alternate' type='text/html' href='http://inventingthewheel.blogspot.com/2008/05/pass-arguments-to-python-script.html' title='Pass arguments to python script'/><author><name>Othello</name><uri>http://www.blogger.com/profile/14286381117415940061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://4.bp.blogspot.com/_o0-3bjftaC4/SsWK3rL611I/AAAAAAAABdU/-Nad_SrxrMo/S220/kermit.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257132938364734745.post-4940130630360284411</id><published>2008-05-19T14:09:00.001-07:00</published><updated>2008-05-19T14:24:03.428-07:00</updated><title type='text'>Pause python</title><content type='html'>&lt;span style="text-decoration: underline;"&gt;little hacky but works:&lt;br /&gt;&lt;br /&gt;raw_input()&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257132938364734745-4940130630360284411?l=inventingthewheel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inventingthewheel.blogspot.com/feeds/4940130630360284411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257132938364734745&amp;postID=4940130630360284411' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/4940130630360284411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/4940130630360284411'/><link rel='alternate' type='text/html' href='http://inventingthewheel.blogspot.com/2008/05/pause-python.html' title='Pause python'/><author><name>Othello</name><uri>http://www.blogger.com/profile/14286381117415940061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://4.bp.blogspot.com/_o0-3bjftaC4/SsWK3rL611I/AAAAAAAABdU/-Nad_SrxrMo/S220/kermit.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257132938364734745.post-7267079434688952948</id><published>2008-05-16T11:35:00.001-07:00</published><updated>2008-05-16T11:35:15.282-07:00</updated><title type='text'>Python execute command in a string</title><content type='html'>exec(&amp;#39;do this line&amp;#39;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257132938364734745-7267079434688952948?l=inventingthewheel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inventingthewheel.blogspot.com/feeds/7267079434688952948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257132938364734745&amp;postID=7267079434688952948' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/7267079434688952948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/7267079434688952948'/><link rel='alternate' type='text/html' href='http://inventingthewheel.blogspot.com/2008/05/python-execute-command-in-string.html' title='Python execute command in a string'/><author><name>Othello</name><uri>http://www.blogger.com/profile/14286381117415940061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://4.bp.blogspot.com/_o0-3bjftaC4/SsWK3rL611I/AAAAAAAABdU/-Nad_SrxrMo/S220/kermit.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257132938364734745.post-8695742539519499286</id><published>2008-05-16T09:23:00.001-07:00</published><updated>2008-05-16T09:23:33.982-07:00</updated><title type='text'>Get unicode index for chars in python</title><content type='html'>int = ord(char)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257132938364734745-8695742539519499286?l=inventingthewheel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inventingthewheel.blogspot.com/feeds/8695742539519499286/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257132938364734745&amp;postID=8695742539519499286' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/8695742539519499286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/8695742539519499286'/><link rel='alternate' type='text/html' href='http://inventingthewheel.blogspot.com/2008/05/get-unicode-index-for-chars-in-python.html' title='Get unicode index for chars in python'/><author><name>Othello</name><uri>http://www.blogger.com/profile/14286381117415940061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://4.bp.blogspot.com/_o0-3bjftaC4/SsWK3rL611I/AAAAAAAABdU/-Nad_SrxrMo/S220/kermit.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257132938364734745.post-156375488083971158</id><published>2008-05-15T20:19:00.001-07:00</published><updated>2008-05-15T20:19:34.249-07:00</updated><title type='text'>Python debugger</title><content type='html'>import pdb&lt;p&gt;#this is a break point&lt;br&gt;pdb.pm()&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257132938364734745-156375488083971158?l=inventingthewheel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inventingthewheel.blogspot.com/feeds/156375488083971158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257132938364734745&amp;postID=156375488083971158' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/156375488083971158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/156375488083971158'/><link rel='alternate' type='text/html' href='http://inventingthewheel.blogspot.com/2008/05/python-debugger.html' title='Python debugger'/><author><name>Othello</name><uri>http://www.blogger.com/profile/14286381117415940061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://4.bp.blogspot.com/_o0-3bjftaC4/SsWK3rL611I/AAAAAAAABdU/-Nad_SrxrMo/S220/kermit.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257132938364734745.post-7438050619990428225</id><published>2008-05-15T18:15:00.001-07:00</published><updated>2008-05-15T18:15:31.524-07:00</updated><title type='text'>Open text file in python</title><content type='html'>file = open(&amp;quot;sample.txt&amp;quot;)&lt;p&gt;while 1:&lt;br&gt;    line = file.readline()&lt;br&gt;    if not line:&lt;br&gt;        break&lt;br&gt;    pass # do something&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257132938364734745-7438050619990428225?l=inventingthewheel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inventingthewheel.blogspot.com/feeds/7438050619990428225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257132938364734745&amp;postID=7438050619990428225' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/7438050619990428225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/7438050619990428225'/><link rel='alternate' type='text/html' href='http://inventingthewheel.blogspot.com/2008/05/open-text-file-in-python.html' title='Open text file in python'/><author><name>Othello</name><uri>http://www.blogger.com/profile/14286381117415940061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://4.bp.blogspot.com/_o0-3bjftaC4/SsWK3rL611I/AAAAAAAABdU/-Nad_SrxrMo/S220/kermit.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257132938364734745.post-2705312286822755137</id><published>2008-05-15T17:06:00.000-07:00</published><updated>2008-05-15T17:38:13.636-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='write now'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='buffer'/><category scheme='http://www.blogger.com/atom/ns#' term='print'/><category scheme='http://www.blogger.com/atom/ns#' term='flush'/><title type='text'>Flush python print buffer</title><content type='html'>sys.stdout.flush()&lt;br /&gt;&lt;br /&gt;Found &lt;a href="http://desk.stinkpot.org:8080/tricks/index.php/2008/04/flush-pythons-print-buffer/"&gt;here&lt;/a&gt;!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257132938364734745-2705312286822755137?l=inventingthewheel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inventingthewheel.blogspot.com/feeds/2705312286822755137/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257132938364734745&amp;postID=2705312286822755137' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/2705312286822755137'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/2705312286822755137'/><link rel='alternate' type='text/html' href='http://inventingthewheel.blogspot.com/2008/05/flush-python-print-buffer.html' title='Flush python print buffer'/><author><name>Othello</name><uri>http://www.blogger.com/profile/14286381117415940061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://4.bp.blogspot.com/_o0-3bjftaC4/SsWK3rL611I/AAAAAAAABdU/-Nad_SrxrMo/S220/kermit.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257132938364734745.post-3647107638244577026</id><published>2008-05-15T17:00:00.000-07:00</published><updated>2008-05-15T17:06:30.004-07:00</updated><title type='text'>What this blog is</title><content type='html'>Sometimes we hit dead ends.  We figure out the solution and move on.  After a while we forget the fix but more often then not we find ourselves looking for the exact same solution.  This blog is my notepad for these hacks.  It is a blog instead of a text file because it is cool to share.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257132938364734745-3647107638244577026?l=inventingthewheel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inventingthewheel.blogspot.com/feeds/3647107638244577026/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257132938364734745&amp;postID=3647107638244577026' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/3647107638244577026'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257132938364734745/posts/default/3647107638244577026'/><link rel='alternate' type='text/html' href='http://inventingthewheel.blogspot.com/2008/05/what-this-blog-is.html' title='What this blog is'/><author><name>Othello</name><uri>http://www.blogger.com/profile/14286381117415940061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://4.bp.blogspot.com/_o0-3bjftaC4/SsWK3rL611I/AAAAAAAABdU/-Nad_SrxrMo/S220/kermit.jpg'/></author><thr:total>0</thr:total></entry></feed>
