Oljefondet har hatt en “aktiv avkastning” på 0,3 % i året. Fondet har imidlertid ikke hatt meravkastning av betydning. Forvirret? Det har du grunn til å være. Begrepet “aktiv avkastning” betyr at avkastningstallene ikke risikojusteres slik lærebøkene anbefaler. Begrepet dukket opp i en rapport...
My Todo List iphone application development using xcode
This tutorial will create a Todo list iphone application using xcode. This is the same tutorial in the apple's website I've specified in the reference link below.Note that this tutorial is not for beginner, basically I'll just summarized what I did and provide the github repository.To summarize what...
How to change varchar to nvarchar in mssql using hibernate
In my recent assignment I was asked to change how hibernate creates a table changing varchar fields to nvarchar. The problem is in MSSQL we need an nvarchar to support UTF-8 characters.We are actually using a JDBC MSSQL driver available here:http://technet.microsoft.com/en-us/library/ms378422.aspxThis...
How to get around OptimisticLockException or StaleObjectStateException
The 2 errors above are common specially when dealing with a multi-threaded application. For example in my case I have several rabbit mq listeners. For those that are not familiar with it, it's a server where one language can send a message to be consumed by another but not limited to that. For example...
Feil om oljefondet
Det er ikke riktig slik Øystein Børsum påstår i en kronikk i onsdagens DN, at oljefondet har slått indeksen med 0,3 % i året. Dette tallet er ikke justert for den ekstra risiko som fondet har påtatt seg. Fondet har ikke hatt noen risikojustert meravkastning. Beregningene som viser dette kan lastes ned...
For mye olje i oljefondet
Norge er i dag overinvestert i oljeindustrien og kunne redusert landets samlede eksponering ved å ekskludere oljeaksjer fra oljefondet. Finansdepartementet har imidlertid tidligere forsvart at oljefondet skal være investert i oljeselskaper og i Stortingsmelding 19 for 2013-2014 argumenteres det også...
How to catch a ConstraintViolationException in JavaEE
The following piece of code catch a ConstraintValidationException in JavaEE so that we will be able to display an appropriate message to the user instead of a long stack trace.try { //perform a transaction operation here, perhaps a delete} catch (EJBTransactionRolledbackException e) { Throwable...