Dec 11

Blog RSS Updated

If you follow my blog please update the RSS URL.

For now on I have two URLs. One for my posts and another for my recommended readings/recent readings.

If you would like to read my personal posts use http://feeds.joao.manso.eu/GeeknessInWords.

If you want to get some spam about recommended readings/recent readings please subscribe http://feeds.joao.manso.eu/GeeknessInWords/RecentReadings


Aug 11

How to upgrade your apps to NHibernate 3.2 with Fluent NHibernate 1.2

Since version 3.0 the number of files that NHibernate uses shrink. So first, you need to know what kind of files you need to update and delete.

In version 3.0 NHibernate:

    • NHibernate
    • Iesi.Collections
    • Remotion.Data.Linq
    • NHibernate.ByteCode.Castle
    • Castle.Core
    • Antlr.Runtime

In version 3.1, Antlr.Runtime and Remotion.Data.Linq have been ILMerged into NHibernate

  • NHibernate
  • Iesi.Collections
  • NHibernate.ByteCode.Castle
  • Castle.Core

In version 3.2,  NHibernate integrates a default lazy provider based on LinFu

  • NHibernate
  • Iesi.Collections

To upgrade to the last version 3.2 you need to update the last two DLLs and delete the rest ( here ).

If your app uses any DLLs from NHibernate Contrib you need to update them to the version 3.2.

Next you need to download Fluent NHibernate 1.2 ( here ).

After the update of Fluent DLLs is necessary to change the fluent configuration, to start using the default lazy proxy.


.ExposeConfiguration(c => c.SetProperty( Environment.ProxyFactoryFactoryClass, typeof( ProxyFactoryFactory ).AssemblyQualifiedName))



.ExposeConfiguration(c => c.SetProperty( Environment.ProxyFactoryFactoryClass, typeof( DefaultProxyFactoryFactory ).AssemblyQualifiedName))


And because Fluent 1.2 expects NHibernate 3.1 you need to redirect the DLL in .config.

   <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <assemblyIdentity name="NHibernate" publicKeyToken="aa95f207798dfdb4" culture="neutral" />
          <bindingRedirect oldVersion="" newVersion=""/>


Is possible to avoid the redirect, if you download the source code of Fluent NHibernate 1.2 and create a build with NHibernate 3.2 DLLs.

Aug 11

Disabling an element in jQuery 1.6

Last week, I had to update the jQuery to the last version 1.6.2 because the version 1.5.2 didn”t work properly in IE9. After that upgrade and some more tests. I discovered some problems disabling some elements. After trying to find out why the hell the disabling was not working I found the answer. With the release of jQuery 1.6, the recommendation has been to generally start using prop() where you used to use attr().

So is necessary to substitute

$(''.control'').attr(''disabled'', ''disabled'');



$(''.control'').prop(''disabled'', ''disabled'');

Jul 11

How to add Windows Live Writer additional dictionaries

If you need to add another dictionary to check the content of your blog post to find spelling errors,  you need to install another language pack. So you must go to the Windows Control Panel and select Clock, Language, and Region. Press Windows Live Language Setting and select the language of the new dictionary. When the installation is done the user interface (UI) of Windows Live Writer will change to the new language. You can revert this running the Windows Live Language Setting again and select the original language.

1 - Control pannel

2 - Select Language


Jul 11

Pizza Pão (Bola)



Pão fatiado ou bolas cortadas ao meio
Polpa de tomate
Queijo mozarella
Cogumelos fatiados
Bacon fatiado


Barrar o pão ou as bolas com a polpa de tomate.

Colocar  o queijo mozarella, os cogumelos,  o bacon, as azeitonas, os orégãos e um fio de azeite.

Por fim, colocar no forno por 10 minutos a 220º.