<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>Matthew M. McCormick (thewtex)</title>
<link>http://mmmccormick.com/</link>
<description>software, papers, music, news, and contact information</description>
<language>en-us</language>
<copyright>Copyright 2008 thewtex</copyright>
<pubDate>Sun, 07 Sep 2008 22:42:20 GMT</pubDate>
<lastBuildDate>Sun, 07 Sep 2008 22:42:20 GMT</lastBuildDate>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<generator>TiddlyWiki 2.4.0</generator>
<item>
<title>Running Windows Applications under Linux</title>
<description>A screencast that explains the different ways for running Microsoft Windows programs under linux.  Find it &lt;a target=&quot;_blank&quot; title=&quot;External link to http://www.archive.org/details/RunningMicrosoftWindowsApplicationsUnderLinux--Screencast&quot; href=&quot;http://www.archive.org/details/RunningMicrosoftWindowsApplicationsUnderLinux--Screencast&quot; class=&quot;externalLink&quot;&gt;here&lt;/a&gt;.</description>
<category>journal</category>
<category>screencast</category>
<category>tutorial</category>
<link>http://mmmccormick.com/#%5B%5BRunning%20Windows%20Applications%20under%20Linux%5D%5D</link>
<pubDate>Sun, 07 Sep 2008 22:39:40 GMT</pubDate>
</item>
<item>
<title>Running Adobe Authorware under Linux</title>
<description>This is a screencast tutorial for running Adobe Authorware under Linux. This demonstration uses only graphical tools. Demonstrated on Ubuntu 8.04 Hardy Heron.  Find it &lt;a target=&quot;_blank&quot; title=&quot;External link to http://www.archive.org/details/RunningAdobeAuthorwareUnderLinux&quot; href=&quot;http://www.archive.org/details/RunningAdobeAuthorwareUnderLinux&quot; class=&quot;externalLink&quot;&gt;here&lt;/a&gt;&lt;br&gt;</description>
<category>journal</category>
<category>screencast</category>
<category>tutorial</category>
<link>http://mmmccormick.com/#%5B%5BRunning%20Adobe%20Authorware%20under%20Linux%5D%5D</link>
<pubDate>Sun, 07 Sep 2008 22:39:35 GMT</pubDate>
</item>
<item>
<title>strip_trailing_whitespaces</title>
<description>&lt;pre&gt;#!/bin/bash

# strip trailing whitespaces from filenames sent to stdin or as args
# Matt McCormick (thewtex) &amp;lt;matt@mmmccormick.com&amp;gt;
# created 2008 May 01

MYTEMP=`tempfile`
trap 'rm -f $MYTEMP' SIGINT SIGTERM

stripit() {
  echo &quot;stripping $1&quot;
  sed 's/[ \t]*$//' &quot;$1&quot; &amp;gt; $MYTEMP
  cp $MYTEMP &quot;$1&quot;
}

