tag:blogger.com,1999:blog-149246602024-03-13T12:58:07.118+01:00Threaded's Eclectic Blog'Tis only threaded's thoughts, comments & miscellaneous abuse about, well, anything really.threadedhttp://www.blogger.com/profile/14939293458902056129noreply@blogger.comBlogger319125tag:blogger.com,1999:blog-14924660.post-36087242882693721112011-09-07T11:15:00.000+02:002011-09-07T11:15:03.200+02:00Disable Mac OS X Paging / SwapI wondered why a Mac with a full 64Gb RAM was swapping even for simple surfing. I was seeing inexplicable beach-ball appearances. So did this:<br />
<br />
<div style="font-family: "Courier New",Courier,monospace;">sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist</div><div style="font-family: "Courier New",Courier,monospace;"><br />
</div><div style="font-family: "Courier New",Courier,monospace;">sudo rm /private/var/vm/swapfile*</div><br />
Which switches the swap off and deletes the swap files.<br />
<br />
My own process monitor confirms the machine runs slightly faster now, and have not seen the beach-ball since.<br />
<br />
There is probably a down-side, but have yet to hit it.<div class="blogger-post-footer"><!-- AddThis Button for Post BEGIN -->
<div><a expr:href='"http://www.addthis.com/bookmark.php?pub=threaded&url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Bookmark and Share'><img src='http://s9.addthis.com/button1-share.gif' width='125' height='16' style='border: 0px; padding: 0px' alt='Bookmark and Share' /></a></div>
<!-- AddThis Button for Post END --></div>threadedhttp://www.blogger.com/profile/14939293458902056129noreply@blogger.com0tag:blogger.com,1999:blog-14924660.post-46484105466265541622011-08-01T09:37:00.002+02:002011-08-01T09:37:54.930+02:00Itsy bitsy spider: an analysisItsy bitsy spider crawled up the spout.<br />
Down came the rain, and washed the spider out.<br />
Out came the sun, and dried up all the rain,<br />
and itsy bitsy spider went up the spout again.<br />
<br />
<u>An Analysis.</u><br />
<br />
The Spider symbolises the proletariat and the ongoing struggle against the bourgeoisie.<br />
<br />
The Spout is the myth of equality. The Spider continues to doggedly scale it's heights, only to be denied the fruits of his labours.<br />
<br />
The Rain is the bourgeoisie, impeding the progress of the Spider, standing between him and his ultimate goal of true freedom and equality. The Rain also embodies man's inhumanity to man.<br />
<br />
The Sun is the easing of difficult working and living conditions. It provides false hope for the Spider, prolonging his struggle.<div class="blogger-post-footer"><!-- AddThis Button for Post BEGIN -->
<div><a expr:href='"http://www.addthis.com/bookmark.php?pub=threaded&url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Bookmark and Share'><img src='http://s9.addthis.com/button1-share.gif' width='125' height='16' style='border: 0px; padding: 0px' alt='Bookmark and Share' /></a></div>
<!-- AddThis Button for Post END --></div>threadedhttp://www.blogger.com/profile/14939293458902056129noreply@blogger.com0tag:blogger.com,1999:blog-14924660.post-51170184776944810022011-07-31T11:10:00.000+02:002011-07-31T11:10:38.451+02:00Itsy bitsy spiderItsy bitsy spider crawled up the spout.<br />
Down came the rain, and washed the spider out.<br />
Out came the sun, and dried up all the rain,<br />
and itsy bitsy spider went up the spout again.<br />
<br />
<u>An Analysis.</u><br />
<br />
The Spider symbolises the proletariat and the ongoing struggle against the bourgeoisie.<br />
<br />
The Spout is the myth of equality. The Spider continues to doggedly scale it's heights, only to be denied the fruits of his labours.<br />
<br />
The Rain is the bourgeoisie, impeding the progress of the Spider, standing between him and his ultimate goal of true freedom and equality. The Rain also embodies man's inhumanity to man.<br />
<br />
The Sun is the easing of difficult working and living conditions. It provides false hope for the Spider, prolonging his struggle.<div class="blogger-post-footer"><!-- AddThis Button for Post BEGIN -->
<div><a expr:href='"http://www.addthis.com/bookmark.php?pub=threaded&url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Bookmark and Share'><img src='http://s9.addthis.com/button1-share.gif' width='125' height='16' style='border: 0px; padding: 0px' alt='Bookmark and Share' /></a></div>
<!-- AddThis Button for Post END --></div>threadedhttp://www.blogger.com/profile/14939293458902056129noreply@blogger.com0tag:blogger.com,1999:blog-14924660.post-42511021895852041392011-07-25T15:40:00.002+02:002011-07-25T15:42:36.037+02:00Mac Pro Wifi and Bluetooth reception problems?On your Mac Pro do you have issues with your Wifi reception quality, and Bluetooth connectivity?<br />
<br />
Does the Wifi seem very weak, even though the router is just across the room?<br />
<br />
Does the Bluetooth need you to be right up close? <br />
<br />
Bizarrely it might be that the Airport and Bluetooth modules inside the Mac Pro were connected to the wrong aerial leads at manufacture.<br />
<br />
Well, take a look at this page, especially the note following Step Five.<br />
<br />
<a href="http://guides.macrumors.com/Adding_Bluetooth_and_Wireless_to_a_Mac_Pro">http://guides.macrumors.com/Adding_Bluetooth_and_Wireless_to_a_Mac_Pro</a><div class="blogger-post-footer"><!-- AddThis Button for Post BEGIN -->
<div><a expr:href='"http://www.addthis.com/bookmark.php?pub=threaded&url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Bookmark and Share'><img src='http://s9.addthis.com/button1-share.gif' width='125' height='16' style='border: 0px; padding: 0px' alt='Bookmark and Share' /></a></div>
<!-- AddThis Button for Post END --></div>threadedhttp://www.blogger.com/profile/14939293458902056129noreply@blogger.com0tag:blogger.com,1999:blog-14924660.post-25559401369521804772011-04-08T19:05:00.001+02:002011-04-08T19:05:55.967+02:00Google calendar gadget not showing eventsI cleared my cookies and that fixed the problem.<div class="blogger-post-footer"><!-- AddThis Button for Post BEGIN -->
<div><a expr:href='"http://www.addthis.com/bookmark.php?pub=threaded&url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Bookmark and Share'><img src='http://s9.addthis.com/button1-share.gif' width='125' height='16' style='border: 0px; padding: 0px' alt='Bookmark and Share' /></a></div>
<!-- AddThis Button for Post END --></div>threadedhttp://www.blogger.com/profile/14939293458902056129noreply@blogger.com0tag:blogger.com,1999:blog-14924660.post-26132375437708778582011-03-11T11:16:00.000+01:002011-03-11T11:16:30.257+01:00MacPorts Pallet asks for TclYou have to use the directory where macports1.0 was installed by MacPorts.<br />
Try:<br />
/opt/local/share/macports/Tcl<div class="blogger-post-footer"><!-- AddThis Button for Post BEGIN -->
<div><a expr:href='"http://www.addthis.com/bookmark.php?pub=threaded&url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Bookmark and Share'><img src='http://s9.addthis.com/button1-share.gif' width='125' height='16' style='border: 0px; padding: 0px' alt='Bookmark and Share' /></a></div>
<!-- AddThis Button for Post END --></div>threadedhttp://www.blogger.com/profile/14939293458902056129noreply@blogger.com1tag:blogger.com,1999:blog-14924660.post-10025057926181243922011-01-11T07:50:00.000+01:002011-01-11T07:50:41.119+01:00Changing the origin of your git repositoryWhat is is with some project managers and similar who want to move repositories about? I've never understood why this is necessary. Anyways the command is something like...<br />
<br />
<i>git config remote.origin.url «git@10.0.0.1:gitrepo/code.git»</i><br />
<br />
You can check it by <i>cat</i>ing the file <i>.git/config</i>, looking for the <i>remote origin</i> section and in there will be the new <i>url</i>.<br />
<br />
<i>[remote "origin"]<br />
url = git@10.0.0.1:gitrepo/code.git</i><div class="blogger-post-footer"><!-- AddThis Button for Post BEGIN -->
<div><a expr:href='"http://www.addthis.com/bookmark.php?pub=threaded&url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Bookmark and Share'><img src='http://s9.addthis.com/button1-share.gif' width='125' height='16' style='border: 0px; padding: 0px' alt='Bookmark and Share' /></a></div>
<!-- AddThis Button for Post END --></div>threadedhttp://www.blogger.com/profile/14939293458902056129noreply@blogger.com0tag:blogger.com,1999:blog-14924660.post-85192409410923045422010-06-22T17:59:00.003+02:002010-11-24T17:47:34.455+01:00Bee hives<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_4P8DoWIzOkM/TCDesvnOwfI/AAAAAAAAAMI/_WK9VwmPqqY/s1600/SANY0558.JPG"><img style="cursor:pointer; cursor:hand;width: 320px; height: 239px;" src="http://3.bp.blogspot.com/_4P8DoWIzOkM/TCDesvnOwfI/AAAAAAAAAMI/_WK9VwmPqqY/s320/SANY0558.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5485629206413885938" /></a><br />
<br />
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_4P8DoWIzOkM/TCDer8QS6JI/AAAAAAAAAMA/cTB43pOGcxA/s1600/SANY0552.JPG"><img style="cursor:pointer; cursor:hand;width: 320px; height: 239px;" src="http://4.bp.blogspot.com/_4P8DoWIzOkM/TCDer8QS6JI/AAAAAAAAAMA/cTB43pOGcxA/s320/SANY0552.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5485629192627480722" /></a><br />
<br />
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_4P8DoWIzOkM/TCDermjbqhI/AAAAAAAAAL4/MuQZV57e7yM/s1600/SANY0549.JPG"><img style="cursor:pointer; cursor:hand;width: 320px; height: 239px;" src="http://4.bp.blogspot.com/_4P8DoWIzOkM/TCDermjbqhI/AAAAAAAAAL4/MuQZV57e7yM/s320/SANY0549.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5485629186802166290" /></a><div class="blogger-post-footer"><!-- AddThis Button for Post BEGIN -->
<div><a expr:href='"http://www.addthis.com/bookmark.php?pub=threaded&url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Bookmark and Share'><img src='http://s9.addthis.com/button1-share.gif' width='125' height='16' style='border: 0px; padding: 0px' alt='Bookmark and Share' /></a></div>
<!-- AddThis Button for Post END --></div>threadedhttp://www.blogger.com/profile/14939293458902056129noreply@blogger.com0tag:blogger.com,1999:blog-14924660.post-16484081022871486602010-06-07T23:09:00.003+02:002010-11-24T17:48:00.352+01:00Sunset<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_4P8DoWIzOkM/TA1gXF12hoI/AAAAAAAAALw/vtFbaM0b_MM/s1600/SANY0035.JPG"><img style="cursor:pointer; cursor:hand;width: 320px; height: 239px;" src="http://2.bp.blogspot.com/_4P8DoWIzOkM/TA1gXF12hoI/AAAAAAAAALw/vtFbaM0b_MM/s320/SANY0035.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5480142271401068162" /></a><div class="blogger-post-footer"><!-- AddThis Button for Post BEGIN -->
<div><a expr:href='"http://www.addthis.com/bookmark.php?pub=threaded&url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Bookmark and Share'><img src='http://s9.addthis.com/button1-share.gif' width='125' height='16' style='border: 0px; padding: 0px' alt='Bookmark and Share' /></a></div>
<!-- AddThis Button for Post END --></div>threadedhttp://www.blogger.com/profile/14939293458902056129noreply@blogger.com0tag:blogger.com,1999:blog-14924660.post-74298442971122975272010-06-07T16:45:00.003+02:002010-11-24T17:48:17.251+01:00Ferrari 430 Spider F1<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_4P8DoWIzOkM/TA0GSzZJFBI/AAAAAAAAALo/dOowMzBfhBY/s1600/SANY0069.JPG"><img style="cursor:pointer; cursor:hand;width: 320px; height: 239px;" src="http://4.bp.blogspot.com/_4P8DoWIzOkM/TA0GSzZJFBI/AAAAAAAAALo/dOowMzBfhBY/s320/SANY0069.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5480043241682834450" /></a><br />
<br />
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_4P8DoWIzOkM/TA0GSsRrkBI/AAAAAAAAALg/jI0rJi77CwE/s1600/SANY0067.JPG"><img style="cursor:pointer; cursor:hand;width: 320px; height: 239px;" src="http://1.bp.blogspot.com/_4P8DoWIzOkM/TA0GSsRrkBI/AAAAAAAAALg/jI0rJi77CwE/s320/SANY0067.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5480043239772491794" /></a><div class="blogger-post-footer"><!-- AddThis Button for Post BEGIN -->
<div><a expr:href='"http://www.addthis.com/bookmark.php?pub=threaded&url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Bookmark and Share'><img src='http://s9.addthis.com/button1-share.gif' width='125' height='16' style='border: 0px; padding: 0px' alt='Bookmark and Share' /></a></div>
<!-- AddThis Button for Post END --></div>threadedhttp://www.blogger.com/profile/14939293458902056129noreply@blogger.com0tag:blogger.com,1999:blog-14924660.post-84633730368903649192010-06-06T14:28:00.004+02:002010-11-24T17:48:31.700+01:00Dodge ViperDodge Viper twin turbo engine.<br />
<br />
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_4P8DoWIzOkM/TAuVJvRdBbI/AAAAAAAAALY/jedutp8nLbE/s1600/SANY0089.JPG"><img style="cursor:pointer; cursor:hand;width: 320px; height: 239px;" src="http://1.bp.blogspot.com/_4P8DoWIzOkM/TAuVJvRdBbI/AAAAAAAAALY/jedutp8nLbE/s320/SANY0089.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5479637366167373234" /></a><br />
<br />
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_4P8DoWIzOkM/TAuVJBRxiVI/AAAAAAAAALQ/i7F85qohgso/s1600/SANY0088.JPG"><img style="cursor:pointer; cursor:hand;width: 320px; height: 239px;" src="http://3.bp.blogspot.com/_4P8DoWIzOkM/TAuVJBRxiVI/AAAAAAAAALQ/i7F85qohgso/s320/SANY0088.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5479637353820686674" /></a><br />
<br />
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_4P8DoWIzOkM/TAuVIz0BXNI/AAAAAAAAALI/EM_BHm8piFM/s1600/SANY0021.JPG"><img style="cursor:pointer; cursor:hand;width: 320px; height: 239px;" src="http://2.bp.blogspot.com/_4P8DoWIzOkM/TAuVIz0BXNI/AAAAAAAAALI/EM_BHm8piFM/s320/SANY0021.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5479637350206233810" /></a><div class="blogger-post-footer"><!-- AddThis Button for Post BEGIN -->
<div><a expr:href='"http://www.addthis.com/bookmark.php?pub=threaded&url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Bookmark and Share'><img src='http://s9.addthis.com/button1-share.gif' width='125' height='16' style='border: 0px; padding: 0px' alt='Bookmark and Share' /></a></div>
<!-- AddThis Button for Post END --></div>threadedhttp://www.blogger.com/profile/14939293458902056129noreply@blogger.com0tag:blogger.com,1999:blog-14924660.post-37701791195448322442010-06-06T14:21:00.005+02:002010-11-24T17:48:58.063+01:00DeTomaso PanteraEdelBrock modified engine mid-mounted in a DeTomaso Pantera.<br />
<br />
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_4P8DoWIzOkM/TAuTYIeRcDI/AAAAAAAAALA/JD6cYdOU5Lw/s1600/SANY0065.JPG"><img style="cursor:pointer; cursor:hand;width: 320px; height: 239px;" src="http://3.bp.blogspot.com/_4P8DoWIzOkM/TAuTYIeRcDI/AAAAAAAAALA/JD6cYdOU5Lw/s320/SANY0065.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5479635414426939442" /></a><br />
<br />
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_4P8DoWIzOkM/TAuTX-qBHOI/AAAAAAAAAK4/6xiA8ahGRDQ/s1600/SANY0064.JPG"><img style="cursor:pointer; cursor:hand;width: 320px; height: 239px;" src="http://2.bp.blogspot.com/_4P8DoWIzOkM/TAuTX-qBHOI/AAAAAAAAAK4/6xiA8ahGRDQ/s320/SANY0064.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5479635411791846626" /></a><div class="blogger-post-footer"><!-- AddThis Button for Post BEGIN -->
<div><a expr:href='"http://www.addthis.com/bookmark.php?pub=threaded&url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Bookmark and Share'><img src='http://s9.addthis.com/button1-share.gif' width='125' height='16' style='border: 0px; padding: 0px' alt='Bookmark and Share' /></a></div>
<!-- AddThis Button for Post END --></div>threadedhttp://www.blogger.com/profile/14939293458902056129noreply@blogger.com0tag:blogger.com,1999:blog-14924660.post-46912514447793161512010-06-06T14:19:00.006+02:002010-11-24T17:49:16.168+01:00The StigThe Stig in an Ariel Atom 3<br />
<br />
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_4P8DoWIzOkM/TAuSwXPlgiI/AAAAAAAAAKw/OeMdWOexvBw/s1600/SANY0048.JPG"><img style="cursor:pointer; cursor:hand;width: 320px; height: 239px;" src="http://4.bp.blogspot.com/_4P8DoWIzOkM/TAuSwXPlgiI/AAAAAAAAAKw/OeMdWOexvBw/s320/SANY0048.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5479634731197104674" /></a><br />
<br />
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_4P8DoWIzOkM/TAuSv-IgTjI/AAAAAAAAAKo/MYuTKQ_rkIQ/s1600/SANY0046.JPG"><img style="cursor:pointer; cursor:hand;width: 320px; height: 239px;" src="http://1.bp.blogspot.com/_4P8DoWIzOkM/TAuSv-IgTjI/AAAAAAAAAKo/MYuTKQ_rkIQ/s320/SANY0046.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5479634724456517170" /></a><div class="blogger-post-footer"><!-- AddThis Button for Post BEGIN -->
<div><a expr:href='"http://www.addthis.com/bookmark.php?pub=threaded&url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Bookmark and Share'><img src='http://s9.addthis.com/button1-share.gif' width='125' height='16' style='border: 0px; padding: 0px' alt='Bookmark and Share' /></a></div>
<!-- AddThis Button for Post END --></div>threadedhttp://www.blogger.com/profile/14939293458902056129noreply@blogger.com0tag:blogger.com,1999:blog-14924660.post-27701215222534941882010-06-06T14:13:00.005+02:002010-11-24T17:49:30.289+01:00Zenvo ST1<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_4P8DoWIzOkM/TAuR_PrORZI/AAAAAAAAAKg/FjPrqGHhbb0/s1600/SANY0114.JPG"><img style="cursor:pointer; cursor:hand;width: 320px; height: 239px;" src="http://4.bp.blogspot.com/_4P8DoWIzOkM/TAuR_PrORZI/AAAAAAAAAKg/FjPrqGHhbb0/s320/SANY0114.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5479633887351948690" /></a><br />
<br />
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_4P8DoWIzOkM/TAuR-ky2_OI/AAAAAAAAAKY/f218xhtx3R8/s1600/SANY0109.JPG"><img style="cursor:pointer; cursor:hand;width: 320px; height: 239px;" src="http://2.bp.blogspot.com/_4P8DoWIzOkM/TAuR-ky2_OI/AAAAAAAAAKY/f218xhtx3R8/s320/SANY0109.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5479633875841252578" /></a><br />
<br />
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_4P8DoWIzOkM/TAuR-VncTNI/AAAAAAAAAKQ/7uXjPNPW5p0/s1600/SANY0106.JPG"><img style="cursor:pointer; cursor:hand;width: 320px; height: 239px;" src="http://3.bp.blogspot.com/_4P8DoWIzOkM/TAuR-VncTNI/AAAAAAAAAKQ/7uXjPNPW5p0/s320/SANY0106.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5479633871766834386" /></a><br />
<br />
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_4P8DoWIzOkM/TAuR96IJXmI/AAAAAAAAAKI/ApFysq5h_eo/s1600/SANY0110.JPG"><img style="cursor:pointer; cursor:hand;width: 320px; height: 239px;" src="http://2.bp.blogspot.com/_4P8DoWIzOkM/TAuR96IJXmI/AAAAAAAAAKI/ApFysq5h_eo/s320/SANY0110.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5479633864387812962" /></a><br />
<br />
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_4P8DoWIzOkM/TAuR9ewJmuI/AAAAAAAAAKA/ghNYyKfFmnU/s1600/SANY0111.JPG"><img style="cursor:pointer; cursor:hand;width: 320px; height: 239px;" src="http://4.bp.blogspot.com/_4P8DoWIzOkM/TAuR9ewJmuI/AAAAAAAAAKA/ghNYyKfFmnU/s320/SANY0111.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5479633857039407842" /></a><div class="blogger-post-footer"><!-- AddThis Button for Post BEGIN -->
<div><a expr:href='"http://www.addthis.com/bookmark.php?pub=threaded&url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Bookmark and Share'><img src='http://s9.addthis.com/button1-share.gif' width='125' height='16' style='border: 0px; padding: 0px' alt='Bookmark and Share' /></a></div>
<!-- AddThis Button for Post END --></div>threadedhttp://www.blogger.com/profile/14939293458902056129noreply@blogger.com1tag:blogger.com,1999:blog-14924660.post-24542266914553108822010-06-04T16:00:00.005+02:002010-11-24T17:49:42.315+01:00Rhubarb flowersI've never seen rhubarb flowers before. This year my rhubarb flowered.<br />
<br />
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_4P8DoWIzOkM/TAkKKWwKaaI/AAAAAAAAAJ4/EuDu74s5sqE/s1600/SANY0119.JPG"><img style="cursor:pointer; cursor:hand;width: 320px; height: 239px;" src="http://3.bp.blogspot.com/_4P8DoWIzOkM/TAkKKWwKaaI/AAAAAAAAAJ4/EuDu74s5sqE/s320/SANY0119.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5478921594695477666" /></a><br />
<br />
<br />
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_4P8DoWIzOkM/TAkJo8aF3iI/AAAAAAAAAJw/P4p-duwT9Cw/s1600/SANY0116.JPG"><img style="cursor:pointer; cursor:hand;width: 320px; height: 239px;" src="http://4.bp.blogspot.com/_4P8DoWIzOkM/TAkJo8aF3iI/AAAAAAAAAJw/P4p-duwT9Cw/s320/SANY0116.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5478921020687900194" /></a><div class="blogger-post-footer"><!-- AddThis Button for Post BEGIN -->
<div><a expr:href='"http://www.addthis.com/bookmark.php?pub=threaded&url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Bookmark and Share'><img src='http://s9.addthis.com/button1-share.gif' width='125' height='16' style='border: 0px; padding: 0px' alt='Bookmark and Share' /></a></div>
<!-- AddThis Button for Post END --></div>threadedhttp://www.blogger.com/profile/14939293458902056129noreply@blogger.com0tag:blogger.com,1999:blog-14924660.post-72713001944382115732010-05-09T22:37:00.001+02:002010-11-24T17:50:23.111+01:00Failed a compression test<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_4P8DoWIzOkM/S-cdQjh7JxI/AAAAAAAAAJk/cFiTmvxWBYg/s1600/IMAGE_177.jpg"><img style="cursor:pointer; cursor:hand;width: 320px; height: 240px;" src="http://3.bp.blogspot.com/_4P8DoWIzOkM/S-cdQjh7JxI/AAAAAAAAAJk/cFiTmvxWBYg/s320/IMAGE_177.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5469372442717398802" /></a><div class="blogger-post-footer"><!-- AddThis Button for Post BEGIN -->
<div><a expr:href='"http://www.addthis.com/bookmark.php?pub=threaded&url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Bookmark and Share'><img src='http://s9.addthis.com/button1-share.gif' width='125' height='16' style='border: 0px; padding: 0px' alt='Bookmark and Share' /></a></div>
<!-- AddThis Button for Post END --></div>threadedhttp://www.blogger.com/profile/14939293458902056129noreply@blogger.com0tag:blogger.com,1999:blog-14924660.post-78981298650462720772010-05-09T22:31:00.003+02:002010-11-24T17:50:33.776+01:00This blog has movedThis blog is now located at __FTP_MIGRATION_NEW_URL__.<br />
You will be automatically redirected in 30 seconds or you may click <a href='__FTP_MIGRATION_NEW_URL__'>here</a>.<br />
<br />
For feed subscribers, please update your feed subscriptions to<br />
__FTP_MIGRATION_FEED_URL__.<div class="blogger-post-footer"><!-- AddThis Button for Post BEGIN -->
<div><a expr:href='"http://www.addthis.com/bookmark.php?pub=threaded&url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Bookmark and Share'><img src='http://s9.addthis.com/button1-share.gif' width='125' height='16' style='border: 0px; padding: 0px' alt='Bookmark and Share' /></a></div>
<!-- AddThis Button for Post END --></div>threadedhttp://www.blogger.com/profile/14939293458902056129noreply@blogger.com0tag:blogger.com,1999:blog-14924660.post-10206969435852864282009-10-19T17:58:00.004+02:002010-11-24T17:50:48.139+01:00Manually start that background tasks thingy in XPSome people never leave their Windows XP machine unused and unattended, so the background tasks that are normally run when the machine is idle don't get run and the machine becomes very slow. To manually start that background tasks thingy in XP just open up a command prompt and type in:<br />
<br />
Rundll32.exe advapi32.dll,ProcessIdleTasks<div class="blogger-post-footer"><!-- AddThis Button for Post BEGIN -->
<div><a expr:href='"http://www.addthis.com/bookmark.php?pub=threaded&url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Bookmark and Share'><img src='http://s9.addthis.com/button1-share.gif' width='125' height='16' style='border: 0px; padding: 0px' alt='Bookmark and Share' /></a></div>
<!-- AddThis Button for Post END --></div>threadedhttp://www.blogger.com/profile/14939293458902056129noreply@blogger.com0tag:blogger.com,1999:blog-14924660.post-64421764840288685112009-10-19T13:36:00.005+02:002010-11-24T17:51:07.222+01:00An XSLT to convert an XML file into a CSV<code><br />
<xsl:stylesheet version="1.0 <br />
<br />
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"<br />
<br />
<!-- IF_THE_PIVOT_IS_A_SUBTYPE_IT_NEEDS_TO_GO_IN_HERE --><br />
<br />
><br />
<br />
<br />
<xsl:output method="text"/>" <br />
<br />
<br />
    <xsl:template match="//PIVOT_GOES_IN_HERE"><br />
