<?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/"
	>

<channel>
	<title>Blue Cog Blog &#187; Works for me</title>
	<atom:link href="http://www.bluecog.com/blog/category/works-for-me/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bluecog.com/blog</link>
	<description>It's just a freaking blue cog...</description>
	<lastBuildDate>Tue, 03 Aug 2010 19:32:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How I Split Podcast Files</title>
		<link>http://www.bluecog.com/blog/2009/04/24/how-i-split-podcast-files/</link>
		<comments>http://www.bluecog.com/blog/2009/04/24/how-i-split-podcast-files/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 16:01:12 +0000</pubDate>
		<dc:creator>Bill Melvin</dc:creator>
				<category><![CDATA[Works for me]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.bluecog.com/blog/?p=194</guid>
		<description><![CDATA[Note: This is a &#8220;How-I&#8221; (works for me) not a &#8220;How-to&#8221; (do as I say) post. I do goofy stuff sometimes. For example, I use Linux to download a couple podcasts targeted to Microsoft Windows developers. Specifically, I use µTorrent (that&#8217;s the &#8220;Micro&#8221; symbol so the name is pronounced &#8220;MicroTorrent&#8221;), a Windows BitTorrent client, running [...]]]></description>
			<content:encoded><![CDATA[<p><em>Note: This is a &#8220;How-I&#8221; (works for me)  not a &#8220;How-to&#8221; (do as I say) post.</em></p>
<p>I do goofy stuff sometimes. For example, I use Linux to download a couple podcasts targeted to Microsoft Windows developers. Specifically, I use <a href="http://www.utorrent.com/">µTorrent</a> (that&#8217;s the &#8220;Micro&#8221; symbol so the name is pronounced &#8220;MicroTorrent&#8221;), a Windows <a href="http://en.wikipedia.org/wiki/BitTorrent_(protocol)">BitTorrent</a> client, running in <a href="http://www.winehq.org/">Wine</a> on Ubuntu to download the <a href="http://www.dotnetrocks.com/">.NetRocks</a> and <a href="http://www.hanselminutes.com/">Hanselminutes</a> podcasts. I&#8217;ve had no problems running µTorrent in Wine. I got started doing this because my mp3 player was awkward to work with in Windows XP.</p>
<p>When I connected my Sansa m250 mp3 player to a Windows XP box, the driver software XP loaded wanted me to interact with the mp3 player as a media device. It has been a while, and I can&#8217;t recall exactly what it did, but I do recall it wanted me to use a media library application (one that would probably try to enforce <a href="http://en.wikipedia.org/wiki/Digital_rights_management">DRM</a> restrictions) and did not give me direct access to the file system on the player. There is probably a way around that, but I didn&#8217;t find it quickly at the time. What I did find was that when I connected the mp3 player to my old PC running Ubuntu it detected it and mounted it as a file system device that I could happily copy mp3 files to as I pleased. Good enough for me.</p>
<p>At first I was using the <a href="http://azureus.sourceforge.net/">Azureus</a> BitTorrent client, which is a Java app and runs on Ubuntu, to download the podcasts (and an occasional <a href="http://distrowatch.com/">distro</a> to play with). That application seemed to get more bloated with each release. It started displaying a bunch of flashy stuff and promoting things that you probably shouldn&#8217;t be downloading (but it&#8217;s okay if you <a href="http://www.thelocal.se/18954/20090419/">don&#8217;t believe in copyright</a>). I read about µTorrent and tried it on a Windows XP PC. It&#8217;s a lightweight program that does BitTorrent well without promoting piracy (personally, I do think copyright, <a href="http://wiki.lessig.org/index.php/Against_perpetual_copyright">with limits</a>, is a good thing). While this worked well for downloading, I didn&#8217;t like the extra step of copying files from the PC running Windows to the other running Ubuntu to load them onto my mp3 player. After reading a timely article about Wine (the source of the article escapes me now), I decided to try running µTorrent using Wine. I don&#8217;t recall having any problems <a href="https://help.ubuntu.com/community/Wine">setting it up</a>, it just worked. I did have to fiddle with my router to set up <a href="http://wiki.vuze.com/index.php/Port_forwarding">port forwarding</a> but that&#8217;s not related to Wine or Ubuntu, just something you may have to do for BitTorrent to work.</p>
<p>This method of downloading the podcasts works well, but that&#8217;s not the end of the story. Occasionally I would be part way through a podcast and, for some reason (maybe I was trying to rewind a little bit within the file but my finger slipped and it went back to the beginning of the file), I would have to fast-forward to where I left off. Hour-long podcasts in a single mp3 file are not easy to fast forward with the Sansa player I have. It doesn&#8217;t <em>forward faster</em> the longer you hold the button like some devices do, it just goes at the same (painfully slow for a large file) pace. It seemed like splitting the mp3 files into sections would make that sort of thing easier. Bet there&#8217;s an app for that.</p>
<p>A search of the Ubuntu application repository turned up <a href="http://mp3splt.sourceforge.net/">mp3splt</a>. It has a GUI but I only wanted the command line executable which is available in the repository and can be installed from the command line (note that there&#8217;s no &#8220;i&#8221; in <em>mp3splt</em>):</p>
<p><code>sudo apt-get install mp3splt</code></p>
<p>After a couple trips to the <a href="http://mp3splt.sourceforge.net/mp3splt_page/documentation/man.html">man page </a>to sort out which command line arguments to use, I had it splitting big mp3 files into sections in smaller mp3 files. That worked for splitting the files but I found that the player didn&#8217;t put those files in order when playing back. That’s not acceptable. I probably could just make a playlist file and use that to get the sections to play in order. I wondered if setting the ID3 tags in a way that numbered the tracks would make the player play them in order. Turns out it would. A search for &#8220;ID3&#8243; in the Ubuntu repository led to <a href="http://packages.ubuntu.com/hardy/id3tool">id3tool</a>, a simple utility for editing the ID3 tags in mp3 files. I installed it too:</p>
<p><code>sudo apt-get install id3tool</code></p>
<p>I wrote a shell script named <strong>podsplit.sh</strong> to put this splitting apart all together. I use a specific directory to hold the mp3 files I want to split (but I’ll call it a “folder” since that’s the GUI metaphor, and I use the GNOME GUI to move the files around). I manually copy the downloaded mp3 files into the <strong>2Split</strong> folder and then open a terminal and run the script. The script creates a sub-folder for each mp3 file that is split. When the script is finished I copy the sub-folders containing the resulting smaller mp3 files to the Sansa mp3 player. </p>
<p>Here&#8217;s the shell script:</p>
<pre class="brush: bash">
#!/bin/bash

#------------------------------------------------------------
# podsplit.sh
#
# by Bill Melvin (bogusoft.com)
#
# BASH script for splitting mp3 podcasts into smaller pieces.
# I want to do this because it takes &quot;forever&quot; to fast-
# forward or rewind in a huge mp3 on my Sansa player.
#
# This script requires mp3splt and id3tool.
#
# This script, being a personal-use one-off utility, also
# assumes some things:
# 1. mp3 files to be split are placed in ~/2Split
# 2. The file names are in the format showname_0001.mp3
#    or showname_0001_morestuff.mp3 where 0001 is the
#    episode number.
#
# I&#039;m no nix wiz and I don&#039;t write many shell scripts so
# this script also echoes a bunch of stuff so I can see
# what&#039;s going on.
#
#------------------------------------------------------------
# [2009-01-18] First version.
#
# [2009-01-24] Use abbreviated show name for Artist.
#
# [2009-02-12] Changed split time from 3.0 to 5.0.
#
# [2009-02-16] Use track number instead of end-time in track
# title.
#
# [2009-02-19] Redirect some output to log file.
#------------------------------------------------------------

split_home=~/2Split
logfn=&quot;${split_home}/podsplit-log.txt&quot;

ChangeID3() {
  filepath=$1
  filename=$2

  # Get track number from ID3.
  temp=`id3tool &quot;$filepath&quot; | grep Track: | cut -c9-`

  # Zero-pad to length of 3 characters.
  track=`printf &quot;%03d&quot; $temp`

  # Extract the name of the show and the episode number from
  # the file name. This only works if the file naming follows
  # the convention showname_0001_morestuff.mp3 where 0001
  # is the episode number. The file name is split into fields
  # delimited by the underscore character.
  show=`echo $filename | cut -d&#039;_&#039; -f1`
  episode=`echo $filename | cut -d&#039;_&#039; -f2`
  abbr=&quot;${show:0:6}&quot;
  album=&quot;${abbr}_${episode}&quot;
  title=&quot;${abbr}_${episode}_${track}&quot;

  echo &quot;ChangeID3&quot;
  echo &quot;filepath = $filepath&quot; &gt;&gt; $logfn
  echo &quot;filename = $filename&quot; &gt;&gt; $logfn
  echo &quot;show = $show&quot; &gt;&gt; $logfn
  echo &quot;abbr = $abbr&quot; &gt;&gt; $logfn
  echo &quot;episode = $episode&quot; &gt;&gt; $logfn
  echo &quot;album = $album&quot; &gt;&gt; $logfn
  echo &quot;title = $title&quot; &gt;&gt; $logfn
  echo &quot;track = $track&quot; &gt;&gt; $logfn
  echo &quot;BEFORE&quot; &gt;&gt; $logfn
  id3tool &quot;$filepath&quot; &gt;&gt; $logfn

  id3tool --set-album=&quot;$album&quot; --set-artist=&quot;$abbr&quot; --set-title=&quot;$title&quot; &quot;$1&quot;

  echo &quot;AFTER&quot; &gt;&gt; $logfn
  id3tool &quot;$filepath&quot; &gt;&gt; $logfn
}

SplitMP3() {
  echo &quot;SplitMP3&quot;
  name1=$1
  echo &quot;name1 = $name1&quot;

  # Get file name and extension without directory path.
  name2=${name1#$split_home/}
  echo &quot;name2 = $name2&quot;

  # Get just the file name without the extension.
  name3=${name2%.mp3}
  echo &quot;name3 = $name3&quot;

  outdir=$split_home/$name3.split
  echo &quot;Create $outdir&quot;
  mkdir &quot;$outdir&quot;

  mp3splt -a -t 5.0 -d &quot;$outdir&quot; -o @t_@n $1

  for MP3 in $outdir/*.mp3
  do
    ChangeID3 &quot;$MP3&quot; &quot;$name3&quot;
  done
}

for FN in $split_home/*.mp3
do
  SplitMP3 &quot;$FN&quot;
done

echo &quot;Done.&quot;
</pre>
<p>This is not a flexible script as my folder for splitting files is hard-coded and it assumes a file naming convention for the mp3 files being split. If you’re an experienced shell scripter I’m sure you can do better. I still consider myself a Linux &#8220;noob&#8221; (and offer proof as well), intermediate in some areas at best. I am posting this because someone else may be trying to solve a similar problem and this can serve as an example of what worked for one person, in one situation, to work around the limitations of one particular mp3 player. Someone less goofy would probably just buy an iPod and use iTunes to handle the podcast files.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bluecog.com/blog/2009/04/24/how-i-split-podcast-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Handy Switch</title>
		<link>http://www.bluecog.com/blog/2009/04/22/the-handy-switch/</link>
		<comments>http://www.bluecog.com/blog/2009/04/22/the-handy-switch/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 20:21:46 +0000</pubDate>
		<dc:creator>Bill Melvin</dc:creator>
				<category><![CDATA[Works for me]]></category>
		<category><![CDATA[Energy]]></category>
		<category><![CDATA[Gadget]]></category>

		<guid isPermaLink="false">http://www.bluecog.com/blog/2009/04/22/the-handy-switch/</guid>
		<description><![CDATA[I turned on the TV while eating lunch. CNN ran a little Earth Day segment. A question was asked about things you can do at the office to save energy. One of the items mentioned was that you can save about seven dollars worth of energy a month by turning off a printer. Besides reminding [...]]]></description>
			<content:encoded><![CDATA[<p>I turned on the TV while eating lunch. CNN ran a little <a href="http://en.wikipedia.org/wiki/Earth_Day">Earth Day</a> segment. A question was asked about things you can do at the office to save energy. One of the items mentioned was that you can save about seven dollars worth of energy a month by turning off a printer. Besides reminding me that it’s Earth Day (which I would have already known were I truly Green<sup>TM</sup>), it made me think about a simple device I have been using to stop some of the <a href="http://standby.lbl.gov/">power leaks</a> caused by devices that are plugged in all the time (many of which are <a href="http://www.stretcher.com/stories/990913l.cfm">on even when they’re “off”</a>). So for my Earth Day submission I give you the GE <strong>Handy Switch</strong>.</p>
<p><a href="http://www.bluecog.com/blog/wp-content/uploads/2009/04/handyswitch01.jpg"><img title="HandySwitch01" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="137" alt="HandySwitch01" src="http://www.bluecog.com/blog/wp-content/uploads/2009/04/handyswitch01-thumb.jpg" width="244" border="0" /></a></p>
<p>There may be similar switches made by a company other than General Electric. It just happens that the ones I have found locally are the Handy Switch made by GE. They come in both three prong (grounded) and two prong versions. As you can see from the pictures, I like to draw a “0” and a “1” with a marker to make it easy to see at arm’s length which position is <em>off</em> or <em>on</em>.</p>
<p><a href="http://www.bluecog.com/blog/wp-content/uploads/2009/04/handyswitch02.jpg"><img title="HandySwitch02" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="89" alt="HandySwitch02" src="http://www.bluecog.com/blog/wp-content/uploads/2009/04/handyswitch02-thumb.jpg" width="244" border="0" /></a></p>
<p>If a device such as a printer can use about seven dollars (that number comes from the CNN story, I&#8217;ve not confirmed it in any way) worth of electricity a month then, at around five dollars each, these switches can quickly pay back their cost in energy savings. If you&#8217;re curious about how much electricity your devices are actually using you can get a meter such as the <em><a href="http://www.amazon.com/gp/product/B00009MDBU?ie=UTF8&#038;tag=bluecog-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=B00009MDBU">Kill A Watt</a><img src="http://www.assoc-amazon.com/e/ir?t=bluecog-20&#038;l=as2&#038;o=1&#038;a=B00009MDBU" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></em> to measure that. </p>
<p><a href="http://www.bluecog.com/blog/wp-content/uploads/2009/04/handyswitch04.jpg"><img title="HandySwitch04" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="157" alt="HandySwitch04" src="http://www.bluecog.com/blog/wp-content/uploads/2009/04/handyswitch04-thumb.jpg" width="244" border="0" /></a> </p>
<p>I keep buying more of these over time because they seem to actually be handy. They are available at Wal-Mart and others stores, at least here in the US. I assume there are similar devices suited to the local electrical connector specifications available in other countries. </p>
<p><a href="http://www.bluecog.com/blog/wp-content/uploads/2009/04/handyswitch03.jpg"><img title="HandySwitch03" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="178" alt="HandySwitch03" src="http://www.bluecog.com/blog/wp-content/uploads/2009/04/handyswitch03-thumb.jpg" width="244" border="0" /></a><a href="http://www.bluecog.com/blog/wp-content/uploads/2009/04/handyswitch02.jpg"></a></p>
<p>If we all do little things to save energy, like plug small electrical leaks, over time the savings will add up, in our individual electric bills and in the world’s energy use.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bluecog.com/blog/2009/04/22/the-handy-switch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Foxit Reader Gets The Boot</title>
		<link>http://www.bluecog.com/blog/2009/04/09/foxit-reader-gets-the-boot/</link>
		<comments>http://www.bluecog.com/blog/2009/04/09/foxit-reader-gets-the-boot/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 23:26:02 +0000</pubDate>
		<dc:creator>Bill Melvin</dc:creator>
				<category><![CDATA[Works for me]]></category>
		<category><![CDATA[Not]]></category>

		<guid isPermaLink="false">http://www.bluecog.com/blog/?p=168</guid>
		<description><![CDATA[I have used Foxit Reader for a while on several PCs for viewing PDF files. I really liked that it was a single fast and lightweight executable that did not require an installer. Lately I ran into some problems with it crashing on a PC running Windows Vista. Not sure whether the problem was due [...]]]></description>
			<content:encoded><![CDATA[<p>I have used Foxit Reader for a while on several PCs for viewing PDF files. I really liked that it was a single fast and lightweight executable that did not require an installer. Lately I ran into some problems with it crashing on a PC running Windows Vista. Not sure whether the problem was due to it running on Vista or due to PDF files using newer features of the PDF format (I have not looked to see if there <em>are</em> new features of the PDF format), I decided to download the latest version of Foxit Reader.</p>
<p>I noticed some bad signs early on in the installation.</p>
<p><img src="http://www.bluecog.com/images/blog/20090409_foxit_1.png" alt="foxit reader 1" /></p>
<p>&#8220;Install Firefox plugin&#8221; looks like a reasonable option. Some people probably do want to view PDF files in the browser. I prefer to download them by default. I&#8217;ll just turn off that option.</p>
<p><img src="http://www.bluecog.com/images/blog/20090409_foxit_2.png" alt="foxit reader 2" /></p>
<p>When I clicked the check box to turn off the Firefox plugin the other options that I had turned off above became selected again. I tried it a couple times and it repeated. Seems like a bug to me. I turned off the Firefox plugin, and then turned off the other options above, and moved on to the next step&#8230;</p>
<p><img src="http://www.bluecog.com/images/blog/20090409_foxit_3.png" alt="foxit reader 3" /></p>
<p>Oh no. AdCrap! And some sneaky wording too. See how you might think you have to &#8220;accept the License Terms&#8221; not for the toolbar but for the whole app? </p>
<p>They also assume I want Ask.com to be my default search provider. Why didn&#8217;t I think of that? At least they didn&#8217;t assume I always want to go to their start page, but they did give me the option.</p>
<p><img src="http://www.bluecog.com/images/blog/20090409_foxit_4.png" alt="foxit reader 4" /></p>
<p>More scary red text. This is not looking good.</p>
<p><img src="http://www.bluecog.com/images/blog/20090409_foxit_5.png" alt="foxit reader 5" /></p>
<p>But wait, there&#8217;s more&#8230; double AdCrap! Already checked is &#8220;Create desktop, quick launch and start menu icon to eBay.&#8221; Since I am installing this software to read documents it only makes sense that I want to go to eBay often, <em>and quickly</em>!</p>
<p>Well, I went ahead and installed it &#8211; slowly &#8211; reading the whole dialog &#8211; you can&#8217;t just <em>next, next, next</em> anymore.</p>
<p><img src="http://www.bluecog.com/images/blog/20090409_foxit_6.png" alt="foxit reader 6" /></p>
<p>After I opened a document that the older Foxit Reader had crashed on, and it seemed to be working now, I thought I might keep the new version. Then the automatic update dialog popped. This was the last straw. Am I going to trust the folks who just tried to get me to install AdCrap on my computer to do automatic updates? No. I am not.</p>
<p><img src="http://www.bluecog.com/images/blog/20090409_foxit_7.png" alt="foxit reader 7" /></p>
<p>And, yes, I am sure I want to uninstall it.</p>
<p>Is <a href="http://www.adobe.com/products/reader/">Acrobat Reader</a> looking better to me than it did before? Not really, but <a href="http://www.foxitsoftware.com/">Foxit</a> Reader now looks worse. Sad to say what was once a slick and unencumbered piece of software is now showing signs of desperation. If their business plan was to use the free PDF reader to gain name recognition and &#8220;mind share&#8221; to help them sell other products and services they should have stuck with that plan. Trying to squeeze some revenue out of free software by putting in AdCrap turns people off. At least that&#8217;s what it does to me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bluecog.com/blog/2009/04/09/foxit-reader-gets-the-boot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iHome Portable Speaker</title>
		<link>http://www.bluecog.com/blog/2009/04/02/ihome-portable-speaker/</link>
		<comments>http://www.bluecog.com/blog/2009/04/02/ihome-portable-speaker/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 01:28:24 +0000</pubDate>
		<dc:creator>Bill Melvin</dc:creator>
				<category><![CDATA[Works for me]]></category>
		<category><![CDATA[Gadget]]></category>

		<guid isPermaLink="false">http://www.bluecog.com/blog/?p=139</guid>
		<description><![CDATA[I picked up the iHome portable speaker for iPod (model iHM3B) at Wal-Mart for less than $20 a few months ago. I like it enough to mention it here in case someone else looking for a portable speaker for their mp3 player happens to stumble upon this blog. It is designed to work with an [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.bluecog.com/images/blog/iHome2.jpg" alt="iHome picture" /></p>
<p>I picked up the <strong>iHome portable speaker for iPod</strong> (model iHM3B) at Wal-Mart for less than $20 a few months ago. I like it enough to mention it here in case someone else looking for a portable speaker for their mp3 player happens to stumble upon this blog. It is designed to work with an iPod but I don&#8217;t have an iPod (not that I don&#8217;t <em>want</em> one &#8211; I just don&#8217;t<em> have</em> one). Fortunately it has a 1/8 inch stereo jack so I can use it with my Sansa mp3 player (the Sansa was cheap and it works, but it&#8217;s not the subject here). The iHome takes four AAA batteries and comes with a set of alkaline batteries. I have been using rechargeable batteries and am pleased that it will play for hours on a charge even though rechargeable batteries tend to deliver less power than alkaline batteries. The iHome is also louder than I expected it to be. I can even listen to it while I&#8217;m in the shower (don&#8217;t take it <em>in</em> the shower &#8211; it&#8217;s not waterproof). Keep in mind I use it to listen to podcasts that are mostly talk, not much music. If you want jamming bass you&#8217;ll have to go bigger. </p>
<p><img src="http://www.bluecog.com/images/blog/iHome3a.jpg" alt="iHome picture" /></p>
<p>I suppose mine will mess up now that I&#8217;ve bragged about it. Well, at this point I feel I&#8217;ve got my money&#8217;s worth anyway. I&#8217;d buy another.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bluecog.com/blog/2009/04/02/ihome-portable-speaker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
