<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>loopkid: Category Mac OS X</title>
    <link>http://loopkid.net/articles/category/mac-os-x</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>professional procrastinator</description>
    <item>
      <title>forcing tidy to repair broken html</title>
      <description>&lt;pre&gt;&lt;code&gt;$ curl -sL http://bit.ly/xpkkso | tidy 2&amp;gt;&amp;amp;1 | sed -n '105,106p'
This document has errors that must be fixed before
using HTML Tidy to generate a tidied up version.

$ tidy -help-config | grep force
force-output    Boolean    y/n, yes/no, t/f, true/false, 1/0

$ tidy -show-config | grep force-output
force-output    Boolean    no

$ curl -sL http://bit.ly/xpkkso | tidy --force-output true \
2&amp;gt;/dev/null | head -n 5
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html b:version='2' class='v2' dir='ltr'&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;meta name="generator" content=
"HTML Tidy for Mac OS X (vers 25 March 2009), see www.w3.org"&amp;gt;
&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Fri, 27 Jan 2012 21:08:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:988e0894-a6a9-4698-8ac4-2c2a44b89140</guid>
      <author>Stefan</author>
      <link>http://loopkid.net/articles/2012/01/27/forcing-tidy-to-repair-broken-html</link>
      <category>Mac OS X</category>
      <category>Linux</category>
      <trackback:ping>http://loopkid.net/articles/trackback/181931</trackback:ping>
    </item>
    <item>
      <title>safariomnibar port for powerpc</title>
      <description>&lt;p&gt;I did a port of Olivier Poitrey&amp;#8217;s SafariOmnibar for Macs with PowerPC processor running Safari 5.0.6 on Mac OS 10.5.8. Go ahead and grab the &lt;a href="https://github.com/stefanschmidt/SafariOmnibar"&gt;current version&lt;/a&gt; over at Github.&lt;/p&gt;</description>
      <pubDate>Fri, 13 Jan 2012 03:39:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:17fd62d4-40bc-400d-adc4-cf32e025be08</guid>
      <author>Stefan</author>
      <link>http://loopkid.net/articles/2012/01/13/safariomnibar-port-for-powerpc</link>
      <category>Softwareentwicklung</category>
      <category>English</category>
      <category>Mac OS X</category>
      <category>Safari</category>
      <trackback:ping>http://loopkid.net/articles/trackback/181278</trackback:ping>
    </item>
    <item>
      <title>sync 28c3 conference torrents</title>
      <description>&lt;p&gt;Um die Server des &lt;a href="http://events.ccc.de/congress/2011/wiki/Welcome"&gt;28C3&lt;/a&gt; nicht unnötig zu belasten ziehe ich mir zwar nur die Torrent-Dateien der Mitschnitte, aber selbst das kann teilweise zu einem Geduldsspiel werden. Wie ich feststellen musste bekommt man bei jeder Verbindung zu &lt;code&gt;mirror.fem-net.de&lt;/code&gt; einen anderen Mirror zugewiesen.  Manche davon funktionieren gut, manche weniger gut und manche garnicht.&lt;/p&gt;