<br />
        <xsl:apply-templates select="*" /><br />
<br />
        <xsl:text>&#x0D;&#x0A;</xsl:text><br />
<br />
    </xsl:template>" <br />
<br />
<br />
<br />
    <xsl:template match="//PIVOT_GOES_IN_HERE//*"><br />
<br />
        <xsl:choose><br />
<br />
            <xsl:when test="count(child::*) > 0"><br />
<br />
                <xsl:apply-templates select="*" /><br />
<br />
            </xsl:when><br />
<br />
            <xsl:otherwise><br />
<br />
                <xsl:text>"</xsl:text><br />
<br />
                <xsl:value-of select="."/><br />
<br />
                <xsl:text>"</xsl:text><br />
<br />
            </xsl:otherwise><br />
<br />
        </xsl:choose><br />
<br />
        <xsl:if test="position() != last()"><br />
<br />
            <xsl:text>,</xsl:text><br />
<br />
        </xsl:if><br />
<br />
    </xsl:template><br />
<br />
<br />
</xsl:stylesheet><br />
<br />
<br />
</code><div class="blogger-post-footer"><!-- AddThis Button for Post BEGIN -->
<div><a expr:href='"http://www.addthis.com/bookmark.php?pub=threaded&url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Bookmark and Share'><img src='http://s9.addthis.com/button1-share.gif' width='125' height='16' style='border: 0px; padding: 0px' alt='Bookmark and Share' /></a></div>
<!-- AddThis Button for Post END --></div>threadedhttp://www.blogger.com/profile/14939293458902056129noreply@blogger.com0tag:blogger.com,1999:blog-14924660.post-90886757925368221852009-10-12T20:13:00.002+02:002010-11-24T17:51:19.391+01:00In Memory of Common SenseToday we mourn the passing of a beloved old friend, “Common Sense,” who has been with us for many years. No one knows for sure how old he was, since his birth records were long ago lost in bureaucratic red tape. He will be remembered as having cultivated such valuable lessons as:<br />
<br />
- knowing when to come in out of the rain;<br />
<br />
- the early bird gets the worm;<br />
<br />
- life isn’t always fair; and<br />
<br />
- maybe it was my fault.<br />
<br />
Common Sense lived by simple, sound financial policies (don’t spend more than you can earn) and reliable strategies (adults, not children, are in charge).<br />
<br />
His health began to deteriorate rapidly when well-intentioned but overbearing regulations were set in place. Reports of a 6-year-old boy charged with sexual harassment for kissing a classmate; teens suspended from school for using mouthwash after lunch; and a teacher fired for reprimanding an unruly student, only worsened his condition.<br />
<br />
Common Sense lost ground when parents attacked teachers for doing the job that they themselves had failed to do in disciplining their unruly children.<br />
<br />
It declined even further when schools were required to get parental consent to administer sun lotion or an aspirin to a student, but could not inform parents when a student became pregnant and wanted to have an abortion. <br />
<br />
Common Sense lost the will to live as the churches became businesses and criminals received better treatment than their victims.<br />
<br />
Common Sense took a beating when you couldn’t defend yourself from a burglar in your own home and the burglar could sue you for assault.<br />
<br />
Common Sense finally gave up the will to live, after a woman failed to realize that a steaming cup of coffee was hot. She spilled a little in her lap and was promptly awarded a huge settlement.<br />
<br />
Common Sense was preceded in death, by his parents, “Truth” and “Trust,” by his wife, “Discretion,” by his daughter, “Responsibility,” and by his son, “Reason.”<br />
<br />
He is survived by his 4 stepbrothers – “I Know My Rights,” “I Want It Now,” “Someone Else Is To Blame,” and “I’m A Victim.”<br />
<br />
Not many attended his funeral, because so few realized he was gone. If you still remember him, pass this on. If not, join the majority and do nothing.<div class="blogger-post-footer"><!-- AddThis Button for Post BEGIN -->
<div><a expr:href='"http://www.addthis.com/bookmark.php?pub=threaded&url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Bookmark and Share'><img src='http://s9.addthis.com/button1-share.gif' width='125' height='16' style='border: 0px; padding: 0px' alt='Bookmark and Share' /></a></div>
<!-- AddThis Button for Post END --></div>threadedhttp://www.blogger.com/profile/14939293458902056129noreply@blogger.com1tag:blogger.com,1999:blog-14924660.post-26893342604498813482009-09-14T06:08:00.004+02:002010-11-24T17:51:32.117+01:00Make a 2GB SD card usable for an Oregon Scientific ATC2KFormatting an SD card on an Apple Mac for use on equipment expecting a FAT16 file system can be non-trivial. I found the UI tools are not very good in this, often producing a FAT32 or other formants. I have found it more reliable to use the command line. Here is a sequence of commands I've found that create a reliable 2GB SD Card for use in an Oregon Scientific ATC2K helmet extreme sports video camera.<br />
<br />
You need to find where the card is in the file system. Run this command both before and after inserting the card to find where it is<br />
<span style="font-weight: bold;">ls /dev/rdisk?</span><br />
<br />
Assuming you discovered the card appears at rdisk6s1 from the command above.<br />
Create a new FAT16 MS-DOS file system<br />
<span style="font-weight: bold;">newfs_msdos -v VOLUME_NAME -F 16 /dev/rdisk6s1</span><br />
<br />
Now create a partition table<br />
<span style="font-weight: bold;">diskutil partitionDisk /Volumes/UNTITLED 1 MBRFormat "MS-DOS FAT16" "UNTITLED" 2000M</span><br />
<br />
Now the card will appear on the desktop at UNTITLED.<br />
<br />
Remember to <span style="font-weight:bold;">eject</span> from the desktop, so it can be used.<div class="blogger-post-footer"><!-- AddThis Button for Post BEGIN -->
<div><a expr:href='"http://www.addthis.com/bookmark.php?pub=threaded&url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Bookmark and Share'><img src='http://s9.addthis.com/button1-share.gif' width='125' height='16' style='border: 0px; padding: 0px' alt='Bookmark and Share' /></a></div>
<!-- AddThis Button for Post END --></div>threadedhttp://www.blogger.com/profile/14939293458902056129noreply@blogger.com0tag:blogger.com,1999:blog-14924660.post-70074073609781031492009-08-24T09:49:00.005+02:002010-11-24T17:51:43.375+01:00Ritter Classic 2009The <a href="http://www.ritterclassic.dk/">Ritter Classic</a> is a fun cycle race held each year on Sjælland, Denmark. This year it again set off and ended in Taastrup, taking a route up to Ballerup, then east over to the coast and then hugging the shoreline travelled further north before heading back inland again, and just as it got above Taastrup, it headed directly south for the finishing line.<br />
<br />
I expected to take between 5 and 6 hours, and quite surprised, not just myself, but supporters who wished to take photos of the team: we'd already passed by the time they arrived at the various photo ops. There were plenty of other photographers and several film crews from <a href="http://tv2sport.dk/">TV2 Sport</a> amongst others. So I shall ask for some links when I find them.<br />
<br />
My statistics:<br />
118.8km in 4 hours 1 minute and 47 seconds, <br />
Speed: averaged 29.5km/h with a maximum on 78.8km/h<br />
Heart rate: average 140 bpm maximum 175 bpm<br />
Cadence: average 83 rpm with a maximum of 125 rpm.<br />
<br />
My route on <a href="http://connect.garmin.com/activity/11806570">Garmin Connect</a><br />
<br />
Link to <a href="http://www.ritterclassic.dk/documents/00028.htm">Google Earth kml file</a>.<br />
<br />
The <a href="http://results.ultimate.dk/liveappc/front/standings.php?eventid=665&template=uss.htm&Distance=1&Category=S_M&TimingPoint=Finish&submit=Vis+Top+50+liste">Top 50 result list</a><div class="blogger-post-footer"><!-- AddThis Button for Post BEGIN -->
<div><a expr:href='"http://www.addthis.com/bookmark.php?pub=threaded&url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Bookmark and Share'><img src='http://s9.addthis.com/button1-share.gif' width='125' height='16' style='border: 0px; padding: 0px' alt='Bookmark and Share' /></a></div>
<!-- AddThis Button for Post END --></div>threadedhttp://www.blogger.com/profile/14939293458902056129noreply@blogger.com0tag:blogger.com,1999:blog-14924660.post-55362461746794622362009-02-09T12:49:00.003+01:002010-11-24T17:51:54.479+01:00Minimal code to perform logging in Google AndroidTo produce log message in Google Android is really quite easy.<br />
<br />
At the top of the file in the imports section add: <code>import android.util.Log;</code><br />
<br />
And then in your code you add <code>Log.d(TAG,message);</code><br />
<br />
Where <code>TAG</code> and <code>message</code> are strings.<br />
<br />
It is considered good form that the TAG is a constant for the class.<br />
<br />
So I put something like this at the top of the class <code>private static final String TAG = Foo.class.getName();</code><br />
<br />
There are several levels of logging and in level order these are <code>Log.v(), Log.d(), Log.i(), Log.w()</code> and <code>Log.e()</code> <br />
<br />
Where<br />
v = verbose<br />
d = debug<br />
i = info<br />
w = warning<br />
e = error<br />
<br />
The logging is performed by LogCat which can be accessed via the adb tool that comes with the Android developer kit.<br />
<br />
<code>tools/adb logcat</code> will start logging at the <code>INFO</code> level as that is the default.<br />
<br />
<code>tools/adb logcat *:V</code> will log everything at <code>VERBOSE</code> level.<br />
<br />
<code>tools/adb logcat Wibble:W</code> will filter most things and only show those log statements with the tag <code>Wibble</code> at the <code>WARNING</code> level.<div class="blogger-post-footer"><!-- AddThis Button for Post BEGIN -->
<div><a expr:href='"http://www.addthis.com/bookmark.php?pub=threaded&url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Bookmark and Share'><img src='http://s9.addthis.com/button1-share.gif' width='125' height='16' style='border: 0px; padding: 0px' alt='Bookmark and Share' /></a></div>
<!-- AddThis Button for Post END --></div>threadedhttp://www.blogger.com/profile/14939293458902056129noreply@blogger.com2tag:blogger.com,1999:blog-14924660.post-61374316789089569512009-02-05T16:13:00.003+01:002010-11-24T17:52:05.156+01:00Minimal code to display a Toast message in Google AndroidToast is a widget to display an informational message to a user whilst they may well be doing something else. I find it useful for debugging on a real device to tell me something internal to the application has been fired. Afterwards I can just strip such things out of the build.<br />
<br />
<pre>// show the frost pist message using the Toast widget
Toast toast = Toast.makeText(context, "Woo hoo, toast", Toast.LENGTH_LONG);
toast.show();
</pre><br />
<br />
I find the <code>context</code> is normally part of the method signature. <br />
<code>Toast.LENGTH_LONG</code> keeps the message up for a few seconds.<br />
<br />
There is a <code>Toast.LENGTH_SHORT</code> if you don't want the message to hang about for too long.<div class="blogger-post-footer"><!-- AddThis Button for Post BEGIN -->
<div><a expr:href='"http://www.addthis.com/bookmark.php?pub=threaded&url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Bookmark and Share'><img src='http://s9.addthis.com/button1-share.gif' width='125' height='16' style='border: 0px; padding: 0px' alt='Bookmark and Share' /></a></div>
<!-- AddThis Button for Post END --></div>threadedhttp://www.blogger.com/profile/14939293458902056129noreply@blogger.com0tag:blogger.com,1999:blog-14924660.post-73315356960600147792009-02-05T15:35:00.005+01:002010-11-24T17:52:17.124+01:00Minimal code to retreive a GPS location in Google AndroidHere I describe the minimal code to retrieve a GPS location in the Google Android OS.<br />
<br />
First up, a GPS location listener.<br />
<pre>class GPSLocationListener implements LocationListener {
public void onLocationChanged(Location location) {
double latitude = location.getLatitude();
double longitude = location.getLongitude();
}
public void onProviderDisabled(String provider) {
// TODO Auto-generated method stub
}
public void onProviderEnabled(String provider) {
// TODO Auto-generated method stub
}
public void onStatusChanged(String provider, int status, Bundle extras) {
// TODO Auto-generated method stub
}
}
</pre>Somewhere else, probably in the <code>Activity</code> you need to tie this listener in. Here is an <code>onCreate</code> from a minimal application's <code>Activity</code>.<br />
<pre>/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
GPSLocationListener gpsLocationListener = new GPSLocationListener();
LocationManager lm = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
long minTime = 600000;
float minDistance = 10;
lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, minTime, minDistance, gpsLocationListener);
}
</pre><code>minTime</code> is a request to the OS about how often to check the GPS location. If you set it less than 1 minute (60000) then you risk the battery going flat quickly because the GPS receiver will be on all the time. The number is just a request. The OS may request a fix more often, it may check less often.<br />
<br />
<code>minDistance</code> is a request to trigger the listener when the device has moved by this distance.<br />
<br />
You also need <code><uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"></uses-permission><br />
</code> in the applications <code>AndroidManifest.xml</code> file.<div class="blogger-post-footer"><!-- AddThis Button for Post BEGIN -->
<div><a expr:href='"http://www.addthis.com/bookmark.php?pub=threaded&url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Bookmark and Share'><img src='http://s9.addthis.com/button1-share.gif' width='125' height='16' style='border: 0px; padding: 0px' alt='Bookmark and Share' /></a></div>
<!-- AddThis Button for Post END --></div>threadedhttp://www.blogger.com/profile/14939293458902056129noreply@blogger.com0