<?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>Simon Cook &#187; web</title>
	<atom:link href="http://simoncook.org/blog/tag/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://simoncook.org</link>
	<description>Home Page of Simon Cook</description>
	<lastBuildDate>Fri, 11 May 2012 20:28:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Minecraft Tools: SnapShotter 1.0</title>
		<link>http://simoncook.org/blog/2010/08/minecraft-tools-snapshotter-1-0/</link>
		<comments>http://simoncook.org/blog/2010/08/minecraft-tools-snapshotter-1-0/#comments</comments>
		<pubDate>Sat, 21 Aug 2010 10:58:34 +0000</pubDate>
		<dc:creator>Si</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[minecraft]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://simoncook.org/?p=573</guid>
		<description><![CDATA[Although I did post this on the Minecraft Forums, I think I should post this here for anyone who wants to see how simple this script is. What it does is to take a copy of the Minecraft map and copy it to a folder for people to grab (also good for backups when someone [...]]]></description>
			<content:encoded><![CDATA[<p>Although I did post this on the <a href="http://www.minecraftforum.net/viewtopic.php?f=1012&amp;t=27116">Minecraft Forums</a>, I think I should post this here for anyone who wants to see how simple this script is.</p>
<p>What it does is to take a copy of the Minecraft map and copy it to a folder for people to grab (also good for backups when someone TNTs the hell out of your map). If you have any suggestions/improvements, feel free to comment.</p>
<p>(To stop the spamming of rubbish your RSS reader won&#8217;t understand I&#8217;ll put the code under the break.)</p>
<p><span id="more-573"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;"># Minecraft World Snapshotter</span>
<span style="color: #666666; font-style: italic;"># Version 1.0</span>
<span style="color: #666666; font-style: italic;"># Created by Simon Cook (simon@simoncook.org)</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## CONFIG START</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># WORLD contains the name of the directory the Minecraft world is in</span>
<span style="color: #007800;">WORLD</span>=<span style="color: #ff0000;">&quot;world&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># FILENAME contains the name that will be appended with the date</span>
<span style="color: #007800;">FILENAME</span>=<span style="color: #ff0000;">&quot;world2-&quot;</span>
<span style="color: #666666; font-style: italic;"># DATE contains the date formatting to be used for a file name</span>
<span style="color: #007800;">DATE</span>=<span style="color: #ff0000;">&quot;%Y%m%d-%H%M%S&quot;</span>
<span style="color: #666666; font-style: italic;"># TYPE defines the file type to create (valid: tar bz2 7z zip)</span>
<span style="color: #007800;">TYPE</span>=<span style="color: #ff0000;">&quot;7z&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># DEST if valid, the snapshot will be copied or moved to this directory</span>
<span style="color: #007800;">DEST</span>=<span style="color: #ff0000;">&quot;/var/www/simoncook.org/web/static/minecraft/&quot;</span>
<span style="color: #666666; font-style: italic;"># CPMV is whether to move or copy if DEST is valid (valid: cp mv)</span>
<span style="color: #007800;">CPMV</span>=<span style="color: #ff0000;">&quot;cp&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## CONFIG END</span>
<span style="color: #666666; font-style: italic;">## DO NOT EDIT UNDER THIS LINE</span>
&nbsp;
<span style="color: #007800;">FILENAME</span>=<span style="color: #007800;">$FILENAME</span><span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #007800;">$DATE</span><span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$WORLD</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Sorry, World <span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #007800;">$WORLD</span><span style="color: #000099; font-weight: bold;">\&quot;</span> does not exist!&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$TYPE</span>&quot;</span> == <span style="color: #ff0000;">&quot;tar&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #007800;">FILENAME</span>=<span style="color: #007800;">$FILENAME</span>.tar
    <span style="color: #c20cb9; font-weight: bold;">tar</span> cf <span style="color: #007800;">$FILENAME</span> <span style="color: #007800;">$WORLD</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Snapshot created as <span style="color: #007800;">$FILENAME</span>&quot;</span>
<span style="color: #000000; font-weight: bold;">elif</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$TYPE</span>&quot;</span> == <span style="color: #ff0000;">&quot;bz2&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #007800;">FILENAME</span>=<span style="color: #007800;">$FILENAME</span>.tar
    <span style="color: #c20cb9; font-weight: bold;">tar</span> cf <span style="color: #007800;">$FILENAME</span> <span style="color: #007800;">$WORLD</span>
    <span style="color: #c20cb9; font-weight: bold;">bzip2</span> <span style="color: #660033;">-9</span> <span style="color: #007800;">$FILENAME</span>
    <span style="color: #007800;">FILENAME</span>=<span style="color: #007800;">$FILENAME</span>.bz2
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Snapshot created as <span style="color: #007800;">$FILENAME</span>&quot;</span>
<span style="color: #000000; font-weight: bold;">elif</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$TYPE</span>&quot;</span> == <span style="color: #ff0000;">&quot;7z&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #007800;">FILENAME</span>=<span style="color: #007800;">$FILENAME</span>.7z
    7za a <span style="color: #660033;">-mx9</span> <span style="color: #007800;">$FILENAME</span> <span style="color: #007800;">$WORLD</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Snapshot created as <span style="color: #007800;">$FILENAME</span>&quot;</span>
<span style="color: #000000; font-weight: bold;">elif</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$TYPE</span>&quot;</span> == <span style="color: #ff0000;">&quot;zip&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #007800;">FILENAME</span>=<span style="color: #007800;">$FILENAME</span>.zip
    <span style="color: #c20cb9; font-weight: bold;">zip</span> <span style="color: #660033;">-9rq</span> <span style="color: #007800;">$FILENAME</span> <span style="color: #007800;">$WORLD</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Snapshot created as <span style="color: #007800;">$FILENAME</span>&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DEST</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$CPMV</span>&quot;</span> == <span style="color: #ff0000;">&quot;mv&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
        <span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #007800;">$FILENAME</span> <span style="color: #007800;">$DEST</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;File moved to <span style="color: #007800;">$DEST</span>&quot;</span>
    <span style="color: #000000; font-weight: bold;">elif</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$CPMV</span>&quot;</span> == <span style="color: #ff0000;">&quot;cp&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
        <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #007800;">$FILENAME</span> <span style="color: #007800;">$DEST</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;File copied to <span style="color: #007800;">$DEST</span>&quot;</span>
    <span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://simoncook.org/blog/2010/08/minecraft-tools-snapshotter-1-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Gmail Themes</title>
		<link>http://simoncook.org/blog/2008/11/new-gmail-themes/</link>
		<comments>http://simoncook.org/blog/2008/11/new-gmail-themes/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 22:41:33 +0000</pubDate>
		<dc:creator>Si</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.spcook.co.uk/?p=116</guid>
		<description><![CDATA[Just got this update literally a minute ago, and it confused me&#8230; what the hell, my gmail looks different. It appears theres now themes built into it, which seem to be just like iGoogle themes. There are 31 themes at the moment, and I have screenshotted a few for you here: Right now I am [...]]]></description>
			<content:encoded><![CDATA[<p>Just got this update literally a minute ago, and it confused me&#8230; what the hell, my gmail looks different. It appears theres now themes built into it, which seem to be just like iGoogle themes. There are 31 themes at the moment, and I have screenshotted a few for you here:</p>
<p>
<a href='http://simoncook.org/blog/2008/11/new-gmail-themes/gmail1/' title='Default Theme'><img width="150" height="150" src="http://simoncook.org/wordpress/uploads/2008/11/gmail1-150x150.png" class="attachment-thumbnail" alt="Default Theme" title="Default Theme" /></a>
<a href='http://simoncook.org/blog/2008/11/new-gmail-themes/gmail2/' title='&quot;Classic&quot; Theme'><img width="150" height="150" src="http://simoncook.org/wordpress/uploads/2008/11/gmail2-150x150.png" class="attachment-thumbnail" alt="&quot;Classic&quot; Theme" title="&quot;Classic&quot; Theme" /></a>
<a href='http://simoncook.org/blog/2008/11/new-gmail-themes/gmail3/' title='&quot;Steel&quot; Theme'><img width="150" height="150" src="http://simoncook.org/wordpress/uploads/2008/11/gmail3-150x150.png" class="attachment-thumbnail" alt="&quot;Steel&quot; Theme" title="&quot;Steel&quot; Theme" /></a>
<a href='http://simoncook.org/blog/2008/11/new-gmail-themes/gmail4/' title='&quot;Shiny&quot; Theme'><img width="150" height="150" src="http://simoncook.org/wordpress/uploads/2008/11/gmail4-150x150.png" class="attachment-thumbnail" alt="&quot;Shiny&quot; Theme" title="&quot;Shiny&quot; Theme" /></a>
<a href='http://simoncook.org/blog/2008/11/new-gmail-themes/gmail5/' title='&quot;Summer Ocean&quot; Theme'><img width="150" height="150" src="http://simoncook.org/wordpress/uploads/2008/11/gmail5-150x150.png" class="attachment-thumbnail" alt="&quot;Summer Ocean&quot; Theme" title="&quot;Summer Ocean&quot; Theme" /></a>
<a href='http://simoncook.org/blog/2008/11/new-gmail-themes/gmail6/' title='&quot;Planets&quot; Theme'><img width="150" height="150" src="http://simoncook.org/wordpress/uploads/2008/11/gmail6-150x150.png" class="attachment-thumbnail" alt="&quot;Planets&quot; Theme" title="&quot;Planets&quot; Theme" /></a>
<a href='http://simoncook.org/blog/2008/11/new-gmail-themes/gmail7/' title='&quot;Terminal&quot; Theme'><img width="150" height="150" src="http://simoncook.org/wordpress/uploads/2008/11/gmail7-150x150.png" class="attachment-thumbnail" alt="&quot;Terminal&quot; Theme" title="&quot;Terminal&quot; Theme" /></a>
</p>
<p>Right now I am using the Planets theme, its offering me quite a good mix of image and transparency, though I think I may settle on the Shiny theme or some other theme that resembes a normal Google blank page.</p>
<p>Anyone else seeing this at all? To see, go to your Gmail settings page, and look for the &#8220;<em>Themes</em>&#8221; tab.</p>
<p> </p>
<p><strong>Edit</strong>: This is only showing on my Gmail account, not my Google Apps account at the moment, so it appears its a gradual rollout (I have give me beta stuff turned on in Apps)</p>
]]></content:encoded>
			<wfw:commentRss>http://simoncook.org/blog/2008/11/new-gmail-themes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

