<?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>Web Design</title> <atom:link href="http://patjack.co.uk/feed/" rel="self" type="application/rss+xml" /><link>http://patjack.co.uk</link> <description>Patrick Robertson</description> <lastBuildDate>Sat, 04 Feb 2012 12:39:25 +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>Donating for my Quicksilver 1Password Plugin</title><link>http://patjack.co.uk/donating-for-my-quicksilver-1password-plugin/</link> <comments>http://patjack.co.uk/donating-for-my-quicksilver-1password-plugin/#comments</comments> <pubDate>Fri, 15 Apr 2011 23:11:50 +0000</pubDate> <dc:creator>Patrick</dc:creator> <category><![CDATA[Uncategorized]]></category><guid
isPermaLink="false">http://patjack.co.uk/?p=532</guid> <description><![CDATA[If you&#8217;ve not heard about the 1Password Plugin I&#8217;ve developed for Quicksilver, then I suggest you check it out (along with Quicksilver!) Since GitHub doesn&#8217;t allow input forms within the README files, the &#8216;Donate&#8217; button is redirected to this page, from where you can donate. I thank you all for your support, and look forward [...]]]></description> <content:encoded><![CDATA[<p>If you&#8217;ve not heard about the <a
href="https://github.com/pjrobertson/1Password-Plugin">1Password Plugin</a> I&#8217;ve developed for Quicksilver, then I suggest you <a
href="https://github.com/pjrobertson/1Password-Plugin#readme">check it out</a> (along with <a
href="http://qsapp.com">Quicksilver</a>!)</p><p>Since GitHub doesn&#8217;t allow input forms within the README files, the &#8216;Donate&#8217; button is redirected to this page, from where you can donate.</p><p>I thank you all for your support, and look forward to developing some more! (Note that this isn&#8217;t a donate button for the work I&#8217;ve done on Quicksilver itself)</p><div
style="text-align: center;"><form
action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input
type="hidden" name="cmd" value="_donations"> <input
type="hidden" name="business" value="7MJHCZAQF5KEU"> <input
type="hidden" name="lc" value="GB"> <input
type="hidden" name="item_name" value="Quicksilver 1Password Plugin"> <input
type="hidden" name="currency_code" value="USD"> <input
type="hidden" name="bn" value="PP-DonationsBF:btn_donate_LG.gif:NonHosted"> <input
type="image" src="https://www.paypal.com/en_GB/i/btn/btn_donate_LG.gif" style="border:none;background:none;" name="submit" alt="PayPal - The safer, easier way to pay online."> <img
alt="Donate to Quicksilver 1Password Plugin" style="border:none;" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1"><br
/></form></div> ]]></content:encoded> <wfw:commentRss>http://patjack.co.uk/donating-for-my-quicksilver-1password-plugin/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Updating Mac OS X 10.6.4 Snow Leopard &#8216;too many files&#8217; problem</title><link>http://patjack.co.uk/updating-mac-10-6-4-snow-leopard-too-many-files-problem/</link> <comments>http://patjack.co.uk/updating-mac-10-6-4-snow-leopard-too-many-files-problem/#comments</comments> <pubDate>Wed, 16 Jun 2010 13:17:18 +0000</pubDate> <dc:creator>Patrick</dc:creator> <category><![CDATA[Apps]]></category> <category><![CDATA[Mac OS X]]></category> <category><![CDATA[10.6.4]]></category> <category><![CDATA[installer]]></category> <category><![CDATA[mac]]></category> <category><![CDATA[os x]]></category> <category><![CDATA[snow leopard]]></category> <category><![CDATA[terminal]]></category><guid
isPermaLink="false">http://patjack.co.uk/?p=512</guid> <description><![CDATA[Mac OS X Snow Leopard 10.6.4 has been released, and I&#8217;m sure everyone is immediately rushing to download it. I did the same, but was left staring at the message: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. Retrying the Installer, booting into Safe Mode and [...]]]></description> <content:encoded><![CDATA[<p>Mac OS X Snow Leopard 10.6.4 has been released, and I&#8217;m sure everyone is immediately rushing to download it.</p><p>I did the same, but was left staring at the message:</p><blockquote><p>The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.</p></blockquote><p>Retrying the Installer, booting into Safe Mode and downloading the combo update all failed to work.<br
/> Delving a little deeper into the Console log files (found by opening Console.app from Applications/Utilities, clicking &#8216;Logs&#8217; and the left hand side, then install.log) revealed that my install was failing due to the message</p><p><code> The operation couldn’t be completed. Too many open files in system<br
/> </code></p><p>How could this be possible? The installer was the only thing running for me, and I had plenty of RAM and disk space, so what gives?<br
/> It turns out that &#8211; from <a
href="http://usrinapto.wordpress.com/2010/03/06/mac-os-x-10-6-max-open-files-too-many-open-files/">this handy post</a> &#8211; Snow Leopard only allows each process to have a maximum of 256 files open at any one time.</p><p>You can change the defaults (as shown in the link above) by typing this command into terminal:</p><p><code>launchctl limit maxfiles 1000000 1000000</code></p><p>This will set the max files per process to 1,000,000, which is more than enough.<br
/> Trying the installer again having entered this command into terminal worked perfectly!</p><p>Let me know if it fixes your problem.</p> ]]></content:encoded> <wfw:commentRss>http://patjack.co.uk/updating-mac-10-6-4-snow-leopard-too-many-files-problem/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Shortening URLs in-house</title><link>http://patjack.co.uk/shortening-urls-in-house/</link> <comments>http://patjack.co.uk/shortening-urls-in-house/#comments</comments> <pubDate>Thu, 27 May 2010 21:21:01 +0000</pubDate> <dc:creator>Patrick</dc:creator> <category><![CDATA[SEO]]></category> <category><![CDATA[Web Design]]></category> <category><![CDATA[google]]></category> <category><![CDATA[htaccess]]></category> <category><![CDATA[html]]></category> <category><![CDATA[php]]></category><guid
isPermaLink="false">http://patjack.co.uk/?p=427</guid> <description><![CDATA[All websites now use URL extensions that redirect for easy to remember URLs. A recent example is Google&#8217;s http://google.com/pacman &#8211; a simple / and one word is much easier to remember than say /google_pacman.html (which is still keeping it simple!) (I&#8217;m sure if you looked into it, the files aren&#8217;t actually stored in a /pacman [...]]]></description> <content:encoded><![CDATA[<p>All websites now use URL extensions that redirect for easy to remember URLs.</p><p>A recent example is Google&#8217;s <a
href="http://google.com/pacman">http://google.com/pacman</a> &#8211; a simple / and one word is much easier to remember than say /google_pacman.html (which is still keeping it simple!)<br
/> (I&#8217;m sure if you looked into it, the files aren&#8217;t actually stored in a /pacman folder either <img
src='http://patjack.co.uk/wp/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> )</p><p>There <em>are</em> URL shortening methods out there, such as <a
href="http://bit.ly">http://bit.ly</a> and <a
href="http://tiny.cc">http://tiny.cc</a>, but I feel these don&#8217;t give you enough power for customisation. And what if you have your own domain that you want to use?!<br
/> <span
id="more-427"></span><br
/> I&#8217;ve made my own simple &#8216;Redirect Setup Script&#8217; that enables you to create redirects with the click of a button.<br
/> You can view a demo here: <a
href="http://patjack.co.uk/newurls">http://patjack.co.uk/newurls</a> (note this doesn&#8217;t actually set up any redirects on my site <img
src='http://patjack.co.uk/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ) and see how easy it is.</p><p>My method uses PHP that appends the redirect to your root .htaccess file, and uses mod_rewrite. An alternative method would be to use a meta redirect, which I&#8217;ve included in the downloadable folder for those that might not have mod_rewrite on their servers. The downside to the meta redirect is that you need to actually create the folder and index.html file, the .htaccess method just uses the root .htaccess file.</p><p>To swap between using the .htaccess mod_rewrite method and the meta re-direct method, just open up &#8216;process.php&#8217; and change the $use_htaccess from <span
style="color: #33d019;">TRUE</span> to <span
style="color: #ff0000;">FALSE</span>.</p><p>The script also uses REGEX to make sure you don&#8217;t use some silly extension, or input an invalid URL.</p><p>To use, just download the folder from <a
href="http://patjack.co.uk/files/redirect_script.zip">here</a></p><h3>A quick example</h3><p>I&#8217;ve set up a redirect for when I have a chocolate cake craving but don&#8217;t want to bake a whole cake. To see my secret, click through to <a
href="http://patjack.co.uk/cake">http://patjack.co.uk/cake</a>. Mmmmm&#8230;</p><p>Download: <a
href="http://patjack.co.uk/files/redirect_script.zip">Script.zip</a></p><p>Here&#8217;s what gets appended to your root .htaccess and the index.html files respectively</p><h4>.htaccess</h4><p><code><br
/> RedirectMatch /".$_YOUR_EXTENSION."/.* ".$_URL_GOES_HERE." [R=301,L]<br
/> RedirectMatch /".$_YOUR_EXTENSION." ".$_URL_GOES_HERE." [R=301,L]";<br
/> </code><br
/> There&#8217;s a need for two redirects to catch both cases where you may browse to example.com/extension (with no slash) example.com/extension/ (with a slash) or anything else &#8211; example.com/extension/index.html</p><h4>index.html</h4><p><code><br
/> &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;<br
/> &lt;head&gt;<br
/> &lt;title&gt;Redirect&lt;/title&gt;<br
/> &lt;meta http-equiv="refresh" content="0;URL=$_URL_GOES_HERE" /&gt;<br
/> &lt;/head&gt;<br
/> &lt;body&gt;<br
/> &lt;/body&gt;<br
/> &lt;/html&gt;<br
/> </code></p> ]]></content:encoded> <wfw:commentRss>http://patjack.co.uk/shortening-urls-in-house/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Batch compress all files in a folder with YUI Compressor</title><link>http://patjack.co.uk/batch-compress-all-files-in-a-folder-with-yui-compressor/</link> <comments>http://patjack.co.uk/batch-compress-all-files-in-a-folder-with-yui-compressor/#comments</comments> <pubDate>Mon, 24 May 2010 16:07:51 +0000</pubDate> <dc:creator>Patrick</dc:creator> <category><![CDATA[SEO]]></category> <category><![CDATA[Web Design]]></category> <category><![CDATA[bash]]></category> <category><![CDATA[compress]]></category> <category><![CDATA[css]]></category> <category><![CDATA[google]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[script]]></category> <category><![CDATA[terminal]]></category><guid
isPermaLink="false">http://patjack.co.uk/?p=413</guid> <description><![CDATA[I&#8217;ve recently read up on the importance of site performance for search engine optimisation (SEO). Google is saying that this year (2010) it may start using the speed your site loads as a factor in determining where your site shows up in its results list. One great way of decreasing the load times of your [...]]]></description> <content:encoded><![CDATA[<p>I&#8217;ve recently read up on the importance of site performance for search engine optimisation (SEO).</p><p>Google is saying that this year (2010) it may start using the speed your site loads as a factor in determining where your site shows up in its results list.</p><p>One great way of decreasing the load times of your site is to compress the CSS and Javascript.<br
/> <span
id="more-413"></span><br
/> Before&#8230;<br
/> <img
src="http://patjack.co.uk/wp/wp-content/uploads/2010/05/uncompressed-300x137.png" alt="Uncompressed Javascript File" title="Uncompressed Javascript File" width="300" height="137" class="aligncenter size-medium wp-image-415" /><br
/> After&#8230;<br
/> <img
src="http://patjack.co.uk/wp/wp-content/uploads/2010/05/compressed-300x62.png" alt="Compressed Javascript File" title="Compressed Javascript File" width="300" height="62" class="aligncenter size-medium wp-image-417" /></a></p><p>There are several methods out there, but Yahoo&#8217;s YUI Compressor is supposed to be the best.<br
/> The compressor is a java (.jar) file that you need to run from the command prompt or terminal. The biggest flaw in it&#8217;s design is that you can only compress one file at a time.</p><p>Here comes the solution!</p><p>I&#8217;ve created a small bash script (.sh) that you can double click to convert all the javascript / css files in a folder (and all folders recursively)</p><p>here it is:<br
/> <code><br
/> #!/bin/sh<br
/> for file in `find . -name "*.js"`<br
/> do<br
/> echo "Compressing $file …"<br
/> java -jar min.jar --type js -o $file $file<br
/> done<br
/> </code></p><p>The file&#8217;s pretty self explanatory; it finds all the files ending in .js (you can change this to .css for CSS files) and performs the compress action on each file.</p><p>To get this to work, you must make the script executable (download mine at the end of this post) and have the YUI Compressor file in the same directory as the batch.sh script (note that it needs to be called min.jar)</p><p>From terminal, you just need to go to the directory with the javascript files in and type<br
/> <code>./batch.sh</code><br
/> to run the script.<br
/> <img
src="http://patjack.co.uk/wp/wp-content/uploads/2010/05/processing.png" alt="YUI Compressor compressing javascript files in a folder" title="YUI Compressor compressing javascript files in a folder" width="550px" class="alignnone size-full wp-image-420" /></p><p>et voila!</p><h3 style="color:#ff6600">Update &#8211; an ever better option</h3><p>If you put the batch.sh file in your /usr/local/bin folder then you&#8217;ll be able to use the command anywhere from within terminal (it must be chmodded a+x) I&#8217;ve made a file called &#8216;yuicompress&#8217; which means, if placed in the /usr/local/bin folder (you need root access) you can type &#8216;yuicompress&#8217; in terminal to get the command to work!</p><p>Type<br
/> <code><br
/> yuicompress arg<br
/> </code><br
/> where arg is either &#8216;css&#8217; or &#8216;js&#8217; (no quotes) to compress CSS or JavaScript respectively.<br
/> The one thing you need to do with this new script is place the min.jar (or compressor.jar as I&#8217;ve renamed it) in a global place. I chose ~/Library/Application Support/YUICompressor/compressor.jar</p><p>Download the files below and place the yuicompress in /usr/local/bin, and the YUICompress folder in ~/Library/Application Support/YUICompressor/compressor.jar to get this to work from any older on your Mac/Unix box <img
src='http://patjack.co.uk/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p>Downloads:<br
/> Script: <a
href="http://patjack.co.uk/files/batch.sh">Batch Convert for YUI Compressor</a><br
/> YUI Compressor: <a
href="http://patjack.co.uk/files/min.jar">YUI Compressor .jar file</a><br
/> Chmodded yuicompress script &amp; YUICompressor folder: <a
href=&#8221;http://patjack.co.uk/files/yuicompress.zip</p> ]]></content:encoded> <wfw:commentRss>http://patjack.co.uk/batch-compress-all-files-in-a-folder-with-yui-compressor/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>1Password Plugin for Quicksilver</title><link>http://patjack.co.uk/1password-plugin-for-quicksilver/</link> <comments>http://patjack.co.uk/1password-plugin-for-quicksilver/#comments</comments> <pubDate>Mon, 22 Mar 2010 14:58:00 +0000</pubDate> <dc:creator>Patrick</dc:creator> <category><![CDATA[Apps]]></category> <category><![CDATA[Mac OS X]]></category> <category><![CDATA[1Password]]></category> <category><![CDATA[mac]]></category> <category><![CDATA[os x]]></category> <category><![CDATA[quicksilver]]></category> <category><![CDATA[script]]></category> <category><![CDATA[snow leopard]]></category><guid
isPermaLink="false">http://patjack.co.uk/?p=399</guid> <description><![CDATA[I&#8217;ve recently developed a 1Password plugin for Quicksilver that gives you the ability to open up Go &#38; Fill items in 1Password, as well as giving you an action to &#8216;Go &#38; Fill&#8230;&#8217; directly from Quicksilver. To download this plugin, go over to my Github repository. If you like the plugin then please do donate [...]]]></description> <content:encoded><![CDATA[<p>I&#8217;ve recently developed a 1Password plugin for Quicksilver that gives you the ability to open up Go &amp; Fill items in 1Password, as well as giving you an action to &#8216;Go &amp; Fill&#8230;&#8217; directly from Quicksilver.</p><p><a
href="http://patjack.co.uk/wp/wp-content/uploads/2010/03/goAndFill.jpg"><img
class="aligncenter size-medium wp-image-401" title="Go And Fill Action" src="http://patjack.co.uk/wp/wp-content/uploads/2010/03/goAndFill-300x185.jpg" alt="Go And Fill Action" width="300" height="185" /></a><br
/> <span
id="more-399"></span></p><p>To download this plugin, go over to my <a
href="http://github.com/pjrobertson/1Password-Plugin">Github repository</a>.</p><p>If you like the plugin then please do donate to the project &#8211; but note that this isn&#8217;t for the work I&#8217;ve done on Quicksilver itself, just the 1Password plugin.</p><p>If there&#8217;s something missing from the plugin, or you&#8217;ve found a bug then let me know &#8211; although do read the README first over at Github.</p><div
style="text-align: right; margin-top: -20px;"><form
action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input
type="hidden" name="cmd" value="_donations"> <input
type="hidden" name="business" value="7MJHCZAQF5KEU"> <input
type="hidden" name="lc" value="GB"> <input
type="hidden" name="item_name" value="Quicksilver 1Password Plugin"> <input
type="hidden" name="currency_code" value="USD"> <input
type="hidden" name="bn" value="PP-DonationsBF:btn_donate_LG.gif:NonHosted"> <input
type="image" src="https://www.paypal.com/en_GB/i/btn/btn_donate_LG.gif" style="border:none;background:none;" name="submit" alt="PayPal - The safer, easier way to pay online."> <img
alt="Donate to Quicksilver 1Password Plugin" style="border:none;" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1"><br
/></form></div> ]]></content:encoded> <wfw:commentRss>http://patjack.co.uk/1password-plugin-for-quicksilver/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Mac OS X Dock Resource Folder</title><link>http://patjack.co.uk/mac-os-x-dock-resource-folder/</link> <comments>http://patjack.co.uk/mac-os-x-dock-resource-folder/#comments</comments> <pubDate>Mon, 21 Dec 2009 22:50:08 +0000</pubDate> <dc:creator>Patrick</dc:creator> <category><![CDATA[Apps]]></category> <category><![CDATA[Mac OS X]]></category> <category><![CDATA[mac]]></category> <category><![CDATA[os x]]></category> <category><![CDATA[snow leopard]]></category><guid
isPermaLink="false">http://patjack.co.uk/?p=304</guid> <description><![CDATA[We all know that we should back up all the time, especially if we&#8217;re going to go tinkering with OS X&#8217;s insides. Seeing someone had accidentally messed up their dock resources folder (found in /System/Library/Core Services/Dock.app/Contents/Resources) I posted  in the macrumors forums with a download link for the folder in question. A year or so [...]]]></description> <content:encoded><![CDATA[<p>We all know that we should back up all the time, especially if we&#8217;re going to go tinkering with OS X&#8217;s insides.<br
/> <img
src="http://patjack.co.uk/wp/wp-content/uploads/2009/12/dock.png" alt="dock icon" title="dock" width="128" height="128" class="aligncenter size-full wp-image-331" />Seeing someone had accidentally messed up their dock resources folder (found in /System/Library/Core Services/Dock.app/Contents/Resources) I posted  in the <a
href="http://forums.macrumors.com" target="_blank">macrumors forums</a> with a download link for the folder in question.<br
/> A year or so later I removed the file from my hosting, only to be bombarded with emails and PMs from others who&#8217;d done exactly the same thing &#8211; who&#8217;d have thought it!</p><p>Below you can find a link to the dock resources folder for Snow Leopard.<br
/> <span
id="more-304"></span><br
/> I&#8217;ve been asked for Leopard and other OS X versions of the folder. If you have these then do email them to me so I can add them here!</p><p>Snow Leopard 10.6.1: <a
href="http://patjack.co.uk/files/SL_dock_resources.zip">10.6.1 Resources.zip</a><br
/> Snow Leopard 10.6.3: <a
href="http://patjack.co.uk/files/SL_3_dock_resources.zip">10.6.3 Resources.zip</a></p><p>And for the future?</p><h2><strong>Always make a backup!</strong></h2> ]]></content:encoded> <wfw:commentRss>http://patjack.co.uk/mac-os-x-dock-resource-folder/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Toggling Caffeine with Quicksilver to keep your Mac awake</title><link>http://patjack.co.uk/toggling-caffeine-and-keeping-your-mac-awake/</link> <comments>http://patjack.co.uk/toggling-caffeine-and-keeping-your-mac-awake/#comments</comments> <pubDate>Mon, 21 Dec 2009 22:46:41 +0000</pubDate> <dc:creator>Patrick</dc:creator> <category><![CDATA[Apps]]></category> <category><![CDATA[Mac OS X]]></category> <category><![CDATA[applescript]]></category> <category><![CDATA[mac]]></category> <category><![CDATA[os x]]></category> <category><![CDATA[quicksilver]]></category><guid
isPermaLink="false">http://patjack.co.uk/?p=317</guid> <description><![CDATA[Caffeine is a tiny little app that keeps your Mac awake when needed; be it when you&#8217;re watching a video (for some reason, Adobe Flash doesn&#8217;t keep your Mac awake), reading something off your screen, or anything else. It sits in the menu bar waiting to be summoned when needed, and dismissed just as easily. [...]]]></description> <content:encoded><![CDATA[<p><img
class="alignleft size-full wp-image-320" title="Caffeine" src="http://patjack.co.uk/wp/wp-content/uploads/2009/12/caffeine.png" alt="Caffeine" width="133" height="121" /></p><p><a
href="http://lightheadsw.com/caffeine/">Caffeine</a> is a tiny little app that keeps your Mac awake when needed; be it when you&#8217;re watching a video (for some reason, Adobe Flash doesn&#8217;t keep your Mac awake), reading something off your screen, or anything else.</p><p>It sits in the menu bar waiting to be summoned when needed, and dismissed just as easily.</p><p><img
class="alignright size-full wp-image-322" title="Quicksilver" src="http://patjack.co.uk/wp/wp-content/uploads/2009/12/com.blacktree.Quicksilver.png" alt="Quicksilver" width="48" height="48" /></p><p>Being the lazy type I am (thanks to the inevitable <a
href="http://qsapp.com">Quicksilver</a>), dragging the mouse over  to click the icon is just too much work. Below is an applescript which I run from Quicksilver with 3 key presses (I could set it as a trigger if I really wanted) and it switches it on or off, or even opens it if it&#8217;s not running.<br
/> <span
id="more-317"></span><br
/> <code>tell application "System Events"<br
/> if exists (process "Caffeine") then<br
/> tell application "Caffeine"<br
/> if active is false then<br
/> turn on<br
/> else<br
/> turn off<br
/> end if<br
/> end tell<br
/> else<br
/> tell application "Caffeine" to activate<br
/> end if<br
/> end tell</code></p><p>This will launch the app if it&#8217;s not running. If it is running it&#8217;ll check to see if your Mac is on Caffeine (i.e. if it&#8217;s turned on) and carry out the required action.</p><p>This is all possible thanks to Caffeine being scriptable. It&#8217;s always great when developers add applescript support as well as others to their apps &#8211; it makes the Mac experience that bit more cosy.</p><p>You can download the applescript <a
href="http://patjack.co.uk/files/caffeine.tgz">here</a><br
/> I&#8217;ve even added the right icon to the script <img
src='http://patjack.co.uk/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p>All that needs doing is setting up a trigger in Quicksilver, or placing it in<br
/> <code>~/Library/Application Support/Quicksilver/PlugIns/Extra Scripts.qsplugin/Contents/Resources/ExtraScripts</code>.</p><p>Done!</p> ]]></content:encoded> <wfw:commentRss>http://patjack.co.uk/toggling-caffeine-and-keeping-your-mac-awake/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Toggle Keyboard Viewer in Snow Leopard 10.6</title><link>http://patjack.co.uk/toggle-keyboard-viewer-in-snow-leopard-10-6/</link> <comments>http://patjack.co.uk/toggle-keyboard-viewer-in-snow-leopard-10-6/#comments</comments> <pubDate>Thu, 10 Dec 2009 10:50:47 +0000</pubDate> <dc:creator>Patrick</dc:creator> <category><![CDATA[Mac OS X]]></category> <category><![CDATA[applescript]]></category> <category><![CDATA[mac]]></category> <category><![CDATA[os x]]></category> <category><![CDATA[quicksilver]]></category> <category><![CDATA[script]]></category> <category><![CDATA[snow leopard]]></category><guid
isPermaLink="false">http://patjack.co.uk/?p=296</guid> <description><![CDATA[Ever since upgrading to Snow Leopard, one function I&#8217;ve missed is the ability to toggle the Keyboard Viewer on and off with an applescript. It looks like Apple modified the Keyboard Viewer utility for Mac OS X 10.6 (or a possible tablet, who knows&#8230;) and the old applescripts don&#8217;t work. I&#8217;ve finally come across a [...]]]></description> <content:encoded><![CDATA[<p>Ever since upgrading to Snow Leopard, one function I&#8217;ve missed is the ability to toggle the Keyboard Viewer on and off with an applescript.<br
/> It looks like Apple modified the Keyboard Viewer utility for Mac OS X 10.6 (or a possible tablet, who knows&#8230;) and the old applescripts don&#8217;t work.<br
/> <img
src="http://patjack.co.uk/wp/wp-content/uploads/2009/12/keyboard_veiwer-1024x437.jpg" alt="" title="keyboard_veiwer" width="512" height="219" class="aligncenter size-large wp-image-370" /><br
/> I&#8217;ve finally come across a method for getting this to work in Snow Leopard again, although it&#8217;s not as easy as it was in Leopard, and it seems to be as slow as hell to open.<br
/> <span
id="more-296"></span><br
/> Check out Nicholas Riley&#8217;s tiny app (only 6 lines of custom code!) that fixes this:<br
/> <a
href="http://github.com/nriley/keyboardViewer">http://github.com/nriley/keyboardViewer</a> (<a
href="http://cloud.github.com/downloads/nriley/keyboardViewer/keyboardViewer-1.0.zip">download</a>)</p><p>Once that&#8217;s downloaded and installed (you need to go into terminal and move it, or just navigate to /usr/local/bin/ and paste it there), you can then use the applescript listed on the App&#8217;s homepage to get it working in applescript.<br
/> <code><br
/> tell application "System Events"<br
/> if exists (process "Keyboard Viewer") then<br
/> click process "Keyboard Viewer"'s window 1's buttons whose subrole is "AXCloseButton"<br
/> else<br
/> do shell script "/usr/local/bin/keyboardViewer"<br
/> end if<br
/> end tell<br
/> </code></p><p>I have modified this slightly, as the &#8216;click process&#8217; part of the applescript uses a deprecated method (Apple&#8217;s own fault) and could become obsolete at any point. I just used a simple killall command in its place</p><p><code><br
/> tell application "System Events"<br
/> if exists (process "Keyboard Viewer") then<br
/> do shell script "killall KeyboardViewer"<br
/> else<br
/> do shell script "/usr/local/bin/keyboardViewer"<br
/> end if<br
/> end tell<br
/> </code></p><p>And now, my trusty Cmd + Optn + Ctrl + K Quicksilver trigger is back!</p> ]]></content:encoded> <wfw:commentRss>http://patjack.co.uk/toggle-keyboard-viewer-in-snow-leopard-10-6/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>iTunes &#8211; &#8216;Random&#8217; Shuffle &amp; Recently Unplayed</title><link>http://patjack.co.uk/itunes-random-shuffle-recently-unplayed/</link> <comments>http://patjack.co.uk/itunes-random-shuffle-recently-unplayed/#comments</comments> <pubDate>Thu, 26 Nov 2009 22:23:20 +0000</pubDate> <dc:creator>Patrick</dc:creator> <category><![CDATA[Apps]]></category> <category><![CDATA[Mac OS X]]></category> <category><![CDATA[itunes]]></category> <category><![CDATA[mac]]></category> <category><![CDATA[os x]]></category> <category><![CDATA[shuffle]]></category> <category><![CDATA[snow leopard]]></category><guid
isPermaLink="false">http://patjack.co.uk/?p=273</guid> <description><![CDATA[Listening to music whenever at my Mac, I&#8217;ve come to realise iTunes shuffle doesn&#8217;t actually shuffle as you might expect. That is, it&#8217;s not completely random. Tracks are selected based on skip count and play count. If you&#8217;ve skipped a track a few times, it&#8217;s less likely to be played in shuffle mode than those [...]]]></description> <content:encoded><![CDATA[<p>Listening to music whenever at my Mac, I&#8217;ve come to realise iTunes shuffle doesn&#8217;t actually shuffle as you might expect.<br
/> That is, it&#8217;s not completely random. Tracks are selected based on skip count and play count.<br
/> If you&#8217;ve skipped a track a few times, it&#8217;s less likely to be played in shuffle mode than those with a higher play count.</p><p>Now, in need of some kind of method to make sure ALL of my tracks get played (I had some un-played from over a year ago because of iTunes&#8217; lack of shuffling) I set up my own custom smart playlist to sit alongside the &#8216;Recently Played&#8217; playlist.</p><p><span
id="more-273"></span></p><h3>Recently Unplayed</h3><p>This is a fairly simple filter that does what it says on the tin.</p><p>I set up the filter as below:</p><div
id="attachment_281" class="wp-caption aligncenter" style="width: 510px"><img
src="http://patjack.co.uk/wp/wp-content/uploads/2009/11/filter.jpg" alt="My Recently Uplayed Playlist" title="Smart Playlist Filters" width="500" height="240" class="size-full wp-image-281" /><p
class="wp-caption-text">My Recently Uplayed Playlist</p></div><p> The last 3 filters just get rid of the junk and make sure it&#8217;s only music. You must make sure &#8216;Live updating&#8217; is ticked.</p><p>Now, I can listen to my music on a 40 day or so (for me) rota, with about 50 songs in my playlist at any one time; and this playlist is still on shuffle so it&#8217;s never the same <img
src='http://patjack.co.uk/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <br/><br
/> If you&#8217;re thinking &#8216;but I like the way iTunes works. I don&#8217;t want to listen to the tracks I&#8217;ve skipped!&#8217;, then my reasoning would be DELETE THEM!</p><p>Hope this helps someone&#8230; it took me a while and a bit of searching to find out that iTunes (and apparently iPods as well) don&#8217;t really have a random shuffle.</p> ]]></content:encoded> <wfw:commentRss>http://patjack.co.uk/itunes-random-shuffle-recently-unplayed/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Wild Camping in France</title><link>http://patjack.co.uk/wild-camping-france/</link> <comments>http://patjack.co.uk/wild-camping-france/#comments</comments> <pubDate>Wed, 07 Oct 2009 18:36:04 +0000</pubDate> <dc:creator>Patrick</dc:creator> <category><![CDATA[Holidays]]></category> <category><![CDATA[camping]]></category> <category><![CDATA[france]]></category> <category><![CDATA[travel]]></category> <category><![CDATA[wild]]></category><guid
isPermaLink="false">http://tyddynadda.co.uk/design/?p=232</guid> <description><![CDATA[Wild camping is one of those things that many people want to do, but are scared of trying as they&#8217;re not sure of what to expect. It doesn&#8217;t help that the internet is bare (for once!) of information on the matter. There don&#8217;t seem to be any good guides or tips anywhere – probably because [...]]]></description> <content:encoded><![CDATA[<p>Wild camping is one of those things that many people want to do, but are scared of trying as they&#8217;re not sure of what to expect.<br
/> It doesn&#8217;t help that the internet is bare (for once!) of information on the matter. There don&#8217;t seem to be any good guides or tips anywhere – probably because it&#8217;s not &#8216;technically&#8217; legal.</p><p> Having wild-camped with my sister and friend for the first time in France for 2 weeks this summer (&#8217;09), I&#8217;m fairly clued up as to the &#8220;dos&#8221; and &#8220;don&#8217;ts&#8221;, and also a lot less scared as to what might happen!</p><p><span
id="more-232"></span></p><p>Below is a recap of our experiences. You&#8217;ll find info on the good and bad places to wild-camp in France. I&#8217;m sure this info is valid for any European country: Spain, Germany, Italy &#8211; you name it!</p><h3> A recap of our experiences;<br
/></h3><h4 style="padding-left:30px;">Camping Spots</h4><p><span
style="color:#006600;font-style:bold;padding-left:50px;">The Good</span></p><ul
class="uls"><li>Picnic (or Pique-nique in French) spots</li><p>These are generally quite easy to find, and often offer great camping spots with benches for cooking / eating and sometimes toilets! Every time we followed a picnic sign, we ended up in a secluded spot, quiet after 20h00.</p><li>Lakes &#038; Other geographical features</li><p>Tying in with the idea of picnic spots, these areas generally have a fair number of picnic spots close by. If not, they can still be good options. Lakes and other large geographical features tend to be away from built up areas and offer spectacular places to camp for the night.<br
/><div
id="attachment_388" class="wp-caption aligncenter" style="width: 199px"><a
href="http://patjack.co.uk/wp/wp-content/uploads/2009/10/SNC13444.jpg"><img
src="http://patjack.co.uk/wp/wp-content/uploads/2009/10/SNC13444-189x300.jpg" alt="Don&#039;t worry about the signs" title="Don&#039;t worry about the signs" width="189" height="300" class="size-medium wp-image-388" /></a><p
class="wp-caption-text">Don't worry about the signs</p></div></p><li>Forests &#038; Forest Track</li><p>Another good one here, as there&#8217;s shelter and they&#8217;re often pretty close to life so you&#8217;re not stuck out in the middle of nowhere. You do need to look out for signs of activity though! A busy forest being cut for logging is not good (see below!)</p><li>Farmers!</li><p>We only ever did this once and it turned out well. If you&#8217;re ever stuck, just go knock on someone&#8217;s door (hopefully you can speak the language!) and ask if you can camp or if they know of anywhere to go. We did this one night and were directed to a nunnery &#8211; the best camping spot we found!</ul><div
id="attachment_387" class="wp-caption aligncenter" style="width: 234px"><a
href="http://patjack.co.uk/wp/wp-content/uploads/2009/10/SNC13920.jpg"><img
src="http://patjack.co.uk/wp/wp-content/uploads/2009/10/SNC13920-224x300.jpg" alt="Camping at the nunnery" title="Camping at the nunnery" width="224" height="300" class="size-medium wp-image-387" /></a><p
class="wp-caption-text">Camping at the nunnery</p></div><p><span
style="color:#ff0000;font-style:bold;padding-left:50px;">The Bad</span></p><ul
class="uls"><li>Tracks or People&#8217;s driveways</li><p>Yes, as stupid as it might sound, this did happen. You&#8217;d probably think &#8220;who in their right mind would camp next to someone&#8217;s house, on their land?&#8221; and the answer would be <strong>YOU</strong>; if light was fading, you were hungry and just wanted somewhere to sleep.</p><li>Anywhere showing recent signs of activity</li><p>We came across these spots a few times. Vineyards, forests with logging going on are all not good! This is really only relevant for places you *shouldn&#8217;t* really be. Picnic spots show signs of activity, but are generally accepted for camping.</ul><p> This brings up the important point that <strong>you shouldn&#8217;t leave it too late to start looking for camping spots</strong>. We did several times, and it mostly meant an uncomfortable night&#8217;s sleep (although it did pay off once, leading us to the nunnery!)</p><h4 style="padding-left:30px;">Transport</h4><p>Now we did all of this with a trusty Peugeot 306, and it would have been hell without it.<br
/> I guess you could do it on foot, but it would make life a lot more difficult &#8211; if you found yourself in a dodgy area with dusk approaching you&#8217;d be stuffed.</p><h4 style="padding-left:30px;">Accommodation &#038; Cooking</h4><p>We invested in <strong>Quechua</strong> (from Decathlon) pop-up tents which, after 2 weeks of setting up camp at dusk and leaving at dawn were a godsend (literally take 10 seconds to put and AND down!). I&#8217;d recommend these tents to anybody who&#8217;s camping anywhere; they&#8217;re cheap and extremely cheerful.<br
/> <br
/> We also bought a portable gas stove &#8211; not one of the cheap screw-on tops for gas canisters, but the more sturdy black-box <a
href="http://www.amazon.co.uk/Portable-Camping-Cooker-Cartridges-Refills/dp/B000RHV3MU/ref=sr_1_2?ie=UTF8&#038;tag=firefoxbrowser-21&#038;qid=1306668942&#038;sr=8-2">gas stoves</a> for ~£12.99.<br
/> <br/>One of the Campingaz CP250 gas cartridges (long, tall and thin) would last about 3-4 hours of cooking, just over a week.<br
/> Incase you&#8217;re worried. These CP250 gas cartridges, as well as other CP206bp cartridges can be bought in France, and I guess most of Europe.</p><h4 style="padding-left:30px;">Facilities</h4><p>Generally, we didn&#8217;t have many problems with being smelly or dirty &#8211; we&#8217;d stay in a campsite every few days to clean up, or go to a beach and wash. In France there&#8217;s almost always a shower at the beach.</p><h3>Outcome</h3><p>I&#8217;d recommend wild-camping to anyone. You won&#8217;t get pestered by the law enforcers as long as you&#8217;re tidy and quiet.<br
/> It&#8217;s a great experience, and best of all &#8211; it&#8217;s <strong>free</strong>!</p> ]]></content:encoded> <wfw:commentRss>http://patjack.co.uk/wild-camping-france/feed/</wfw:commentRss> <slash:comments>18</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)

Served from: patjack.co.uk @ 2012-02-06 03:58:58 -->
