This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NoMethodError in UsersController#create | |
undefined method `to_sym' for nil:NilClass | |
/home/david/.gem/gems/activesupport-2.3.5/lib/active_support/whiny_nil.rb:52:in `method_missing' | |
/home/david/Code/git/theindielist/app/controllers/users_controller.rb:45:in `create' | |
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/base.rb:1331:in `send' | |
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/base.rb:1331:in `perform_action_without_filters' | |
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/filters.rb:617:in `call_filters' | |
/home/david/.gem/gems/actionpack-2.3.5/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Processing UsersController#new (for 10.0.1.18 at 2010-07-07 15:22:14) [GET] | |
Parameters: {"action"=>"new", "controller"=>"users"} | |
User Columns (0.9ms) SHOW FIELDS FROM `users` | |
Rendering template within layouts/application | |
Rendering users/new | |
Rendered users/_form (3.5ms) | |
Rendered shared/_javascripts (6.3ms) | |
Completed in 190ms (View: 34, DB: 1) | 200 OK [http://dev.punkgrok.com/users/new/] | |
SQL (0.1ms) SET NAMES 'utf8' | |
SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Zybl0re> get up | |
<Zybl0re> get on up | |
<Zybl0re> get up | |
<Zybl0re> get on up | |
<phxl|paper> and DANCE | |
* nmp3bot dances :D-< | |
* nmp3bot dances :D|-< | |
* nmp3bot dances :D/-< | |
<[SA]HatfulOfHollow> i'm going to become rich and famous after i invent a device that allows you to stab people in the face over the internet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d="`date +%y%m%d%H%M`" | |
myrealip="`wget www.whatismyip.com/automation/n09230945.asp -qO -`" | |
while read i; do | |
export http_proxy="http://$i" && \ | |
retip="`wget www.whatismyip.com/automation/n09230945.asp -qO -`" && \ | |
[ "$retip" != "$myrealip" ] && echo "$i" >> working$d & | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
$(".tweet").tweet({ | |
username: "#{@portfolio.twitter_feed}", | |
join_text: "auto", | |
avatar_size: 32, | |
count: 3, | |
auto_join_text_default: "we said,", | |
auto_join_text_ed: "we", | |
auto_join_text_ing: "we were", | |
auto_join_text_reply: "we replied to", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
daemonize yes | |
pidfile /var/run/redis.pid | |
logfile /var/log/redis.log | |
port 6379 | |
bind 127.0.0.1 | |
timeout 300 | |
loglevel notice |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Processing PortfoliosController#update (for 127.0.0.1 at 2011-06-29 16:58:05) [PUT] | |
Parameters: {"name"=>"deck_monitoring", "portfolio"=>{"dashboards"=>{"1"=>"1"}, "name"=>"deck_monitoring", "use_all_dashboards"=>"0", "title"=>"", "background"=>#<File:/var/folders/CQ/CQsjgUNUEtWjUF3kjP8ek++++TI/-Tmp-/RackMultipart20110629-21662-76ykv0-0>, "logo"=>#<File:/var/folders/CQ/CQsjgUNUEtWjUF3kjP8ek++++TI/-Tmp-/RackMultipart20110629-21662-1b245l2-0>, "enabled"=>"1", "twitter_feed"=>"davidcelis"}, "commit"=>"Save", "authenticity_token"=>"tLZo2l/JC0do1FyFtHjbyEgJc+/BM58hyZjcghi72s4="} | |
User Columns (3.2ms) SHOW FIELDS FROM `users` | |
User Load (0.3ms) SELECT * FROM `users` WHERE (`users`.`id` = 1475) | |
Portfolio Columns (2.3ms) SHOW FIELDS FROM `portfolios` | |
Portfolio Load (0.2ms) SELECT * FROM `portfolios` WHERE (`portfolios`.`name` = 'deck_monitoring') LIMIT 1 | |
Company Columns (2.9ms) SHOW FIELDS FROM `companies` | |
Company Load (0.2ms) SELECT * FROM `companies` WHERE (`companies`.`id` = 1) | |
CACHE (0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Auto-restore paths on launch | |
if [ $(uname) = "Darwin" ]; then | |
precmd () { print -Pn "\e]7;file://%M${PWD// /%%20}\a" } | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyModel < ActiveRecord::Base | |
belongs_to :another_model | |
end | |
class AnotherModel < ActiveRecord::Base | |
has_one :my_model | |
end | |
my_model.another_model | |
# => AnotherModel.find(my_model.another_model_id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'time' | |
require 'fileutils' | |
desc 'generate edi reports' | |
task :edi_reports => :environment do | |
MONTHS_AGO = 0 # 0 is last month/current report | |
BASE_PATH = '/tmp/' | |
sdge_sums = {} |
OlderNewer