<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>My thoughts about running a small web design agency, planning, building and deploying web applications and trying to improve my designs.

  var _gaq = _gaq || [];
  _gaq.push([‘_setAccount’, ‘UA-9449070-13’]);
  _gaq.push([‘_trackPageview’]);

  (function() {
    var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true;
    ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl’ : ‘http://www’) + ‘.google-analytics.com/ga.js’;
    var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);
  })();</description><title>Daniel @ Cenix</title><generator>Tumblr (3.0; @cenixdan)</generator><link>http://danielmorgan.co.uk/</link><item><title>In a week I’m going on a holiday road trip thing to the...</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_m2oq5pr1Rh1qjvi9co1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;In a week I’m going on a holiday road trip thing to the US. We’ll be covering a lot of miles taking in the sights of the South West and I want to document the experience with a blog. The holiday is drawing near and I’m busy doing last minute work, so I decided to cheat and buy a Wordpress theme from ThemeForest:&lt;/p&gt;
&lt;br/&gt;&lt;p&gt;&lt;a href="http://themeforest.net/item/wptraveller-wordpress-travel-photo-blog/909546?ref=cenix"&gt;wpTraveller&lt;/a&gt;&lt;/p&gt;
&lt;br/&gt;&lt;p&gt;It’s got all the features I imagine I’ll need. It let’s me display a detailed KML route for each post, as well as multiple markers, polylines and polyfills. It zooms the map to fit in all the elements too which is neat. A nice little ajax-powered-geocoding-meta-box in the Add Post page makes it super easy to find locations and add them to the map. And the theme looks great too! I’m really happy with this and it’s a much more complete and polished product than anything I could have hacked together in the rush before leaving.&lt;/p&gt;
&lt;br/&gt;&lt;p&gt;Now that I’ve got the important bit sorted I have plenty of time to put off packing my suitcase!&lt;/p&gt;
&lt;br/&gt;&lt;p&gt;&lt;a href="http://holiday.danielmorgan.co.uk/"&gt;Check the blog out&lt;/a&gt; if you’re interested in seeing the wpTraveller theme in action, or seeing my holiday snaps!&lt;/p&gt;</description><link>http://danielmorgan.co.uk/post/21329859521</link><guid>http://danielmorgan.co.uk/post/21329859521</guid><pubDate>Wed, 18 Apr 2012 18:05:49 +0100</pubDate></item><item><title>I’ve been working on running an ecommerce website / eBay...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_lv4qqsXjGM1qjvi9co1_500.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;img src="http://24.media.tumblr.com/tumblr_lv4qqsXjGM1qjvi9co2_500.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;img src="http://24.media.tumblr.com/tumblr_lv4qqsXjGM1qjvi9co3_500.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;img src="http://24.media.tumblr.com/tumblr_lv4qqsXjGM1qjvi9co4_500.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;p&gt;I’ve been working on running an ecommerce website / eBay store for the past couple of months, here’s the fancy new set up that arrived yesterday and some of the results. I bought it off &lt;a href="http://www.ebay.co.uk/itm/170567939305?ssPageName=STRK:MEWNX:IT&amp;_trksid=p3984.m1439.l2648#ht_3229wt_1139" target="blank"&gt;eBay&lt;/a&gt; for £80. So far I’m impressed with the results, but I’m spending a bit more time than I’d like fixing and trying to totally isolate them in Photoshop - I’m thinking I might start uploading the unfinished result regardless to save time.&lt;/p&gt;

