Localized Routes in ASP.NET MVC Core 1.0

TL;DR: LocalizedRoutes on GitHub I am currently developing a project where I need to localized and theme my routes. Acutally the same website will every only run on language, but the same code will run multiple websites, so I needed to be able to cusomtize my routes. Since there were very little available online for this, I created a library and open sourced it on Github. Would be cool to write a longer blog post detailing how it works, but knowing my self thah won’t probably happen. Anyway, if you are looking for how to localize your routes in asp.net...…

Tips and Trix for Bash On Ubuntu On Windows

Shoutout to this repo: abergs/ubuntuonwindows. It contains a a collaborative list of good things to know and setup when you run Bash on your Windows 10 machine (Which is natively available since the Windows Anniversary Update). It covers everything from setting up SSH to how to access your files on your windows drive and vice versa. It’s awesome. Have a good one! /Anders …

The fastlane to css hipster heaven

So there is a cool feature in HTML5 and it’s called contenteditable. It’s a attribute you can place on any element in your page and it will allow your users to change the text inside. This can be useful for a lot of things, but what is even more interesting is the silly things you can do with it. …

The next chapter: Looking back

The future will in one way or another always become the present. Question is - will you chase it? I’m writing this blog post on board the commuter train between Stockholm and Uppsala. After five years at Caspeco, I now take the next step in my journey. For the next 1½ year, I will attend the Digital Data Strategist program at Hyper Island. I started working for Caspeco as a teenager. I was 19 years old and a junior developer when I wrote my first line of code at Caspeco. My experience with programming were limited to HTML, CSS, some...…

Owin Friendly Exceptions from Web Api

The team at Caspeco needed a way to translate exceptions to nice HTTP responses. The exceptions could be thrown by a custom middleware, within the Web Api framework or in our bussiness logic. So we built a thin Owin Middleware to translate all exceptions into nice HTTP responses that makes sense when you read them in the client consuming your api. The result is available as the nuget package OwinFriendlyExceptions and the source is available at Github: abergs/OwinFriendlyExceptions …