<?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>Tue, 01 May 2012 03:18:05 +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>Draughts, my first android game</title>
		<link>http://colinrrobinson.com/technology/android/draughts-android-game/</link>
		<comments>http://colinrrobinson.com/technology/android/draughts-android-game/#comments</comments>
		<pubDate>Tue, 10 Apr 2012 02:28:44 +0000</pubDate>
		<dc:creator>colin</dc:creator>
				<category><![CDATA[android]]></category>

		<guid isPermaLink="false">http://colinrrobinson.com/?p=287</guid>
		<description><![CDATA[Made with Unity3D, coded in C# https://play.google.com/store/apps/details?id=com.colinrrobinson.draughts &#160;]]></description>
			<content:encoded><![CDATA[<p>Made with Unity3D, coded in C#</p>
<p><a href="http://colinrrobinson.com/wp-content/uploads/2012/04/unnamed.jpg" rel="lightbox[287]"><img class="alignnone size-thumbnail wp-image-288" title="unnamed" src="http://colinrrobinson.com/wp-content/uploads/2012/04/unnamed-150x150.jpg" alt="" width="150" height="150" /></a><a href="http://colinrrobinson.com/wp-content/uploads/2012/04/unnamed-1.jpg" rel="lightbox[287]"><img class="alignnone size-thumbnail wp-image-289" title="unnamed (1)" src="http://colinrrobinson.com/wp-content/uploads/2012/04/unnamed-1-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p><a href="https://play.google.com/store/apps/details?id=com.colinrrobinson.draughts">https://play.google.com/store/apps/details?id=com.colinrrobinson.draughts</a></p>
<p><a href="http://colinrrobinson.com/wp-content/uploads/2012/04/img.png" rel="lightbox[287]"><img class="alignnone size-thumbnail wp-image-290" title="img" src="http://colinrrobinson.com/wp-content/uploads/2012/04/img-150x150.png" alt="" width="150" height="150" /></a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://colinrrobinson.com/technology/android/draughts-android-game/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to free up space in rootfs on Arch Linux</title>
		<link>http://colinrrobinson.com/technology/linux/free-space-rootfs-arch-linux/</link>
		<comments>http://colinrrobinson.com/technology/linux/free-space-rootfs-arch-linux/#comments</comments>
		<pubDate>Sat, 07 Apr 2012 19:15:59 +0000</pubDate>
		<dc:creator>colin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://colinrrobinson.com/?p=243</guid>
		<description><![CDATA[Is your rootfs partition at 100% and causing you problems? I&#8217;ve been hovering around 95%-100% for a few weeks now. Being at 95% is fine, but 100% can cause all kinds of problems. I was testing a form on my local web server and couldn&#8217;t do file uploads because &#8220;the disk was full.&#8221; I was [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Is your rootfs partition at 100% and causing you problems?</strong></p>
<p>I&#8217;ve been hovering around 95%-100% for a few weeks now. Being at 95% is fine, but 100% can cause all kinds of problems. I was testing a form on my local web server and couldn&#8217;t do file uploads because &#8220;the disk was full.&#8221; I was writing code and my editor couldn&#8217;t save the file because &#8220;the disk was full.&#8221; Its frustrating because you have hundreds of free gigs where you&#8217;re saving the file, but because rootfs is full, you can&#8217;t!</p>
<p>I&#8217;ll start by showing you the output of <span class="inlinecode">df</span></p>
<pre class="shell">$ df
Filesystem     1K-blocks     Used Available Use% Mounted on
rootfs          10209220  9625988     71164 100% /
/dev             4055116        0   4055116   0% /dev
run              4058036      252   4057784   1% /run
/dev/sda3       10209220  9625988     71164 100% /
shm              4058036      796   4057240   1% /dev/shm
tmpfs            4058036     3160   4054876   1% /tmp
/dev/sda1          99590    34166     60205  37% /boot
/dev/sda4      449789792 23726068 403549860   6% /home</pre>
<p>Not good, but its my own fault. I only allocated about 10g to <span class="inlinecode">/dev/sda3</span> when I setup the OS. I should I have predicted that I would need more.</p>
<p>The real solutions is to boot to a livecd and resize <span class="inlinecode">/dev/sda3</span>. This can take a long time, break your grub install, and cause other headache inducing effects.</p>
<p>Here are some tricks I&#8217;ve picked up to get your rootfs down from the dreaded 100% to something you can actually work with.</p>
<p><span id="more-243"></span></p>
<h2>Clear your pacman cache</h2>
<p>When pacman downloads a package for you, it keeps a version in its cache (usually <span class="inlinecode">/var/cache/pacman/pkg</span>). This is great if you ever want to downgrade a package, but its not necessary and it takes up space.</p>
<p>Clearing your cache is as easy as:</p>
<pre class="shell">$ pacman -Sc</pre>
<p>There are more complicated scripts on the net which do things like manage how mange revisions back to save packages for, but this is fine for now. Lets take a look at the difference that made</p>
<pre class="shell">$ sudo df
Filesystem     1K-blocks     Used Available Use% Mounted on
rootfs          10209220  9303916    393236  96% /</pre>
<p>Down to 96% already! This is all the difference in the world, now I can actually save this document I&#8217;m writing. Lets see how much further we can get this down.</p>
<h2>Remove software you don&#8217;t use</h2>
<p>Now might be a good time to remove unused software. I normally run a pretty tight system anyways, but I still found room to improve.</p>
<p>For example, I use Xfce as my Desktop Environment but I use Compiz as my Window Manager rather than <span class="inlinecode">xfwm4</span>. This let me remove <span class="inlinecode">xfwm4</span> and <span class="inlinecode">xfwm4-themes</span> and shed a few MBs. I originally installed both VirtualBox and VMware but I only use the latter. See you later Vbox!</p>
<h2>Kill the orphans!</h2>
<p>Or rather&#8230; remove orphaned packages. First do a pacman query <span class="inlinecode">-Q</span> for all dependencies <span class="inlinecode">-d</span> that are unrequired <span class="inlinecode">-t</span>.</p>
<pre class="shell">$ pacman -Qdt</pre>
<p>If you have unrequired dependencies, why not remove them. This simple command with recursively remove all unrequired dependencies.</p>
<pre class="shell">pacman -Rs $(pacman -Qtdq)</pre>
<p>Where are we at?</p>
<pre class="shell">$ df
Filesystem     1K-blocks     Used Available Use% Mounted on
rootfs          10209220  9090832    606320  94% /</pre>
<h2>BleachBit</h2>
<p>Similar to CCleaner on Windows, <a title="bleachbit sourceforge" href="http://bleachbit.sourceforge.net/">BleachBit</a> clears out temp files, system caches, and other <em>junk.</em> You can find it <a title="bitcleach-cli in the arch user repos" href="http://aur.archlinux.org/packages.php?ID=36043">here in the AUR</a> (There is also a CLI version).</p>
<h2>Figure out what&#8217;s taking up space</h2>
<p>Still not satisfied with the size of rootfs? Get down into the file structure and find out what&#8217;s taking up space. The arch wiki has a list of <a title="Disk Usage Display Programs" href="https://wiki.archlinux.org/index.php/Common_Applications/Utilities#Disk_Usage_Display_Programs">disk usage display programs</a>. I&#8217;m personally a fan of <span class="inlinecode">ncdu</span> (<a title="ncdu homepage" href="http://dev.yorhel.nl/ncdc">home page</a>) (<a title="ncdu package details" href="https://www.archlinux.org/packages/community/x86_64/ncdu/">package details</a>).</p>
<p><strong>Have a suggestion of your own? Still having problems with your file system? Make a comment!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://colinrrobinson.com/technology/linux/free-space-rootfs-arch-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Code Review</title>
		<link>http://colinrrobinson.com/technology/code-review/</link>
		<comments>http://colinrrobinson.com/technology/code-review/#comments</comments>
		<pubDate>Mon, 19 Mar 2012 16:01:47 +0000</pubDate>
		<dc:creator>colin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://colinrrobinson.com/?p=161</guid>
		<description><![CDATA[Where I work, we have a lot of new developers and people still learning the languages. When learning a language, being able to get feedback on your code is an invaluable learning asset. It lets the more experienced programmers help teach the newer ones. Most code review software is designed for pre-commit comments. A reviewer looks at the code [...]]]></description>
			<content:encoded><![CDATA[<p>Where I work, we have a lot of new developers and people still learning the languages. When learning a language, being able to get feedback on your code is an invaluable learning asset. It lets the more experienced programmers help teach the newer ones.</p>
<p>Most code review software is designed for pre-commit comments. A reviewer looks at the code before it gets added to the version control system and then approves or denies the changes. This is obviously vital for large projects involving multiple developers, but what about small shops where people work mostly independently and on different projects? What if you don&#8217;t have the resources or the need for an extensive review process and would rather casually browse your colleges code to add constructive criticisms or notify them of best practices which they might be unaware of?</p>
<p>To me the ideal tool will interface with subversion and allow reversion specific and line specific post-commit comments. I want to be able to browse our source code whenever I feel like it, write a comment about a specific line, and then have the author notified of the comment.</p>
<p>The<a href="http://trac-hacks.org/wiki/PeerReviewPlugin"> PeerReviewPlugin</a> for Trac looked like a winner, until I read this review</p>
<blockquote>
<div id="attachment_162" class="wp-caption alignright" style="width: 160px"><a href="http://colinrrobinson.com/wp-content/uploads/2012/03/perform_code_review-1024x666.jpg" rel="lightbox[161]"><img class="size-thumbnail wp-image-162 " title="perform_code_review" src="http://colinrrobinson.com/wp-content/uploads/2012/03/perform_code_review-150x150.jpg" alt="PeerReview Plugin for Trac" width="150" height="150" /></a><p class="wp-caption-text">PeerReview Screenshot</p></div>
<p>In my company, we looked briefly at the &#8220;peerreview&#8221; plugin on TracHacks, and were very disappointed with it.</p>
<p>It seems obvious to us that a code-review plugin would naturally default to assuming that an entire Subversion commit should be code-reviewed. Unfortunately, the peerreview plugin forces you to manually identify the lines of code that you want to review. It doesn&#8217;t even give you hints in which lines might have changed with a particular commit, which means that if you don&#8217;t enter the line that changed carefully, you could end up re-reviewing the same lines of code over and over.</p></blockquote>
<p>It still looks promising, and I don&#8217;t expect to find an out-of-the-box solution that is perfect for my specific situation. Right now <a href="http://www.reviewboard.org/">ReviewBoard</a> is looking up and I could always modify the PeerReview plugin to suit my needs (hooray, opensource). Please, leave a comment about how you and your company do code review. What code review systems have you worked with? What other solutions might I have passed over?</p>
]]></content:encoded>
			<wfw:commentRss>http://colinrrobinson.com/technology/code-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do you measure productivity?</title>
		<link>http://colinrrobinson.com/technology/measure-productivity/</link>
		<comments>http://colinrrobinson.com/technology/measure-productivity/#comments</comments>
		<pubDate>Mon, 19 Mar 2012 15:45:50 +0000</pubDate>
		<dc:creator>colin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://colinrrobinson.com/?p=158</guid>
		<description><![CDATA[How do you measure your productivity while writing code? Judging a program&#8217;s success by lines of code (LOC) is like judging how successful an airplane is by its weight. Consider a more modern approach from Agile development called Weighted Micro Function Points.]]></description>
			<content:encoded><![CDATA[<p>How do you measure your productivity while writing code? Judging a program&#8217;s success by lines of code (LOC) is like judging how successful an airplane is by its weight. Consider a more modern approach from Agile development called <a href="http://en.wikipedia.org/wiki/Weighted_Micro_Function_Points">Weighted Micro Function Points</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://colinrrobinson.com/technology/measure-productivity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>1</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>1</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>73</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>