&lt;p&gt;Check out the ecommerce website to see them all: &lt;a href="http://mandmcomputers.net"&gt;mandmcomputers.net&lt;/a&gt;&lt;/p&gt;</description><link>http://danielmorgan.co.uk/post/13216182101</link><guid>http://danielmorgan.co.uk/post/13216182101</guid><pubDate>Wed, 23 Nov 2011 20:11:15 +0000</pubDate></item><item><title>Photo</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_lrxbb0QbHL1qjvi9co2_500.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;img src="http://24.media.tumblr.com/tumblr_lrxbb0QbHL1qjvi9co1_500.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;img src="http://25.media.tumblr.com/tumblr_lrxbb0QbHL1qjvi9co3_500.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;</description><link>http://danielmorgan.co.uk/post/10516659000</link><guid>http://danielmorgan.co.uk/post/10516659000</guid><pubDate>Thu, 22 Sep 2011 13:13:48 +0100</pubDate></item><item><title>Just sent the final version to the printers, lots of ways to...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_lrk8gf02Pk1qjvi9co1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Just sent the final version to the printers, lots of ways to contact M&amp;M Computers now!&lt;/p&gt;</description><link>http://danielmorgan.co.uk/post/10236158628</link><guid>http://danielmorgan.co.uk/post/10236158628</guid><pubDate>Thu, 15 Sep 2011 11:43:27 +0100</pubDate></item><item><title>I’ve started working on a re-brand for my dad’s long...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_lrh8sakzHH1qjvi9co1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;I’ve started working on a re-brand for my dad’s long running computer repair business. It’s long overdue and I’ve talked about doing it for years, but now I’m finally doing it. I’ve already started building an &lt;a href="http://www.opencart.com/" target="blank"&gt;OpenCart&lt;/a&gt; website to replace the current static website on &lt;a href="http://www.mandmcomputers.net"&gt;mandmcomputers.net&lt;/a&gt;&lt;/p&gt;
&lt;br/&gt;&lt;p&gt;Planned release date is “eventually”.&lt;/p&gt;</description><link>http://danielmorgan.co.uk/post/10172280417</link><guid>http://danielmorgan.co.uk/post/10172280417</guid><pubDate>Tue, 13 Sep 2011 20:57:45 +0100</pubDate></item><item><title>This has nothing to do with the web, but myself and a friend...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_lprxdpSXVb1qjvi9co4_500.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;img src="http://25.media.tumblr.com/tumblr_lprxdpSXVb1qjvi9co1_500.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;img src="http://25.media.tumblr.com/tumblr_lprxdpSXVb1qjvi9co2_500.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;img src="http://25.media.tumblr.com/tumblr_lprxdpSXVb1qjvi9co3_500.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;img src="http://25.media.tumblr.com/tumblr_lprxdpSXVb1qjvi9co5_500.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;p&gt;This has nothing to do with the web, but myself and a friend were playing some Minecraft and I started toying with the idea of creating some lomo-esque “photos”. I haven’t spent long on each of these and some have noticeable problems with them, but I enjoyed trying something new creatively. Minecraft is great for this, I just need to know when to stop (before 1am is my new target).&lt;/p&gt;</description><link>http://danielmorgan.co.uk/post/8783296416</link><guid>http://danielmorgan.co.uk/post/8783296416</guid><pubDate>Thu, 11 Aug 2011 18:17:00 +0100</pubDate></item><item><title>I’m a self confessed Illustrator n00b and I found it hard...</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_lol4f3XcV51qjvi9co1_400.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;I’m a self confessed Illustrator n00b and I found it hard to work out what the correct search term would be to find a solution to my problem. I eventually found it after wasting 10 minutes so here I am, writing it down for future me.&lt;/p&gt;
&lt;br/&gt;&lt;p&gt;I couldn’t stop a shape snapping incorrectly, and the element I was trying to align it to was being snapped too, but never to the exact same place. In the interests of perfect symmetry I couldn’t let this go on, even at a zoom level that wouldn’t be visible once printed. I found out that all that I have to do to stop that is turn off “Align to Pixel Grid”. It’s in the Transform panel (Shift+F8). Simple!&lt;/p&gt;</description><link>http://danielmorgan.co.uk/post/7802849620</link><guid>http://danielmorgan.co.uk/post/7802849620</guid><pubDate>Tue, 19 Jul 2011 15:33:03 +0100</pubDate></item><item><title>New Site Launch! Little Engineering Ltd</title><description>&lt;a href="http://littleengineering.co.uk/"&gt;New Site Launch! Little Engineering Ltd&lt;/a&gt;: &lt;p&gt;This is &lt;a href="http://cenix.co.uk"&gt;our&lt;/a&gt; latest client project that we’re just wrapping up now. We made a custom Stock Management System in CakePHP 1.3 that we’re really proud of, and we think we’ve created a really nice look and experience for the user!&lt;/p&gt;

