<?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>Colin Robinson</title>
	<atom:link href="http://colinrrobinson.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://colinrrobinson.com</link>
	<description>Just another guy on the internet</description>
	<lastBuildDate>Sun, 19 Feb 2012 21:36:30 +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>Permalinks for Hierarchical Custom Post Types</title>
		<link>http://colinrrobinson.com/technology/wordpress/permalinks-hierarchical-custom-post-types/</link>
		<comments>http://colinrrobinson.com/technology/wordpress/permalinks-hierarchical-custom-post-types/#comments</comments>
		<pubDate>Tue, 15 Nov 2011 03:23:41 +0000</pubDate>
		<dc:creator>colin</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://colinrrobinson.com/?p=142</guid>
		<description><![CDATA[I wrote a WordPress plugin that lets you have a hierarchy of custom post types where the post types are different. This is the plugin here. I see a few people marked the plugin is broken, it works, but its impossible to figure out how without instructions. I don&#8217;t know why the descriptions and stuff [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote a WordPress plugin that lets you have a hierarchy of custom post types where the post types are different. <a title="permalinks for hierarchical custom post types" href="http://wordpress.org/extend/plugins/permalinks-for-hierarchical-custom-post-types/">This is the plugin here</a>. I see a few people marked the plugin is broken, it works, but its impossible to figure out how without instructions. I don&#8217;t know why the descriptions and stuff I added don&#8217;t show up on the WordPress site, so I&#8217;ll provide instructions and support on this blog.</p>
<p>Its worth pointing out that I made this other developers. If you&#8217;re looking for a plug and play solution, this isn&#8217;t quite it. But if you&#8217;re a developer with the same problem, I&#8217;ve done the heavy lifting for you.</p>
<p><span id="more-142"></span></p>
<h4>How to use:</h4>
<p>First make sure you&#8217;re not using the default query type (?post=24&amp;blah=foo) style of permalinks.</p>
<p>Suppose you have two custom post types: &#8220;book&#8221; and &#8220;author&#8221;. For posts of type &#8220;book&#8221;, you have: <em>book1</em>. For posts of type &#8220;author&#8221;, you have: <em>author1</em>.</p>
<ol>
<li>Go to Settings &gt; Custom Permalinks</li>
<li>Enter &#8220;library&#8221; for your slug</li>
<li>Drag the &#8220;author&#8221; block from &#8220;Custom Post Types&#8221; to &#8220;Permalink Structure&#8221;</li>
<li>Drag the &#8220;book&#8221; block from &#8220;Custom Post Types&#8221; to &#8220;Permalink Structure&#8221;</li>
<li>Click &#8220;Add New Permalink&#8221;</li>
</ol>
<p>Now you can go to <strong>example.com/library/author1/</strong> to read the post named <em>author1 </em>(assuming that the slug for the post <em>author1</em> is in fact &#8220;author1&#8243;). Suppose that <em>book1</em> is a child post of <em>author1</em> with a similar slug, go to <strong>example.com/library/author1/book1/</strong> to read about <em>book1</em>.</p>
<p>You&#8217;re probably wondering how you make <em>book1</em> a child post of <em>author1</em>. In WordPress, you can&#8217;t set the parent of a post to one of a different type through the usual methods. So how to do it? That&#8217;s up to you to figure out. You can set it manually in the database, but that&#8217;s boring. I&#8217;d personally make a meta box for the custom post type that serves as the child post (in this case, &#8220;book&#8221;). In the meta box, create a drop down menu of posts of the type of the parent (in this case, &#8220;author&#8221;). Reference the functions <a title="add meta box" href="http://codex.wordpress.org/Function_Reference/add_meta_box">add_meta_box</a> and <a title="wp dropdown pages" href="http://codex.wordpress.org/Function_Reference/wp_dropdown_pages">wp_dropdown_pages</a> for help doing this.</p>
<p>You might wonder why I don&#8217;t do this automatically. I also don&#8217;t automatically change the permalink for the posts. Calling the function <a href="http://codex.wordpress.org/Function_Reference/get_permalink">get_permalink</a> on <em>book1</em> will just give you <strong>example.com/book1/</strong> not our custom permalink. The reason is that you can create as many structures as you like. Use the slug &#8220;american&#8221; and create a link like <strong>example.com/american/MarkTwain/</strong>. Whatever you like.</p>
<p>Comment if you need help or have suggestions.</p>
]]></content:encoded>
			<wfw:commentRss>http://colinrrobinson.com/technology/wordpress/permalinks-hierarchical-custom-post-types/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up a LAMP for local development on Arch Linux</title>
		<link>http://colinrrobinson.com/technology/linux/setting-lamp-local-development-arch-linux/</link>
		<comments>http://colinrrobinson.com/technology/linux/setting-lamp-local-development-arch-linux/#comments</comments>
		<pubDate>Wed, 26 Oct 2011 11:19:25 +0000</pubDate>
		<dc:creator>colin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://colinrrobinson.com/?p=130</guid>
		<description><![CDATA[Just installed Arch Linux (after leaving Ubuntu due to Unity/GNOME 3). Now I need to setup my development environment. This should work for most distros, not just Arch. I want Apache, MySQL, PHP, phpMyAdmin, and SSL. Because its easy and I&#8217;m lazy, we&#8217;re going to setting up XAMPP. As always, first reference the wiki (Xampp [...]]]></description>
			<content:encoded><![CDATA[<p>Just installed Arch Linux (after leaving Ubuntu due to Unity/GNOME 3). Now I need to setup my development environment. This should work for most distros, not just Arch. I want Apache, MySQL, PHP, phpMyAdmin, and SSL. Because its easy and I&#8217;m lazy, we&#8217;re going to setting up XAMPP. As always, first reference the wiki (<a href="https://wiki.archlinux.org/index.php/Xampp" title="Xampp ArchWiki">Xampp &#8211; ArchWiki</a>).</p>
<p>The steps break down like this:</p>
<p>1) Download the latest version from <a href="http://www.apachefriends.org/en/xampp-linux.html#374" title="xampp">here</a>.</p>
<p>2) Extract and move to /opt/</p>
<pre class="shell">
# tar xvfz xampp-linux-*.tar.gz -C /opt
</pre>
<p>3) Set passwords for MySQL and stuff</p>
<pre class="shell">
# sudo /opt/lampp/lampp security
</pre>
<p>4) Only listen for local connections<br />
- Open /opt/lampp/etc/httpd.conf<br />
- Change &#8220;Listen 80&#8243; to &#8220;Listen 127.0.0.1:80&#8243;</p>
<p>You could stop here, but I&#8217;m going to make a virtual host (with SSL).</p>
<p><span id="more-130"></span></p>
<p>5) I&#8217;m going to leave my document root as /opt/lampp/htdocs/ but I&#8217;m going to keep all my vhosts in /var/www/<br />
- Create /var/www/<br />
- Let make a wordpress site, create /var/www/wordpress/htdocs/ and /var/www/wordpress/logs/</p>
<p>6) Download the WordPress files<br />
- Move to /var/www/wordpress/htdocs/<br />
- Checkout the trunk from SVN</p>
<pre class="shell">
# svn co http://core.svn.wordpress.org/trunk/ .
</pre>
<p>I like using svn, because I can quickly do &#8220;svn up .&#8221; and update my wordpress install. More info <a href="http://codex.wordpress.org/Installing/Updating_WordPress_with_Subversion">here</a>.</p>
<p>7) Create some blank log files</p>
<pre class="shell">
# touch /var/www/wordpress/logs/error_log
# touch /var/www/wordpress/logs/access_log
</pre>
<p>8) Make your vhost definition</p>
<pre class="shell">
# sudo nano /opt/lampp/etc/extra/httpd-ssl.conf
</pre>
<p>- Change &#8220;Listen 443&#8243; to &#8220;Listen 127.0.0.1:443&#8243;<br />
- Add &#8220;NameVirtualHost *:443&#8243; right below it</p>
<p>- And something like this to the bottom of the file:</p>
<pre class="text">
&lt;VirtualHost *:443&gt;
DocumentRoot "/var/www/wordpress/htdocs"
ServerName wp.localhost:443
ServerAdmin you@wp.localhost
ErrorLog /var/www/wordpress/logs/error_log
TransferLog /var/www/wordpress/logs/access_log

SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /opt/lampp/etc/ssl.crt/server.crt
SSLCertificateKeyFile /opt/lampp/etc/ssl.key/server.key
&lt;FilesMatch ".(cgi|shtml|phtml|php)$"&gt;
    SSLOptions +StdEnvVars
&lt;/FilesMatch&gt;
&lt;Directory "/opt/lampp/cgi-bin"&gt;
    SSLOptions +StdEnvVars
&lt;/Directory&gt;
&lt;/VirtualHost&gt;
</pre>
<p>9) What&#8217;s this wp.localhost nonsense all about?<br />
We need to add a hosts definition</p>
<pre class="shell">
# sudo nano /etc/hosts
</pre>
<p>Mine looks like this</p>
<pre class="text">
#
# /etc/hosts: static lookup table for host names
#

#<ip-address>   <hostname.domain.org>   <hostname>
127.0.0.1       localhost.localdomain   localhost arch-pc
::1             localhost.localdomain   localhost
127.0.0.1       wp.localhost

# End of file
</pre>
<p>Obviously you can just keep adding lines for whatever you want. Learn more <a href="http://en.wikipedia.org/wiki/Hosts_(file)">here</a>.</p>
<p>10) Start up xampp</p>
<pre class="shell">
# sudo /opt/lampp/lampp start
</pre>
<p>11) Go to https://wp.localhost/ and check out your site!</p>
<p>You might notice that if you try and browse directories with index files (idex.html, index.php, ect) then you get an error, not the familiar directory listing. If you want to change that, open up httpd.conf and add</p>
<pre class="text">
&lt;Directory "/var/www"&gt;
    Options Indexes FollowSymLinks ExecCGI Includes
    AllowOverride All
    Order allow,deny
    Allow from all
