Javascript Countdown Timer
Posted by e. | Filed under JavaScript
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: countdown, JavaScript, timer
Populating Tables with Data Using Migrations
Posted by g. | Filed under Ruby on Rails, Technology
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: data, database, migrations, populating, rails
Rotating Ruby on Rails Log Files Using Logrotate
Posted by g. | Filed under Ruby on Rails, Technology
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 [...]