<?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>[LINICKX].com &#187; mac</title>
	<atom:link href="http://www.linickx.com/tag/mac/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linickx.com</link>
	<description>Moments of Genius followed by Trash.</description>
	<lastBuildDate>Thu, 17 May 2012 10:23:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>PHP to solve problems</title>
		<link>http://www.linickx.com/3484/php-to-solve-problems</link>
		<comments>http://www.linickx.com/3484/php-to-solve-problems#comments</comments>
		<pubDate>Sat, 17 Dec 2011 11:05:43 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[routing]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3484</guid>
		<description><![CDATA[PHP make you think of web app&#8217;s right? &#8230; well, did you know you can run it from the CLI to? Recently I&#8217;ve been doing a lot of spreadsheet and sub-netting type stuff, whilst doing this mundane work I&#8217;ve realised &#8230; <a href="http://www.linickx.com/3484/php-to-solve-problems">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>PHP make you think of web app&#8217;s right? &#8230; well, did you know you can run it from the CLI to?</p>
<p>Recently I&#8217;ve been doing a lot of spreadsheet and sub-netting type stuff, whilst doing this mundane work I&#8217;ve realised that I can get scripts to work for me. I&#8217;ve started to post a few <a href="https://gist.github.com/1309388">PHP network functions</a> to github which I&#8217;ve been using.</p>
<p>Here&#8217;s an example: I have a nokia firewall, the routing table in voyager is shown in the following format -</p>
<pre class="brush: plain; title: ; notranslate">
Network / CIDR Mask , Gateway
10.0.0.0 / 8 , 10.0.0.1
</pre>
<p>I need that same routing in a Cisco ASA format -</p>
<pre class="brush: plain; title: ; notranslate">
Network , Mask , Gateway
10.0.0.0, 255.0.0.0, 10.0.0.1
</pre>
<p>Now this is not a problem for a few routes but the firewall I&#8217;m looking at now has 177 static routes, which I don&#8217;t want to convert manually.</p>
<p><b>Roll in PHP!</b><br />
Save the original routing table as a .csv file. ColA = ip/mask , ColB = gateway. </p>
<p>Save this a route_conv.php</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php

	/**

		Change the below to your CSV File.

	**/

	$firewall_csv = &quot;./routes_cdr.csv&quot;; 

	/**

		Function to convert CIDRs such as &quot;23&quot; to decimall dotted like &quot;255.255.254.0&quot;
		I've got more of these: https://gist.github.com/1309388

	**/

	function cidr2mask($netmask) {

		$netmask_result=&quot;&quot;;
		for($i=1; $i &lt;= $netmask; $i++) {
		  $netmask_result .= &quot;1&quot;;
		}

		for($i=$netmask+1; $i &lt;= 32; $i++) {
		    $netmask_result .= &quot;0&quot;;
		}

		$netmask_ip_binary_array = str_split( $netmask_result, 8 );

		$netmask_ip_decimal_array = array();
		foreach( $netmask_ip_binary_array as $k =&gt; $v ){
		    $netmask_ip_decimal_array[$k] = bindec( $v ); // &quot;100&quot; =&gt; 4
		}

		$subnet = join( &quot;.&quot;, $netmask_ip_decimal_array );

		return $subnet;

	}

	ini_set('auto_detect_line_endings', true); // detect CR

	if (file_exists($firewall_csv)) {

		$file = fopen($firewall_csv, 'r');

		$counter = 0; // array counter

		while (($data = fgetcsv($file)) !== FALSE) {

			list($ip, $netmask) = split( &quot;/&quot;, $data[0] ); // SPLIT Col A into IP &amp; Mask

			$netmask = cidr2mask($netmask); // Covert Mask

			$gateway = $data[1]; // Col B

			/**
				This echo is the CSV style output, but you could change this to echo &quot;route add $ip $mask $ gateway \n&quot; for unix style output.
			**/

			echo $ip . &quot;,&quot; . $netmask . &quot;,&quot; . $gateway . &quot;\n&quot;;

		}

		fclose($file);

	} else {

		echo &quot;404: $firewall_csv \n&quot;; // FILE NOT FOUND.

	}
?&gt;
</pre>
<p>from your CLI run &#8220;<code>php route_conv.php</code>&#8221; and enjoy the output!</p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3484/php-to-solve-problems/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>port install ipcalc</title>
		<link>http://www.linickx.com/3476/port-install-ipcalc</link>
		<comments>http://www.linickx.com/3476/port-install-ipcalc#comments</comments>
		<pubDate>Wed, 14 Dec 2011 13:39:01 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[PICS]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[ipcalc]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3476</guid>
		<description><![CDATA[Copyright &#169; 2012 [LINICKX].com. This Feed is for personal non-commercial use only. Please check my Site Terms and Conditions for full details on copyrights. If you have any concerns with the content of this feed you may contact me here.WP &#8230; <a href="http://www.linickx.com/3476/port-install-ipcalc">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.linickx.com/files/2011/12/ipcalc.png" rel="lightbox[3476]"><img src="http://www.linickx.com/files/2011/12/ipcalc.png" alt="" title="ipcalc" width="625" height="369" class="aligncenter size-full wp-image-3477" /></a></p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3476/port-install-ipcalc/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unread Gmail on your OSX Desktop</title>
		<link>http://www.linickx.com/3455/unread-gmail-on-your-osx-desktop</link>
		<comments>http://www.linickx.com/3455/unread-gmail-on-your-osx-desktop#comments</comments>
		<pubDate>Sat, 12 Nov 2011 19:33:14 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[geektool]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3455</guid>
		<description><![CDATA[1) Install GeekTool 2) Run this script&#8230;. 3) smile Copyright &#169; 2012 [LINICKX].com. This Feed is for personal non-commercial use only. Please check my Site Terms and Conditions for full details on copyrights. If you have any concerns with the &#8230; <a href="http://www.linickx.com/3455/unread-gmail-on-your-osx-desktop">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>1) Install <a href="http://projects.tynsoe.org/en/geektool/">GeekTool</a><br />
2) Run this script&#8230;.</p>
<pre class="brush: bash; title: ; notranslate">

USERNAME=&quot;me@gmail.com&quot;
PASSWORD=&quot;password&quot;

EMAIL=`curl -u $USERNAME:$PASSWORD --silent &quot;https://mail.google.com/mail/feed/atom&quot; | tr -d '\n' | awk -F '&lt;entry&gt;' '{for (i=2; i&lt;=NF; i++) {print $i}}' | sed -n &quot;s/&lt;title&gt;\(.*\)&lt;\/title.*name&gt;\(.*\)&lt;\/name&gt;.*/\2 - \1/p&quot;`

if [ -n &quot;$EMAIL&quot; ]
	then

	echo &quot;INBOX:&quot;
	echo &quot;-----------------------------------------&quot;

	IFS=$'\n'
	for i in $EMAIL
	do
		len=${#i}
		if [ &quot;$len&quot; -gt 40 ]
			then
			echo ${i:0:37} &quot;...&quot;
		else
			echo $i
		fi
	done
fi
</pre>
<p>3) smile</p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3455/unread-gmail-on-your-osx-desktop/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recover files or Undelete on mac/linux/windows</title>
		<link>http://www.linickx.com/3438/recover-files-or-undelete-on-maclinuxwindows</link>
		<comments>http://www.linickx.com/3438/recover-files-or-undelete-on-maclinuxwindows#comments</comments>
		<pubDate>Wed, 28 Sep 2011 12:22:19 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[del.icio.us]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[photorec]]></category>
		<category><![CDATA[undelete]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3438</guid>
		<description><![CDATA[Posted here so I can find it again, and yep worked on my SDcard! This Recovery example guides you through PhotoRec step by step to recover deleted files or lost data from a reformatted partition or corrupted file system. http://www.cgsecurity.org/wiki/PhotoRec_Step_By_Step &#8230; <a href="http://www.linickx.com/3438/recover-files-or-undelete-on-maclinuxwindows">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Posted here so I can find it again, and yep worked on my SDcard!</p>
<blockquote><p>This Recovery example guides you through PhotoRec step by step to recover deleted files or lost data from a reformatted partition or corrupted file system.</p></blockquote>
<p><a href="http://www.cgsecurity.org/wiki/PhotoRec_Step_By_Step">http://www.cgsecurity.org/wiki/PhotoRec_Step_By_Step</a></p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3438/recover-files-or-undelete-on-maclinuxwindows/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>F5 BigIP LTM VE works in Virtual Box</title>
		<link>http://www.linickx.com/3340/f5-bigip-ltm-ve-works-in-virtual-box</link>
		<comments>http://www.linickx.com/3340/f5-bigip-ltm-ve-works-in-virtual-box#comments</comments>
		<pubDate>Tue, 26 Jul 2011 08:09:59 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[bigip]]></category>
		<category><![CDATA[f5]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ltm]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[ve]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3340</guid>
		<description><![CDATA[Something I discovered ages ago (so long ago that my trial license expired) but forgot to post is that you can get an LTM VE to work in Virtual Box. To get started download the ESX image from the F5 &#8230; <a href="http://www.linickx.com/3340/f5-bigip-ltm-ve-works-in-virtual-box">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[
<a href='http://www.linickx.com/3340/f5-bigip-ltm-ve-works-in-virtual-box/bigip-10-1-0-3341-1084-virtualbox' title='BIGIP-10.1.0.3341.1084 VirtualBox'><img width="150" height="150" src="http://www.linickx.com/files/2011/07/BIGIP-10.1.0.3341.1084-VirtualBox-150x150.png" class="attachment-thumbnail" alt="BIGIP-10.1.0.3341.1084 VirtualBox" title="BIGIP-10.1.0.3341.1084 VirtualBox" /></a>
<a href='http://www.linickx.com/3340/f5-bigip-ltm-ve-works-in-virtual-box/f5-ltm-ve-virtualbox-settings' title='F5 LTM VE Virtualbox Settings'><img width="150" height="150" src="http://www.linickx.com/files/2011/07/F5-LTM-VE-Virtualbox-Settings-150x150.png" class="attachment-thumbnail" alt="F5 LTM VE Virtualbox Settings" title="F5 LTM VE Virtualbox Settings" /></a>

<p>Something I discovered <em>ages ago</em> (<em>so long ago that my trial license expired</em>) but forgot to post is that you can get an <a href="http://www.f5.com/products/big-ip/local-traffic-manager-virtual-edition.html" title="F5 LTM VE Product Page">LTM VE</a> to work in Virtual Box.</p>
<p>To get started download the ESX image from the <a href="https://www.f5.com/trial/big-ip-ltm-virtual-edition.php">F5 VE Trial Page</a>, when you get the download import the OVA into virtualbox.</p>
<p>The only thing I needed to tweak after the import was the interface settings, you need two intels and a PCNet, the PCNet is the management interface. Set the PCNet to host only networking, give your laptop/pc an ip address on the host only network a 192.168.1 address and you&#8217;re good to go!</p>
<p>You may experience HIGH CPU issues after boot, but since these boxes are based on linux, you can use <a href="http://steve-brown.id.au/linux/centos-5-in-virtualbox-high-cpu-usage.html">the divider=10 centos trick</a>.</p>
<p>Enjoy your virtual load balancing!</p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3340/f5-bigip-ltm-ve-works-in-virtual-box/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lowing VirtualBox priorities</title>
		<link>http://www.linickx.com/3212/lowing-virtualbox-priorities</link>
		<comments>http://www.linickx.com/3212/lowing-virtualbox-priorities#comments</comments>
		<pubDate>Mon, 14 Feb 2011 17:30:01 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3212</guid>
		<description><![CDATA[One of the things I&#8217;d really like is process priorities for virtual box. In the forum I posted a couple of shell commands that I regularly type&#8230; which gets a bit tedious, following a recent article on lifehacker reviewing mac &#8230; <a href="http://www.linickx.com/3212/lowing-virtualbox-priorities">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One of the things <a href="http://forums.virtualbox.org/viewtopic.php?f=9&#038;t=34341">I&#8217;d really like</a> is process priorities for virtual box. In the forum I posted a couple of shell commands that I regularly type&#8230; which gets a bit tedious, following a recent article on lifehacker <a href="http://lifehacker.com/#!5749631/the-mac-text-expansion-face-off">reviewing mac text expanding</a> I&#8217;ve been prompted to automate a few things&#8230; below is a little shell script to lower the priority (<em>renice</em>) of all running virtual machines.</p>
<p>The advantage of doing this is that your host machine stays snappy, responsive and won&#8217;t get too over-loaded by jobs on your VMs!</p>
<pre class="brush: bash; title: ; notranslate">
#!/bin/bash
ps -xo pid,command | grep -v grep | grep startvm | while read line ;
do
        procID=`echo $line | awk '{print $1}'`
        sudo renice +10 -p $procID
done
</pre>
<p>The above code works on a mac; although I haven&#8217;t tested it, I recon to get it running on Linux you need to update the PS command, by swapping the x for an e&#8230; like this&#8230;. </p>
<pre class="brush: bash; title: ; notranslate">
#!/bin/bash
ps -eo pid,command | grep -v grep | grep startvm | while read line ;
do
        procID=`echo $line | awk '{print $1}'`
        sudo renice +10 -p $procID
done
</pre>
<p>Have fun, suggestions and improvements welcome.</p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3212/lowing-virtualbox-priorities/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xcode for WordPress Plug-in Developers</title>
		<link>http://www.linickx.com/3007/xcode-for-wordpress-plug-in-developers</link>
		<comments>http://www.linickx.com/3007/xcode-for-wordpress-plug-in-developers#comments</comments>
		<pubDate>Wed, 26 May 2010 19:42:04 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[SVN Commits]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3007</guid>
		<description><![CDATA[This post is an extension to this excellent article except with a subtle difference, I&#8217;m not interested in hacking the WP core, I&#8217;m writing a plug-in I&#8217;m going to assume that you&#8217;ve requested access to WordPress.org&#8217;s SVN repository, and you&#8217;ve &#8230; <a href="http://www.linickx.com/3007/xcode-for-wordpress-plug-in-developers">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This post is an extension to <a href="http://www.red-sweater.com/blog/141/livin-in-a-wordpress-hackers-paradise">this excellent article</a> except with a subtle difference, I&#8217;m not interested in hacking the WP core, I&#8217;m writing a plug-in <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;m going to assume that you&#8217;ve <a href="http://wordpress.org/extend/plugins/add/">requested access</a> to WordPress.org&#8217;s SVN repository, and you&#8217;ve found the admin panel and want to get your Xcode goodness hooked up to the WP SVN.</p>
<p>To get started create a new Empty Xcode project.</p>
<table>
<tr>
<td>
<a href="http://www.linickx.com/files/2010/05/WP-Xcode-New-Empty-Project.png" rel="lightbox[3007]"><img src="http://www.linickx.com/files/2010/05/WP-Xcode-New-Empty-Project-150x150.png" alt="Screenshot of Xcode project chooser" title="WP Xcode New Empty Project" width="150" height="150" class="aligncenter size-thumbnail wp-image-3010" /></a>
</td>
<td>
<a href="http://www.linickx.com/files/2010/05/WP-Xcode-Empty-Linickx-Lifestream.png" rel="lightbox[3007]"><img src="http://www.linickx.com/files/2010/05/WP-Xcode-Empty-Linickx-Lifestream-150x150.png" alt="Empty XCode waiting for LINICKX LifeStream" title="WP Xcode Empty Linickx Lifestream" width="150" height="150" class="aligncenter size-thumbnail wp-image-3011" /></a>
</td>
</tr>
<tr>
<td><strong><em>Xcode project choose</em>r</strong>
</td>
<td>
<strong><em>Empty Project</em></strong>
</td>
</tr>
</table>
<p>From the menu bar select <code>SCM</code> then <code>Configure Repositories</code>, the window select the <code>+</code> to add a new repo, the username &#038; password pair are your wordpress.org credentials, you can find the URL to your SVN repo on the wordpress.org site. </p>
<table>
<tr>
<td>
<a href="http://www.linickx.com/files/2010/05/WordPress-dot-org-Admin-Interface.png" rel="lightbox[3007]"><img src="http://www.linickx.com/files/2010/05/WordPress-dot-org-Admin-Interface-150x150.png" alt="WordPress dot org Admin Interface" title="WordPress dot org Admin Interface" width="150" height="150" class="aligncenter size-thumbnail wp-image-3014" /></a>
</td>
</tr>
<tr>
<td> <em><strong>The WP.org admin interface</strong></em></td>
</tr>
</table>
<p>Next from the menu bar select <code>SCM</code> then <code>Repositories</code>, highlight the repo you&#8217;ve just created and choose checkout; you&#8217;re going to be asked for a folder to &#8220;save&#8221; the contents of the repo to, I chose inside my Xcode project folder.</p>
<table>
<tr>
<td>
<a href="http://www.linickx.com/files/2010/05/WP-Xcode-Config-Repo.png" rel="lightbox[3007]"><img src="http://www.linickx.com/files/2010/05/WP-Xcode-Config-Repo-150x150.png" alt="" title="WP Xcode Config Repo" width="150" height="150" class="aligncenter size-thumbnail wp-image-3015" /></a>
</td>
<td>
<a href="http://www.linickx.com/files/2010/05/WP-Xcode-Checkout.png" rel="lightbox[3007]"><img src="http://www.linickx.com/files/2010/05/WP-Xcode-Checkout-150x150.png" alt="Checking out with Xcode" title="WP Xcode Checkout" width="150" height="150" class="aligncenter size-thumbnail wp-image-3017" /></a>
</td>
</tr>
<tr>
<td>
<strong><em>Repo&#8217; Confi</em>g</strong>
</td>
<td>
<strong><em>Code Checkout</em></strong>
</td>
</tr>
</table>
<p>You now need to add those &#8220;checked out&#8221; files to you project, in the tree on the left, right/control click the blue project icon at the top and select add existing files, accept the defaults and the repo should be imported.</p>
<table>
<tr>
<td>
<a href="http://www.linickx.com/files/2010/05/WP-Xcode-Imported-Project.png" rel="lightbox[3007]"><img src="http://www.linickx.com/files/2010/05/WP-Xcode-Imported-Project-150x150.png" alt="Code imported" title="WP Xcode Imported Project" width="150" height="150" class="aligncenter size-thumbnail wp-image-3019" /></a>
</td>
</tr>
<tr>
<td>
<em><strong>Imported Code </strong></em>
</td>
</tr>
</table>
<p>These files now in the project need to be associated with the repo, this is done by highlighting the blue project icon and clicking the &#8220;Info&#8221; button, then click &#8220;Configure Roots &#038; SCM&#8221;; click the + button and choose your repo folder (again)&#8230; the dropdown on the right should automatically select the correct SCM.</p>
<table>
<tr>
<td>
<a href="http://www.linickx.com/files/2010/05/WP-Xcode-Project-LINICKX-LifeStream-Info.png" rel="lightbox[3007]"><img src="http://www.linickx.com/files/2010/05/WP-Xcode-Project-LINICKX-LifeStream-Info-150x150.png" alt="Project LINICKX LifeStream Info" title="WP Xcode Project LINICKX LifeStream Info" width="150" height="150" class="aligncenter size-thumbnail wp-image-3023" /></a>
</td>
<td>
<a href="http://www.linickx.com/files/2010/05/WP-Xcode-Edit-Project-Root.png" rel="lightbox[3007]"><img src="http://www.linickx.com/files/2010/05/WP-Xcode-Edit-Project-Root-150x150.png" alt="WP Xcode Edit Project Root" title="WP Xcode Edit Project Root" width="150" height="150" class="aligncenter size-thumbnail wp-image-3024" /></a>
</td>
</tr>
<tr>
<td><strong><em>Project Properties</em></strong></td>
<td><strong><em>Project Roots</em></strong></td>
</tr>
</table>
<p>If you now change a file / add / delete / etc it will appear under the SCM tree, you can right/control click and commit to the repo&#8230;. job done <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<table>
<tr>
<td>
<a href="http://www.linickx.com/files/2010/05/WP-Xcode-readme-txt-changed.png" rel="lightbox[3007]"><img src="http://www.linickx.com/files/2010/05/WP-Xcode-readme-txt-changed-150x150.png" alt="WP Xcode readme txt changed" title="WP Xcode readme txt changed" width="150" height="150" class="aligncenter size-thumbnail wp-image-3026" /></a>
</td>
</tr>
<tr>
<td><strong><em>Yay it works</em>!</strong></td>
</tr>
</table>
<p>Very quickly you&#8217;re going to find out that you want to test your changes prior to commiting them, to do this you may want to copy your files upto a webserver&#8230;. I get Xcode to do that for me, using <a href="http://code.google.com/p/macfuse/">macfuse</a> to mount my webroot via ssh but for this example I&#8217;ll create a directory on the desktop &#8230; you also need to create any subdirectories you may need..  I have to create &#8220;admin&#8221;.</p>
<p>To copy the files we&#8217;re use an Xcode target, from the menu bar choose <code>Project</code> then <code>New Target</code> then <code>Copy Files Target</code>, I called my new target <em>CopyFile</em>. Using the info button change the absolute path of the copy &#8211; e.g. /Users/Nick/Desktop/LL &#8230; now here I ran into a problem (<em>suggestions welcome</em>)&#8230; next I created extra copy build phases for each subdirectory. Control/right click your Target ( i.e CopyFiles) then choose Add, New Build Phase, New Copy Files Build Phase&#8230; I then set the absolute path of this &#8220;sub target&#8221; to /Users/nick/Desktop/LL/admin/ to represent my admin subdirectory.</p>
<p>Finally DRAG down the files into their correct target, all being well and a fair wind clicking &#8220;BUILD&#8221; will cause your files to be copied into your directory. You can now make changes, click build to test, and then commit them to subversion when you&#8217;re happy <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<table>
<tr>
<td>
<a href="http://www.linickx.com/files/2010/05/WP-Xcode-Finished-11-37-41.png" rel="lightbox[3007]"><img src="http://www.linickx.com/files/2010/05/WP-Xcode-Finished-11-37-41-150x150.png" alt="WP Xcode - Finished" title="WP Xcode - Finished" width="150" height="150" class="aligncenter size-thumbnail wp-image-3027" /></a></td>
</tr>
<tr>
<td><strong><em>Finished!</em></strong></td>
</tr>
</table>
<p>The red sweater post that inspires this now talks about creating a RUN shortcut to automatically open a web browser for testing, however mine didn&#8217;t work&#8230; I got this error &#8220;<em>The program being debugged is not being run</em>&#8220;&#8230; suggestions to fix welcome!</p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3007/xcode-for-wordpress-plug-in-developers/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is Mac the Anti-Linux or the Answer?</title>
		<link>http://www.linickx.com/406/is-mac-the-anti-linux-or-the-answer</link>
		<comments>http://www.linickx.com/406/is-mac-the-anti-linux-or-the-answer#comments</comments>
		<pubDate>Tue, 29 Apr 2008 21:40:28 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[questions]]></category>

		<guid isPermaLink="false">http://www.linickx.com/archives/406/is-mac-the-anti-linux-or-the-answer</guid>
		<description><![CDATA[So, I&#8217;ve been toying with the idea of buying a mac. Using WindowsXP is a no go for me, we&#8217;re just not friends; work haven&#8217;t yet rolled out Vista. I love linux, have been using it for years, and have &#8230; <a href="http://www.linickx.com/406/is-mac-the-anti-linux-or-the-answer">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So, I&#8217;ve been toying with the idea of buying a mac. Using WindowsXP is a no go for me, we&#8217;re just not friends; work haven&#8217;t yet rolled out Vista. I love linux, have been using it for years, and have upset many an I.T department by partitioning their loving-crafted standard Windows Build with my favourite flavour of linux but I&#8217;m getting the same old Gripes&#8230;.</p>
<p><strong>Hardware-Compatibility:</strong> Now don&#8217;t get me wrong, fedora has installed and pretty-much worked out of the box for years, but it&#8217;s the little niggles that get you, my hp nc6320 (<em>company issued</em>) has an intel wireless card, and quite frankly the fedora support is unreliable; if it&#8217;s not issues where by I can&#8217;t connect to hidden ssids, I can&#8217;t run leap, and even my broadcasted home wpa network can be a bit flakey (<em>my n800 &#038; ps3 use it fine so it&#8217;s definitely a laptop issue</em>)&#8230;. top  this off with the odd issue with graphics cards, very little support for mobile broadband, fingerpint authentication and it&#8217;s enough to drive anyone mad!</p>
<p><strong>Work-Compatibility:</strong> Like most UK companies EVERYTHING has a windows focus, even down to the linux web-managed-appliances which have to be ie7 compatible. Open-office is great, but I can&#8217;t run the macro&#8217;s written by our marketing department (<em>which format things</em>) and even if I do manually make it look right the conversion to MS-Word is a bit &#8220;iffy&#8221;. Evolutions exchange-connector works most of the time, but archiving my mailbox from outlook screws it, changing my password (<em>due to expiry</em>) cause mail-notification to freak-out, and the  built-in html formatting engine doesn&#8217;t set a font so if I reply to an HTML e-mail, all my text is in the nasty times roman.. and just another couple of points since I&#8217;m in full rant, share-point support in firefox! and what is everyone&#8217;s obsession is MSN and office communicator, what&#8217;s wrong with skype or  google talk both of which have platform independent solutions. (<em>Yes pidgin supports MSN, but it&#8217;s not feature complete</em>)</p>
<p><strong>So is a mac the answer? </strong>Those I&#8217;ve known an met whom own macs (and in the UK, unless you&#8217;re in media they&#8217;re few and far between) have all said &#8220;everything just works&#8221;&#8230; oh how I&#8217;ve longed for that&#8230; and the UI is nice, so all the compiz prettyness that I&#8217;ve gotten used to is kinda there. I&#8217;ve done some research, there&#8217;s an offical office for mac, which support exchange, there&#8217;s a communicator for LCS which includes msn support, there&#8217;s certianly more off the shelf software that supports mac than linux!</p>
<p><strong>But is it out of the frying pan into the fire?</strong> Let&#8217;s look at why XP doesn&#8217;t work for me, 1stly the interface, it makes me feel unconfortable, I&#8217;ve tried themeing it, but that just covers up the bad colour scheme, themes ocasionally  slow your machine down, some apps don&#8217;t accept the theme engine, and after-all you&#8217;re just painting a bad egg so even if it is easier on the eye the problems sill exist! All this aside, Vista is supposed to address the usability and eye-candy issues, so maybe I should be using that? So user-interfaces could be considered a shallow reason to choose your OS, and to be honest although how I interact with the PC is important (<em>since it&#8217;s what I do for a living</em>) it&#8217;s not what attracted me to linux in the 1st place. FREE, yes FREE is what attracts most of us to linux, windows licencing and cost is a nightmare, winzip &#038; winrar are examples of stuff you expect to have as part of the OS, yes XP can open .zips but what about .tgz? &#8230; OK lets look at terminal emulation or ssh, finding a good one can be a problem putty is great but it&#8217;s a bit dis-jointed, the sftp function isn&#8217;t built into explorer tab&#8217;s is an extra add-on&#8230; what about the stuff you occasionaly use, so I re-size the odd image or convert .jpg to .png should I be paying for a tool I only use once a month, if I should, can I afford it?</p>
<p>The investment in a mac is not a small one, so my question is, <strong>can I get the best of both world</strong>s? Can I buy the software I need, and download open-source alternative easily for the rest? Can I mix the &#8220;it just works&#8221; with the tech-tinkering that I&#8217;m used to? After purchasing a macbook, ms office for mac, vmware-fusion (<em>I have vm-ware server on linux to run visio, I know this will be no-different on a mac</em>) and topped that off with a backup-solution (<em>work pay to backup windows, rsync does the job for linux</em>) I&#8217;m going to have spent best part of £1,500&#8230; oh yeah this includes a special VGA cable so I can plug into a projector&#8230; apple are known for tying users in tightly, will that become my new bug-bear? which leads me to&#8230;.</p>
<p><strong>Is Mac the Anti-Linux?</strong><br />
Apple insist that their OS runs only on their hardware, the ipod only works with their software (<em>itunes</em>) and plays their music format, you need special cables to plug your laptop into a standard monitor/projector, the iphone only works with apples chosen provider&#8230; is all this restriction going to make things worse? Linux is about freedom, machine architectures range from pda&#8217;s to playstations, the interface that you use can easily be changed, nearly everything is open and if I were a programmer I could fix, change, anything I liked&#8230;. would I be jumping from complete democratic freedom to a dictatorship?</p>
<p><strong>So there we have it, a million questions I just don&#8217;t know the answer to!</strong> I do know I don&#8217;t have a grand kicking about, so this won&#8217;t be something I tackle lightly, if I do I then have the politics at work to address, no booting into linux isn&#8217;t supported by IT, but the laptop is a standard-same-as-everyone-else-thingy if I bring in a shiny new apple it&#8217;s going to attract attention&#8230;. which will certainly upset someone! The windows of change are bring more macs to the UK, but is it just a fad? More thought is definitely needed, I just hope I can bring myself to a decision soon <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/406/is-mac-the-anti-linux-or-the-answer/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

