<?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>Hanekom Programming &#38; Design</title>
	<atom:link href="http://www.hanekomdesign.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hanekomdesign.com</link>
	<description>Ein weiterer WordPress-Blog</description>
	<lastBuildDate>Thu, 03 May 2012 12:08:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>JQuery no conlict mode</title>
		<link>http://www.hanekomdesign.com/wordpress/jquery-no-conlict-mode/</link>
		<comments>http://www.hanekomdesign.com/wordpress/jquery-no-conlict-mode/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 11:39:30 +0000</pubDate>
		<dc:creator>master</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.hanekomdesign.com/?p=84</guid>
		<description><![CDATA[If you are creating a wordpress theme with some jquery then you should not load your own version of jquery. WordPress comes with an up to date version which is loaded in the &#8220;no conflicts mode&#8221;. if you use the $ sign just wrap your code in this: jQuery&#40;document&#41;.ready&#40;function&#40;$&#41; &#123; // $() will work as [...]]]></description>
			<content:encoded><![CDATA[<p>If you are creating a wordpress theme with some jquery then you should not load your own version of jquery. WordPress comes with an up to date version which is loaded in the &#8220;no conflicts mode&#8221;.</p>
<p>if you use the $ sign just wrap your code in this:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">jQuery<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #006600; font-style: italic;">// $() will work as an alias for jQuery() inside of this function</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.hanekomdesign.com/wordpress/jquery-no-conlict-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dummy HTML for quick designs</title>
		<link>http://www.hanekomdesign.com/html/dummy-html-for-quick-designs/</link>
		<comments>http://www.hanekomdesign.com/html/dummy-html-for-quick-designs/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 21:16:46 +0000</pubDate>
		<dc:creator>master</dc:creator>
				<category><![CDATA[Html]]></category>
		<category><![CDATA[dummy html]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://www.hanekomdesign.com/?p=82</guid>
		<description><![CDATA[You can find just about everything on the web to help you with your designs. Some we use for insparation, some for saving some precious minutes. Here is a great little website to save some time when creating dummy content for a page. html-ipsum.com]]></description>
			<content:encoded><![CDATA[<p>You can find just about everything on the web to help you with your designs. Some we use for insparation, some for saving some precious minutes.</p>
<p>Here is a great little website to save some time when creating dummy content for a page.</p>
<p><a title="html-ipsum.com" href="http://html-ipsum.com/" target="_blank">html-ipsum.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hanekomdesign.com/html/dummy-html-for-quick-designs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Random String Funktion</title>
		<link>http://www.hanekomdesign.com/php/random-string-function/</link>
		<comments>http://www.hanekomdesign.com/php/random-string-function/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 21:07:35 +0000</pubDate>
		<dc:creator>master</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.hanekomdesign.com/?p=78</guid>
		<description><![CDATA[A quick random string function 1 2 3 4 5 6 7 8 9 function  genRandomString&#40;$length&#41; &#123; $characters = '0123456789abcdefghijklmnopqrstuvwxyz';     $string = '';     &#160;      for &#40;$p = 0; $p &#38;lt; $length; $p++&#41; &#123;       $string .= $characters&#91;mt_rand&#40;0, strlen&#40;$characters&#41;&#41;&#93;;      &#125; return $string; &#125;]]></description>
			<content:encoded><![CDATA[<p>A quick random string function</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span>  genRandomString<span style="color: #009900;">&#40;</span><span style="color: #000088;">$length</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$characters</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'0123456789abcdefghijklmnopqrstuvwxyz'</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$string</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>    
&nbsp;
     <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$p</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$p</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span> <span style="color: #000088;">$length</span><span style="color: #339933;">;</span> <span style="color: #000088;">$p</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
       <span style="color: #000088;">$string</span> <span style="color: #339933;">.=</span> <span style="color: #000088;">$characters</span><span style="color: #009900;">&#91;</span><span style="color: #990000;">mt_rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$characters</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
     <span style="color: #009900;">&#125;</span>
     <span style="color: #b1b100;">return</span> <span style="color: #000088;">$string</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.hanekomdesign.com/php/random-string-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Tags in HTML5</title>
		<link>http://www.hanekomdesign.com/html/new-tags-in-html5/</link>
		<comments>http://www.hanekomdesign.com/html/new-tags-in-html5/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 20:53:15 +0000</pubDate>
		<dc:creator>master</dc:creator>
				<category><![CDATA[Html]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[tags]]></category>

		<guid isPermaLink="false">http://www.hanekomdesign.com/?p=72</guid>
		<description><![CDATA[Here is a list of some of the new HTML5 Tags &#60;article&#62; Defines an article. &#60;aside&#62; Defines content aside from the page content &#60;canvas&#62; Defines graphics &#60;command&#62; Defines a command button &#60;datalist&#62; Defines a list of options for input values &#60;details&#62; Defines details of a document &#60;figcaption&#62; Defines the caption of a figure &#60;figure&#62; Defines [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a list of some of the new HTML5 Tags</p>
<p><em>&lt;article&gt;</em> Defines an article.<br />
<em>&lt;aside&gt;</em> Defines content aside from the page content<br />
<em>&lt;canvas&gt;</em> Defines graphics<br />
<em>&lt;command&gt;</em> Defines a command button<br />
<em>&lt;datalist&gt;</em> Defines a list of options for input values<br />
<em>&lt;details&gt;</em> Defines details of a document<br />
<em>&lt;figcaption&gt;</em> Defines the caption of a figure<br />
<em>&lt;figure&gt;</em> Defines a group of media content<br />
<em>&lt;footer&gt;</em> Defines a footer for a section or page<br />
<em>&lt;header&gt;</em> Defines a header for a section or page<br />
<em>&lt;hgroup&gt;</em> Defines information about a section in a document<br />
<em>&lt;keygen&gt;</em> Defines a generated key in a form<br />
<em>&lt;mark&gt;</em> Defines marked text<br />
<em>&lt;meter&gt;</em> Defines measurement within a predefined range<br />
<em>&lt;nav&gt;</em> Defines navigation section<br />
<em>&lt;progress&gt;</em> Defines progress of a task of any kind<br />
<em>&lt;section&gt;</em> Defines a section<br />
<em>&lt;summary&gt;</em> Defines the header of a &#8220;detail&#8221; element<br />
<em>&lt;time&gt;</em> Defines a date/time<br />
<em>&lt;wbr&gt;</em> Defines a possible line-break</p>
<p><strong>Media Elements</strong><br />
<em>&lt;audio&gt;</em> Defines sound content<br />
<em>&lt;video&gt;</em> Defines a video<br />
<em>&lt;source&gt;</em> Defines media resources<br />
<em>&lt;embed&gt;</em> Defines interactive content or plugins</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hanekomdesign.com/html/new-tags-in-html5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Media Queries</title>
		<link>http://www.hanekomdesign.com/css/media-queries/</link>
		<comments>http://www.hanekomdesign.com/css/media-queries/#comments</comments>
		<pubDate>Sat, 14 Jan 2012 11:47:26 +0000</pubDate>
		<dc:creator>master</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[common screen resolutions]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[media queries]]></category>
		<category><![CDATA[responsive design]]></category>
		<category><![CDATA[zooming]]></category>

		<guid isPermaLink="false">http://www.hanekomdesign.com/?p=58</guid>
		<description><![CDATA[Media Queries is a great new addition to CSS. It is used to change you site depending on certain circumstances. One great way of using it is to change the layout of your site depending on the screen sizes. Check out mediaqueri.es for some insperation. Most people automatically think of the great possibilities for mobile [...]]]></description>
			<content:encoded><![CDATA[<p>Media Queries is a great new addition to CSS. It is used to change you site depending on certain circumstances. One great way of using it is to change the layout of your site depending on the screen sizes. Check out <a href="http://mediaqueri.es/" title="mediaqueri.es" target="_blank">mediaqueri.es </a> for some insperation.</p>
<p>Most people automatically think of the great possibilities for mobile devices, but it is also a great feature for someone with a big monitor. Just think of all the space that normally goes to waste!</p>
<p>So how does it work? Well really easily actually. Lets image for the sake of simplicity that you want different  h1 styles for different screen sizes. All you have do is specify the screen size and then inside the media query tag just put you normal css code.</p>
<p>Oh, before I get to the media query code: another useful bit of code for getting rid of the zooming on mobile devices you are optimizing for is this.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;&quot;/&gt;</pre></div></div>

<p>Just paste it in the header section. I have not experienced any difficulties with it on a normal PC/Laptop.<br />
So on to the media query:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@media screen and (max-width: 1024px){</span>
	<span style="color: #cc00cc;">#your-div-id</span> h1<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#CCC</span><span style="color: #00AA00;">&#125;</span>
        <span style="color: #cc00cc;">#your-div-id</span> h2<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#CC0</span><span style="color: #00AA00;">&#125;</span>
 <span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #a1a100;">@media screen and (max-width: 800px){</span>
	<span style="color: #cc00cc;">#your-div-id</span> h1<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#C00</span><span style="color: #00AA00;">&#125;</span>
        <span style="color: #cc00cc;">#your-div-id</span> h2<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#C33</span><span style="color: #00AA00;">&#125;</span>
 <span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>For your convenience I have prepared a few media queries for common screen sizes to copy and paste</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@media screen and (max-width: 1920px){}</span>
<span style="color: #a1a100;">@media screen and (max-width: 1680px){}</span>
<span style="color: #a1a100;">@media screen and (max-width: 1600px){}</span>
<span style="color: #a1a100;">@media screen and (max-width: 1440px){}</span>
<span style="color: #a1a100;">@media screen and (max-width: 1366px){}</span>
<span style="color: #a1a100;">@media screen and (max-width: 1280px){}</span>
<span style="color: #a1a100;">@media screen and (max-width: 1152px){}</span>
<span style="color: #a1a100;">@media screen and (max-width: 1024px){}</span>
<span style="color: #a1a100;">@media screen and (max-width: 800px){}</span>
<span style="color: #a1a100;">@media screen and (max-width: 640px){}</span>
<span style="color: #a1a100;">@media screen and (max-width: 480px){}</span>
<span style="color: #a1a100;">@media screen and (max-width: 400px){}</span>
<span style="color: #a1a100;">@media screen and (max-width: 320px){}</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.hanekomdesign.com/css/media-queries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backing up a folder on a remote server</title>
		<link>http://www.hanekomdesign.com/general/backing-up-a-folder-on-a-remote-server/</link>
		<comments>http://www.hanekomdesign.com/general/backing-up-a-folder-on-a-remote-server/#comments</comments>
		<pubDate>Sat, 03 Dec 2011 12:37:30 +0000</pubDate>
		<dc:creator>master</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[remote server]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.hanekomdesign.com/?p=38</guid>
		<description><![CDATA[Backing up the filesystem from a remote machine is easier than most people think. In the proccess you might as well backup your mysql datbase as well. Terminologies that I will use The server with the files you want to back up : live-server The server you want to back-up to : backup-server Assumptions You [...]]]></description>
			<content:encoded><![CDATA[<p>Backing up the filesystem from a remote machine is easier than most people think. In the proccess you might as well backup your mysql datbase as well.</p>
<p><strong>Terminologies that I will use</strong><br />
The server with the files you want to back up : <em>live-server</em><br />
The server you want to back-up to : <em>backup-server</em></p>
<p><strong>Assumption</strong>s<br />
You have SSH access to the remote server<br />
Your username for the<em> live-server</em> is <em>USERNAME</em></p>
<p>OK so lets get going</p>
<p><strong>1.Settting up the passwordless SSH login</strong></p>
<p>Log into your live-server via the terminal (I use putty for this) and type</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh-keygen</span> <span style="color: #660033;">-t</span> dsa</pre></div></div>

<p>This will produce a line saying something like <em>&#8220;Generating public/private dsa key pair.&#8221;</em> followed by <em>&#8220;Enter file in which to save the key: (.ssh/id_dsa)&#8221;.</em></p>
<p>Press enter. It will then ask for a passphrase and to repeat the passphrase. Leave this blank by just pressing enter twice.</p>
<p>It will create a directory called .ssh and 2 files inside<em> id_dsa</em> and <em>id_dsa.pub</em>. NEVER let your <em>id_dsa</em> file get public. That will give free reign to your site. To help prevent this type</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> .ssh
 and
 <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">600</span> id_dsa</pre></div></div>

<p>You public keys are now created. The next step it to copy the id_dsa.pub file to the backup-server. To do this type</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">scp</span> id_dsa.pub USERNAME<span style="color: #000000; font-weight: bold;">@</span>live-server:</pre></div></div>

<p>(note the &#8220;:&#8221; ) and enter the password for the live-server. This copies the <em>id_dsa.pub</em> file to the <em>live-server</em>. Now log into the live-server by typing</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> live-server <span style="color: #660033;">-l</span> USERNAME</pre></div></div>

<p>There should be an <em>id_dsa.pub</em> in your home directory. You should append it to the last line of the file <em>authorized_keys2</em> in your <em>.ssh/</em> directory. Dont worry if you dont have an authorized_keys2 fíle, just type:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cat</span> id_dsa.pub <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; .<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>authorized_keys2</pre></div></div>

<p>The public key is now set up. To test if it works type</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">logout</span></pre></div></div>

<p>You are now back on the <em>backup-server</em>. Now type</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> live-server <span style="color: #660033;">-l</span> USERNAME</pre></div></div>

<p>You should have logged into the<em> live-server</em> without having to type your password.</p>
<p>The steps without the explanations</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">backup-server: <span style="color: #c20cb9; font-weight: bold;">ssh-keygen</span> <span style="color: #660033;">-t</span> dsa
backup-server: <span style="color: #7a0874; font-weight: bold;">cd</span> .ssh
backup-server: <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">600</span> id_dsa
backup-server: <span style="color: #c20cb9; font-weight: bold;">scp</span> id_dsa.pub USERNAME<span style="color: #000000; font-weight: bold;">@</span>live-server:
backup-server: <span style="color: #c20cb9; font-weight: bold;">ssh</span> live-server <span style="color: #660033;">-l</span> USERNAME
live-server : <span style="color: #c20cb9; font-weight: bold;">cat</span> id_dsa.pub <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; .<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>authorized_keys2
live-server : <span style="color: #7a0874; font-weight: bold;">logout</span>
backup-server: <span style="color: #c20cb9; font-weight: bold;">ssh</span> live-server <span style="color: #660033;">-l</span> USERNAME</pre></div></div>

<p><strong>2. The backup script</strong></p>
<p>I sometimes run the backup-script from a php file using the shell_exec() command. This gives me the flexibilty to to do some other things at the same time. For example I can make 7 folders and make a weeks backup. Or run the DB backup at the same time. That bit is up to you. Anyway here is the steps.</p>
<p>I assume that you want to make the backup in a folder called backupdir. So in the root on the backup-server type</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> backupdir</pre></div></div>

<p>Now the actuell sync command. This will start the backup! If you want to run this from a shell script put it into the script file. If you want to run it form a php file save it in the with the shell_exec()</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rsync <span style="color: #660033;">-avz</span> <span style="color: #660033;">-e</span> <span style="color: #c20cb9; font-weight: bold;">ssh</span> USERNAME<span style="color: #000000; font-weight: bold;">@</span>live-server:<span style="color: #000000; font-weight: bold;">/</span>full<span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>dir<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>full<span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>backupdir<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>If you don&#8217;t know the /full/path/ you can also type pwd (means &#8220;print working directory&#8221;)</p>
<p>If you want to backup your DB at the same type use the following. It can also go into shell_exec()</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> USERNAME<span style="color: #000000; font-weight: bold;">@</span>liveserver <span style="color: #ff0000;">'mysqldump -q -u DB_USER --password=DB_PASS DB_NAME -h DB_HOST'</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>full<span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>backupdir<span style="color: #000000; font-weight: bold;">/</span>backup.sql</pre></div></div>

<p><strong>3. Automation</strong></p>
<p>Now you just need to automate it with crontab, but that is not disscussed in this tutorial.<br />
Here a few links to get started:</p>
<p><a title="Cronjobs" href="http://service.futurequest.net/index.php?_m=knowledgebase&amp;_a=viewarticle&amp;kbarticleid=30" target="_blank">aota.net</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hanekomdesign.com/general/backing-up-a-folder-on-a-remote-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Code Syntax Highlighting</title>
		<link>http://www.hanekomdesign.com/wordpress/plugins/code-syntax-highlighting/</link>
		<comments>http://www.hanekomdesign.com/wordpress/plugins/code-syntax-highlighting/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 21:07:40 +0000</pubDate>
		<dc:creator>master</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[syntax]]></category>

		<guid isPermaLink="false">http://www.hanekomdesign.com/?p=23</guid>
		<description><![CDATA[A brilliant little plugin to use in wordpress for syntax highlighting is WP-Syntax. All you have to do is install the plugin and the add &#60;pre lang=&#34;html&#34;&#62;&#60;/pre&#62; around the code you want to highlight. Want to show line numbers show you can explain your code, or do you already have html entities escaped&#8230; No problem [...]]]></description>
			<content:encoded><![CDATA[<p>A brilliant little plugin to use in wordpress for syntax highlighting is <a title="WP-Syntax" href="http://wordpress.org/extend/plugins/wp-syntax/" target="_blank">WP-Syntax</a>.</p>
<p>All you have to do is install the plugin and the add</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;pre lang=&quot;html&quot;&gt;&lt;/pre&gt;</pre></div></div>

<p>around the code you want to highlight.<br />
Want to show line numbers show you can explain your code, or do you already have html entities escaped&#8230; No problem</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;pre lang=&quot;html&quot; line=&quot;1&quot; escaped=&quot;true&quot; &gt;&lt;/pre&gt;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.hanekomdesign.com/wordpress/plugins/code-syntax-highlighting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Embedding Fonts</title>
		<link>http://www.hanekomdesign.com/css/embedding-fonts/</link>
		<comments>http://www.hanekomdesign.com/css/embedding-fonts/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 20:46:47 +0000</pubDate>
		<dc:creator>master</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[.otf]]></category>
		<category><![CDATA[@font-face]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.hanekomdesign.com/?p=15</guid>
		<description><![CDATA[With the rise of CSS3 it is now possible to add different fonts to your website. Instead of just using one of the web-safe fonts which we have come to love you can now embed any open-type font ( .otf ), and it is really easy. First you have to define your font using @font-face [...]]]></description>
			<content:encoded><![CDATA[<p>With the rise of CSS3 it is now possible to add different fonts to your website. Instead of just using one of the web-safe fonts which we have come to love you can now embed any open-type font ( .otf ), and it is really easy.</p>
<p>First you have to define your font using @font-face like so</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@font-face {</span>
 <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> FontName<span style="color: #00AA00;">;</span>
 src<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'fonts/FontName.otf'</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
 <span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>and then you just use it like any other font for example</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #3333ff;">:FontName</span><span style="color: #00AA00;">,</span> Arial<span style="color: #00AA00;">,</span> Verdana<span style="color: #00AA00;">,</span> Helvetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span></pre></div></div>

<p>One thing to remember though is to check if you are allowed to embed the font.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hanekomdesign.com/css/embedding-fonts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

