<?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>Marius van Witzenburg</title>
	<atom:link href="http://mariusvw.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mariusvw.com</link>
	<description>We fight for our survival, we fight!</description>
	<lastBuildDate>Tue, 27 Dec 2011 10:35:27 +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>Apache Error Codes</title>
		<link>http://mariusvw.com/2011/11/11/apache-error-codes/</link>
		<comments>http://mariusvw.com/2011/11/11/apache-error-codes/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 15:10:37 +0000</pubDate>
		<dc:creator>mariusvw</dc:creator>
				<category><![CDATA[BSD / Linux / Unix]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Codes]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://kitara.nl/?p=130</guid>
		<description><![CDATA[With the function below you can add your own custom actions to error statuses of Apache. Lets say you want a custom 404 error page. You could redirect a user upon a 404 error or show a complete different layout. /** * HTTP Protocol defined status codes * @param int $num */ function HTTPStatus&#40;$num&#41; &#123; [...]]]></description>
			<content:encoded><![CDATA[<p>With the function below you can add your own custom actions to error statuses of Apache.</p>
<p>Lets say you want a custom 404 error page. You could redirect a user upon a 404 error or show a complete different layout.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009933; font-style: italic;">/**
 * HTTP Protocol defined status codes
 * @param int $num
 */</span>
<span style="color: #000000; font-weight: bold;">function</span> HTTPStatus<span style="color: #009900;">&#40;</span><span style="color: #000088;">$num</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   static <span style="color: #000088;">$http</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span> <span style="color: #009900;">&#40;</span>
       <span style="color: #cc66cc;">100</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 100 Continue&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">101</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 101 Switching Protocols&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">200</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 200 OK&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">201</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 201 Created&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">202</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 202 Accepted&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">203</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 203 Non-Authoritative Information&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">204</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 204 No Content&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">205</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 205 Reset Content&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">206</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 206 Partial Content&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">300</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 300 Multiple Choices&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">301</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 301 Moved Permanently&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">302</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 302 Found&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">303</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 303 See Other&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">304</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 304 Not Modified&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">305</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 305 Use Proxy&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">307</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 307 Temporary Redirect&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">400</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 400 Bad Request&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">401</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 401 Unauthorized&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">402</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 402 Payment Required&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">403</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 403 Forbidden&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">404</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 404 Not Found&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">405</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 405 Method Not Allowed&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">406</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 406 Not Acceptable&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">407</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 407 Proxy Authentication Required&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">408</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 408 Request Time-out&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">409</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 409 Conflict&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">410</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 410 Gone&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">411</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 411 Length Required&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">412</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 412 Precondition Failed&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">413</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 413 Request Entity Too Large&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">414</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 414 Request-URI Too Large&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">415</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 415 Unsupported Media Type&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">416</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 416 Requested range not satisfiable&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">417</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 417 Expectation Failed&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">500</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 500 Internal Server Error&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">501</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 501 Not Implemented&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">502</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 502 Bad Gateway&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">503</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 503 Service Unavailable&quot;</span><span style="color: #339933;">,</span>
       <span style="color: #cc66cc;">504</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;HTTP/1.1 504 Gateway Time-out&quot;</span>
   <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
   <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$http</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$num</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>You can download this <a href="http://kitara.nl/wp-content/uploads/2011/06/404.zip">404 error page example</a> to play with.</p>
]]></content:encoded>
			<wfw:commentRss>http://mariusvw.com/2011/11/11/apache-error-codes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to easy CVS update your SRC and Ports tree with a simple Bash script (v2)</title>
		<link>http://mariusvw.com/2011/09/26/how-to-easy-cvs-update-your-src-and-ports-tree-with-a-simple-bash-script-v2/</link>
		<comments>http://mariusvw.com/2011/09/26/how-to-easy-cvs-update-your-src-and-ports-tree-with-a-simple-bash-script-v2/#comments</comments>
		<pubDate>Mon, 26 Sep 2011 20:29:22 +0000</pubDate>
		<dc:creator>mariusvw</dc:creator>
				<category><![CDATA[BSD / Linux / Unix]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[CVS]]></category>
		<category><![CDATA[CVSup]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Ports]]></category>
		<category><![CDATA[Src]]></category>
		<category><![CDATA[Upgrade]]></category>

		<guid isPermaLink="false">http://kitara.nl/?p=6473</guid>
		<description><![CDATA[This is an update to this post: How to easy CVS update your SRC and Ports tree with a simple Bash script I adjusted the script to use the local csup version of the FreeBSD World system and moved the cvsup files to /etc. First install a simple tool to get the fastest cvs server [...]]]></description>
			<content:encoded><![CDATA[<p>This is an update to this post: <a href="http://kitara.nl/2011/07/10/how-to-easy-cvs-update-your-src-and-ports-tree-with-a-simple-bash-script/" title="How to easy CVS update your SRC and Ports tree with a simple Bash script">How to easy CVS update your SRC and Ports tree with a simple Bash script</a></p>
<p>I adjusted the script to use the local csup version of the FreeBSD World system and moved the cvsup files to /etc.</p>
<p>First install a simple tool to get the fastest cvs server</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">pkg_add -r fastest_cvsup</pre></div></div>

<p>Or from Ports (if you have the collection already):</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">cd /usr/ports/sysutils/fastest_cvsup/
make install clean</pre></div></div>

<p>Setup config and binary to easy update the repository for SRC and PORTS.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">mkdir /etc/cvsup
cd /usr/share/examples/cvsup
cp stable-supfile /etc/cvsup
cp ports-supfile /etc/cvsup
cp doc-supfile /etc/cvsup
cd /etc/cvsup</pre></div></div>

<p>Edit <strong>stable-supfile</strong> and change:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">*default release=cvs tag=RELENG_8_2</pre></div></div>

<p>Set this to your release version.</p>
<p>Edit <strong>/usr/local/sbin/runcvsup</strong> and add:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #007800;">arg</span>=$<span style="color: #000000; font-weight: bold;">@</span>
<span style="color: #007800;">sType</span>=<span style="color: #ff0000;">&quot;tld,nl&quot;</span> <span style="color: #666666; font-style: italic;"># Can be: all / tld / tld,nl,de,fr,us</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #007800;">SERVER</span>=<span style="color: #000000; font-weight: bold;">`/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>fastest_cvsup <span style="color: #660033;">-q</span> <span style="color: #660033;">-c</span> <span style="color: #007800;">$sType</span><span style="color: #000000; font-weight: bold;">`</span>; <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Using server: <span style="color: #007800;">${SERVER}</span>&quot;</span>
    <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$arg</span>&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
    <span style="color: #ff0000;">&quot;stable&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Updating: stable&quot;</span>
        <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>csup <span style="color: #660033;">-L</span> <span style="color: #000000;">2</span> <span style="color: #660033;">-g</span> <span style="color: #660033;">-z</span> <span style="color: #660033;">-h</span> <span style="color: #800000;">${SERVER}</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>cvsup<span style="color: #000000; font-weight: bold;">/</span>stable-supfile
    <span style="color: #000000; font-weight: bold;">;;</span>
    <span style="color: #ff0000;">&quot;ports&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Updating: ports&quot;</span>
        <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>csup <span style="color: #660033;">-L</span> <span style="color: #000000;">2</span> <span style="color: #660033;">-g</span> <span style="color: #660033;">-z</span> <span style="color: #660033;">-h</span> <span style="color: #800000;">${SERVER}</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>cvsup<span style="color: #000000; font-weight: bold;">/</span>ports-supfile
    <span style="color: #000000; font-weight: bold;">;;</span>
    <span style="color: #ff0000;">&quot;doc&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>  
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Updating: doc&quot;</span>
        <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>csup <span style="color: #660033;">-L</span> <span style="color: #000000;">2</span> <span style="color: #660033;">-g</span> <span style="color: #660033;">-z</span> <span style="color: #660033;">-h</span> <span style="color: #800000;">${SERVER}</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>cvsup<span style="color: #000000; font-weight: bold;">/</span>doc-supfile
    <span style="color: #000000; font-weight: bold;">;;</span>
    <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Updating: all&quot;</span>
        <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>csup <span style="color: #660033;">-L</span> <span style="color: #000000;">2</span> <span style="color: #660033;">-g</span> <span style="color: #660033;">-z</span> <span style="color: #660033;">-h</span> <span style="color: #800000;">${SERVER}</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>cvsup<span style="color: #000000; font-weight: bold;">/</span>stable-supfile
        <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>csup <span style="color: #660033;">-L</span> <span style="color: #000000;">2</span> <span style="color: #660033;">-g</span> <span style="color: #660033;">-z</span> <span style="color: #660033;">-h</span> <span style="color: #800000;">${SERVER}</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>cvsup<span style="color: #000000; font-weight: bold;">/</span>ports-supfile
        <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>csup <span style="color: #660033;">-L</span> <span style="color: #000000;">2</span> <span style="color: #660033;">-g</span> <span style="color: #660033;">-z</span> <span style="color: #660033;">-h</span> <span style="color: #800000;">${SERVER}</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>cvsup<span style="color: #000000; font-weight: bold;">/</span>doc-supfile
    <span style="color: #000000; font-weight: bold;">;;</span>
    <span style="color: #000000; font-weight: bold;">esac</span>    
<span style="color: #000000; font-weight: bold;">fi</span></pre></div></div>

<p>Set the right permissions:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">chmod 700 /usr/local/sbin/runcvsup</pre></div></div>

<p>Update everything:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">runcvsup</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://mariusvw.com/2011/09/26/how-to-easy-cvs-update-your-src-and-ports-tree-with-a-simple-bash-script-v2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to &#8220;disable&#8221; the VLAN1 on a Cisco SLM 2048 switch</title>
		<link>http://mariusvw.com/2011/08/27/how-to-disable-the-vlan1-on-a-cisco-slm-2048-switch/</link>
		<comments>http://mariusvw.com/2011/08/27/how-to-disable-the-vlan1-on-a-cisco-slm-2048-switch/#comments</comments>
		<pubDate>Sat, 27 Aug 2011 14:33:35 +0000</pubDate>
		<dc:creator>mariusvw</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Disable]]></category>
		<category><![CDATA[Management]]></category>
		<category><![CDATA[SLM2048]]></category>
		<category><![CDATA[VLAN]]></category>

		<guid isPermaLink="false">http://kitara.nl/?p=6420</guid>
		<description><![CDATA[I have been busy with this but with a wrong way of thinking... How you can disable it? Simple, leave it on VLAN1 and move all ports except one to another VLAN. You can do this in the port configuration, set the ports to your own VLAN by changing the PVID (VLAN ID).]]></description>
			<content:encoded><![CDATA[<p>I have been busy with this but with a wrong way of thinking...</p>
<p>How you can disable it? Simple, leave it on VLAN1 and move all ports except one to another VLAN.</p>
<p>You can do this in the port configuration, set the ports to your own VLAN by changing the PVID (VLAN ID).</p>
]]></content:encoded>
			<wfw:commentRss>http://mariusvw.com/2011/08/27/how-to-disable-the-vlan1-on-a-cisco-slm-2048-switch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ixy has passed away this morning. Rest in peace!</title>
		<link>http://mariusvw.com/2011/08/15/ixy-has-passed-away-this-morning-rest-in-peace/</link>
		<comments>http://mariusvw.com/2011/08/15/ixy-has-passed-away-this-morning-rest-in-peace/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 08:27:37 +0000</pubDate>
		<dc:creator>mariusvw</dc:creator>
				<category><![CDATA[Lovebirds]]></category>
		<category><![CDATA[Agapornis]]></category>
		<category><![CDATA[Brains]]></category>
		<category><![CDATA[Dead]]></category>
		<category><![CDATA[Died]]></category>
		<category><![CDATA[Heart]]></category>
		<category><![CDATA[Ixy]]></category>
		<category><![CDATA[Lovebird]]></category>
		<category><![CDATA[RIP]]></category>

		<guid isPermaLink="false">http://kitara.nl/?p=6397</guid>
		<description><![CDATA[This came totally unexpected. Ixy is the most busy bird of the two and she seemed to be completely healthy. A good feather pack, good appetite, playful, good mood and always exploring new things. My girlfriend was already making them new food when I came downstairs and like I do every morning is say hi [...]]]></description>
			<content:encoded><![CDATA[<p>This came totally unexpected. Ixy is the most busy bird of the two and she seemed to be completely healthy. A good feather pack, good appetite, playful, good mood and always exploring new things.</p>
<p>My girlfriend was already making them new food when I came downstairs and like I do every morning is say hi to them.<br />
Ixy grabbed the cage which I did not understand why, then she flipped back her neck and reacted really strange... Not even 2 seconds later she felt of the stick she was holding with her other leg on the rope, rolled over that rope and felt on the cage floor. I picked her up as fast as I could but it was already to late for her... She made some poor sounds like she was still hanging in there but this took for about 5 seconds and then she became completely quiet. I checked her life signs by listening and checking her pupils but she was already gone <img src='http://mariusvw.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>We got Ixy on 22-01-2011 from the shelter, we had no idea how old she was, she lived till 15-08-2011. Rest in peace our loved Ixy!</p>
<p>Here you see Iggy looking at us after he tried to wake Ixy.</p>
<p><a href="http://kitara.nl/wp-content/uploads/2011/08/DSC_2481.jpg"><img src="http://kitara.nl/wp-content/uploads/2011/08/DSC_2481-512x310.jpg" alt="" title="Agapornis Ixy, Born ??-??-???? Died 15-08-2011" width="512" height="310" class="alignnone size-medium wp-image-6399" /></a></p>
<p>Here some pictures of her being still alive.</p>
<p><a href="http://kitara.nl/wp-content/uploads/2011/08/DSC_0007.jpg"><img src="http://kitara.nl/wp-content/uploads/2011/08/DSC_0007-150x150.jpg" alt="" title="Agapornis Ixy sitting in a wooden house" width="150" height="150" class="alignnone size-thumbnail wp-image-6404" /></a>&nbsp;&nbsp;&nbsp;<a href="http://kitara.nl/wp-content/uploads/2011/08/DSC_0060.jpg"><img src="http://kitara.nl/wp-content/uploads/2011/08/DSC_0060-150x150.jpg" alt="" title="Agapornis Ixy sitting on the closet" width="150" height="150" class="alignnone size-thumbnail wp-image-6405" /></a></p>
<p><a href="http://kitara.nl/wp-content/uploads/2011/08/DSC_1347.jpg"><img src="http://kitara.nl/wp-content/uploads/2011/08/DSC_1347-150x150.jpg" alt="" title="Agapornis Ixy a dragon lamp" width="150" height="150" class="alignnone size-thumbnail wp-image-6406" /></a>&nbsp;&nbsp;&nbsp;<a href="http://kitara.nl/wp-content/uploads/2011/08/DSC_1659.jpg"><img src="http://kitara.nl/wp-content/uploads/2011/08/DSC_1659-150x150.jpg" alt="" title="Agapornis Ixy enjoying her own look in the camera lens" width="150" height="150" class="alignnone size-thumbnail wp-image-6407" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://mariusvw.com/2011/08/15/ixy-has-passed-away-this-morning-rest-in-peace/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Ixy and her &#8220;What are you looking at!&#8221; look to the camera</title>
		<link>http://mariusvw.com/2011/07/23/ixy-and-her-what-are-you-looking-at-look-to-the-camera/</link>
		<comments>http://mariusvw.com/2011/07/23/ixy-and-her-what-are-you-looking-at-look-to-the-camera/#comments</comments>
		<pubDate>Sat, 23 Jul 2011 14:52:00 +0000</pubDate>
		<dc:creator>mariusvw</dc:creator>
				<category><![CDATA[Lovebirds]]></category>
		<category><![CDATA[Agapornis]]></category>
		<category><![CDATA[Camera]]></category>
		<category><![CDATA[Interest]]></category>
		<category><![CDATA[Looking]]></category>

		<guid isPermaLink="false">http://kitara.nl/?p=6356</guid>
		<description><![CDATA[It seems that Ixy likes seeing her self in the camera... She even doesn't get scared when I come with my hands near her. Normally she flies away even if you just point at her]]></description>
			<content:encoded><![CDATA[<p>It seems that Ixy likes seeing her self in the camera... She even doesn't get scared when I come with my hands near her. Normally she flies away even if you just point at her <img src='http://mariusvw.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><a href="http://kitara.nl/wp-content/uploads/2011/07/Ixy-what-are-you-looking-at.jpg"><img src="http://kitara.nl/wp-content/uploads/2011/07/Ixy-what-are-you-looking-at-512x341.jpg" alt="" title="Ixy, what are you looking at?" width="512" height="341" class="alignnone size-medium wp-image-6357" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://mariusvw.com/2011/07/23/ixy-and-her-what-are-you-looking-at-look-to-the-camera/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP Performance &#8211; isset() versus empty() versus PHP Notices</title>
		<link>http://mariusvw.com/2011/07/17/php-performance-isset-versus-empty-versus-php-notices/</link>
		<comments>http://mariusvw.com/2011/07/17/php-performance-isset-versus-empty-versus-php-notices/#comments</comments>
		<pubDate>Sun, 17 Jul 2011 14:01:14 +0000</pubDate>
		<dc:creator>mariusvw</dc:creator>
				<category><![CDATA[Webdevelopment]]></category>
		<category><![CDATA[Empty]]></category>
		<category><![CDATA[Isset]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://kitara.nl/?p=217</guid>
		<description><![CDATA[I’m cleaning up a lot of PHP code and always program with PHP error_reporting set to E_ALL and display_errors turned on so that I make sure to catch any PHP messages that come up. Since starting on this site, I have fixed literally hundreds (maybe thousands) of PHP Notices about using uninitialized variables and non-existent [...]]]></description>
			<content:encoded><![CDATA[<p>I’m cleaning up a lot of PHP code and always program with PHP error_reporting set to E_ALL and display_errors turned on so that I make sure to catch any PHP messages that come up. Since starting on this site, I have fixed literally hundreds (maybe thousands) of PHP Notices about using uninitialized variables and non-existent array indexes.</p>
<p>I have been fixing problems like this where $somevar is sometimes undefined:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$somevar</span><span style="color: #009900;">&#41;</span></pre></div></div>

<p>by changing it to:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$somevar</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$somevar</span><span style="color: #009900;">&#41;</span></pre></div></div>

<p>This successfully gets rid of the NOTICEs, but adds some overhead because PHP has to perform two checks. After fixing a lot of this in this manner, I’ve noticed that the pages seem to be generated a little slower.</p>
<p>So, to provide some conclusive results to myself, I wrote up a quick benchmarking script - available at <a href="http://www.brandonchecketts.com/downloads/php_empty_benchmark.php">php_empty_benchmark.php</a>. It goes through 1,000,000 tests using each of these methods:</p>
<ol>
<li>if ($a) - This generates a notice if $a is not set</li>
<li>if (isset($a)) - A simple clean way to check if the variable is set (note that it is not equivalent to the one above)</li>
<li>if (isset($a) &amp;&amp; ($a) - The one that I have been using which is equivalent to if($a), but doesn’t generate a notice.</li>
<li>if (!empty($a)) - This is functionally equivalent to if($a), but doesn’t generate a notice.</li>
</ol>
<p>It measures the time to perform 1 million tests using a defined percentage of values that are set.  It then computes the difference as a percentage of the time taken for the original test (the one that generates the notices).   A ‘diff’ of 100 means that the execution time is the same, greater than 100 means that it is faster, and less than 100 means that it is slower. A typical test produced these results:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">With NOTICE: 0.19779300689697
With isset:  0.19768500328064 / Diff: 100.05463419811
With both:   0.21704912185669 / Diff: 91.128222590815
With !empty: 0.19779801368713 / Diff: 99.997468735875</pre></div></div>

<p>In summary, using the if (isset($a) &amp;&amp; $a) syntax is about 8-10% slower than generating the PHP Notice. Using !empty() should be a drop-in replacement that doesn’t generate the notice and has virtually no performance impact. Using ifset() also has no performance impact, but is not exactly the same as ‘if($a)’ since isset() will return true if the variable is set to a false value. I included it here, because it often make the code a little more readable than the !empty($a) syntax. For example:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$myvalue</span> <span style="color: #339933;">=</span> <span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'myvalue'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> ? <span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'myvalue'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span></pre></div></div>

<p>Versus</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$myvalue</span> <span style="color: #339933;">=</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'myvalue'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> ? <span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'myvalue'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span></pre></div></div>

<p>Source:<br />
<a href="http://www.brandonchecketts.com/archives/php-performance-isset-versus-empty-versus-php-notices">http://www.brandonchecketts.com/archives/php-performance-isset-versus-empty-versus-php-notices</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mariusvw.com/2011/07/17/php-performance-isset-versus-empty-versus-php-notices/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to download sexdumpert.nl photo&#8217;s or video&#8217;s with a simple Bash script</title>
		<link>http://mariusvw.com/2011/07/17/how-to-download-sexdumpert-nl-photos-or-videos-with-a-simple-bash-script/</link>
		<comments>http://mariusvw.com/2011/07/17/how-to-download-sexdumpert-nl-photos-or-videos-with-a-simple-bash-script/#comments</comments>
		<pubDate>Sun, 17 Jul 2011 13:38:53 +0000</pubDate>
		<dc:creator>mariusvw</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[Dumpert]]></category>
		<category><![CDATA[Movie]]></category>
		<category><![CDATA[Photo]]></category>
		<category><![CDATA[Porn]]></category>
		<category><![CDATA[Sex]]></category>

		<guid isPermaLink="false">http://kitara.nl/?p=235</guid>
		<description><![CDATA[Here is the simple script which downloads all photos from sexdumpert.nl Just save the file as run.sh in a directory and run it. It will save all photos found. #!/bin/bash &#160; if &#91; ! -d 'files' &#93; then mkdir files fi &#160; for &#40;&#40;a = 0; a &#60;= 999; a++&#41;&#41; do ca=`printf &#34;%03d&#34; $a` for [...]]]></description>
			<content:encoded><![CDATA[<p>Here is the simple script which downloads all photos from sexdumpert.nl</p>
<p>Just save the file as run.sh in a directory and run it. It will save all photos found.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">'files'</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;">mkdir</span> files
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>a = <span style="color: #000000;">0</span>; a <span style="color: #000000; font-weight: bold;">&lt;</span>= <span style="color: #000000;">999</span>; a++<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">do</span>
    <span style="color: #007800;">ca</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;%03d&quot;</span> <span style="color: #007800;">$a</span><span style="color: #000000; font-weight: bold;">`</span>
    <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>b = <span style="color: #000000;">0</span>; b <span style="color: #000000; font-weight: bold;">&lt;</span>= <span style="color: #000000;">999</span>; b++<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
    <span style="color: #000000; font-weight: bold;">do</span>
        <span style="color: #007800;">cb</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;%03d&quot;</span> <span style="color: #007800;">$b</span><span style="color: #000000; font-weight: bold;">`</span>
        <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>c = <span style="color: #000000;">0</span>; c <span style="color: #000000; font-weight: bold;">&lt;</span>= <span style="color: #000000;">999</span>; <span style="color: #c20cb9; font-weight: bold;">c++</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
        <span style="color: #000000; font-weight: bold;">do</span>      
            <span style="color: #007800;">cc</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;%03d&quot;</span> <span style="color: #007800;">$c</span><span style="color: #000000; font-weight: bold;">`</span>
            <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>d = <span style="color: #000000;">0</span>; d <span style="color: #000000; font-weight: bold;">&lt;</span>= <span style="color: #000000;">999</span>; d++<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
            <span style="color: #000000; font-weight: bold;">do</span>      
                <span style="color: #007800;">cd</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;%03d&quot;</span> <span style="color: #007800;">$d</span><span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
                <span style="color: #007800;">url</span>=<span style="color: #ff0000;">&quot;http://mediadata.sexdumpert.nl/<span style="color: #007800;">$ca</span>/<span style="color: #007800;">$cb</span>/<span style="color: #007800;">$cc</span>/<span style="color: #007800;">$cd</span>.jpg&quot;</span>
                <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$url</span>
                <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>curl <span style="color: #007800;">$url</span> <span style="color: #660033;">-o</span> <span style="color: #ff0000;">&quot;files/<span style="color: #007800;">$ca</span>-<span style="color: #007800;">$cb</span>-<span style="color: #007800;">$cc</span>-<span style="color: #007800;">$cd</span>.flv&quot;</span>
&nbsp;
            <span style="color: #000000; font-weight: bold;">done</span>    
        <span style="color: #000000; font-weight: bold;">done</span>    
    <span style="color: #000000; font-weight: bold;">done</span>    
<span style="color: #000000; font-weight: bold;">done</span></pre></div></div>

<p>Here is the simple script which downloads all video's from sexdumpert.nl</p>
<p>Just save the file as run.sh in a directory and run it. It will save all video's found.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">'files'</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;">mkdir</span> files
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>a = <span style="color: #000000;">0</span>; a <span style="color: #000000; font-weight: bold;">&lt;</span>= <span style="color: #000000;">999</span>; a++<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">do</span>
    <span style="color: #007800;">ca</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;%03d&quot;</span> <span style="color: #007800;">$a</span><span style="color: #000000; font-weight: bold;">`</span>
    <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>b = <span style="color: #000000;">0</span>; b <span style="color: #000000; font-weight: bold;">&lt;</span>= <span style="color: #000000;">999</span>; b++<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
    <span style="color: #000000; font-weight: bold;">do</span>
        <span style="color: #007800;">cb</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;%03d&quot;</span> <span style="color: #007800;">$b</span><span style="color: #000000; font-weight: bold;">`</span>
        <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>c = <span style="color: #000000;">0</span>; c <span style="color: #000000; font-weight: bold;">&lt;</span>= <span style="color: #000000;">999</span>; <span style="color: #c20cb9; font-weight: bold;">c++</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
        <span style="color: #000000; font-weight: bold;">do</span>      
            <span style="color: #007800;">cc</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;%03d&quot;</span> <span style="color: #007800;">$c</span><span style="color: #000000; font-weight: bold;">`</span>
            <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>d = <span style="color: #000000;">0</span>; d <span style="color: #000000; font-weight: bold;">&lt;</span>= <span style="color: #000000;">999</span>; d++<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
            <span style="color: #000000; font-weight: bold;">do</span>      
                <span style="color: #007800;">cd</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;%03d&quot;</span> <span style="color: #007800;">$d</span><span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
                <span style="color: #007800;">url</span>=<span style="color: #ff0000;">&quot;http://mediadata.sexdumpert.nl/<span style="color: #007800;">$ca</span>/<span style="color: #007800;">$cb</span>/<span style="color: #007800;">$cc</span>/<span style="color: #007800;">$cd</span>.flv&quot;</span>
                <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$url</span>
                <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>curl <span style="color: #007800;">$url</span> <span style="color: #660033;">-o</span> <span style="color: #ff0000;">&quot;files/<span style="color: #007800;">$ca</span>-<span style="color: #007800;">$cb</span>-<span style="color: #007800;">$cc</span>-<span style="color: #007800;">$cd</span>.flv&quot;</span>
&nbsp;
            <span style="color: #000000; font-weight: bold;">done</span>    
        <span style="color: #000000; font-weight: bold;">done</span>    
    <span style="color: #000000; font-weight: bold;">done</span>    
<span style="color: #000000; font-weight: bold;">done</span></pre></div></div>

<p>Hope this for fills some people their needs <img src='http://mariusvw.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://mariusvw.com/2011/07/17/how-to-download-sexdumpert-nl-photos-or-videos-with-a-simple-bash-script/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to check if a key exists in an array with in_array for Bash</title>
		<link>http://mariusvw.com/2011/07/17/how-to-check-if-a-key-exists-in-an-array-with-in_array-for-bash/</link>
		<comments>http://mariusvw.com/2011/07/17/how-to-check-if-a-key-exists-in-an-array-with-in_array-for-bash/#comments</comments>
		<pubDate>Sun, 17 Jul 2011 13:34:16 +0000</pubDate>
		<dc:creator>mariusvw</dc:creator>
				<category><![CDATA[BSD / Linux / Unix]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Array]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[in_array]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://kitara.nl/?p=221</guid>
		<description><![CDATA[When working with Bash it might become handy to have a way to check if a record exists in an array. In PHP you have in_array for this... The below code adds a function similar to the PHP variant. function in_array&#40;&#41; &#123; local x ENTRY=$1 shift 1 ARRAY=&#40; &#34;$@&#34; &#41; &#91; -z &#34;${ARRAY}&#34; &#93; &#38;&#38; [...]]]></description>
			<content:encoded><![CDATA[<p>When working with Bash it might become handy to have a way to check if a record exists in an array. In PHP you have <a href="http://www.php.net/in_array">in_array</a> for this... The below code adds a function similar to the PHP variant.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> in_array<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
  <span style="color: #7a0874; font-weight: bold;">local</span> x
  <span style="color: #007800;">ENTRY</span>=<span style="color: #007800;">$1</span>
  <span style="color: #7a0874; font-weight: bold;">shift</span> <span style="color: #000000;">1</span>
  <span style="color: #007800;">ARRAY</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #ff0000;">&quot;$@&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
  <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${ARRAY}</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">return</span> <span style="color: #000000;">1</span>
  <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${ENTRY}</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">return</span> <span style="color: #000000;">1</span>
  <span style="color: #000000; font-weight: bold;">for</span> x <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #800000;">${ARRAY[@]}</span>; <span style="color: #000000; font-weight: bold;">do</span>
    <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${x}</span>&quot;</span> == <span style="color: #ff0000;">&quot;<span style="color: #007800;">${ENTRY}</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">return</span> <span style="color: #000000;">0</span>
  <span style="color: #000000; font-weight: bold;">done</span>
  <span style="color: #7a0874; font-weight: bold;">return</span> <span style="color: #000000;">1</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #007800;">MASTER</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">CURRENT</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">FIRST</span>=<span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">for</span> SERVER <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #800000;">${SERVERS}</span>; <span style="color: #000000; font-weight: bold;">do</span>
  <span style="color: #666666; font-style: italic;"># collect all builds from server and populate CURRENT list</span>
  <span style="color: #007800;">COMMAND</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">${LS}</span> -1fd <span style="color: #007800;">${WEBROOT}</span>/<span style="color: #007800;">${SITE}</span>.*&quot;</span>
  <span style="color: #007800;">BUILDS</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #800000;">${SSH}</span> <span style="color: #800000;">${SSHOPTS}</span> root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #800000;">${SERVER}</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${COMMAND}</span>&quot;</span><span style="color: #000000; font-weight: bold;">`</span>
  <span style="color: #000000; font-weight: bold;">for</span> BUILD <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #800000;">${BUILDS}</span>; <span style="color: #000000; font-weight: bold;">do</span>
    <span style="color: #007800;">CURRENT</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #800000;">${CURRENT[@]-}</span> <span style="color: #800000;">${BUILD}</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
  <span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
  <span style="color: #666666; font-style: italic;"># if this is our first time around, copy CURRENT to MASTER</span>
  <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #800000;">${FIRST}</span> <span style="color: #660033;">-eq</span> <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #007800;">MASTER</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #800000;">${CURRENT[@]}</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
    <span style="color: #007800;">FIRST</span>=<span style="color: #000000;">0</span>
  <span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
  <span style="color: #666666; font-style: italic;"># now we do a compare between MASTER and CURRENT to see what builds</span>
  <span style="color: #666666; font-style: italic;"># are common</span>
  <span style="color: #007800;">INTERSECT</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
  <span style="color: #000000; font-weight: bold;">for</span> ENTRY <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #800000;">${CURRENT[@]}</span>; <span style="color: #000000; font-weight: bold;">do</span>
    in_array <span style="color: #ff0000;">&quot;<span style="color: #007800;">${ENTRY}</span>&quot;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${MASTER[@]}</span>&quot;</span>
    <span style="color: #007800;">RET</span>=<span style="color: #007800;">$?</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;">${RET}</span>&quot;</span> <span style="color: #660033;">-eq</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
      <span style="color: #007800;">INTERSECT</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #800000;">${INTERSECT[@]-}</span> <span style="color: #800000;">${ENTRY}</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
    <span style="color: #000000; font-weight: bold;">fi</span>
  <span style="color: #000000; font-weight: bold;">done</span>
  <span style="color: #007800;">MASTER</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #800000;">${INTERSECT[@]}</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
  <span style="color: #666666; font-style: italic;"># clear the CURRENT array</span>
  <span style="color: #007800;">CURRENT</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">done</span></pre></div></div>

<p>Source: <a href="http://mykospark.net/tag/in_array/">http://mykospark.net/tag/in_array/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mariusvw.com/2011/07/17/how-to-check-if-a-key-exists-in-an-array-with-in_array-for-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add Base64 encoding and decoding in C</title>
		<link>http://mariusvw.com/2011/07/17/how-to-add-base64-encoding-and-decoding-in-c/</link>
		<comments>http://mariusvw.com/2011/07/17/how-to-add-base64-encoding-and-decoding-in-c/#comments</comments>
		<pubDate>Sun, 17 Jul 2011 09:36:53 +0000</pubDate>
		<dc:creator>mariusvw</dc:creator>
				<category><![CDATA[BSD / Linux / Unix]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Base64]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[Decoding]]></category>
		<category><![CDATA[Encoding]]></category>
		<category><![CDATA[Mail]]></category>

		<guid isPermaLink="false">http://kitara.nl/?p=5948</guid>
		<description><![CDATA[I found this page on the web while searching for something else but I thought this might be useful to others Overview libb64 is a library of ANSI C routines for fast encoding/decoding data into and from a base64-encoded format. C++ wrappers are included, as well as the source code for standalone encoding and decoding [...]]]></description>
			<content:encoded><![CDATA[<p>I found this page on the web while searching for something else but I thought this might be useful to others <img src='http://mariusvw.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><strong>Overview</strong><br />
<a href="http://sourceforge.net/projects/libb64/">libb64</a> is a library of ANSI C routines for fast encoding/decoding data into and from a <a href="http://en.wikipedia.org/wiki/Base64">base64</a>-encoded format. C++ wrappers are included, as well as the source code for standalone encoding and decoding executables.</p>
<p>Base64 uses a subset of displayable ASCII characters, and is therefore a useful encoding for storing binary data in a text file, such as XML, or sending binary data over text-only email.</p>
<p><strong>Usage</strong></p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;"><span style="color: #339933;">#include &lt;b64/encode.h&gt;</span>
<span style="color: #339933;">#include &lt;iostream&gt;</span>
<span style="color: #993333;">int</span> main<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	base64<span style="color: #339933;">::</span><span style="color: #202020;">encoder</span> E<span style="color: #339933;">;</span>
	E.<span style="color: #202020;">encode</span><span style="color: #009900;">&#40;</span>std<span style="color: #339933;">::</span><span style="color: #202020;">cin</span><span style="color: #339933;">,</span> std<span style="color: #339933;">::</span><span style="color: #000066;">cout</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>You can read more info and download the package on the url below:</p>
<p><a href="http://libb64.sourceforge.net/">http://libb64.sourceforge.net/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mariusvw.com/2011/07/17/how-to-add-base64-encoding-and-decoding-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert pipe diameters from Inches, DN (Diametre Nominal) and mm (Millimeter)</title>
		<link>http://mariusvw.com/2011/07/14/convert-pipe-diameters-from-inches-dn-diametre-nominal-and-mm-millimeter/</link>
		<comments>http://mariusvw.com/2011/07/14/convert-pipe-diameters-from-inches-dn-diametre-nominal-and-mm-millimeter/#comments</comments>
		<pubDate>Thu, 14 Jul 2011 11:35:47 +0000</pubDate>
		<dc:creator>mariusvw</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Diameter]]></category>
		<category><![CDATA[DN]]></category>
		<category><![CDATA[Inch]]></category>
		<category><![CDATA[ISO]]></category>
		<category><![CDATA[Millimeter]]></category>
		<category><![CDATA[NPS]]></category>
		<category><![CDATA[Pipe]]></category>

		<guid isPermaLink="false">http://kitara.nl/?p=6300</guid>
		<description><![CDATA[Pipe is made of a wide variety of materials - like galvanized steel, black steel, copper, cast iron, concrete, and various plastics such as ABS, PVC, CPVC, polyethylene, polybutylene and more. Pipes are identified by "nominal" or "trade" names that are loosely related to the actual dimensions. For instance, a 2-inch galvanized steel pipe has [...]]]></description>
			<content:encoded><![CDATA[<p>Pipe is made of a wide variety of materials - like galvanized steel, black steel, copper, cast iron, concrete, and various plastics such as ABS, PVC, CPVC, polyethylene, polybutylene and more.</p>
<p>Pipes are identified by "nominal" or "trade" names that are loosely related to the actual dimensions. For instance, a 2-inch galvanized steel pipe has an inside diameter of about 2 1/8 inches and an outside diameter of about 2 5/8 inches.</p>
<p>In plumbing pipe size is referred to as nominal pipe size - NPS, or "Nominal Pipe Size". The metric equivalent is called DN or "diametre nominel". The metric designations conform to International Standards Organization (ISO) usage and apply to all plumbing, natural gas, heating oil, and miscellaneous piping used in buildings. The use of NPS does not conform to American Standard pipe designations where the term NPS means "National Pipe Thread Straight".</p>
<p><a href="http://kitara.nl/wp-content/uploads/2011/07/DN.gif"><img src="http://kitara.nl/wp-content/uploads/2011/07/DN.gif" alt="" title="Pipe conversion table (Inch, DN, mm)" width="594" height="346" class="alignnone size-full wp-image-6301" /></a></p>
<p>Convert the pipe diameters with the inner and outer diameter in millimeters, the inner surface and wall thickness.</p>
<p>Related links:<br />
<a href="http://www.engineeringtoolbox.com/nps-nominal-pipe-sizes-d_45.html">NPS - 'Nominal Pipe Size' and DN - 'Diametre Nominal'</a><br />
<a href="http://www.engineeringtoolbox.com/pipes-tubes-d_347.html">Difference between Pipes and Tubes</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mariusvw.com/2011/07/14/convert-pipe-diameters-from-inches-dn-diametre-nominal-and-mm-millimeter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

