<?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>Time Wasted on Binaries &#187; Code</title>
	<atom:link href="http://twob.net/archives/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://twob.net</link>
	<description></description>
	<lastBuildDate>Thu, 25 Aug 2011 04:47:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-alpha-19719</generator>
		<item>
		<title>quick note on meta name viewport and android</title>
		<link>http://twob.net/code/meta-viewport-and-android/</link>
		<comments>http://twob.net/code/meta-viewport-and-android/#comments</comments>
		<pubDate>Mon, 20 Jun 2011 20:09:49 +0000</pubDate>
		<dc:creator>bjorn</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[flexbox]]></category>

		<guid isPermaLink="false">http://twob.net/?p=228</guid>
		<description><![CDATA[If omitting width=device-width from the viewport meta tag, css3 flex-box layouts no longer respect overflow:hidden and text-overflow:ellipsis for wider-than-page content. &#60;meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0" /&#62;]]></description>
			<content:encoded><![CDATA[<p>If omitting <code>width=device-width</code> from the viewport meta tag, css3 flex-box layouts no longer respect overflow:hidden and text-overflow:ellipsis for wider-than-page content. </p>

<p><pre><code class="language-html">&lt;meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0" /&gt;</code></pre></p>
]]></content:encoded>
			<wfw:commentRss>http://twob.net/code/meta-viewport-and-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>when webkit css animations causes flicker</title>
		<link>http://twob.net/code/when-webkit-css-animations-causes-screen-flicker/</link>
		<comments>http://twob.net/code/when-webkit-css-animations-causes-screen-flicker/#comments</comments>
		<pubDate>Sun, 19 Jun 2011 06:39:21 +0000</pubDate>
		<dc:creator>bjorn</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[webkit]]></category>

		<guid isPermaLink="false">http://twob.net/?p=224</guid>
		<description><![CDATA[sometimes when using -webkit-transform:translate3d; or -webkit-transform:translate; on elements visible on the page, it causes the screen to flicker. In my particular case I had a menu that opened as an overlay, and whenever an element with translate3d was on the page, the menu flickered badly when fading in. The solution seems to be to set [...]]]></description>
			<content:encoded><![CDATA[<p>sometimes when using <code>-webkit-transform:translate3d;</code> or <code>-webkit-transform:translate;</code> on elements visible on the page, it causes the screen to flicker. In my particular case I had a menu that opened as an overlay, and whenever an element with translate3d was on the page, the menu flickered badly when fading in.</p>

<p>The solution seems to be to set backface-visibility to hidden for the menu element, like so: </p>

<p><code>#menu {-webkit-backface-visibility: hidden;}</code></p>
]]></content:encoded>
			<wfw:commentRss>http://twob.net/code/when-webkit-css-animations-causes-screen-flicker/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing latest MacPorts for OS X 10.6</title>
		<link>http://twob.net/journal/installing-latest-macports-for-osx106/</link>
		<comments>http://twob.net/journal/installing-latest-macports-for-osx106/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 08:55:19 +0000</pubDate>
		<dc:creator>bjorn</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Journal]]></category>

		<guid isPermaLink="false">http://twob.net/?p=215</guid>
		<description><![CDATA[I was just about to install MacPorts on my OS X 10.6 system, and downloaded the latest package (1.9.1) from macports.org, only to get a dialog saying my MacPorts version was too old to update, and that I first needed to upgrade to 1.7.1. That didn&#8217;t install at all, but I found this snippet while [...]]]></description>
			<content:encoded><![CDATA[<p>I was just about to install MacPorts on my OS X 10.6 system, and downloaded the latest package (1.9.1) from macports.org, only to get a dialog saying my MacPorts version was too old to update, and that I first needed to upgrade to 1.7.1. That didn&#8217;t install at all, but I found this snippet while googling around for a solution. This removes all previous versions of MacPorts and its dependencys, so be careful if you&#8217;re not sure that you want to do that. Fire up Terminal and type:</p>

<p><pre><code>sudo rm -rf \
/opt/local \
/Applications/MacPorts \
/Applications/DarwinPorts \
/Library/Tcl/macports1.0 \
/Library/Tcl/darwinports1.0 \
/Library/LaunchDaemons/org.macports.* \
/Library/StartupItems/DarwinPortsStartup \
/Library/Receipts/MacPorts<em>.pkg \
/Library/Receipts/DarwinPorts</em>.pkg</code></pre></p>

<p>Then install MacPorts 1.9.1 package again. Worked for me at least. Disclaimer: I am certainly not an expert on this, so your mileage may vary&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://twob.net/journal/installing-latest-macports-for-osx106/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to force UTF-8 encoding in mail.app</title>
		<link>http://twob.net/code/how-to-force-utf-8-encoding-in-mailapp/</link>
		<comments>http://twob.net/code/how-to-force-utf-8-encoding-in-mailapp/#comments</comments>
		<pubDate>Mon, 04 Jun 2007 10:17:51 +0000</pubDate>
		<dc:creator>bjorn</dc:creator>
				<category><![CDATA[Asides]]></category>
		<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://twob.net/code/how-to-force-utf-8-encoding-in-mailapp/</guid>
		<description><![CDATA[Just open up the terminal and type: defaults write com.apple.mail NSPreferredMailCharset "UTF-8" It was that easy. Not everyone has to do that I guess, but if you, like me, have had a problem with Outlook users asking you why you&#8217;re writing to them in Chinese, this might help get them off your back]]></description>
			<content:encoded><![CDATA[<p>Just open up the terminal and type:</p>

<p><code>defaults write com.apple.mail NSPreferredMailCharset "UTF-8"</code></p>

<p>It was that easy. Not everyone has to do that I guess, but if you, like me, have had a problem with Outlook users asking you why you&#8217;re writing to them in Chinese, this might help get them off your back</p>
]]></content:encoded>
			<wfw:commentRss>http://twob.net/code/how-to-force-utf-8-encoding-in-mailapp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Upgraded.</title>
		<link>http://twob.net/journal/upgraded/</link>
		<comments>http://twob.net/journal/upgraded/#comments</comments>
		<pubDate>Thu, 25 Jan 2007 20:33:26 +0000</pubDate>
		<dc:creator>bjorn</dc:creator>
				<category><![CDATA[Journal]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://twob.net/journal/upgraded/</guid>
		<description><![CDATA[Just upgraded to WordPress 2.1. All in all, it was quite a smooth experience. Congrats to the WordPress team for an impressive update! Update: if you&#8217;re using the Feedburner plugin for managing different flavours of RSS, be sure to update that, and change your settings accordingly. I didn&#8217;t, but now I have&#8230;]]></description>
			<content:encoded><![CDATA[<p>Just upgraded to WordPress 2.1. All in all, it was quite a smooth experience. Congrats to the WordPress team for an impressive update!</p>

<p><strong>Update:</strong> if you&#8217;re using the <a href="http://orderedlist.com/wordpress-plugins/feedburner-plugin/">Feedburner plugin</a> for managing different flavours of RSS, be sure to update that, and change your settings accordingly. I didn&#8217;t, but now I have&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://twob.net/journal/upgraded/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Howto kill lookupd after editing the hosts file on OS X</title>
		<link>http://twob.net/code/howto-kill-lookupd-after-editing-the-hosts-file-on-os-x/</link>
		<comments>http://twob.net/code/howto-kill-lookupd-after-editing-the-hosts-file-on-os-x/#comments</comments>
		<pubDate>Thu, 09 Nov 2006 09:54:44 +0000</pubDate>
		<dc:creator>bjorn</dc:creator>
				<category><![CDATA[Asides]]></category>
		<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://twob.net/journal/howto-kill-lookupd-after-editing-the-hosts-file-on-os-x/</guid>
		<description><![CDATA[After editing the hosts file (mate /etc/hosts), instead of restarting the computer or logging out, this line will restart lookupd: sudo kill -HUP &#96;cat /var/run/lookupd.pid&#96;]]></description>
			<content:encoded><![CDATA[<p>After editing the hosts file (<code>mate /etc/hosts</code>), instead of restarting the computer or logging out, this line will restart lookupd:</p>

<p><code>sudo kill -HUP &#96;cat /var/run/lookupd.pid&#96;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://twob.net/code/howto-kill-lookupd-after-editing-the-hosts-file-on-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using the terminal with MAMP on OS X</title>
		<link>http://twob.net/code/using-the-terminal-with-mamp-on-os-x/</link>
		<comments>http://twob.net/code/using-the-terminal-with-mamp-on-os-x/#comments</comments>
		<pubDate>Wed, 08 Nov 2006 13:15:38 +0000</pubDate>
		<dc:creator>bjorn</dc:creator>
				<category><![CDATA[Asides]]></category>
		<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://twob.net/journal/using-the-terminal-with-mamp-on-os-x/</guid>
		<description><![CDATA[Recently I was going to take the promising Symfony PHP framework out for a quick test drive, but ran into trouble in the very beginning of the tutorial. I&#8217;m running MAMP for local PHP development, but the terminal is using the built-in PHP version for its command line scripting. And Symfony is all about generating [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I was going to take the promising <a href="http://symfony-project.com">Symfony</a> PHP framework out for a quick test drive, but ran into trouble in the very beginning of the tutorial. I&#8217;m running <a href="http://mamp.info/en/index.php">MAMP</a> for local PHP development, but the terminal is using the built-in PHP version for its command line scripting. And Symfony is all about generating models and scaffolds through the command-line in a railsy sort of way&#8230; bummer.</p>

<p>A quick search for led me to a <a href="http://forum.mamp.info/viewtopic.php?p=2021&amp;sid=acf7ca390a5716d954dbe7181d4302a1">discussion thread</a> in the MAMP forum, outlining the following solution. I&#8217;ve modified it a bit, using move instead of copy, and adding some necessary SUDO instructions:</p>

<ol>
<li>Backup current php version by renaming it (optional)<br />
<code><b>$</b> sudo mv /usr/bin/php /usr/bin/php4</code></li>
<li>Create a symbolic link pointing to the PHP version supplied by MAMP<br />
<code><b>$</b> sudo ln -s /Applications/MAMP/bin/php5/bin/php /usr/bin/php</code></li>
<li>Done!</li>
</ol>

<p>Now, onwards with the <a href="http://www.symfony-project.com/tutorial/my_first_project.html">tutorial</a>&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://twob.net/code/using-the-terminal-with-mamp-on-os-x/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

