<?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>Nicola De Filippo</title>
	<atom:link href="http://www.nicoladefilippo.it/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nicoladefilippo.it</link>
	<description>Me &#38; IT</description>
	<lastBuildDate>Sun, 15 Apr 2012 14:37:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Doctrine, Symfony And Blob</title>
		<link>http://www.nicoladefilippo.it/2012/04/15/doctrine-symfony-and-blob/</link>
		<comments>http://www.nicoladefilippo.it/2012/04/15/doctrine-symfony-and-blob/#comments</comments>
		<pubDate>Sun, 15 Apr 2012 14:23:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Symfony]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Doctrine]]></category>

		<guid isPermaLink="false">http://www.nicoladefilippo.it/?p=47</guid>
		<description><![CDATA[This is a simple help yo add mysql blob type to Doctrine and Symfony 2: Create BlobType.php file in Symfony/vendor/doctrine-dbal/lib/Doctrine/DBAL/Types/ namespace Doctrine\DBAL\Types; use Doctrine\DBAL\Platforms\AbstractPlatform; class BlobType extends Type { const BLOB = 'blob'; public function getName() { return self::BLOB; } &#8230; <a href="http://www.nicoladefilippo.it/2012/04/15/doctrine-symfony-and-blob/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This  is a simple help yo add mysql blob type to Doctrine and Symfony 2:</p>
<ol>
<li> Create BlobType.php file in Symfony/vendor/doctrine-dbal/lib/Doctrine/DBAL/Types/<br />
<code></p>
<pre class="wp-code-highlight prettyprint">
namespace Doctrine\DBAL\Types;

use Doctrine\DBAL\Platforms\AbstractPlatform;

class BlobType extends Type
{
    const BLOB = 'blob';

    public function getName()
    {
        return self::BLOB;
    }

    public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
    {
        return $platform-&gt;getDoctrineTypeMapping('BLOB');
    }

    public function convertToDatabaseValue($value, AbstractPlatform $platform)
    {
        return ($value === null) ? null : base64_encode($value);
    }

    public function convertToPHPValue($value, AbstractPlatform $platform)
    {
        return ($value === null) ? null : base64_decode($value);
    }
}
?&gt;
</pre>
<p></code></p>
</li>
<li> In Symfony/vendor/doctrine-dbal/lib/Doctrine/DBAL/Types/Type.php add<br />
          <code></p>
<pre class="wp-code-highlight prettyprint">
         const BLOB = 'blob';
         self::BLOB =&gt; 'Doctrine\DBAL\Types\BlobType', to $_typesMap array;
         </pre>
<p>         </code>
</li>
<li> Add this method to your class in DomainYourBundle.php in Symfony/src/YourDomain/YourBundle/<br />
        <code></p>
<pre class="wp-code-highlight prettyprint">
    public function boot()
    {
        $em = $this-&gt;container-&gt;get('doctrine.orm.entity_manager');
        if (!Type::hasType('blob'))
        {
            Type::addType('blob', 'Doctrine\DBAL\Types\Type\BlobType');
            $em-&gt;getConnection()-&gt;getDatabasePlatform()-&gt;registerDoctrineTypeMapping('blob','blob');
        }
    }
</pre>
<p></code>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.nicoladefilippo.it/2012/04/15/doctrine-symfony-and-blob/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Qt5  Alpha</title>
		<link>http://www.nicoladefilippo.it/2012/03/29/qt5-alpha/</link>
		<comments>http://www.nicoladefilippo.it/2012/03/29/qt5-alpha/#comments</comments>
		<pubDate>Thu, 29 Mar 2012 14:25:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.nicoladefilippo.it/?p=45</guid>
		<description><![CDATA[I compiled Qt5 alpha version. It&#8217;s just wonderful. The next day some concrete examples.]]></description>
			<content:encoded><![CDATA[<p>I compiled Qt5 alpha version. It&#8217;s just wonderful. The next day some concrete examples.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nicoladefilippo.it/2012/03/29/qt5-alpha/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jquery ui button same size</title>
		<link>http://www.nicoladefilippo.it/2012/03/18/jquery-ui-button-same-size/</link>
		<comments>http://www.nicoladefilippo.it/2012/03/18/jquery-ui-button-same-size/#comments</comments>
		<pubDate>Sun, 18 Mar 2012 05:27:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.nicoladefilippo.it/?p=40</guid>
		<description><![CDATA[if you want to have buttons the same size and you not want to play with css, define &#60;input type=&#34;radio&#34; id=&#34;button1&#34; name=&#34;repeat&#34; checked=&#34;checked&#34; class=&#34;ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all&#34;/&#62;&#60;label for=&#34;button1&#34; id=&#34;button1Label&#34;&#62;button1&#60;/label&#62; &#60;input type=&#34;radio&#34; id=&#34;button2&#34; name=&#34;repeat&#34; checked=&#34;checked&#34; class=&#34;ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all&#34;/&#62;&#60;label &#8230; <a href="http://www.nicoladefilippo.it/2012/03/18/jquery-ui-button-same-size/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>if you want to have buttons the same size and you not want to play with css, define<br />
<code></p>
<pre class="wp-code-highlight prettyprint">
&lt;input type=&quot;radio&quot; id=&quot;button1&quot; name=&quot;repeat&quot; checked=&quot;checked&quot; class=&quot;ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all&quot;/&gt;&lt;label for=&quot;button1&quot; id=&quot;button1Label&quot;&gt;button1&lt;/label&gt;

&lt;input type=&quot;radio&quot; id=&quot;button2&quot; name=&quot;repeat&quot; checked=&quot;checked&quot; class=&quot;ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all&quot;/&gt;&lt;label for=&quot;button2&quot; id=&quot;button2Label&quot;&gt;button2 is long&lt;/label&gt;
</pre>
<p></code></p>
<p>and in javascript code:<br />
<code></p>
<pre class="wp-code-highlight prettyprint">
var button1 = $('#button1').button();
var button2 = $('#button2').button();

$('#button1Label').width(200);
$('#button2Label').width(200);
</pre>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nicoladefilippo.it/2012/03/18/jquery-ui-button-same-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use dojo ValidationTextBox with Symfony2 and ajax</title>
		<link>http://www.nicoladefilippo.it/2012/01/27/use-dojo-validationtextbox-with-symfony2-and-ajax/</link>
		<comments>http://www.nicoladefilippo.it/2012/01/27/use-dojo-validationtextbox-with-symfony2-and-ajax/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 07:36:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.nicoladefilippo.it/?p=32</guid>
		<description><![CDATA[How use dojo ValidationTextBox with Symfony2 and ajax In this post i show how i used symfony2, dojio and to validate a form loaded via ajax and how to change the size and other properties of ValidationTextBox. This is a &#8230; <a href="http://www.nicoladefilippo.it/2012/01/27/use-dojo-validationtextbox-with-symfony2-and-ajax/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">How use dojo ValidationTextBox with Symfony2 and ajax</p>
<p>In this post i show how i used symfony2, dojio and to validate a form loaded via ajax and how to change the size and other properties of ValidationTextBox.</p>
<p>This is a form loaded via ajax :</p>
<p style="text-align: left;">
<p>{% extends &#8216;::base.html.twig&#8217; %}<br />
{% block javascripts %}<br />
{% endblock %}<br />
{% block body %}</p>
<p>&lt;form action=&#8221;{{ path(&#8216;NdfExampleBundle_people&#8217;) }}&#8221; method=&#8221;post&#8221; {{ form_enctype(form) }} id=&#8221;forminsertpeople&#8221; dojoType=&#8221;dijit.form.Form&#8221;&gt;</p>
<p>{{ form_widget(form.ci , { &#8216;attr&#8217;: {&#8216;labelAttr&#8217;: &#8216;ci&#8217;,'labelType&#8217;:'html&#8217;,'dojoType&#8217;:'dijit.form.ValidationTextBox&#8217;,'maxLength&#8217;:&#8217;12&#8242;,<br />
&#8216;regExp&#8217;:'\\w{12}&#8217;,'invalidMessage&#8217;: &#8216;CI must to be 12 characters&#8217;} }) }}</p>
<p>&lt;button dojoType=&#8221;dijit.form.Button&#8221; type=&#8221;submit&#8221; name=&#8221;submitButtonSave&#8221;<br />
value=&#8221;Submit&#8221;&gt;<br />
Save<br />
&lt;/button&gt;</p>
<p>&lt;img src=&#8221;404.gif&#8221; style=&#8221;position:absolute;width:0px;height:0px&#8221; onerror=&#8221;refreshPeople()&#8221;&gt;<br />
{% endblock %}</p>
<p>The main page must  contain refreshPeople()</p>
<pre class="wp-code-highlight prettyprint">function refreshPeople() {

  try {
    dijit.byId('forminsertpeople').destroy();
  }
  catch (ex) {
  }

  // Change Width

  var dum = dojo.byId('form_ci');
  dojo.style(dum, &quot;width&quot;, &quot;12em&quot;);

  dojo.parser.parse(dojo.byId('your_target'));

  // Change maxLength

  dum = dijit.byId('form_cognome');
  dum.set( &quot;maxlength&quot;, 20);

  dojo.addOnLoad(function () {

  var connectForm = dojo.byId(&quot;forminsertpeople&quot;);
  dojo.connect(connectForm, &quot;onsubmit&quot;, function (e) {
  // connect to, and disable the submit of this form
  e.preventDefault();
  // post the form with all it's defaults
  var mainForm = dijit.byId( &quot;forminsertpeople&quot; );
  dojo.stopEvent(event);
  if ( mainForm.validate() ) {

    var form = dojo.byId(&quot;forminsertpeople&quot;);
    dojo.xhrPost({
    form:form,
    load:function (data) {
      // set the form's HTML to be the response

      form.innerHTML = data;

     }
   });
  }
});
});
dojo.parser.parse(dojo.byId('forminsertpeople'));
}</pre>
<p><br style="text-align: left;" /><br />
Note how the style changes are made before  dojo.parser.parse(dojo.byId(&#8216;your_target&#8217;));<br />
after instead the changes to the attributes of the validator.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nicoladefilippo.it/2012/01/27/use-dojo-validationtextbox-with-symfony2-and-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Need Hack</title>
		<link>http://www.nicoladefilippo.it/2011/12/23/need-hack/</link>
		<comments>http://www.nicoladefilippo.it/2011/12/23/need-hack/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 10:32:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.nicoladefilippo.it/?p=30</guid>
		<description><![CDATA[I&#8217;m bored, i need to do some hack in this holiday.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m bored, i need to do some hack in this holiday.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nicoladefilippo.it/2011/12/23/need-hack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lumia 800</title>
		<link>http://www.nicoladefilippo.it/2011/12/23/lumia-800/</link>
		<comments>http://www.nicoladefilippo.it/2011/12/23/lumia-800/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 10:09:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.nicoladefilippo.it/?p=25</guid>
		<description><![CDATA[I received a Lumia 800 from Nokia. Thanks Nokia!! I must admit that is a great device, but i hope always in new Nokia Linux device, great Linux device!]]></description>
			<content:encoded><![CDATA[<p>I received a Lumia 800 from Nokia. Thanks Nokia!! I must admit that is a great device, but i hope always in new Nokia Linux device, great Linux device!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nicoladefilippo.it/2011/12/23/lumia-800/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>QmlCalendar</title>
		<link>http://www.nicoladefilippo.it/2011/11/27/qmlcalendar/</link>
		<comments>http://www.nicoladefilippo.it/2011/11/27/qmlcalendar/#comments</comments>
		<pubDate>Sat, 26 Nov 2011 23:36:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.nicoladefilippo.it/?p=22</guid>
		<description><![CDATA[Today have committed first release of qmlcalendar for NemoMobile]]></description>
			<content:encoded><![CDATA[<p>Today have committed first release of qmlcalendar for NemoMobile</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nicoladefilippo.it/2011/11/27/qmlcalendar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NemoMobile on my device</title>
		<link>http://www.nicoladefilippo.it/2011/11/06/nemomobile-on-my-device/</link>
		<comments>http://www.nicoladefilippo.it/2011/11/06/nemomobile-on-my-device/#comments</comments>
		<pubDate>Sun, 06 Nov 2011 14:58:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.nicoladefilippo.it/?p=20</guid>
		<description><![CDATA[These days I tried  NemoMobile on WeTab and N900. It &#8216;a good start but we still try to work.]]></description>
			<content:encoded><![CDATA[<p>These days I tried  NemoMobile on WeTab and N900. It &#8216;a good start but we still try to work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nicoladefilippo.it/2011/11/06/nemomobile-on-my-device/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New web site</title>
		<link>http://www.nicoladefilippo.it/2011/11/03/new-site/</link>
		<comments>http://www.nicoladefilippo.it/2011/11/03/new-site/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 00:36:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.nicoladefilippo.it/?p=1</guid>
		<description><![CDATA[My new web site]]></description>
			<content:encoded><![CDATA[<p>My new web site</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nicoladefilippo.it/2011/11/03/new-site/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New Site</title>
		<link>http://www.nicoladefilippo.it/2011/11/02/new-site-2/</link>
		<comments>http://www.nicoladefilippo.it/2011/11/02/new-site-2/#comments</comments>
		<pubDate>Wed, 02 Nov 2011 23:29:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.nicoladefilippo.it/?p=17</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://www.nicoladefilippo.it/2011/11/02/new-site-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

