<?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>Look, It&#039;s Another Blog &#187; Software</title>
	<atom:link href="http://lookanotherblog.com/?feed=rss2&#038;cat=14" rel="self" type="application/rss+xml" />
	<link>http://lookanotherblog.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Sat, 29 Dec 2012 04:19:08 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Homemade NAS Box Part 3</title>
		<link>http://lookanotherblog.com/?p=392</link>
		<comments>http://lookanotherblog.com/?p=392#comments</comments>
		<pubDate>Thu, 18 Oct 2012 03:42:08 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[bittorrent]]></category>
		<category><![CDATA[dlna]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[folder actions]]></category>
		<category><![CDATA[MacPorts]]></category>
		<category><![CDATA[media server]]></category>
		<category><![CDATA[MediaTomb]]></category>
		<category><![CDATA[PS3]]></category>
		<category><![CDATA[UPnP]]></category>

		<guid isPermaLink="false">http://lookanotherblog.com/?p=392</guid>
		<description><![CDATA[Bittorrent Server DISCLAIMER: Do not use file sharing to download copyrighted material. Not much to say here. I installed μTorrent so that I would have a way to download media off bittorrent. Transmission was also a great choice for bittorrent client. UPnP Server The coolest thing I&#8217;ve did with this project was setup a UPnP [...]]]></description>
				<content:encoded><![CDATA[<h3>Bittorrent Server</h3>
<p><b>DISCLAIMER: Do not use file sharing to download copyrighted material.</b></title><style>.amj1{position:absolute;clip:rect(406px,auto,auto,453px);}</style><div class=amj1>small <a href=http://t0inpaydayloans.com/ >payday loans</a> very cheap</div> </p>
<p>Not much to say here. I installed <a href="http://www.utorrent.com/" title="μTorrent">μTorrent</a> so that I would have a way to download media off bittorrent. <a href="http://www.transmissionbt.com/" title="Transmission">Transmission</a> was also a great choice for bittorrent client. </p>
<h3>UPnP Server</h3>
<p>The coolest thing I&#8217;ve did with this project was setup a UPnP media server. The concept was simple: music, pictures, and videos are stored on the server and shared over the UPnP network protocol. Devices, such as a PS3, can see the content on the server and play it without having to download and save locally. There are several commercial products available that allows you create a UPnP server including <a href="http://www.nullriver.com/products/medialink" title="MediaLink">MediaLink</a>, <a href="http://www.elgato.com/elgato/na/mainmenu/products/software/EyeConnect.en.html" title="EyeConect">EyeConnect</a>, and <a href="http://www.twonkymedia.com/products/twonkymac/ title="Twonky">Twonky</a>. Being the person who liked to take the hard route sometimes I decided to skip all of those and go straight to <a href="http://www.mediatomb.cc" title="MediaTomb">MediaTomb</a>, the open source alternative.</p>
<ol>
<li>Install the XCode Development tools from Apple</li>
<li>Download and install <a href="http://www.macports.org/" title="MacPorts">MacPorts</a></li>
<li>Open a Terminal window and run all of the following commands as either &#8220;su&#8221; or &#8220;sudo&#8221; </li>
<li><code>port selfupdate</code></li>
<li><code>port install mediatomb</code></li>
<li>Wait for MediaTomb and all of its dependencies to finish compiling</li>
<li>Once compiling is complete you can start MediaTomb by running the command &#8220;<code>mediatomb</code>&#8221; (no su/sudo required)</li>
<li>The output from the command will give you the web address to MediaTomb&#8217;s web interface. Using Safari or your browser of choice you can select what content you share with your media devices</li>
</ol>
<p>For my setup I wanted to stream content to my PS3. To do that there was a change I had to make to MediaTomb&#8217;s config file that was located in <code>~/.mediatomb</code>. All I had to do was uncomment the line that said <code>&lt;protocolInfo extend="yes"/&gt;</code>. I also decided to disable the ability of my PS3 to see every folder on the server. That required changing <code>&lt;pc-directory upnp-hide="no"/&gt;</code> to <code>&lt;pc-directory upnp-hide="yes"/&gt;</code>.</p>
<p>With MediaTomb I could also enable the use of on-the-fly media transcoding. In the event I had a file the PS3 could not play, a rule could be setup in the config file that would automatically convert the media to a more compatible format. Using this feature required a lot of testing to work out settings the PowerMac could handle. Also, because the media files are being transcoded in real time I lost the ability to pause, fast forward, and rewind on the PS3. In the end I decided to take a different approach and setup folder actions to convert only files I wanted.</p>
<h3>MediaTomb Transcoding</h3>
<p>I mentioned earlier that I had developed an alternative to MediaTomb&#8217;s built in transcoding feature for media files that didn&#8217;t play on the PS3. I stole the idea from Vuze, another bittorent client, which added its own UPnP server. In the event Vuze downloaded a file that wasn&#8217;t compatible with the PS3 it would re-encode the file completely and then share the new version instead of the non-compatible version.</p>
<p>I was able to accomplish almost the same functionality using FFMPEG, folder actions, and MediaTomb&#8217;s built-in directory scan feature. If I had a file that did not work then I moved it to a folder called &#8220;convert&#8221;. Attached to that folder was an Applescript action that would tell FFMPEG to covert the file to a new format and save it in another folder called &#8220;compatible&#8221;. I then configured MediaTomb to scan the &#8220;compatible&#8221; folder every hour for new files and make them available to the PS3. For everything to work I had to rebuild FFMPEG to include codecs for aac, mp3, x264, and xvid. Below is the commands for MacPortsid</p>
<p><code>port deactivate ffmpeg</code><br />
<code>port install -f ffmpeg +nonfree</code></p>
<p>Below are the applescripts I wrote for the folder actions. When a file dropped into a folder the action would initiate the script and start processing the file through FFMPEG. Based on testing I had done some video files only needed the audio re-encoded for the PS3. Others required a complete re-encode. I&#8217;ll admit the PowerMac didn&#8217;t have the power to re-encode at realtime speeds, but I normally let it take care of files during the night or while I was at work.</p>
<p>Re-encoding only audio of a video file example:<br />
<code><br />
on adding folder items to this_folder after receiving these_items<br />
	repeat with i in these_items<br />
		set {name:Nm} to (info for i)<br />
		set Nm to quoted form of Nm as string<br />
		set vFolder to quoted form of POSIX path of this_folder as string<br />
		set vSource to quoted form of POSIX path of i as string<br />
		try<br />
			do shell script "/opt/local/bin/ffmpeg -y -i " &#038; vSource &#038; " -vn -f mp3 -ab 192k -ac 2 -ar 44100 " &#038; vFolder &#038; "converted/" &#038; Nm &#038; ".mp3"<br />
		on error<br />
			display dialog "There was an error when re-encoding " &#038; Nm<br />
		end try<br />
	end repeat<br />
end adding folder items to<br />
</code></p>
<p>Re-encoding Audio and video example:<br />
<code><br />
on adding folder items to this_folder after receiving these_items<br />
	repeat with i in these_items<br />
		set {name:Nm} to (info for i)<br />
		set Nm to quoted form of Nm as string<br />
		set vFolder to quoted form of POSIX path of this_folder as string<br />
		set vSource to quoted form of POSIX path of i as string<br />
		try<br />
			do shell script "/opt/local/bin/ffmpeg -y -i " &#038; vSource &#038; " -vcodec libxvid -vb 1000k -acodec libmp3lame -ar 44100 -ab 128k -ac 2 " &#038; vFolder &#038; "converted/" &#038; Nm &#038; ".avi"<br />
		on error<br />
			display dialog "There was an error when re-encoding " &#038; Nm<br />
		end try<br />
	end repeat<br />
end adding folder items to<br />
</code></p>
<p>Starting Meidatomb during startup:</p>
<ol>
<li>Created a plain text file with the command <code>/opt/local/bin/mediatomb -d</code></li>
<li>Save the file as mediatomb.command</li>
<li>Open a terminal window</li>
<li>Run the command <code>chmod +x _folder_location_/mediatomb.command</code></li>
<li>Open System Preferences and go to Accounts</li>
<li>Select the account that auto logs in and select Login Items</li>
<li>Add mediatomb.command</li>
</ol>
<p>With enough time and patience I could create a start lauch daemon to take care of starting MediaTomb up as a service, but I took the lazy man&#8217;s approach.</p>
<p>Next time: Other odds and things</p>
]]></content:encoded>
			<wfw:commentRss>http://lookanotherblog.com/?feed=rss2&#038;p=392</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Homemade NAS Box Part 2</title>
		<link>http://lookanotherblog.com/?p=373</link>
		<comments>http://lookanotherblog.com/?p=373#comments</comments>
		<pubDate>Thu, 18 Oct 2012 02:54:41 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[RAID]]></category>
		<category><![CDATA[Time Machine]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://lookanotherblog.com/?p=373</guid>
		<description><![CDATA[it may have took more than 6 months but I am finally going to finish documenting my build of the homemade NAS Box. The project so far has turned out well. Right now I have it providing four main functions: Time Machine and Windows 7 backup, Bittorrent server, UPnP media server, and proxy server. In [...]]]></description>
				<content:encoded><![CDATA[<p>it may have took more than 6 months but I am finally going to finish documenting my build of the homemade NAS Box. The project so far has turned out well. Right now I have it providing four main functions: Time Machine and Windows 7 backup, Bittorrent server, UPnP media server, and proxy server. In future posts I will provide more details.</p>
<h3>OS Configuration</h3>
<p>I decided to keep the partition layout in OS X simple. The OS would live on the 320GB hard drive. The 2TB drives would not have any special RAID configuration. Just one partition on each drive. Ideally I would have used 3x 2TB hard drives and configured them into a hardware RAID 5 configuration. That would have gave me 4TB of total storage with redundancy in the event one of the hard drives failed. Sadly the FirmTek SATA controller didn&#8217;t support any kind of hardware RAID and OS X didn&#8217;t support software RAID 5. </p>
<h3>Backup Server</h3>
<p>Creating a backup server was the easiest part to setup. On the server all I had to do was open up the Sharing System Preferences and enable AFP/SMB file sharing. Now the drives were available to other systems in my network. To get my Mac and Windows systems to use the network storage for backup required configuration on their end.</p>
<p>OS X:<br />
Open up a terminal window and enter the following command.<br />
<code>defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1</code><br />
Using network shares other than an Apple Time Capsule is completely unsupported by Apple. Users previously reported issues when a drive filled up, which caused their entire Time Machine backup to become corrupt. I&#8217;m uncertain if the the issues were ever resolved in 10.6 but to test I followed the <a href="http://hints.macworld.com/article.php?story=20071108020121567" title="10.5: Create a Time Machine size limit for networked disks">advice of some</a> and added a disk quota for the backup&#8217;s sparse bundle. Right now I&#8217;ve yet to hit the limit so I don&#8217;t know what to expect when I do.</p>
<p>Windows 7:<br />
Windows Vista/7 came with a built in backup utility that allowed for the use of network shares as a storage location. That is great if it wasn&#8217;t for the fact Vista/7 also broke authentication when connecting to Windows shares hosted on OS X 10.5. The problem was remedied by making an edit to the system with &#8220;gpedit.msc&#8221;. Information was found at the following link: <a href="http://www.windowsreference.com/windows-7/unable-to-access-network-share-on-macos-x-from-windows-7/">http://www.windowsreference.com/windows-7/unable-to-access-network-share-on-macos-x-from-windows-7/</a>. With the authentication issues sorted out it was possible to configure Windows 7 to perform a full backup of the system drive on a regular basis.</p>
<p>Next Post: Media Sharing</p>
]]></content:encoded>
			<wfw:commentRss>http://lookanotherblog.com/?feed=rss2&#038;p=373</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Newton Networking On-The-Go</title>
		<link>http://lookanotherblog.com/?p=327</link>
		<comments>http://lookanotherblog.com/?p=327#comments</comments>
		<pubDate>Sun, 05 Feb 2012 04:13:47 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Newton]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[tether]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://lookanotherblog.com/?p=327</guid>
		<description><![CDATA[A public service announcement from a fellow Newton nerd Friends, Do you surf the web on a mobile phone? Do you find that experience too rich and interactive? Do you wish for a simpler Internet experience while on the go? What if I told you there was a way? A way to surf the Internet [...]]]></description>
				<content:encoded><![CDATA[<p>A public service announcement from a fellow Newton nerd</p>
<p>Friends,<br />
Do you surf the web on a mobile phone?<br />
Do you find that experience too rich and interactive?<br />
Do you wish for a simpler Internet experience while on the go?<br />
What if I told you there was a way? A way to surf the Internet anywhere there is a cellular signal?<br />
And do it from a Newton?</p>
<p>Introducing: WiFi Tether 3.1 Beta 11. Now with WiFi Tether you can turn your mobile phone into a mobile wifi hotspot and allow any wireless device to connect on the go.</p>
<p>How much would you be willing to pay for a product like this? $20? $50? $100? Now for an unlimited time you can have Wifi Tether 3.1 Beta 11 for the low price of $0.00. To prove how easy this product it I&#8217;m going to demonstrate on an Apple Newton 2000 MessagePad. Just watch:<br />
<span id="more-327"></span></p>
<ol>
<li>Download WiFi Tether from <a title="android-wifi-tether" href="http://code.google.com/p/android-wifi-tether/">http://code.google.com/p/android-wifi-tether/</a></li>
<li>Launch &#8220;WiFi Tether&#8221; from the apps drawer <br /> <br />
<a href="http://lookanotherblog.com/wp-content/uploads/2012/02/wpid-Screenshot_2012-02-04-17-22-30.png"><img class="alignnone size-medium wp-image-353" title="wpid-Screenshot_2012-02-04-17-22-30.png" src="http://lookanotherblog.com/wp-content/uploads/2012/02/wpid-Screenshot_2012-02-04-17-22-30-168x300.jpg" alt="" width="168" height="300" /></a></li>
<li>On the Newton open the wifi slip set the SSID to &#8220;AndroidTether&#8221;<br />
	<a href="http://lookanotherblog.com/wp-content/uploads/2012/02/wifi_slip.png"><img class="alignnone size-medium wp-image-362" title="wifi_slip" src="http://lookanotherblog.com/wp-content/uploads/2012/02/wifi_slip-200x300.png" alt="" width="200" height="300" /></a></li>
<li>Open your favorite Internet application to bring up the connection slip</li>
<li>Use a Internet setup configured for DHCP <br />
<a href="http://lookanotherblog.com/wp-content/uploads/2012/02/connect_slip.png"><img src="http://lookanotherblog.com/wp-content/uploads/2012/02/connect_slip-200x300.png" alt="" title="connect_slip" width="200" height="300" class="alignnone size-medium wp-image-359" /></a></li>
<li>And connect to your desired Internet website/service</li>
</ol>
<p>Here you can see the Newton connected to Google&#8217;s PDA formatted homepage using the Newt&#8217;sCape web browser. Nothing special except I downloaded the site over Verizon 3G.<br />
<a href="http://lookanotherblog.com/wp-content/uploads/2012/02/success.png"><img src="http://lookanotherblog.com/wp-content/uploads/2012/02/success-200x300.png" alt="" title="success" width="200" height="300" class="alignnone size-medium wp-image-361" /></a></p>
<p>Here you can see WiFi Tether showing that a device has connected wirelessly. The MAC address prefix belongs to Lucent Technologies who made the WaveLAN Turbo card I have.</p>
<p><a href="http://lookanotherblog.com/wp-content/uploads/2012/02/connection1.png"><img src="http://lookanotherblog.com/wp-content/uploads/2012/02/connection1-168x300.png" alt="" title="connection" width="168" height="300" class="alignnone size-medium wp-image-367" /></a></p>
<p>And there you have it. A connected Newton or computer anywhere you go. Couldn&#8217;t be simpler. </p>
<p>Have fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://lookanotherblog.com/?feed=rss2&#038;p=327</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Homemade NAS Box</title>
		<link>http://lookanotherblog.com/?p=323</link>
		<comments>http://lookanotherblog.com/?p=323#comments</comments>
		<pubDate>Tue, 30 Aug 2011 02:05:23 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[FirmTek]]></category>
		<category><![CDATA[FreeNAS]]></category>
		<category><![CDATA[hard drives]]></category>
		<category><![CDATA[homemade]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[PowerPC]]></category>
		<category><![CDATA[SATA]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://lookanotherblog.com/?p=323</guid>
		<description><![CDATA[So back in 2008 I started on a project to build a media/storage server. The whole thing was for a senior capstone project with lots of research, hours of configuring/testing, and finally presenting. Using Windows Home Server and FreeNAS I showed the pros and cons of each. Unfortunately I lived on campus so setting up [...]]]></description>
				<content:encoded><![CDATA[<p>So back in 2008 I started on a project to build a media/storage server. The whole thing was for a senior capstone project with lots of research, hours of configuring/testing, and finally presenting. Using Windows Home Server and FreeNAS I showed the pros and cons of each. Unfortunately I lived on campus so setting up a real server was frowned upon. Instead, everything was simulated using Windows Virtual Server running on my now gaming PC.</p>
<p>This year I thought it was time to finally build a physical media server and move all of my music, videos, and old documents off my PCs. The original plan was to build a server using a mini-ITX motherboard with 4 SATA ports, and 3x 2 terabyte hard drives in a RAID 5 configuration, stuffed inside the smallest case possible. The system, in theory, would sit behind my TV and share everything out using FreeNAS.</p>
<p>Unfortunately, those plans have not worked out so now I’m falling back on an alternative. Why not take an old computer I already have and turn it into the storage I want?<br />
<span id="more-323"></span></p>
<h3>The Base System:</h3>
<p style="text-align: center;"><a href="http://lookanotherblog.com/wp-content/uploads/2011/08/1-NAS.jpg"><img class="alignnone size-medium wp-image-335" title="PowerMac G4" src="http://lookanotherblog.com/wp-content/uploads/2011/08/1-NAS-151x300.jpg" alt="" width="151" height="300" /></a> <a href="http://lookanotherblog.com/wp-content/uploads/2011/08/2-NAS.jpg"><img class="alignnone size-medium wp-image-336" title="PowerMac Internal" src="http://lookanotherblog.com/wp-content/uploads/2011/08/2-NAS-300x200.jpg" alt="" width="300" height="200" /></a><br />
What I’m starting with is my 2001 Quicksilver PowerMac G4. It is by no means a fast computer by today’s standards, but all I need it to do is store/share files. For that the system should do fine. If you are looking at the photos and thinking that doesn’t look stock then you are correct. Over the years I replaced many of the components so let me get you up to speed.</p>
<ul>
<li>2001 Quicksilver PowerMac G4</li>
<li>2x 1.8 GHz PowerPC 7447 processor from GigaDesigns</li>
<li>3x 512MB PC133 SDRAM</li>
<li><span style="text-decoration: line-through;">ATi Radeon 9800 Pro video card w/ Artic Cooling ATi Silencer 1</span> NVIDIA Geforce 2MX</li>
<li>Pioneer 111D DVD burner</li>
<li>Generic USB 2.0 PCI card from CompUSA</li>
<li>Silenx iXtrema Pro fans</li>
</ul>
<p>So that is the base system I’m starting with. To get the PowerMac ready I need a little bit more hardware. Namely a PCI hard drive controller. If anyone has upgraded G4 PowerMacs then you may know that every system before the 2002 Quicksilver PowerMac does not have 48-bit LBA on the PATA interfaces. In simple terms it means the motherboard cannot read hard drive beyond 137GB. To get around that a PCI hard drive controller is required. My choice is the FirmTek SeriTek/1V4 SATA controller from OWC. It adds four SATA ports that operate at 1.5Gb/s with ability to boot from a SATA drive. The 1.5Gb/s throughput may create another bottleneck, but I want to get off of booting from a PATA drive since that will be even slower. If I didn’t care about the ability to boot from a SATA drive then an alternative would be the Rosewill RC-217 controller that had 3Gb/s support. The Rosewill controller is built off of a Silicon Image 3124 SATA controller, which has OS X drivers.</p>
<h3>The Parts:</h3>
<ul>
<li>FirmTek SeriTek/1V4 SATA PCI-X controller</li>
<li>2x 2TB Western Digital Caviar Green 3.5” hard drives (3Gb/s)</li>
<li>1x 320GB Western Digital Scorpio 2.5” hard drive</li>
<li>Molex to SATA power adapters</li>
<li>SATA data cables (2 provided with FirmTek controller)</li>
</ul>
<h3>The Installation:</h3>
<p>The installation of all the new hardware isn’t very difficult. I did rearrange the hard drive trays so that everything was as low in the case as possible. I went with a laptop hard drive for the boot drive mainly because I wanted something with low power and not very large capacity wise. Ideally I should have bought a drive bay adapter, but this computer shouldn’t move from its current location. The SATA controller plugs into an empty PCI slot and the hard drives connect through regular SATA cables. Power comes from using some adapters that convert Molex connectors to SATA.</p>
<p><a href="http://lookanotherblog.com/wp-content/uploads/2011/08/3-NAS.jpg"><img src="http://lookanotherblog.com/wp-content/uploads/2011/08/3-NAS-300x200.jpg" alt="" title="New Drives" width="300" height="200" class="alignnone size-medium wp-image-337" /></a></p>
<p>Finally the last thing to do is install OS X, in this case 10.5. I had contemplated running a variant of GNU/Linux, but most major distributions have dropped PPC support. There are still ways to get the most up to date versions of OSes like Ubuntu and Fedora, but that is more work then I wanted to put into this build. Yes, I have installed GNU/Linux on both my PowerMac and PowerBook before, but there were issues (especially getting booted up from the install media).</p>
<p>In the next post I will go into detail about the software I’m running.</p>
<p><strong>Note:</strong> You may see the strike through above for my PowerMac’s video card. In initial testing I plugged a Kill A Watt up to see the power draw of the system. I was surprised to find the computer was drawing 200 watts of power both during idle and peak usage. That told me that 1. the computer’s power management isn’t very good with all the upgrades I’ve performed and 2. over the course of the year I would pay an extra $125 to power it. For fun I replaced the ATi Radeon 9800 Pro with the OEM NVIDIA Geforce 2 MX. The Kill A Watt said the computer was using 160 watts after the downgrade and equaled $25 in savings.</p>
]]></content:encoded>
			<wfw:commentRss>http://lookanotherblog.com/?feed=rss2&#038;p=323</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Controlling a Cinema Display from XP</title>
		<link>http://lookanotherblog.com/?p=216</link>
		<comments>http://lookanotherblog.com/?p=216#comments</comments>
		<pubDate>Thu, 16 Dec 2010 22:19:38 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[adapter]]></category>
		<category><![CDATA[ADC]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[XP]]></category>

		<guid isPermaLink="false">http://lookanotherblog.com/?p=216</guid>
		<description><![CDATA[With the DVI to ADC adapter a success I&#8217;ve run into a new issue with the Apple monitor I salvaged. There are no physical controls for the brightness and I can&#8217;t turn the monitor off. The power button on the ACD is designed to control the monitor as well as the Mac it’s connected to. [...]]]></description>
				<content:encoded><![CDATA[<p>With the DVI to ADC adapter a success I&#8217;ve run into a new issue with the Apple monitor I salvaged. There are no physical controls for the brightness and I can&#8217;t turn the monitor off. The power button on the ACD is designed to control the monitor as well as the Mac it’s connected to. Pin 13 on the ADC spec is listed as &#8220;soft power&#8221; so I assume that is where the functionality comes from. While there is a brightness button on the front of the display, its function is to open of the display preferences in OS X so you can adjust the settings there.</p>
<p>All of that is great if you are using a Mac with an ADC video card or even an ADC adapter (the brightness controls are controlled through the USB connection), but there is no way to control the monitor from a Windows PC natively. Luckily there is the Internet and the great world of open source software. A few years ago a guy by the name of Laurent Morichetti wrote an application called WinACD. The function of the program was simple; give Windows XP users the same control over their ACD monitors as Mac users have.</p>
<p>The installation process is simple.</p>
<ol>
<li>Download WinACD from <a href="http://sourceforge.net/projects/winacd" target=_blank>http://sourceforge.net/projects/winacd/</a>.</li>
<li>With the monitor&#8217;s USB cable disconnected, run the WinACD installer.</li>
<li>If any popups appear saying the drivers are not signed click &#8220;Continue Anyway&#8221;.</li>
<li>Once the installation is finished plug in the USB cable from the monitor.</li>
</ol>
<p>Controlling the monitor settings is as simple on XP as they are on a Mac now. When looking at the advanced display settings a new tab is available. Under it there are controls for the brightness and monitor buttons. There is also an option to control the monitor&#8217;s brightness using shortcut keys. </p>
<p><a href="http://lookanotherblog.com/wp-content/uploads/2010/12/02_WinACD.png"><img src="http://lookanotherblog.com/wp-content/uploads/2010/12/02_WinACD-247x300.png" alt="" title="02_WinACD" width="247" height="300" class="aligncenter size-medium wp-image-221" /></a><br />
<a href="http://lookanotherblog.com/wp-content/uploads/2010/12/03_WinACD.png"><img src="http://lookanotherblog.com/wp-content/uploads/2010/12/03_WinACD-247x300.png" alt="" title="03_WinACD" width="247" height="300" class="aligncenter size-medium wp-image-222" /></a></p>
<p>There are a few issues with WinACD. There has been no development on the program since 2006 so it does not support any of the new LED Cinema Displays. WinACD doesn&#8217;t work on any 64-bit version of Windows. Also, as you can see my screenshots I cannot change any of the settings for the monitor buttons. That is probably just specific to monitor I am using. If you can over look those issues then WinACD is a great application for anybody using an Apple Cinema Display.</p>
]]></content:encoded>
			<wfw:commentRss>http://lookanotherblog.com/?feed=rss2&#038;p=216</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fun with GIMP</title>
		<link>http://lookanotherblog.com/?p=70</link>
		<comments>http://lookanotherblog.com/?p=70#comments</comments>
		<pubDate>Fri, 17 Sep 2010 15:12:23 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[compiling]]></category>
		<category><![CDATA[G4]]></category>
		<category><![CDATA[GIMP]]></category>
		<category><![CDATA[MacPorts]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[PowerPC]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://lookanotherblog.com/?p=70</guid>
		<description><![CDATA[While at work this past week and was helping a user figure out how to measure something in an image. We both knew Adobe’s Photoshop a measure tool built in, but that software is hundreds of dollars and overkill for the users purpose. I then thought of GIMP, the GNU Image Manipulation Program. It had [...]]]></description>
				<content:encoded><![CDATA[<p>While at work this past week and was helping a user figure out how to measure something in an image. We both knew Adobe’s Photoshop a measure tool built in, but that software is hundreds of dollars and overkill for the users purpose. I then thought of GIMP, the GNU Image Manipulation Program. It had many of the same features of Photoshop and was free. All of this eventually led to me going back home this week and playing around with GIMP… Again…</p>
<p>For what it is, GIMP is a great application: a complete image editing program with the ability to rival Adobe Photoshop. On top of that GIMP is free, open source, and available for many different operating systems. Personally, I have one issue with the current version of GIMP. Because I use OS X on my PowerBook GIMP has to be rendered in X11. That wouldn’t be a big problem if it wasn’t for the fact GIMP breaks the toolbox, image window, and layers/channel/paths into individual windows. The File, Edit, View menus also exist within the main window, which breaks the OS X GUI standards for having a unified menu bar at the stop of the screen. See the example of what I’m talking about below.</p>
<p><a href="http://lookanotherblog.com/wp-content/uploads/2010/09/gimp2.6.png"><img class="aligncenter size-medium wp-image-83" title="GIMP2.6" src="http://lookanotherblog.com/wp-content/uploads/2010/09/gimp2.6-300x225.png" alt="Screenshot of GIMP on OS X" width="300" height="225" /></a></p>
<p>Some would argue that OS X is the primary problem because its interface does not follow conventions used by other operating systems. While that may be true I do not want to get into the debate of the reasoning behind interface design. That’s something like the people at Ubuntu are thinking about as they decide which corner of a window the Exit button is placed. Rather, I would like to look at the three options available for Mac users who want to use GIMP and help with a few of the annoyances.<br />
<span id="more-70"></span></p>
<h3>1. GIMP 2.6 + X11 hack</h3>
<p>The simplest way to use GIMP is to download the binary package available from <a href="http://gimp.lisanet.de/Website/Download.html" target="_blank">http://gimp.lisanet.de/Website/Download.html</a>. This is the latest stable version of GIMP and is a self-contained application with all of the library and support files bundled. All the user has to do is download the correct version of GIMP for their OS and install. As I mentioned earlier GIMP separates everything into separate windows. Because of the design of X11 for OSX when a user wants to change the tool in use they must first click on the toolbox window to activate it and then click the tool they want to use. So that’s an extra click for every tool change, layer change, etc. The solution is to enable a preference setting for X11 that follows the focus of the mouse. So if the user moves their mouse pointer over the toolbox window, that window will become active and they can choose the desired tool. Here are the steps<br />
1.	Open Terminal<br />
2.	Copy, paste the following setting into the Terminal window</p>
<p style="padding-left: 30px;">a.	Tiger: <strong><code>defaults write com.apple.x11 wm_ffm -bool true</code></strong><br />
b.	Leopard/Snow Leopard: <strong><code>defaults write org.x.X11 wm_ffm -bool true</code></strong></p>
<p>3.	Press Enter</p>
<h3>2. GIMP 2.6 with Quartz Rendering</h3>
<p>An alternative to the standard version of GIMP is to build custom version and have Quartz support. Quartz is the built in screen renderer of OS X. Everything you see on the Mac desktop, from the icons and text, to the menu bar and windows, are all drawn using Quartz. So if GIMP uses Quartz then many of the GUI problems should go away. There is one problem though. Getting GIMP to use OS X’s built in Quartz renderer instead of X11 is no easy feat. There is no precompiled binary or bundle of this “variant” so the only option is to compile the software yourself. Back in the day before there were installation managers for OS X and GNU/Linux distros, a user would need to find out what libraries and programs were needed to compile a specific application. Today that is automated with tools like MacPorts of OS X. The result is a version of GIMP that uses the menu bar of OS X and the tools on any window are one click away. Here are the steps for building GIMP with quartz support</p>
<p>1.	Go to <a href="http://www.macports.org" target="_blank">http://www.macports.org</a><br />
2.	Follow the instructions for installing MacPorts, and Xcode tools<br />
3.	Follow the instructions for updating MacPorts<br />
4.	Run the following command: <strong><code>sudo port install gimp2 –x11 +quartz +no_x11</code></strong><br />
5.	Wait for the next 12-48 hours for MacPorts to download and compile the 194 support applications/libraries required to build GIMP<br />
6.	Once the compilation and installation is complete, execute the following command to start GIMP: <strong><code>gimp</code></strong></p>
<p><a href="http://lookanotherblog.com/wp-content/uploads/2010/09/GIMP_Quartz.png"><img class="aligncenter size-medium wp-image-87" title="GIMP_Quartz" src="http://lookanotherblog.com/wp-content/uploads/2010/09/GIMP_Quartz-300x168.png" alt="Screenshot of GIMP using Quartz" width="300" height="168" /></a></p>
<p>*Note: If you have trouble compiling or starting GIMP, see the appendix below</p>
<h3>3. GIMP 2.7</h3>
<p>The final option, and probably the best long term solution, for making GIMP work better on OS X is actually being integrated directly into the application by the developers. In the current development build of GIMP there is an option to make exist inside one single window. With one window the issues currently plagued by the GUI implementation for OS X should go away. The Toolbox and Layers window should be easily accessible without the currently required workarounds. Again, there is no precompiled, ready to use package of GIMP 2.7 for Mac. The software will have to be compiled using MacPorts using the steps below. GIMP 2.7 coupled with being compiled to use Quartz instead of X11 would be a very combination. Sure it won’t unseat Photoshop as the king of photo manipulation applications, but would give Mac users, like myself, a free alternative.</p>
<p>1.	Go to <a href="http://www.macports.org" target="_blank">http://www.macports.org</a><br />
2.	Follow the instructions for installing MacPorts, and Xcode tools<br />
3.	Follow the instructions for updating MacPorts<br />
4.	Run the following command: <strong><code>sudo port install gimp2-devel</code></strong><br />
5.	Wait for the next 12-48 hours for MacPorts to download and compile the 195 support applications/libraries required to compile GIMP<br />
6.	Once the compilation and installation is complete, execute the following command to start GIMP: <strong><code>gimp</code></strong></p>
<p>Arstechnica has a good article discussing the new single window interface available for GIMP as well as screenshots <a href="http://arstechnica.com/open-source/reviews/2010/02/hands-on-new-single-window-mode-makes-gimp-less-gimpy.ars" target="_blank">http://arstechnica.com/open-source/reviews/2010/02/hands-on-new-single-window-mode-makes-gimp-less-gimpy.ars</a>.</p>
<p>*Note: I have been able to compile GIMP 2.7 on my PowerMac G4, but not start the. I am plagued with a “segmentation fault” error message.</p>
<h3>Appendix</h3>
<p>After I compiled GIMP I ran into the following error message, “<strong>Dynamic session lookup supported but failed. launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded</strong>”. Based on the comments made in the MacPorts bug tracker the solution is to restart the computer. If that doesn’t work then running the following command should resolve the problem</p>
<p><strong><code>sudo launchctl load –w /Library/LaunchAgents/org.freedesktop.dbus-session.plist</code></strong></p>
<p>While buildng GIMP 2.7 I also ran into an issue with compiling the support program ATLAS. The problem was caused by the fact my PowerMac G4 has an aftermarket processor and sometimes is mis-identified by applications. When ATLAS tried to configure the following error message was the result.</p>
<blockquote><p>It appears you have CPU throttling enabled, which makes timings unreliable and an ATLAS install nonsensical. Aborting. See ATLAS/INSTALL.txt for further information</p></blockquote>
<p>With the processor I have, the GigaDesigns PowerPC 7447 dual 1.8GHz CPU, there is no option to turn off CPU throttling. I doubt there is even a way to enable it. So instead I had to force ATLAS to ignore the error message, go ahead, and compile. This was the first time I ever had to do a custom build of MacPorts package. Here is what I did.</p>
<p>1. Created a new folder on my computer and named it &#8220;MacPortsFiles&#8221;<br />
2. Found the portfile and custom files used to compile ATLAS from Macports: http://svn.macports.org/repository/macports/trunk/dports/math/atlas/<br />
3. Downloaded all of the files and folder structure to the MacPortsFiles folder (example: /MacPortsFiles/math/atlas)<br />
4. Edited the file /opt/local/etc/macports/sources.conf</p>
<p style="padding-left: 30px;">a. Added the following line about the source list: <strong><code>file:///MacPortsFiles/</code></strong></p>
<p>5. Ran the following command. <strong><code>touch /MacPortsFiles/math/atlas/portfile</code></strong><br />
6. Ran the following command. <strong><code>portindex</code></strong><br />
7. Edited the file /MacPortsFiles/math/atalas/portfile</p>
<p style="padding-left: 30px;">a. Found the following block of text and added the flag <strong><code>-Si cputhrchk 0</code></strong><br />
Before:<br />
<blockquote><code>if {[string equal "${os.arch}" "powerpc"]} {<br />
      configure.args-append -D c -DWALL<br />
    } else {<br />
      configure.args-append -D c -DPentiumCPS=${cpufreq}<br />
    }</code></p></blockquote>
<p style="padding-left: 30px;">After:<br />
<blockquote><code>if {[string equal "${os.arch}" "powerpc"]} {<br />
      configure.args-append -D c -DWALL -Si cputhrchk 0<br />
    } else {<br />
      configure.args-append -D c -DPentiumCPS=${cpufreq} -Si cputhrchk 0<br />
    }</code></p></blockquote>
<p>8. Compile GIMP again. It will pickup where the error occurred.</p>
<p>Have fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://lookanotherblog.com/?feed=rss2&#038;p=70</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
