Quantcast
Browsing all 29 articles
Browse latest View live

robocopy fix for exit code of 2

Sometimes you want to use robocopy from nant, a sql job or another build tool, robocopy will return 2 during a successful run, this gets interpreted as an error, a google search on the issue returned...

View Article


rails 3.1 asset gem

Package up assets into a gem for use in rails 3.1 applications. Example uses javascript files, but the same should work for images and css.I recommend you click the HD link on the player and view it on...

View Article


rails 3.1 and ruby-1.9.2-p180 - rake aborted! stack level too deep

Ran into the following error when running rake with a rails 3.1 (rc4) app on ruby-1.9.2-p180 (RVM)rake aborted! stack level too deepFull error stack$> rake...

View Article

Grow vegetables go to jail?

Oak Park resident Julie Bass now faces serious charges for setting up a vegetable garden in her front yard.Help her out sign the petition here:...

View Article

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
Browsing all 29 articles
Browse latest View live