&lt;p&gt;&lt;a href="http://littleengineering.co.uk"&gt;&lt;a href="http://littleengineering.co.uk"&gt;http://littleengineering.co.uk&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://danielmorgan.co.uk/post/7657081294</link><guid>http://danielmorgan.co.uk/post/7657081294</guid><pubDate>Fri, 15 Jul 2011 19:01:58 +0100</pubDate></item><item><title>This isn’t Photoshopped at all. It probably means I copy...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_lnv4ybq0vJ1qjvi9co1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;This isn’t Photoshopped at all. It probably means I copy way too much though.&lt;/p&gt;</description><link>http://danielmorgan.co.uk/post/7262722596</link><guid>http://danielmorgan.co.uk/post/7262722596</guid><pubDate>Tue, 05 Jul 2011 14:46:59 +0100</pubDate></item><item><title>How to fix "Item was not deleted" in CakePHP 1.3 and delete all associated records</title><description>&lt;p&gt;When attempting to delete a record that has related records, for example a User hasMany Comments, CakePHP 1.3 would not delete the item in my baked application. It was giving me this error:&lt;/p&gt;
&lt;p&gt;&lt;i&gt;Item was not deleted&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;The problem is caused by the fact that there are related records. Some Comments still belongTo a User, so you can not delete the User without deleting the Comment. A simple edit to the User model can solve this problem:&lt;/p&gt;
&lt;code&gt;
&lt;pre&gt;
var $hasMany = array(
	'Comment' =&amp;gt; array(
		'className' =&amp;gt; 'Comment',
		'foreignKey' =&amp;gt; 'user_id',
		'dependent' =&amp;gt; true,
	)
);
&lt;/pre&gt;
&lt;/code&gt;
&lt;p&gt;The line to pay attention to there is &lt;i&gt;&amp;#8216;dependent&amp;#8217; =&amp;gt; true&lt;/i&gt;. By default this is set to false, by simply changing this, you can delete all related records at the same time as the main record automagically.&lt;/p&gt;</description><link>http://danielmorgan.co.uk/post/7155123649</link><guid>http://danielmorgan.co.uk/post/7155123649</guid><pubDate>Sat, 02 Jul 2011 14:00:06 +0100</pubDate><category>cakephp</category><category>php</category></item><item><title>A dribbble style sneak peek of the site I’m working on....</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_lnlet6qynl1qjvi9co1_400.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;A &lt;a href="http://dribbble.com/"&gt;dribbble&lt;/a&gt; style sneak peek of the site I’m working on. It’s the Little Engineering website I posted a few images of almost 2 months ago. It’s nearly finished, just content and styling changes left to do mainly. I plan to tidy up and either release the code or write a tutorial on how to do multiple image uploads in CakePHP 1.3.&lt;/p&gt;
&lt;br/&gt;&lt;p&gt;Apparently the client plans to use the logo I designed on his van, and I can not wait to see that! :)&lt;/p&gt;</description><link>http://danielmorgan.co.uk/post/7075715569</link><guid>http://danielmorgan.co.uk/post/7075715569</guid><pubDate>Thu, 30 Jun 2011 08:43:55 +0100</pubDate></item><item><title>Run multiple Notepad++ windows

I’m leaving this here more...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_lms5dwTovS1qjvi9co1_400.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;h2&gt;Run multiple Notepad++ windows&lt;/h2&gt;

&lt;p&gt;I’m leaving this here more as a note to myself than anything else, as this quick tip for running multiple instances (windows) of Notepad++ is all over the place, but I find my self looking for it every time I format and re-install Notepad++.&lt;/p&gt;
&lt;br/&gt;&lt;p&gt;Simply add the &lt;code&gt;-multInst&lt;/code&gt; flag to your shortcut target, so that it looks like this:&lt;/p&gt;

&lt;code&gt;
&lt;pre&gt;"C:\Program Files (x86)\Notepad++\notepad++.exe" -multiInst&lt;/pre&gt;
&lt;/code&gt;

&lt;p&gt;Simple!&lt;/p&gt;</description><link>http://danielmorgan.co.uk/post/6520039184</link><guid>http://danielmorgan.co.uk/post/6520039184</guid><pubDate>Tue, 14 Jun 2011 14:00:07 +0100</pubDate></item><item><title>Send multiple records AND any related controllers to the view in CakePHP 1.3</title><description>&lt;p&gt;This isn&amp;#8217;t something particularly hard to figure out, but I was using the wrong search terms to help me figure this one out so it took me longer than it should have. Hopefully this will be of use to someone else, if just to explain it slightly differently.

