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

How-to: Make a cannonical redirect with Apache

Me and my goldfish brain tend to always forget how to make a proper cannonical redirect with Apache. So this is just a post for myself so that I don’t need to Google for it every time and read through posts with grade-A bullshit in…

Continue reading →

Mod Rewrite Online Test Tool

Everyone who has worked with rewrites knows that it can be a pain in the ass to get it right sometimes. I was working with some rewrites for a client and got tired of testing live on the server. Looked around a while on StackOverflow…

Continue reading →

Git Cheat Sheet

Today is my 30th birthday. For this I will give all of you a little present which I’ve been working on. The ULTIMATE Git cheat sheet! Enjoy Download Git Cheat Sheet (PDF)

Continue reading →

How-to: Show SQL database query in rails console

When you are optimizing your database queries it might be nice to use the console and try out the changes in real time. However, by default you won’t see the query that is sent to the database by default which is a nice feature to…

Continue reading →

Addon: Rename a tab in Firefox

A colleague of mine recommended this nifty plugin which will make it possible for you to change the name of a specific tab in Firefox. Pretty sweet when you are switching between dev/stage/live sites constantly. Get TabRenamizer here.

Continue reading →

How-to: Change your default git editor

If you are like me you have probably forgot to write a commit message on one of your commits in the past. When you do that git opens up an editor, in most cases something like Vim which for a newbie like myself is completely…

Continue reading →

Code humor

This talk has been in my mailbox since january but I need to share it with you guys if you haven’t seen it yet. This talk by Gary Bernhardt is by far one of the most funny talks of 2012 i’ve seen. Check it out!…

Continue reading →

Getting gamification with achievements right

Meaningful Play. Getting »Gamification« Right. from Sebastian Deterding I’m working on an achievements system which I can use on my projects. We are currently looking into adding achievements and some gamification on our dating site Vibbar and I found this nice slideshow. Enjoy and give…

Continue reading →

acts-as-nested-set ArgumentError Fix

Sometimes you can get this weird error when using acts-as-nested-set: To fix this you just fire up the console and rebuild your model. Woop!

Continue reading →

Add database diagram on SQL Server 2008 easy

Ever had this error? “Database diagram support objects cannot be installed because this database does not have a valid owner. To continue, first use the Files page of the Database Properties dialog box or the ALTER AUTHORIZATION statement to set the database owner to a…

Continue reading →

Page 3 of 4 1 2 3 4