Entreprehero! Blog of Björn Lennartsson - Wantrepreneur and developer - page 2

Awesome error handling in Rails

One thing developers always want is kick-ass error handling. Most frameworks have pretty poor support for this and you usually need to use a debugger to get to the bottom of a bug. However, with some help from a few nifty gem’s, you can get…

Continue reading →

Creating a custom new Visitor Group Criteria in EPiServer 7

A visitor group criterion is used in EPiServer to let editors choose criterias when certain content should be showed or not. EPiServer comes with a few default ones but usually you need to create your own ones. Here is a little guide on how to…

Continue reading →

How to serve assets via Amazon S3 & Cloudfront for Rails 4 with Paperclip

We are working hard to get our new project up and running. It will be a website aimed for food lovers built with Ruby On Rails. In order to make the server super-snappy we have decided to use Amazon S3 for file storage and have…

Continue reading →

Convert a LinkItemCollection to a list of PageData in EPiServer 7

I found a nice little snippet from Joel Abrahamsson on how to convert a LinkItemCollection to a list of PageDatas instead. So I used his code as a base to update it to EPiServer 7.

Continue reading →

Upgrading from Rails 4 Beta1 to Rc1

When you are upgrading from Rails 4 Beta1 to the newly released Rc1 you might run into some problems. I got this one: The fix is to edit the file located in config/initializers/session_store.rb and change from to Voila!

Continue reading →

Times are a changin

Hiya! It’s been a long time since I last posted and lots of stuff have happened since. I have now been away from Sweden for one and a half month living in Thailand and working with my company and studying. Let me tell you, life…

Continue reading →

FIX: Capistrano deploy fails after changing repository URL

We have moved some of our clients repositories from Github to Bitbucket but when we tried to deploy we got the following error: I tried making a clean-up but that didn’t work. The solution however is pretty straight forward. You just need to login to…

Continue reading →

Detect if mouse click is from user or if triggered by code

I was coding a carousel solution for a client and wanted the automatic playback to stop if the user interacted with the image slider. First I thought that I would need some kind of custom solution but seems it was easier than i thought. The…

Continue reading →

LD25 – Revenge of Dr Green

My entry to the Ludum Dare 48 hour competition. The theme for the competition is “You are the villain”. I made a little twist on this as you can see I’m pretty tired now so won’t make any big write-up. Will probably write something later…

Continue reading →

Regular expressions in Notepad2 (with backreference)

Regular expressions is really nifty to use when you got a chunk of data and need to extract or change certain parts of it. I’ve used it before in Notepad2 to replace mostly with empty strings but this time I wanted a little bit more….

Continue reading →

Page 2 of 4 1 2 3 4