<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>Keith's Personal Blog - OSX</title>
    <link>http://keith.chaos-realm.net/</link>
    <description>Interesting Game. The only winning move is not to play.</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.5.4 - http://www.s9y.org/</generator>
    <pubDate>Thu, 17 Jun 2010 21:06:54 GMT</pubDate>

    <image>
        <url>http://keith.chaos-realm.net/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Keith's Personal Blog - OSX - Interesting Game. The only winning move is not to play.</title>
        <link>http://keith.chaos-realm.net/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Thunderbird Dock Counts Problem (OSX)</title>
    <link>http://keith.chaos-realm.net/archives/212-Thunderbird-Dock-Counts-Problem-OSX.html</link>
            <category>OSX</category>
    
    <comments>http://keith.chaos-realm.net/archives/212-Thunderbird-Dock-Counts-Problem-OSX.html#comments</comments>
    <wfw:comment>http://keith.chaos-realm.net/wfwcomment.php?cid=212</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://keith.chaos-realm.net/rss.php?version=2.0&amp;type=comments&amp;cid=212</wfw:commentRss>
    

    <author>nospam@example.com (Keith Ward)</author>
    <content:encoded>
    OK, a fix has been released for this problem on OSX (Thunderbird showing double the number of unread mails in the Dock Icon).&lt;br /&gt;
&lt;br /&gt;
If you wish you can view the technical information for this bug at: https://bugzilla.mozilla.org/show_bug.cgi?id=557960.&lt;br /&gt;
&lt;br /&gt;
This bug is fixed in 3.0.5, according to my systems anyways.&lt;br /&gt;
&lt;br /&gt;
-Keith 
    </content:encoded>

    <pubDate>Thu, 17 Jun 2010 20:55:03 +0000</pubDate>
    <guid isPermaLink="false">http://keith.chaos-realm.net/archives/212-guid.html</guid>
    <category>osx</category>
<category>thunderbird</category>
<category>osx</category>
<category>thunderbird</category>

</item>
<item>
    <title>OSX 10.6 Snow Leopard Download Assessment Safe Files</title>
    <link>http://keith.chaos-realm.net/archives/211-OSX-10.6-Snow-Leopard-Download-Assessment-Safe-Files.html</link>
            <category>OSX</category>
    
    <comments>http://keith.chaos-realm.net/archives/211-OSX-10.6-Snow-Leopard-Download-Assessment-Safe-Files.html#comments</comments>
    <wfw:comment>http://keith.chaos-realm.net/wfwcomment.php?cid=211</wfw:comment>

    <slash:comments>6</slash:comments>
    <wfw:commentRss>http://keith.chaos-realm.net/rss.php?version=2.0&amp;type=comments&amp;cid=211</wfw:commentRss>
    

    <author>nospam@example.com (Keith Ward)</author>
    <content:encoded>
    OK, as everybody who has downloaded something on Snow Leopard knows, for most files you download when you try to open it after downloading, it will pop up a nice little dialog box saying that the file was recently downloaded from the internet and are u sure u want to open it.&lt;br /&gt;
