Quantcast
Channel: House 9
Browsing latest articles
Browse All 29 View Live
↧

CoffeeScript with Rails 2.3 and Rails 3.0

I just uploaded a sample application that uses guard, coffee-script and a rake task to enable use of coffee-script with a rails 2.3 or 3.0 application. Check out the README file on github for...

View Article


Image may be NSFW.
Clik here to view.

NFL 2011 Sunday Night HD Stream for Free from NBC

Check it out here - http://snfallaccess.nbcsports.com/

View Article

Generating barcodes with ruby and rails

Recently I had to convert some functionality from an old MS Access system to a Ruby on Rails application. The Access system generated a report that included a barcode; they were using a barcode font...

View Article

Postgres: get the number of days in an interval

-- seconds / 60 = minutes / 60 = hours / 24 = days select (((EXTRACT(EPOCH FROM INTERVAL '2 years') / 60) / 60) / 24)::integer as number_of_days good resource -...

View Article

Sample Routes and Links with Rails 3 in the console

The content for this post is all from a gist, hopefully someone finds it usefulYour reader does not support script, view the gist...

View Article


Get table and column information in postgres

Use the information_schema catalog - http://www.postgresql.org/docs/9.1/static/information-schema.htmlGet table and columns from the public schemaselect tables.table_name, columns.column_namefrom...

View Article

Inspect all jQuery events on an element

Very useful$("SELECTOR").data("events");All bound event handlers are stored in the elements data context under the events keyThis can be very useful when debugging with tools like...

View Article

Git Workflow

This is the current git workflow we are using at work, your mileage may vary:Your reader does not support javascript - see...

View Article


postgres: terminate all database connections

Using psql from the command line you can terminate all connections to a databaseComes in handy when you want to do things like restore your staging or development...

View Article


postgres: random useful things

Run sql statements from the command line, use the -c flagcreate a random valuecrazy updates using regexp_matches

View Article

Rails - ActiveRecord created_by and updated_by gem

Often your application will want to track who created and updated your data.On a previous rails 2 project I used a plugin called userstamp which worked well, but until recently it did not support rails...

View Article

Unofficial Twitter Bootstrap Documentation

Unofficial Twitter Bootstrap Documentationhttp://unofficial-twitter-bootstrap-documentation.com/The current project I am working on is running bootstrap 2.0.2 and after the release of 2.1.0 the online...

View Article

414 Request-URI Too Large

How to configure nginx to accept larger querystring requestsIncrease the 'large_client_header_buffers'This is located in the 'http' section of the configurationExample:    http {            # override...

View Article


Helper script to delete git tags locally and remote

Might be useful to others, delete a bunch of git tags - remote and locallyYour reader does not render gists; view code here -...

View Article

Image may be NSFW.
Clik here to view.

Git Log Formatting

The git log command is great and has tons of good information, but the output doesn't give you that nice 'overview' of the commit history, too much detail on too many linesI've been using the following...

View Article


Image may be NSFW.
Clik here to view.

Setting up a C.I. build (Continuous Integration) for a Ruby on Rails application

It has never been easier than with Semaphore - Hosted Continuous Integrationhttps://semaphoreapp.com/How easy is itadd semaphore ssh key to your github repothen semaphore automatically determines your...

View Article

Sending email with Rails Mailers, The Random bits...

See the rails guides and railscasts for getting started with Rails Mailers; this article includes some additional information on Rails Mailers not included in those articles.RailsCasts:...

View Article


rails :remote => true jQuery events

I constantly find myself looking these up, saving this link for future referencehttps://github.com/rails/jquery-ujs/wiki/ajaxcontains all of the rails custom jQuery events for remote forms, such as...

View Article

Ruby on Rails continuous integration (CI) with Jenkins the easy way with Chef...

Do you need a CI build setup for your Ruby on Rails app?Here are some chef / knife solo scripts that will deploy a Jenkins server to run your CI build - you could be up and running in less than 1/2 an...

View Article

> random tricks you can do with Rails

There are bunch of really good nuggets in this presentation:http://www.confreaks.com/videos/889-railsconf2012-ten-things-you-didn-t-know-rails-could-do...

View Article

Image may be NSFW.
Clik here to view.

HipChat is now free!

Just got an email from HipChat - now free for small groups - awesome!

View Article


Vagrantfile for setting up multiple machines with chef configuration

Example Vagrantfile below for setting up multiple virtual machines and using chef to provision themYour reader does not support javascript - please view configuration here -...

View Article


Vagrant and puppet postgres 9.2 on ubuntu

Some vagrant configuration to install postgres 9.2 using puppetsee https://gist.github.com/house9/5762219.jssee...

View Article

WAL-e chef cookbook

Postgres has various backup and restore optionshttp://www.postgresql.org/docs/9.2/static/backup.htmlDo you have a recovery plan in case your Postgres server crashes - your daily pg_dump is probably not...

View Article

Puppet Solo (AKA: supply_drop)

Similar to knife-solo for use with chef, supply_drop allows you to provision servers using puppet without the need for a puppet master server. It uses capistrano for executing commands on the remote...

View Article

Browsing latest articles
Browse All 29 View Live