<?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>dicianno.org/blog &#187; obt</title>
	<atom:link href="http://dicianno.org/blog/category/obt/feed/" rel="self" type="application/rss+xml" />
	<link>http://dicianno.org/blog</link>
	<description>notes about computers and lifestyle</description>
	<lastBuildDate>Thu, 04 Feb 2010 21:09:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>rubyosa-0.4.0 Bus Error</title>
		<link>http://dicianno.org/blog/2008/10/06/rubyosa-040-bus-error/</link>
		<comments>http://dicianno.org/blog/2008/10/06/rubyosa-040-bus-error/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 14:35:21 +0000</pubDate>
		<dc:creator>armando</dc:creator>
				<category><![CDATA[obt]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.dicianno.org/blog/?p=70</guid>
		<description><![CDATA[I was having some issues trying out the rubyosa gem, and found this useful japanese blog.
If you see an error like the following:



└──&#62; rdoc-osa &#8211;name Adium


/Library/Ruby/Gems/1.8/gems/rubyosa-0.4.0/lib/rbosa.rb:530: &#91;BUG&#93; Bus Error


ruby 1.8.6 &#40;2008-03-03&#41; &#91;universal-darwin9.0&#93;


&#160;


Abort trap



&#8230; when you are attempting to generate documentation, then you need to install an older version of the libxml-ruby gem, and modify rubyosa [...]]]></description>
			<content:encoded><![CDATA[<p>I was having some issues trying out the rubyosa gem, and found <a href="http://d.hatena.ne.jp/Watson/20081005/1223151845">this</a> useful japanese blog.</p>
<p>If you see an error like the following:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">└──&gt; rdoc-osa &#8211;name Adium</div>
</li>
<li class="li1">
<div class="de1">/Library/Ruby/Gems/<span class="nu0">1.8</span>/gems/rubyosa<span class="nu0">-0.4</span><span class="nu0">.0</span>/lib/rbosa.rb:<span class="nu0">530</span>: <span class="br0">&#91;</span>BUG<span class="br0">&#93;</span> Bus Error</div>
</li>
<li class="li1">
<div class="de1">ruby <span class="nu0">1.8</span><span class="nu0">.6</span> <span class="br0">&#40;</span><span class="nu0">2008</span><span class="nu0">-03</span><span class="nu0">-03</span><span class="br0">&#41;</span> <span class="br0">&#91;</span>universal-darwin9<span class="nu0">.0</span><span class="br0">&#93;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li2">
<div class="de2">Abort <span class="kw3">trap</span></div>
</li>
</ol>
</div>
<p>&#8230; when you are attempting to generate documentation, then you need to install an older version of the libxml-ruby gem, and modify rubyosa slightly.</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">$ <span class="kw2">sudo</span> gem <span class="kw2">install</span> libxml-ruby &#8211;version <span class="nu0">0.3</span><span class="nu0">.8</span><span class="nu0">.4</span></div>
</li>
<li class="li1">
<div class="de1">$ <span class="kw2">sudo</span> <span class="kw2">sed</span> -i -e <span class="st0">&quot;s|require &#8216;xml/libxml&#8217;|gem &#8216;xml/libxml&#8217;, &#8216;= 0.3.8.4&#8242;|&quot;</span> /Library/Ruby/Gems/<span class="nu0">1.8</span>/gems/rubyosa<span class="nu0">-0.4</span><span class="nu0">.0</span>/lib/rbosa.rb</div>
</li>
</ol>
</div>
<p>If this issue is fixed in rubyosa, a simple gem update will override the sed line you just ran, so you don&#8217;t need to worry about it again, unless you reinstall rubyosa-0.4.0.</p>
]]></content:encoded>
			<wfw:commentRss>http://dicianno.org/blog/2008/10/06/rubyosa-040-bus-error/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>&#8220;Your wireless network has been compromised&#8221;</title>
		<link>http://dicianno.org/blog/2008/09/30/your-wireless-network-has-been-compromised/</link>
		<comments>http://dicianno.org/blog/2008/09/30/your-wireless-network-has-been-compromised/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 16:07:18 +0000</pubDate>
		<dc:creator>armando</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[obt]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://www.dicianno.org/blog/?p=60</guid>
		<description><![CDATA[If you&#8217;re running Mac OS X 10.5 Leopard, and you see a somewhat frightening and terse error message that says &#8220;Your wireless network has been compromised&#8220;, then you&#8217;ve probably entered into a world of annoyance.  If you&#8217;re in the situation I was, this message begins to pop-up every few minutes.  Every time it [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re running Mac OS X 10.5 Leopard, and you see a somewhat frightening and terse error message that says &#8220;<em>Your wireless network has been compromised</em>&#8220;, then you&#8217;ve probably entered into a world of annoyance.  If you&#8217;re in the situation I was, this message begins to pop-up every few minutes.  Every time it does, your network access is disabled for 60 seconds.  if you&#8217;re in a Mac-centric office, and many of the developers run VMWare Fusion or Parallels Desktop, you probably noticed this issue begin to appear by now.</p>
<p>You might have tried the following:</p>
<ul>
<li>Disabled security on your WiFi network</li>
<li>Regressed to WEP security</li>
<li>Told everyone not to use the wireless</li>
</ul>
<p>Clearly, none of these work-arounds is ideal.  There is hope.</p>
<p>The problem is among OS X 10.5 &#8211; VMWare Fusion / Parallels Desktop &#8211; the TKIP WPA2 security protocol.  For some reason, installing the VM programs creates a situation on the wireless network that causes a TKIP MIC (or a &#8220;<a href="http://www.ee.oulu.fi/research/ouspg/frontier/sota/whitepaper-wots/paper.html">Michael</a>&#8220;) message integrity check error.  In short: OSX and your router think that the network is being cracked, because of a way that the VM programs use or abuse the networking interface stack.</p>
<p>The <strong>solution</strong> is to regress the security, but by as little as possible.  Simply turn of TKIP or &#8220;TKIP+AES&#8221; encryption on your wireless device, and only allow AES encryption.  This is not ideal, because the Michael check is trying to warn you about network intrusion, however, it simply does not work.</p>
<p><strong>Caveat</strong>: if you find that AES encryption does not work on some devices, you are probably use the stock Linksys firmware on your router.  Consider upgrading to the <a href="http://www.dd-wrt.com/">DD-WRT</a> firmware.  Read the docs, go over notes for your router model, and take the plunge.  The stable Linux-based environment for your router will make your network <em>work</em>, as well as offering you more features, such as local DNS, for example.</p>
]]></content:encoded>
			<wfw:commentRss>http://dicianno.org/blog/2008/09/30/your-wireless-network-has-been-compromised/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VMware Fusion 2.0 beta 1 tools and OpenSolaris 2008.05</title>
		<link>http://dicianno.org/blog/2008/06/16/vmware-fusion-20-beta-1-tools-and-opensolaris-200805/</link>
		<comments>http://dicianno.org/blog/2008/06/16/vmware-fusion-20-beta-1-tools-and-opensolaris-200805/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 16:20:07 +0000</pubDate>
		<dc:creator>armando</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[obt]]></category>
		<category><![CDATA[opensolaris]]></category>

		<guid isPermaLink="false">http://www.dicianno.org/blog/2008/06/16/vmware-fusion-20-beta-1-tools-and-opensolaris-200805/</guid>
		<description><![CDATA[I had a small issue getting vmware tools from VMware 2.0 beta 1 working under OpenSolaris 2008.05.  I don&#8217;t know if it&#8217;s an issue in previous versions of either software.
First, when installing OpenSolaris 2008.05, choose VMware setup options for &#8220;Solaris&#8221;, and either 32-bit or 64-bit depending on your preference.  I wanted, 64-bit, but [...]]]></description>
			<content:encoded><![CDATA[<p>I had a small issue getting vmware tools from VMware 2.0 beta 1 working under OpenSolaris 2008.05.  I don&#8217;t know if it&#8217;s an issue in previous versions of either software.</p>
<p>First, when installing OpenSolaris 2008.05, choose VMware setup options for &#8220;Solaris&#8221;, and either 32-bit or 64-bit depending on your preference.  I wanted, 64-bit, but &#8220;Other / Other 64-bit&#8221; setup option resulted in strange errors at vm boot time.</p>
<p>You can now mount the VMware tools via the menu option &#8220;Virtual Machine&#8221; -> &#8220;Install VMware Tools&#8221;.  A CD icon will appear on your desktop.  Double-click the CD, and the tar file inside there.  Untar the files onto your desktop.  Open a terminal.  Become root.  Before you run the script, we need to create some directories to help the installation complete.</p>
<p><code><br />
	# su -<br />
	(password)<br />
	# mkdir -p /usr/dt/config/Xsession.d<br />
	# mkdir -p /etc/X11/xinit/xinitrc.d<br />
	# cd ~/Desktop/vmware-tools-distrib<br />
	# ./vmware-install.pl<br />
	(run the script)<br />
	# cd /etc/X11/xinit/xinitrc.d<br />
	# ln -s /usr/dt/config/Xsession.d/9999.autostart-vmware-user.sh<br />
</code></p>
<p>What we did above was create and old directory the install script wanted to use, a new directory that will be used by gdm (the login manager), and then linked the files accordingly.</p>
<p>If you log out (or reboot), and log back in, you will now see:</p>
<p><code><br />
	$ ps -ae |grep vmware<br />
	  794 ?           0:03 vmware-m<br />
	  868 ?           0:07 vmware-g<br />
	12428 ?           0:04 vmware-u</p>
<p></code></p>
<p>The <tt>vmware-u</tt> is the vmware-user process that needs to get launched, so that features like autoresize and copy &amp; paste will work.</p>
<p>Now &#8212; on to play with ZFS!</p>
]]></content:encoded>
			<wfw:commentRss>http://dicianno.org/blog/2008/06/16/vmware-fusion-20-beta-1-tools-and-opensolaris-200805/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>tar backup stupidity and limited space</title>
		<link>http://dicianno.org/blog/2008/06/11/tar-backup-stupidity-and-limited-space/</link>
		<comments>http://dicianno.org/blog/2008/06/11/tar-backup-stupidity-and-limited-space/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 04:12:01 +0000</pubDate>
		<dc:creator>armando</dc:creator>
				<category><![CDATA[cli]]></category>
		<category><![CDATA[obt]]></category>

		<guid isPermaLink="false">http://www.dicianno.org/blog/2008/06/11/tar-backup-stupidity-and-limited-space/</guid>
		<description><![CDATA[So, pretend you have:

a new Mac laptop with a fast hard drive, but one that is smaller than all the data you need to backup
A backup hard drive you&#8217;ve used on Windows and Linux, but is formatted NTFS, and is much larger than your new laptop&#8217;s HD
You have files named on your system that needs [...]]]></description>
			<content:encoded><![CDATA[<p>So, pretend you have:</p>
<ul>
<li>a new Mac laptop with a fast hard drive, but one that is smaller than all the data you need to backup</li>
<li>A backup hard drive you&#8217;ve used on Windows and Linux, but is formatted NTFS, and is much larger than your new laptop&#8217;s HD</li>
<li>You have files named on your system that needs to be backed up that aren&#8217;t kosher for NTFS</li>
</ul>
<p>So, being a Linux geek, you realize &#8220;Ha! I&#8217;ll just tar my files up, copy it to the backup drive, over to the new system, and untar.&#8221;</p>
<p>Yes &#8211; you do just that, but then you need to use your laptop for work; so instead of waiting to untar the file, you copy the <em>very large</em> backup tar files from the external HD to your new laptop.</p>
<p>Now, here&#8217;s the problem: you can&#8217;t untar the entire tar flle w/o running out of space.  What do you do?  <strong>Un-tar a bit at a time; delete; continue.</strong></p>
<p>Untar a bit of the archive you want, delete it from the tar, and continue until you have more space on your HD than the rest of the tar file.<br />
<code><br />
# tar xf MYBACKUP.tar This/directory/I/want<br />
# tar --delete --file=MYBACKUP.tar This/directory/I/want<br />
</code>
</p>
<p>This method works surprisingly well, considering the tar file crossed all three major operating systems.</p>
<p>If you are unsure of what is inside the archive, you can use:<br />
<code><br />
# tar --list --file=MYBACKUP.tar<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://dicianno.org/blog/2008/06/11/tar-backup-stupidity-and-limited-space/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSL support for Apache in my prefix-portage overlay</title>
		<link>http://dicianno.org/blog/2007/06/21/ssl-support-for-apache-in-my-prefix-portage-overlay/</link>
		<comments>http://dicianno.org/blog/2007/06/21/ssl-support-for-apache-in-my-prefix-portage-overlay/#comments</comments>
		<pubDate>Thu, 21 Jun 2007 14:53:21 +0000</pubDate>
		<dc:creator>armando</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[obt]]></category>

		<guid isPermaLink="false">http://www.dicianno.org/blog/2007/06/21/untitled/</guid>
		<description><![CDATA[I&#8217;m working on getting our Rails-based app, at work (OBT &#8211; obtech.net), working with SSL.
Since we all use OSX as our main dev boxen here, as well as Gentoo Linux machines, I long ago started hacking and helping on the Gentoo-Alt Prefix Portage project, so that I could help create one software repository we all [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working on getting our Rails-based app, at work (OBT &#8211; <a href="http://www.obtech.net/">obtech.net</a>), working with SSL.</p>
<p>Since we all use OSX as our main dev boxen here, as well as Gentoo Linux machines, I long ago started hacking and helping on the Gentoo-Alt <a href="http://www.gentoo.org/proj/en/gentoo-alt/prefix/index.xml">Prefix Portage</a> project, so that I could help create one software repository we all use here.  I found it very time consuming, before hand, to help other devs install and configure pieces of software every time they needed something &#8212; they&#8217;re not n00bs or anything, just UNIX CLI stuff isn&#8217;t their usual cup of tea.</p>
<p>I&#8217;m in the process of (re-)becoming an official Gentoo developer, focusing on Prefix Portage this time (last time was GNUstep).  Until that goes through, I have a prefix-portage overlay, which is accessible through <code>layman</code>, or you can use SVN to check it out at <a href="http://www.dicianno.org/svn/PrefixPortage/branches/overlay-fafhrd/">http://www.dicianno.org/svn/PrefixPortage/branches/overlay-fafhrd/</a>.</p>
<p>So, to summarize the point of this post, shortly, I got SSL support working in the Apache ebuild that was already in my overlay, at least on OSX.  So, get to it!</p>
]]></content:encoded>
			<wfw:commentRss>http://dicianno.org/blog/2007/06/21/ssl-support-for-apache-in-my-prefix-portage-overlay/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating stream-able video</title>
		<link>http://dicianno.org/blog/2007/06/19/creating-stream-able-video/</link>
		<comments>http://dicianno.org/blog/2007/06/19/creating-stream-able-video/#comments</comments>
		<pubDate>Tue, 19 Jun 2007 21:20:51 +0000</pubDate>
		<dc:creator>armando</dc:creator>
				<category><![CDATA[cli]]></category>
		<category><![CDATA[obt]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.dicianno.org/blog/2007/06/19/creating-stream-able-video/</guid>
		<description><![CDATA[
I spent much to much time trying to figure out the right combination of video/audio encodings that would would from an RTSP streaming server (went with a RealServer demo, for now) to a variety of clients (QuickTime Player, VLC, various phones, etceteras.)
First, VLC is a champ.  Every time I tried a new streaming server, [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>I spent much to much time trying to figure out the right combination of video/audio encodings that would would from an RTSP streaming server (went with a RealServer demo, for now) to a variety of clients (QuickTime Player, VLC, various phones, etceteras.)</p>
<p>First, VLC is a champ.  Every time I tried a new streaming server, VLC could play the stream with video and audio.  QuickTime Player was not so kind.  Even <strong>the phone we were streaming to</strong> &#8212; the Nokia N95 (<a href="http://forum.nokia.com/devices/N95">tech specs</a>) &#8212; <strong>could play streams that QuickTime Player could not.</strong></p>
<p>I tried a variety of tools, from the venerable ffmpeg to QuickTime Player&#8217;s export functionality to create stream-able videos (mainly for QuickTime, since it was being very picky).  The tools I used were the following:</p>
<ul>
<li>ffmpeg from <a href="http://ffmpeg.mplayerhq.hu/">FFMPEG project</a></li>
<li>faac from <a href="http://www.audiocoding.com/">AudioCoding</a></li>
<li>mp4creator from <a href="http://mpeg4ip.sourceforge.net/">MPEG4IP</a></li>
</ul>
<p>Here is a simple bash loop I made to iterate over .mov&#8217;s in the current directory and create MPEG4 video, MPEG4 audio (AAC LC), in an MPEG4 container that was hinted.  You should set FRAMERATE and SIZE (as &#8220;WxH&#8221;) as environment variables.  Note that the first line has <code>-ac 1</code> which sets the audio to mono.  Also, edit the -qscale to your liking (or remove it).</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw1">for</span> i <span class="kw1">in</span> `<span class="kw2">ls</span> *mov &#8211;<span class="re2">color=</span>never`; <span class="kw1">do</span> </div>
</li>
<li class="li1">
<div class="de1">&nbsp; ffmpeg -i <span class="re1">$i</span> -ac <span class="nu0">1</span> -vn <span class="st0">&quot;$i.wav&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; faac &#8211;mpeg-vers <span class="nu0">4</span> &#8211;tns -o <span class="st0">&quot;$i.aac&quot;</span> <span class="st0">&quot;$i.wav&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; ffmpeg -re -i <span class="st0">&quot;$i&quot;</span> -pass <span class="nu0">1</span> -passlogfile <span class="st0">&quot;${i}pass&quot;</span> -vcodec mpeg4 -r <span class="re1">$FRAMERATE</span> -s <span class="re1">$SIZE</span> -qscale <span class="nu0">8</span> -an <span class="st0">&quot;$i.m4v&quot;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; <span class="kw2">rm</span> -f <span class="st0">&quot;$i.m4v&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; ffmpeg -re -i <span class="st0">&quot;$i&quot;</span> -pass <span class="nu0">2</span> -passlogfile <span class="st0">&quot;${i}pass&quot;</span> -vcodec mpeg4 -r <span class="re1">$FRAMERATE</span> -s <span class="re1">$SIZE</span> -qscale <span class="nu0">8</span> -an <span class="st0">&quot;$i.m4v&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; mp4creator -c <span class="st0">&quot;$i.m4v&quot;</span> -optimize -<span class="re2">rate=</span><span class="re1">$FRAMERATE</span> <span class="st0">&quot;$i.mp4&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; mp4creator -<span class="re2">hint=</span><span class="nu0">1</span> <span class="st0">&quot;$i.mp4&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; mp4creator -c <span class="st0">&quot;$i.aac&quot;</span> -interleave -optimize <span class="st0">&quot;$i.mp4&quot;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; mp4creator -<span class="re2">hint=</span><span class="nu0">3</span> <span class="st0">&quot;$i.mp4&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; mp4creator -list <span class="st0">&quot;$i.mp4&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">done</span></div>
</li>
</ol>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://dicianno.org/blog/2007/06/19/creating-stream-able-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
