<?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>BuzaMoto &#187; Mac</title>
	<atom:link href="http://blog.buzamoto.com/category/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.buzamoto.com</link>
	<description>Life as a BuzaMoto Employee</description>
	<lastBuildDate>Tue, 03 Aug 2010 20:54:23 +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>PhotoViewer with CSS Transition Goodies</title>
		<link>http://blog.buzamoto.com/2010/04/14/photoviewer/</link>
		<comments>http://blog.buzamoto.com/2010/04/14/photoviewer/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 23:46:24 +0000</pubDate>
		<dc:creator>mud</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[iPad]]></category>

		<guid isPermaLink="false">http://blog.buzamoto.com/?p=215</guid>
		<description><![CDATA[
I wanted to play with the new CSS transition stuff, to see what all the fuss was about. At the same time I wanted to make something useful, so I thought why not make a little site for my friend Dave, who is one bad ass photographer. I have a rough demo up and it [...]]]></description>
			<content:encoded><![CDATA[<p><object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=10946270&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=10946270&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object></p>
<p>I wanted to play with the new CSS transition stuff, to see what all the fuss was about. At the same time I wanted to make something useful, so I thought why not make a little site for my friend Dave, who is one bad ass photographer. I have a rough demo up and it works pretty well. It only works with Safari 4, but the good news is that it also works with Mobile Safari.</p>
<p>It&#8217;s really nice that the animation is defined in the CSS and you don&#8217;t need any JavaScript to move objects. It was also really simple to implement, most of the work was done in about an hour. The interaction is simple. Click a picture to zoom into it, then a full version loads, click on it and you zoom back out. You can also move the thumbnails around.</p>
<p>I had to violate some ui for the iPad because of the way mobile safari handles events, or more precisely, doesn&#8217;t handle events. I wanted to maintain the native gestures of but weirdly enough safari does fire any events when double tapping to zoom in, as stated in their documentation. Why?</p>
<p>I decided implementing my own photo uploading/managing would be too much of a pain in the ass, after all Dave isn&#8217;t paying me for this. Yes, this may come as a shock, but I&#8217;m not a total asshole. So I decided to use Flickr as a CMS. Since the API allows for a JavaScript callback, there&#8217;s no backend proxy work required.</p>
<p>Anyway, here&#8217;s a little taste of how it works. You need Safari 4 or iPhone OS 3. Currently, there are three different ways to load photos.</p>
<p>1) Load from a JSON file</p>
<p>Loading a JSON file, don&#8217;t pass any query terms: <a href="http://mud.mitplw.com/PhotoViewer/">http://mud.mitplw.com/PhotoViewer/</a></p>
<p>The actual JSON file is: <a href="http://mud.mitplw.com/PhotoViewer/index.json"> http://mud.mitplw.com/PhotoViewer/index.json</a></p>
<p>2) Load Photosets from a Flickr user</p>
<p>Pass a photoset=flickr_user_id query, like this (using <a href="http://black.mitplw.com/">Luis&#8217;s</a> <a href="http://www.flickr.com/photos/blackaller/">Flickr account</a>)</p>
<p><a href="http://mud.mitplw.com/PhotoViewer/?photoset=75903973@N00">http://mud.mitplw.com/PhotoViewer/?photoset=75903973@N00</a></p>
<p>HINT: you can look up user_ids with <a href="http://idgettr.com/">idGettr</a>.</p>
<p>3) Load Photos from Flickr using tag search</p>
<p>Pass any comma delimited tags like ?drunk,punks</p>
<p><a href="http://mud.mitplw.com/PhotoViewer/?drunk,punks">http://mud.mitplw.com/PhotoViewer/?drunk,punks</a></p>
<p>Finally, I&#8217;ll post the source on github when I finally finish Dave&#8217;s site. Also, maybe in the near future I&#8217;ll add some local storage and HTML5 video support&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.buzamoto.com/2010/04/14/photoviewer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MudTyper 2.0</title>
		<link>http://blog.buzamoto.com/2010/01/10/mudtyper-2-0/</link>
		<comments>http://blog.buzamoto.com/2010/01/10/mudtyper-2-0/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 21:21:40 +0000</pubDate>
		<dc:creator>mud</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Note]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.buzamoto.com/?p=169</guid>
		<description><![CDATA[Like I mentioned earlier, Village 2.0 features the all new MudTyper Version 2. MudTyper 2 has two components: MudTyper Server, a light weight Cocoa HTTP server and MudTyper Renderer, the font renderer. On the Village website, MudTyper is integrated behind the rails application.
The Architecture
An overview of the architecture is shown below:

A POST request from the [...]]]></description>
			<content:encoded><![CDATA[<p>Like I mentioned earlier, <a href="http://vllg.com">Village 2.0</a> features the all new MudTyper Version 2. MudTyper 2 has two components: MudTyper Server, a light weight Cocoa HTTP server and MudTyper Renderer, the font renderer. On the Village website, MudTyper is integrated behind the rails application.</p>
<h4>The Architecture</h4>
<p>An overview of the architecture is shown below:</p>
<p><img class="aligncenter size-medium wp-image-170" title="mudtyper-diagram" src="http://blog.buzamoto.com/wp-content/uploads/2010/01/mudtyper-diagram-500x303.png" alt="mudtyper-diagram" width="500" height="303" /></p>
<p>A POST request from the browser is sent to a <a href="http://weblog.rubyonrails.org/2008/12/17/introducing-rails-metal">Rails Metal</a> URL periodically (as opposed to responding to keystroke events). The Rails Metal method verifies sessions, and request parameters and forwards them over to the MudTyper Server. The MudTyper Server then sends a request to MudTyper Renderer to create either a file that is saved to disk or a base64 encoded string depending on the user&#8217;s browser. The browser receives the image as a response and includes the rendered image into the page.</p>
<h4>Scalability</h4>
<p>With this architecture, it is possible to scale for increased load. We can run multiple instances of MudTyper Server+Renderer, and use <a href="http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html">mod_proxy</a> to get Apache to handle the load balancing.</p>
<h4>Font Rendering</h4>
<p>The new Renderer adds a lot of new support, including support for OpenType fonts with full kerning support, as well as many OTF features. For instance, we can now render <a href="http://vllg.com/Village/Galaxie_Cassiopeia#panel=mudtyper">Galaxie Cassiopeia</a>&#8217;s contextual alternates, adding smooth transitions between letters.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.buzamoto.com/2010/01/10/mudtyper-2-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Logic Board replacement and Time Machine</title>
		<link>http://blog.buzamoto.com/2009/03/30/logic-board-replacement-and-time-machine/</link>
		<comments>http://blog.buzamoto.com/2009/03/30/logic-board-replacement-and-time-machine/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 18:02:17 +0000</pubDate>
		<dc:creator>mud</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Note]]></category>

		<guid isPermaLink="false">http://blog.buzamoto.com/?p=115</guid>
		<description><![CDATA[I recently sent my MacBook Pro to the Apple Store for repair, and it came back all fixed up. A new display for the backlight banding problem, a new top case for a failing keyboard and a new logic board for replacing the nvidia card. I have a Lacie 2Big Triple that I use as a [...]]]></description>
			<content:encoded><![CDATA[<p>I recently sent my MacBook Pro to the Apple Store for repair, and it came back all fixed up. A new display for the backlight banding problem, a new top case for a failing keyboard and a new logic board for replacing the nvidia card. I have a <a href="http://www.lacie.com/products/product.htm?pid=10967">Lacie 2Big Triple</a> that I use as a Time Machine backup for this computer, but I realized the backups kept failing.</p>
<p>Time Machine apparently uses your MAC address to keep track of which machine your backup corresponds to. So of course if you get your logic board replaced, you&#8217;ll have a new MAC address and Time Machine will think this is a different computer.</p>
<p>I did some google searching, but <a href="http://www.macosxhints.com/article.php?story=20080128003716101">this method</a> did not work for me. I had to combine <a href="http://www.tombridge.com/rta/2008/01/after-the-apple.html">this other method</a> to make it all work. Anyway, here&#8217;s the list of what you have to do. First, make sure you go into System Preferences and turn off Time Machine. Then fire up the Terminal and run:</p>
<p><code><br />
$ cd /Volumes/NameOfTMDrive/Backups.backupdb<br />
$ xattr -p com.apple.backupd.BackupMachineAddress NameOfMac<br />
</code></p>
<p>This should spit out your old MAC address. In the backup drive, you will have a hidden file with the values of this MAC address. Now, look up your new MAC address with:</p>
<p><code><br />
$ ifconfig en0<br />
</code></p>
<p>Write the new MAC address down. What you will now do is rename the hidden file from the old MAC address to the new one, then tell backupd your new MAC address. In this example, your old MAC address is aa:bb:cc:dd:ee:ff and new address is 00:11:22:33:44:55, and your computer name is My Computer. We also turn off ACL and turn it back on after we make the changes.</p>
<p><code><br />
$ sudo fsaclctl -p /Volumes/NameOfTMDrive -d<br />
$ cd /Volumes/NameOfTMDrive<br />
$ sudo mv .aabbccddeeff .001122334455<br />
$ cd /Volumes/NameOfTMDrive/Backups.backupdb<br />
$ sudo xattr -w com.apple.backupd.BackupMachineAddress 00:11:22:33:44:55 "My Computer"<br />
$ sudo fsaclctl -p /Volumes/NameOfTMDrive -e<br />
</code></p>
<p>Now, you just need to remove your drive, then remount it. Go into Time Machine, and turn your backup back on. This will start indexing your drive again and for a long while, it will say &#8220;preparing&#8230;&#8221; It took my computer about 20mins to complete the initial backup. If it begins creating a new backup with &#8220;My Computer 2&#8243; you did something wrong because it&#8217;s starting a new backup.</p>
<p>Apple should probably make this easier since I&#8217;m sure a lot of people are going to have their <a href="http://support.apple.com/kb/TS2377">nvidia cards replaced</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.buzamoto.com/2009/03/30/logic-board-replacement-and-time-machine/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
