Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged ruby



« Prev 1 Next »
From the Pickaxe, 4th edition, p. 352: A rescue clause with no parameter is treated as if it had a parameter of StandardError. This means that some lower-level exceptions will not be caught by a parameterless rescue class. If you want to rescue ev...
1 607 posted 12 years ago by cczona
0 523 posted 13 years ago by stayce
0 543 posted 13 years ago by choise
Because different systems put it in different places.
0 424 posted 14 years ago by alvarezrilla
Sample log line: [INFO] 2009-03-06 20:47:35 | controller::bla | user: vincentvega | ip: 127.0.0.1
0 651 posted 14 years ago by benjay
0 480 posted 14 years ago by hlubek
0 587 posted 15 years ago by hlubek
When installing mysql and mysql-dev with fink, gem is unable to find the mysql headers and libraries: you should specify their location. If compiled manually from source, gem will find it if /usr/local/mysql (or what ever other location you specified...
0 558 posted 15 years ago by iblis
Suppose you created a script chart.rb in /home/foo/ruby/mylib direcory. Now, you want to use this in the app.rb located in /home/foo/ruby/scripts. In ~/.bash_profile:
0 517 posted 15 years ago by cczona
0 810 posted 17 years ago by sudarkoff
There's another snippet here that's pure Ruby. This one can be used from the command line directly. The previous version still used Ruby, this one is pure shell.
0 619 posted 17 years ago by plexus
« Prev 1 Next »