<?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>noelboss</title>
	<atom:link href="http://www.noelboss.ch/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.noelboss.ch</link>
	<description>noelboss</description>
	<lastBuildDate>Tue, 14 Feb 2012 10:00:34 +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>Skip Edit in for Container FCE</title>
		<link>http://www.noelboss.ch/2012/02/skip-edit-in-for-container-fce/</link>
		<comments>http://www.noelboss.ch/2012/02/skip-edit-in-for-container-fce/#comments</comments>
		<pubDate>Tue, 14 Feb 2012 09:51:15 +0000</pubDate>
		<dc:creator>noelboss</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Short News]]></category>
		<category><![CDATA[Typo3]]></category>

		<guid isPermaLink="false">http://www.noelboss.ch/?p=1273</guid>
		<description><![CDATA[This is for you, if you are familiar with TemplaVoila for Typo3 and you are using FCEs to create multicolumn container elements. Problem with these Elements is that when the author creates the column element, he is faced with the Edit-Maks usualy needed for normal content elements. But since the column element has no data [...]]]></description>
			<content:encoded><![CDATA[<p>This is for you, if you are familiar with <a href="http://typo3.org/extensions/repository/view/templavoila/current/">TemplaVoila</a> for Typo3 and you are using <a href="http://www.jochen-froehlich.de/typo3-best-practice/templavoila-typoscript.html">FCEs</a> to create multicolumn container elements. Problem with these Elements is that when the author creates the column element, he is faced with the Edit-Maks usualy needed for normal content elements. But since the column element has no data yet to edit just some container for elements, this view is not required. A simple line in your FCE XML skips the edit mode. Put this in the meta section of your DataStructure: <a href="http://typo3.org/documentation/document-library/extension-manuals/templavoila/1.6.1/view/1/6/">&lt;noEditOnCreation&gt;1&lt;/noEditOnCreation&gt;</a></p>
<p>Here is an example XML:<br />
<span id="more-1273"></span><br />
<iframe src="http://cl.ly/0l3V253e3A0g2H442x1g" width="640" height="1495" frameBorder="0"><br />
<a href="http://cl.ly/222g3J2w0N442t1V0U0e">Example Code</a><br />
</iframe></p>
 <p><a href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1273&amp;md5=3f56c576a98f942376d118c90c802bee" title="Flattr" target="_blank"><img src="http://www.noelboss.ch/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.noelboss.ch/2012/02/skip-edit-in-for-container-fce/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1273&amp;md5=3f56c576a98f942376d118c90c802bee" type="text/html" />
	</item>
		<item>
		<title>Injustice &amp; Wrath</title>
		<link>http://www.noelboss.ch/2011/12/injustice-wrath/</link>
		<comments>http://www.noelboss.ch/2011/12/injustice-wrath/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 15:58:33 +0000</pubDate>
		<dc:creator>noelboss</dc:creator>
				<category><![CDATA[Faith]]></category>
		<category><![CDATA[Quotes]]></category>
		<category><![CDATA[Faits]]></category>

		<guid isPermaLink="false">http://www.noelboss.ch/?p=1270</guid>
		<description><![CDATA[Injustice stirs up wrath in a just person &#8211; otherwise its justice is corrupted. The anger is subsided by serving up justice. A just person can rest in peace if it knows that justice is about to come or has already been brought.]]></description>
			<content:encoded><![CDATA[<blockquote class="quote"><p>
Injustice stirs up wrath in a just person &#8211; otherwise its justice is corrupted. The anger is subsided by serving up justice. A just person can rest in peace if it knows that justice is about to come or has already been brought.
</p></blockquote>
 <p><a href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1270&amp;md5=8191392216414899f8c33a958d0bd8b6" title="Flattr" target="_blank"><img src="http://www.noelboss.ch/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.noelboss.ch/2011/12/injustice-wrath/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1270&amp;md5=8191392216414899f8c33a958d0bd8b6" type="text/html" />
	</item>
		<item>
		<title>Fixing double-encoded UTF-8 data in MySQL</title>
		<link>http://www.noelboss.ch/2011/11/fixing-double-encoded-utf-8-data-in-mysql/</link>
		<comments>http://www.noelboss.ch/2011/11/fixing-double-encoded-utf-8-data-in-mysql/#comments</comments>
		<pubDate>Wed, 02 Nov 2011 12:59:37 +0000</pubDate>
		<dc:creator>noelboss</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Hint]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Standards]]></category>
		<category><![CDATA[Typo3]]></category>

		<guid isPermaLink="false">http://www.noelboss.ch/?p=1263</guid>
		<description><![CDATA[I recently came across an old website of ours that I wanted to migrate to a new server. When I finished migration, I found the special characters typical to european languages broken. It took me a while to find the problem. The data was wrong in the Database but on the old system it was [...]]]></description>
			<content:encoded><![CDATA[<p>I recently came across an old website of ours that I wanted to migrate to a new server. When I finished migration, I found the special characters typical to european languages broken. It took me a while to find the problem. The data was wrong in the Database but on the old system it was displayed correctly, the new didn&#8217;t. I finally figured out that my database suffered from double encoded UTF-8 characters. </p>
<p>It seams, that double-encoded UTF-8 texts are a fairly common problem when dealing with MySQL. This may be due to the fact that the default character set of the connection to the server is Latin-1, but that is not relevant once the data is already corrupt.</p>
<p>Here is how to fix it – export the database using latin1 charset an re-import with utf-8:</p>
<blockquote><p>mysqldump -h DB_HOST -u DB_USER -pDB_PASSWORD &#8211;opt &#8211;quote-names &#8211;skip-set-charset &#8211;default-character-set=latin1 DB_NAME > dump.sql</p></blockquote>
<blockquote><p>mysql -h DB_HOST -u DB_USER -p DB_PASSWORD &#8211;default-character-set=utf8 DB_NAME < dump.sql</p></blockquote>
<p>Of course, you should first replace DB_HOST, DB_USER, DB_PASSWORD and DB_NAME with values, corresponding to your personal setup.</p>
<p><small>source: <a href="http://blog.hno3.org/2010/04/22/fixing-double-encoded-utf-8-data-in-mysql/">Fixing double-encoded UTF-8 data in MySQL</a></small></p></blockquote>
 <p><a href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1263&amp;md5=5d6ac717140fb402ea3365f02e064542" title="Flattr" target="_blank"><img src="http://www.noelboss.ch/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.noelboss.ch/2011/11/fixing-double-encoded-utf-8-data-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1263&amp;md5=5d6ac717140fb402ea3365f02e064542" type="text/html" />
	</item>
		<item>
		<title>SSD Festplatten in Lion</title>
		<link>http://www.noelboss.ch/2011/09/trim-ssd-lion/</link>
		<comments>http://www.noelboss.ch/2011/09/trim-ssd-lion/#comments</comments>
		<pubDate>Thu, 22 Sep 2011 21:31:29 +0000</pubDate>
		<dc:creator>noelboss</dc:creator>
				<category><![CDATA[Short News]]></category>

		<guid isPermaLink="false">http://www.noelboss.ch/?p=1245</guid>
		<description><![CDATA[SSD Festplatten sind eine tolle Sache. Super schnell, leise, erschütterungssicher, stromsparend. Doch neben den vielen Vorteilen haben sie noch zwei Nachteile – der Preis, da kann man, ausser warten, nicht viel machen – und die Daten-Sicherheit. SSD Festplatten reagieren empfindlicher auf schreib- Zugriffe und werden mit der Zeit &#8220;abgenutzt&#8221;. Die Festplattenhersteller haben daher ein System [...]]]></description>
			<content:encoded><![CDATA[<p>SSD Festplatten sind eine tolle Sache. Super schnell, leise, erschütterungssicher, stromsparend. Doch neben den vielen Vorteilen haben sie noch zwei Nachteile – der Preis, da kann man, ausser warten, <a href="http://www.pcp.ch/Crucial-RealSSD-m4-512GB-1a15830738.htm">nicht viel machen</a> – und die Daten-Sicherheit. SSD Festplatten reagieren empfindlicher auf schreib- Zugriffe und werden mit der Zeit &#8220;abgenutzt&#8221;. Die Festplattenhersteller haben daher ein System entwickelt, mit den Schreibzugriffen optimaler umzugehen. Dieses System nennt sich TRIM und kommt mit Lion integriert – für SSDs die Apple einbaut. Pech hat, wer selber eine Platte einbaut.</p>
<p>Ob man TRIM Support hat, sieht man wenn man mit gedrückter &#8220;alt&#8221; Taste auf den Apfel im Menu klickt und &#8220;System Information…&#8221; wählt. Unter Serial-ATA findet sich irgendwo der Entrag &#8220;TRIM Support:&#8221; – und der steht wahrscheinlich auf &#8220;No&#8221;.</p>
<p>Mit folgenden Terminal-Tricks, kann man TRIM aktivieren und so seiner SSD Festplatte eine hoffentlich längere Lebensdauer abgewinnen.</p>
<p>Zuerst sichern wir eine Kopie der angepassten Datei:</p>
<blockquote><p>sudo cp /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage /IOAHCIBlockStorage.original</p></blockquote>
<p>Danach aktivieren wir den TRIM support:</p>
<blockquote><p>sudo perl -pi -e &#8216;s|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00).{9}(\x00\x51)|$1\x00\x00\x00\x00\x00\x00\x00\x00\x00$2|sg&#8217; /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage</p></blockquote>
<p>Nun verwerfen wir die alten Einstellungen:</p>
<blockquote><p>sudo kextcache -system-prelinked-kernel</p></blockquote>
<blockquote><p>sudo kextcache -system-caches</p></blockquote>
<p>Nach einem Neustart sollte TRIM für die Festplatte aktiviert sein:<br />
<a href="http://www.noelboss.ch/wp-content/uploads/2011/09/TRIM-support.png"><img src="http://www.noelboss.ch/wp-content/uploads/2011/09/TRIM-support.png" alt="" title="TRIM support" width="944" height="797" class="alignnone size-full wp-image-1246" /></a></p>
<h3>Weitere optimierungen</h3>
<p>Da wir ja keine herkömmliche Festplatte mehr haben, können wir noch einige Überbleibsel aus dieser Zeit optimieren. Der Stromsparmodus, bei dem herkömmliche Festplatten im Standby zu drehen aufgehört haben, macht bei SSDs keinen Sinn und kann deaktiviert werden:<br />
<a href="http://www.noelboss.ch/wp-content/uploads/2011/09/Sleep-mode.png"><img src="http://www.noelboss.ch/wp-content/uploads/2011/09/Sleep-mode.png" alt="" title="Sleep mode" width="745" height="628" class="alignnone size-full wp-image-1247" /></a></p>
<p>Jedes mal, wenn auf eine Datei zugegriffen wird, wird der Zeitpunkt des Zugriffs gespeichert. Um diese unnötigen Schreibvorgänge zu verhindern kann eine Datei &#8220;/Library/LaunchDaemons/com.noatime.root.plist&#8221; mit folgendem Inhalt angelegt werden:</p>
<blockquote><p>&lt;?xml&nbsp;version=&quot;1.0&quot;&nbsp;encoding=&quot;UTF-8&quot;?&gt;<br />
&lt;!DOCTYPE&nbsp;plist&nbsp;PUBLIC&nbsp;&quot;-//Apple//DTD&nbsp;PLIST&nbsp;1.0//EN&quot;&nbsp;&quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;<br />
&lt;plist&nbsp;version=&quot;1.0&quot;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;dict&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;key&gt;Label&lt;/key&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;string&gt;com.noatime.root&lt;/string&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;key&gt;ProgramArguments&lt;/key&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;array&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;string&gt;mount&lt;/string&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;string&gt;-uwo&lt;/string&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;string&gt;noatime&lt;/string&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;string&gt;/&lt;/string&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/array&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;key&gt;RunAtLoad&lt;/key&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;true/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/dict&gt;<br />
&lt;/plist&gt;</p></blockquote>
<p>Wenn der Mac zugeklappt wird, wird der Inhalt des RAM auf die Festplatte geschrieben. Die RAM sind jedoch weiter unter Strom. Die Festplatte wird nur für den Fall eines Stromausfalls benötigt. Auf kosten von etwas Sicherheit, kann verhindert werden, dass der Inhalt auf die Festplatte geschrieben wird – als kleiner Zusatznutzen wird noch Fesplatenspeicher in der grösse des RAM frei:</p>
<blockquote><p>sudo pmset -a hibernatemode 0</p></blockquote>
<p>Wenn man den Standard wieder einstellen möchte, kann man den Wert 0 durch 3 ersetzen.</p>
<p>Die bestehende Sicherungsdatei kann gelöscht werden:</p>
<blockquote><p>
sudo rm /var/vm/sleepimage
</p></blockquote>
<h3>Rückbau</h3>
<p>Sollte man TRIM wieder deaktivieren wollen, hilft dieser Befehl:</p>
<blockquote><p>sudo perl -pi -e &#8216;s|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00).{9}(\x00\x51)|$1\x41\x50\x50\x4C\x45\x20\x53\x53\x44$2|sg&#8217; /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage</p></blockquote>
<p>Und wenn etwas ganz schief läuft, kann man auch die Original Datei zurückholen:</p>
<blockquote><p>sudo cp /IOAHCIBlockStorage.original /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage</p></blockquote>
<p><small>Quellen: <a href="http://gdgt.com/question/in-os-x-lion-how-do-you-enable-trim-support-for-ssds-f16/">TRIM</a> und <a href="http://poller.se/2010/08/optimizing-mac-os-x-for-ssd-drives/">Optimierungen</a></small></p>
 <p><a href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1245&amp;md5=601ddc8da15b88634095f820605d1e8e" title="Flattr" target="_blank"><img src="http://www.noelboss.ch/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.noelboss.ch/2011/09/trim-ssd-lion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1245&amp;md5=601ddc8da15b88634095f820605d1e8e" type="text/html" />
	</item>
		<item>
		<title>A New Chance</title>
		<link>http://www.noelboss.ch/2011/09/a-new-chance/</link>
		<comments>http://www.noelboss.ch/2011/09/a-new-chance/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 06:10:42 +0000</pubDate>
		<dc:creator>noelboss</dc:creator>
				<category><![CDATA[Faith]]></category>

		<guid isPermaLink="false">http://www.noelboss.ch/?p=1238</guid>
		<description><![CDATA[A few days ago, I was at the sea. I got up early in the morning and went to the beach – waiting for the sun to rise. The sky was clear and painted in a light grey and the water was calm like a table of glass you might think, you could walk on [...]]]></description>
			<content:encoded><![CDATA[<p>A few days ago, I was at the sea. I got up early in the morning and went to the beach – waiting for the sun to rise. The sky was clear and painted in a light grey and the water was calm like a table of glass you might think, you could walk on to the end of the horizon.</p>
<p>For a moment, I looked back, and when I turned – there she was. She had risen without me taking notice, clothed in her beautiful shining, red dress. She made no noise, no big announcement, she just appeared. </p>
<p><a href="http://www.flickr.com/photos/noelboss/6110676261/in/photostream/lightbox/"><img src="http://www.noelboss.ch/wp-content/uploads/2011/09/6110676261_c2427d6490_o.jpg" alt="" title="a new chance" class="alignnone size-full wp-image-1241" /></a></p>
<p>In this second, it struck me, what a wonder this is. The sun gave me a new chance. <a href="http://bible.us/Isa43.18.NIV84">She didn&#8217;t remember the former days</a>. She just gave me a new day, a new page in the book of my life, with no words written on it yet. I didn&#8217;t ask her to, she just did.</p>
<p><a href="http://bible.us/Ps19.2.NIV84">That&#8217;s what she always does</a>, till this very day. While millions of people – me included – most of the time don&#8217;t even realize what a wonder and privilege this is. A new beginning, a new start, over and over and over again. Not looking back, just giving us a new canvas to paint life on.</p>
<p>We are occupied with our little problems and sorrows, this little itch here, that thing that didn&#8217;t turn out as we planed there, this person who was mean to us&#8230; In the meantime we let days pass without realizing, <a href="http://bible.us/Lam3.23.NIV84">that grace is new every morning</a>. That life itself is a wonder, day after day, and a chance to make things better. To change things, in our own life, in the life of our family and friends. To smile at life, like the sun smiles at us, morning after morning.</p>
<p>She has forgotten <a href="http://bible.us/Ps19.6.NIV84">what she saw the other day on the face of the earth</a> – decided to give it another try. I am willing to do the same. <a href="http://bible.us/Phil3.13.NIV84">Forget what lies behind me</a>, looking forward, making the best of the day that was given to me as a gift from god.</p>
 <p><a href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1238&amp;md5=50e46e3cad7b86fe9a84283990efd532" title="Flattr" target="_blank"><img src="http://www.noelboss.ch/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.noelboss.ch/2011/09/a-new-chance/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<atom:link rel="payment" href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1238&amp;md5=50e46e3cad7b86fe9a84283990efd532" type="text/html" />
	</item>
		<item>
		<title>De Leu redt Schwiizertütsch!</title>
		<link>http://www.noelboss.ch/2011/09/de-leu-redt-schwiizertutsch/</link>
		<comments>http://www.noelboss.ch/2011/09/de-leu-redt-schwiizertutsch/#comments</comments>
		<pubDate>Sun, 11 Sep 2011 07:47:13 +0000</pubDate>
		<dc:creator>noelboss</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[Short News]]></category>

		<guid isPermaLink="false">http://www.noelboss.ch/?p=1218</guid>
		<description><![CDATA[Wiä gail isch denn das?!]]></description>
			<content:encoded><![CDATA[<p><strong>Wiä gail isch denn das?!</strong><br />
<a href="http://www.noelboss.ch/wp-content/uploads/2011/09/De-Leu-redt-Schwiizertütsch.png"><img src="http://www.noelboss.ch/wp-content/uploads/2011/09/De-Leu-redt-Schwiizertütsch.png" alt="" title="De Leu redt Schwiizertütsch" class="alignnone size-full wp-image-1233" /></a></p>
 <p><a href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1218&amp;md5=b3febc623437f8e97ed55234a206ff72" title="Flattr" target="_blank"><img src="http://www.noelboss.ch/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.noelboss.ch/2011/09/de-leu-redt-schwiizertutsch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1218&amp;md5=b3febc623437f8e97ed55234a206ff72" type="text/html" />
	</item>
		<item>
		<title>Neustart.</title>
		<link>http://www.noelboss.ch/2011/09/neustart/</link>
		<comments>http://www.noelboss.ch/2011/09/neustart/#comments</comments>
		<pubDate>Sat, 10 Sep 2011 05:55:33 +0000</pubDate>
		<dc:creator>noelboss</dc:creator>
				<category><![CDATA[Faith]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://www.noelboss.ch/?p=1225</guid>
		<description><![CDATA[via Facebook and YouTube]]></description>
			<content:encoded><![CDATA[<p><object style="height: 27em; width: 100%"><param name="movie" value="http://www.youtube-nocookie.com/v/XnimH_fiU4g?version=3&amp;hl=en_US&amp;rel=0&amp;hd=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube-nocookie.com/v/XnimH_fiU4g?version=3&amp;hl=en_US&amp;rel=0&amp;hd=1" type="application/x-shockwave-flash" style="height: 27em; width: 100%" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><small>via Facebook and <a href="http://www.youtube.com/watch?v=XnimH_fiU4g" title="YouTube">YouTube</a></small></p>
 <p><a href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1225&amp;md5=f5de1495fc0f1894f29d337438dfecc9" title="Flattr" target="_blank"><img src="http://www.noelboss.ch/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.noelboss.ch/2011/09/neustart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1225&amp;md5=f5de1495fc0f1894f29d337438dfecc9" type="text/html" />
	</item>
		<item>
		<title>Typo3. Caching-Framework. Memcache. Mamp Pro. OS X Lion.</title>
		<link>http://www.noelboss.ch/2011/09/typo3-caching-framework-memcache-mamp-pro-os-x-lion/</link>
		<comments>http://www.noelboss.ch/2011/09/typo3-caching-framework-memcache-mamp-pro-os-x-lion/#comments</comments>
		<pubDate>Wed, 07 Sep 2011 07:27:42 +0000</pubDate>
		<dc:creator>noelboss</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Typo3]]></category>

		<guid isPermaLink="false">http://www.noelboss.ch/?p=1186</guid>
		<description><![CDATA[For my latest project, we used Extbase and Fluid with Typo3 4.5. My development environment is a MacBook Pro running OSX Lion with MAMP Pro 2.0. Newer versions of Typo3 come with a caching framework that allows you to define different caching methods for different tasks and even lets you integrate your own caching mechanisms [...]]]></description>
			<content:encoded><![CDATA[<p>For my latest project, we used Extbase and Fluid with Typo3 4.5. My development environment is a MacBook Pro running OSX Lion with <a href="http://www.mamp.info/en/index.html">MAMP Pro 2.0</a>. Newer versions of Typo3 come with a <a href="http://wiki.typo3.org/Caching_framework">caching framework</a> that allows you to define different caching methods for different tasks and even lets you integrate your own caching mechanisms into your extensions. The caching framework makes use of several caching backend – DB, File, RAM-Memory, APC etc.</p>
<p>For my installation I wanted to use the apache memcache extension.</p>
<h2>Configure Typo3 to use memcached</h2>
<p>Do enable the framework you need to set some values in the localconf-file. Take care – some values will change in Typo3 4.6. – especially there are more defaults so you don&#8217;t have to set all of this. The code below is for Typo3 4.5.X to be put into typo3conf/localconf.php:</p>
<pre class="brush: php">
// cachingframework-Memcached - START
$TYPO3_CONF_VARS['SYS']['useCachingFramework'] = '1';
$TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['cache_hash'] = array (
	'frontend' => 't3lib_cache_frontend_VariableFrontend',
	'backend' => 't3lib_cache_backend_FileBackend',
	'options' => array(
 	)
);
if($_SERVER['T3_USEMEMCACHE']){
	$mserver = $_SERVER['T3_MCACHESERVER'] ? $_SERVER['T3_MCACHESERVER'] : 'localhost:11211';
	$TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['cache_pages'] = array (
		'frontend' => 't3lib_cache_frontend_VariableFrontend',
		'backend' => 't3lib_cache_backend_MemcachedBackend',
		'options' => array(
			'servers' => array($mserver),
		)
	);
	$TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['cache_pagesection'] = array (
		'frontend' => 't3lib_cache_frontend_VariableFrontend',
		'backend' => 't3lib_cache_backend_MemcachedBackend',
		'options' => array(
			'servers' => array($mserver),
		)
	);
}
// cachingframework-Memcached - END
</pre>
<p>Take a look at line 9 – I use such settings to make configurations on server / environment level – you can then set this variables in the a .htaccess file or – as I use to do it – in the vHost config:</p>
<pre class="brush: php">
# Use memcache extension for caching
SetEnv T3_USEMEMCACHE 1
</pre>
<p>If you have inserted the code into your localconf.php file and hit the refresh-button, you&#8217;ll get this;</p>
<p><a href="http://www.noelboss.ch/wp-content/uploads/2011/09/exception.png"><img src="http://www.noelboss.ch/wp-content/uploads/2011/09/exception.png" alt="" title="exception" class="size-full wp-image-1197" /></a></p>
<p>Now, MAMP Pro comes with the memcache extensions enabled – unfortunately it doesn&#8217;t work. (it&#8217;s 32Bit, not 64Bit&#8230;)</p>
<p><a href="http://www.noelboss.ch/wp-content/uploads/2011/09/Mamp-Pro-memcache.png"><img class="alignnone size-full wp-image-1187" title="Mamp Pro memcache" src="http://www.noelboss.ch/wp-content/uploads/2011/09/Mamp-Pro-memcache.png" alt="" /></a></p>
<p>After digging around a bit I finally could make it run. <a href="http://thisisleon.co.uk/2011/06/30/installing-memcached-for-mamp-pro-1-9-running-php-5-3-2/">This article</a> of Leon Barrett was the key to success. I am using MAMP Pro Version 2.0 so a few paths are different. That&#8217;s why I decided to create this article so you don&#8217;t have to make the same mistakes as I did&#8230;</p>
<h2><a href="http://itunes.apple.com/us/app/xcode/id448457090?mt=12"><img class="alignright size-thumbnail wp-image-1188" title="Xcode" src="http://www.noelboss.ch/wp-content/uploads/2011/09/Xcode-150x150.png" alt="" width="150" height="150" /></a>Install Xcode</h2>
<p> First, you need to download the free <a href="http://itunes.apple.com/us/app/xcode/id448457090?mt=12">Xcode from the App-Store</a>. What you download is only the installer – install it after download! After installing Xcode, you are ready to compile memcache for MAMP. Most parts of the following steps are taken from Leon&#8217;s Website.</p>
<h3 style="clear: left;">Step 1 – Make the MAMP php files executable</h3>
<blockquote><p>sudo chmod +xrw /Applications/MAMP/bin/php/php*</p></blockquote>
<h3>Step 2 – Switch to the download directory</h3>
<blockquote><p>cd ~/Downloads/</p></blockquote>
<h3>Step 3 – Download the memcache source</h3>
<blockquote><p>curl http://pecl.php.net/get/memcache-2.2.5.tgz > memcache-2.2.5.tgz</p></blockquote>
<h3>Step 4 – Unpack the source and go into the folder</h3>
<blockquote><p>
tar -zxvf memcache-2.2.5.tgz<br />
cd memcache-2.2.5
</p></blockquote>
<h3>Step 5 – PHPize the Memcache extension files</h3>
<blockquote><p>/Applications/MAMP/bin/php/php5.3.6/bin/phpize</p></blockquote>
<h3>Step 6 – Compile the Memcached extension</h3>
<blockquote><p>CFLAGS=&#8217;-O3 -fno-common -arch i386 -arch x86_64 -g -Os&#8217; LDFLAGS=&#8217;-O3 -arch i386 -arch x86_64&#8242; CXXFLAGS=&#8217;-O3 -fno-common -arch i386 -arch x86_64 -g -Os&#8217; ./configure &#8211;disable-dependancy-tracking &#8211;disable-shared -enable-static</p>
<p>make
</p></blockquote>
<h3>Step 7 – Copy the extension into MAMP</h3>
<blockquote><p>sudo cp modules/memcache.so /Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/.</p></blockquote>
<h3>Step 8 – Add the extension to the php.ini file</h3>
<p>To do this open the MAMP application, go to File > Edit Template > PHP > PHP 5.3.6 php.ini<br />
Search for &#8220;; Extensions&#8221; and add the following line:</p>
<blockquote><p>extension=memcache.so</p></blockquote>
<h3>Step 9 – Configure Memcache</h3>
<p>Somewhere in this file, you need to configure Memcache. I used the configuration <a href="http://dmitry-dulepov.com/article/how-to-enable-memcached-cache-in-typo3-43.html">proposed by Dmitry Dulepov</a> which  works just fine for me:</p>
<blockquote><p>memcached.allow_failover 1<br />
memcached.chunk_size 32768<br />
memcached.default_port 11211<br />
memcached.hash_function fnv<br />
memcached.hash_strategy consistent<br />
memcached.max_failover_attempts 20</p></blockquote>
<p>Save the file, stop MAMP and start it back up. Take a look inside your php log to see if there were any errors starting up.</p>
<h3>Step 10 – Start Memcached</h3>
<blockquote><p>memcached -d -m 8 -M -p 11211</p></blockquote>
<p>You can stop memcached with &#8220;killall memcached&#8221;</p>
<h2>Enjoy</h2>
<p>Hit the refresh-button on your website again – it shines in memcached glory!</p>
<p>Now, memcache needs to be started manually each time you start MAMP. The <a href="http://www.lullabot.com/articles/setup-memcached-mamp-sandbox-environment">should be ways to automate this</a> – but I couldn&#8217;t make it work&#8230;</p>
 <p><a href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1186&amp;md5=52e968c23688d21c3380ffe60cf31ed5" title="Flattr" target="_blank"><img src="http://www.noelboss.ch/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.noelboss.ch/2011/09/typo3-caching-framework-memcache-mamp-pro-os-x-lion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1186&amp;md5=52e968c23688d21c3380ffe60cf31ed5" type="text/html" />
	</item>
		<item>
		<title>xaseTabs – extensible jQuery Tab Plugin</title>
		<link>http://www.noelboss.ch/2011/08/xasetabs-website/</link>
		<comments>http://www.noelboss.ch/2011/08/xasetabs-website/#comments</comments>
		<pubDate>Mon, 22 Aug 2011 13:13:27 +0000</pubDate>
		<dc:creator>noelboss</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Downloads]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[xaseTabs]]></category>

		<guid isPermaLink="false">http://www.noelboss.ch/?p=1176</guid>
		<description><![CDATA[About a year ago, I created a jQuery Plugin to add tab-functionality to your page. The special thing about the plugin is, that is uses an event based approach. xaseTabs: xtensible and simple evented tabs. This enables you to extend the functionality of the plugin without altering the plugin-code. I have now published xasetabs.noelboss.ch where [...]]]></description>
			<content:encoded><![CDATA[<p>About a year ago, I created a <a href="http://xasetabs.noelboss.ch/#/?page=download">jQuery Plugin</a> to add tab-functionality to your page. The special thing about the plugin is, that is uses an event based approach. xaseTabs: xtensible and simple evented tabs. This enables you to extend the functionality of the plugin without altering the plugin-code. I have now published <a href="http://xasetabs.noelboss.ch/">xasetabs.noelboss.ch</a> where the options are documented and where you find extensions for the plugin.<br />
<a href="http://xasetabs.noelboss.ch/"><img src="http://www.noelboss.ch/wp-content/uploads/2011/08/xaseTabs-Website.png" alt="" title="xaseTabs Website" class="alignnone size-full wp-image-1177" /></a></p>
 <p><a href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1176&amp;md5=c070c45930014f09d7d2010775fd6269" title="Flattr" target="_blank"><img src="http://www.noelboss.ch/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.noelboss.ch/2011/08/xasetabs-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1176&amp;md5=c070c45930014f09d7d2010775fd6269" type="text/html" />
	</item>
		<item>
		<title>Was isch Dis Bild vo Gott?</title>
		<link>http://www.noelboss.ch/2011/08/gottesbild/</link>
		<comments>http://www.noelboss.ch/2011/08/gottesbild/#comments</comments>
		<pubDate>Wed, 03 Aug 2011 15:35:05 +0000</pubDate>
		<dc:creator>noelboss</dc:creator>
				<category><![CDATA[Faith]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[Short News]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://www.noelboss.ch/?p=1148</guid>
		<description><![CDATA[Üses Bild vo Gott, hät sonen riise Iifluss uf üsi Beziehig mit Gott. via Facebook and YouTube]]></description>
			<content:encoded><![CDATA[<blockquote class="quote"><p>Üses Bild vo Gott, hät sonen riise Iifluss uf üsi Beziehig mit Gott.</p></blockquote>
<p><object style="height: 25em; width: 100%"><param name="movie" value="http://www.youtube.com/v/MahmJnlWZT4?version=3"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"><embed src="http://www.youtube.com/v/MahmJnlWZT4?version=3" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" style="height: 25em; width: 100%"></embed></param></object></p>
<p><small>via Facebook and <a href="http://www.youtube.com/watch?v=MahmJnlWZT4&#038;feature=player_embedded" title="YouTube">YouTube</a></small></p>
 <p><a href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1148&amp;md5=666d4b16be628828f55ee6a9258a89f2" title="Flattr" target="_blank"><img src="http://www.noelboss.ch/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.noelboss.ch/2011/08/gottesbild/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<atom:link rel="payment" href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1148&amp;md5=666d4b16be628828f55ee6a9258a89f2" type="text/html" />
	</item>
		<item>
		<title>Fix the Lion</title>
		<link>http://www.noelboss.ch/2011/07/fix-the-lion/</link>
		<comments>http://www.noelboss.ch/2011/07/fix-the-lion/#comments</comments>
		<pubDate>Tue, 26 Jul 2011 12:16:40 +0000</pubDate>
		<dc:creator>noelboss</dc:creator>
				<category><![CDATA[Short News]]></category>
		<category><![CDATA[dashboard]]></category>
		<category><![CDATA[exposé]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[launchpad]]></category>
		<category><![CDATA[lion]]></category>
		<category><![CDATA[spaces]]></category>

		<guid isPermaLink="false">http://www.noelboss.ch/?p=1123</guid>
		<description><![CDATA[Lion ist draussen – nicht alles ist toll. Fix Spaces Wer von euch vermisst Binden von Applications an einen Space? Ja, ich auch. Danke an Remo für den Tipp, Terrific! Fix Scrolling Geht gar nicht; Und wennschon dennschon; Fix Dashboard Die Idee von Dashboard ist, dass man eine Fläche über dem Arbeitsplatz hat – Vorteil, [...]]]></description>
			<content:encoded><![CDATA[<p>Lion ist draussen – nicht alles ist toll.</p>
<h3>Fix Spaces</h3>
<p>Wer von euch vermisst Binden von Applications an einen Space? Ja, ich auch. Danke an <a href="http://www.terrifically.org/about">Remo</a> für den Tipp, Terrific!<br />
<a href="http://www.noelboss.ch/2011/07/fix-the-lion/fix-spaces/" rel="attachment wp-att-1131"><img src="http://www.noelboss.ch/wp-content/uploads/2011/07/Fix-Spaces.png" alt="" title="Fix Spaces" class="alignnone size-full wp-image-1131" /></a></p>
<h3>Fix Scrolling</h3>
<p>Geht gar nicht;<br />
<a href="http://www.noelboss.ch/wp-content/uploads/2011/07/Fix-Scrollen.png"><img src="http://www.noelboss.ch/wp-content/uploads/2011/07/Fix-Scrollen.png" alt="" title="Fix Scrollen" class="alignnone size-full wp-image-1130" /></a></p>
<p>Und wennschon dennschon;<br />
<a href="http://www.noelboss.ch/wp-content/uploads/2011/07/Fix-the-Scrollbars.png"><img src="http://www.noelboss.ch/wp-content/uploads/2011/07/Fix-the-Scrollbars.png" alt="" title="Fix the Scrollbars" class="alignnone size-full wp-image-1132" /></a></p>
<h3>Fix Dashboard</h3>
<p>Die Idee von Dashboard ist, dass man eine Fläche über dem Arbeitsplatz hat – Vorteil, mann kann was drunter abschreiben etc.; also, bitte zurück;<br />
<a href="http://www.noelboss.ch/wp-content/uploads/2011/07/Fix-Dashboard.png"><img src="http://www.noelboss.ch/wp-content/uploads/2011/07/Fix-Dashboard.png" alt="" title="Fix Dashboard" class="alignnone size-full wp-image-1128" /></a></p>
<h3>Fix Launchpad</h3>
<p>Bin kein grosser Fan von Launchpad, aber wennschon wennschon – Was will ich mit den Adobe Uninstallern und all dem Zeugs? Und löschen geht auch nicht? Geht gar nicht. Daher folgendes im Terminal eingeben;</p>
<blockquote><p>
<strike>$ sqlite3 ~/Library/Application\ Support/Dock/*.db &#8216;DELETE FROM apps;&#8217; &amp;&amp; killall Dock</strike><br />
$ sqlite3 ~/Library/Application\ Support/Dock/*.db &#8216;DELETE from apps;&#8217; \ &#8216; DELETE from groups WHERE title<>&#8220;&#8221;; DELETE from items WHERE rowid>2;&#8217; \ &#038;&#038; killall Dock;
</p></blockquote>
<p>Danach die gewünschten Ions auf Lunchpad ziehen – voila. (Leere Ordner – Icon reinziehen und wieder rausnehmen &gt; Popp)<br />
<a href="http://www.noelboss.ch/wp-content/uploads/2011/07/Fix-Launchpad.png"><img src="http://www.noelboss.ch/wp-content/uploads/2011/07/Fix-Launchpad.png" alt="" title="Fix Launchpad" class="alignnone size-full wp-image-1129" /></a></p>
<h3>Geheimtipp – Window Application&#8230;</h3>
<p>&#8230;benutzen um zuletzt geöffnete Files (von teils) Apps per Tastatur zu öffnen<br />
<a href="http://www.noelboss.ch/wp-content/uploads/2011/07/Application-Windows.png"><img src="http://www.noelboss.ch/wp-content/uploads/2011/07/Application-Windows.png" alt="" title="Application Windows" class="alignnone size-full wp-image-1126" /></a><br />
<a href="http://www.noelboss.ch/wp-content/uploads/2011/07/Application-Windows-–-Recent-Menu-in-Textmate.png"><img src="http://www.noelboss.ch/wp-content/uploads/2011/07/Application-Windows-–-Recent-Menu-in-Textmate.png" alt="" title="Application Windows – Recent Menu in Textmate" class="alignnone size-full wp-image-1127" /></a></p>
<h3>Weitere Tipps?</h3>
<p>Bitte in den Comments ;)</p>
<p><strong>Udpate:</strong> <a href="http://www.tuaw.com/2011/07/25/lion-deleting-apps-in-launchpad-and-starting-clean/">Besserer Launchpad Hack</a> – Danke Denis.</p>
 <p><a href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1123&amp;md5=32f4efa40879418b7c3dcd941a915c81" title="Flattr" target="_blank"><img src="http://www.noelboss.ch/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.noelboss.ch/2011/07/fix-the-lion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1123&amp;md5=32f4efa40879418b7c3dcd941a915c81" type="text/html" />
	</item>
		<item>
		<title>It Is More Important That Innocence Be Protected Than It Is That Guilt Be Punished</title>
		<link>http://www.noelboss.ch/2011/07/protect-innocence/</link>
		<comments>http://www.noelboss.ch/2011/07/protect-innocence/#comments</comments>
		<pubDate>Wed, 06 Jul 2011 16:25:16 +0000</pubDate>
		<dc:creator>noelboss</dc:creator>
				<category><![CDATA[Faith]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[Quotes]]></category>

		<guid isPermaLink="false">http://www.noelboss.ch/?p=1115</guid>
		<description><![CDATA[It is more important that innocence be protected than it is that guilt be punished, for guilt and crimes are so frequent in this world that they cannot all be punished. But if innocence itself is brought to the bar and condemned, perhaps to die, then the citizen will say, “whether I do good or [...]]]></description>
			<content:encoded><![CDATA[<blockquote class="quote"><p>
It is more important that innocence be protected than it is that guilt be punished, for guilt and crimes are so frequent in this world that they cannot all be punished. But if innocence itself is brought to the bar and condemned, perhaps to die, then the citizen will say, “whether I do good or whether I do evil is immaterial, for innocence itself is no protection,” and if such an idea as that were to take hold in the mind of the citizen that would be the end of security whatsoever.</p>
<p style="text-align: right;">John Adams</p>
</blockquote>
<p><small>(<a href="http://daringfireball.net/linked/2011/07/05/adams-guild-innocence">Via John Gruber</a>)</small></p>
 <p><a href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1115&amp;md5=8e550fdf4bfc03c614c2de4dd0dfaac8" title="Flattr" target="_blank"><img src="http://www.noelboss.ch/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.noelboss.ch/2011/07/protect-innocence/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1115&amp;md5=8e550fdf4bfc03c614c2de4dd0dfaac8" type="text/html" />
	</item>
		<item>
		<title>How to create m:n relations with Extbase and Fluid</title>
		<link>http://www.noelboss.ch/2011/06/m-to-n-relations-with-extbase-fluid/</link>
		<comments>http://www.noelboss.ch/2011/06/m-to-n-relations-with-extbase-fluid/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 11:52:01 +0000</pubDate>
		<dc:creator>noelboss</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Hint]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Typo3]]></category>
		<category><![CDATA[Typo3 extension]]></category>

		<guid isPermaLink="false">http://www.noelboss.ch/?p=1076</guid>
		<description><![CDATA[Update: don&#8217;t bother – I&#8217;ve found a much simpler solution and will update this tutorial soon! In the meantime, check out the extension on github where I&#8217;ve implemented the easy solution. I was looking for a tutorial that explains how to create true m:n relational objects with Typo3 and Extbase and Fluid. Unfortunately I could [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update: don&#8217;t bother – I&#8217;ve found a much simpler solution and will update this tutorial soon! In the meantime, check out the extension on <a href="https://github.com/noelboss/MtoN/">github</a> where I&#8217;ve implemented the easy solution.</strong></p>
<p>I was looking for a tutorial that explains how to create true m:n relational objects with Typo3 and Extbase and Fluid. Unfortunately I could not find something that explained how I could get this to work with the <a title="extension-extension_builder on Forge" href="http://forge.typo3.org/projects/show/extension-extension_builder">Extension Builder</a>. I finally figured out a working solution. This post will be a short tutorial on how to accomplish &#8220;has many and is child of many&#8221; relations with the Extbase Extension Builder.</p>
<ul>
<li>First you need Extbase and Fluid installed – it comes bundled with Typo3 – I used Typo3 4.5.3 with Extbase and Fluid 1.3</li>
<li>You also need to download and install the <a title="extension-extension_builder on Forge" href="http://forge.typo3.org/projects/show/extension-extension_builder">Extension Builder</a> –  unfortunately it&#8217;s not in the TER at the moment</li>
</ul>
<p>This tutorial will show you, how to create an extension with an object &#8220;category&#8221; which can have subcategories of the same type. You can create Categories and Subcategories. You can also assign multiple parent categories to subcategories and so forth. The relation will be visible on both ends.</p>
<p>First, you need to create a new extension. Switch to the Extension Builder and enter some details for your extension. In my case I create a new extension nbomn :</p>
<p><a href="http://www.noelboss.ch/wp-content/uploads/2011/06/Extension-M-to-N.png"><img class="alignnone size-full wp-image-1077" title="Extension M to N" src="http://www.noelboss.ch/wp-content/uploads/2011/06/Extension-M-to-N.png" alt="" width="465" height="449" /></a></p>
<p>Hit &#8220;save&#8221; after you have created the basics.</p>
<p>Now we are going to create a new Model &#8220;Category&#8221;. It is of the type &#8220;Entity&#8221; which is an object that has a unique identity. Much like a car – compared to a value object which would be more like a color that only has a meaning when applied to a subject (car) but can&#8217;t stand for it&#8217;s own. It&#8217;s also an aggregate root – this means the extension builder will generate a repository and default controller actions for this model so we can easily fetch and save objects – this has nothing to do with the m:n relation.</p>
<p><a href="http://www.noelboss.ch/wp-content/uploads/2011/06/Category-Model.png"><img class="alignnone size-full wp-image-1078" title="Category Model" src="http://www.noelboss.ch/wp-content/uploads/2011/06/Category-Model.png" alt="" width="385" height="127" /></a></p>
<p>Now that we have created the Model, let us add some properties. First and most obvious, we need a name for the category – this is of the type &#8220;String&#8221;, and it&#8217;s also required. Second, we need a new field that acts as the counterpart for the m:n relations. The Extension Builder will not create this automatically. It is of the type &#8220;Integer&#8221; and not required (since not all categories have parents).</p>
<p><a href="http://www.noelboss.ch/wp-content/uploads/2011/06/Properties-for-M-to-N.png"><img class="alignnone size-full wp-image-1079" title="Properties for M to N" src="http://www.noelboss.ch/wp-content/uploads/2011/06/Properties-for-M-to-N.png" alt="" width="383" height="408" /></a></p>
<p>Last but very much not least, we create a relation of the object to itself. The name of the relations is &#8220;subcategory&#8221; and it is of the type &#8220;m:n&#8221; – since this is what it&#8217;s all about. Also, we don&#8217;t want it to be a &#8220;inline&#8221; relation – we could not select existing categories that way. Then, we connect the &#8220;dot&#8221; from the relation to the dot of the domain by dragging a line from the dot at the bottom to the dot at the top left.</p>
<p><a href="http://www.noelboss.ch/wp-content/uploads/2011/06/Drag-from-bottom-to-top.png"><img class="alignnone size-full wp-image-1080" title="Drag from bottom to top" src="http://www.noelboss.ch/wp-content/uploads/2011/06/Drag-from-bottom-to-top.png" alt="" width="415" height="652" /></a></p>
<p>You will end up with this (Properties folded):</p>
<p><a href="http://www.noelboss.ch/wp-content/uploads/2011/06/M-to-N-Relation.png"><img class="alignnone size-full wp-image-1081" title="M to N Relation" src="http://www.noelboss.ch/wp-content/uploads/2011/06/M-to-N-Relation.png" alt="" width="414" height="299" /></a></p>
<p>Now you can save your extension. You have now a new folder named after your extension key in your extension folder typo3conf/ext/yourextkey. We now have to update two things:</p>
<ol>
<li>The MySQL database scheme for our mm table</li>
<li>The TCA configuration for the Typo3 backend forms</li>
</ol>
<p>Open the file &#8220;ext_tables.sql&#8221; and scroll down to your mm table. We will need to add three fields and change the KEY fields:</p>
<ol>
<li>New field <strong>uid</strong></li>
<li>New field <strong>pid</strong></li>
<li>New field <strong>tablenames</strong></li>
</ol>
<p>We will also change the KEY definition and define the UID as the PRIMARY KEY and the pid as the parent KEY.</p>
<pre class="brush: php">
## Original fields:
# KEY uid_local (uid_local),
# KEY uid_foreign (uid_foreign)

## Changed fields for m:n
PRIMARY KEY (uid),
KEY parent (pid),

## New Fields for m:n
uid int(10) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
tablenames varchar(255) DEFAULT '' NOT NULL</pre>
<p><a href="http://www.noelboss.ch/wp-content/uploads/2011/06/Table-fields-for-m-to-n1.png"><img class="alignnone size-full wp-image-1088" title="Table fields for m to n" src="http://www.noelboss.ch/wp-content/uploads/2011/06/Table-fields-for-m-to-n1.png" alt="" width="511" height="443" /></a></p>
<p>Now we change the subcategory TCA definition to allow for true m:n relations. Open the file &#8220;Category.php&#8221; at &#8220;Configuration/TCA&#8221; and find &#8220;MM&#8221; inside the &#8220;subcategory&#8221; configuration. We add two new definitions:</p>
<ol>
<li>&#8220;MM_match_fields&#8221; that matches the &#8220;tablenames&#8221; field from the mm table. <strong>Don&#8217;t forget to adjust it to your correct field-names!</strong></li>
<li>&#8220;MM_opposite_field&#8221; that links to our &#8220;category_mm&#8221;</li>
</ol>
<pre class="brush: php">'MM_match_fields' =&gt; array(
      'tablenames' =&gt; 'tx_nbomn_domain_model_category'
),
'MM_opposite_field' =&gt; 'category_mm',</pre>
<p><a href="http://www.noelboss.ch/wp-content/uploads/2011/06/Subcategory-changes.png"><img class="alignnone size-full wp-image-1090" title="Subcategory changes" src="http://www.noelboss.ch/wp-content/uploads/2011/06/Subcategory-changes.png" alt="" width="573" height="382" /></a></p>
<p>You should also add a line inside the &#8220;add wizard&#8221; configuration to prevent adding new subcategories before the parent has been saved:</p>
<pre class="brush: php">'notNewRecords' =&gt; 1,</pre>
<p><a href="http://www.noelboss.ch/wp-content/uploads/2011/06/Prevent-new-before-save.png"><img class="alignnone size-full wp-image-1091" title="Prevent new before save" src="http://www.noelboss.ch/wp-content/uploads/2011/06/Prevent-new-before-save.png" alt="" width="569" height="270" /></a></p>
<p><a href="http://www.noelboss.ch/wp-content/uploads/2011/06/Prevent-new-before-save.png"></a>That&#8217;s it for the subcategory configuration. It can now store relations to other categories. Now we need to setup the parent categories. We replace the whole &#8220;config&#8221; array of the &#8220;category_mm&#8221; field with the one of &#8220;subcategory&#8221;. Then we remove the &#8220;MM_opposite_field&#8221; entry:</p>
<p><a href="http://www.noelboss.ch/wp-content/uploads/2011/06/category_mm-changes1.png"><img class="alignnone size-full wp-image-1095" title="category_mm changes" src="http://www.noelboss.ch/wp-content/uploads/2011/06/category_mm-changes1.png" alt="" width="599" height="473" /></a></p>
<p>That&#8217;s all. Now we have working Sub- and Parentcategories. You can now go to the Extension Manager and install your Extension. Then create a Sysfolder somewhere in your Pagetree and insert a new category.</p>
<p><a href="http://www.noelboss.ch/wp-content/uploads/2011/06/Backend-New-Category.png"><img class="alignnone size-full wp-image-1096" title="Backend New Category" src="http://www.noelboss.ch/wp-content/uploads/2011/06/Backend-New-Category.png" alt="" width="734" height="323" /></a></p>
<p>After you save the category, you can create subcategories and also add new parent categories:</p>
<p><a href="http://www.noelboss.ch/wp-content/uploads/2011/06/Backend-Category-and-Subcategory.png"><img class="alignnone size-full wp-image-1097" title="Backend Category and Subcategory" src="http://www.noelboss.ch/wp-content/uploads/2011/06/Backend-Category-and-Subcategory.png" alt="" width="812" height="673" /></a></p>
<p>I hope, this helped you to create your own m:n relations with the Extbase Extension Builder. If you have any questions or suggestions, feel free to leave a comment. In case you like to take a look at my test extension – <a title="Download Extension Package" href="T3X_nbomn-0_2_0-z-201108221727.t3x">download nbomn</a> – it&#8217;s also on <a title="nbomn on GitHub" href="https://github.com/noelboss/MtoN">GitHub</a>.</p>
<p>Ps. On my way to this solution <a href="http://lists.typo3.org/pipermail/typo3-project-extbase-kickstarter/2011-January/000198.html">this thread</a> was useful.</p>
 <p><a href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1076&amp;md5=9723fa7d8f27c0ca974bf7fa1a4630ad" title="Flattr" target="_blank"><img src="http://www.noelboss.ch/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.noelboss.ch/2011/06/m-to-n-relations-with-extbase-fluid/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<atom:link rel="payment" href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1076&amp;md5=9723fa7d8f27c0ca974bf7fa1a4630ad" type="text/html" />
	</item>
		<item>
		<title>The Man&#8217;s Guide To Love</title>
		<link>http://www.noelboss.ch/2011/05/the-mans-guide-to-love/</link>
		<comments>http://www.noelboss.ch/2011/05/the-mans-guide-to-love/#comments</comments>
		<pubDate>Thu, 19 May 2011 06:41:25 +0000</pubDate>
		<dc:creator>noelboss</dc:creator>
				<category><![CDATA[Faith]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[Short News]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://www.noelboss.ch/?p=1067</guid>
		<description><![CDATA[“Straight up honesty, whatever the cost.” www.themansguidetolove.com – Ditch, 35]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://player.vimeo.com/video/20235317" width="100%" style="height: 19.5em;" frameborder="0"></iframe></p>
<blockquote class="quote"><p>“Straight up honesty, whatever the cost.”</p></blockquote>
<p><a href="http://www.themansguidetolove.com/">www.themansguidetolove.com</a> – <a href="http://www.themansguidetolove.com/2011/02/22/ditch-35/">Ditch, 35</a></p>
 <p><a href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1067&amp;md5=768df3de1c92d45f2ba4ac4139983065" title="Flattr" target="_blank"><img src="http://www.noelboss.ch/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.noelboss.ch/2011/05/the-mans-guide-to-love/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1067&amp;md5=768df3de1c92d45f2ba4ac4139983065" type="text/html" />
	</item>
		<item>
		<title>Zwänzger Camp Fotos</title>
		<link>http://www.noelboss.ch/2011/04/zwanzger-camp-fotos/</link>
		<comments>http://www.noelboss.ch/2011/04/zwanzger-camp-fotos/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 14:57:32 +0000</pubDate>
		<dc:creator>noelboss</dc:creator>
				<category><![CDATA[Art]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Short News]]></category>

		<guid isPermaLink="false">http://www.noelboss.ch/?p=1062</guid>
		<description><![CDATA[How it&#8217;s supposed to be&#8230;]]></description>
			<content:encoded><![CDATA[<p><a href="zwaenzger/">How it&#8217;s supposed to be&#8230;</a></p>
 <p><a href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1062&amp;md5=143bde3d065fdf1522a6a46100c44d52" title="Flattr" target="_blank"><img src="http://www.noelboss.ch/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.noelboss.ch/2011/04/zwanzger-camp-fotos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1062&amp;md5=143bde3d065fdf1522a6a46100c44d52" type="text/html" />
	</item>
		<item>
		<title>The Reason</title>
		<link>http://www.noelboss.ch/2011/04/the-reason/</link>
		<comments>http://www.noelboss.ch/2011/04/the-reason/#comments</comments>
		<pubDate>Mon, 18 Apr 2011 15:00:23 +0000</pubDate>
		<dc:creator>noelboss</dc:creator>
				<category><![CDATA[Art]]></category>
		<category><![CDATA[Faith]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://www.noelboss.ch/?p=1058</guid>
		<description><![CDATA[www.zwaenzger.ch]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://player.vimeo.com/video/19258442?title=0&amp;byline=0&amp;portrait=0" width="100%" frameborder="0" style="height: 19.5em;"></iframe><br />
<a href="http://zwaenzger.ch">www.zwaenzger.ch</a></p>
 <p><a href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1058&amp;md5=8b87f3464a8057b84f5b012bdf867cbe" title="Flattr" target="_blank"><img src="http://www.noelboss.ch/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.noelboss.ch/2011/04/the-reason/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1058&amp;md5=8b87f3464a8057b84f5b012bdf867cbe" type="text/html" />
	</item>
		<item>
		<title>100&#8217;000 starlings fill the skies</title>
		<link>http://www.noelboss.ch/2011/01/100000-starlings-fill-the-skies/</link>
		<comments>http://www.noelboss.ch/2011/01/100000-starlings-fill-the-skies/#comments</comments>
		<pubDate>Thu, 20 Jan 2011 12:25:35 +0000</pubDate>
		<dc:creator>noelboss</dc:creator>
				<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://www.noelboss.ch/?p=1048</guid>
		<description><![CDATA[A fantastic natural phenomenon is filling the skies over Sterte every night as around 100,000 starlings form a black cloud. This amazing sight over Poole as the light fades is attracting scores of bird watchers and photographers, all of whom are keen to capture the starling spectacle. Last winter there were around 20,000 to 30,000 [...]]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://player.vimeo.com/video/18813015?portrait=0" width="100%" frameborder="0" style="height: 19.5em;"></iframe></p>
<blockquote class="quote"><p>A fantastic natural phenomenon is filling the skies over Sterte every night as around 100,000 starlings form a black cloud. This amazing sight over Poole as the light fades is attracting scores of bird watchers and photographers, all of whom are keen to capture the starling spectacle. Last winter there were around 20,000 to 30,000 birds wheeling around the sky but this year the flock has grown enormously as more and more birds join in. </p></blockquote>
 <p><a href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1048&amp;md5=5c7f8810f18ff882201242ce79d4ba76" title="Flattr" target="_blank"><img src="http://www.noelboss.ch/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.noelboss.ch/2011/01/100000-starlings-fill-the-skies/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<atom:link rel="payment" href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1048&amp;md5=5c7f8810f18ff882201242ce79d4ba76" type="text/html" />
	</item>
		<item>
		<title>Jesus – Messiah – or a complete nut case</title>
		<link>http://www.noelboss.ch/2011/01/jesus-messiah-or-nutcase/</link>
		<comments>http://www.noelboss.ch/2011/01/jesus-messiah-or-nutcase/#comments</comments>
		<pubDate>Tue, 18 Jan 2011 20:49:05 +0000</pubDate>
		<dc:creator>noelboss</dc:creator>
				<category><![CDATA[Faith]]></category>
		<category><![CDATA[Quotes]]></category>
		<category><![CDATA[U2 Bono Jesus]]></category>

		<guid isPermaLink="false">http://www.noelboss.ch/?p=1039</guid>
		<description><![CDATA[&#8220;Look, the secular response to the Christ story always goes like this: He was a great prophet, obviously a very interesting guy, had a lot to say along the lines of other great prophets, be they Elijah, Muhammad, Buddha, or Confucius. But actually Christ doesn&#8217;t allow you that. He doesn&#8217;t let you off that hook. [...]]]></description>
			<content:encoded><![CDATA[<blockquote class="quote"><p>&#8220;Look, the secular response to the Christ story always goes like this: He was a great prophet, obviously a very interesting guy, had a lot to say along the lines of other great prophets, be they Elijah, Muhammad, Buddha, or Confucius. But actually Christ doesn&#8217;t allow you that. He doesn&#8217;t let you off that hook. Christ says, No. I&#8217;m not saying I&#8217;m a teacher, don&#8217;t call me teacher. I&#8217;m not saying I&#8217;m a prophet. I&#8217;m saying: &#8216;I&#8217;m the Messiah.&#8217; I&#8217;m saying: &#8216;I am God incarnate.&#8217; . . . So what you&#8217;re left with is either Christ was who He said He was—the Messiah—or a complete nut case. . . . The idea that the entire course of civilization for over half of the globe could have its fate changed and turned upside-down by a nut case, for me that&#8217;s far fetched.&#8221;</p></blockquote>
<p style="text-align: right;">Bono, <a href="http://www.ministryvalues.com/index.php?option=com_content&amp;task=view&amp;id=809&amp;Itemid=125">via</a></p>
 <p><a href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1039&amp;md5=4049fa372d5d2c6747ef15575064fdbc" title="Flattr" target="_blank"><img src="http://www.noelboss.ch/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.noelboss.ch/2011/01/jesus-messiah-or-nutcase/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1039&amp;md5=4049fa372d5d2c6747ef15575064fdbc" type="text/html" />
	</item>
		<item>
		<title>htmldecode and encode View Helpers for Fluid (Update)</title>
		<link>http://www.noelboss.ch/2010/12/htmldecode-encode-view-helper-fluid/</link>
		<comments>http://www.noelboss.ch/2010/12/htmldecode-encode-view-helper-fluid/#comments</comments>
		<pubDate>Wed, 08 Dec 2010 12:44:00 +0000</pubDate>
		<dc:creator>noelboss</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Typo3]]></category>

		<guid isPermaLink="false">http://www.noelboss.ch/?p=1030</guid>
		<description><![CDATA[Fluid and Extbase are cool stuff! Really. Right now I create a new extension for a Namics customer and I am also working on a port of my podcast extension. All the basic stuff is already done; creating xml, rendering views for the podcasts including HTML5 Audio output etc. – if you like to offer [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.typoplanet.de/2010/07/06/book-about-extbase-and-fluid/">Fluid and Extbase</a> are cool stuff! Really. Right now I create a new extension for a <a href="http://namics.com">Namics</a> customer and I am also working on a port of my <a href="http://www.noelboss.ch/2010/10/typo3-nbo-podcast/">podcast extension</a>. All the basic stuff is already done; creating xml, rendering views for the podcasts including HTML5 Audio output etc. – if you like to offer help, leave me a comment.<br />
One thing I found laking was, that objects assigned to the view are html encoded – this means, that if you assign the view a prerendered tag, lets say a captcha-image, it will show up as text and not as html tag. There is no easy way around it – that said, if you&#8217;re not up to abuse the <em><f:format .html></f:format></em> helper by providing a wrong <em>parseFuncTSPath</em> argument. That&#8217;s why I have written two simple fluid view helpers that might help you with your own extension:</p>
<p><strong>htmlDecode View Helper</strong></p>
<pre class="brush: php">
class Tx_YourExtensionKey_Format_HtmlDecodeViewHelper extends Tx_Fluid_Core_ViewHelper_AbstractViewHelper {
    /**
     * Decodes a given string to HTML
     *
     * @param string $string the string to be decoded
     * @param string $quote_style The optional second quote_style parameter lets you define what will be done with 'single' and "double" quotes. It takes on one of three constants with the default being ENT_COMPAT:
     * @param string $charset The URF-8 character set is used as default for the optional third charset. This defines the character set used in conversion.
     * @return string htmldecoded string
     * @author Noel Bossart
     */
    public function render($code = NULL, $quote_style = ENT_COMPAT, $charset = 'UTF-8') {
        if ($code === NULL) {
            $code = $this->renderChildren();
        }
        return html_entity_decode($code, $quote_style, $charset);
    }
}
</pre>
<p><strong>htmlEncode View Helper:</strong></p>
<pre class="brush: php">
class Tx_YourExtensionKey_ViewHelpers_Format_HtmlEncodeViewHelper extends Tx_Fluid_Core_ViewHelper_AbstractViewHelper {

    /**
     * HTML encodes a given string
     *
     * @param string $string the string to be encoded
     * @param string $quote_style The optional second quote_style parameter lets you define what will be done with 'single' and "double" quotes. It takes on one of three constants with the default being ENT_COMPAT:
     * @param string $charset The URF-8 character set is used as default for the optional third charset. This defines the character set used in conversion.
     * @return string HTML encoded string
     * @author Noel Bossart
     */
    public function render($code = NULL, $quote_style = ENT_COMPAT, $charset = 'UTF-8') {
        if ($code === NULL) {
            $code = $this->renderChildren();
        }
        return htmlspecialchars($code, $quote_style, $charset);
    }
}
</pre>
<p>You can <a href="http://noelboss.ch/downloads/hmltDecodeViewHelper.zip">download both view helpers</a> and put the files into the following folder: EXT:/yourextension/Classes/ViewHelpers/Format/</p>
<p><strong>Updated:</strong> Or you just use html_entity_decode() before you pass it to the view :)</p>
 <p><a href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1030&amp;md5=16791e0e390fff9cd20dcdc81428240b" title="Flattr" target="_blank"><img src="http://www.noelboss.ch/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.noelboss.ch/2010/12/htmldecode-encode-view-helper-fluid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1030&amp;md5=16791e0e390fff9cd20dcdc81428240b" type="text/html" />
	</item>
		<item>
		<title>New Typo3 Podcast Extension Release</title>
		<link>http://www.noelboss.ch/2010/10/typo3-nbo-podcast/</link>
		<comments>http://www.noelboss.ch/2010/10/typo3-nbo-podcast/#comments</comments>
		<pubDate>Wed, 27 Oct 2010 15:20:12 +0000</pubDate>
		<dc:creator>noelboss</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Downloads]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Short News]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Typo3]]></category>
		<category><![CDATA[typo3 podcast]]></category>

		<guid isPermaLink="false">http://www.noelboss.ch/?p=1004</guid>
		<description><![CDATA[The last day, I checked my veeeery old e-mail address after years and found some feature-requests and bug-reports for my podcast extension that provides typo3 the ability to create audio-podcasts. I haven&#8217;t touched it since 2008 so I was pleased to find out, that it still worked with the current version of typo3. I was [...]]]></description>
			<content:encoded><![CDATA[<p>The last day, I checked my veeeery old e-mail address after years and found some feature-requests and bug-reports for my podcast extension that provides typo3 the ability to create audio-podcasts. I haven&#8217;t touched it since 2008 so I was pleased to find out, that it still worked with the current version of typo3. I was also amazed, that after all this years, nbo_podcast seems to bee the only (widely used) extension that provides this functionality.</p>
<p><img class="alignnone size-full wp-image-1021" title="Podcast Extension nbo_podcast working with Typo3 4.4 " src="http://www.noelboss.ch/wp-content/uploads/2010/10/Screen-shot-2010-10-27-at-16.23.451.png" alt="" /></p>
<p>A <a href="http://circusofmymind.blogspot.com/2010/10/typo3-nbopodcast-modifications-for.html">common request</a> was to make it possible for podcast producers to link files hosted on a different server than typo3. With the newest release version 2.0.3 uploaded to the Typo3 TER today, I added this possibility together with some bug-fixes and small changes. The Manual has undergone a slight update with new Screenshots. Go ahead and <a href="http://typo3.org/extensions/repository/view/nbo_podcast/current/">download the extension</a> and <a href="http://typo3.org/documentation/document-library/extension-manuals/nbo_podcast/2.0.3/view/">RTFM</a> (Read The Famous Manual).</p>
 <p><a href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1004&amp;md5=14062decfefbb4996e7eefdcb9c0c860" title="Flattr" target="_blank"><img src="http://www.noelboss.ch/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.noelboss.ch/2010/10/typo3-nbo-podcast/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.noelboss.ch/?flattrss_redirect&amp;id=1004&amp;md5=14062decfefbb4996e7eefdcb9c0c860" type="text/html" />
	</item>
	</channel>
</rss>

<!-- Dynamic page generated in 1.336 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-05-19 12:23:23 -->

