NHibernate 3.2 Upgrades
Trying Google Plus for blogging…
https://plus.google.com/u/0/110847643332707464429/posts/7ymoJ6ZEfj3
uNhAddIns patch for NHibernate 3.1
since most NuGet packages related to NHibernate come with NHibernate version 3.1.0.4000 (at the time of writing), I tried rebuilding uNhAddIns (commit #773) with the newer version of NHibernate.
My changes:
- upgraded NHibernate to version 3.1.0.4000 (Iesi.Collections, NHibernate, NHibernate.ByteCode.Castle)
- implemented new Interface method ‘IsProxy’ for IProxyFactoryFactory (CSLProxyFactoryFactory, ProxyFactoryFactory)
BTW: .NET is becoming more and more like Java… Who doesn’t love names like ‘IProxyFactoryFactory’?
I did not update any tests.
Feel free to use this code (no licence).
My patch can be found at:
App.Config: Order matters
Note to self:
Within an App/Web.config in .NET… The startup node must be the last node…
Example: Create a plain WPF application from Visual Studio 2010, add an App.Config file, and try building Option 1 and Option 2 below.
Option 1:
<?xml version="1.0" encoding="utf-8" ?> <configuration> <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup> <configSections /> </configuration>
This throws: “The type initializer for ‘System.Windows.Application’ threw an exception.”
Option 2:
<?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections /> <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup> </configuration>
Fine.
Do I want to read 2.5MB of
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Xml\Schemas\DotNetConfig.xsd
? No.
Rails and Emacs: Rsense and Auto-Complete
If you’re developing Rails with Emacs and using Rinari here are two more extensions you might like:
http://cx4a.org/software/auto-complete/
and
http://cx4a.org/software/rsense/
Installation. Just as described. Code completion for ruby-on-rails with emacs!
And the package is written in Java(!), Very cool!
I am impressed!
Antivir regression bug makes Visual Studio 2010 unusable
The current version of Antivir Personal slows down Visual Studio 2010 making it unbearable to develop ASP.NET applications.
Debugging with active Antivir: appr. 5min for an empty Default.aspx page to display.
Debugging with deactivated Antivir: a few seconds for an empty Default.aspx page to display.
Until Antivir fixes this bug I will give Microsoft Security Essentials a try.
Regression because this has been addressed and fixed in December 2010:
This applies to the following version of Antivir:
Produktversion 10.2.0.696 29.06.2011 Suchengine 8.02.06.04 06.07.2011 Virendefinitionsdatei 7.11.11.27 07.07.2011 Control Center 10.00.12.31 28.06.2011 Config Center 10.00.13.20 28.06.2011 Luke Filewalker 10.03.00.07 28.06.2011 AntiVir Guard 10.00.01.59 28.06.2011 Filter 10.00.26.09 28.06.2011 AntiVir WebGuard 10.01.09.00 28.06.2011 Planer 10.00.00.21 02.05.2011 Updater 10.00.00.39 21.06.2011
Workaround for VirtualBox 4.0.8 regression bug
The current version of Oracle’s VirtualBox (4.0.8) has Version 4.0.8 had a regression bug which seems to only manifest itself when using Debian based hosts with 64-bit and Windows 7 64-bit guest system.
Here is the summary of the workaround posted as VirtualBox Ticket 8948:
- Edit the settings file to allow the VM to start again (Replace control characters in line 315 with 4.0.8).
- Start the Windows guest
- Run regedit
- Go to HKLM\SOFTWARE\Oracle\VirtualBox Guest Additions
- Create a string key VersionEx (use exactly this spelling)
- Give it a reasonable value (ie 4.0.8)
- Shut down the VM.
- Repeat step 1
- Restart and shutdown windows guest again
Adding Truecrypt to Ubuntu’s Unity panel
To add applications like Truecrypt to Ubuntu’s Unity panel the application has to be “white listed”.
- Install dconf-editor (ie sudo aptitude install dconf-editor)
- Go to section desktop | unity | panel and add ‘Truecrypt’ to the systray-whitelist variable
- Restart Unity (or log out and back in again)
NHibernate Simple Setup
My simple NHibernate 3 setup under GitHub: https://github.com/draptik/nhibernate-nunit
Snippet for adding unknown files/dirs to Subversion (command line)
svn add `svn st | grep "^?" | awk '{print $2}'`
Installing SQL Server Management Studio 2008 Express after installing Visual Studio 2010
Visual Studio 2010 comes with its own version of SQL Server Express.
If you try to install SSMS(E) (SQL Server Management Studio Express) afterwards and run into trouble, take a look at this post by Alexander Zeitler.
Recent Comments