Skip to content

Instantly share code, notes, and snippets.

vidmantas@samesystem:~/projects/same3$ rake jobs:work --trace
(in /home/vidmantas/projects/same3)
Booting Rails... (0.99s)
Loading development environment... (4.98s)
** Invoke jobs:work (first_time)
** Invoke merb_env (first_time)
** Execute merb_env
** Invoke environment (first_time)
** Execute environment
** Execute jobs:work
ruby-1.9.2-p0 > cl= CalendarLine.find 2631406
+---------+--------------+---------+------------+------+-----------+--------+
| id | user_shop_id | user_id | date | spec | confirmed | amount |
+---------+--------------+---------+------------+------+-----------+--------+
| 2631406 | 973 | 13589 | 2010-10-22 | w | 0 | 9.0 |
+---------+--------------+---------+------------+------+-----------+--------+
1 row in set
ruby-1.9.2-p0 > cl.fragments
+---------+------------+----------+--------+------------+----------+--------+--------+-------+------------+
| id | calenda... | rel_type | rel_id | start_time | end_time | amount | breaks | color | descrip... |
./home/vidmantas/.rvm/gems/ruby-1.9.2-p0/gems/capybara-0.4.0/lib/capybara/node/actions.rb:112: warning: toplevel constant HTML referenced by Capybara::XPath::HTML
F-------------------
(::) failed steps (::)
private method `select' called for HTML:Module (NoMethodError)
/home/vidmantas/.rvm/gems/ruby-1.9.2-p0/gems/capybara-0.4.0/lib/capybara/node/actions.rb:112:in `select'
/home/vidmantas/.rvm/gems/ruby-1.9.2-p0/gems/capybara-0.4.0/lib/capybara/session.rb:273:in `method_missing'
/home/vidmantas/.rvm/gems/ruby-1.9.2-p0/gems/capybara-0.4.0/lib/capybara/dsl.rb:93:in `select'
/home/vidmantas/projects/same3/features/step_definitions/web_steps.rb:72:in `block (2 levels) in <top (required)>'
NameError (undefined local variable or method `change' for #<Class:0x00000009001258>):
/home/vidmantas/.rvm/gems/ruby-1.9.2-p0/gems/will_paginate-2.3.14/lib/will_paginate/finder.rb:170:in `method_missing_with_paginate'
app/models/calendar_line.rb:1150:in `block (3 levels) in autoupdate_for'
app/models/calendar_line.rb:1149:in `each'
app/models/calendar_line.rb:1149:in `block (2 levels) in autoupdate_for'
app/models/calendar_line.rb:1106:in `each'
app/models/calendar_line.rb:1106:in `block in autoupdate_for'
app/models/calendar_line.rb:1105:in `autoupdate_for'
app/models/user.rb:105:in `after_update'
if ENV and ENV['RAILS_ENV']
require 'hirb'
Hirb.enable
end
def ar_logger
ActiveRecord::Base.logger = Logger.new(STDOUT)
reload!
end
class Object
# This one works way better:
PS1='\[$(tput sgr0)$(tput setaf 5)\]\w\[$(tput sgr0)$(tput setaf 2)\]$(__git_ps1 "[%s]") \[$(tput
sgr0)\]$ '
~/projects/same3[live]$ ss
=> Booting WEBrick
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
/home/vidmantas/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require': no such file to load -- spreadsheet (MissingSourceFile)
from /home/vidmantas/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `block in require'
from /home/vidmantas/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /home/vidmantas/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
from /home/vidmantas/.rvm/gems/ruby-1.9.2-p136/gems/roo-1.9.3/lib/roo/excel.rb:2:in `<top (required)>'
from /home/vidmantas/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
from /home/vidmantas/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `block
$ traceroute in1.samesystem.com
traceroute to in1.samesystem.com (194.255.16.121), 30 hops max, 60 byte packets
1 192.168.0.1 (192.168.0.1) 1.060 ms 1.045 ms 1.570 ms
2 81-7-125-16.static.zebra.lt (81.7.125.16) 9.853 ms 10.476 ms 11.183 ms
3 82-135-129-1.static.zebra.lt (82.135.129.1) 11.683 ms 12.402 ms 12.878 ms
4 81-7-119-41.static.zebra.lt (81.7.119.41) 13.908 ms 14.640 ms 15.375 ms
5 81-7-120-162.static.zebra.lt (81.7.120.162) 16.046 ms 17.006 ms 17.753 ms
6 war-b3-link.telia.net (213.248.85.89) 27.860 ms 18.271 ms 18.868 ms
7 hbg-bb2-link.telia.net (80.91.245.46) 34.240 ms 34.577 ms 35.476 ms
8 kbn-bb2-link.telia.net (213.155.130.103) 36.904 ms kbn-bb2-link.telia.net (80.91.249.206) 39.347 ms 40.389 ms
~/projects/same3[live]$ rake stats
(in /home/vidmantas/projects/same3)
Booting Rails... (0.61s)
+----------------------+-------+-------+---------+---------+-----+-------+
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Controllers | 7819 | 5948 | 88 | 503 | 5 | 9 |
| Helpers | 2959 | 2372 | 0 | 308 | 0 | 5 |
| Models | 15778 | 11727 | 107 | 878 | 8 | 11 |
| Libraries | 839 | 628 | 14 | 73 | 5 | 6 |
~/projects/same4[master]$ git commit -am "Some raws and html_safes"
[master dfaa879] Some raws and html_safes
13 files changed, 77 insertions(+), 11 deletions(-)
create mode 100644 .bundle/config
create mode 100644 assets/documents/69/hs_err_pid1931.log
create mode 100644 public/uploads/gallery_image/file/1176/original_IMG_06012011_123717.png
create mode 100644 public/uploads/gallery_image/file/1176/thumb_IMG_06012011_123717.png
create mode 100644 tmp/export/overview_day_2011-01-23-2011-01-23.xls
create mode 100644 tmp/export/tbl_c64_01251304.xls
create mode 100644 tmp/import/c64-samsoee_fields.csv