NancyFX + CORS

Every once in a while you need to have access to a json api from another domain. Thankfully there’s a mechanism to allow this. This Mechanism is called CORS So before any JSON request is allowed a Options requst will be sent to the corresponding ressource and expects a „Access-Control-Allow-Origin“ header to be present. There can…

Damn you Apple Mail ….

Well tonight I encountered an interesting Problem. My Apple Mail refused to connect to my mailserver. At first I thought maybe my security constraints are the cause for this but I couldn’t be more wrong. After some digging in the logs which continously showed the following

I rand some google searches and found out…

C# Export Data as XLSX

As I needed to export some data to an xlsx (Excel 2007+) file. I first used the Microsoft OpenXML library called DocumentFormat.OpenXML. At first it looked good but it had some major performance issued while using the object oriented style. I switched over to the OpenXMLWriter (SAX) but this introduced another class of problems like…

Angular & Copy to Clipboard

I had to implement a copy to clipboard functionality for our Control Panel which lists Orders. Since I’m a total enemy of flash I pursued a solution suitable for my needs and here it is. This is based on http://stackoverflow.com/questions/400212/how-do-i-copy-to-the-clipboard-in-javascript but I removed most of the styling and simply put the textarea outside of the viewport….

Angular and i18n

Well it has been a long while again, but I’ve been crazy busy at work. I worked on a couple of interesting Single Page Applications written with Angular and I really like it because the Framework is so simple to use and very well documented with a crapload of nice plugins and extensions from the…