Javascript Countdown Timer

Need a stylish Javascript countdown timer? No problem. Here’s a quick and dirty way to get one up that’s clean and usable. Check out the demo to see it in action.
To install:
Add the following HTML snippet to the section of your page where you want the timer to be placed

<div id="counter" class="counter">
<ul class="countdown">
<li><div class="countdown_num" id="countdown_day"></div><div>Days</div></li>
<li><div [...]

Tags: , ,

Populating Tables with Data Using Migrations

I can think of very few Rails sites that don’t need some kind of data pre-populated in their tables. When you talk to a Rails developer, the first thing that comes to mind when talking about populating the db is fixtures. This is not what we’re talking about here. Fixtures populate your TEST database with [...]

Tags: , , , ,

Rotating Ruby on Rails Log Files Using Logrotate

If you don’t pay much attention to the size of your log files in your production apps, you might want to take a look! If left alone, files such as production.log can grow quite large and bog down your application or server’s performance. In Linux, there is a tool called logrotate to help you manage [...]

Tags: , ,