<?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/"
	>

<channel>
	<title>labs.calibrate.be</title>
	<atom:link href="http://labs.calibrate.be/feed/" rel="self" type="application/rss+xml" />
	<link>http://labs.calibrate.be</link>
	<description></description>
	<pubDate>Tue, 07 Dec 2010 18:06:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>TLF-Text in Flash CS5 bug</title>
		<link>http://labs.calibrate.be/2010/12/07/tlf-text-in-flash-cs5-bug/</link>
		<comments>http://labs.calibrate.be/2010/12/07/tlf-text-in-flash-cs5-bug/#comments</comments>
		<pubDate>Tue, 07 Dec 2010 18:06:33 +0000</pubDate>
		<dc:creator>Dries</dc:creator>
		
		<category><![CDATA[AS3]]></category>

		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://labs.calibrate.be/?p=159</guid>
		<description><![CDATA[I&#8217;ve discovered a nasty bug in the Flash CS5 new Text Layout Framework (TLF-Text).
When you type certain characters in a TLF-Text text field, you can get a strange error at compile-time:
Error 1104: Invalid xml name
Since XML is not used in the project we were working on, it didn&#8217;t make any sense&#8230;
If you use a TLF-Text [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve discovered a nasty bug in the Flash CS5 new Text Layout Framework (TLF-Text).<br />
When you type certain characters in a TLF-Text text field, you can get a strange error at compile-time:</p>
<p>Error 1104: Invalid xml name</p>
<p>Since XML is not used in the project we were working on, it didn&#8217;t make any sense&#8230;</p>
<p>If you use a TLF-Text text field in the Flash IDE, and you type certain characters (in our case &#8220;=&#8221;) the error starts to appear.<br />
Not sure if this is always the case, but in our case, it triggered the error.</p>
<p>The only workaround I can provide at this time, is to switch the TLF-Text back to Classic-Text.<br />
This off course means loosing the TLF-functionality, but it does stop the error from occurring.</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.calibrate.be/2010/12/07/tlf-text-in-flash-cs5-bug/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Page redirect after node submit</title>
		<link>http://labs.calibrate.be/2010/10/25/page-redirect-after-node-submit/</link>
		<comments>http://labs.calibrate.be/2010/10/25/page-redirect-after-node-submit/#comments</comments>
		<pubDate>Mon, 25 Oct 2010 08:23:20 +0000</pubDate>
		<dc:creator>Steven Van den Hout</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://labs.calibrate.be/?p=155</guid>
		<description><![CDATA[I wanted to redirect to another page after node submit.
Setting $form['#redirect'] didn&#8217;t result in such behaviour.
It&#8217;s not a good idea to use the standard form submit handler to redirect to another page since drupal calls a number of hooks when saving a node.
What does work, is setting the $form_state['redirect'] on the submit buttons submit handler.
$form['buttons']['submit']['#submit'][] [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to redirect to another page after node submit.<br />
Setting $form['#redirect'] didn&#8217;t result in such behaviour.</p>
<p>It&#8217;s not a good idea to use the standard form submit handler to redirect to another page since drupal calls a number of hooks when saving a node.</p>
<p>What does work, is setting the $form_state['redirect'] on the submit buttons submit handler.<br />
<code>$form['buttons']['submit']['#submit'][] = &#8216;my_module_example_form_submit&#8217;</code></p>
<p><a href="http://www.brianvuyk.com/story-type/changing-redirect-value-drupal-node-form-d6">Thx to Brian Vuyk for pointing this out.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://labs.calibrate.be/2010/10/25/page-redirect-after-node-submit/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Localized terms and views</title>
		<link>http://labs.calibrate.be/2010/10/14/localized-terms-and-views/</link>
		<comments>http://labs.calibrate.be/2010/10/14/localized-terms-and-views/#comments</comments>
		<pubDate>Thu, 14 Oct 2010 14:11:03 +0000</pubDate>
		<dc:creator>Steven Van den Hout</dc:creator>
		
		<category><![CDATA[drupal]]></category>

		<category><![CDATA[localized terms]]></category>

		<category><![CDATA[views]]></category>

		<guid isPermaLink="false">http://labs.calibrate.be/?p=152</guid>
		<description><![CDATA[When you use localized terms (terms have the same tid for all languages, but can be translated in the translate interface)
views has problems translating you terms.
This problem can be resolved by adding the following hook to you custom module

/**
* implementation of hook_views_pre_render
*/
function mymodule_views_pre_render($view) {
if ($view-&#62;name == &#8216;view_name&#8217;) {
foreach($view-&#62;result as $term) {
$term-&#62;term_data_name = tt(&#8217;taxonomy:term:&#8217;.$term-&#62;tid.&#8217;:name&#8217;, $term-&#62;term_data_name);
}
}
}
]]></description>
			<content:encoded><![CDATA[<p>When you use localized terms (terms have the same tid for all languages, but can be translated in the translate interface)<br />
views has problems translating you terms.</p>
<p>This problem can be resolved by adding the following hook to you custom module</p>
<blockquote><p>
/**<br />
* implementation of hook_views_pre_render<br />
*/<br />
function mymodule_views_pre_render($view) {<br />
if ($view-&gt;name == &#8216;view_name&#8217;) {<br />
foreach($view-&gt;result as $term) {<br />
$term-&gt;term_data_name = tt(&#8217;taxonomy:term:&#8217;.$term-&gt;tid.&#8217;:name&#8217;, $term-&gt;term_data_name);<br />
}<br />
}<br />
}</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://labs.calibrate.be/2010/10/14/localized-terms-and-views/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Sanitize strings</title>
		<link>http://labs.calibrate.be/2010/10/14/sanitize-strings/</link>
		<comments>http://labs.calibrate.be/2010/10/14/sanitize-strings/#comments</comments>
		<pubDate>Thu, 14 Oct 2010 14:01:16 +0000</pubDate>
		<dc:creator>Steven Van den Hout</dc:creator>
		
		<category><![CDATA[drupal]]></category>

		<guid isPermaLink="false">http://labs.calibrate.be/?p=147</guid>
		<description><![CDATA[Ever wanted to sanitize strings as pathauto does?
Why not let pathauto do it for you?
if (module_exists(&#8217;pathauto&#8217;)) {
// add the pathauto.inc file
require_once(drupal_get_path(&#8217;module&#8217;, &#8216;pathauto&#8217;) . &#8216;/pathauto.inc&#8217;);
$sane_string = pathauto_cleanstring(&#8217;èàé ï%&#8217;);
}
]]></description>
			<content:encoded><![CDATA[<h4>Ever wanted to sanitize strings as pathauto does?</h4>
<p>Why not let pathauto do it for you?</p>
<blockquote><p>if (module_exists(&#8217;pathauto&#8217;)) {<br />
// add the pathauto.inc file<br />
require_once(drupal_get_path(&#8217;module&#8217;, &#8216;pathauto&#8217;) . &#8216;/pathauto.inc&#8217;);<br />
$sane_string = pathauto_cleanstring(&#8217;èàé ï%&#8217;);<br />
}</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://labs.calibrate.be/2010/10/14/sanitize-strings/feed/</wfw:commentRss>
		</item>
		<item>
		<title>IE no-wrap problem with slashes!</title>
		<link>http://labs.calibrate.be/2010/04/22/ie-no-wrap-problem-with-slashes/</link>
		<comments>http://labs.calibrate.be/2010/04/22/ie-no-wrap-problem-with-slashes/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 08:07:11 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<category><![CDATA[break-word]]></category>

		<category><![CDATA[IE]]></category>

		<category><![CDATA[url]]></category>

		<category><![CDATA[word-wrap]]></category>

		<guid isPermaLink="false">http://labs.calibrate.be/?p=142</guid>
		<description><![CDATA[It seems IE can&#8217;t handle long URL&#8217;s in small HTML elements. So after a little bit of research I found a simple solution. This may not be the most breaking news but I never heard of it before so&#8230;
This is the solution:  
/* IE Word wrapper */
word-wrap: break-word;
Hopefully this cal help you.
]]></description>
			<content:encoded><![CDATA[<p>It seems IE can&#8217;t handle long URL&#8217;s in small HTML elements. So after a little bit of research I found a simple solution. This may not be the most breaking news but I never heard of it before so&#8230;</p>
<p>This is the solution:<!--[if gte mso 10]&gt;-->  <!--[endif]--></p>
<p class="MsoPlainText">/* IE Word wrapper */<br />
word-wrap: break-word;</p>
<p class="MsoPlainText">Hopefully this cal help you.</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.calibrate.be/2010/04/22/ie-no-wrap-problem-with-slashes/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PHP 6 features</title>
		<link>http://labs.calibrate.be/2009/12/30/php-6-features/</link>
		<comments>http://labs.calibrate.be/2009/12/30/php-6-features/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 09:47:39 +0000</pubDate>
		<dc:creator>Joris</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://labs.calibrate.be/?p=135</guid>
		<description><![CDATA[What will PHP6 bring? This article has a little summary of what the future of PHP holds.
]]></description>
			<content:encoded><![CDATA[<p>What will PHP6 bring? <a title="PHP 6  features" href="http://blog.tuvinh.com/one-minute-with-php6/" target="_blank">This article</a> has a little summary of what the future of PHP holds.</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.calibrate.be/2009/12/30/php-6-features/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Drupal Login Problem in IE</title>
		<link>http://labs.calibrate.be/2009/09/16/drupal-login-problem-in-ie/</link>
		<comments>http://labs.calibrate.be/2009/09/16/drupal-login-problem-in-ie/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 12:56:33 +0000</pubDate>
		<dc:creator>Kenny</dc:creator>
		
		<category><![CDATA[drupal]]></category>

		<category><![CDATA[login problem drupal IE]]></category>

		<guid isPermaLink="false">http://labs.calibrate.be/?p=132</guid>
		<description><![CDATA[Had some wonderfull Internet Explorer frustrations today and thought i&#8217;d share it with you.
When I copied a Drupal site from our testserver to my local machine i found out i couldn&#8217;t login to Drupal using Internet Explorer (7).
Firefox worked fine but IE refused 100% of the time. No error messages or warnings, the login block [...]]]></description>
			<content:encoded><![CDATA[<p>Had some wonderfull Internet Explorer frustrations today and thought i&#8217;d share it with you.</p>
<p>When I copied a Drupal site from our testserver to my local machine i found out i couldn&#8217;t login to Drupal using Internet Explorer (7).<br />
Firefox worked fine but IE refused 100% of the time. No error messages or warnings, the login block was emptied and you&#8217;d return to thesame page.<br />
I did some research and turns out Internet Explorer makes a problem out of underscores in your domainname (whereas Firefox ignores it). Guess what i was using &#8230;<br />
I changed my apache vhosts file and windows hosts file by removing the underscore for that particular site, rebooted apache and afterwards my login worked like a charm in IE.</p>
<p>Hope this helps someone .(be aware that I found more problems than this in using IE, sometimes just clearing your cookies would do the tric according to some users. Not in my case though).</p>
<p>PS: This has to be the 5.789.438th time i wished someone would just nuke IE of the planet&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.calibrate.be/2009/09/16/drupal-login-problem-in-ie/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Custom sql queries in Views</title>
		<link>http://labs.calibrate.be/2009/08/20/custom-sql-queries-in-views/</link>
		<comments>http://labs.calibrate.be/2009/08/20/custom-sql-queries-in-views/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 08:38:13 +0000</pubDate>
		<dc:creator>Kenny</dc:creator>
		
		<category><![CDATA[drupal]]></category>

		<category><![CDATA[custom sql]]></category>

		<category><![CDATA[views]]></category>

		<guid isPermaLink="false">http://labs.calibrate.be/?p=126</guid>
		<description><![CDATA[I came across this when i was looking for a way to use my own sqly queries in combination with views.
Sometimes you can&#8217;t always get the things you want by using views (or you&#8217;re too lazy to fiddle around with arguments, relationships, etc.)
The idea is simple :
1) test your own custom query in phpmyadmin for [...]]]></description>
			<content:encoded><![CDATA[<p>I came across this when i was looking for a way to use my own sqly queries in combination with views.<br />
Sometimes you can&#8217;t always get the things you want by using views (or you&#8217;re too lazy to fiddle around with arguments, relationships, etc.)</p>
<p>The idea is simple :</p>
<p>1) test your own custom query in phpmyadmin for example.</p>
<p>2) create a view and save it. You don&#8217;t have to set any filters since the SQL will be overwritten.</p>
<p>2) if you haven&#8217;t created your own module yet, create one now and place the following code in it.Â  replace MYMODULE by the name of your own module and VIEW_NAME by the name of the view you&#8217;ve just created. Then, change the sql query you see here by your own.</p>
<p style="padding-left: 30px;">function MYMODULE _views_pre_execute(&amp;$view) {</p>
<p style="padding-left: 60px;">//drupal_set_message(&#8217;&#8212;-&gt;&gt;&gt;&#8217;.$view-&gt;name);<br />
if($view-&gt;name==&#8221;VIEW_NAME&#8221;) {</p>
<p style="padding-left: 90px;">$view-&gt;build_info['query']=&#8221;SELECT vidnode.nid as nid, vidnode.title as title<br />
FROM node vidnode WHERE vidnode.type=&#8217;ptl_remotevideo&#8217;<br />
AND vidnode.status &lt;&gt; 0<br />
AND vidnode.nid NOT IN (<br />
SELECT DISTINCT media.field_media_video_ref_nid as video_nid<br />
FROM content_field_media_video_ref media<br />
)&#8221;;</p>
<p style="padding-left: 60px;">}</p>
<p style="padding-left: 30px;">}</p>
<p style="padding-left: 30px;">
<p>That&#8217;s it. I used a node view and it gave me what i wanted. I didn&#8217;t have time to check out other settings but i guess it shouldn&#8217;t be too hard.</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.calibrate.be/2009/08/20/custom-sql-queries-in-views/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Upgrade ImageMagick to the latest version</title>
		<link>http://labs.calibrate.be/2009/07/13/upgrade-imagemagick-to-the-latest-version/</link>
		<comments>http://labs.calibrate.be/2009/07/13/upgrade-imagemagick-to-the-latest-version/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 10:41:51 +0000</pubDate>
		<dc:creator>Joris</dc:creator>
		
		<category><![CDATA[Other]]></category>

		<category><![CDATA[ImageMagick]]></category>

		<guid isPermaLink="false">http://labs.calibrate.be/?p=123</guid>
		<description><![CDATA[A lot of people are looking for an updated installation of ImageMagick instead of those pesky yum packages on Redhat or CentOS. To upgrade to the last version, use these commands :
# uninstall old ImageMagick
yum remove ImageMagick
# get new ImageMagick sources
wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
# untar
tar -zxvf ImageMagick*.tar.gz
cd ImageMagick*
# configure and make
./configure
make
# install
make install
# test ImageMagick (shouldn&#8217;t report [...]]]></description>
			<content:encoded><![CDATA[<p>A lot of people are looking for an updated installation of ImageMagick instead of those pesky yum packages on Redhat or CentOS. To upgrade to the last version, use these commands :</p>
<p># uninstall old ImageMagick<br />
yum remove ImageMagick</p>
<p># get new ImageMagick sources<br />
wget <a title="ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz" href="ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz" target="_blank">ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz</a></p>
<p># untar<br />
tar -zxvf ImageMagick*.tar.gz<br />
cd ImageMagick*</p>
<p># configure and make<br />
./configure<br />
make</p>
<p># install<br />
make install</p>
<p># test ImageMagick (shouldn&#8217;t report an error)<br />
convert logo: logo.gif</p>
<p># fix problem with rmagick not finding ImageMagick libraries<br />
echo /usr/local/lib &gt;&gt; /etc/ld.so.conf.d/ImageMagick.conf<br />
ldconfig</p>
<p># update rmagick<br />
gem install rmagick</p>
<p>I found this at https://support.railsmachine.com/index.php?pg=kb.page&amp;id=133</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.calibrate.be/2009/07/13/upgrade-imagemagick-to-the-latest-version/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to put a hyperlink on your building</title>
		<link>http://labs.calibrate.be/2009/07/02/how-to-put-a-hyperlink-on-your-building/</link>
		<comments>http://labs.calibrate.be/2009/07/02/how-to-put-a-hyperlink-on-your-building/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 13:11:17 +0000</pubDate>
		<dc:creator>Joris Hermans</dc:creator>
		
		<category><![CDATA[Other]]></category>

		<category><![CDATA[2D barcode]]></category>

		<category><![CDATA[hyperlink]]></category>

		<category><![CDATA[internet of things]]></category>

		<category><![CDATA[qrcode]]></category>

		<guid isPermaLink="false">http://labs.calibrate.be/?p=116</guid>
		<description><![CDATA[Have you ever wondered how to link your building to a webpage?

With 2D barcodes you can.
A 2D barcode or Matrix code is a two-dimensional way of representing information.
It has more data representation capability then a (1-dimensional) barcode.
What is cool about a 2D barcode is that it can be read by every mobile device that has [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever wondered how to link your building to a webpage?</p>
<p><img class="alignnone size-thumbnail wp-image-118" src="http://labs.calibrate.be/wp-content/uploads/2009/07/article_hyperlink-150x150.png" alt="article_hyperlink" width="150" height="150" /></p>
<p>With 2D barcodes you can.</p>
<p>A 2D barcode or Matrix code is a two-dimensional way of representing information.<br />
It has more data representation capability then a (1-dimensional) barcode.</p>
<p>What is cool about a 2D barcode is that it can be read by every mobile device that has a camera and the reader software. So no special hardware required to scan a 2D barcode</p>
<p>You can store some formatted information on a 2D barcode. This information is in the form of an URI.</p>
<p>Most 2D barcode readers will send the URI encoded in the 2D barcode to the platform specific implementation.<br />
That is why some URIâ€™s will not been interpreted by one phone but will be by another phone.</p>
<p>These are some informartion you can encode in a 2D barcode:</p>
<ul>
<li>Link to a website.<br />
http:// is required, otherwise it will not know it is a website<br />
example : http://www.calibrate.be</li>
<li>Email address<br />
example : mailto:newmedia@calibrate.be</li>
<li>Telephone numbers<br />
example :Â  tel:+3238719962</li>
<li>Contact Information based on the â€œMECARDâ€�<br />
MECARD:N:Hermans,Joris;ADR: Veldkant 31, 2550 Kontich, Belgium;TEL: +32 3 871 99 62;EMAIL:joris@calibrate.be;;</li>
<li>SMS hava some few possibilities : sms or smsto<br />
sms:number:subject or smsto:number:subject</li>
<li>Geographic information<br />
example : geo:40.71872,-73.98905,100</li>
<li>&#8230;</li>
</ul>
<p>The QR Code is a type of 2D barcode that you can use for free. You will find also a lot of mobile reader software for this type of 2D barcode (for example <a href="http://code.google.com/p/zxing/" target="_blank">zxing</a>).<br />
So putting a hyperlink to the digital world on your building is easy.</p>
<p><div id="attachment_117" class="wp-caption alignnone" style="width: 310px"><img class="size-full wp-image-117" src="http://labs.calibrate.be/wp-content/uploads/2009/07/article_qrcode.png" alt="qrcode" width="300" height="273" /><p class="wp-caption-text">building with a qrcode</p></div></p>
<p>If you want to play with it already you can always use a QR-Code generator like <a href="http://qrcode.kaywa.com/" target="_blank">this</a>.<br />
And if you want to add dynamic behavior easily to it, you can always take a look at <a href="http://www.touchatag.com" target="_blank">touchatag</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.calibrate.be/2009/07/02/how-to-put-a-hyperlink-on-your-building/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