&lt;p&gt;Insgesamt scheint es fünf Stück zu geben:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ dig +short mirror.fem-net.de |\
xargs -n 1 dig +short -x | sed 's/.$//'
mirror.netcologne.de
bork.informatik.uni-erlangen.de
ramses.wh2.tu-dresden.de
ftp.uni-kl.de
mirror.selfnet.de
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Bei meinen Versuchen erwiesen sich die Server der Uni Kaiserlautern und das Wohnheimnetzwerk Stuttgart (&amp;#8220;Selfnet&amp;#8221;) als  recht performant. Mithilfe von &lt;a href="http://fuse4x.org/"&gt;Fuse4X&lt;/a&gt; und &lt;a href="http://curlftpfs.sourceforge.net/"&gt;CurlFtpFS&lt;/a&gt; synchronisiere ich nun regelmäßig die Torrent-Dateien der Video-Mitschnitte.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ sudo port install fuse4x curlftpfs
$ mkdir /Volumes/28C3
$ curlftpfs ftp://mirror.selfnet.de/CCC/28C3/mp4-h264-HQ/ \
/Volumes/28C3
$ rsync -hav --include '*/' --include '*.torrent' \
--exclude '*' /Volumes/28C3 ~/Desktop
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Nachtrag: Die RWTH Aachen bietet auf ihrem inoffiziellem Mirror auch rsync an.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ rsync -hav --include '*/' --include '*.torrent' --exclude '*'
rsync://ftp.halifax.rwth-aachen.de/ccc/28C3/mp4-h264-HQ/ ~/Desktop
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Nachtrag: Mittlerweile gibt es auch einen &lt;a href="http://mirror.fem-net.de/CCC/28C3/mp4-h264-HQ/28c3.mp4.hq.all.torrent"&gt;Gesamttorrent&lt;/a&gt; (~48 GB).&lt;/p&gt;</description>
      <pubDate>Thu, 29 Dec 2011 19:35:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:aaf737ef-d8cd-4518-a2b5-0717c53581ec</guid>
      <author>Stefan</author>
      <link>http://loopkid.net/articles/2011/12/29/sync-28c3-conference-torrents</link>
      <category>Mac OS X</category>
      <category>Konferenz</category>
      <trackback:ping>http://loopkid.net/articles/trackback/180048</trackback:ping>
    </item>
    <item>
      <title>vox for mac os x website moved</title>
      <description>&lt;p&gt;The minimalist Mac OS X audio player of &lt;a href="http://alenofx.jigsy.com/"&gt;Alessio Nonni&lt;/a&gt; has moved. Check out the new &lt;a href="http://voxapp.didgeroo.com/"&gt;Vox&lt;/a&gt; website for a Lion compatible version. If you enjoy the app don&amp;#8217;t hesitate to make a donation to support &lt;strike&gt;the suffering italian economy&lt;/strike&gt; a talented developer!&lt;/p&gt;</description>
      <pubDate>Sat, 15 Oct 2011 13:24:00 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:df692050-b08a-4f42-bc90-6455b007e728</guid>
      <author>Stefan</author>
      <link>http://loopkid.net/articles/2011/10/15/vox-for-mac-os-x-website-moved</link>
      <category>Mac OS X</category>
      <category>English</category>
      <trackback:ping>http://loopkid.net/articles/trackback/175476</trackback:ping>
    </item>
    <item>
      <title>really empty the safari cache</title>
      <description>&lt;p&gt;After telling Safari to empty the cache I wondered If Safari actually did what I told it.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ du -sh ~/Library/Caches/com.apple.safari
629M    /Users/stefan/Library/Caches/com.apple.safari
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Hm, 626 megabyte don&amp;#8217;t look like obedience to me. Let&amp;#8217;s see what&amp;#8217;s in there.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ du -sh ~/Library/Caches/com.apple.safari/*
173M    /Users/stefan/Library/Caches/com.apple.safari/Cache.db
5.6M    /Users/stefan/Library/Caches/com.apple.safari/Extensions
450M    /Users/stefan/Library/Caches/com.apple.safari/Webpage Previews
 64K    /Users/stefan/Library/Caches/com.apple.safari/com.apple.opencl
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;450 megabyte of &amp;#8220;Webpage Previews&amp;#8221;?&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ find ~/Library/Caches/com.apple.safari/Webpage\ Previews -type f \
| sed -E 's/.*\.([^\.]*)/\1/' | sort | uniq -c
7016 jpeg
 400 png
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;No wonder we need gigabyte sized hard disks today. Let&amp;#8217;s delete the crap altogether.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ rm -r ~/Library/Caches/com.apple.safari
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And let&amp;#8217;s make sure it doesn&amp;#8217;t come back (works in Safari 5.0.3).&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;So, what have we gained after restarting Safari?&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ du -sh ~/Library/Caches/com.apple.safari | awk '{print $1}'
3.6M
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Nice, especially in times of undersized solid state disks.&lt;/p&gt;</description>
      <pubDate>Tue, 11 Oct 2011 09:24:00 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:b9b0263e-f5f6-40c8-bead-c4e779f92f0e</guid>
      <author>Stefan</author>
      <link>http://loopkid.net/articles/2011/10/11/really-empty-the-safari-cache</link>
      <category>Mac OS X</category>
      <category>Safari</category>
      <category>English</category>
      <trackback:ping>http://loopkid.net/articles/trackback/175343</trackback:ping>
    </item>
    <item>
      <title>downgrade safari 5.1 to 5.0.x on lion</title>
      <description>&lt;p&gt;If you want to downgrade Safari 5.1 to Safari 5.0.x on Lion you can download &lt;a href="http://appldnld.apple.com/Safari5/061-9477.20101118.Sfr34/Safari5.0.3SnowLeopard.dmg"&gt;Safari 5.0.3&lt;/a&gt; from the original Apple servers and extract just the Browser with &lt;a href="http://www.charlessoft.com/"&gt;Pacifist&lt;/a&gt;. The installation image is called &lt;code&gt;Safari5.0.3SnowLeopard.dmg&lt;/code&gt; but it works just fine on Lion. Have fun!&lt;/p&gt;</description>
      <pubDate>Tue, 11 Oct 2011 07:11:00 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:0b1f2a34-1d51-43ae-a459-185add0a52a1</guid>
      <author>Stefan</author>
      <link>http://loopkid.net/articles/2011/10/11/downgrade-safari-5-1-to-5-0-x-on-lion</link>
      <category>English</category>
      <category>Mac OS X</category>
      <category>Safari</category>
      <trackback:ping>http://loopkid.net/articles/trackback/175339</trackback:ping>
    </item>
    <item>
      <title>recursive chmod and chown on files</title>
      <description>&lt;p&gt;If you want to recursively apply permissions to files it&amp;#8217;s best to use &lt;a href="http://www.gnu.org/s/parallel/"&gt;GNU parallel&lt;/a&gt; because it handles &lt;a href="http://www.gnu.org/s/parallel/man.html#differences_between_xargs_and_gnu_parallel"&gt;obscure filenames&lt;/a&gt; robustly:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;find directory -type f | parallel -m chmod mode
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;If you want to change ownership of the files, you can use a root subshell:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo bash -c "find directory -type f | parallel -m chown user:group"
&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Fri, 07 Oct 2011 21:47:00 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:af774447-a91b-4696-a2c4-0e628f954908</guid>
      <author>Stefan</author>
      <link>http://loopkid.net/articles/2011/10/07/recursive-chmod-and-chown-on-files</link>
      <category>English</category>
      <category>Mac OS X</category>
      <category>Linux</category>
      <trackback:ping>http://loopkid.net/articles/trackback/175240</trackback:ping>
    </item>
    <item>
      <title>floating point bash calculator</title>
      <description>&lt;pre&gt;&lt;code&gt;$ alias calc='bash -c '\''set -f; echo "scale=3;$0 $@" | bc -l '\'
$ calc 4/3
1.333
&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Fri, 30 Sep 2011 04:52:00 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:1471c1a9-77ea-41eb-817a-08d0a50dfc33</guid>
      <author>Stefan</author>
      <link>http://loopkid.net/articles/2011/09/30/floating-point-bash-calculator</link>
      <category>Mac OS X</category>
      <category>Linux</category>
      <trackback:ping>http://loopkid.net/articles/trackback/175015</trackback:ping>
    </item>
    <item>
      <title>tell lions resume feature to go to hell</title>
      <description>&lt;pre&gt;&lt;code&gt;rm -r ~/Library/Saved\ Application\ State/*
chmod -w ~/Library/Saved\ Application\ State
&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 28 Sep 2011 02:11:00 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:c27086a2-49b8-4297-9130-0e4f8070b98b</guid>
      <author>Stefan</author>
      <link>http://loopkid.net/articles/2011/09/28/tell-lions-resume-feature-to-go-to-hell</link>
      <category>Mac OS X</category>
      <trackback:ping>http://loopkid.net/articles/trackback/174970</trackback:ping>
    </item>
    <item>
      <title>make ard work with dynamic dns</title>
      <description>&lt;p&gt;With its default settings &lt;a href="http://en.wikipedia.org/wiki/Apple_Remote_Desktop"&gt;Apple Remote Desktop&lt;/a&gt; doesn&amp;#8217;t play well with dynamic DNS services. If you add a domain with a dynamic IP address it retrieves the IP address only once and if the IP address changes, the connect fails. A temporary workaround is to remove the IP address from the computer information window or to remove and readd the computer, but that certainly sucks for the long term.&lt;/p&gt;

&lt;p&gt;A permanent solution is to disable reverse IP lookups:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;defaults write com.apple.RemoteDesktop \
DisableReverseIPLookup -bool yes
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now Apple Remote Desktop will update the IPs upon launch.&lt;/p&gt;</description>
      <pubDate>Thu, 22 Sep 2011 14:11:00 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:e6206681-60bd-4fda-b928-cd47d493d94c</guid>
      <author>Stefan</author>
      <link>http://loopkid.net/articles/2011/09/22/make-ard-work-with-dynamic-dns</link>
      <category>English</category>
      <category>Mac OS X</category>
      <trackback:ping>http://loopkid.net/articles/trackback/174846</trackback:ping>
    </item>
  </channel>
</rss>

