Heavenly Media

 

has_and_belongs_to_many - Many to many mappings with Ruby on Rails

Many to many relationships in Ruby on Rails are easy! In this article we'll look at how to create a relationship between two models, and how to create a simple admin interface to administer the mapping.

Read more...

Recovering lost disk space with DF and DU

So, you're running a Debian Linux server and all is going well. Suddenly, Bang! everything breaks, clients start calling asking about their email, your websites are down! Overnight your hard drive has filled up.

So how do to go about fixing this? (Note, though these instructions are tailored to Debian, they should work similarly for any flavour of Linux)

Read more...

The Trouble with Meta Refresh - common search engine gaffes #1

There are a number of ways to redirect a user to a new URL. The best way is to use the 301 "page permanently moved" header status code. Another way is to use a "meta refresh" tag. There are several reasons why you should use the former rather than the latter wherever possible.

Read more...

Ways to Make Money While You Sleep - Episode 1 - The Successful Blogger

You may be lucky enough to have a job which you love and which supports you in your chosen lifestyle.

You may, like the majority of the population, be working in an unrewarding job with an income which only just sees you through every month.

Either way, one thing is true for all of us no matter how high our income - earning money whether we are working or not, even whilst we are asleep at night, is the best position to be in when it comes to earning an income.

Read more...

Cross browser compatibility for CSS Jedi's - Six tips you need to know!

Over the years that I've been building websites I've run into just about every browser bug known to humankind. Back then we had to look after all sorts of hideous old browsers. Now things are simpler but there are still issues to look out for. Here I present my top six browser incompatibilities and the simple steps you can take to avoid them.

Read more...

Liquid Dropshadows and Curved borders

Tired of your boring square boxes for your content? Like to do something a little more interesting without messing up your markup?

You can spice up your boxes with a range of effects including rounded corners and dropshadows using a powerful but simple technique called sliding doors. Although it's simple the sliding doors technique is incredibly useful in a whole range of situations. We use it heavily throughout this site to get all the curves and dropshadows which Graeme just loves!

Read more...

Results 1 - 7 of 9