if [ $# -gt 0 ]; then
  while [ &quot;$1&quot; != &quot;&quot; ]; do
    stripit $1
    shift
  done
else
  while read; do
    stripit $REPLY 
  done
fi

rm $MYTEMP

&lt;/pre&gt;</description>
<category>software</category>
<category>bash</category>
<link>http://mmmccormick.com/#strip_trailing_whitespaces</link>
<pubDate>Thu, 17 Jul 2008 01:45:00 GMT</pubDate>
</item>
<item>
<title>tcd_analyze</title>
<description>&lt;h1&gt;DWL Multidop L2 transcranial doppler viewer.&lt;/h1&gt;&lt;br&gt;&lt;img src=&quot;software/tcd_analyze/tcd_curve.png&quot; alt=&quot;Middle cerebral artery blood flow.&quot; title=&quot;Middle cerebral artery blood flow.&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;h2&gt;Purpose&lt;/h2&gt;For processing the transcranial doppler data generated on a DWL Multidop  L2.&lt;br&gt;&lt;br&gt; &lt;br&gt;  You will need to get the *.TX* and *.TW files off the machine.&lt;br&gt;  To copy files from the DOS prompt to a floppy, these commands may be&lt;br&gt;  helpful:&lt;br&gt;&lt;br&gt;   &lt;code&gt;A:&lt;/code&gt;&lt;br&gt;  Switch to floppy drive.&lt;br&gt;&lt;br&gt;   &lt;code&gt;D:&lt;/code&gt;&lt;br&gt;  Switch to data drive.&lt;br&gt;&lt;br&gt;    &lt;code&gt;cd DATA&lt;/code&gt;&lt;br&gt;  Change into the data directory.&lt;br&gt;&lt;br&gt;    &lt;code&gt;cd ..&lt;/code&gt;&lt;br&gt;  Go up one directory.&lt;br&gt;&lt;br&gt;    &lt;code&gt;dir \p&lt;/code&gt;&lt;br&gt;  List the contents of the current directory, by page.&lt;br&gt;&lt;br&gt;    &lt;code&gt;copy NLA169.* A:\&lt;/code&gt;&lt;br&gt;  Copy all files starting with &lt;a tiddlylink=&quot;NLA169&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to http://mmmccormick.com/#NLA169&quot; href=&quot;http://mmmccormick.com/#NLA169&quot; class=&quot;externalLink&quot;&gt;NLA169&lt;/a&gt;., e.g., to the floppy drive.&lt;br&gt;&lt;br&gt;    &lt;code&gt;erase NLA169.*&lt;/code&gt;&lt;br&gt;  Erase all files starting with &lt;a tiddlylink=&quot;NLA169&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to http://mmmccormick.com/#NLA169&quot; href=&quot;http://mmmccormick.com/#NLA169&quot; class=&quot;externalLink&quot;&gt;NLA169&lt;/a&gt;.&lt;br&gt;&lt;br&gt;&lt;h2&gt;Installation&lt;/h2&gt;See the readme.txt&lt;br&gt;&lt;br&gt;&lt;h2&gt;Usage&lt;/h2&gt;Run the file tcd_dialog.py&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;h2&gt;Requires&lt;/h2&gt;&lt;em&gt;pylab, scipy, numpy, matplotlib, wxpython&lt;/em&gt;&lt;br&gt;  They are all conveniently packages together in &lt;a target=&quot;_blank&quot; title=&quot;External link to http://www.enthought.com/products/epd.php&quot; href=&quot;http://www.enthought.com/products/epd.php&quot; class=&quot;externalLink&quot;&gt;Enthought Python Distribution&lt;/a&gt;&lt;br&gt;  Linux users may just want to install the 'matplotlib' or 'python-matplotlib'  and the 'wxpython' packages.&lt;br&gt;  Windows users may want the Enthought Python Distribution.&lt;br&gt;&lt;br&gt;  Currently works with matplotlib-0.91 but not matplotlib-0.98.  However, EPD comes with 0.91.  It looks as if &lt;a tiddlylink=&quot;DecimatedClippedLine&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to http://mmmccormick.com/#DecimatedClippedLine&quot; href=&quot;http://mmmccormick.com/#DecimatedClippedLine&quot; class=&quot;externalLink&quot;&gt;DecimatedClippedLine&lt;/a&gt; and &lt;a tiddlylink=&quot;ClippedLine&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to http://mmmccormick.com/#ClippedLine&quot; href=&quot;http://mmmccormick.com/#ClippedLine&quot; class=&quot;externalLink&quot;&gt;ClippedLine&lt;/a&gt; have been incorporated into 0.98.  Props to John Hunter.  For future improvements, we may go with the shiny &lt;a target=&quot;_blank&quot; title=&quot;External link to http://www.pythonxy.com/foreword.php&quot; href=&quot;http://www.pythonxy.com/foreword.php&quot; class=&quot;externalLink&quot;&gt;Python(x,y)&lt;/a&gt; which has 0.98.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;h2&gt;Files&lt;/h2&gt;source: &lt;a target=&quot;_blank&quot; title=&quot;External link to software/tcd_analyze/tcd_analyze-0.5.0.tar.bz2&quot; href=&quot;software/tcd_analyze/tcd_analyze-0.5.0.tar.bz2&quot; class=&quot;externalLink&quot;&gt;tcd_analyze-0.5.0.tar.bz2&lt;/a&gt;&lt;br&gt;source: &lt;a target=&quot;_blank&quot; title=&quot;External link to software/tcd_analyze/tcd_analyze-0.5.0.zip&quot; href=&quot;software/tcd_analyze/tcd_analyze-0.5.0.zip&quot; class=&quot;externalLink&quot;&gt;tcd_analyze-0.5.0.zip&lt;/a&gt;&lt;br&gt;binary: &lt;a target=&quot;_blank&quot; title=&quot;External link to software/tcd_analyze/tcd_analyze-0.5.0.win32.exe&quot; href=&quot;software/tcd_analyze/tcd_analyze-0.5.0.win32.exe&quot; class=&quot;externalLink&quot;&gt;tcd_analyze-0.5.0.win32.exe&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;h2&gt;Notes&lt;/h2&gt;&lt;ul&gt;&lt;li&gt; Internally, an option has been added to use either the centisecond delay found in the files or the system clock time for plotting the hit and mark delays.  There is considerable discrepancy (up to 15 seconds at times) on the machine I work on.  I am not sure if it is due to clock drift or another problem.  Currently, it appears the centisecond delay is more accurate, but please let me know if you have information on this.&lt;/li&gt;&lt;li&gt; For speed purposes, the bottom scout plot is decimated.  This means you may not be able to see rapid spikes that could be associated with emboli directly in that plot.  &lt;/li&gt;&lt;li&gt; The code has gotten very sloppy, so hack it at your own risk ;-).&lt;/li&gt;&lt;/ul&gt;&lt;br&gt;&lt;h2&gt;Changelog&lt;/h2&gt;&lt;h3&gt;0.5&lt;/h3&gt;&lt;ul&gt;&lt;li&gt; calculate, plot, and save to file the TAP, time-average peak velocity&lt;/li&gt;&lt;/ul&gt;&lt;br&gt;&lt;h3&gt;0.4&lt;/h3&gt;&lt;ul&gt;&lt;li&gt; plot MARKS&lt;/li&gt;&lt;li&gt; no decimation (level of detail) in the middle plot&lt;/li&gt;&lt;/ul&gt;</description>
<category>software</category>
<category>python</category>
<category>ultrasound</category>
<link>http://mmmccormick.com/#tcd_analyze</link>
<pubDate>Thu, 10 Jul 2008 12:28:00 GMT</pubDate>
</item>
<item>
<title>software</title>
<description>&lt;h1&gt;Bash scripts&lt;/h1&gt;&lt;ul&gt;&lt;li&gt;&lt;a tiddlylink=&quot;image2eps&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to http://mmmccormick.com/#image2eps&quot; href=&quot;http://mmmccormick.com/#image2eps&quot; class=&quot;externalLink&quot;&gt;Convert images to Encapsulated Postscript, EPS&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a tiddlylink=&quot;convert_video_to_frames&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to http://mmmccormick.com/#convert_video_to_frames&quot; href=&quot;http://mmmccormick.com/#convert_video_to_frames&quot; class=&quot;externalLink&quot;&gt;Convert video to individual frame images&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a tiddlylink=&quot;dlfiles&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to http://mmmccormick.com/#dlfiles&quot; href=&quot;http://mmmccormick.com/#dlfiles&quot; class=&quot;externalLink&quot;&gt;Download all music (or other) files from a webpage&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a tiddlylink=&quot;strip_trailing_whitespaces&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to http://mmmccormick.com/#strip_trailing_whitespaces&quot; href=&quot;http://mmmccormick.com/#strip_trailing_whitespaces&quot; class=&quot;externalLink&quot;&gt;Strip trailing whitespaces&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a tiddlylink=&quot;tethered_authenticate&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to http://mmmccormick.com/#tethered_authenticate&quot; href=&quot;http://mmmccormick.com/#tethered_authenticate&quot; class=&quot;externalLink&quot;&gt;Tethered Authenticate&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br&gt;&lt;h1&gt;C++&lt;/h1&gt;&lt;br&gt;&lt;h1&gt;ebuilds&lt;/h1&gt;gentoo/paludis packages&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;a target=&quot;_blank&quot; title=&quot;External link to http://gitorious.org/projects/thewtex-repo&quot; href=&quot;http://gitorious.org/projects/thewtex-repo&quot; class=&quot;externalLink&quot;&gt;My repository&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br&gt;&lt;h1&gt;Matlab&lt;/h1&gt;&lt;br&gt;&lt;h1&gt;Python&lt;/h1&gt;&lt;ul&gt;&lt;li&gt;&lt;a tiddlylink=&quot;tcd_analyze&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to http://mmmccormick.com/#tcd_analyze&quot; href=&quot;http://mmmccormick.com/#tcd_analyze&quot; class=&quot;externalLink&quot;&gt;DWL Multidop L2 transcranial doppler viewer.&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</description>
<category>software</category>
<link>http://mmmccormick.com/#software</link>
<pubDate>Fri, 02 May 2008 04:43:00 GMT</pubDate>
</item>
<item>
<title>Musica Elegante</title>
<description>&lt;h1&gt;Style&lt;/h1&gt;Musica Elegante was an old-school latin big band that made elegant music a reality.  Cha chas, mambos, tangos, and beguine.  Tight, classy tunes with a distinctive flavor.  &lt;br&gt;&lt;br&gt;&lt;h1&gt;Artists&lt;/h1&gt;Easily the most talented group I have ever played with&lt;span&gt;—&lt;/span&gt; Ken on the set, a couple of other great percussionists, Bill Berlyn, Jim Krofta (RIP) et. al. on trumpet, a good bone, and some hot saxes.  All lead by the great mind and ear of Dr. Nicholas Contorno.  Not only great players, but great people filled with the umami joy brought by music.  If you are in Milwaukee and have need for a jazz/latin/etc band, give Dr. C a call.  He will not disappoint.&lt;br&gt;&lt;br&gt;These recordings were made in the Varsity Theater at Marquette University.&lt;br&gt;&lt;br&gt;&lt;h1&gt;Files&lt;/h1&gt;&lt;a target=&quot;_blank&quot; title=&quot;External link to music/latin_band/musica_elegante/musica_elegante.zip&quot; href=&quot;music/latin_band/musica_elegante/musica_elegante.zip&quot; class=&quot;externalLink&quot;&gt;All&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;a target=&quot;_blank&quot; title=&quot;External link to music/latin_band/musica_elegante/01-Mambo_Inn_Cha_Cha.mp3&quot; href=&quot;music/latin_band/musica_elegante/01-Mambo_Inn_Cha_Cha.mp3&quot; class=&quot;externalLink&quot;&gt;Mambo Inn Cha Cha&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;a target=&quot;_blank&quot; title=&quot;External link to music/latin_band/musica_elegante/02-Brazil_Samba.mp3&quot; href=&quot;music/latin_band/musica_elegante/02-Brazil_Samba.mp3&quot; class=&quot;externalLink&quot;&gt;Brazil Samba&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;a target=&quot;_blank&quot; title=&quot;External link to music/latin_band/musica_elegante/03-Speak_Low_Beguine.mp3&quot; href=&quot;music/latin_band/musica_elegante/03-Speak_Low_Beguine.mp3&quot; class=&quot;externalLink&quot;&gt;Speak Low Beguine&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;a target=&quot;_blank&quot; title=&quot;External link to music/latin_band/musica_elegante/04-Carefree_Slow_Cha_Cha.mp3&quot; href=&quot;music/latin_band/musica_elegante/04-Carefree_Slow_Cha_Cha.mp3&quot; class=&quot;externalLink&quot;&gt;Carefree Slow Cha Cha&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;a target=&quot;_blank&quot; title=&quot;External link to music/latin_band/musica_elegante/05-Misirlu_Latin_Rock.mp3&quot; href=&quot;music/latin_band/musica_elegante/05-Misirlu_Latin_Rock.mp3&quot; class=&quot;externalLink&quot;&gt;Misirlu Latin Rock&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;a target=&quot;_blank&quot; title=&quot;External link to music/latin_band/musica_elegante/06-Isle_of_Capri_Cha_Cha.mp3&quot; href=&quot;music/latin_band/musica_elegante/06-Isle_of_Capri_Cha_Cha.mp3&quot; class=&quot;externalLink&quot;&gt;Isle of Capri Cha Cha&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;a target=&quot;_blank&quot; title=&quot;External link to music/latin_band/musica_elegante/07-Walter_Winchell_Tango.mp3&quot; href=&quot;music/latin_band/musica_elegante/07-Walter_Winchell_Tango.mp3&quot; class=&quot;externalLink&quot;&gt;Walter Winchell Tango&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;a target=&quot;_blank&quot; title=&quot;External link to music/latin_band/musica_elegante/08-La_Cumparsita_Tango.mp3&quot; href=&quot;music/latin_band/musica_elegante/08-La_Cumparsita_Tango.mp3&quot; class=&quot;externalLink&quot;&gt;La Cumparsita Tango&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;a target=&quot;_blank&quot; title=&quot;External link to music/latin_band/musica_elegante/09-I_Love_Lucy_Mambo.mp3&quot; href=&quot;music/latin_band/musica_elegante/09-I_Love_Lucy_Mambo.mp3&quot; class=&quot;externalLink&quot;&gt;I Love Lucy Mambo&lt;/a&gt;&lt;br&gt;</description>
<category>music</category>
<category>latin</category>
<category>bass</category>
<link>http://mmmccormick.com/#%5B%5BMusica%20Elegante%5D%5D</link>
<pubDate>Fri, 25 Apr 2008 15:16:00 GMT</pubDate>
</item>
<item>
<title>music</title>
<description>&lt;h1&gt;Solo&lt;/h1&gt;&lt;h2&gt;Bass&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;&lt;a tiddlylink=&quot;Amerika&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to http://mmmccormick.com/#Amerika&quot; href=&quot;http://mmmccormick.com/#Amerika&quot; class=&quot;externalLink&quot;&gt;Amerika&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br&gt;&lt;h1&gt;Latin Big Band&lt;/h1&gt;&lt;h2&gt;Bass&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;&lt;a tiddlylink=&quot;Musica Elegante&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to http://mmmccormick.com/#Musica Elegante&quot; href=&quot;http://mmmccormick.com/#Musica%20Elegante&quot; class=&quot;externalLink&quot;&gt;Musica Elegante&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</description>
<category>music</category>
<link>http://mmmccormick.com/#music</link>
<pubDate>Wed, 23 Apr 2008 04:19:00 GMT</pubDate>
</item>
<item>
<title>Amerika</title>
<description>&lt;h1&gt;Composer&lt;/h1&gt;Original, Samuel A. Ward &lt;br&gt;Arrangement, Jaco Pastorius&lt;br&gt;&lt;h1&gt;Artist&lt;/h1&gt;Matt &lt;a tiddlylink=&quot;McCormick&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to http://mmmccormick.com/#McCormick&quot; href=&quot;http://mmmccormick.com/#McCormick&quot; class=&quot;externalLink&quot;&gt;McCormick&lt;/a&gt;&lt;br&gt;&lt;h1&gt;Style&lt;/h1&gt;Traditional with Pastorius pazza&lt;br&gt;&lt;h1&gt;Files&lt;/h1&gt;&lt;a target=&quot;_blank&quot; title=&quot;External link to music/solo/amerika.mp3&quot; href=&quot;music/solo/amerika.mp3&quot; class=&quot;externalLink&quot;&gt;mp3&lt;/a&gt;&lt;br&gt;&lt;a target=&quot;_blank&quot; title=&quot;External link to music/solo/amerika.ogg&quot; href=&quot;music/solo/amerika.ogg&quot; class=&quot;externalLink&quot;&gt;ogg&lt;/a&gt;&lt;br&gt;&lt;a target=&quot;_blank&quot; title=&quot;External link to music/solo/amerika.flac&quot; href=&quot;music/solo/amerika.flac&quot; class=&quot;externalLink&quot;&gt;flac&lt;/a&gt;</description>
<category>music</category>
<category>bass</category>
<category>solo</category>
<link>http://mmmccormick.com/#Amerika</link>
<pubDate>Thu, 17 Apr 2008 18:31:00 GMT</pubDate>
</item>
<item>
<title>SiteTitle</title>
<description>&lt;a tiddlylink=&quot;Matthew M. McCormick&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to http://mmmccormick.com/#Matthew M. McCormick&quot; href=&quot;http://mmmccormick.com/#Matthew%20M.%20McCormick&quot; class=&quot;externalLink&quot;&gt;Matthew M. McCormick&lt;/a&gt; (&lt;a tiddlylink=&quot;thewtex&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to http://mmmccormick.com/#thewtex&quot; href=&quot;http://mmmccormick.com/#thewtex&quot; class=&quot;externalLink&quot;&gt;thewtex&lt;/a&gt;)&lt;br&gt;</description>
<link>http://mmmccormick.com/#SiteTitle</link>
<pubDate>Wed, 16 Apr 2008 17:20:00 GMT</pubDate>
</item>
<item>
<title>Welcome</title>
<description>This site contains some of my contributions to the interwebs.  &lt;br&gt;&lt;img src=&quot;software/tcd_analyze/brain_flow_small.png&quot; alt=&quot;think&quot; title=&quot;think&quot;&gt;&lt;br&gt;&lt;br&gt;Navigate with the main menu on the top, the &lt;strong&gt;close&lt;/strong&gt; and &lt;strong&gt;close others&lt;/strong&gt; buttons above each entry, and search field and tags on the right.&lt;br&gt;&lt;br&gt;This site is a &lt;a target=&quot;_blank&quot; title=&quot;External link to  http://tiddlywiki.com &quot; href=&quot;%20http://tiddlywiki.com%20&quot; class=&quot;externalLink&quot;&gt;TiddlyWiki &lt;/a&gt; with a modified &lt;a target=&quot;_blank&quot; title=&quot;External link to  http://tiddlythemes.com&quot; href=&quot;%20http://tiddlythemes.com&quot; class=&quot;externalLink&quot;&gt;Monochrome&lt;/a&gt; theme.&lt;br&gt;</description>
<link>http://mmmccormick.com/#Welcome</link>
<pubDate>Wed, 16 Apr 2008 17:20:00 GMT</pubDate>
</item>
<item>
<title>hardware</title>
<description>&lt;a target=&quot;_blank&quot; title=&quot;External link to photos/u3_repair/index.html&quot; href=&quot;photos/u3_repair/index.html&quot; class=&quot;externalLink&quot;&gt;How to fix the Cowon iAudio U3&lt;/a&gt;</description>
<link>http://mmmccormick.com/#hardware</link>
<pubDate>Fri, 08 Feb 2008 10:01:00 GMT</pubDate>
</item>
<item>
<title>dlfiles_file</title>
<description>&lt;pre&gt;#!/bin/bash
#
# dlfiles

function usage
{
  echo &quot;download all files with specific extension(s) found in an html or xml file&quot;
  echo
  echo 'usage: dlfiles [OPTIONS] &amp;lt;URL&amp;gt;'
  echo
  echo 'Options:'
  echo '  -h | --help		    this help message'
  echo '  -g | --ogg		    download OGG Vorbis'
  echo '  -m | --mp3		    download MP3s'
  echo '  -p | --pdf		    download PDFs'
  echo '  -o | --output &amp;lt;directory&amp;gt; change the output directory'
  echo '			    defaults to $PWD'
  echo 
  echo 'Created by Matt McCormick (thewtex) &amp;lt;matt@mmmccormick.com&amp;gt;'
  echo 'on 2008 February 7'
  echo 'version 1.0'
}

OUTDIR=$PWD
EXTENSIONS='('
while [ &quot;$1&quot; != &quot;&quot; ] ; do
  case &quot;$1&quot; in
    -h | --help )
      usage
      exit 0
      ;;
    -g | --ogg )
      EXTENSIONS=&quot;${EXTENSIONS}\.ogg)|(&quot;
      shift
      ;;
    -m | --mp3 )
      EXTENSIONS=&quot;${EXTENSIONS}\.mp3)|(&quot;
      shift
      ;;
    -p | --pdf )
      EXTENSIONS=&quot;${EXTENSIONS}\.pdf)|(&quot;
      shift
      ;;
    -o | --output )
      shift
      OUTDIR=&quot;$1&quot;
      if [ ! -w $OUTDIR ]; then
	echo &quot;Error: $OUTDIR does not exist or is not writeable&quot;
	exit 1
      fi
      shift
      ;;
    * )
      URL=&quot;$1&quot;
      shift
      ;;
    esac
