Articles in the Programming category

  1. Naming Your Software Project in 5 Minutes or Less

    Posted on in Programming

    old_book Whenever I start a new software project, I spend way too much time trying to figure out what I'm going to call it. I try to think of something clever, but I'm never really satisfied with what I come up with. (I suppose this means I'm not clever.) Starting with …

  2. Assembla: No more free rides!

    Posted on in Programming

    computer frustration In previous coding examples, I've used Assembla to demonstrate some Subversion interactions. At the time, Assembla offered a free Subversion repository bundled with some really nice development tools. In fairness to all Slaptijack readers, I need to point out that Assembla's Andy Singleton announced the end of free plans (except …

  3. Pinax's New Directory Structure

    Posted on in Programming

    If you've been following along, you are probably already aware the Pinax team has decided to make some radical changes to their directory structure based on input from users. I took the time to update my own Pinax project — let me show you what's changed.

    First, here's the new directory …

  4. Setup Help: Subversion for Your Pinax Project

    Posted on in Programming

    I recently began working on a project based on Pinax. The Pinax project's goal is to develop a set of re-usable applications for the Django Web Framework that are common in website development. Generally, these applications provide the functions and features common in social media sites. For reference, Bob Haugen …

  5. A Little Perl: DBI and Transactions

    Posted on in Programming

    Database transactions are really no mystery. For the uninitiated, the idea is that we want to make changes to the database inside of a transaction that can be committed or thrown away. Why is this a good thing? Without transactions, changes to the database have to be manually undone if …

  6. Choosing a Language for Custom Nagios Plugins

    Posted on in Programming

    NagiosChoosing a language in which to develop your custom Nagios plugins is pretty easy. You have two roads you can go down: compiled or scripting.

    If you decide to build plugins using a compiled language, just about any will do. Generally speaking, C is the usual choice for something like …

  7. Apache, SSL, Rails and a Broken Redirect

    Posted on in Programming

    steam locomotive (photo by benedeki)If you are using Apache and <acronym title="Secure Sockets Layer">SSL</acronym> as a proxy front-end for your Ruby on Rails application, you might have a problem with redirects if the backend server (Mongrel, for example) does not use SSL.

    In a nutshell, you'll discover that redirects are sent …

  8. ActiveRecord and SELECT DISTINCT

    Posted on in Programming

    Blue Cup 1 (photo by woodsy)I'm writing this post for two reasons:

    1. For some reason, I couldn't find a lot of information on ActiveRecord and SELECT DISTINCT().
    2. I'm hoping some Ruby / ActiveRecord guru will stumble across this and provide a better solution.

    Recently, I was working on a project written in Ruby with ActiveRecord that …

  9. Installing RubyGems with MacPorts

    Posted on in Programming

    IM_OK (photo by danzo08)Quick note.

    I recently needed to install a few RubyGems on my Mac OS X 10.4 (Tiger) development system. I use MacPorts to keep my system consistent, but MacPorts was causing the problem. Here's a look at the output I was getting while trying to install Active Support.

    $ sudo …
  10. Logging Active Record Queries to a File

    Posted on in Programming

    Grapefruit Glory (photo by AnnaMaciel)I was recently helping a developer with some SQL optimizations in Ruby. The developer was using Active Record, and (until now) my Active Record experience has been pretty minimal.

    One thing that was really driving me bonkers was how to get Active Record to print out the queries it was …

  11. Perl, ntop and Odd Hash Assignments

    Posted on in Programming

    Camel with FurThis is a silly mistake that can be easily avoided.

    I was working on a Perl script that grabbed network traffic information from my ntop server and reported on it. ntop provides an <acronym title="Application Program Interface">API</acronym> that specifically supports Perl. Although I was seeing the data …

  12. Get Subversion Updates via Email

    Posted on in Programming

    Coffee Cup with @Sometimes it seems like a great idea to receive updates whenever someone commits something to your Subversion repository, right? This has definitely seemed like a good idea to me, but it's only nice if you work in a small shop with only a few developers. Too many developers make this …

Slaptijack's Koding Kraken