21:32:17:~/clients/brep/td/trunk > rake stats
(in /Users/balaparanj/clients/brep/td/trunk)
/Users/balaparanj/clients/brep/td/trunk/config/boot.rb:38:Warning: require_gem is obsolete. Use gem instead.
+----------------------+-------+-------+---------+---------+-----+-------+
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Controllers | 1158 | 972 | 28 | 118 | 4 | 6 |
| Helpers | 329 | 283 | 0 | 42 | 0 | 4 |
| Models | 975 | 759 | 25 | 127 | 5 | 3 |
| Libraries | 733 | 552 | 9 | 82 | 9 | 4 |
| Components | 0 | 0 | 0 | 0 | 0 | 0 |
| Integration tests | 0 | 0 | 0 | 0 | 0 | 0 |
| Functional tests | 701 | 522 | 52 | 106 | 2 | 2 |
| Unit tests | 493 | 382 | 26 | 62 | 2 | 4 |
+----------------------+-------+-------+---------+---------+-----+-------+
| Total | 4389 | 3470 | 140 | 537 | 3 | 4 |
+----------------------+-------+-------+---------+---------+-----+-------+
Code LOC: 2566 Test LOC: 904 Code to Test Ratio: 1:0.4
Monday, April 30, 2007
ssh: somedomain.org: No address associated with nodename
This error message happened while remote login using ssh. ping command did not work. The problem was the domain was incorrect.
Saturday, April 28, 2007
Ruby: No such file to load -- ubygems (LoadError)
I deleted the contents of directory site_ruby and I was getting that error message. After some googling found Rich Kilmer's reply
"You have installed rubygems and set the RUBYOPT variable. This is the
downside to using the RUBYOPT :-(
Just unset that variable and then you should be good to go."
-rich
Thanks Rich, that fixed my problem.
"You have installed rubygems and set the RUBYOPT variable. This is the
downside to using the RUBYOPT :-(
Just unset that variable and then you should be good to go."
-rich
Thanks Rich, that fixed my problem.
rmagick headache on mac os
Finally resolved the rmagick installation problems. The actual problem was not rmagick itself but a custom script in my project.
I found the RMagick install script for Mac OS X - Version 0.2.0
on rmagick installation faq.
I found the RMagick install script for Mac OS X - Version 0.2.0
on rmagick installation faq.
/opt/local/bin/ruby: bad interpreter:
I was getting the weird ruby bad interpreter error message after I deleted everything under site_ruby directory. I was working on getting the rmagick working on my laptop. I resolved the problem by reinstalling the Ruby 1.8.6 and Rubygems 0.9.2.
Friday, April 27, 2007
warning: multiple values for a block parameter (0 for 1)
In the following irb session the error message indicates that the input parameter is missing.
>> hello = lambda { "hello" }
=> #
>> hello.call
=> "hello"
>> log = lambda { |str| puts "[LOG] #{str}" }
=> #
>> log.call
(irb):16: warning: multiple values for a block parameter (0 for 1)
from (irb):17
[LOG]
=> nil
>> log.call("A test log message")
[LOG] A test log message
=> nil
>> hello = lambda { "hello" }
=> #
>> hello.call
=> "hello"
>> log = lambda { |str| puts "[LOG] #{str}" }
=> #
>> log.call
(irb):16: warning: multiple values for a block parameter (0 for 1)
from (irb):17
[LOG]
=> nil
>> log.call("A test log message")
[LOG] A test log message
=> nil
Friday, April 20, 2007
Capistrano Concepts
Chris Selmer's Capistrano Presentation from the April 5, 2007 DCRUG
meeting is very good.
The Rails Edge conference had discussion on the material
covered in this presentation, but this presentation connected all the
dots for me.
meeting is very good.
The Rails Edge conference had discussion on the material
covered in this presentation, but this presentation connected all the
dots for me.
Copying to the clipboard in UNIX
You can send any output to the clipboard by using pbcopy. For example: history | pbcopy will send the output of history command to the clipboard. You can just paste it in email or other document. Very nice. pbpaste will paste the contents of the clip board.
Subscribe to:
Posts (Atom)