Let usr/local Save Your Rails Environment

April 19th, 2008

Unix Terminal with CodeIf your looking at doing a ruby on rails installation on your Mac, make sure you understand where all these new applications are being installed on your system and how to make your rails installation unbreakable.

Many developers from beginners to advanced are trying ruby on rails. If your like me, you’ll be doing most of your rails coding on a Mac. If you were a Windows user who has recently switched to the Mac for Rails development, you might find the amount of terminal usage in Rails development a little intimidating.

A few years ago, I was lucky enough to work with a corporate company running UNIX so I had the opportunity to learn enough UNIX basics to be reasonably comfortable working with the terminal and the command line in Mac OSX.

If your installing Ruby on Rails on your Mac, then Dan Benjamin of Hivelogic has the best tutorials to get the installation done right. Dan really knows his stuff when it comes to that sometimes terrifying terminal, so you’ll find his installation guides a breath of fresh air.

Before you start that rails installation, I encourage you to read Dan’s article on setting your applications to install in usr/local rather than the default. The more you understand about why things are done the way they are, the easier you’ll find the rest of your rails experience.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Download Your FREE Ruby on Rails Book

October 2nd, 2007

Wow, I have to say that this is a pretty cool deal. Sitepoint is giving away for the next 60 days a FREE, that’s right absolutely free copy of Patrick Lenz Ruby on Rails Web Applications book.

Patrick has been in the web development business for year and is the CEO of development firm limited-overhead.

So is there a catch with the book being free?  Well no but you will have to complete a form to add your email address so you can be sent a link for the book.  If you don’t like being subscribed, you can always easily unsubscribe later.

Well worth the download.  Go get em cause time is ticking!

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

CSS for Heading Text Drop Shadows

October 1st, 2007

Did you know that you can use CSS to create text shadows? Well I think it’s a pretty cool thing that CSS allows you to do if you just want to give your page headings a subtle lift instead of just a boring flat text heading. So why not just use a graphic to give the same effect? Well it’s pretty common knowledge that text heading are better for search engines and can easily be tagged with the appropriate html so using CSS to create the subtle shadow is a win-win for you and your site users.

The way it works is by applying the property text-shadow to your selector ie: h1. Here is a you could write your CSS.

h1 {   color: black;

   text-shadow: #ccc 2px 0.2em 3px;

}

The values in the text shadow property example above are #ccc which defines the colour of the shadow, 2px determines how deep the depth of shadow, 0.2em defines how far right (or left using negative values) the shadow will be, and the 3px defines the amount of blur to be applied.

Here is a sample of how text-shadow looks providing your browser is capable of rendering the text-shadow property. Firefox, Opera & IE6 & 7 all don’t render the text-shadow property, however Safari for Windows & Mac work great.

This would produce a nice drop shadow on your text heading just giving to give you the effect that your headings have a little depth to them. The only downside to the text-shadow property is that it doesn’t work on browsers that aren’t CSS2 compatible but we should be seeing more of this kind of thing as browsers improve and add more CSS functionality.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]