Heavenly Media

 

Tutorials

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...

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...

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...

How to move a web page without losing search rankings using a 301 redirect

Sometimes it's necessary to move a web page, or even an entire site. This could be because you've changed your domain name. Perhaps you've migrated to a new content management system and the urls have changed, or perhaps you just want to point several domains at a single canonical page to take account of misspellings. This can cause issues with your search engine rankings and can annoy users who may start to get 404 "page not found" errors for their bookmarks and search engine results. Thankfully there is an easy solution to both problems with a 301 "page permanently moved" redirect.

Read more...

The Best Multi Column CSS Layouts

So you want layouts? You want columns that can stretch and grow and which work happily in any browser? You think tables are for losers? In this article we will expose the three best ways to achieve multi column complex layouts with css. Each of these has it's own benefits and drawbacks which we'll be covering in detail below, and each will work in all modern browsers. Crucially, each of these gives you controll of your sorce ordering, so can put more important content near the top of your page. This is great for accessibility and for SEO.

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...

The 5 Minute Favicon

Its always nice to finish off your masterfully designed website with a personal touch and a favicon, the tiny image which appears by your URL on your browsers address bar and on your favorites section, is the proverbial cherry on top.

Read more...