<?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>Simon Gregory &#187; OS X</title>
	<atom:link href="http://blog.simongregory.com/category/os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.simongregory.com</link>
	<description>Flash, Flex and TextMate</description>
	<lastBuildDate>Tue, 27 Jul 2010 08:12:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Missing &#8216;locate&#8217; in Snow Leopard</title>
		<link>http://blog.simongregory.com/04/missing-locate-in-snow-leopard/</link>
		<comments>http://blog.simongregory.com/04/missing-locate-in-snow-leopard/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 14:44:50 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://blog.simongregory.com/?p=221</guid>
		<description><![CDATA[Re-enabling the 'locate' command line utility on OS X 10.6 'Snow Leopard'.]]></description>
			<content:encoded><![CDATA[<p>When I upgraded to Snow Leopard a few months ago I found out quite quickly that <code>locate</code> didn&#8217;t work on the command line. Why <code>locate</code> is missing I don&#8217;t know, maybe <code>find</code> was supposed to replace it. But <code>find</code> doesn&#8217;t look deep enough into the system files to be useful for me. I finally got round to looking into the problem. </p>

<p>Using <code>locate file.txt</code> get&#8217;s us this:</p>

<pre><code>WARNING: The locate database (/var/db/locate.database) does not exist.
To create the database, run the following command:

  sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist

Please be aware that the database can take some time to generate; once
the database has been created, this message will no longer appear.
</code></pre>

<p>Ok. So it&#8217;s easy enough to run:</p>

<pre><code>sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist
</code></pre>

<p>But that didn&#8217;t do anything for me. Locate still threw the same error and <code>top</code> didn&#8217;t reveal any processes that appeared to be working overtime to build the database(<code>*</code>see below). Trying the <code>launchctl load</code> command again says it&#8217;s already loaded, and using <code>start com.apple.locate</code> via a launchctl daemon gets a <code>start error:No such process</code> message. So I opened <code>/System/Library/LaunchDaemons/com.apple.locate.plist</code> which revealed the task that actually does the work is <code>locate.updatedb</code>, so I tried:</p>

<pre><code>sudo /usr/libexec/locate.updatedb
</code></pre>

<p>Which successfully built the database and <code>locate</code> now works. The one question remaining is wether the database will be updated automatically every Saturday at 3am as the plist file suggests. Maybe not, if the <code>&lt;key&gt;Disabled&lt;/key&gt;&lt;true/&gt;</code> in the plist is to be believed &#8211; so I&#8217;ve blindly switched it to false and am hoping for the best.</p>

<p><code>*</code> I ran through this process again on a second machine, and it appears that I jumped the gun on this as I just left the machine be for half an hour and came back to it and the database worked.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.simongregory.com/04/missing-locate-in-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Apache Bundle Upgrade</title>
		<link>http://blog.simongregory.com/02/apache-bundle-upgrade/</link>
		<comments>http://blog.simongregory.com/02/apache-bundle-upgrade/#comments</comments>
		<pubDate>Mon, 11 Feb 2008 22:23:21 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[TextMate]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[bundle]]></category>

		<guid isPermaLink="false">http://blog.simongregory.com/02/apache-bundle-upgrade/</guid>
		<description><![CDATA[The Apache bundle, which I originally contributed in the early days of TextMate, was due an upgrade. So I&#8217;ve made a few improvements&#8230; Start, Stop, Restart and Graceful commands (⌘R) These commands, which all target apachectl, are now bound to ⌘R under the source.apache-config scope which makes it more convenient to directly control httpd from [...]]]></description>
			<content:encoded><![CDATA[<p>The Apache bundle, which I originally contributed in the early days of TextMate, was due an upgrade. So I&#8217;ve made a few improvements&#8230; </p>

<h2>Start, Stop, Restart and Graceful commands (⌘R)</h2>

<p>These commands, which all target apachectl, are now bound to ⌘R under the source.apache-config scope which makes it more convenient to directly control httpd from TextMate. </p>

<p>As apachectl requires sudo privileges I used applescript for authentication. For reasons only known to Apple the password request dialog would launch but not get focus &#8211; leaving you to reach for the mouse to target the input field. Moving away from the keyboard is slow so this was something that really annoyed me. I&#8217;ve now switched to using the excellent <a href="http://macromates.com/blog/2006/new-dialog-system-for-commands/" title="TextMate Dialog System">tm_dialog</a> system which makes things much smoother.</p>

<p>It is also possible to store your admin password in your Keychain, this is done by selecting the &#8220;Add to Keychain&#8221; toggle in the password request dialog box. I&#8217;m more than happy with the security implications of this as I&#8217;m fairly good at keeping my machines locked. If you do choose to do this then the command line security app will have access to the keychain item and is the only way someone could gain access. </p>

<h2>Documentation (⌃H)</h2>

<p>This now searches a documentation index file for the current word/selection then redirects or presents a list of matches as appropriate. If you appear to have the documentation installed locally then the script favours it over the apache website.</p>

<h2>Open Include (⇧⌘D)</h2>

<p>The language definition has been improved to add a scope for Includes. Using the key combination apple-shift-D on this scope opens the file referenced by the inlcude, or directory if it is wild carded.</p>

<h2>Open Config&#8230; (⇧⌘C)</h2>

<p>Previously there were various commands to open the apache.conf files these have now been consolidated into one command which searches the apache install directory, either <code>/etc/apache2</code> or  <code>/private/etc/httpd</code> depending on your version of OS X and the <code>/users</code>, <code>/extra</code> and <code>/other</code> subdirectories. All the conf files found are presented in pop-up from which  one can be choosen to open.</p>

<h2>Bundle Configuration</h2>

<p>It is now possible to override the default bundle behaviour by setting the following environmental variables. <code>TM<em>APACHE</em>DIRECTORY</code>, <code>TM<em>APACHE</em>ACCESS<em>LOG</em></code>, <code>TMAPACHE<em>ERROR</em>LOG</code> and
<code>TM<em>APACHE</em>MANUAL_URI</code> all allow the custom targeting of files and directories. See the bundle help for a detailed explanation.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.simongregory.com/02/apache-bundle-upgrade/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing the Debug Flash Player on Multiple User Accounts</title>
		<link>http://blog.simongregory.com/12/installing-the-debug-flash-player-on-multiple-user-accounts/</link>
		<comments>http://blog.simongregory.com/12/installing-the-debug-flash-player-on-multiple-user-accounts/#comments</comments>
		<pubDate>Sat, 15 Dec 2007 15:08:11 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[flash player debug install problems]]></category>

		<guid isPermaLink="false">http://blog.simongregory.com/12/installing-the-debug-flash-player-on-multiple-user-accounts/</guid>
		<description><![CDATA[I share one of my development machines with another flash developer and have run into a problem whereby the debug flash player was only available to the user who installed it. Trying to set more generous permissions on the plug-in didn&#8217;t work. So I simply changed the name of the plug-in by prefixing it with [...]]]></description>
			<content:encoded><![CDATA[<p>I share one of my development machines with another flash developer and have run into a problem whereby the debug flash player was only available to the user who installed it. Trying to set more generous permissions on the plug-in didn&#8217;t work. So I simply changed the name of the plug-in by prefixing it with the installing users name then reinstalled it as second user. This leaves you with multiple instances of the flash player in <code>Library/Internet Plug-Ins</code> but as each user only has permission to use the player they installed no confusion arises. </p>

<p>The most recent debug player can be found <a href="http://www.adobe.com/support/flashplayer/downloads.html">here</a>. An archive of debug players can be found <a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14266&#038;sliceId=1">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.simongregory.com/12/installing-the-debug-flash-player-on-multiple-user-accounts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using svnX via svn-ssh</title>
		<link>http://blog.simongregory.com/02/how-to-svnx-svn-ssh/</link>
		<comments>http://blog.simongregory.com/02/how-to-svnx-svn-ssh/#comments</comments>
		<pubDate>Mon, 05 Feb 2007 10:15:42 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[secure shell]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[svn-ssh]]></category>
		<category><![CDATA[svnx]]></category>

		<guid isPermaLink="false">http://blog.simongregory.com/?p=20</guid>
		<description><![CDATA[This is a relatively simple thing to do, and it&#8217;s really all about setting up shh rather than svn, but when you don&#8217;t quite understand what is happening it&#8217;s a little creepy having the authentication handled automatically. The shh authentication process uses a public / private key system which is explained nicely here. To start [...]]]></description>
			<content:encoded><![CDATA[<p>This is a relatively simple thing to do, and it&#8217;s really all about setting up shh rather than svn, but when you don&#8217;t quite understand what is happening it&#8217;s a little creepy having the authentication handled automatically. The shh authentication process uses a public / private key system which is explained nicely <a href="http://en.wikipedia.org/wiki/Secure_Shell#How_ssh_uses_public-key_cryptography_.28with_analogy.29 ">here</a>.</p>

<p>To start you need ssh to use keys rather than passwords. This is because subversion needs to &#8220;transparently&#8221; authenticate each time you make a request. I hope I&#8217;m right in thinking that it opens a tunnel to the remote machine and invokes the service as a <code>svnserve</code> process there.</p>

<p>So, open a terminal window and type <code>ssh-keygen -d</code> to generate your public and private ssh keys. Hit return at each prompt to stick with the default options. You&#8217;ll end up with two files called <code>id<em>dsa.pub</em></code> and <code>iddsa</code> in your <code>pwd</code> move the files to <code>~/.ssh/</code>. Then you need to copy the contents of <code>id<em>dsa.pub</em></code> to this file <code>~/.ssh/authorizedkeys</code> on your remote machine ( the one hosting the subversion repository) &#8211; creating it if it doesn&#8217;t exist. You can append more than one public key to the authorized<em>keys file if you’re connecting from more than one machine. If you have access to more than one user account on the the remote machine then you need to copy the key into each users <code>authorized</code></em>keys file.  I used <a href="http://cyberduck.ch/">CyberDuck</a> along with a sftp connection to get the onto the remote machine. You should then be able to login to the remote machine using <code>username@server.org</code>.</p>

<p>Once you&#8217;ve got the ssh connection verified it should be plain sailing with svnx. You&#8217;ll be able ot use your repository with the following</p>

<p><code>svn+ssh://username@domain.com/path/to/repository</code></p>

<p>I&#8217;ve just found <a href="http://macromates.com/blog/archives/2005/11/06/subversion-support-and-ssh-key-pairs/">this</a> on the <a href="http://macromates.com/blog/">TextMate</a> blog. It&#8217;s covering the same ssh key generation process, but using the command line completely, and describing how to set up ssh aliases to save a little bit of typing.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.simongregory.com/02/how-to-svnx-svn-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>svn ignore</title>
		<link>http://blog.simongregory.com/01/svn-ignore/</link>
		<comments>http://blog.simongregory.com/01/svn-ignore/#comments</comments>
		<pubDate>Sat, 20 Jan 2007 14:57:51 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[ignore]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://blog.simongregory.com/?p=18</guid>
		<description><![CDATA[How do you get subversion to ingnore certain files? It can be done globally or on a per directory basis. For global ignores find your subversion config file. For me this was here ~/.subversion/config then edit the following line, here I&#8217;ve added *.tmproj to ignore any file which ends with .tmproj (the * being a [...]]]></description>
			<content:encoded><![CDATA[<p>How do you get subversion to ingnore certain files? It can be done globally or on a per directory basis.</p>

<p>For global ignores find your subversion config file. For me this was here <code>~/.subversion/config</code> then edit the following line, here I&#8217;ve added *.tmproj to ignore any file which ends with .tmproj (the * being a reg exp for any prefix).</p>

<p><code>global-ignores = <em>.o *.lo *.la #</em># .*.rej *.tmproj</code></p>

<p>To ingnore files on a per directory basis <code>cd</code> to the directory in question and use the following.</p>

<p><code>svn propset svn:ignore "*.cache" .</code></p>

<p>This will apply the ignore to the file or files specifed by the pattern. In this case all files ending with .cache. The trialing . applies the ignore to the current directory, but can be the path to any subversion directory. The command above creates a .svn/dir-props file with the following contents in the specified directory.</p>

<p><code>K 10
svn:ignore
V 8
*.cache</code></p>

<p><code>END</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.simongregory.com/01/svn-ignore/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keychain Access from a Shell.sh Script</title>
		<link>http://blog.simongregory.com/01/keychain-access-from-a-shellsh-script/</link>
		<comments>http://blog.simongregory.com/01/keychain-access-from-a-shellsh-script/#comments</comments>
		<pubDate>Wed, 17 Jan 2007 12:29:49 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Keychain]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[shell script]]></category>

		<guid isPermaLink="false">http://blog.simongregory.com/?p=16</guid>
		<description><![CDATA[Here&#8217;s a useful snippet to enable you to securely store passwords in OS X&#8217;s keychain and use them in a shell scripts. #!/bin/bash PASSWORD=`exec osascript &#60;&#60;EOF &#124; tr "\r" "\n" (* To use the Keychain to store the admin password then Open /Applications/Utilities/Keychain Access.app Add a new keychain called "TM" Add a Key with the [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a useful snippet to enable you to securely store passwords in OS X&#8217;s keychain and use them in a shell scripts.</p>

<pre class="textmate-source"><span class="source source_shell"><span class="comment comment_line comment_line_number-sign comment_line_number-sign_shell"><span class="punctuation punctuation_definition punctuation_definition_comment punctuation_definition_comment_shell">#</span>!/bin/bash
</span>
PASSWORD=<span class="string string_interpolated string_interpolated_backtick string_interpolated_backtick_shell"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_shell">`</span>exec osascript &lt;&lt;EOF | tr "\r" "\n"
    
<span class="source source_applescript">    <span class="comment comment_block comment_block_applescript"><span class="punctuation punctuation_definition punctuation_definition_comment punctuation_definition_comment_applescript">(*</span> 
     To use the Keychain to store the admin password then 
     
     Open /Applications/Utilities/Keychain Access.app
     Add a new keychain called "TM" 
     Add a Key with the name "test" and store your password in it.
     
     I'd recommend learning how keychains work then tailoring 
     the process to your security needs.
    <span class="punctuation punctuation_definition punctuation_definition_comment punctuation_definition_comment_applescript">*)</span></span>

<span class="meta meta_tell-block meta_tell-block_application meta_tell-block_application_generic meta_tell-block_application_generic_applescript">    <span class="keyword keyword_control keyword_control_applescript">tell</span> <span class="support support_class support_class_built-in support_class_built-in_applescript">application</span> <span class="string string_quoted string_quoted_double string_quoted_double_application-name string_quoted_double_application-name_applescript"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_applescript">"</span>Keychain Scripting<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_applescript">"</span></span>
        <span class="keyword keyword_control keyword_control_applescript">set</span> myKeyChain <span class="keyword keyword_control keyword_control_applescript">to</span> keychain <span class="string string_quoted string_quoted_double string_quoted_double_applescript"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_applescript">"</span>TM.keychain<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_applescript">"</span></span>
        <span class="keyword keyword_control keyword_control_applescript">set</span> theKeyList <span class="keyword keyword_control keyword_control_applescript">to</span> <span class="keyword keyword_control keyword_control_reference keyword_control_reference_applescript">every</span> key <span class="keyword keyword_control keyword_control_reference keyword_control_reference_applescript">of</span> myKeyChain
        <span class="keyword keyword_control keyword_control_applescript">set</span> thePassword <span class="keyword keyword_control keyword_control_applescript">to</span> <span class="string string_quoted string_quoted_double string_quoted_double_applescript"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_applescript">""</span></span>
        <span class="keyword keyword_control keyword_control_applescript">repeat with</span> x <span class="keyword keyword_control keyword_control_applescript">from</span> <span class="constant constant_numeric constant_numeric_applescript">1</span> <span class="keyword keyword_control keyword_control_applescript">to</span> <span class="punctuation punctuation_section punctuation_section_group punctuation_section_group_applescript">(</span>length <span class="keyword keyword_control keyword_control_reference keyword_control_reference_applescript">of</span> theKeyList<span class="punctuation punctuation_section punctuation_section_group punctuation_section_group_applescript">)</span>
            <span class="keyword keyword_control keyword_control_applescript">set</span> theKey <span class="keyword keyword_control keyword_control_applescript">to</span> <span class="support support_class support_class_standard-suite support_class_standard-suite_applescript">item</span> x <span class="keyword keyword_control keyword_control_reference keyword_control_reference_applescript">of</span> theKeyList
            <span class="keyword keyword_control keyword_control_applescript">if</span> the <span class="support support_constant support_constant_standard-suite support_constant_standard-suite_applescript">name</span> <span class="keyword keyword_control keyword_control_reference keyword_control_reference_applescript">of</span> theKey <span class="keyword keyword_operator keyword_operator_applescript">is</span> <span class="string string_quoted string_quoted_double string_quoted_double_applescript"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_applescript">"</span>test<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_applescript">"</span></span> <span class="keyword keyword_control keyword_control_applescript">then</span>
                <span class="keyword keyword_control keyword_control_applescript">set</span> thePassword <span class="keyword keyword_control keyword_control_applescript">to</span> password <span class="keyword keyword_control keyword_control_reference keyword_control_reference_applescript">of</span> theKey
                <span class="comment comment_line comment_line_double-dash comment_line_double-dash_applescript"><span class="punctuation punctuation_definition punctuation_definition_comment punctuation_definition_comment_applescript">--</span>exit repeat leaves us without 
</span>                <span class="comment comment_line comment_line_double-dash comment_line_double-dash_applescript"><span class="punctuation punctuation_definition punctuation_definition_comment punctuation_definition_comment_applescript">--</span>a value returned to the shell script...
</span>            <span class="keyword keyword_control keyword_control_applescript">end if</span>
        <span class="keyword keyword_control keyword_control_applescript">end repeat</span>
    <span class="keyword keyword_control keyword_control_applescript">end tell</span></span></span></span>
    
EOF<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_shell">`</span></span>

echo <span class="string string_quoted string_quoted_double string_quoted_double_shell"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_shell">"</span><span class="variable variable_other variable_other_normal variable_other_normal_shell"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_shell">$</span>PASSWORD</span><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_shell">"</span>

exit 0<span class="keyword keyword_operator keyword_operator_list keyword_operator_list_shell">;</span></span></pre>

<p><a href="/wp-content/assets/code/bash/keychainSnippet.sh" title="keychainSnippet.sh"><span class="shift_for_inline_32">Download: </span><img src="/wp-content/assets/images/tm/shell_32x32.png"/></a></p>

<p><em>Update</em>: As of Leopard it is now possible to do this via the command line tool <code>security</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.simongregory.com/01/keychain-access-from-a-shellsh-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>That Dictionary File,</title>
		<link>http://blog.simongregory.com/01/that-dictionary-file/</link>
		<comments>http://blog.simongregory.com/01/that-dictionary-file/#comments</comments>
		<pubDate>Thu, 11 Jan 2007 22:32:47 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[dictionary]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://blog.simongregory.com/?p=15</guid>
		<description><![CDATA[the one i&#8217;m always forgetting where it hides, with the 234,936 english words in, is here /usr/share/dict/web2 as the readme says &#8220;it makes a dandy &#8216;grep&#8217; vicitim&#8221;. Want a random word? perl -e 'rand($.) &#60; 1 &#38;&#38; ($line = $_) while &#60;>; print $line' \ /usr/share/dict/web2]]></description>
			<content:encoded><![CDATA[<p>the one i&#8217;m always forgetting where it hides, with the 234,936 english words in, is here</p>

<p><code>/usr/share/dict/web2</code></p>

<p>as the readme says &#8220;it makes a dandy &#8216;grep&#8217; vicitim&#8221;. Want a random word?
<code>
perl -e 'rand($.) &lt; 1 &amp;&amp; ($line = $_) while &lt;>; print $line' \
/usr/share/dict/web2
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.simongregory.com/01/that-dictionary-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change &#8220;Welcome to Darwin!&#8221;</title>
		<link>http://blog.simongregory.com/01/change-welcome-to-darwin/</link>
		<comments>http://blog.simongregory.com/01/change-welcome-to-darwin/#comments</comments>
		<pubDate>Thu, 11 Jan 2007 12:56:37 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[motd]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://blog.simongregory.com/?p=13</guid>
		<description><![CDATA[Here&#8217;s how to change the &#8220;Welcome to Darwin!&#8221; message when you open a new terminal. Simply open: /etc/motd and change the contents to whatever you like. I favour &#8220;Welcome to Hell!&#8221; Update: As of Leopard you may find that the motd (Message of the Day) file no longer exists. If this is the case then [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s how to change the &#8220;Welcome to Darwin!&#8221; message when you open a new terminal. Simply open:</p>

<p><code>/etc/motd</code></p>

<p>and change the contents to whatever you like. I favour &#8220;Welcome to Hell!&#8221;</p>

<p><strong>Update</strong>: As of Leopard you may find that the <code>motd</code> (Message of the Day) file no longer exists. If this is the case then you just need to create it. The contents will then be displayed each time you open a new Terminal window.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.simongregory.com/01/change-welcome-to-darwin/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Switching flash players on OS X</title>
		<link>http://blog.simongregory.com/01/switching-flash-players-on-os-x/</link>
		<comments>http://blog.simongregory.com/01/switching-flash-players-on-os-x/#comments</comments>
		<pubDate>Sun, 08 Jan 2006 01:32:59 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[TextMate]]></category>

		<guid isPermaLink="false">http://blog.simongregory.com/?p=12</guid>
		<description><![CDATA[I wrote the following shell script a while back for use with TextMate as part of my build process. TextMate&#8217;s great as it easily allows you to bind scripts to custom commands (and key combinations). However you&#8217;d easily be able to adapt it to your set up. It will allow you to cleanly change all [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote the following shell script a while back for use with <a href="http://macromates.com">TextMate</a> as part of my build process. TextMate&#8217;s great as it easily allows you to bind scripts to custom commands (and key combinations). However you&#8217;d easily be able to adapt it to your set up. It will allow you to cleanly change <a href="http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14266">all the flash players available</a> for OS X, as well as being able to Uninstall the player, and optionally restart open browsers (FireFox and Safari) afterwards.</p>

<p>You&#8217;ll need to download the players, install and move the files into archived folders the contents of which the script will copy to the default internet plug-ins folder. It shouldn&#8217;t be too difficult to work out how this happens and alter the script for your needs.</p>

<p>Download the script <a href="http://blog.simongregory.com/wp-content/assets/code/bash/changePlayer.sh">here</a> </p>

<p>To install the FP 7.0.14 without restarting any open broswers:</p>

<p><code lang="bash">changePlayer.sh 7.0.14 false</code></p>

<p>To uninstall the flash player:</p>

<p><code lang="bash">changePlayer.sh uninstall<em>flash</em>player</code></p>

<p>To install FP 6.0.49, restarting open browsers:</p>

<p><code lang="bash">changePlayer.sh 6.0.49</code></p>

<p>If there&#8217;s anyone out there using TextMate and would like a the above wrapped up in a bundle then please email me and I&#8217;ll send a copy over. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.simongregory.com/01/switching-flash-players-on-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recursively remove .svn files</title>
		<link>http://blog.simongregory.com/12/recursively-remove-svn-files/</link>
		<comments>http://blog.simongregory.com/12/recursively-remove-svn-files/#comments</comments>
		<pubDate>Fri, 16 Dec 2005 11:44:11 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://blog.simongregory.com/?p=9</guid>
		<description><![CDATA[Here&#8217;s a quick shell script to recursively remove all the the .svn files starting in the current directory and working down. find . -type f -name "*.svn" -exec rm '{}' \; -print Change .svn to look for different types.]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quick shell script to recursively remove all the the .svn files starting in the current directory and working down.</p>

<p><code lang="bash">find . -type f -name "*.svn" -exec rm '{}' \; -print</code></p>

<p>Change .svn to look for different types.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.simongregory.com/12/recursively-remove-svn-files/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
