<?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>Mindloop BVBA</title>
	<atom:link href="http://www.mindloop.be/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mindloop.be</link>
	<description>Webdesign and webdevelopment</description>
	<lastBuildDate>Fri, 17 Dec 2010 16:07:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Telenet lanceert Yelo</title>
		<link>http://www.mindloop.be/telenet-lanceert-yello/</link>
		<comments>http://www.mindloop.be/telenet-lanceert-yello/#comments</comments>
		<pubDate>Fri, 17 Dec 2010 15:33:11 +0000</pubDate>
		<dc:creator>Andy Mathijs</dc:creator>
				<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://www.mindloop.be/?p=118</guid>
		<description><![CDATA[Zonet stelde Duco Sickhinge, de CEO van Telenet, een nieuw Telenet product voor: Yelo. Yelo is een dienst (&#8230;)]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" title="yelo" src="http://profile.ak.fbcdn.net/hprofile-ak-snc4/hs1322.snc4/161958_171155232905535_5045599_n.jpg" alt="yelo logo" width="200" height="172" />Zonet stelde Duco Sickhinge, de CEO van Telenet, een nieuw Telenet product voor: Yelo. Yelo is een dienst die het mogelijk maakt televisie te kijken via iPhone, iPad, Android toestellen en via de computer.</p>
<p><strong>Prijs</strong></p>
<p>Verrassend is dat deze dienst gedurende de eerste zes maanden gratis zal zijn voor alle klanten die zowel digitale tv als internet hebben. Gedurende deze proefperiode zal de verbruikte bandbreedte wel in de telemeter meegerekend worden. Ter compensatie maakt Telenet een mooi gebaar naar de Basicnet-klanten.  Door het verhogen van hun downloadlimiet met enkele gigabytes, kunnen ook zij makkelijk gebruik maken van Yelo.</p>
<p><strong>Aanbod</strong></p>
<p>Volgende 10 zenders zullen beschikbaar zijn bij de start van Yelo: Eén, Ketnet/Canvas, Acht, Eurosport, Disney Channel, Discovery Channel, Prime Sport, Studio 100 TV, Njam! en BBC Entertainment. Hoewel het aantal beschikbare zenders momenteel nog niet zo uitgebreid is, is er toch voor ieder wat wils. Er zijn echter wel onderhandelingen lopende met zenders zoals VTM. Deze zullen hopelijk ook snel beschikbaar zijn op het platform.</p>
<p>Het aanbod in de tv-theek daarentegen is indrukwekkender. Op het pc platform zullen er bij de launch een 60-tal films beschikbaar zijn. Voor iPad, iPhone en Android zal dat op het begin wat minder zijn, maar ook dat aantal zal in de loop van de tijd naar boven worden gehaald.</p>
<p><strong>Kwaliteit</strong></p>
<p>Aangezien er gestreamed wordt aan 1,2mbit per seconde, zal de beeldkwaliteit geen full HD zijn.</p>
<p><strong>Beschikbaarheid</strong></p>
<p>De iPhone en iPad applicaties zullen vannacht gelanceerd worden op de Apple app store. De pc versie zal bruikbaar zijn vanaf 1 januari, en ook de versie voor Android zou rond die tijd beschikbaar moeten zijn.</p>
<p>Yelo zal enkel te gebruiken zijn via het Telenet netwerk. Het op verplaatsing streamen via 3G zal dus niet mogelijk zijn. Maar er zijn wel concrete plannen om Yelo ook via de Telenet-hotspots beschikbaar te maken.</p>
<p><strong>Meer info</strong></p>
<p>Verdere informatie is beschikbaar op <a href="http://twitter.com/yellotv">twitter</a> , <a href="http://www.facebook.com/apps/application.php?id=115504206992&amp;v=wall">facebook</a>,  <a href="http://telenet.be/yello">http://telenet.be/yelo</a> en <a href="http://yelo.yelo.be">http://yelo.yelo.be</a></p>
<p><iframe src="http://player.vimeo.com/video/17916838" width="400" height="225" frameborder="0"></iframe>
<p><a href="http://vimeo.com/17916838">Hoe Yelo gebruiken?</a> from <a href="http://vimeo.com/telenet">Telenet</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mindloop.be/telenet-lanceert-yello/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Caching an array to disk</title>
		<link>http://www.mindloop.be/caching-an-array-to-disk/</link>
		<comments>http://www.mindloop.be/caching-an-array-to-disk/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 21:11:00 +0000</pubDate>
		<dc:creator>Andy Mathijs</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://mindloop.loc/?p=56</guid>
		<description><![CDATA[I discovered the var_export function in PHP about a year ago. It is able to return a string (&#8230;)]]></description>
			<content:encoded><![CDATA[<p>I discovered the <a href="http://www.php.net/var_export">var_export</a> function in PHP about a year ago. It is able to return a string that represents the passed variable. The returned string is parsable by PHP.</p>
<p>One way to use this function would be to cache an array to a file.</p>
<p>In example:</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;">export.php
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">//will write the array to disk</span>
<span style="color: #000088;">$ar</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="">'test'</span><span style="color: #339933;">,</span><span style="">'testing'</span><span style="color: #009900;">&#41;</span>;
<span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">var_export</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ar</span><span style="color: #339933;">,</span><span style="color: #000000; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span>;
file_put_contents<span style="color: #009900;">&#40;</span><span style="">'cache.php'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;&lt;?php<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\$</span>cache=$content;&quot;</span><span style="color: #009900;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
import.php
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">//will output the cached array</span>
<span style="color: #b1b100;">include</span> <span style="">'cache.php'</span>;
<span style="color: #990000;">var_dump</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$cache</span> <span style="color: #009900;">&#41;</span>;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.mindloop.be/caching-an-array-to-disk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Htmlpurifier and the CodeIgniter framework</title>
		<link>http://www.mindloop.be/htmlpurifier-and-the-codeigniter-framework/</link>
		<comments>http://www.mindloop.be/htmlpurifier-and-the-codeigniter-framework/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 15:45:41 +0000</pubDate>
		<dc:creator>Andy Mathijs</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://mindloop.loc/?p=39</guid>
		<description><![CDATA[Intro HtmlPurifier is a standards-compliant HTML filter library written in PHP. HTML Purifier will not only remove all (&#8230;)]]></description>
			<content:encoded><![CDATA[<h2>Intro</h2>
<p>HtmlPurifier is a standards-compliant HTML filter library written in PHP. HTML Purifier will not only remove all malicious code (better known as XSS) with a thoroughly audited, secure yet permissive whitelist, it will also make sure your documents are standards compliant.</p>
<p>Although Codeigniter comes with it&#8217;s own XSS filtering method <span class="php-code">$this-&gt;input-&gt;xss_clean()</span> I prefer the use of the HtmlPurifier because of 2 reasons :<br />
1) HTMLpurifier will make sure that user input is converted to 	valid xhtml<br />
2) HTMLpurifier is tested against every element on the notorious 	<a href="http://ha.ckers.org/xss.html">XSS cheat sheet</a></p>
<h2 class="western">Installing htmlPurifier in codeigniter</h2>
<p>Since codeigniter is PHP4 and PHP5 compatible we&#8217;ll start out by downloading the php4 compatible version of htmlPurifier (<a href="http://htmlpurifier.org/download.html">http://htmlpurifier.org/download.html</a>)</p>
<p>Once you&#8217;ve downloaded and extracted the archive you&#8217;ll just have to copy the contents of the /htmlpurifier-2.0.1/library folder into your codeigniter /system/application/libraries folder.</p>
<p>HtmlPurifier comes with an HTMLPurifier.auto.php file that automagically changes your include path to include the neccessary folder. We&#8217;ll delete this file and make one small change to HTMLPurifier.php.</p>
<p>Just add</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #990000;">set_include_path</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">dirname</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">__FILE__</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> PATH_SEPARATOR <span style="color: #339933;">.</span> <span style="color: #990000;">get_include_path</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>;</pre></div></div>

<p>just below the</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span></pre></div></div>

<p>line in HTMLPurifier.php and we&#8217;re ready to go.</p>
<h2>Small demo</h2>
<p>Add this testcontroller and check out the results :</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">defined</span><span style="color: #009900;">&#40;</span><span style="">'BASEPATH'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #990000;">exit</span><span style="color: #009900;">&#40;</span><span style="">'No direct script access allowed'</span><span style="color: #009900;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">class</span> Test <span style="color: #000000; font-weight: bold;">extends</span> Controller <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">function</span> Test<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        parent<span style="color: #339933;">::</span><span style="color: #004000;">Controller</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">function</span> index<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">library</span><span style="color: #009900;">&#40;</span><span style="">'HTMLPurifier'</span><span style="color: #009900;">&#41;</span>;
        <span style="color: #000088;">$dirty_html</span> <span style="color: #339933;">=</span> <span style="">'&lt;a href=&quot;javascript:alert(<span style="">\'</span>test<span style="">\'</span>)&quot;&gt;ds&lt;/a&gt;&lt;p&gt;test&lt;br /&gt;&lt;img src=&quot;noalt.jpg&quot;&gt;'</span>;
        <span style="color: #000088;">$config</span> <span style="color: #339933;">=</span> HTMLPurifier_Config<span style="color: #339933;">::</span><span style="color: #004000;">createDefault</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
        <span style="color: #000088;">$clean_html</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">htmlpurifier</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">purify</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$dirty_html</span> <span style="color: #339933;">,</span> <span style="color: #000088;">$config</span> <span style="color: #009900;">&#41;</span>;
        <span style="color: #990000;">echo</span> <span style="color: #000088;">$clean_html</span>;
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p><span class="article_seperator"><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mindloop.be/htmlpurifier-and-the-codeigniter-framework/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