&lt;/Directory&gt;
</pre>
<p>Learn more <a href="http://httpd.apache.org/docs/2.2/mod/core.html#options">here</a>.</p>
<p>12) Post your troubles in the comments and I&#8217;ll do my best to help</p>
]]></content:encoded>
			<wfw:commentRss>http://colinrrobinson.com/technology/linux/setting-lamp-local-development-arch-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LESS: The dynamic stylesheet language</title>
		<link>http://colinrrobinson.com/technology/css/less-dynamic-stylesheet-language/</link>
		<comments>http://colinrrobinson.com/technology/css/less-dynamic-stylesheet-language/#comments</comments>
		<pubDate>Sun, 24 Jul 2011 21:32:03 +0000</pubDate>
		<dc:creator>colin</dc:creator>
				<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://colinrrobinson.com/?p=112</guid>
		<description><![CDATA[Wow, just wow. Imagine if you could use variables in CSS&#8230; now you can. Here is the LESS website. The proposed method of using LESS is to write a style.less file and then include less.js which uses javascript to render your stylesheet dynamically. I really don&#8217;t like the idea of having to load an extra [...]]]></description>
			<content:encoded><![CDATA[<p>Wow, just wow. Imagine if you could use variables in CSS&#8230; now you can.</p>
<p>Here is the <a href="http://lesscss.org/">LESS website</a>. The proposed method of using LESS is to write a style.less file and then include less.js which uses javascript to render your stylesheet dynamically. I really don&#8217;t like the idea of having to load an extra JS file and then generating the stylesheet on the fly. Talk about unnecessary overhead. But the LESS website loads quickly, even on my phone, so I guess the results speak for themselves. Visiting the page with javascript turned off was disappointing, but not unexpected. Thankfully they also made a command line tool that you can use to compile a .less file into a .css one. Use the compiler for production releases and the JS framework for prototyping. I&#8217;ll definitely being using LESS in my next project.</p>
<p><span id="more-112"></span></p>
<p>You would write something like this in LESS</p>
<pre class="brush:css">
@color: #4D926F;
#header {
    color: @color;
}
h2 {
    color: @color;
}
</pre>
<p>and then get back this</p>
<pre class="brush:css">
#header {
    color: #4D926F;
}
h2 {
    color: #4D926F;
}
</pre>
<p>You can even write functions! This code</p>
<pre class="brush:css">
.rounded-corners (@radius: 5px) {
  border-radius: @radius;
  -webkit-border-radius: @radius;
  -moz-border-radius: @radius;
}

#header {
  .rounded-corners;
}
#footer {
  .rounded-corners(10px);
}
</pre>
<p>would be compiled into </p>
<pre class="brush:css">
#header {
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
}
#footer {
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
}
</pre>
<p>This is how CSS should have worked from the start.</p>
]]></content:encoded>
			<wfw:commentRss>http://colinrrobinson.com/technology/css/less-dynamic-stylesheet-language/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Unable to access phpMyAdmin</title>
		<link>http://colinrrobinson.com/technology/linux/unable-access-phpmyadmin/</link>
		<comments>http://colinrrobinson.com/technology/linux/unable-access-phpmyadmin/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 00:57:16 +0000</pubDate>
		<dc:creator>colin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://colinrrobinson.com/?p=108</guid>
		<description><![CDATA[Quick entry today. I installed a LAMP on Ubuntu and when I accessed http://localhost/ on my browser it said &#8220;It Works&#8221; but when I tried to access http://localhost/phpMyAdmin/ I got a 404. The fix was simple, for some reason the phpMyAdmin config file wasn&#8217;t being loaded so I did a sudo nano /etc/apache2/apache2.conf then went [...]]]></description>
			<content:encoded><![CDATA[<p>Quick entry today. I installed a LAMP on Ubuntu and when I accessed http://localhost/ on my browser it said &#8220;It Works&#8221; but when I tried to access http://localhost/phpMyAdmin/ I got a 404. The fix was simple, for some reason the phpMyAdmin config file wasn&#8217;t being loaded so I did a</p>
<pre class="shell">sudo nano /etc/apache2/apache2.conf</pre>
<p>then went to the end of the file (ctrl+w+v) and added the line</p>
<pre class="shell">Include /etc/phpmyadmin/apache.conf</pre>
<p>All good. Hopefully this helps someone.</p>
]]></content:encoded>
			<wfw:commentRss>http://colinrrobinson.com/technology/linux/unable-access-phpmyadmin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install Eclipse 3.7 on Ubuntu 11.04</title>
		<link>http://colinrrobinson.com/technology/install-eclipse-ubuntu/</link>
		<comments>http://colinrrobinson.com/technology/install-eclipse-ubuntu/#comments</comments>
		<pubDate>Fri, 15 Jul 2011 21:53:43 +0000</pubDate>
		<dc:creator>colin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://colinrrobinson.com/blog/?p=88</guid>
		<description><![CDATA[The Eclipse packages in Ubuntu are are very out of date. The latest version in the Ubuntu repos is 3.5.2 where as the latest version of Eclipse is 3.7. I&#8217;m posting this because Ubuntu 11.04 uses the new Unity desktop which uses overlay-scrollbars (scrolls bars that are hidden until you hover over them). For some [...]]]></description>
			<content:encoded><![CDATA[<p>The Eclipse packages in Ubuntu are are very out of date. The latest version in the Ubuntu repos is 3.5.2 where as the latest version of Eclipse is 3.7. I&#8217;m posting this because Ubuntu 11.04 uses the new Unity desktop which uses overlay-scrollbars (scrolls bars that are hidden until you hover over them). For some reason Eclipse 5.3.2 doesn&#8217;t like to play nice with the overlay scrollbars, and I&#8217;d rather use the newest version anyways. With Eclipse, you can just download the tar.gz file from eclipse.org and run it no problem, but I like set things up in a cleaner fashion, so here&#8217;s how I did it.<br />
<span id="more-88"></span><br />
1) <a title="Eclipse Download" href="http://www.eclipse.org/downloads/" target="_blank">Download Eclipse</a>. I got eclipse-SDK-3.7-linux-gtk-x86_64.tar.gz</p>
<p>2) Extract it</p>
<pre class="shell">tar xzf eclipse-SDK-3.7-linux-gtk-x86_64.tar.gz</pre>
<p>Or just be lazy and Right Click &gt; Extract Here</p>
<p>3) Move to /opt/ folder</p>
<pre class="shell">mv eclipse /opt/
sudo chown -R root:root eclipse
sudo chmod -R +r eclipse</pre>
<p>4) Create an eclipse executable in your path</p>
<pre class="shell">sudo touch /usr/bin/eclipse
sudo chmod 755 /usr/bin/eclipse
sudo nano /usr/bin/eclipse</pre>
<p>copy this into nano</p>
<pre class="shell">#!/bin/sh
#export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
export ECLIPSE_HOME="/opt/eclipse"

$ECLIPSE_HOME/eclipse $*</pre>
<p>save the file (^O = Ctrl+o) and exit nano (^X = Ctrl+x)</p>
<p>5) Create a gnome menu item</p>
<pre class="shell">sudo nano /usr/share/applications/eclipse.desktop</pre>
<p>copy this into nano</p>
<pre class="shell">[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse IDE
Exec=eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true</pre>
<p>save and exit nano</p>
<p>6) Launch Eclipse for the first time</p>
<pre class="shell">/opt/eclipse/eclipse -clean &amp;</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://colinrrobinson.com/technology/install-eclipse-ubuntu/feed/</wfw:commentRss>
		<slash:comments>46</slash:comments>
		</item>
		<item>
		<title>IE7… time to say goodbye</title>
		<link>http://colinrrobinson.com/technology/e7-time-goodbye/</link>
		<comments>http://colinrrobinson.com/technology/e7-time-goodbye/#comments</comments>
		<pubDate>Wed, 13 Jul 2011 13:12:52 +0000</pubDate>
		<dc:creator>colin</dc:creator>
				<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://colinrrobinson.com/blog/?p=82</guid>
		<description><![CDATA[WordPress 3.2 was released July 4th 2011 and officially marked the end of WordPress support for IE6. Hooray! Now the crosshairs have landed on IE7 with WP 3.3 looking to cut support for Internet Explorer 7. To put things in perspective, IE6 was released when I was 11&#8230; and we&#8217;re finally starting to drop support for it. Luckily we&#8217;ve been upgrading the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://colinrrobinson.com/wp-content/uploads/2011/07/google-kill-ie711.jpg" rel="lightbox[82]"><img class="alignright size-medium wp-image-83" title="google-kill-ie7" src="http://colinrrobinson.com/wp-content/uploads/2011/07/google-kill-ie71-300x110.jpg" alt="" width="300" height="110" /></a>WordPress 3.2 was released July 4th 2011 and officially marked the end of WordPress support for IE6. Hooray! Now the crosshairs have landed on IE7 with <a href="http://wpcandy.com/reports/ie7-may-be-gone-in-wordpress-33">WP 3.3 looking to cut support for Internet Explorer 7</a>. To put things in perspective, IE6 was released when I was 11&#8230; and we&#8217;re finally starting to drop support for it. Luckily we&#8217;ve been upgrading the SU computer labs to Windows 7. Last summer they were still all running Windows XP, also released when I was 11&#8230;</p>
<p>I think its fair to assume that when the University stops supporting Windows XP we can stop worrying about it. See the thing is&#8230; wait for it&#8230; IE7 can&#8217;t run on Windows 7! Internet Explorer 7 makes up 7% of web browsers usage. Come <a href="http://www.computerworld.com/s/article/9217279/Google_to_dump_support_for_Microsoft_s_IE7">August 1st 2011 Google</a> will officially stop supporting IE7. The death of IE7 might come sooner then you think!</p>
]]></content:encoded>
			<wfw:commentRss>http://colinrrobinson.com/technology/e7-time-goodbye/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

