<?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>James Wilkes Web Design</title>
	<atom:link href="http://www.jameswilkesdesign.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jameswilkesdesign.co.uk</link>
	<description>Simple, effective web design</description>
	<lastBuildDate>Fri, 10 Jun 2011 15:46:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Free Font: Handy, a clean handwritten font</title>
		<link>http://www.jameswilkesdesign.co.uk/free-font-handy-a-clean-handwritten-font/</link>
		<comments>http://www.jameswilkesdesign.co.uk/free-font-handy-a-clean-handwritten-font/#comments</comments>
		<pubDate>Wed, 27 Oct 2010 14:21:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Fonts]]></category>

		<guid isPermaLink="false">http://www.jameswilkesdesign.co.uk/?p=543</guid>
		<description><![CDATA[I&#8217;ve created a really simple handwritten font. It&#8217;s very complete, with all sorts of symbols and non-English characters (such as &#225;). Here&#8217;s a screenshot: There&#8217;s a demo page where you can see it in action (works across most browsers) and you can download the font in TrueType format or EOT (for Internet Explorer). I&#8217;ve also [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve created a really simple handwritten font. It&#8217;s very complete, with all sorts of symbols and non-English characters (such as &aacute;). Here&#8217;s a screenshot:</p>
<div class="wp-caption aligncenter" style="width: 457px"><img style="border: 1px solid #666;" title="Handy font text smaple" src="http://jameswilkesdesign.co.uk/files/font_handy_screenshot.jpg" alt="" width="447" height="288" /><p class="wp-caption-text">Handy - a simple easy-to-read handwritten font</p></div>
<p>There&#8217;s <a href="http://jameswilkesdesign.co.uk/files/font_test_handy.html" target="_blank">a demo page where you can see it in action</a> (works across most browsers) and you can download the font in <a href="http://jameswilkesdesign.co.uk/files/Handy.ttf">TrueType format</a> or <a href="http://jameswilkesdesign.co.uk/files/Handy.eot">EOT</a> (for Internet Explorer).</p>
<p>I&#8217;ve also written a <a href="http://www.jameswilkesdesign.co.uk/creating-a-font-for-a-website/">tutorial on how I create web fonts using open source tools</a>.</p>

<div class="jwsharethis">
Share this: 
<br />
<a href="mailto:?subject=Free%20Font%3A%20Handy%2C%20a%20clean%20handwritten%20font&amp;body=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Ffree-font-handy-a-clean-handwritten-font%2F">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/email.png" alt="Share this page via Email" />
</a>
<a target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Ffree-font-handy-a-clean-handwritten-font%2F&amp;title=Free+Font%3A+Handy%2C+a+clean+handwritten+font">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/su.png" alt="Share this page via Stumble Upon" />
</a>
<a target="_blank" href="http://digg.com/submit?url=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Ffree-font-handy-a-clean-handwritten-font%2F&amp;title=Free+Font%3A+Handy%2C+a+clean+handwritten+font">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/digg.png" alt="Share this page via Digg this" />
</a>
<a target="_blank" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Ffree-font-handy-a-clean-handwritten-font%2F&amp;t=Free+Font%3A+Handy%2C+a+clean+handwritten+font">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/fb.png" alt="Share this page via Facebook" />
</a>
<a target="_blank" href="http://twitter.com/intent/tweet?text=I+like+http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Ffree-font-handy-a-clean-handwritten-font%2F&amp;title=Free+Font%3A+Handy%2C+a+clean+handwritten+font">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/twitter.png" alt="Share this page via Twitter" />
</a>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.jameswilkesdesign.co.uk/free-font-handy-a-clean-handwritten-font/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free font: a simple handwritten font</title>
		<link>http://www.jameswilkesdesign.co.uk/free-font-a-simple-handwritten-font/</link>
		<comments>http://www.jameswilkesdesign.co.uk/free-font-a-simple-handwritten-font/#comments</comments>
		<pubDate>Wed, 29 Sep 2010 10:41:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Fonts]]></category>

		<guid isPermaLink="false">http://www.jameswilkesdesign.co.uk/?p=534</guid>
		<description><![CDATA[I&#8217;ve created a simple handwritten font. I&#8217;m providing this for free (although donations for commercial use would we appreciated). Feel free to use this or edit it. Example page. Download TrueType font (TTF) here or EOT format for Internet Explorer compatibility if using it on a website. I&#8217;ve also written a tutorial on how I [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve created a simple handwritten font. I&#8217;m providing this for free (although <a href="/donate/">donations</a> for commercial use would we appreciated). Feel free to use this or edit it.</p>
<p><img src="http://jameswilkesdesign.co.uk/files/james_handwriting_font_screenshot.jpg" /><br />
<span id="more-534"></span></p>
<p><a href="http://jameswilkesdesign.co.uk/files/james_handwriting_font_test.html">Example page</a>.</p>
<p>Download TrueType font (TTF) <a href="http://jameswilkesdesign.co.uk/files/JamesWilkesHandwriting.ttf">here</a> or <a href="http://jameswilkesdesign.co.uk/files/JamesWilkesHandwriting.eot">EOT format</a> for Internet Explorer compatibility if using it on a website.</p>
<p>I&#8217;ve also written a <a href="http://www.jameswilkesdesign.co.uk/creating-a-font-for-a-website/">tutorial on how I create web fonts using open source tools</a>.</p>

<div class="jwsharethis">
Share this: 
<br />
<a href="mailto:?subject=Free%20font%3A%20a%20simple%20handwritten%20font&amp;body=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Ffree-font-a-simple-handwritten-font%2F">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/email.png" alt="Share this page via Email" />
</a>
<a target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Ffree-font-a-simple-handwritten-font%2F&amp;title=Free+font%3A+a+simple+handwritten+font">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/su.png" alt="Share this page via Stumble Upon" />
</a>
<a target="_blank" href="http://digg.com/submit?url=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Ffree-font-a-simple-handwritten-font%2F&amp;title=Free+font%3A+a+simple+handwritten+font">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/digg.png" alt="Share this page via Digg this" />
</a>
<a target="_blank" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Ffree-font-a-simple-handwritten-font%2F&amp;t=Free+font%3A+a+simple+handwritten+font">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/fb.png" alt="Share this page via Facebook" />
</a>
<a target="_blank" href="http://twitter.com/intent/tweet?text=I+like+http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Ffree-font-a-simple-handwritten-font%2F&amp;title=Free+font%3A+a+simple+handwritten+font">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/twitter.png" alt="Share this page via Twitter" />
</a>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.jameswilkesdesign.co.uk/free-font-a-simple-handwritten-font/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Two color text header</title>
		<link>http://www.jameswilkesdesign.co.uk/two-color-text-header/</link>
		<comments>http://www.jameswilkesdesign.co.uk/two-color-text-header/#comments</comments>
		<pubDate>Tue, 28 Sep 2010 08:39:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Hints and Tips]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.jameswilkesdesign.co.uk/?p=519</guid>
		<description><![CDATA[Here&#8217;s a nice HTML and CSS trick &#8211; making text split with different colors. The trick is to make 2 DIVs with the same text content in the same place (using CSS position) and make the top one a different color and only half height (setting the height to slightly over half a line using [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a nice HTML and CSS trick &#8211; making text split with different colors.</p>
<p><img src="/files/two-tone-header.jpg" alt="Two tone title in CSS" /></p>
<p>The trick is to make 2 DIVs with the same text content in the same place (using CSS position) and make the top one a different color and only half height (setting the height to slightly over half a line using height: 0.6em and overflow: hidden)</p>
<p><a href="/files/two-tone-header.html">Demo here</a>.</p>

<div class="jwsharethis">
Share this: 
<br />
<a href="mailto:?subject=Two%20color%20text%20header&amp;body=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Ftwo-color-text-header%2F">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/email.png" alt="Share this page via Email" />
</a>
<a target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Ftwo-color-text-header%2F&amp;title=Two+color+text+header">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/su.png" alt="Share this page via Stumble Upon" />
</a>
<a target="_blank" href="http://digg.com/submit?url=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Ftwo-color-text-header%2F&amp;title=Two+color+text+header">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/digg.png" alt="Share this page via Digg this" />
</a>
<a target="_blank" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Ftwo-color-text-header%2F&amp;t=Two+color+text+header">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/fb.png" alt="Share this page via Facebook" />
</a>
<a target="_blank" href="http://twitter.com/intent/tweet?text=I+like+http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Ftwo-color-text-header%2F&amp;title=Two+color+text+header">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/twitter.png" alt="Share this page via Twitter" />
</a>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.jameswilkesdesign.co.uk/two-color-text-header/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a font for a website with open source software (GlyphTracer, FontForge and the Gimp)</title>
		<link>http://www.jameswilkesdesign.co.uk/creating-a-font-for-a-website/</link>
		<comments>http://www.jameswilkesdesign.co.uk/creating-a-font-for-a-website/#comments</comments>
		<pubDate>Thu, 23 Sep 2010 15:09:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Fonts]]></category>

		<guid isPermaLink="false">http://www.jameswilkesdesign.co.uk/?p=501</guid>
		<description><![CDATA[I&#8217;ve been using all free open source software to make fonts recently. It&#8217;s been great fun and quite easy. I&#8217;m using the Gimp, GlyphTracer and FontForge. I&#8217;m working on Linux but I&#8217;m sure you can get these running on Mac or Windows too. GlyphTracer is an easy-to-use program for creating a font from a bitmap [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using all free open source software to make fonts recently. It&#8217;s been great fun and quite easy. I&#8217;m using the Gimp, GlyphTracer and FontForge. I&#8217;m working on Linux but I&#8217;m sure you can get these running on Mac or Windows too.<br />
<span id="more-501"></span></p>
<p><a target="_blank" href="https://launchpad.net/glyphtracer">GlyphTracer</a> is an easy-to-use program for creating a font from a bitmap image.</p>
<p>First I create an image of the characters in the font using <a target="_blank" href="http://www.gimp.org/">the Gimp</a>. I&#8217;ll use a separate layer for guide lines. I could also use a scanned image (if you don&#8217;t have a grahics tablet then I&#8217;d suggest you draw the characters on paper and scan them).</p>
<p>Run Gimp and go to File -> New and create a new image. Make it quite wide.</p>
<p><img src="/images/font-tutorial-1.png" /></p>
<p>In the Layers window right click on the background layer and create a new transparent layer. The new layer is selected by default.</p>
<p><img src="/images/font-tutorial-2.png" /></p>
<p>Now I&#8217;ll draw some guide lines. Click on the pencil tool.</p>
<p><img src="/images/font-tutorial-3.png" /></p>
<p>Then select a single pixel brush, the finest available.</p>
<p><img src="/images/font-tutorial-4.png" /></p>
<p>I click on the page and then hold down shift and control to make it easier to draw perfectly horizontal lines. I draw 4 lines.</p>
<p><img src="/images/font-tutorial-5.png" /></p>
<p>Right click on the bottom layer (not the one with the guide lines) in the Layers window.</p>
<p><img src="/images/font-tutorial-7.png" /></p>
<p>Select the paintbrush tool and a suitable brush size.</p>
<p><img src="/images/font-tutorial-6.png" /></p>
<p>Use &#8220;+&#8221; and &#8220;-&#8221; to zoom in and out until you are at an nice size to work at. Start drawing characters!</p>
<p><img src="/images/font-tutorial-8.png" /></p>
<p>When you&#8217;ve finished one line then click on the guide layer. Press control-A to select everything in the layer, control-C to copy and press control-V to paste. You now have a new set of guidelines. Click on the move tool.</p>
<p><img src="/images/font-tutorial-9.png" /></p>
<p>Click the title bar of the image window and press shift and the down arrow until you have a new set of lines.</p>
<p>Right click on the new layer called &#8220;Floating selection&#8221; and select &#8220;anchor layer&#8221; to add it to the guide layer.</p>
<p>DON&#8217;T FORGET to left click on the background layer to select it before you start drawing characters again!</p>
<p><img src="/images/font-tutorial-10.png" /></p>
<p>I&#8217;ll include some symbols &#8220;!&#8221; and quotation marks and to make glyphtracer realise that it&#8217;s a whole line I&#8217;ll draw a vertical at the side (otherwise I&#8217;ll get 2 glyphs for the &#8220;!&#8221;) and underline the quotes (otherwise I&#8217;ll get 4 single quotes instead of 2 double quotes).</p>
<p><img src="/images/font-tutorial-11.png" /></p>
<p>GlyphTracer will only work on 1-bit (black and white with no greyscale) images so go to Image -> Mode -> Indexed and select &#8220;use black and white (1 bit palette)&#8221;.</p>
<p><img src="/images/font-tutorial-12.png" /></p>
<p>Uncheck the &#8220;eye&#8221; visibility checkbox for the guide layer.</p>
<p><img src="/images/font-tutorial-13.png" /></p>
<p>Now save the image as a PNG file.</p>
<p>Run glyphtracer and select the name for your font, the image file you just created and an output filename (it will create an SFD file which I will then use FontForge to edit and convert to a standard TTF).</p>
<p><img src="/images/font-tutorial-14.png" /></p>
<p>GlyphTracer will pick characters and highlight them as blocks which you can click on. The first group it asks you to pick is lower case characters, starting with &#8220;a&#8221;. Click on the boxed &#8220;a&#8221; and it&#8217;ll automatically move on to selecting the next character. If you have characters in other groups such as capitals and numbers then select the group from the drop-down list (bottom left).</p>
<p>Here I am picking &#8220;D&#8221;.</p>
<p><img src="/images/font-tutorial-15.png" /></p>
<p>See how the vertical and horizontals have made glytphracer realise the size of characters.</p>
<p><img src="/images/font-tutorial-16.png" /></p>
<p>When you&#8217;re done then hit the &#8220;Generate SFD file&#8221; button.</p>
<p>Run FontForge and open the SFD file. You&#8217;ll get a window showing the characters in your font.</p>
<p><img src="/images/font-tutorial-18.png" /></p>
<p>Double click one and you get a window to edit it (you&#8217;ll have to get used to splines though since that&#8217;s how the characters are defined).</p>
<p><img src="/images/font-tutorial-19.png" /></p>
<p>Select File -> Generate Fonts (or control-shit-G) and create a TTF (TrueType font) file. This can be used to display your font in a website (only works in Firefox, Opera, Safari and Chrome &#8211; IE uses EOT files and I&#8217;ll show you how to convert in a moment).</p>
<p><img src="/images/font-tutorial-20.png" /></p>
<p>I use <a target="_blank" href="http://code.google.com/p/ttf2eot/">ttf2eot</a> to convert from TTF to EOT for Internet Explorer compatibility.</p>
<p>At the linux command line you can use:</p>
<div class="codeblock">
<div class="code">
ttf2eot MyNewFont.ttf > MyNewFont.eot
</div>
</div>
<p>If you&#8217;re using IE to view the test page then you&#8217;ll have to recreate the EOT file each time you export the TTF file from FontForge.</p>
<p>I create a webpage in the same directory as the TTF file and put this text in:</p>
<div class="codeblock">
<div class="code">
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;link rel=&#8221;stylesheet&#8221; href=&#8221;style.css&#8221; type=&#8221;text/css&#8221; /&gt;<br />
&lt;style&gt;<br />
@font-face {<br />
  font-family: &#8220;MyNewFont&#8221;;<br />
  src: url(MyNewFont.ttf) format(&#8220;truetype&#8221;);<br />
}<br />
&lt;/style&gt;<br />
&lt;!&#8211;[if IE]&gt;<br />
    &lt;style&gt;<br />
    @font-face {<br />
        font-family: &#8220;MyNewFont&#8221;;<br />
        src: url(&#8220;MyNewFont.eot&#8221;);<br />
    }<br />
    &lt;/style&gt;<br />
&lt;![endif]&#8211;&gt;<br />
&lt;/head&gt;<br />
&lt;body style=&#8221;font-family: MyNewFont, serif&#8221;&gt;<br />
&lt;div style=&#8221;font-size: 32pt&#8221;&gt;<br />
&amp;ldquo;Hello World!&amp;rdquo;<br />
&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;
</div>
</div>
<p>And hey presto! The page appears using my new font and it&#8217;ll work on any browser.</p>
<p><img src="/images/font-tutorial-21.png" /></p>
<p>But we&#8217;ve still got the underline on the quotes and the capitals and lowercase don&#8217;t line up.</p>
<p>First, the quotes. In FontForge use control-alt-[ to go through the glyphs until you find the quotes. Double click to open the edit window.</p>
<p><img src="/images/font-tutorial-22.png" /></p>
<p>Double click on the unwanted underline so all the points in it are selected.</p>
<p><img src="/images/font-tutorial-23.png" /></p>
<p>Press delete. Do this for both quotes. Generate a TTF font again and refresh your browser.</p>
<p><img src="/images/font-tutorial-24.png" /></p>
<p>Now to vertically align the lowercase characters. Double click the &#8220;a&#8221; and the &#8220;A&#8221; in FontForge and press control-alt-minus so that you can see the font guide lines.</p>
<p><img src="/images/font-tutorial-25.png" /></p>
<p>The &#8220;a&#8221; is too high. It should rest on the line.</p>
<p>Hold down shift and click all the characters from &#8220;a&#8221; to &#8220;z&#8221;.</p>
<p><img src="/images/font-tutorial-26.png" /></p>
<p>Right click the one of the selected letters and select Transform.</p>
<p><img src="/images/font-tutorial-27.png" /></p>
<p>Select Move and I set the Y value to -340 (I had to play around to find the right value) and OK.</p>
<p><img src="/images/font-tutorial-28.png" /></p>
<p>Look at the &#8220;a&#8221; in the window. It&#8217;s moved to about the same level as &#8220;A&#8221;.</p>
<p><img src="/images/font-tutorial-29.png" /></p>
<p>Generate the TTF again and refresh your browser window.</p>
<p><img src="/images/font-tutorial-30.png" /></p>
<p><a href="http://jameswilkesdesign.co.uk/test/my_new_font_test.html">And here&#8217;s the end result</a>. You can select and copy the text in the browser, it&#8217;s more SEO friendly and far easier to maintain than using images or Flash to get the font you want. Hoorah!</p>
<h4>Update:</h4>
<p>It also works astonishingly well across different browsers &#8211; I&#8217;ve tested with Mozilla, Chrome, Safari, Opera and IE5, IE6, IE7, IE8 and IE9. The only bug I&#8217;ve seen is with Chrome on Windows which gives a square character for space. This is what some browsers do when trying to display a character which doesn&#8217;t exist in the page. Defining character 32 (<a target="_blank" href="http://www.asciitable.com/">space in ASCII</a>) would probably fix it.</p>

<div class="jwsharethis">
Share this: 
<br />
<a href="mailto:?subject=Creating%20a%20font%20for%20a%20website%20with%20open%20source%20software%20%28GlyphTracer%2C%20FontForge%20and%20the%20Gimp%29&amp;body=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fcreating-a-font-for-a-website%2F">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/email.png" alt="Share this page via Email" />
</a>
<a target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fcreating-a-font-for-a-website%2F&amp;title=Creating+a+font+for+a+website+with+open+source+software+%28GlyphTracer%2C+FontForge+and+the+Gimp%29">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/su.png" alt="Share this page via Stumble Upon" />
</a>
<a target="_blank" href="http://digg.com/submit?url=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fcreating-a-font-for-a-website%2F&amp;title=Creating+a+font+for+a+website+with+open+source+software+%28GlyphTracer%2C+FontForge+and+the+Gimp%29">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/digg.png" alt="Share this page via Digg this" />
</a>
<a target="_blank" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fcreating-a-font-for-a-website%2F&amp;t=Creating+a+font+for+a+website+with+open+source+software+%28GlyphTracer%2C+FontForge+and+the+Gimp%29">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/fb.png" alt="Share this page via Facebook" />
</a>
<a target="_blank" href="http://twitter.com/intent/tweet?text=I+like+http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fcreating-a-font-for-a-website%2F&amp;title=Creating+a+font+for+a+website+with+open+source+software+%28GlyphTracer%2C+FontForge+and+the+Gimp%29">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/twitter.png" alt="Share this page via Twitter" />
</a>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.jameswilkesdesign.co.uk/creating-a-font-for-a-website/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Getting started with the Linux command line interface</title>
		<link>http://www.jameswilkesdesign.co.uk/getting-started-with-the-linux-command-line-interface/</link>
		<comments>http://www.jameswilkesdesign.co.uk/getting-started-with-the-linux-command-line-interface/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 10:32:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Beginners]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.jameswilkesdesign.co.uk/?p=476</guid>
		<description><![CDATA[If you ever used DOS or the command prompt on Windows machines then just forget everything you&#8217;ve seen. The linux command line interface (CLI) is amazingly flexible and powerful. Here are some essential commands to get you started: List files in a directory The handiest form is: ls -l which gives something like this: -rw-r--r-- [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever used DOS or the command prompt on Windows machines then just forget everything you&#8217;ve seen. The linux command line interface (CLI) is amazingly flexible and powerful. Here are some essential commands to get you started:</p>
<p>List files in a directory<br />
The handiest form is:</p>
<div class="codeblock">
<div class="code"><code>ls -l<br />
</code></div>
</div>
<p>which gives something like this:</p>
<div class="codeblock">
<div class="code"><code>-rw-r--r-- 1 james james 31908 2010-06-02 20:30 exploits_of_a_mom.png<br />
</code></div>
</div>
<p>The information here is: files permissions, number of links to this entry (ie files in a sub-directory), the file&#8217;s owner, the file&#8217;s group, the file size in bytes, date modified and filename.</p>
<h4>cd</h4>
<p>Change directory<br />
To go up a directory:</p>
<div class="codeblock">
<div class="code"><code>cd ..<br />
</code></div>
</div>
<p>To go to your home directory:</p>
<div class="codeblock">
<div class="code"><code>cd ~<br />
</code></div>
</div>
<p>To go down into the test directory:</p>
<div class="codeblock">
<div class="code"><code>cd test<br />
</code></div>
</div>
<p>To go to the /var/logs directory:</p>
<div class="codeblock">
<div class="code"><code>cd /var/logs<br />
</code></div>
</div>
<p>And if you&#8217;re lost then the pwd command will tell you where you are</p>
<h4>pwd</h4>
<p>Show the present working directory</p>
<h4>whoami</h4>
<p>Tells you which user you are logged in as (I mainly included this because it makes me giggle). Can be useful &#8211; if your program is running on a web server and it can&#8217;t access a file then this might make things clearer.</p>
<h4>ifconfig</h4>
<p>Displays information about your network interfaces.<br />
Useful for: finding your IP address, MAC address</p>
<h4>grep</h4>
<p>Search for a phrase<br />
Search all .php files for the string &#8220;add_filter&#8221;:</p>
<div class="codeblock">
<div class="code"><code>grep add_filter *.php<br />
</code></div>
</div>
<p>Same but recurse all sub-directories:</p>
<div class="codeblock">
<div class="code"><code>grep -r add_filter *.php<br />
</code></div>
</div>
<p>Same but case insensitive (ie pick up &#8220;Add_Filter&#8221; or &#8220;ADD_FILTER&#8221; as well):</p>
<div class="codeblock">
<div class="code"><code>grep -r -i add_filter *.php<br />
</code></div>
</div>
<h4>mv</h4>
<p>Move a file</p>
<div class="codeblock">
<div class="code"><code>mv i_am_here.txt another_directory/now_i_am_over_here.txt<br />
</code></div>
</div>
<h4>cp</h4>
<p>Copy a file</p>
<div class="codeblock">
<div class="code"><code>cp lovelyfile copyoflovelyfile<br />
</code></div>
</div>
<h4>rm</h4>
<p>Delete a file</p>
<div class="codeblock">
<div class="code"><code>rm rubbishfile.txt<br />
</code></div>
</div>
<h4>cat</h4>
<p>Output a file contents as a stream. Useful when piped with &#8220;|&#8221; into another command, eg search the file myfile.txt for the string &#8220;frogs&#8221; (case insensitive):</p>
<div class="codeblock">
<div class="code"><code>cat myfile.txt | grep -i frogs<br />
</code></div>
</div>
<h4>tail</h4>
<p>Displays the end of a file (ususally used for following log files). As new lines are added they are displayed.</p>
<div class="codeblock">
<div class="code"><code>tail -f myfile<br />
</code></div>
</div>
<p>See find and backticks below for useful tricks.<br />
Press Control-C (^C) to leave.</p>
<h4>find</h4>
<p>Find a file<br />
As seen in my <a href="http://www.jameswilkesdesign.co.uk/how-to-follow-whats-going-on-on-your-apache-server-logs-linux/">article on following your apache webserver logs</a> you can find all files called &#8220;access-log&#8221; in the /var directory:</p>
<div class="codeblock">
<div class="code"><code>find /var -name access.log<br />
</code></div>
</div>
<p>unfortunately this gives errors for directories which couldn&#8217;t be opened (user has no permissions) so this is better:</p>
<div class="codeblock">
<div class="code"><code>find /var -name access.log 2>/dev/null<br />
</code></div>
</div>
<p>Linux commands give output streams called standard output (given number 1) and errors (given number 2). Here we send the error stream off to the device /dev/null (which basically throws everything away). We could do this:</p>
<div class="codeblock">
<div class="code"><code>find /var -name access.log 2>error.txt 1>out.txt<br />
</code></div>
</div>
<p>And now the file &#8220;out.txt&#8221; contains the output, in this case the filename and &#8220;error.txt&#8221; contains the error output.</p>
<h4>Hints and tips: Backticks</h4>
<p>You can send the results of one command to another using backticks (`), as in this example from my <a href="http://www.jameswilkesdesign.co.uk/how-to-follow-whats-going-on-on-your-apache-server-logs-linux/">article on following your apache webserver logs</a>:</p>
<div class="codeblock">
<div class="code"><code>tail -f `find /var -name access.log 2>/dev/null`<br />
</code></div>
</div>
<p>This does the find command first to get the location of the file &#8220;access.log&#8221; and then uses that filename for the tail command.<br />
We could even pipe this result through grep to search for a phrase:</p>
<div class="codeblock">
<div class="code"><code>tail -f `find /var -name access.log 2>/dev/null` | grep login.php<br />
</code></div>
</div>
<p>This will give a realtime display of all requests to &#8220;login.php&#8221; on your web server. Neat huh?</p>
<h4>wget</h4>
<p>Retreive a URL (eg web page)<br />
Download a file to the current directory:</p>
<div class="codeblock">
<div class="code"><code>wget http://www.somebodieswebserver/an_image.jpg<br />
</code></div>
</div>

<div class="jwsharethis">
Share this: 
<br />
<a href="mailto:?subject=Getting%20started%20with%20the%20Linux%20command%20line%20interface&amp;body=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fgetting-started-with-the-linux-command-line-interface%2F">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/email.png" alt="Share this page via Email" />
</a>
<a target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fgetting-started-with-the-linux-command-line-interface%2F&amp;title=Getting+started+with+the+Linux+command+line+interface">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/su.png" alt="Share this page via Stumble Upon" />
</a>
<a target="_blank" href="http://digg.com/submit?url=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fgetting-started-with-the-linux-command-line-interface%2F&amp;title=Getting+started+with+the+Linux+command+line+interface">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/digg.png" alt="Share this page via Digg this" />
</a>
<a target="_blank" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fgetting-started-with-the-linux-command-line-interface%2F&amp;t=Getting+started+with+the+Linux+command+line+interface">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/fb.png" alt="Share this page via Facebook" />
</a>
<a target="_blank" href="http://twitter.com/intent/tweet?text=I+like+http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fgetting-started-with-the-linux-command-line-interface%2F&amp;title=Getting+started+with+the+Linux+command+line+interface">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/twitter.png" alt="Share this page via Twitter" />
</a>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.jameswilkesdesign.co.uk/getting-started-with-the-linux-command-line-interface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress plugin to share posts via facebook, twitter etc</title>
		<link>http://www.jameswilkesdesign.co.uk/wordpress-plugin-to-share-posts/</link>
		<comments>http://www.jameswilkesdesign.co.uk/wordpress-plugin-to-share-posts/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 10:40:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.jameswilkesdesign.co.uk/?p=464</guid>
		<description><![CDATA[Social media is often used to help publicise blog posts. Here&#8217;s a little WordPress plugin which adds links to the bottom of a post to share it by Email, StumbleUpon, Digg, Facebook and twitter. jw-share-this.zip This plugin uses the techniques I&#8217;ve outlined in these articles: How to make a ’share this post on Twitter’ link [...]]]></description>
			<content:encoded><![CDATA[<p>
Social media is often used to help publicise blog posts. Here&#8217;s a little WordPress plugin which adds links to the bottom of a post to share it by Email, StumbleUpon, Digg, Facebook and twitter.
</p>
<p>
<a href="http://www.jameswilkesdesign.co.uk/files/jw-share-this.zip">jw-share-this.zip</a>
</p>
<p>
This plugin uses the techniques I&#8217;ve outlined in these articles:
</p>
<ul>
<li>
<a target="_blank" href="http://www.jameswilkesdesign.co.uk/how-to-make-a-share-this-post-on-twitter-link-in-wordpress/">How to make a ’share this post on Twitter’ link in WordPress</a>
</li>
<li>
<a target="_blank" href="http://www.jameswilkesdesign.co.uk/how-to-make-a-share-this-post-on-facebook-link-in-wordpress/">How to make a ’share this post on facebook’ link in WordPress</a>
</li>
<li>
<a target="_blank" href="http://www.jameswilkesdesign.co.uk/how-to-make-a-digg-this-post-link-in-wordpress/">How to make a ‘Digg this post’ link in WordPress</a>
</li>
<li>
<a target="_blank" href="http://www.jameswilkesdesign.co.uk/how-to-make-an-email-this-post-link/">How to make an ‘email this post’ link in WordPress</a>
</li>
</ul>
<p>If you find the icons included (which are 48&#215;48 pixels) are too large then <a href="http://www.jameswilkesdesign.co.uk/files/jw-share-this-icons-32x32.zip">here are some 32&#215;32 pixels smaller designs</a>.</p>

<div class="jwsharethis">
Share this: 
<br />
<a href="mailto:?subject=WordPress%20plugin%20to%20share%20posts%20via%20facebook%2C%20twitter%20etc&amp;body=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fwordpress-plugin-to-share-posts%2F">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/email.png" alt="Share this page via Email" />
</a>
<a target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fwordpress-plugin-to-share-posts%2F&amp;title=WordPress+plugin+to+share+posts+via+facebook%2C+twitter+etc">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/su.png" alt="Share this page via Stumble Upon" />
</a>
<a target="_blank" href="http://digg.com/submit?url=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fwordpress-plugin-to-share-posts%2F&amp;title=WordPress+plugin+to+share+posts+via+facebook%2C+twitter+etc">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/digg.png" alt="Share this page via Digg this" />
</a>
<a target="_blank" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fwordpress-plugin-to-share-posts%2F&amp;t=WordPress+plugin+to+share+posts+via+facebook%2C+twitter+etc">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/fb.png" alt="Share this page via Facebook" />
</a>
<a target="_blank" href="http://twitter.com/intent/tweet?text=I+like+http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fwordpress-plugin-to-share-posts%2F&amp;title=WordPress+plugin+to+share+posts+via+facebook%2C+twitter+etc">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/twitter.png" alt="Share this page via Twitter" />
</a>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.jameswilkesdesign.co.uk/wordpress-plugin-to-share-posts/feed/</wfw:commentRss>
		<slash:comments>39</slash:comments>
		</item>
		<item>
		<title>How to see what&#8217;s going on in your mysql database (linux)</title>
		<link>http://www.jameswilkesdesign.co.uk/how-to-see-whats-going-on-in-your-mysql-database-linux/</link>
		<comments>http://www.jameswilkesdesign.co.uk/how-to-see-whats-going-on-in-your-mysql-database-linux/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 12:06:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hints and Tips]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.jameswilkesdesign.co.uk/?p=439</guid>
		<description><![CDATA[You can see every SQL command which your mysql database receives. In your mysql interface you can set where the log file will be written to and then turn on the logging option (change log filename as applicable): set global general_log_file = &#8216;/var/log/mysql.log&#8217;; set global general_log = &#8216;ON&#8217;; (to see the value of these variables [...]]]></description>
			<content:encoded><![CDATA[<p>You can see every SQL command which your mysql database receives.</p>
<p>In your mysql interface you can set where the log file will be written to and then turn on the logging option (change log filename as applicable):<br />
set global general_log_file = &#8216;/var/log/mysql.log&#8217;;<br />
set global general_log = &#8216;ON&#8217;;</p>
<p>(to see the value of these variables type:<br />
show global variables where variable_name like &#8216;general_log%&#8217;;<br />
in your mysql interface)</p>
<p>Now use:<br />
tail -f /var/log/mysql.log</p>
<p>and you&#8217;ll see every new SQL statement which the database receives.</p>
<p>And of course to turn it all off again type this in the :<br />
set global general_log = &#8216;OFF&#8217;;</p>

<div class="jwsharethis">
Share this: 
<br />
<a href="mailto:?subject=How%20to%20see%20what%26%238217%3Bs%20going%20on%20in%20your%20mysql%20database%20%28linux%29&amp;body=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fhow-to-see-whats-going-on-in-your-mysql-database-linux%2F">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/email.png" alt="Share this page via Email" />
</a>
<a target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fhow-to-see-whats-going-on-in-your-mysql-database-linux%2F&amp;title=How+to+see+what%26%238217%3Bs+going+on+in+your+mysql+database+%28linux%29">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/su.png" alt="Share this page via Stumble Upon" />
</a>
<a target="_blank" href="http://digg.com/submit?url=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fhow-to-see-whats-going-on-in-your-mysql-database-linux%2F&amp;title=How+to+see+what%26%238217%3Bs+going+on+in+your+mysql+database+%28linux%29">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/digg.png" alt="Share this page via Digg this" />
</a>
<a target="_blank" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fhow-to-see-whats-going-on-in-your-mysql-database-linux%2F&amp;t=How+to+see+what%26%238217%3Bs+going+on+in+your+mysql+database+%28linux%29">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/fb.png" alt="Share this page via Facebook" />
</a>
<a target="_blank" href="http://twitter.com/intent/tweet?text=I+like+http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fhow-to-see-whats-going-on-in-your-mysql-database-linux%2F&amp;title=How+to+see+what%26%238217%3Bs+going+on+in+your+mysql+database+%28linux%29">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/twitter.png" alt="Share this page via Twitter" />
</a>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.jameswilkesdesign.co.uk/how-to-see-whats-going-on-in-your-mysql-database-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to follow what&#8217;s going on in your Apache server logs (linux)</title>
		<link>http://www.jameswilkesdesign.co.uk/how-to-follow-whats-going-on-on-your-apache-server-logs-linux/</link>
		<comments>http://www.jameswilkesdesign.co.uk/how-to-follow-whats-going-on-on-your-apache-server-logs-linux/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 12:04:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Hints and Tips]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.jameswilkesdesign.co.uk/?p=437</guid>
		<description><![CDATA[At the command line type: tail -f /var/log/apache2/access.log As apache requests are received you&#8217;ll see information about them appear on screen. Can&#8217;t find the log file? Try this: find /var -name access.log 2>/dev/null This searches for the file &#8220;access.log&#8221; in the /var directory and sub-directories. The &#8220;2>..&#8221; on the end is a really neat trick [...]]]></description>
			<content:encoded><![CDATA[<p>At the command line type:</p>
<div class="codeblock">
<div class="code"><code>tail -f /var/log/apache2/access.log<br />
</code></div>
</div>
<p>As apache requests are received you&#8217;ll see information about them appear on screen.</p>
<p><b>Can&#8217;t find the log file?</b><br />
Try this:</p>
<div class="codeblock">
<div class="code"><code>find /var -name access.log 2>/dev/null<br />
</code></div>
</div>
<p>This searches for the file &#8220;access.log&#8221; in the /var directory and sub-directories. The &#8220;2>..&#8221; on the end is a really neat trick which directs all error messages to /dev/null so you don&#8217;t get messages about permission denied on directory traversal.</p>
<p>If this doesn&#8217;t find the file then it&#8217;s probably not in /var so try:</p>
<div class="codeblock">
<div class="code"><code>find / -name access.log 2>/dev/null<br />
</code></div>
</div>
<p>Which will search from /</p>
<p><b>Combine the find command with the tail command</b></p>
<div class="codeblock">
<div class="code"><code>tail -f `find /var -name access.log 2>/dev/null`<br />
</code></div>
</div>
<p>Note the wierd backtick character around the find.</p>
<p><b>Filtering the results</b><br />
If you&#8217;re looking for something in particular then pipe the results through grep to filter on a string:</p>
<div class="codeblock">
<div class="code"><code>tail -f /var/log/apache2/access.log | grep login.php<br />
</code></div>
</div>

<div class="jwsharethis">
Share this: 
<br />
<a href="mailto:?subject=How%20to%20follow%20what%26%238217%3Bs%20going%20on%20in%20your%20Apache%20server%20logs%20%28linux%29&amp;body=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fhow-to-follow-whats-going-on-on-your-apache-server-logs-linux%2F">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/email.png" alt="Share this page via Email" />
</a>
<a target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fhow-to-follow-whats-going-on-on-your-apache-server-logs-linux%2F&amp;title=How+to+follow+what%26%238217%3Bs+going+on+in+your+Apache+server+logs+%28linux%29">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/su.png" alt="Share this page via Stumble Upon" />
</a>
<a target="_blank" href="http://digg.com/submit?url=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fhow-to-follow-whats-going-on-on-your-apache-server-logs-linux%2F&amp;title=How+to+follow+what%26%238217%3Bs+going+on+in+your+Apache+server+logs+%28linux%29">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/digg.png" alt="Share this page via Digg this" />
</a>
<a target="_blank" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fhow-to-follow-whats-going-on-on-your-apache-server-logs-linux%2F&amp;t=How+to+follow+what%26%238217%3Bs+going+on+in+your+Apache+server+logs+%28linux%29">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/fb.png" alt="Share this page via Facebook" />
</a>
<a target="_blank" href="http://twitter.com/intent/tweet?text=I+like+http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fhow-to-follow-whats-going-on-on-your-apache-server-logs-linux%2F&amp;title=How+to+follow+what%26%238217%3Bs+going+on+in+your+Apache+server+logs+%28linux%29">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/twitter.png" alt="Share this page via Twitter" />
</a>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.jameswilkesdesign.co.uk/how-to-follow-whats-going-on-on-your-apache-server-logs-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get the entire page content in WordPress</title>
		<link>http://www.jameswilkesdesign.co.uk/how-to-get-the-entire-page-content-in-wordpress/</link>
		<comments>http://www.jameswilkesdesign.co.uk/how-to-get-the-entire-page-content-in-wordpress/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 17:27:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.jameswilkesdesign.co.uk/?p=421</guid>
		<description><![CDATA[It&#8217;s quite difficult to get the entire page content in a WordPress plugin. I eventually got this code to work. It requires two action handlers, one for the &#8220;send_headers&#8221; action just after the HTTP headers are sent and the HTML is just about to begin. The other handler is in the &#8220;shutdown&#8221; action, when the [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s quite difficult to get the entire page content in a WordPress plugin. I eventually got this code to work. It requires two action handlers, one for the &#8220;send_headers&#8221; action just after the HTTP headers are sent and the HTML is just about to begin. The other handler is in the &#8220;shutdown&#8221; action, when the page is sent. By setting the priority to high on our action handler we can get in, grab the page and change it before it is returned. This gives the whole page from &lt;HTML&gt; to &lt;/HTML&gt;.</p>
<div class="codeblock">
<div class="code">
function jw_callback($buffer) {<br />
   // Change contents of buffer here<br />
   // Just treat it like a string<br />
   return $buffer;<br />
}<br />
function jw_buffer_start() {<br />
   ob_start(&#8220;jw_callback&#8221;);<br />
}<br />
function jw_buffer_end() {<br />
   ob_end_flush();<br />
}<br />
add_action(&#8216;send_headers&#8217;, &#8216;jw_buffer_start&#8217;);<br />
add_action(&#8216;shutdown&#8217;, &#8216;jw_buffer_end&#8217;, 1);
</div>
</div>

<div class="jwsharethis">
Share this: 
<br />
<a href="mailto:?subject=How%20to%20get%20the%20entire%20page%20content%20in%20WordPress&amp;body=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fhow-to-get-the-entire-page-content-in-wordpress%2F">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/email.png" alt="Share this page via Email" />
</a>
<a target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fhow-to-get-the-entire-page-content-in-wordpress%2F&amp;title=How+to+get+the+entire+page+content+in+WordPress">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/su.png" alt="Share this page via Stumble Upon" />
</a>
<a target="_blank" href="http://digg.com/submit?url=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fhow-to-get-the-entire-page-content-in-wordpress%2F&amp;title=How+to+get+the+entire+page+content+in+WordPress">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/digg.png" alt="Share this page via Digg this" />
</a>
<a target="_blank" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fhow-to-get-the-entire-page-content-in-wordpress%2F&amp;t=How+to+get+the+entire+page+content+in+WordPress">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/fb.png" alt="Share this page via Facebook" />
</a>
<a target="_blank" href="http://twitter.com/intent/tweet?text=I+like+http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fhow-to-get-the-entire-page-content-in-wordpress%2F&amp;title=How+to+get+the+entire+page+content+in+WordPress">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/twitter.png" alt="Share this page via Twitter" />
</a>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.jameswilkesdesign.co.uk/how-to-get-the-entire-page-content-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Natural language web design program</title>
		<link>http://www.jameswilkesdesign.co.uk/natural-language-web-design-program/</link>
		<comments>http://www.jameswilkesdesign.co.uk/natural-language-web-design-program/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 10:21:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Beginners]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.jameswilkesdesign.co.uk/?p=416</guid>
		<description><![CDATA[I&#8217;ve been playing around with natural language processing again. It&#8217;s really nice to communicate with a program using text commands rather than messing about with buttons and dialog boxes. I&#8217;ve been working on a natural language web page designer. This is a very rough beta version for testing so have a play and send me [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been playing around with natural language processing again. It&#8217;s really nice to communicate with a program using text commands rather than messing about with buttons and dialog boxes.</p>
<p>I&#8217;ve been working on a <a target="_blank" href="http://www.jameswilkesdesign.co.uk/nlpwebdesigner/">natural language web page designer</a>. This is a very rough beta version for testing so have a play and send me feedback (what works/doesn&#8217;t work, things which aren&#8217;t clear in the helpfile).</p>
<p>Some knowledge of HTML and CSS is useful but not essential. Look at the example code and I&#8217;m sure you&#8217;ll get the idea.</p>

<div class="jwsharethis">
Share this: 
<br />
<a href="mailto:?subject=Natural%20language%20web%20design%20program&amp;body=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fnatural-language-web-design-program%2F">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/email.png" alt="Share this page via Email" />
</a>
<a target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fnatural-language-web-design-program%2F&amp;title=Natural+language+web+design+program">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/su.png" alt="Share this page via Stumble Upon" />
</a>
<a target="_blank" href="http://digg.com/submit?url=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fnatural-language-web-design-program%2F&amp;title=Natural+language+web+design+program">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/digg.png" alt="Share this page via Digg this" />
</a>
<a target="_blank" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fnatural-language-web-design-program%2F&amp;t=Natural+language+web+design+program">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/fb.png" alt="Share this page via Facebook" />
</a>
<a target="_blank" href="http://twitter.com/intent/tweet?text=I+like+http%3A%2F%2Fwww.jameswilkesdesign.co.uk%2Fnatural-language-web-design-program%2F&amp;title=Natural+language+web+design+program">
<img src="http://www.jameswilkesdesign.co.uk/wordpress/wp-content/plugins/jw-share-this/twitter.png" alt="Share this page via Twitter" />
</a>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.jameswilkesdesign.co.uk/natural-language-web-design-program/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

