Is the Fed's "zero-interest-rate policy" (ZIRP) inflationary or deflationary? You'd think that macroeconomists would have a straight answer for such a simple question. But we don't. As usual, the answer seems to depend on things.Someone once joked that an economist is someone who sees something work...
Ignorerer risikoen
NBIM ved kommunikasjonssjef Thomas Sevang mener i DN 21.10 at Oljefondet har tjent på Blackrock. Beviset er at Blackrock har gitt 14,9 prosent avkastning, mot indeksens 13,3.NBIM kan ikke ha lest kronikken min godt. Jeg skrev om risikojustert avkastning. Det har vært omtrent 35 prosent mer risiko i...
How to copy a folder from jboss deployment to your local machine
The code below will copy a folder from a deployed application in jboss to a local folder in your machine. This is useful if you want to deploy something, perhaps a set of configuration files on your local machine on deployment. File destinationDir = new File(destinationFolder);if (!destinationDir.exists())...
How to download a file from the server using javaEE
The following snippet will accept a filename in the server's directory, set it as the content of the FacesContext for the user to download.public String downloadXMLInvoice(String fileName) { File file = new File(getXmlInvoiceDir().getAbsolutePath() + File.separator + fileName); try { FacesContext...
How to use xpath to read nodes from xml file
XPath is a java library that let us read a complicated xml document with ease.In our simple example below we have an xml that contains computers with some random tags like os.<computers> <windows> <lenovo model="g50"> <year>2015</year> </lenovo> <lenovo model="g5040">...
Subjective explainer: gun debate in the US
In the wake of the tragic events in Roseburg, I decided to briefly return to the topic of looking at the US culture from the perspective of a person born in Europe. In particular, I wanted to circle back to the topic of firearms.Contrary to popular beliefs, the United States has witnessed a dramatic...