Teilen mit:

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 that the main problem is the gmail XOAuth2 mechanism. If you have multiple Accounts registered in Apple Mail with the the checkbox enabled for „Automatically detect and maintain account settings“ the program somehow thinks every mailserver uses XOAuth2. Well after unchecking this for incomming (IMAP) and outgoing (smtp) it worked again without any change required on the corresponding mailserver.

Teilen mit:

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 corrupted files. The Documentation is a pile of shit and a while I gave up and reimplemented my export with NPOI.

To have it a little simpler i wrote some helper functions to do the cell and row injection. The result is as follows.

Teilen mit:

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 community. Anyhow I needed to implement some sort of internationalization and angular has a nifty extension called angular-translate which I used for that. In the process we created an i18n self hosted service in c# with nancy with a simple rest api where I can get a list of available languages for specific domains. Domains in this context are just language sections so that I only have to request and transfer the sections actually in use. The angular plugin has a nice way of supporting it with „partials“

so include the partials-loader and url-loader for angular-translate and set it up the following way: