<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Nambabwe&#039;s Weblog</title>
	<atom:link href="http://nambabwe.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nambabwe.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Tue, 17 Jan 2012 23:19:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='nambabwe.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Nambabwe&#039;s Weblog</title>
		<link>http://nambabwe.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://nambabwe.wordpress.com/osd.xml" title="Nambabwe&#039;s Weblog" />
	<atom:link rel='hub' href='http://nambabwe.wordpress.com/?pushpress=hub'/>
		<item>
		<title>WebCam, Python, Ubuntu?</title>
		<link>http://nambabwe.wordpress.com/2012/01/11/webcam-python-ubuntu/</link>
		<comments>http://nambabwe.wordpress.com/2012/01/11/webcam-python-ubuntu/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 18:16:00 +0000</pubDate>
		<dc:creator>nambabwe</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[it]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[trains]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[camera]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://nambabwe.wordpress.com/?p=431</guid>
		<description><![CDATA[openCV: http://opencv.willowgarage.com/wiki/#Welcome.2BAC8-Introduction.WhatisOpenCV.3F lsusb: Bus 003 Device 002: ID 093a:2621 Pixart Imaging, Inc. PAC731x Trust Webcam http://www.jperla.com/blog/post/capturing-frames-from-a-webcam-on-linux &#62;&#62;&#62; camera = highgui.cvCreateCameraCapture(0) HIGHGUI ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV Unable to stop the stream.: Bad file descriptor HIGHGUI ERROR: V4L: Pixel format of incoming image is unsupported by OpenCV fixed with: export [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nambabwe.wordpress.com&amp;blog=3007739&amp;post=431&amp;subd=nambabwe&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>openCV:</p>
<p>http://opencv.willowgarage.com/wiki/#Welcome.2BAC8-Introduction.WhatisOpenCV.3F</p>
<p>lsusb:<br />
Bus 003 Device 002: ID 093a:2621 Pixart Imaging, Inc. PAC731x Trust Webcam</p>
<p>http://www.jperla.com/blog/post/capturing-frames-from-a-webcam-on-linux</p>
<p>&gt;&gt;&gt; camera = highgui.cvCreateCameraCapture(0)<br />
HIGHGUI ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV<br />
Unable to stop the stream.: Bad file descriptor<br />
HIGHGUI ERROR: V4L: Pixel format of incoming image is unsupported by OpenCV</p>
<p>fixed with:<br />
  export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so<br />
(</p>
<p>http://stackoverflow.com/questions/5033253/grabbing-images-from-a-webcam-to-be-used-with-opencv</p>
<p>http://www.linuxtv.org/downloads/v4l-dvb-apis/libv4l.html#id2858949</p>
<p>)</p>
<p>other:</p>
<p>http://digg.com/newsbar/topnews/HOWTO_Using_a_webcam_in_Python</p>
<br />Filed under: <a href='http://nambabwe.wordpress.com/category/it/'>it</a>, <a href='http://nambabwe.wordpress.com/category/linux/'>linux</a>, <a href='http://nambabwe.wordpress.com/category/python/'>python</a>, <a href='http://nambabwe.wordpress.com/category/trains/'>trains</a>, <a href='http://nambabwe.wordpress.com/category/uncategorized/'>Uncategorized</a> Tagged: <a href='http://nambabwe.wordpress.com/tag/camera/'>camera</a>, <a href='http://nambabwe.wordpress.com/tag/webcam/'>webcam</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nambabwe.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nambabwe.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nambabwe.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nambabwe.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nambabwe.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nambabwe.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nambabwe.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nambabwe.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nambabwe.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nambabwe.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nambabwe.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nambabwe.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nambabwe.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nambabwe.wordpress.com/431/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nambabwe.wordpress.com&amp;blog=3007739&amp;post=431&amp;subd=nambabwe&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nambabwe.wordpress.com/2012/01/11/webcam-python-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/805d5c525168dfb2c6d2e6f32bcb860f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nambabwe</media:title>
		</media:content>
	</item>
		<item>
		<title>OPC</title>
		<link>http://nambabwe.wordpress.com/2012/01/02/opc/</link>
		<comments>http://nambabwe.wordpress.com/2012/01/02/opc/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 20:41:13 +0000</pubDate>
		<dc:creator>nambabwe</dc:creator>
				<category><![CDATA[cbus]]></category>
		<category><![CDATA[ee]]></category>
		<category><![CDATA[trains]]></category>
		<category><![CDATA[CBUS]]></category>

		<guid isPermaLink="false">http://nambabwe.wordpress.com/?p=425</guid>
		<description><![CDATA[just some useless info: OPC_SETLED 0x8C OPC_CLRLED 0x8D OPC_CLRFLASH 0x8E // solid OPC_SETFLASH 0x8F first (green) LED on NN=0001 on: :S0000N8C00010000; flash it:; :S0000N8F00010000; red:; :S0000N8C00010001; yellow:; :S0000N8C00010002; and OFF: green:; :S0000N8D00010000; red:; :S0000N8D00010001; yellow:; :S0000N8D00010002; on and solid again: green:; :S0000N8C00010000; :S0000N8E00010000; TxCanBeep: OPC_BEEP_CALL (sent when a call button is pressed) 9C CN CN [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nambabwe.wordpress.com&amp;blog=3007739&amp;post=425&amp;subd=nambabwe&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>just some useless info:</p>
<p>OPC_SETLED 0x8C<br />
OPC_CLRLED 0x8D<br />
OPC_CLRFLASH 0x8E // solid<br />
OPC_SETFLASH 0x8F</p>
<p>first (green) LED on NN=0001 on:</p>
<p>:S0000N8C00010000;<br />
flash it:;<br />
:S0000N8F00010000;</p>
<p>red:;<br />
:S0000N8C00010001;</p>
<p>yellow:;<br />
:S0000N8C00010002;</p>
<p>and OFF:<br />
green:;<br />
:S0000N8D00010000;<br />
red:;<br />
:S0000N8D00010001;<br />
yellow:;<br />
:S0000N8D00010002;</p>
<p>on and solid again:<br />
green:;<br />
:S0000N8C00010000;<br />
:S0000N8E00010000;</p>
<p>TxCanBeep:<br />
OPC_BEEP_CALL (sent when a call button is pressed)<br />
9C CN CN PH PL CC</p>
<p>OPC_BEEP_CANCEL (sent when a cancel button is pressed)<br />
9D CN CN PH PL CC</p>
<p>lights only:<br />
OPC_BEEP_CALL (datalen = 5)<br />
9C CN CN PH PL</p>
<p>OPC_BEEP_CANCEL (datalen = 5)<br />
9D CN CN PH PL</p>
<p>messages intended for here:<br />
OPC_SETONTIME<br />
set:<br />
E9 NN NN 00 TT<br />
get:<br />
E9 NN NN<br />
// s0000ne94007;<br />
// reply<br />
// :SE470N7C400706;</p>
<p>OPC_DEEP_DEFVAL (logic hi or low)<br />
set:<br />
9B NN NN 00 DV<br />
// :S0000N9b400800FD; // cancel button on caller 0 is normally closed<br />
// :S0000N9b40070055; // cancel buttons on all callers are normally closed</p>
<p>get:<br />
9B NN NN<br />
// s0000n9b4008;<br />
// reply:<br />
// OK<br />
// :SE320N7C4008FD;</p>
<p>OPC_BEEP_CONNECT<br />
reply with all slot&#8217;s phone numbers, ack3 with i, PHi, PLi<br />
9F NH NL (datalen = 3)<br />
:S0000N9F4004;<br />
{<br />
:SE440N7C4004004004;<br />
:SE440N7C4004028002;<br />
:SE440N7C4004018003;<br />
:SE440N7C4004038001;<br />
}</p>
<p>set slot to phone number (datalen = 6):s0000n4004;<br />
9F NH NL SS PH PL</p>
<br />Filed under: <a href='http://nambabwe.wordpress.com/category/cbus/'>cbus</a>, <a href='http://nambabwe.wordpress.com/category/ee/'>ee</a>, <a href='http://nambabwe.wordpress.com/category/trains/'>trains</a> Tagged: <a href='http://nambabwe.wordpress.com/tag/cbus-2/'>CBUS</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nambabwe.wordpress.com/425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nambabwe.wordpress.com/425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nambabwe.wordpress.com/425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nambabwe.wordpress.com/425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nambabwe.wordpress.com/425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nambabwe.wordpress.com/425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nambabwe.wordpress.com/425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nambabwe.wordpress.com/425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nambabwe.wordpress.com/425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nambabwe.wordpress.com/425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nambabwe.wordpress.com/425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nambabwe.wordpress.com/425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nambabwe.wordpress.com/425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nambabwe.wordpress.com/425/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nambabwe.wordpress.com&amp;blog=3007739&amp;post=425&amp;subd=nambabwe&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nambabwe.wordpress.com/2012/01/02/opc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/805d5c525168dfb2c6d2e6f32bcb860f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nambabwe</media:title>
		</media:content>
	</item>
		<item>
		<title>the things we tell people using our software&#8230;</title>
		<link>http://nambabwe.wordpress.com/2011/12/20/the-things-we-tell-people-using-our-software/</link>
		<comments>http://nambabwe.wordpress.com/2011/12/20/the-things-we-tell-people-using-our-software/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 20:19:48 +0000</pubDate>
		<dc:creator>nambabwe</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[funny]]></category>

		<guid isPermaLink="false">http://nambabwe.wordpress.com/?p=421</guid>
		<description><![CDATA[So how are the two related? Hold on, I was installing Outlook? Filed under: Uncategorized Tagged: funny<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nambabwe.wordpress.com&amp;blog=3007739&amp;post=421&amp;subd=nambabwe&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So how are the two related? Hold on, I was installing Outlook?</p>
<p><a href="http://nambabwe.files.wordpress.com/2011/12/itunes_vs_outlook.png"><img src="http://nambabwe.files.wordpress.com/2011/12/itunes_vs_outlook.png?w=300&#038;h=140" alt="" title="itunes_vs_outlook" width="300" height="140" class="aligncenter size-medium wp-image-422" /></a></p>
<br />Filed under: <a href='http://nambabwe.wordpress.com/category/uncategorized/'>Uncategorized</a> Tagged: <a href='http://nambabwe.wordpress.com/tag/funny/'>funny</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nambabwe.wordpress.com/421/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nambabwe.wordpress.com/421/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nambabwe.wordpress.com/421/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nambabwe.wordpress.com/421/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nambabwe.wordpress.com/421/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nambabwe.wordpress.com/421/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nambabwe.wordpress.com/421/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nambabwe.wordpress.com/421/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nambabwe.wordpress.com/421/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nambabwe.wordpress.com/421/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nambabwe.wordpress.com/421/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nambabwe.wordpress.com/421/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nambabwe.wordpress.com/421/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nambabwe.wordpress.com/421/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nambabwe.wordpress.com&amp;blog=3007739&amp;post=421&amp;subd=nambabwe&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nambabwe.wordpress.com/2011/12/20/the-things-we-tell-people-using-our-software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/805d5c525168dfb2c6d2e6f32bcb860f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nambabwe</media:title>
		</media:content>

		<media:content url="http://nambabwe.files.wordpress.com/2011/12/itunes_vs_outlook.png?w=300" medium="image">
			<media:title type="html">itunes_vs_outlook</media:title>
		</media:content>
	</item>
		<item>
		<title>Ever wanted to have a small keyboard with only 5 keys?</title>
		<link>http://nambabwe.wordpress.com/2011/12/04/ever-wanted-to-have-a-small-keyboard-with-only-5-keys/</link>
		<comments>http://nambabwe.wordpress.com/2011/12/04/ever-wanted-to-have-a-small-keyboard-with-only-5-keys/#comments</comments>
		<pubDate>Sun, 04 Dec 2011 16:15:53 +0000</pubDate>
		<dc:creator>nambabwe</dc:creator>
				<category><![CDATA[ee]]></category>
		<category><![CDATA[it]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Keyboard]]></category>

		<guid isPermaLink="false">http://nambabwe.wordpress.com/?p=417</guid>
		<description><![CDATA[The need is simple, a small/tiny keyboard that fits in your pocket to use in the lab or production floor to assist in running a test or installing something without having the space to put a full size keyboard. By the time you have the on screen keyboard up and working with a mouse or [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nambabwe.wordpress.com&amp;blog=3007739&amp;post=417&amp;subd=nambabwe&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The need is simple, a small/tiny keyboard that fits in your pocket to use in the lab or production floor to assist in running a test or installing something without having the space to put a full size keyboard. By the time you have the on screen keyboard up and working with a mouse or touch screen, you really don&#8217;t feel like doing the task any more. So a simple keyboard with just 5 keys, , , , es and o will do wonders!</p>
<p>I had a keyboard abused by the next generation with a few missing keys that I was about to throw in the dumpster, when I noticed that there are about 20 screws keeping the thing together, so of course, the curiosity got the upper hand! &#8220;What could be so important to be kept behind 20 screws?&#8221; Once opened, there was nothing waaau in the Logitech keyboard, but a tiny circuit board with 3 LEDs and the two connectors to the keyboard matrix. And a USB cable, of course.</p>
<p>Looking at the 2&#215;1 inch board, I recalled my desire to build a tiny keyboard&#8230;so I tried it out. Soldered a momentary push button switch (NO) to the two tracks I traced from the ENTER button location, plugged it into the computer&#8217;s USB port and sure, I had a single () button key(board)!!!</p>
<p>How to use the input-utils package in Ubuntu:</p>
<p>http://smackerelofopinion.blogspot.com/2009/08/input-utils-package-are-bunch-of-tools.html</p>
<p>Finding you keyboard (or input device now)<br />
<code>~$ sudo lsinput</code> will list all the input devices as <code>/dev/input/eventX</code></p>
<p>And since the Logitech has X=2 here, from a <code>sudo input-events 2</code> you&#8217;ll see the following by pressing and releasing the button:</p>
<p>~$ sudo input-events 2</p>
<p>/dev/input/event2<br />
   bustype : BUS_USB<br />
   vendor  : 0x46d<br />
   product : 0xc315<br />
   version : 272<br />
   name    : &#8220;Logitech Logitech USB Keyboard&#8221;<br />
   phys    : &#8220;usb-0000:00:1a.7-3.2/input0&#8243;<br />
   uniq    : &#8220;&#8221;<br />
   bits ev : EV_SYN EV_KEY EV_MSC EV_LED EV_REP</p>
<p>waiting for events<br />
09:55:02.033247: EV_MSC code=4 value=458840<br />
09:55:02.033252: EV_KEY KEY_KPENTER (0&#215;60) pressed<br />
09:55:02.033254: EV_SYN code=0 value=0</p>
<p>09:55:02.105242: EV_MSC code=4 value=458840<br />
09:55:02.105246: EV_KEY KEY_KPENTER (0&#215;60) released<br />
09:55:02.105247: EV_SYN code=0 value=0</p>
<p>So let me get find and attach the , ,  and  and then take some pictures!!!</p>
<br />Filed under: <a href='http://nambabwe.wordpress.com/category/ee/'>ee</a>, <a href='http://nambabwe.wordpress.com/category/it/'>it</a>, <a href='http://nambabwe.wordpress.com/category/linux/'>linux</a> Tagged: <a href='http://nambabwe.wordpress.com/tag/keyboard/'>Keyboard</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nambabwe.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nambabwe.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nambabwe.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nambabwe.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nambabwe.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nambabwe.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nambabwe.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nambabwe.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nambabwe.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nambabwe.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nambabwe.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nambabwe.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nambabwe.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nambabwe.wordpress.com/417/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nambabwe.wordpress.com&amp;blog=3007739&amp;post=417&amp;subd=nambabwe&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nambabwe.wordpress.com/2011/12/04/ever-wanted-to-have-a-small-keyboard-with-only-5-keys/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/805d5c525168dfb2c6d2e6f32bcb860f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nambabwe</media:title>
		</media:content>
	</item>
		<item>
		<title></title>
		<link>http://nambabwe.wordpress.com/2011/08/12/406/</link>
		<comments>http://nambabwe.wordpress.com/2011/08/12/406/#comments</comments>
		<pubDate>Fri, 12 Aug 2011 17:04:27 +0000</pubDate>
		<dc:creator>nambabwe</dc:creator>
				<category><![CDATA[it]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[xp]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://nambabwe.wordpress.com/?p=406</guid>
		<description><![CDATA[On a Dell Optiplex, it takes more than 5 minutes to shut Windows XP Pro down. Even pressing the power button results in almost no action for 60 seconds before the log out starts! Latest Service Pack, ALL the Windows Updates to date Things tried: HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/WaitToKillServiceTimeout set to 200 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management was already set [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nambabwe.wordpress.com&amp;blog=3007739&amp;post=406&amp;subd=nambabwe&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>On a Dell Optiplex, it takes more than 5 minutes to shut Windows XP Pro down. Even pressing the power button results in almost no action for 60 seconds before the log out starts!</p>
<p>Latest Service Pack, ALL the Windows Updates to date<br />
Things tried:</p>
<p>HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/WaitToKillServiceTimeout set to <a href="http://www.suggestafix.com/index.php?showtopic=15429">200</a></p>
<p>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management was already set to <a href="http://reviews.cnet.com/4520-10165_7-5554402-1.html?tag=posts;msg1149738">0</a></p>
<br />Filed under: <a href='http://nambabwe.wordpress.com/category/it/'>it</a>, <a href='http://nambabwe.wordpress.com/category/windows/'>windows</a>, <a href='http://nambabwe.wordpress.com/category/xp/'>xp</a> Tagged: <a href='http://nambabwe.wordpress.com/tag/it/'>it</a>, <a href='http://nambabwe.wordpress.com/tag/software/'>software</a>, <a href='http://nambabwe.wordpress.com/tag/windows/'>windows</a>, <a href='http://nambabwe.wordpress.com/tag/xp/'>xp</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nambabwe.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nambabwe.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nambabwe.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nambabwe.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nambabwe.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nambabwe.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nambabwe.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nambabwe.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nambabwe.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nambabwe.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nambabwe.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nambabwe.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nambabwe.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nambabwe.wordpress.com/406/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nambabwe.wordpress.com&amp;blog=3007739&amp;post=406&amp;subd=nambabwe&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nambabwe.wordpress.com/2011/08/12/406/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/805d5c525168dfb2c6d2e6f32bcb860f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nambabwe</media:title>
		</media:content>
	</item>
		<item>
		<title>putting code into a Wiki with PHP!</title>
		<link>http://nambabwe.wordpress.com/2011/08/11/putting-code-into-a-wiki-with-php/</link>
		<comments>http://nambabwe.wordpress.com/2011/08/11/putting-code-into-a-wiki-with-php/#comments</comments>
		<pubDate>Thu, 11 Aug 2011 15:32:28 +0000</pubDate>
		<dc:creator>nambabwe</dc:creator>
				<category><![CDATA[it]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[mediawiki]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://nambabwe.wordpress.com/?p=401</guid>
		<description><![CDATA[Need to get the inputs for the form from the URL, but without showing warnings when they are not specified: global $wgOut; $toDecode = ''; if ( !empty( $_GET )  ) { &#160;&#160;if ( isset($_GET['decode'] ) ) { &#160;&#160;&#160;&#160;$toDecode = $_GET['decode']; &#160;&#160;} } if ( empty($toDecode )  ) { &#160;&#160;$input = '8038'; # default value [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nambabwe.wordpress.com&amp;blog=3007739&amp;post=401&amp;subd=nambabwe&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Need to get the inputs for the form from the URL, but without showing warnings when they are not specified:</p>
<p><code><br />
global $wgOut;</p>
<p>$toDecode = '';<br />
if ( !empty( $_GET )  ) {<br />
&nbsp;&nbsp;if ( isset($_GET['decode'] ) ) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;$toDecode = $_GET['decode'];<br />
&nbsp;&nbsp;}<br />
}</p>
<p>if ( empty($toDecode )  ) {<br />
&nbsp;&nbsp;$input = '8038';   # default value if none specified<br />
} else {<br />
&nbsp;&nbsp;$input = $toDecode;<br />
}</p>
<p># end then the output...</p>
<p>$output .= '&lt;textarea name="formula" cols="10" rows="1" wrap="off"/&gt;';<br />
$output .= $input;<br />
$output .= '&lt;/textarea&gt;<br />
</code></p>
<br />Filed under: <a href='http://nambabwe.wordpress.com/category/it/'>it</a>, <a href='http://nambabwe.wordpress.com/category/php/'>php</a> Tagged: <a href='http://nambabwe.wordpress.com/tag/it/'>it</a>, <a href='http://nambabwe.wordpress.com/tag/mediawiki/'>mediawiki</a>, <a href='http://nambabwe.wordpress.com/tag/php/'>php</a>, <a href='http://nambabwe.wordpress.com/tag/software/'>software</a>, <a href='http://nambabwe.wordpress.com/tag/webserver/'>webserver</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nambabwe.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nambabwe.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nambabwe.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nambabwe.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nambabwe.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nambabwe.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nambabwe.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nambabwe.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nambabwe.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nambabwe.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nambabwe.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nambabwe.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nambabwe.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nambabwe.wordpress.com/401/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nambabwe.wordpress.com&amp;blog=3007739&amp;post=401&amp;subd=nambabwe&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nambabwe.wordpress.com/2011/08/11/putting-code-into-a-wiki-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/805d5c525168dfb2c6d2e6f32bcb860f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nambabwe</media:title>
		</media:content>
	</item>
		<item>
		<title>Shortcuts in Ubuntu? At least up to 10.10&#8230;</title>
		<link>http://nambabwe.wordpress.com/2011/08/01/shortcuts-in-ubuntu-at-least-up-to-10-10/</link>
		<comments>http://nambabwe.wordpress.com/2011/08/01/shortcuts-in-ubuntu-at-least-up-to-10-10/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 12:37:54 +0000</pubDate>
		<dc:creator>nambabwe</dc:creator>
				<category><![CDATA[it]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shortcuts]]></category>

		<guid isPermaLink="false">http://nambabwe.wordpress.com/?p=397</guid>
		<description><![CDATA[Create your own with &#60;Alt-F2&#62;  gconf-editor in /apps/metacity/keybinding_commands and global_keybindings:  http://www.howtogeek.com/howto/ubuntu/assign-custom-shortcut-keys-on-ubuntu-linux/ Or use something that already exists in there: http://beginlinux.wordpress.com/2009/04/30/shortcuts-that-work-for-ubuntu-904/ &#160; (use lsb_release -a to get your Ubuntu version) &#160; &#160; &#160; &#160; Filed under: it, linux Tagged: it, linux, shortcuts<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nambabwe.wordpress.com&amp;blog=3007739&amp;post=397&amp;subd=nambabwe&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Create your own with &lt;Alt-F2&gt;  gconf-editor in /apps/metacity/keybinding_commands and global_keybindings:  <a href="http://www.howtogeek.com/howto/ubuntu/assign-custom-shortcut-keys-on-ubuntu-linux/">http://www.howtogeek.com/howto/ubuntu/assign-custom-shortcut-keys-on-ubuntu-linux/</a></p>
<p>Or use something that already exists in there: <a href="http://beginlinux.wordpress.com/2009/04/30/shortcuts-that-work-for-ubuntu-904/">http://beginlinux.wordpress.com/2009/04/30/shortcuts-that-work-for-ubuntu-904/</a></p>
<p>&nbsp;</p>
<p>(use lsb_release -a to get your Ubuntu version)</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br />Filed under: <a href='http://nambabwe.wordpress.com/category/it/'>it</a>, <a href='http://nambabwe.wordpress.com/category/linux/'>linux</a> Tagged: <a href='http://nambabwe.wordpress.com/tag/it/'>it</a>, <a href='http://nambabwe.wordpress.com/tag/linux/'>linux</a>, <a href='http://nambabwe.wordpress.com/tag/shortcuts/'>shortcuts</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nambabwe.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nambabwe.wordpress.com/397/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nambabwe.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nambabwe.wordpress.com/397/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nambabwe.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nambabwe.wordpress.com/397/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nambabwe.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nambabwe.wordpress.com/397/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nambabwe.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nambabwe.wordpress.com/397/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nambabwe.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nambabwe.wordpress.com/397/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nambabwe.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nambabwe.wordpress.com/397/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nambabwe.wordpress.com&amp;blog=3007739&amp;post=397&amp;subd=nambabwe&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nambabwe.wordpress.com/2011/08/01/shortcuts-in-ubuntu-at-least-up-to-10-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/805d5c525168dfb2c6d2e6f32bcb860f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nambabwe</media:title>
		</media:content>
	</item>
		<item>
		<title>Window changed in Java?</title>
		<link>http://nambabwe.wordpress.com/2011/05/30/window-changed-in-java/</link>
		<comments>http://nambabwe.wordpress.com/2011/05/30/window-changed-in-java/#comments</comments>
		<pubDate>Mon, 30 May 2011 03:38:03 +0000</pubDate>
		<dc:creator>nambabwe</dc:creator>
				<category><![CDATA[it]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[devel]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://nambabwe.wordpress.com/?p=386</guid>
		<description><![CDATA[if (yes) { if (!this.getTitle().endsWith(" *")) { this.setTitle(this.getTitle() + " *"); } } else { this.setTitle(this.getTitle().replace(" *", "")); } Filed under: it, java, linux, windows Tagged: devel, it, java, software, ubuntu, windows<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nambabwe.wordpress.com&amp;blog=3007739&amp;post=386&amp;subd=nambabwe&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><code>if (yes) {<br />
if (!this.getTitle().endsWith(" *")) {<br />
this.setTitle(this.getTitle() + " *");<br />
}<br />
} else {<br />
this.setTitle(this.getTitle().replace(" *", ""));<br />
}<br />
</code></p>
<br />Filed under: <a href='http://nambabwe.wordpress.com/category/it/'>it</a>, <a href='http://nambabwe.wordpress.com/category/java/'>java</a>, <a href='http://nambabwe.wordpress.com/category/linux/'>linux</a>, <a href='http://nambabwe.wordpress.com/category/windows/'>windows</a> Tagged: <a href='http://nambabwe.wordpress.com/tag/devel/'>devel</a>, <a href='http://nambabwe.wordpress.com/tag/it/'>it</a>, <a href='http://nambabwe.wordpress.com/tag/java/'>java</a>, <a href='http://nambabwe.wordpress.com/tag/software/'>software</a>, <a href='http://nambabwe.wordpress.com/tag/ubuntu/'>ubuntu</a>, <a href='http://nambabwe.wordpress.com/tag/windows/'>windows</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nambabwe.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nambabwe.wordpress.com/386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nambabwe.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nambabwe.wordpress.com/386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nambabwe.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nambabwe.wordpress.com/386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nambabwe.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nambabwe.wordpress.com/386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nambabwe.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nambabwe.wordpress.com/386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nambabwe.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nambabwe.wordpress.com/386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nambabwe.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nambabwe.wordpress.com/386/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nambabwe.wordpress.com&amp;blog=3007739&amp;post=386&amp;subd=nambabwe&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nambabwe.wordpress.com/2011/05/30/window-changed-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/805d5c525168dfb2c6d2e6f32bcb860f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nambabwe</media:title>
		</media:content>
	</item>
		<item>
		<title>JMRI 2.11.2 Error during loading /dev/ttyUSB0 not found while opening connection</title>
		<link>http://nambabwe.wordpress.com/2011/02/18/jmri-2-11-2-error-during-loading-devttyusb0-not-found-while-opening-connection/</link>
		<comments>http://nambabwe.wordpress.com/2011/02/18/jmri-2-11-2-error-during-loading-devttyusb0-not-found-while-opening-connection/#comments</comments>
		<pubDate>Fri, 18 Feb 2011 05:37:15 +0000</pubDate>
		<dc:creator>nambabwe</dc:creator>
				<category><![CDATA[it]]></category>
		<category><![CDATA[JMRI]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[trains]]></category>

		<guid isPermaLink="false">http://nambabwe.wordpress.com/?p=387</guid>
		<description><![CDATA[The device is recognised: anotheruser@dnpp:/dev$dmesg: [ 2019.583226] ftdi_sio 6-2:1.0: FTDI USB Serial Device converter detected [ 2019.583271] usb 6-2: Detected FT232RL &#8230; [ 2019.584338] usb 6-2: FTDI USB Serial Device converter now attached to ttyUSB0 And we are in the correct group and the device has &#8216;rw&#8217; permissions to us: anotheruser@dnpp:/dev$ ls /dev/ttyU* -al crw-rw&#8212;- [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nambabwe.wordpress.com&amp;blog=3007739&amp;post=387&amp;subd=nambabwe&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><em></p>
<div id="attachment_391" class="wp-caption aligncenter" style="width: 310px"><em><a href="http://nambabwe.files.wordpress.com/2011/02/jmrifail.png"><img class="size-medium wp-image-391" title="jmri fail" src="http://nambabwe.files.wordpress.com/2011/02/jmrifail.png?w=300&#038;h=101" alt="" width="300" height="101" /></a></em><p class="wp-caption-text">jmri fail when...???</p></div>
<p>The device is recognised:</em></p>
<p>anotheruser@dnpp:/dev$dmesg:</p>
<p>[ 2019.583226] ftdi_sio 6-2:1.0: FTDI USB Serial Device converter detected<br />
[ 2019.583271] usb 6-2: Detected FT232RL</p>
<p>&#8230;<br />
[ 2019.584338] usb 6-2: FTDI USB Serial Device converter now attached to ttyUSB0</p>
<p><em>And we are in the correct group and the device has &#8216;rw&#8217; permissions to us:</em></p>
<p>anotheruser@dnpp:/dev$ ls /dev/ttyU* -al<br />
crw-<strong>rw</strong>&#8212;- 1 root <strong>dialout</strong> 188, 0 2011-02-17 23:13 /dev/ttyUSB0</p>
<p>anotheruser@dnpp:/dev$ groups<br />
anotheruser adm <strong>dialout</strong> cdrom plugdev lpadmin admin</p>
<p><em>But there is a lock file, and we don&#8217;t have rights to remove it (since the first user logged out):</em></p>
<p>anotheruser@dnpp:/var/lock$ ls -l<br />
total 4<br />
-r&#8211;r&#8211;r&#8211; 1 firstuser firstuser 11 2011-02-17 23:14 LCK..ttyUSB0</p>
<p>anotheruser@dnpp:/var/lock$ rm LCK..ttyUSB0<br />
rm: remove write-protected regular file `LCK..ttyUSB0&#8242;? y<br />
rm: cannot remove `LCK..ttyUSB0&#8242;: Operation not permitted</p>
<p><em>And neither does JMRI as shown in the JMRI System Console, except that the error message chases you down the no USB or no permission path for hours:</em></p>
<p>log4j:ERROR setFile(null,false) call failed.<br />
java.io.<strong>FileNotFoundException</strong>: messages.log (Permission denied)<br />
at java.io.FileOutputStream.open(Native Method)<br />
at java.io.FileOutputStream.&lt;init&gt;(FileOutputStream.java:209)</p>
<p>&#8230;</p>
<p><strong>(but confusingly this is added)</strong></p>
<p>688 gridconnect.GcSerialDriverAdapter   ERROR &#8211; Serial port<strong> /dev/ttyUSB0 not found</strong> [main]<br />
690 configurexml.ErrorHandler   ERROR -<strong> /dev/ttyUSB0 not found</strong> while opening connection [main]</p>
<p><em>But from the command line, you can see more information interleaved between the log entries:</em></p>
<p>RXTX Warning:  Removing stale lock file. /var/lock/LCK..ttyUSB0<br />
RXTX Error: <strong> Unable to     remove stale lock file</strong>: /var/lock/LCK..ttyUSB0<br />
RXTX Warning:  Removing stale lock file. /var/lock/LCK..ttyUSB0<br />
RXTX Error:  <strong>Unable to     remove stale lock file</strong>: /var/lock/LCK..ttyUSB0</p>
<p>So maybe JMRI is not the source of the problem, but rather RxTx?!?</p>
<p>The bigger question is however, why does JMRI (or RxTx) leave a &#8220;stale lock file&#8221; every time it exits? If you run JMRI the very first time, you create the lock file, so when you run it again, you have permission to remove the lock file&#8230;unfortunately when someone else tries to run JMRI, they can&#8217;t delete your stale lock file!</p>
<br />Filed under: <a href='http://nambabwe.wordpress.com/category/it/'>it</a>, <a href='http://nambabwe.wordpress.com/category/jmri/'>JMRI</a>, <a href='http://nambabwe.wordpress.com/category/linux/'>linux</a>, <a href='http://nambabwe.wordpress.com/category/trains/'>trains</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nambabwe.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nambabwe.wordpress.com/387/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nambabwe.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nambabwe.wordpress.com/387/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nambabwe.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nambabwe.wordpress.com/387/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nambabwe.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nambabwe.wordpress.com/387/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nambabwe.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nambabwe.wordpress.com/387/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nambabwe.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nambabwe.wordpress.com/387/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nambabwe.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nambabwe.wordpress.com/387/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nambabwe.wordpress.com&amp;blog=3007739&amp;post=387&amp;subd=nambabwe&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nambabwe.wordpress.com/2011/02/18/jmri-2-11-2-error-during-loading-devttyusb0-not-found-while-opening-connection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/805d5c525168dfb2c6d2e6f32bcb860f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nambabwe</media:title>
		</media:content>

		<media:content url="http://nambabwe.files.wordpress.com/2011/02/jmrifail.png?w=300" medium="image">
			<media:title type="html">jmri fail</media:title>
		</media:content>
	</item>
		<item>
		<title>network scanning&#8230;</title>
		<link>http://nambabwe.wordpress.com/2011/02/01/network-scanning/</link>
		<comments>http://nambabwe.wordpress.com/2011/02/01/network-scanning/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 01:53:25 +0000</pubDate>
		<dc:creator>nambabwe</dc:creator>
				<category><![CDATA[it]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://nambabwe.wordpress.com/?p=382</guid>
		<description><![CDATA[sudo apt-get install nmap nmap -sP 192.168.0.1-255 Filed under: it, linux Tagged: network, networking, ubuntu<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nambabwe.wordpress.com&amp;blog=3007739&amp;post=382&amp;subd=nambabwe&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>sudo apt-get install nmap</p>
<p>nmap -sP 192.168.0.1-255</p>
<br />Filed under: <a href='http://nambabwe.wordpress.com/category/it/'>it</a>, <a href='http://nambabwe.wordpress.com/category/linux/'>linux</a> Tagged: <a href='http://nambabwe.wordpress.com/tag/network/'>network</a>, <a href='http://nambabwe.wordpress.com/tag/networking/'>networking</a>, <a href='http://nambabwe.wordpress.com/tag/ubuntu/'>ubuntu</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nambabwe.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nambabwe.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nambabwe.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nambabwe.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nambabwe.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nambabwe.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nambabwe.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nambabwe.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nambabwe.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nambabwe.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nambabwe.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nambabwe.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nambabwe.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nambabwe.wordpress.com/382/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nambabwe.wordpress.com&amp;blog=3007739&amp;post=382&amp;subd=nambabwe&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nambabwe.wordpress.com/2011/02/01/network-scanning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/805d5c525168dfb2c6d2e6f32bcb860f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nambabwe</media:title>
		</media:content>
	</item>
	</channel>
</rss>
