Unofficial Twitter Bootstrap Documentation
http://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 documentation for 2.0.x was gone.
I went ahead and compiled the archive docs from the bootstrap github repo into a single site - hopefully others find it useful.
The blog has moved to http://jessehouse.com/ ... Many google searches point here so I am leaving it operational, but there will be no new posts.
Saturday, August 25, 2012
Sunday, July 1, 2012
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 3+
I didn't find any other gems out there at the time, so I put together the clerk gem,
you can install it as a gem in your rails 3+ applications by adding gem 'clerk' to your Gemfile, see the README on github for details
NOTE: the current version relies on your database tables having columns named created_by_id and updated_by_id and the gem does not support any custom configuration.
Sunday, April 29, 2012
postgres: random useful things
Run sql statements from the command line, use the -c flag
create a random value
crazy updates using regexp_matches
create a random value
crazy updates using regexp_matches
Labels:
postgresql
postgres: terminate all database connections
Using psql from the command line you can terminate all connections to a database
Comes in handy when you want to do things like restore your staging or development database
Labels:
postgresql
Friday, February 3, 2012
Git Workflow
This is the current git workflow we are using at work, your mileage may vary:
Resources
Resources
- http://cheat.errtheblog.com/s/git
- http://yanpritzker.com/gitbook.html#Keeping+a+topic+branch+in+sync+with+its+parent
- http://yanpritzker.com/gitbook.html#One+branch+per+bug
- http://gitready.com/beginner/2009/02/02/push-and-delete-branches.html
- http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html
- http://sleeplessgeek.blogspot.com/2011/03/using-git-cherry-pick.html
Friday, December 30, 2011
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 key
This can be very useful when debugging with tools like FireBug
$("form").submit(function () { alert('submit form'); });
$("form").data("events");
> Object { submit=[1] }
Resources
$("SELECTOR").data("events");
All bound event handlers are stored in the elements data context under the events key
This can be very useful when debugging with tools like FireBug
$("form").submit(function () { alert('submit form'); });
$("form").data("events");
> Object { submit=[1] }
Resources
Labels:
javascript,
jquery
Subscribe to:
Posts (Atom)