<?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>sixohthree.com</title>
	<atom:link href="http://sixohthree.com/feed" rel="self" type="application/rss+xml" />
	<link>http://sixohthree.com</link>
	<description>The Weblog of Adam Backstrom</description>
	<lastBuildDate>Sat, 04 Feb 2012 12:27:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>State of PHP 2012</title>
		<link>http://sixohthree.com/1916/state-of-php-2012</link>
		<comments>http://sixohthree.com/1916/state-of-php-2012#comments</comments>
		<pubDate>Sat, 04 Feb 2012 12:27:10 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://mu.sixohthree.com/sixohthree/?p=1916</guid>
		<description><![CDATA[Rasmus presented the State of PHP 2012 at Etsy. Here are some pretty raw notes, with approximate times.]]></description>
			<content:encoded><![CDATA[<p><a href="http://twitter.com/rasmus">Rasmus</a> presented the <a href="http://www.livestream.com/etsycodeascraft/video?clipId=pla_e00bfe34-e377-42d1-b859-ccf97b12c519">State of PHP 2012</a> at Etsy. Here are some pretty raw notes, with approximate times.</p>
<p><strong>Scaling:</strong></p>
<blockquote><p>
  <em>32:40</em> Don&#8217;t put too much stuff in a single web server. Your site is getting busier and busier, the answer isn&#8217;t just to crank up the concurrent processes. &#8230; 4-6x number of cores in the machine, depending on memory.
</p></blockquote>
<p><strong>SPL Data Structures:</strong></p>
<blockquote><p>
  <em>48:40</em> We also have some new SPL data structures. Here as you pop things onto the stack, they&#8217;ll foreach in the right order.
</p></blockquote>
<p><strong>Moving from mod_php to nginx:</strong></p>
<blockquote><p>
  <em>50:22</em> .user.ini and path-specific ini settings. Set a TTL so they&#8217;re not read every time. There&#8217;s no mod_rewrite in php-fpm or nginx. That&#8217;s where you&#8217;re gonna have to learn a little bit of <a href="http://wiki.nginx.org/HttpLuaModule">LUA</a> and play with the nginx configuration format.
</p></blockquote>
<p><strong>On data standards:</strong></p>
<blockquote><p>
  <em>~1:18:00</em> Web apps these days should be UTF-8 and UTC. It&#8217;s the only sane choice.
</p></blockquote>
<p><strong>On client skepticism of using PHP for a large site:</strong></p>
<blockquote><p>
  <em>~1:30:00</em>Other people have managed to do it. A big website is hard in every language. [...] It&#8217;s so much more than the front-end language. Every large site in the world ends up using dozens of technologies, hundreds for some of them, so it&#8217;s a matter of putting all these pieces together.
</p></blockquote>
<h2>Other Takeaways</h2>
<pre><code>class Foo implements JsonSerializable{} // handle json_encode() on your object
</code></pre>
<p>Error reporting:</p>
<blockquote><p>
  Setting error_reporting = -1 turns everything on.
</p></blockquote>
<p>SQLite:</p>
<blockquote><p>
  You should never write a flat text file parser again. If you&#8217;re ever looking at doing that, use SQLite.
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/1916/state-of-php-2012/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Being Nice</title>
		<link>http://sixohthree.com/1912/being-nice</link>
		<comments>http://sixohthree.com/1912/being-nice#comments</comments>
		<pubDate>Tue, 31 Jan 2012 16:30:51 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://mu.sixohthree.com/sixohthree/?p=1912</guid>
		<description><![CDATA[For my own reference, on running processes nicely: nice -n 19 ionice -c2 -n7 See also: it&#8217;s getting to the point where I won&#8217;t even run &#8216;ls&#8217; without equipping it with ionice, nice, setuidgid, softlimit and envdir. level 80 nerd &#8212; Pinboard (@Pinboard) January 23, 2012]]></description>
			<content:encoded><![CDATA[<p>For my own reference, on running processes nicely:</p>
<pre><code>nice -n 19 ionice -c2 -n7
</code></pre>
<p>See also:</p>
<blockquote class="twitter-tweet" width="500"><p>it&#8217;s getting to the point where I won&#8217;t even run &#8216;ls&#8217; without equipping it with ionice, nice, setuidgid, softlimit and envdir. level 80 nerd</p>
<p>&mdash; Pinboard (@Pinboard) <a href="https://twitter.com/Pinboard/status/161598242671435776" data-datetime="2012-01-23T23:56:38+00:00">January 23, 2012</a></p></blockquote>
<p><script src="//platform.twitter.com/widgets.js" charset="utf-8"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/1912/being-nice/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>On Internationalization</title>
		<link>http://sixohthree.com/1904/on-internationalization</link>
		<comments>http://sixohthree.com/1904/on-internationalization#comments</comments>
		<pubDate>Sat, 28 Jan 2012 15:23:02 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://mu.sixohthree.com/sixohthree/?p=1904</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://sixohthree.com/files/2012/01/internationalization.jpg"><img class="alignone post-titleimage wp-image-1905" title="Internationalization" src="http://sixohthree.com/files/2012/01/internationalization-1024x765.jpg" alt="" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/1904/on-internationalization/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Preware Ubuntu 11.04 Chroot Script</title>
		<link>http://sixohthree.com/1900/preware-ubuntu-11-04-chroot-script</link>
		<comments>http://sixohthree.com/1900/preware-ubuntu-11-04-chroot-script#comments</comments>
		<pubDate>Mon, 23 Jan 2012 14:16:33 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Palm]]></category>
		<category><![CDATA[touchpad]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[webOS]]></category>

		<guid isPermaLink="false">http://mu.sixohthree.com/sixohthree/?p=1900</guid>
		<description><![CDATA[I&#8217;ll need this later.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll need this later.</p>
<pre>#!/bin/sh

# From /media/cryptofs/apps/usr/palm/applications/org.webosinternals.ubuntu-natty-chroot/bin

CHROOT=/media/ext3fs/ubuntu-natty-chroot

cp /etc/resolv.conf ${CHROOT}/etc/resolv.conf

mount --bind /dev ${CHROOT}/dev
mount --bind /dev/pts ${CHROOT}/dev/pts
mount --bind /proc ${CHROOT}/proc
mount --bind /sys ${CHROOT}/sys
mount --bind /tmp ${CHROOT}/tmp

chroot ${CHROOT} /bin/bash

umount ${CHROOT}/tmp
umount ${CHROOT}/sys
umount ${CHROOT}/proc
umount ${CHROOT}/dev/pts
umount ${CHROOT}/dev</pre>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/1900/preware-ubuntu-11-04-chroot-script/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SOPA Protests</title>
		<link>http://sixohthree.com/1877/sopa-protests</link>
		<comments>http://sixohthree.com/1877/sopa-protests#comments</comments>
		<pubDate>Fri, 20 Jan 2012 15:02:53 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Freedom]]></category>
		<category><![CDATA[PIPA]]></category>
		<category><![CDATA[Protests]]></category>
		<category><![CDATA[SOPA]]></category>

		<guid isPermaLink="false">http://mu.sixohthree.com/sixohthree/?p=1877</guid>
		<description><![CDATA[Archived for posterity.]]></description>
			<content:encoded><![CDATA[<p>Archived for posterity.</p>

<a href='http://sixohthree.com/1877/sopa-protests/wired-com' title='wired.com SOPA protest'><img width="150" height="150" src="http://sixohthree.com/files/2012/01/wired.com_-150x150.jpg" class="attachment-thumbnail" alt="wired.com SOPA protest" title="wired.com SOPA protest" /></a>
<a href='http://sixohthree.com/1877/sopa-protests/v-is-4chans-imageboard-dedicated-to-the-discussion-of-video-games' title='4chan.org SOPA protest'><img width="150" height="150" src="http://sixohthree.com/files/2012/01/4chan.org_-150x150.jpg" class="attachment-thumbnail" alt="4chan.org SOPA protest" title="4chan.org SOPA protest" /></a>
<a href='http://sixohthree.com/1877/sopa-protests/imgur-com' title='imgur.com SOPA protest'><img width="150" height="150" src="http://sixohthree.com/files/2012/01/imgur.com_-150x150.jpg" class="attachment-thumbnail" alt="imgur.com SOPA protest" title="imgur.com SOPA protest" /></a>
<a href='http://sixohthree.com/1877/sopa-protests/craigslist-org' title='craigslist.org SOPA protest'><img width="150" height="150" src="http://sixohthree.com/files/2012/01/craigslist.org_-150x150.jpg" class="attachment-thumbnail" alt="craigslist.org SOPA protest" title="craigslist.org SOPA protest" /></a>
<a href='http://sixohthree.com/1877/sopa-protests/the-boardwalk' title='Flickr.com SOPA protest'><img width="150" height="150" src="http://sixohthree.com/files/2012/01/flickr.com_-150x150.jpg" class="attachment-thumbnail" alt="Flickr.com SOPA protest" title="Flickr.com SOPA protest" /></a>
<a href='http://sixohthree.com/1877/sopa-protests/google-com' title='google.com SOPA protest'><img width="150" height="150" src="http://sixohthree.com/files/2012/01/google.com_-150x150.jpg" class="attachment-thumbnail" alt="google.com SOPA protest" title="google.com SOPA protest" /></a>
<a href='http://sixohthree.com/1877/sopa-protests/php-net' title='php.net SOPA protest'><img width="150" height="150" src="http://sixohthree.com/files/2012/01/php.net_-150x150.jpg" class="attachment-thumbnail" alt="php.net SOPA protest" title="php.net SOPA protest" /></a>
<a href='http://sixohthree.com/1877/sopa-protests/wordpress-org' title='wordpress.org SOPA protest'><img width="150" height="150" src="http://sixohthree.com/files/2012/01/wordpress.org_-150x150.jpg" class="attachment-thumbnail" alt="wordpress.org SOPA protest" title="wordpress.org SOPA protest" /></a>

]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/1877/sopa-protests/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Conferencing in Boston</title>
		<link>http://sixohthree.com/1869/conferencing-in-boston</link>
		<comments>http://sixohthree.com/1869/conferencing-in-boston#comments</comments>
		<pubDate>Mon, 02 Jan 2012 05:18:24 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Conferences]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jQuery Conference]]></category>
		<category><![CDATA[WordCamp]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://mu.sixohthree.com/sixohthree/?p=1869</guid>
		<description><![CDATA[I&#8217;ve been fortunate enough to attend three conferences through my employer: jQuery Conference (2010 and 2011), and WordCamp Boston (2011). I&#8217;ve regretted not blogging about these, so in lieu of a full recap, suffice it to say these were awesome, energizing events and I hope to keep participating in the future. The tech scene in [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been fortunate enough to attend three conferences through <a href="http://www.plymouth.edu/">my employer</a>: jQuery Conference (2010 and 2011), and WordCamp Boston (2011). I&#8217;ve regretted not blogging about these, so in lieu of a full recap, suffice it to say these were awesome, energizing events and I hope to keep participating in the future. The tech scene in Boston is alive and well.</p>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/1869/conferencing-in-boston/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>There&#8217;s Always a New Tweet</title>
		<link>http://sixohthree.com/1787/theres-always-a-new-tweet</link>
		<comments>http://sixohthree.com/1787/theres-always-a-new-tweet#comments</comments>
		<pubDate>Mon, 02 Jan 2012 05:06:47 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[Distraction]]></category>
		<category><![CDATA[productivity]]></category>

		<guid isPermaLink="false">http://mu.sixohthree.com/sixohthree/?p=1787</guid>
		<description><![CDATA[I don't spend much time tweaking my UI, but I do attempt to minimize distractions. New mail notifications, badges showing unread messages, growls of all shapes and sizes, all these have a very poor signal to noise ratio, and rarely do they impact my current priority.]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t spend much time tweaking my UI, but I do attempt to minimize distractions. New mail notifications, badges showing unread messages, growls of all shapes and sizes, all these have a very poor signal to noise ratio, and rarely do they impact my current priority.</p>
<p>Do you have a Twitter icon like this in your menu bar?</p>
<p><img src="http://sixohthree.com/files/2011/11/twitter.png" alt="Twitter menu bar notification" /></p>
<p>Using the default settings, the birdy turns blue when there&#8217;s a new tweet in your timeline. The problem is, there&#8217;s always a new tweet. Asking your Twitter client for timeline notifications is like letting Mail.app check for new messages every 5 minutes, or welcoming people to stick their head inside your door at all hours.</p>
<p>Diverting your attention means losing your momentum. An hour with 1 ten minute interruption is more productive than an hour with 10 one minute interruptions, so if you have to lose focus, make sure it&#8217;s happening for the right reasons.</p>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/1787/theres-always-a-new-tweet/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iTerm 2 Skinny Fonts: Solution</title>
		<link>http://sixohthree.com/1826/iterm-2-skinny-fonts-solution</link>
		<comments>http://sixohthree.com/1826/iterm-2-skinny-fonts-solution#comments</comments>
		<pubDate>Mon, 12 Dec 2011 15:35:13 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Terminal]]></category>

		<guid isPermaLink="false">http://mu.sixohthree.com/sixohthree/?p=1826</guid>
		<description><![CDATA[For reasons that were unknown to me, iTerm 2 would display a nice, thick font when the laptop was the primary screen, but a very thin font when the Acer was primary.]]></description>
			<content:encoded><![CDATA[<p><a href="http://sixohthree.com/files/2011/12/iterm2-fonts.png"><img class="alignnone size-full wp-image-1827 post-titleimage" title="iterm2-fonts" src="http://sixohthree.com/files/2011/12/iterm2-fonts.png" alt="" width="720" height="480" /></a></p>
<p>My dual-screen setup involves a MacBook Pro and an external Acer flat panel, but despite my own preferences, I&#8217;ve kept the laptop screen as the primary to avoid a font rendering issue. For reasons that were unknown to me, iTerm 2 would display a nice, thick font when the laptop was the primary screen, but a very thin font when the Acer was primary. Switching the primary and relaunching iTerm would cause the thickness to change. I first experienced the issue in Mac OS X 10.6, and it persisted into Mac OS X 10.7. I&#8217;ve recycled the bug report-quality screenshot above as an example of the difference.</p>
<p>Some searching finally brought me to a resolution involving Mac OS X&#8217;s built-in font smoothing:</p>
<pre><code>defaults -currentHost write -globalDomain AppleFontSmoothing -int 2
</code></pre>
<p>Thanks to <a href="http://www.stevekuo.com/">Steve Kuo</a> for <a href="http://apple.stackexchange.com/questions/19468/terminal-text-size-different-when-connected-to-external-monitor">the solution</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/1826/iterm-2-skinny-fonts-solution/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is the Earth Special?</title>
		<link>http://sixohthree.com/1820/is-the-earth-special</link>
		<comments>http://sixohthree.com/1820/is-the-earth-special#comments</comments>
		<pubDate>Mon, 12 Dec 2011 14:36:02 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[astronomy]]></category>
		<category><![CDATA[biology]]></category>

		<guid isPermaLink="false">http://mu.sixohthree.com/sixohthree/?p=1820</guid>
		<description><![CDATA[I loved this recent Slashdot post. It's full of interesting facts about our planet.]]></description>
			<content:encoded><![CDATA[<p>I loved this recent Slashdot post. It&#8217;s full of interesting facts about our planet.</p>
<blockquote><p>
  Planetary scientists say <a href="http://www.bbc.co.uk/news/science-environment-16068809">there are aspects to our planet and its evolution that are remarkably strange</a>. In the first place there is Earth&#8217;s strong magnetic field. No one is exactly sure how it works, but it has something to do with the turbulent motion that occurs in the Earth&#8217;s liquid outer core and without it, we would be bombarded by harmful radiation from the Sun. Next there&#8217;s plate tectonics. We live on a planet that is constantly recycling its crust, limiting the amount of carbon dioxide escaping into the atmosphere — a natural way of controlling the greenhouse effect. Then there&#8217;s Jupiter-sized outer planets <a href="http://science.slashdot.org/story/09/07/26/1332240/Is-Jupiter-Earths-Cosmic-Protector">protecting the Earth from frequent large impacts</a>. But the strangest thing of all is our big Moon. &#8220;As the Earth rotates, it wobbles on its axis like a child&#8217;s spinning top,&#8221; says Professor Monica Grady. &#8216;What the Moon does is dampen down that wobble and that helps to prevent extreme climate fluctuations&#8217; — which would be detrimental to life. The moon&#8217;s tides have also made long swaths of earth&#8217;s coastline into areas of that are regularly shifted between dry and wet, providing <a href="http://www.damninteresting.com/life-without-the-moon/">a proving ground for early sea life to test the land for its suitability</a> as a habitat. <a href="http://www.ras.org.uk/images/stories/ras_pdfs/meetings2011-12/9.12.11%20Meeting%20Abstract%20Book.pdf">The &#8220;Rare Earth Hypothesis&#8221; is one solution to the Fermi Paradox</a> (PDF) because, if Earth is uniquely special as an abode of life, ETI will necessarily be rare or even non-existent. And in the absence of verifiable alien contact, scientific opinion will forever remain split as to whether the Universe teems with life or we are alone in the inky blackness.
</p></blockquote>
<p>Source: <a href="http://science.slashdot.org/story/11/12/10/1335245/is-the-earth-special">Is the Earth Special?</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/1820/is-the-earth-special/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Locked Files in Mac OS X</title>
		<link>http://sixohthree.com/1807/locked-files-in-mac-os-x</link>
		<comments>http://sixohthree.com/1807/locked-files-in-mac-os-x#comments</comments>
		<pubDate>Thu, 08 Dec 2011 14:27:22 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[chown]]></category>
		<category><![CDATA[Terminal]]></category>

		<guid isPermaLink="false">http://mu.sixohthree.com/sixohthree/?p=1807</guid>
		<description><![CDATA[You may observe files with the correct ownership (chown) and permissions (chmod u+rw) that are write-locked. In my experience, the files were editable with sudo, and modification via the Finder would prompt for an administrator password. In these situations, you may be dealing with additional file attributes.]]></description>
			<content:encoded><![CDATA[<p>I spend a lot of my time in the Mac OS X terminal (well, <a href="http://www.iterm2.com/">iTerm 2</a>), and I&#8217;m at home with many of the command-line Unixy conventions. With that comfort also comes a high expectation that <a href="http://en.wikipedia.org/wiki/Principle_of_least_astonishment">things will work in a specific way</a>. This past week I&#8217;ve been manually restoring files from a Time Machine backup. Surprises ensued.</p>
<p>You may observe files with the correct ownership (<code>chown</code>) and permissions (<code>chmod u+rw</code>) that are write-locked. In my experience, the files were editable with <code>sudo</code>, and modification via the Finder would prompt for an administrator password. In these situations, you may be dealing with additional file attributes.</p>
<h2>Access Control Lists (ACLs)</h2>
<p>Your file may have an ACL that prevents writing by the current user. To view ACLs for a file, issue <code>ls -le</code>. Use <code>chmod</code> to modify ACLs. Run <code>chmod -N</code> to <a href="http://backdrift.org/fixing-mac-osx-file-permissions-and-acls-from-the-command-line">remove the ACL</a>.</p>
<h2>File Flags</h2>
<p>Running &#8220;Get Info…&#8221; on a file and checking &#8220;Locked&#8221; is functionally equivalent to running <code>chflags uchg [file]</code>. Show flags in directory listings using <code>ls -lO</code>. See also: <code>SetFile</code>.</p>
<h2>Extended Attributes (metadata)</h2>
<p>For good measure, we should also mention <a href="http://en.wikipedia.org/wiki/Extended_file_attributes#Mac_OS_X">extended attributes</a>. <code>xattr</code> modifies attributes (<code>xattr -r -c</code> to recursively remove), and <code>ls -l@</code> will display attributes.</p>
<p>I don&#8217;t know of any specific metadata that would prevent file modification.</p>
<h2>All Together, Now</h2>
<pre><code>adam@fsck:~:0$ mkdir /tmp/foo &amp;&amp; cd /tmp/foo &amp;&amp; touch bar
adam@fsck:/tmp/foo:0$ xattr -w com.sixohthree.test "o hai" bar
adam@fsck:/tmp/foo:0$ chmod +a 'everyone deny write,append,delete' bar
adam@fsck:/tmp/foo:0$ chflags uchg bar
adam@fsck:/tmp/foo:0$ ls -le@O
total 0
-rw-r--r--@ 1 adam  wheel  uchg 0 Dec  8 09:18 bar
        com.sixohthree.test     5
 0: group:everyone deny write,delete,append
</code></pre>
<p>The <code>uchg</code> flag will prevent all file modifications, including changing ACLs and extended attributes.</p>
<pre><code>adam@fsck:/tmp/foo:0$ date &gt;&gt; bar
-bash: bar: Operation not permitted
adam@fsck:/tmp/foo:1$ chflags nouchg bar
adam@fsck:/tmp/foo:0$ date &gt;&gt; bar
-bash: bar: Operation not permitted
adam@fsck:/tmp/foo:1$ chmod -N bar
adam@fsck:/tmp/foo:0$ date &gt;&gt; bar
adam@fsck:/tmp/foo:0$
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/1807/locked-files-in-mac-os-x/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