Recognise this snippet:

&lt;code class="html"&gt;
&lt;pre&gt;
function index() {
    $this-&amp;gt;Controller-&amp;gt;recursive = 0;
    $this-&amp;gt;set('controllers', $this-&amp;gt;paginate());
}
&lt;/pre&gt;
&lt;/code&gt;

Simply change &amp;#8220;$this-&amp;gt;Controller-&amp;gt;recursive = 0;&amp;#8221; to:

&lt;code class="html"&gt;
&lt;pre&gt;
$this-&amp;gt;Controller-&amp;gt;recursive = 1;
&lt;/pre&gt;
&lt;/code&gt;

This returns an array with nodes for each of the controllers related to the controller you&amp;#8217;re using.&lt;/p&gt;</description><link>http://danielmorgan.co.uk/post/6485374323</link><guid>http://danielmorgan.co.uk/post/6485374323</guid><pubDate>Mon, 13 Jun 2011 12:27:57 +0100</pubDate></item><item><title>A better terminal window than Cygwin and Windows cmd.exe</title><description>&lt;a href="http://code.google.com/p/mintty/"&gt;A better terminal window than Cygwin and Windows cmd.exe&lt;/a&gt;: &lt;p&gt;I’ve been using Cygwin for ages, and while it has some great features it has some simple failures in its interface and integration with Windows. You can’t simply full screen it, and copy and pasting requires messing with cmd.exe settings.&lt;/p&gt;
&lt;p&gt;But I’ve just discovered mintty and it’s a joy to use. Here’s the list of features copied from it’s Google Code page.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href="http://invisible-island.net/xterm"&gt;Xterm&lt;/a&gt;-compatible terminal emulation.&lt;/li&gt;
&lt;li&gt;Native Windows user interface with a simple options dialog.&lt;/li&gt;
&lt;li&gt;Easy copy &amp; paste.&lt;/li&gt;
&lt;li&gt;Drag &amp; drop of text, files and folders.&lt;/li&gt;
&lt;li&gt;Ability to open files and URLs with Ctrl+click.&lt;/li&gt;
&lt;li&gt;Comprehensive character encoding support, including &lt;a href="http://www.utf-8.com/"&gt;UTF-8&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Wide character display and Windows &lt;a href="http://www.microsoft.com/globaldev/handson/user/ime_paper.mspx"&gt;IME&lt;/a&gt; support.&lt;/li&gt;
&lt;li&gt;Window transparency, including &lt;a href="http://mintty.googlecode.com/svn/images/glass.jpg"&gt;glass effect&lt;/a&gt; on Vista and 7.&lt;/li&gt;
&lt;li&gt;Options are stored in a text file. No registry entries.&lt;/li&gt;
&lt;li&gt;Small program size and quick scrolling.&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;Get it here:&lt;/strong&gt; &lt;a href="http://code.google.com/p/mintty/"&gt;&lt;a href="http://code.google.com/p/mintty/"&gt;http://code.google.com/p/mintty/&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Or select it from the packages when installing Cygwin.&lt;/p&gt;
&lt;/span&gt;&lt;/p&gt;</description><link>http://danielmorgan.co.uk/post/5865147829</link><guid>http://danielmorgan.co.uk/post/5865147829</guid><pubDate>Thu, 26 May 2011 14:55:44 +0100</pubDate></item><item><title>reCaptcha and table based layouts</title><description>&lt;p&gt;What based layouts? Table based layouts. I&amp;#8217;ve been doing a small job making some modifications to a very old system that uses table layouts and non object oriented PHP. Frankly it&amp;#8217;s a mess, and table layouts don&amp;#8217;t just make it difficult to make layout changes. They were also the source of a problem installing reCaptcha that had me stumped for well over 2 hours!&lt;/p&gt;
&lt;p&gt;Basically, if you have a structure like this:&lt;/p&gt;
&lt;pre&gt;&amp;lt;table&amp;gt;
  &amp;lt;form&amp;gt;
    &amp;lt;?php
      require_once('../class/recaptchalib.php');
      echo recaptcha_get_html($publickey);
    ?&amp;gt;
  &amp;lt;/form&amp;gt;