&lt;br /&gt;
Unfortunately this is not strictly neccessary - and is rather annoying for some file types (Especially NZB&#039;s).&lt;br /&gt;
&lt;br /&gt;
The fix for this, is to create a plist file inside ~/Library/Preferences called com.apple.DownloadAssessment.plist with either TextWrangler, or the Property list editor.&lt;br /&gt;
&lt;br /&gt;
If you are not comfortable creating plist files by yourself, my DownloadAssessment.plist file can be located here: &lt;a href=&quot;http://keith.chaos-realm.net/uploads/com.apple.DownloadAssessment.plist&quot; title=&quot;com.apple.DownloadAssessment.plist&quot; target=&quot;_blank&quot;&gt;com.apple.DownloadAssessment.plist&lt;/a&gt;, and you can just drop it into Library/Preferences under your Home Directory. (If you wish you can open this with something like TextWrangler, and verify that it looks exactly the same as below.).&lt;br /&gt;
&lt;br /&gt;
The file should contain something similar to the following contents.&lt;br /&gt;
&lt;div class=&quot;bb-code-title&quot;&gt;CODE:&lt;/div&gt;&lt;div class=&quot;bb-code&quot;&gt;&amp;#60;?xml&amp;#160;version=&quot;1.0&quot;&amp;#160;encoding=&quot;UTF-8&quot;?&amp;#62;
&amp;#60;!DOCTYPE&amp;#160;plist&amp;#160;PUBLIC&amp;#160;&quot;-//Apple//DTD&amp;#160;PLIST&amp;#160;1.0//EN&quot;&amp;#160;&quot;http&amp;#58;//www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&amp;#62;
&amp;#60;plist&amp;#160;version=&quot;1.0&quot;&amp;#62;
&amp;#60;dict&amp;#62;
	&amp;#60;key&amp;#62;LSRiskCategorySafe&amp;#60;/key&amp;#62;
	&amp;#60;dict&amp;#62;
		&amp;#60;key&amp;#62;LSRiskCategoryContentTypes&amp;#60;/key&amp;#62;
		&amp;#60;array&amp;#62;
			&amp;#60;string&amp;#62;public.xml&amp;#60;/string&amp;#62;
		&amp;#60;/array&amp;#62;
		&amp;#60;key&amp;#62;LSRiskCategoryExtensions&amp;#60;/key&amp;#62;
		&amp;#60;array&amp;#62;
			&amp;#60;string&amp;#62;amz&amp;#60;/string&amp;#62;
			&amp;#60;string&amp;#62;nzb&amp;#60;/string&amp;#62;
		&amp;#60;/array&amp;#62;
	&amp;#60;/dict&amp;#62;
&amp;#60;/dict&amp;#62;
&amp;#60;/plist&amp;#62;&lt;/div&gt;&lt;br /&gt;
NOTE: The amz extension shown above was allready marked as safe - at least on my system (you can remove this however), nzb is the one i have added.&lt;br /&gt;
&lt;br /&gt;
All you need to do is add any file extensions that you don&#039;t want to be flagged as at risk, to the LSRiskCategoryExtensions section, and then add the UTI (Uniform Type Identifier) for that file extension to the ContentTypes section (FYI .nzb files are basically XML files hence the public.xml string). Note that if you are using a version of OSX &lt; 10.5, then you can avoid listing every UTI, by simply using public.item as a string - unfortunately in 10.6 at least they changed the way UTI&#039;s are handled.&lt;br /&gt;
&lt;br /&gt;
A list of UTI&#039;s can be found here: &lt;a href=&quot;http://developer.apple.com/mac/library/documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html&quot; title=&quot;http://developer.apple.com/mac/library/documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html&quot;&gt;http://developer.apple.com/mac/library/documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
HTH,&lt;br /&gt;
&lt;br /&gt;
Keith 
    </content:encoded>

    <pubDate>Thu, 17 Jun 2010 20:09:41 +0000</pubDate>
    <guid isPermaLink="false">http://keith.chaos-realm.net/archives/211-guid.html</guid>
    <category>10.5</category>
<category>10.6</category>
<category>downloadassessment</category>
<category>extension</category>
<category>firefox</category>
<category>nzb</category>
<category>osx</category>
<category>quarantine</category>
<category>recently downloaded</category>
<category>safari</category>
<category>safefile</category>
<category>snow leopard</category>
<category>uti</category>
<category>10.5</category>
<category>10.6</category>
<category>downloadassessment</category>
<category>extension</category>
<category>firefox</category>
<category>nzb</category>
<category>osx</category>
<category>quarantine</category>
<category>recently downloaded</category>
<category>safari</category>
<category>safefile</category>
<category>snow leopard</category>
<category>uti</category>

</item>
<item>
    <title>OSX Terminal Home &amp; End Keys</title>
    <link>http://keith.chaos-realm.net/archives/198-OSX-Terminal-Home-End-Keys.html</link>
            <category>OSX</category>
    
    <comments>http://keith.chaos-realm.net/archives/198-OSX-Terminal-Home-End-Keys.html#comments</comments>
    <wfw:comment>http://keith.chaos-realm.net/wfwcomment.php?cid=198</wfw:comment>

    <slash:comments>3</slash:comments>
    <wfw:commentRss>http://keith.chaos-realm.net/rss.php?version=2.0&amp;type=comments&amp;cid=198</wfw:commentRss>
    

    <author>nospam@example.com (Keith Ward)</author>
    <content:encoded>
    OK, so for anyone who uses OSX , and admins Linux machines, this can be a real headache.&lt;br /&gt;
&lt;br /&gt;
For some reason the default settings for your Home and End keys that come with Terminal.App for OSX don&#039;t do what you expect - theyre Actually Swapped with Shift Home , and Shift End, but thats not all, as the escape sequence for Shift Home for example, is set to &quot;\033[H&quot;. This seems to work fine on OSX, but unfortunately you try logging into a Linux Box with that, and on the command line it works, but try loading vi and using the Home key - and you get nothing. The same applies to the End key as well, OSX has it defined it as \033[F, however vim remotely does not like this either. (I Believe this applies to all termcap applications, allthough i can&#039;t be sure).&lt;br /&gt;
&lt;br /&gt;
The Solution for both of these is to change the definitions of these keys, so theyre mapped as you expect, and get it to send the right escape sequence at the same time, I don&#039;t believe mapping OSX&#039;s [H and [F mappings in vim on the remote host, because well , when you admin 10 machines or more, it well doesn&#039;t make sense to put it mildly, so this is the only viable solution.&lt;br /&gt;
&lt;br /&gt;
Before we can do this however we need to create a file, open up a Terminal window, and type the following: sudo nano /private/etc/inputrc, then enter your password (you need to be an admin user for this). Now paste in the following code: &lt;div class=&quot;bb-code-title&quot;&gt;CODE:&lt;/div&gt;&lt;div class=&quot;bb-code&quot;&gt;&quot;\e&amp;#91;1~&quot;&amp;#58;&amp;#160;beginning-of-line
&quot;\e&amp;#91;4~&quot;&amp;#58;&amp;#160;end-of-line&lt;/div&gt; followed by Pressing CTRL and X, then typing y, and hitting enter.&lt;br /&gt;
(Note: If you don&#039;t want to do this change system wide, change the command to nano ~/.inputrc, and add export INPUTRC=&quot;~/.inputrc&quot; to your .profile)&lt;br /&gt;
&lt;br /&gt;
Now we&#039;ve done that we shall deal with Home/End, hit CMD I in terminal, and click Settings, followed by double clicking whichever entry is selected. In the window that appears click on the &quot;Keyboard&quot; tab, and find the entry for Home, click on it , and click edit. Change the action to &quot;send string to shell:&quot;, now in the box below that, hit the following keys: &quot;&lt;ESC&gt;[1~&quot; ( &lt;ESC&gt; as in the escape key, and without the quotes) and click OK. Now do the same for End, except you type &quot;&lt;ESC&gt;[4~&quot; (without the quotes).&lt;br /&gt;
Next find Shift Home, and edit that to change its action to: &quot;scroll to start of buffer&quot; then do the same for Shift End, editing that and changing its action to: &quot;scroll to end of buffer&quot;.&lt;br /&gt;
&lt;br /&gt;
Right, now Restart Terminal.&lt;br /&gt;
&lt;br /&gt;
Try your home and end keys, they should work, both on command line and inside vim. Both locally and remotely. If they don&#039;t try hitting CTRL V &lt;Home&gt; .. it should reply with ^[[1~ .. and CTRL V &lt;End&gt; should reply with ^[[4~. If it doesn&#039;t, you&#039;ve gone wrong somewhere!.&lt;br /&gt;
&lt;br /&gt;
Comments welcome.&lt;br /&gt;
&lt;br /&gt;
Keith&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Wed, 17 Feb 2010 21:24:36 +0000</pubDate>
    <guid isPermaLink="false">http://keith.chaos-realm.net/archives/198-guid.html</guid>
    <category>10.5</category>
<category>10.6</category>
<category>defaults</category>
<category>End</category>
<category>Home</category>
<category>key</category>
<category>mapping</category>
<category>OSX</category>
<category>Terminal</category>
<category>10.5</category>
<category>10.6</category>
<category>defaults</category>
<category>End</category>
<category>Home</category>
<category>key</category>
<category>mapping</category>
<category>OSX</category>
<category>Terminal</category>

</item>

</channel>
</rss>