done
if [ $EXTENSIONS == '(' ] ; then
  echo &quot;Error: you must specify one or more file extensions&quot;
  echo
  usage
  exit 1
fi
EXTENSIONS=${EXTENSIONS%|(}


cd $OUTDIR

wget -q -O - &quot;${URL}&quot; | egrep -o &quot;http[^[:space:]]+${EXTENSIONS}&quot; | while read
do
  wget &quot;$REPLY&quot;
done


NUMFILES=`wget -q -O - &quot;${URL}&quot; | egrep -o &quot;http[^[:space:]]+${EXTENSIONS}&quot; | wc -l`
echo
echo &quot;$NUMFILES files were downloaded.&quot;
&lt;/pre&gt;</description>
<link>http://mmmccormick.com/#dlfiles_file</link>
<pubDate>Fri, 08 Feb 2008 09:59:00 GMT</pubDate>
</item>
<item>
<title>dlfiles</title>
<description>&lt;h1&gt;Purpose&lt;/h1&gt;download all files with specific extension(s) found in an html webpage&lt;br&gt;&lt;br&gt;&lt;h1&gt;Usage&lt;/h1&gt;dlfiles [OPTIONS] &amp;lt;URL&amp;gt;&lt;br&gt;&lt;br&gt;Options:&lt;br&gt;  -h | &lt;code&gt;--&lt;/code&gt;help               this help message&lt;br&gt;  -g | &lt;code&gt;--&lt;/code&gt;ogg                download OGG Vorbis&lt;br&gt;  -m | &lt;code&gt;--&lt;/code&gt;mp3                download MP3s&lt;br&gt;  -p | &lt;code&gt;--&lt;/code&gt;pdf                download PDFs&lt;br&gt;  -o | &lt;code&gt;--&lt;/code&gt;output &amp;lt;directory&amp;gt; change the output directory&lt;br&gt;                            defaults to $PWD&lt;br&gt;&lt;br&gt;&lt;h1&gt;Requires&lt;/h1&gt;&lt;em&gt;wget, egrep&lt;/em&gt;&lt;br&gt;&lt;br&gt;&lt;h1&gt;Files&lt;/h1&gt;&lt;a tiddlylink=&quot;dlfiles_file&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to http://mmmccormick.com/#dlfiles_file&quot; href=&quot;http://mmmccormick.com/#dlfiles_file&quot; class=&quot;externalLink&quot;&gt;dlfiles&lt;/a&gt;</description>
<category>software</category>
<category>bash</category>
<category>music</category>
<link>http://mmmccormick.com/#dlfiles</link>
<pubDate>Fri, 08 Feb 2008 09:58:00 GMT</pubDate>
</item>
<item>
<title>image2eps</title>
<description>&lt;h1&gt;Convert images to &lt;em&gt;Encapsulated Postscript, EPS&lt;/em&gt;&lt;/h1&gt;&lt;h2&gt;Purpose&lt;/h2&gt;Script to convert all the image files in a directory to EPS with the &lt;em&gt;ImageMagik&lt;/em&gt; &lt;strong&gt;convert&lt;/strong&gt; program&lt;br&gt;&lt;h2&gt;Usage&lt;/h2&gt;./image2eps OPTION [&amp;lt;directory&amp;gt;]&lt;br&gt;&lt;br&gt;Options:&lt;br&gt;-h | &lt;code&gt;--&lt;/code&gt;help this help message&lt;br&gt;-d | &lt;code&gt;--&lt;/code&gt;delete delete the original image files&lt;br&gt;&lt;h2&gt;Requires&lt;/h2&gt;&lt;em&gt;ImageMagik&lt;/em&gt;&lt;br&gt;&lt;h2&gt;Files&lt;/h2&gt;&lt;a tiddlylink=&quot;image2eps_file&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to http://mmmccormick.com/#image2eps_file&quot; href=&quot;http://mmmccormick.com/#image2eps_file&quot; class=&quot;externalLink&quot;&gt;image2eps&lt;/a&gt;</description>
<category>software</category>
<category>bash</category>
<category>imaging</category>
<link>http://mmmccormick.com/#image2eps</link>
<pubDate>Fri, 08 Feb 2008 09:58:00 GMT</pubDate>
</item>
<item>
<title>contact information</title>
<description>&lt;strong&gt;Email:&lt;/strong&gt; matt _at_mmmccormick _dot_com</description>
<link>http://mmmccormick.com/#%5B%5Bcontact%20information%5D%5D</link>
<pubDate>Mon, 04 Feb 2008 00:28:00 GMT</pubDate>
</item>
<item>
<title>tethered_authenticate_files</title>
<description>&lt;pre&gt;#!/bin/bash
#
# tethered_authenticate
#
# automatically login to University of Wisconsin-Madison's College of Engineering Tethered Software
#
# usage: change the USERNAME and PASSWORD variables, put in your crontab 
#   and run every 12 hours
#
# requirements: curl,awk,egrep
#
# created by Matt McCormick, 23 November 2007

USERNAME=&quot;bucky&quot;
PASSWORD=&quot;cheese&quot;

TETHERED_URL=&quot;https://tethered.cae.wisc.edu/authorize/&quot;
# browser identifier
IDENTIFIER=&quot;Opera/9.24 (X11; Linux i686; U; en)&quot;

# get current state of this IP address
function get_state
{
  ACTION=`curl -s -A &quot;$IDENTIFIER&quot; &quot;$TETHERED_URL&quot; | grep 'name=&quot;action&quot;' | awk 'BEGIN { FS=&quot;\&quot;&quot;; ORS=&quot; &quot; } { print $4 }'`
}

# authenticate by 'add'ing this username,password, and ip address
function add 
{
  curl -s -A &quot;$IDENTIFIER&quot; -d &quot;action=add&amp;amp;method=&amp;amp;user=${USERNAME}&amp;amp;passwd=${PASSWORD}&quot; &quot;$TETHERED_URL&quot; &amp;gt; /dev/null
}

# update (renew) this ip address, but really doesn't work and will 
# spit back an add page after 12 hours
function update
{
  MY_IP=`curl -s -A &quot;$IDENTIFIER&quot; &quot;$TETHERED_URL&quot; | grep '(AuthCAE) until' | egrep -o '[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}'`
  curl -s -A &quot;$IDENTIFIER&quot; -d &quot;action=update&amp;amp;key=AuthCAE%3D${USERNAME}%3D${MY_IP}&quot; &quot;$TETHERED_URL&quot; &amp;gt; /dev/null
}


# start main 
get_state

if [ &quot;$ACTION&quot; == &quot;add &quot; ] ; then # if currently not logged in
  add # log in
elif [ &quot;$ACTION&quot; == &quot;del update &quot; ] ; then # else if previously logged in
  update # try to renew login (which doesn't work)
  get_state # see if they ask to log in again
  if [ &quot;$ACTION&quot; == &quot;add &quot; ] ; then
    add
  fi
else
  echo &quot;Output from $TETHERED_URL unrecognized&quot;
  exit 1
fi
&lt;/pre&gt;</description>
<link>http://mmmccormick.com/#tethered_authenticate_files</link>
<pubDate>Sun, 03 Feb 2008 21:18:00 GMT</pubDate>
</item>
<item>
<title>tethered_authenticate</title>
<description>&lt;h1&gt;Purpose&lt;/h1&gt;Automatically login to the University of Wisconsin-Madison's College of Engineering Tethered Software&lt;br&gt;&lt;h1&gt;Usage&lt;/h1&gt;change the &lt;em&gt;USERNAME&lt;/em&gt; and &lt;em&gt;PASSWORD&lt;/em&gt; variables, put the script in your crontab and run every 12 hours&lt;br&gt;&lt;h1&gt;Requires&lt;/h1&gt;&lt;em&gt;curl, awk, egrep&lt;/em&gt;&lt;br&gt;&lt;h1&gt;Files&lt;/h1&gt;&lt;a tiddlylink=&quot;tethered_authenticate_files&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to http://mmmccormick.com/#tethered_authenticate_files&quot; href=&quot;http://mmmccormick.com/#tethered_authenticate_files&quot; class=&quot;externalLink&quot;&gt;tethered_authenticate_files&lt;/a&gt;</description>
<category>software</category>
<category>bash</category>
<category>web</category>
<link>http://mmmccormick.com/#tethered_authenticate</link>
<pubDate>Sun, 03 Feb 2008 21:16:00 GMT</pubDate>
</item>
<item>
<title>convert_video_to_frames_file</title>
<description>&lt;pre&gt;#!/bin/bash
#
# convert_video_to_frames
#
# script to convert a movie file to individual PNG image frames in the movie
#
# requires ffmpeg http://ffmpeg.mplayerhq.hu/
# 
# usage:
#  ./convert_video_to_frames &amp;lt;movie file&amp;gt; [&amp;lt;output path&amp;gt;]
# 
# Matt McCormick 2 November 2007

OUT_PATH=`basename &quot;$1&quot; | sed 's/ //g'`
if [ $# -gt 1 ]; then
  OUT_PATH=&quot;$2&quot;
fi
[ ! -d &quot;$OUT_PATH&quot; ] &amp;amp;&amp;amp; mkdir &quot;$OUT_PATH&quot;

ffmpeg -i &quot;$1&quot; -f image2 &quot;${OUT_PATH}/frame%7d.png&quot;

&lt;/pre&gt;</description>
<link>http://mmmccormick.com/#convert_video_to_frames_file</link>
<pubDate>Sun, 03 Feb 2008 18:44:00 GMT</pubDate>
</item>
<item>
<title>convert_video_to_frames</title>
<description>&lt;h1&gt;Purpose&lt;/h1&gt;Script to convert a movie file to individual frames in the movie&lt;br&gt;&lt;h1&gt;Usage&lt;/h1&gt;./convert_video_to_frames &amp;lt;movie file&amp;gt; [&amp;lt;output path&amp;gt;]&lt;br&gt;&lt;h1&gt;Requires&lt;/h1&gt;&lt;em&gt;ffmpeg&lt;/em&gt;&lt;br&gt;&lt;h1&gt;Files&lt;/h1&gt;&lt;a tiddlylink=&quot;convert_video_to_frames_file&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to http://mmmccormick.com/#convert_video_to_frames_file&quot; href=&quot;http://mmmccormick.com/#convert_video_to_frames_file&quot; class=&quot;externalLink&quot;&gt;convert_video_to_frames_file&lt;/a&gt;&lt;br&gt;</description>
<category>software</category>
<category>bash</category>
<category>imaging</category>
<link>http://mmmccormick.com/#convert_video_to_frames</link>
<pubDate>Sun, 03 Feb 2008 18:43:00 GMT</pubDate>
</item>
<item>
<title>image2eps_file</title>
<description>&lt;pre&gt;
#!/bin/bash

function usage
{
  echo &quot;script to convert all the image files in a directory to EPS with the ImageMagik 'convert' program&quot;
  echo &quot;&quot;
  echo &quot;usage: OPTION [&amp;lt;directory&amp;gt;]&quot;
  echo 
  echo &quot;Options:&quot;
  echo &quot;  -h | --help	this help message&quot;
  echo &quot;  -d | --delete	delete the original image files&quot;
  echo 
  echo &quot;Created by  Matt McCormick&quot;
  echo &quot;28 November 2007&quot;
}

while [ &quot;$1&quot; != &quot;&quot; ] ; do
  case &quot;$1&quot; in 
    -h | --help ) 
      usage
      exit
      ;;
    -d | --delete )
      DELETE_ORIGS=1
      shift
      ;;
    * )
      DIRECTORY=&quot;$1&quot;
      shift
      ;;
  esac
done

suffix=eps  # new filename suffix

if [ &quot;$DIRECTORY&quot; == &quot;&quot; ] || [ -n &quot;$DIRECTORY&quot; ]
then
  DIRECTORY=&quot;$PWD&quot;
fi


ls -1 &quot;$DIRECTORY&quot; | egrep -i '\.jpg|\.jpeg|\.png|\.tif|\.tiff' | while read
do
  img=&quot;$REPLY&quot;
  img_name=${img%.*}

  convert &quot;$img&quot; &quot;$img_name.$suffix&quot;
  echo &quot;  converting $img to $img_name.$suffix&quot;
  if [ $DELETE_ORIGS ] ; then
    rm -f $img
  fi
done

exit $?
&lt;/pre&gt;</description>
<link>http://mmmccormick.com/#image2eps_file</link>
<pubDate>Sun, 03 Feb 2008 04:53:00 GMT</pubDate>
</item>
</channel>
</rss>