&amp;lt;/table&amp;gt;
&lt;/pre&gt;
&lt;p&gt;It simply wont POST the necessary fields &amp;#8220;recaptcha_challenge_field&amp;#8221; and &amp;#8220;recaptcha_response_field&amp;#8221;. I don&amp;#8217;t know why, all I know is that they&amp;#8217;re called from a function in the reCaptcha library and this is how to solve it:&lt;/p&gt;
&lt;pre&gt;&amp;lt;form&amp;gt;
  &amp;lt;table&amp;gt;
    &amp;lt;?php
      require_once('../class/recaptchalib.php');
      echo recaptcha_get_html($publickey);
    ?&amp;gt;
  &amp;lt;/table&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/pre&gt;
&lt;p&gt;Make sure the form tags are wrapping the table tags. I&amp;#8217;d love for someone to tell me why this is, but for now I&amp;#8217;ll have to settle with just knowing that it works.&lt;/p&gt;</description><link>http://danielmorgan.co.uk/post/5658150113</link><guid>http://danielmorgan.co.uk/post/5658150113</guid><pubDate>Fri, 20 May 2011 04:42:50 +0100</pubDate></item><item><title>Link: Change Apache’s document root to make developing locally easier</title><description>&lt;a href="http://bit.ly/kPOv2F"&gt;Link: Change Apache’s document root to make developing locally easier&lt;/a&gt;: &lt;p&gt;I’ve written a new blog post over at &lt;a title="Cenix Web Design - Lancaster UK Web Design Agency" href="http://cenix.co.uk"&gt;cenix.co.uk&lt;/a&gt;. &lt;a title="Change Apaches document root to make developing locally easier" href="http://bit.ly/kPOv2F"&gt;Check it out&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I just started on a job to make some changes to a really badly made PHP job board system and came up with this solution. I had originally thought it could be done by using Window’s “hosts” file but that only supports IP addresses, so I couldn’t add a sub dir.&lt;/p&gt;</description><link>http://danielmorgan.co.uk/post/5638291210</link><guid>http://danielmorgan.co.uk/post/5638291210</guid><pubDate>Thu, 19 May 2011 15:56:00 +0100</pubDate></item><item><title>Part of the footer for the Little Engineering website I’m...</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_ll1youjCrj1qjvi9co1_400.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Part of the footer for the Little Engineering website I’m working on. Really really really enjoying working on this project :D&lt;/p&gt;</description><link>http://danielmorgan.co.uk/post/5402267950</link><guid>http://danielmorgan.co.uk/post/5402267950</guid><pubDate>Wed, 11 May 2011 23:34:06 +0100</pubDate></item><item><title>Just trying on different colours with this logo.</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_lks4imZxzj1qjvi9co1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Just trying on different colours with this logo.&lt;/p&gt;</description><link>http://danielmorgan.co.uk/post/5244544179</link><guid>http://danielmorgan.co.uk/post/5244544179</guid><pubDate>Fri, 06 May 2011 16:03:58 +0100</pubDate></item><item><title>A little toggle switch I’m working on. I’m not happy...</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_lkolya5eNG1qjvi9co1_400.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;A little toggle switch I’m working on. I’m not happy with it yet, going to give it some more detail. I really want to use a toggle switch in something now.&lt;/p&gt;</description><link>http://danielmorgan.co.uk/post/5217231740</link><guid>http://danielmorgan.co.uk/post/5217231740</guid><pubDate>Thu, 05 May 2011 14:00:06 +0100</pubDate></item><item><title>Working on my first custom design in ages and loving every...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_lkoivsYDmX1qjvi9co1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Working on my first custom design in ages and loving every minute of it. I worked on a logo today. Concerned I might be following the “meme” of old fashioned logos right now but I like it. I hope the client likes it too!&lt;/p&gt;</description><link>http://danielmorgan.co.uk/post/5191738896</link><guid>http://danielmorgan.co.uk/post/5191738896</guid><pubDate>Wed, 04 May 2011 17:23:51 +0100</pubDate></item></channel></rss>

