NHibernate/Active Record – StaleStateException?

Absurdes, IT No Comments »

Today I had to use an Ative Record implementation for C#: Castle Active Record. It worked verfy fine until i needed to save a one to many relationship. Then the underlying NHibernate yielded the following Exception:
StaleStateException: unexpected row count -1 expected 1 .

Googling for that Exception gave me two options: At first, turning the sql servers NOCOUNT property OFF by either sending “SET NOCOUNT OFF” or setting the appropriate property of the SQL-Server in the config dialog. Both did not work for me, as i am neither the Admin of the server nor i can send the command by hand through the many layers introduced by ActiveRecord/NHibernate.

Another possible solution was overriding the connection driver to let i send the query everytime the connection gets requested. This was proposed by the blog author of: http://www.socialanimal.com/archives/2008/03/07/nhibernate-and-nocount/. This either didn’t work for me.

But taking a look in the database suprised me! My Data was actually written! So a simply try {} catch(…) { //ignore } did the job!

SHAME ON ME FOR THAT :-)

Synchronize Samsung Star 5230 on Ubuntu

Allgemein No Comments »

My todays post covers my efforts to synchronize my samsung star mobile phone on ubuntu.

First of all I tried BitPim, an open source tool to sync mobile phones. Unfortunatelly, with the current version of bitpim, it didn’t work.

So I installed a VirtualBox using Windows Vista. Samsungs PC Studio seems not to work on a virtual installation of Vista? At least when I tried to install it it crashed my whole installation ;-(

So far, it does not work for me (ok, dualbooting to windows DOES work)

Edit 1 [01/12/10]: What works is sending files via Bluetooth. The mobile recognizes the files based on their ending. So you can send your contact data using *.vcf files. Each contact in one file is in my part of view just boring ;-)

Samsung Widget Development – Part1 – Eclipse

IT, Web Kommentare deaktiviert

Part 1 of the development series:

First of all, we need to setup the development environment. This is provided by Samsung as Eclipse-Plugin.
Therefor we need to download eclipse (The Java EE Edition!) (http://www.eclipse.org/downloads)

After downloading and setting up eclipse, install the Samsung Widget Developer SDK:

Within Eclipse, click on Help, then Install new Software.

Add the following URL: http://widget.samsungmobile.com/sdk/ and install the plugin!

That’s it, you can now start to develop Samsung TouchWiz Widgets!

Part 2 will cover a short sample project!

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS