<?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>SCRIBBLE IT</title>
	<atom:link href="http://www.scribbleit.co.uk/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scribbleit.co.uk/blog</link>
	<description>Web development (CSS, HTML, PHP and Flex) and Internet Marketing</description>
	<lastBuildDate>Mon, 22 Feb 2010 12:01:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Thesis Post Images and Thumbnails not working</title>
		<link>http://www.scribbleit.co.uk/blog/2010/02/22/thesis-post-images-and-thumbnails-not-working/</link>
		<comments>http://www.scribbleit.co.uk/blog/2010/02/22/thesis-post-images-and-thumbnails-not-working/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 11:54:48 +0000</pubDate>
		<dc:creator>Kevin Partner</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Thesis]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.scribbleit.co.uk/blog/?p=478</guid>
		<description><![CDATA[
Thesis is, in my view, the best Wordpress theme for commercial sites but there can be a couple of niggles when it comes to installing it on a shared hosting platform such as, in my case, a Heart Internet Reseller account.
Thesis includes the facility to include a post image: this is an image that appears [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.scribbleit.co.uk/blog/2010/02/22/thesis-post-images-and-thumbnails-not-working/" title="Permanent link to Thesis Post Images and Thumbnails not working"><img class="post_image alignright frame" src="http://www.scribbleit.co.uk/blog/wp-content/uploads/2010/02/myocthumbnail.png" width="297" height="464" alt="Post image for Thesis Post Images and Thumbnails not working" /></a>
</p><p>Thesis is, in my view, the best Wordpress theme for commercial sites but there can be a couple of niggles when it comes to installing it on a shared hosting platform such as, in my case, a Heart Internet Reseller account.</p>
<p>Thesis includes the facility to include a post image: this is an image that appears near the post title and which is then used as a thumbnail &#8211; obviously exactly how these appear is configurable within the Thesis options panel.</p>
<p>Installing for the first time on a shared space went fine until it came to specifying the Post Images which simply didn&#8217;t appear. After a good deal of digging around on the Thesis forum at <a href="http://www.diythemes.com">DIY Themes</a> and some experimentation, here&#8217;s the process I went through to fix the problems:<br />
<span id="more-478"></span></p>
<ol>
<li>In notepad, create a file containing just these lines:<br />
<code>< ?php<br />
phpinfo();<br />
?> </code><br />
FTP this file into the root folder of your website and then launch your browser and go to <strong>http://[yourdomainname]/phpinfo.php</strong>.<a href="http://www.scribbleit.co.uk/blog/wp-content/uploads/2010/02/phpconfig.png"><img src="http://www.scribbleit.co.uk/blog/wp-content/uploads/2010/02/phpconfig-300x157.png" alt="" title="phpconfig" width="300" height="157" class="alignright size-medium wp-image-488" /></a> This will bring up a whole heap of information about your PHP configuration. Use your browser&#8217;s search function to find the lines <em>allow_url_fopen</em> and <em>allow_url_include</em>. If <em>allow_url_fopen</em> is set to ON, then <em>allow_url_include</em> must also be ON. The chances are that <em>allow_url_include</em> is OFF and what you need to do is set <em>allow_url_fopen</em> to OFF also. This is easily done&#8230;
</li>
<li>Open up Notepad and create a new file with just this one line:<br />
<code>allow_url_fopen = off</code>
</li>
<li>Save this file as <em>php5.ini</em> (or, if you&#8217;ve left your domain set as PHP4 for some reason, this file should be called php.ini) and FTP it to the <strong>root</strong> folder of your site (usually something like /public_html or /httpdocs). This should sort out the post images issue but possible not the thumbnails</li>
<li>To fix the thumbnail issue, fire up your FTP program and find and select the following folders, right click and select <strong>File Permissions</strong>, then type the number shown into the dialog that appears. This allows Thesis to create the thumbnails:
<ul>
<li>/wp-content/themes/thesis_16/custom/cache/ (set to 755)</li>
<li>/wp-content/themes/thesis_16/lib/scripts/ (set to 755)</li>
<li>/wp-content/themes/thesis_16/lib/scripts/thumb.php (set to 744)</li>
<p><cite>Thanks to &#8220;pulselv&#8221; for this on the DIYThemes forum</cite>
</ul>
</li>
<li>Finally, click the &#8220;Big Ass Save Button&#8221; (or whatever you&#8217;ve renamed it to) on the Thesis Options screen. This makes Thesis take notice of the changes. All should now be well!</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.scribbleit.co.uk/blog/2010/02/22/thesis-post-images-and-thumbnails-not-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>If money were no object &#8211; would I buy an iPad?</title>
		<link>http://www.scribbleit.co.uk/blog/2010/01/28/if-money-were-no-object-would-i-buy-an-ipad/</link>
		<comments>http://www.scribbleit.co.uk/blog/2010/01/28/if-money-were-no-object-would-i-buy-an-ipad/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 13:43:12 +0000</pubDate>
		<dc:creator>Kevin Partner</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.scribbleit.co.uk/blog/?p=469</guid>
		<description><![CDATA[Let&#8217;s just begin by saying that I have purchased Apple products in the past. I&#8217;ve owned an iMac, an eMac, several iPod Nanos, a MacBook and an iPod Classic. To me, they are the masters of hardware design and some of their software is also excellent (the iPhone/iPod Touch OS and Keynote being two outstanding [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><img class="alignnone" title="IPad" src="http://images.apple.com/ipad/home/images/best_experience_20100127.png" alt="" width="326" height="202" />Let&#8217;s just begin by saying that I have purchased Apple products in the past. I&#8217;ve owned an iMac, an eMac, several iPod Nanos, a MacBook and an iPod Classic. To me, they are the masters of hardware design and some of their software is also excellent (the iPhone/iPod Touch OS and Keynote being two outstanding examples for me &#8211; on the other hand Quicktime and iTunes are amongst my least favourite pieces of software, right up there with Adobe Reader). My loathing of iTunes and my discovery of how liberating it is to have a plain, vanilla MP3 player, buy MP3s from Amazon and simply drag and drop them across has led to my abandonment of the iPod series, for now at least.</p>
<p>As a geek but <strong>not </strong>an early adopter, it&#8217;s people like me that Apple needs to impress if it&#8217;s to increase its market share. Apple evangelists will buy the iPad, even if they don&#8217;t <strong>really</strong> know why and I don&#8217;t doubt they&#8217;ll find uses for it (even if it&#8217;s annoying other commuters by watching &#8220;Love Actually&#8221; on their lovely big screen) but people like me need a justifiable reason for laying out the money.</p>
<p>So, if money were no object, what would I buy in the following categories?<span id="more-469"></span></p>
<p><strong>SMARTPHONE</strong></p>
<p><strong>I would buy: an iPhone</strong></p>
<p>The iPhone was and is a game-changing device. Many of the apps are of high quality and, once 3G support was introduced, it offered truly liberated browsing and pseudo-computing.</p>
<p><strong><img class="alignright" title="HTC Magic" src="http://www.handys-mobile.de/img/htc_magic.jpg" alt="" width="400" height="300" />What I actually bought: an HTC Magic running Android</strong></p>
<p>Why? Just look at the figures. When I was choosing my next phone (my first smartphone having been a Sony-Ericsson user for a few generations), the cost of owning an iPhone was an £80 upfront payment and then a 24 month contract at £45 per month. This equates to a total cost of ownership of around £1,150 over 2 years.</p>
<p>My Magic, on the other hand, cost zero for the handset on a 18 month contract at £25 per month for a total cost of ownership of around £450. Android has proven a joy to use and I&#8217;ve already enjoyed 2 updates. It&#8217;s closely integrated (of course) with Google&#8217;s applications so for web use it&#8217;s ideal. And, of course, you don&#8217;t have to close one application to use another.</p>
<p><strong>LAPTOP</strong></p>
<p><strong>I would buy: a Macbook Pro </strong></p>
<p>&#8230;running Windows 7. I bought my first Macbook when they moved over to Intel chips and therefore became capable of running Windows. Windows 7 (and, to be honest, also Windows Vista) are nice, usable and productive operating systems and the choice of software for me, as a developer, is many times what it is under OSX.</p>
<p><strong><img class="alignright" title="Acer" src="http://www.laptops-drivers.com/wp-content/uploads/2009/06/acer_5536-wallpaper.jpg" alt="" width="450" height="302" />What I actually bought: an Acer Laptop from Tesco</strong></p>
<p>Why? Again, price. The 15 inch MacBook Pro <strong>starts</strong> at £1,328. The Acer Laptop cost £349 to which I would need to add £50 or so for an upgrade to Windows 7. What, <strong>in practice</strong>, does the MacBook Pro offer that makes it worth around 4x the price. And just to be clear, the technical specification of the Acer is very similar to the MacBook Pro.</p>
<p><strong>DESKTOP</strong></p>
<p><strong>I would buy: Chillblast Fusion Midgard (£896 inc VAT)<br />
</strong></p>
<p>This is <a href="http://www.pcpro.co.uk/reviews/desktops/353071/chillblast-fusion-midgard" target="_blank">PCPro&#8217;s current A list</a> Desktop PC with a blistering benchmark score of 2.48 (3.2GHz Pentium D = 1)</p>
<p><strong>What I actually bought: A cheap Dell Studio with a Quad Core processor (£299)</strong></p>
<p>Runs my applications perfectly quickly. I play games on my PS3 so I don&#8217;t need game playing capability.</p>
<p><strong>NETBOOK</strong></p>
<p><strong><img class="alignright" title="Samsung NC10" src="http://talklaptops.info/wp-content/uploads/2009/02/samsung_nc10.png" alt="" width="504" height="390" />I would buy: Samsung NC series Netbook (around £300 incl VAT)</strong></p>
<p>&#8230;and this was what I actually bought. What a lovely little device. Excellent keyboard, nice bright display, around 7 hours of battery and a good rugged feel.</p>
<p>I guess this is the category the iPad could most obviously compete in. Except that it doesn&#8217;t have:</p>
<ul>
<li>a keyboard &#8211; software keyboards are NO replacement for a real one</li>
<li>a webcam (are you having a laugh?)</li>
<li>any protection for the screen</li>
<li>a card reader so I can import my photos</li>
<li>USB (!!!!)</li>
</ul>
<p>&#8230;and it costs more than twice as much. The fact is that the iPad cannot replace a laptop or a phone. It&#8217;s only possible place is in the netbook market and it cannot compete there on either features or price. It is a lovely product, technologically very clever but its market (beyond Apple disciples) isn&#8217;t obvious to me. It&#8217;s too fragile to be used in education and not suitable for typing extensively on. I can see that if I were giving a presentation, it would be great to load it up on the iPad and then simply connect it to the projector and use the iPad as a controller. But I won&#8217;t spend £650 for this, very minor, benefit.</p>
<p>Sorry Apple, I simply cannot get excited by it. If you offered me an iPhone at a reasonable price I&#8217;d bite your arm off. If you offered me a Mac Mini, I&#8217;d have it and install Windows 7. If you offered me an iPad I&#8217;d politely decline.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scribbleit.co.uk/blog/2010/01/28/if-money-were-no-object-would-i-buy-an-ipad/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Being Happy: Step 1 &#8211; Take Responsibility</title>
		<link>http://www.scribbleit.co.uk/blog/2010/01/07/being-happy-step-1-take-responsibility/</link>
		<comments>http://www.scribbleit.co.uk/blog/2010/01/07/being-happy-step-1-take-responsibility/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 19:01:54 +0000</pubDate>
		<dc:creator>Kevin Partner</dc:creator>
				<category><![CDATA[Personal Development]]></category>

		<guid isPermaLink="false">http://www.scribbleit.co.uk/blog/?p=414</guid>
		<description><![CDATA[About Me
I&#8217;m not a self-development guru but I am interested in the area and have studied many of the best practitioners. This series of blog entries summarises the main themes I&#8217;ve seen reoccurring time and time again: a series of universally accepted principles that really should be taught to our children at school.
I don&#8217;t pretend [...]]]></description>
			<content:encoded><![CDATA[<p></p><h2>About Me</h2>
<p>I&#8217;m not a self-development guru but I am interested in the area and have studied many of the best practitioners. This series of blog entries summarises the main themes I&#8217;ve seen reoccurring time and time again: a series of universally accepted principles that really should be taught to our children at school.</p>
<p>I don&#8217;t pretend to be great at all of these &#8211; far from it. However, I know from experience that when I work on each of them, my life becomes more productive, richer and happier.</p>
<p>Just to reiterate, I am not preaching or evangelising these principles. I&#8217;m simply summarising what I see as the most important of them so that you can think about incorporating them into your day. If they make sense to you, I suggest applying them one at a time until each becomes a habit and part of your natural outlook on life.</p>
<h2>Step1 : Taking Responsibility<a href="http://www.scribbleit.co.uk/blog/wp-content/uploads/2010/01/beach.jpg"><img class="alignright size-medium wp-image-416" title="beach" src="http://www.scribbleit.co.uk/blog/wp-content/uploads/2010/01/beach-300x200.jpg" alt="beach" width="300" height="200" /></a></h2>
<p>You&#8217;re probably familiar with the concept of “stimulus-response” as in the famous experiment by Pavlov in which he trained dogs to salivate when they hear a bell which had previously been rung whenever there was a sausage in the vicinity.</p>
<p>The stimulus (the bell) lead directly to the response (dribbling). In a similar way, the stimulus of being cut up on the motorway might lead to the response of sticking two fingers up, honking your horn and chasing the offender. Or you might feel miserable because the weather&#8217;s wet or because you&#8217;ve just heard a sad story on the news.</p>
<p>However, there is an essential difference between animals and humans. Animals have no choice about responding to a stimulus, humans do. If you feel miserable on a cloudy day, you&#8217;re giving control over your mood to an outside force (the weather) about which you can do nothing. If you get stressed when someone overtakes you on the motorway and then cuts in, you&#8217;re allowing that person&#8217;s behaviour to stress you. Note the verbs: “giving” and “allowing”. You see, it&#8217;s your choice how you react to any stimulus: you choose whether to react with anger, sadness, calmness or even not to react at all.</p>
<p>It might feel as though you are taking control by reacting but, in fact, you are giving up control to the stimulus just as surely as if you were a dog salivating over a sausage. The truly strong, empowering thing to do is to stop, think and then respond in accordance with your values.</p>
<p>One of the best ways to make yourself more effective is to work on those things you can influence and ignore those things you can&#8217;t. The weather doesn&#8217;t make you miserable, it&#8217;s your reaction to it that does so: this is why one person&#8217;s gorgeous sunny day is another&#8217;s wasp-infested slice of hell.</p>
<p>By only trying to exercise control over things you <strong>can</strong> control (and this rarely includes other people), you focus your energies in productive areas and greatly reduce your stress. If the weather&#8217;s crap (the UK is locked in a new Ice Age as I write this) then don&#8217;t let it get you down: work out how you&#8217;re going to control those things you can. If you&#8217;re unable to drive anywhere (as we are at present) then work on managing with what you have at home. Think about helping your vulnerable neighbours out. Clear the snow from in front of your house and car. Enjoy it!</p>
<p>Don&#8217;t underestimate the power of this. By taking responsibility for how you react, you stop blaming the world for your misfortunes and this is empowering (after all if you stop believing that the weather can make you miserable, you&#8217;ve just given yourself the power to be happy). It also makes you more forgiving of others and much less affected by their weaknesses.</p>
<p>Do what you can about what you can influence: and remember that your reactions to everything that happens are entirely in your control. <a href="http://en.wikipedia.org/wiki/Viktor_Frankl" target="_blank">Viktor Frankl</a>, a concentration camp victim and psychiatrist reasoned that he has complete control over his thoughts and reactions and, in that understanding, more freedom than his prison camp guards. His is a humbling story and well worth reading.</p>
<p><strong>Further Reading:</strong> I came across this principle first in <a href="http://www.amazon.co.uk/gp/product/0684858398?ie=UTF8&#038;tag=scribbleit-21&#038;linkCode=as2&#038;camp=1634&#038;creative=6738&#038;creativeASIN=0684858398">7 Habits of Highly Effective People</a><img src="http://www.assoc-amazon.co.uk/e/ir?t=scribbleit-21&#038;l=as2&#038;o=2&#038;a=0684858398" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> by Stephen Covey. This was an enormously influential experience (I listened to the audio of a seminar) and very much affected my way of looking at life and my performance.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scribbleit.co.uk/blog/2010/01/07/being-happy-step-1-take-responsibility/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Paypal fiasco</title>
		<link>http://www.scribbleit.co.uk/blog/2010/01/06/paypal-fiasco/</link>
		<comments>http://www.scribbleit.co.uk/blog/2010/01/06/paypal-fiasco/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 15:06:04 +0000</pubDate>
		<dc:creator>Kevin Partner</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.scribbleit.co.uk/blog/?p=405</guid>
		<description><![CDATA[I&#8217;m all for Buyer Protection (after all, I&#8217;m a buyer more often than a seller) but Paypal&#8217;s Dispute Resolution system needs sorting out.
One of my companies offers an online subscription service. On Christmas Eve, a customer emailed us to say they couldn&#8217;t access the service having paid for it. On Boxing Day having waited a [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I&#8217;m all for Buyer Protection (after all, I&#8217;m a buyer more often than a seller) but Paypal&#8217;s Dispute Resolution system needs sorting out.</p>
<p>One of my companies offers an online subscription service. On Christmas Eve, a customer emailed us to say they couldn&#8217;t access the service having paid for it. On Boxing Day having waited a whole 48 hours over Xmas and not received a response, they put a claim in. What did they claim? That the product had not been received.</p>
<p>I then got notification of this, logged into Paypal (having emailed the customer and asked why they&#8217;d escalated it without giving us reasonable time to respond) only to find that the three options open to me when it comes to responding are:</p>
<ol>
<li>I have posted the item, here is the tracking number</li>
<li>I did not post the item, I will refund</li>
<li>I have already refunded.</li>
</ol>
<p>THERE IS NO ITEM TO POST! This is an entirely online product. The customer has (either wilfully or through ignorance) filed an incorrect complaint. Unfortunately, Paypal don&#8217;t bother to investigate the type of product and take the customer&#8217;s word for it. There is no way I can find to add a &#8220;note&#8221; to the dispute and surely the simplest solution would be:</p>
<p>4. This is not a physical product</p>
<p>&#8230;or something similar.</p>
<p>Paypal have now found in favour of the customer and refunded them. This leaves businesses like mine open to ignorant or malicious claim-backs without any recourse to defend ourselves. It really is time Paypal got their finger out and at least gave merchants such as us (with a long and blemish-free history) the opportunity to respond properly to inappropriate claims.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scribbleit.co.uk/blog/2010/01/06/paypal-fiasco/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Apps Premier: Week One</title>
		<link>http://www.scribbleit.co.uk/blog/2009/12/11/google-apps-premier-week-one/</link>
		<comments>http://www.scribbleit.co.uk/blog/2009/12/11/google-apps-premier-week-one/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 17:30:29 +0000</pubDate>
		<dc:creator>Kevin Partner</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.scribbleit.co.uk/blog/?p=404</guid>
		<description><![CDATA[I&#39;ve spent some time during a busy week signing up for Google Apps Premier. Why? The main benefit to my companies is that it allows us to use corporate level email facilities without the expense or hassle of setting up and running an Exchange (or similar) server. I&#39;m currently in the 30 day free trial [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I&#39;ve spent some time during a busy week signing up for Google Apps Premier. Why? The main benefit to my companies is that it allows us to use corporate level email facilities without the expense or hassle of setting up and running an Exchange (or similar) server. I&#39;m currently in the 30 day free trial and all is going well.
<p />
<div>For around £2.50 per month per user, we now get sophisticated email which is delivered via the increasingly impressive Googlemail interface. In the background is the Postini service (acquired by Google a couple of years ago) which adds superb spam filtering and virus checking along with other facilities (including a standard footer) I have yet to explore.</div>
<p />
<div>We also get the rather nice Google Sites which allows us to set up an ad-hoc intranet. By editing our MX records, I&#39;m able to access the various functions at [function].[domain name]: for example <a href="http://mail.example.com">mail.example.com</a> or <a href="http://docs.example.com">docs.example.com</a> and even set up a Google Sites web page at <a href="http://www.example.com">www.example.com</a> so that all users can log in and get to the various sections from one central page.</div>
<p />
<div>Google Apps includes Google Docs which, frankly, is still pretty rubbish. It will enable us to collaborate on simply formatted documents and presentations before the final version is downloaded and prettied up.</div>
<p />
<div>Apps includes a shared Calendar application, built in chat and even the ability to access Apps on your mobile phone (it works beautifully on my Android phone).</div>
<p />
<div>It took a bit of setting up, although it was easy enough and most of this was spent in Google Mail setting up filters to help me manage email coming from all my many email accounts. So far it&#39;s going exceptionally well: enabling me to keep to my &quot;clear inbox&quot; policy almost entirely. Because it&#39;s online, I don&#39;t have to worry about viruses and my inbox is not cluttered with Spam because it would have to get past Positini first and then Google&#39;s own spam filter. So far, not a single inappropriate message has made it into my inbox. I was able to achieve something similar using Thunderbird and Cloudmark but it took ages every morning to process the crap that came in.</div>
<p />
<div>So far so good: I now need to sell my co-director (and technophobe) on it. If he goes for it, then I know we&#39;re onto a winner.</div>
<p style="font-size: 10px;">  <a href="http://posterous.com">Posted via email</a>   from <a href="http://kevinpartner.posterous.com/google-apps-premier-week-one">Kevin&#8217;s posterous</a>  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.scribbleit.co.uk/blog/2009/12/11/google-apps-premier-week-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to edit remote files in Microsoft Expression Web 3</title>
		<link>http://www.scribbleit.co.uk/blog/2009/12/02/how-to-edit-remote-files-in-microsoft-expression-web-3/</link>
		<comments>http://www.scribbleit.co.uk/blog/2009/12/02/how-to-edit-remote-files-in-microsoft-expression-web-3/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 16:29:19 +0000</pubDate>
		<dc:creator>Kevin Partner</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Software Recommendations]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.scribbleit.co.uk/blog/?p=396</guid>
		<description><![CDATA[
I&#8217;m just starting to experiment with Expression Web 3 as a site editor (specifically for editing PHP, CSS and Javascript files) and the first stumbling block was how to set it up so that I can edit my remote files directly without having to create a local version. This is necessary because I don&#8217;t have [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.scribbleit.co.uk/blog/2009/12/02/how-to-edit-remote-files-in-microsoft-expression-web-3/" title="Permanent link to How to edit remote files in Microsoft Expression Web 3"><img class="post_image alignnone" src="http://www.scribbleit.co.uk/blog/wp-content/uploads/2009/12/expression.png" width="684" height="434" alt="Post image for How to edit remote files in Microsoft Expression Web 3" /></a>
</p><p>I&#8217;m just starting to experiment with Expression Web 3 as a site editor (specifically for editing PHP, CSS and Javascript files) and the first stumbling block was how to set it up so that I can edit my remote files directly without having to create a local version. This is necessary because I don&#8217;t have PHP/MySQL and Apache installed on my Windows machine.</p>
<p>Despite the fact that this doesn&#8217;t appear to be mentioned in the application help, it&#8217;s actually very simple. Just go to File, Open and, in the address bar, type your FTP address. You&#8217;ll then be prompted to type in your login details and, assuming this has worked successfully, you&#8217;ll then be presented with an Explorer view of your site from which you can pick your file. Simple.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scribbleit.co.uk/blog/2009/12/02/how-to-edit-remote-files-in-microsoft-expression-web-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Making Your Own Candles shop launches</title>
		<link>http://www.scribbleit.co.uk/blog/2009/11/11/making-your-own-candles-shop-launches/</link>
		<comments>http://www.scribbleit.co.uk/blog/2009/11/11/making-your-own-candles-shop-launches/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 14:54:59 +0000</pubDate>
		<dc:creator>Kevin Partner</dc:creator>
				<category><![CDATA[Marketing]]></category>

		<guid isPermaLink="false">http://www.scribbleit.co.uk/blog/?p=392</guid>
		<description><![CDATA[
Our latest commercial venture www.MakingYourOwnCandles.co.uk has launched in time for Christmas. This site/business was created as part of a project for PCPro (or which more in due course) and offers easy-to-use but professional quality candle making kits that anyone can use to create coloured and scented 15-hour candles.
The site was created using Wordpress and is [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.scribbleit.co.uk/blog/2009/11/11/making-your-own-candles-shop-launches/" title="Permanent link to Making Your Own Candles shop launches"><img class="post_image alignright frame" src="http://www.scribbleit.co.uk/blog/wp-content/uploads/2009/11/teacupxmas.jpg" width="320" height="233" alt="Micro kit: Xmas Edition" /></a>
</p><p>Our latest commercial venture <a href="http://www.makingyourowncandles.co.uk" target="_blank">www.MakingYourOwnCandles.co.uk</a> has launched in time for Christmas. This site/business was created as part of a project for PCPro (or which more in due course) and offers easy-to-use but professional quality candle making kits that anyone can use to create coloured and scented 15-hour candles.</p>
<p>The site was created using Wordpress and is linked to a shop created using EKMPowershop&#8217;s ecommerce structure. It&#8217;ll run until Christmas, at which point we&#8217;ll evaluate whether to run it as an ongoing business.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scribbleit.co.uk/blog/2009/11/11/making-your-own-candles-shop-launches/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Maclaren Stupidity</title>
		<link>http://www.scribbleit.co.uk/blog/2009/11/10/maclaren-stupidity/</link>
		<comments>http://www.scribbleit.co.uk/blog/2009/11/10/maclaren-stupidity/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 14:52:21 +0000</pubDate>
		<dc:creator>Kevin Partner</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.scribbleit.co.uk/blog/?p=391</guid>
		<description><![CDATA[The utter stupidity of big corporations never ceases to amaze. Forced by law in the US to provide a protective cap to owners of their push-chairs, Maclaren refuse to do so in this country because our law does not force them to do so. Utterly pathetic: they could have had a marketing triumph by issuing [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>The utter stupidity of big corporations never ceases to amaze. Forced by law in the US to provide a protective cap to owners of their push-chairs, Maclaren refuse to do so in this country because our law does not force them to do so. Utterly pathetic: they could have had a marketing triumph by issuing the covers in the UK because it&#8217;s THE RIGHT THING TO DO. If it prevents one more child having their fingers chopped off in the mechanism then DO IT. Stupid, stupid, stupid. The epitome of why big corporations are SO 20th Century.
<p style="font-size: 10px;">  <a href="http://posterous.com">Posted via email</a>   from <a href="http://kevinpartner.posterous.com/maclaren-stupidity">Kevin&#8217;s posterous</a>  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.scribbleit.co.uk/blog/2009/11/10/maclaren-stupidity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to buy a used car</title>
		<link>http://www.scribbleit.co.uk/blog/2009/11/05/how-to-buy-a-used-car/</link>
		<comments>http://www.scribbleit.co.uk/blog/2009/11/05/how-to-buy-a-used-car/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 20:42:19 +0000</pubDate>
		<dc:creator>Kevin Partner</dc:creator>
				<category><![CDATA[Marketing]]></category>
		<category><![CDATA[Personal Thoughts]]></category>

		<guid isPermaLink="false">http://www.scribbleit.co.uk/blog/?p=383</guid>
		<description><![CDATA[
Somewhat off-topic, I&#8217;ll admit, but I&#8217;ve worked with Automotive clients for years helping to teach them how to sell properly so perhaps I&#8217;m well placed to help you get the right deal for you. Having just bought a used Toyota Verso, here are my practical observations:
Choose your car before you go to the dealer
Car sales [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.scribbleit.co.uk/blog/2009/11/05/how-to-buy-a-used-car/" title="Permanent link to How to buy a used car"><img class="post_image alignright" src="http://www.scribbleit.co.uk/blog/wp-content/uploads/2009/11/car_showroom.jpg" width="306" height="406" alt="How to buy a used car" /></a>
</p><p>Somewhat off-topic, I&#8217;ll admit, but I&#8217;ve worked with Automotive clients for years helping to teach them how to sell properly so perhaps I&#8217;m well placed to help you get the right deal for you. Having just bought a used Toyota Verso, here are my practical observations:</p>
<h3>Choose your car before you go to the dealer</h3>
<p>Car sales executives will want to sell you the car that best suits them, whilst (more or less) meeting your requirements. This might be a car that&#8217;s been on the forecourt for a while or one that the sales executive has been incentivised to sell for whatever reason.</p>
<p>Use the internet and personal recommendations to select your car. Check out <a href="http://www.whatcar.com/" target="_blank">What Car</a> and pay particular attention to the user reviews (whilst bearing in mind that reviewers are self-selecting: either gloriously happy or, more likely, bloody angry!).<span id="more-383"></span></p>
<p>Once you&#8217;ve generated a short-list based on your requirements, find possible cars using each manufacturer&#8217;s used stock service (usually found from their main web page). Most services include the ability to select a maximum distance you&#8217;re willing to drive to find a car. From this, you will have an idea of whether you can afford your preferred cars: if more than one remains from your list, go and test drive them in order of preference.</p>
<h3>Make sure you know roughly what the car you&#8217;re buying is worth</h3>
<p>Go to <a href="http://www.parkers.co.uk/cars/used-prices/#" target="_blank">Parkers and use the free valuation service </a>to see how much you should expect to pay for the car. You shouldn&#8217;t expect to pay any more than this unless the  car has done fewer miles or is in exceptional condition.</p>
<h3>Know the value of your part exchange</h3>
<p>You can get a valuation via Glass&#8217;s Guide. Currently, <a href="http://www.vauxhall.co.uk/vaux/pages/global/valueMyCar/valueMyCarPopup.jsp" target="_blank">Vauxhall are giving away free valuations</a>. Be honest about the condition of your vehicle: it&#8217;s likely to be in &#8220;average&#8221; condition (that&#8217;s what &#8220;average&#8221; means, after all). Don&#8217;t tell the sales executive that you have this information: it could be useful in the negotiation process.</p>
<h3>Go to a main dealer</h3>
<p>If you possibly can, I suggest going to a dealer that specialises in the car type you are looking to buy. You will then get a manufacturer authorised health-check, a one-year warranty (usually, sometimes longer) plus membership of the driver&#8217;s club. You can also feel a little more confident that you&#8217;re not buying a lemon since these dealers have more of a reputation to protect.</p>
<h3>Test until you&#8217;re happy</h3>
<p>You can test drive as many cars as you like: it&#8217;s a lot of money and you must be happy with it.</p>
<h3>Ask for a price for the deal</h3>
<p>Make sure the Sales Executive gives you figures for both the part exchange and the car you&#8217;re buying. It&#8217;s essential that you get a complete breakdown and the sales exec might resist giving this to you because they don&#8217;t want to argue the toss about each figure</p>
<h3>Mull it over</h3>
<p>Don&#8217;t let them convince you to sign on the dotted line that moment (unless you&#8217;ve driven a long way to get there and are completely happy with the deal). Think it over, make sure that you&#8217;re happy with the figures and if not, come back with a counter-offer the following day. Do this by email if you possibly can because it limits their ability to use their patter to confuse the issue. It also gives you a paper trail</p>
<p>If they try to convince you to buy today, simply keep repeating &#8220;I need to think it over tonight, I&#8217;ll come back to you tomorrow&#8221; as there&#8217;s really no answer to that.</p>
<p>First, negotiate on the price of the car you&#8217;re buying and then, when you&#8217;re happy with it, negotiate the part ex price IF they have undervalued it (as they did in my case). Tell them you&#8217;ve checked on Glass&#8217;s (which is the service they use themselves).</p>
<h3>Don&#8217;t buy any add-ons</h3>
<p>Dealers make LOTS of money from Add-Ons which means they&#8217;re unlikely to be good value for you. If you think you&#8217;ll benefit from <a href="http://www.autotrader.co.uk/gap_insurance/gap_insurance.jsp" target="_blank">GAP insurance </a>then buy it separately online as it&#8217;s MUCH cheaper done that way. If, on reflection, you want any particular add-on, you can always go back.</p>
<h3>Pay by debit card</h3>
<p>Dealers will charge you around 3% to pay by credit card and banks will charge for drafts so the most economical way to pay is by debit card if you possibly can.</p>
<p>So, my main advice is to be well informed, confident and upfront but to examine carefully every single statement the sales executive makes. They simply can&#8217;t help coming out with white (or not so white) lies such as &#8220;my boss insists I ask you&#8221; or &#8220;ok, although we said we wouldn&#8217;t budge on price, we haven&#8217;t had to give any other discounts today so maybe we can&#8221;  or &#8220;the FSA says we must offer you GAP insurance&#8221; (all of which I heard this week). This is mainly fluff which is part of their persona as sales people: if it&#8217;s important to you, get it written down.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scribbleit.co.uk/blog/2009/11/05/how-to-buy-a-used-car/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First steps in object oriented PHP</title>
		<link>http://www.scribbleit.co.uk/blog/2009/10/27/first-steps-in-object-oriented-php/</link>
		<comments>http://www.scribbleit.co.uk/blog/2009/10/27/first-steps-in-object-oriented-php/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 21:17:13 +0000</pubDate>
		<dc:creator>Kevin Partner</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.scribbleit.co.uk/blog/?p=360</guid>
		<description><![CDATA[PHP gets a bad press from time to time, largely because its very flexibility is seen as laxness by the tight sphincter brigade. However, just because PHP doesn&#8217;t force &#8220;best practice&#8221; on programmers doesn&#8217;t mean you can&#8217;t adopt said best practice.
Object oriented programming is much talked about and has many advantages over the old-school line-based [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>PHP gets a bad press from time to time, largely because its very flexibility is seen as laxness by the tight sphincter brigade. However, just because PHP doesn&#8217;t <strong>force</strong> &#8220;best practice&#8221; on programmers doesn&#8217;t mean you can&#8217;t adopt said best practice.</p>
<p>Object oriented programming is much talked about and has many advantages over the old-school line-based procedural code. You&#8217;re probably familiar with functions (blocks of code called independently: they used to be called subroutines in the old days). Objects are groups of function which are, to some degree, &#8220;self aware&#8221;. By this I mean that values can be passed within the objects to allow the object to take the appopriate actions.</p>
<p>Enough of theory, I want to give a concrete example of how using objects can be, in a very practical, sense a timesaver. I&#8217;m going to show you how to create a very useful database object which can be used to make connecting to the database, retrieving and storing data much simpler.<span id="more-360"></span></p>
<p>Right, open up your favourite editor: mine is <a href="http://www.mpsoftware.dk/phpdesigner.php" target="_blank">PHPDesigner</a> although a good free alternative is <a href="http://www.pspad.com" target="_blank">PSPad</a>. I&#8217;m assuming you have a working MySQL database and want to connect to it. If you&#8217;re at all familiar with interacting with MySQL, you know that there are three stages involved in retrieving information: connecting to the database, running the query and processing it. Let&#8217;s start by dealing with the first of these and automating the connection.</p>
<p>Create a blank PHP file and give it a name. I tend to use a two part convention: the first part of the name describes the purpose of the class, the second indicates the author. So, in this case, we might call it DbaseSB .php (SB=Scribbleit).</p>
<p>Here&#8217;s the inital code:</p>
<pre>&lt; ?php
//DATABASE CONNECTION/MANIPULATION OBJECT
//AUTHOR: KEVIN PARTNER
class DbaseSB
{
	private $DB_HOST="localhost";
	private $DB_NAME="mydbname";
	private $DB_USER="mydbuser";
	private $DB_PASSWORD="mydbpassword";
	private $connection;</pre>
<p>You can see that we begin with the keyword &#8220;class&#8221; followed by the name of the class. This MUST be the same as the name of the PHP file. Following this is a series of variable definitions. <strong>private</strong><strong> indicates that these variables are only accessible within the object: this is for security reasons and because these variables are only needed by the database object.</strong></p>
<p><strong> </strong></p>
<p><strong>The variable names should be self explanatory except for </strong><strong>$connection</strong> which is a variable I&#8217;m going to use to store the database connection once it&#8217;s made.</p>
<p>Now for the next bit:</p>
<pre>function __construct()//CONSTRUCTOR FUNCTION WHICH IS RUN WHEN THE OBJECT IS CREATED
	{
		$this-&gt;connection = mysql_connect($this-&gt;DB_HOST, $this-&gt;DB_USER, $this-&gt;DB_PASSWORD) or die("unable to connect to database");

		$db_select=mysql_select_db($this-&gt;DB_NAME,$this-&gt;connection);

		if(!$db_select)
		{
			die("Database selection failed: ".mysql_error());
		}
	}</pre>
<p>This code immediately follows the first block. The <strong>__construct</strong> magic method is run automatically when the object is created (we&#8217;ll see how to do that in a bit) so what this code achieves is to create a database connection automatically using the details you&#8217;ve supplied. This connection is then stored in the <strong>$connection</strong> variable for use later.</p>
<p>You&#8217;ll notice that <strong>$connection</strong> is expressed as <strong>$this-&gt;connection</strong>. The identifier <strong>$this</strong> represents the current object so what it&#8217;s saying is &#8220;my copy of $connection&#8221; since you could have many objects running at once based on a single class.</p>
<p>Moving right along, this code immediately follows the last block:</p>
<pre>	function query($query)
	{
		$querydata=mysql_query($query);
		$this-&gt;confirm_query($querydata);
		return($querydata);
	}

	function confirm_query($result_set)
	{
		if (!$result_set) {
			die("Database query failed: " . mysql_error());
		}
	}</pre>
<p>The first method (functions are called methods when they&#8217;re inside an object, go figure) wraps up any MySQL query and runs it. <strong>confirm_query</strong> checks to see that a valid result was achieved and, if not, echoes out the error returned.</p>
<p>Now, this might seem like a lot of work just to do some database stuff but the beauty is that you only have to do it once (and you can, after all, copy and paste it from here). This class can now connect to a database and execute a query. All that&#8217;s left now is to add some general purpose queries that will shield you from having to remember the MySQL code.</p>
<p>So, let&#8217;s now add one such general purpose method:</p>
<pre>	function fetchfield($table,$indexname,$indexvalue,$fieldname)
	{
	    $query="SELECT * FROM $table WHERE $indexname=$indexvalue";
	    $querydata=$this-&gt;query($query);
	    $fielddata=mysql_fetch_assoc($querydata);
	    return $fielddata[$fieldname];
	}
}
?&gt;</pre>
<p>As its name suggests, <strong>fetchfield</strong> will pull out a single field from a single row of a database.</p>
<p>Ok, that completes our class for now: let&#8217;s look at how we would use that in a PHP script. So, create a script (for example &#8220;index.php&#8221;) in the usual way. For now, I suggest putting it in the same folder as the class but that&#8217;s not generally a good idea as it&#8217;s best to have your classes all together.</p>
<pre>&lt; ?php
require_once("DbaseSB.php");
$dbobject=new DbaseSB();

$userid=1001;

$firstname=$dbobject-&gt;fetchfield("users","userid",$userid,"firstname";
echo($firstname);
?&gt;</pre>
<p>In the first line, we include the php class file. The second line shows how to create an object from the class. A &#8220;class&#8221; is the blueprint, the definition of the object. Just as you can build many houses from one blueprint, you can create as many objects as you like from one class and each can have its own variable values etc. Most often, you&#8217;ll just create a single copy as here.</p>
<p><strong>Important note:</strong>Remember that, in creating (&#8220;instantiating&#8221;) our object, it automatically connects to the database: you don&#8217;t have to carry out that step.</p>
<p>We then define a variable for testing purposes. On the next line, you can see how we access our object&#8217;s single method, <strong>fetchfield</strong>. In this case, the table name is &#8220;users&#8221;, the index we&#8217;re using to identify the row containing the field is called &#8220;user id&#8221;, the actual value of userid is $userid and the field we want to fetch is &#8220;firstname&#8221;.</p>
<p>A very simple but powerful example. Now that the object is created, we can use it anywhere on this page without recreating it. Adding new methods makes it progressively more powerful, allowing you to use MySQL without using MySQL, if you see what I mean. That single line of code has replaced at least 7 lines if you don&#8217;t include the connection. The more complex the method, the greater the time saving.</p>
<p>Furthermore, each time you add a method it becomes available across your whole site AND you can up and move your entire library to a new site for a new project and all you need to change is the connection information. Convinced yet?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scribbleit.co.uk/blog/2009/10/27/first-steps-in-object-oriented-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
