Loop through files in a directory2112 (5/4/2007 8:40:10 PM) comp.lang.ruby I know this is a nub question, but the documentation on ruby is terrible. How do I loop through all of the files in a directory? Thanks for your help. -- Posted via http://www.ruby-forum.com/. ... Ben
Undefining a method?429 (4/16/2007 12:51:26 AM) comp.lang.ruby Is it possible to undefine a method. For example: class A def method end end A.undefine_method(:method) Is this possible? I need to do this because I'm dynamically building methods into a class and it would... Ben
Reading web service resposes in chunks?129 (2/27/2007 10:08:32 PM) comp.lang.ruby I am making a web service call and getting back very large responses (sometimes 5gb). When I get this response it eats all of my RAM. I need to read the response in chunks so I can store it in a file and I have... Ben
Call a method before a method is called?331 (2/10/2007 7:17:28 PM) comp.lang.ruby Does ruby have "hooks". Where I can define, let's say, a method called __before that will be called before ANY method call for that class? Thanks for your help. -- Posted via http://www.ruby-forum.com/. ... Ben
Question about drb and databases329 (9/21/2006 4:54:17 PM) comp.lang.ruby Let's say I have 2 servers. One has the database, the other doesn't. The main application is being ran on the one with the database. If I was to distribute ruby using DRb to the other server does that process... Ben
Why would a DRb process shut down?326 (9/19/2006 8:03:47 PM) comp.lang.ruby I have a program that runs about 10 DRb processes. Ocassionally one of the processes will shut down and I will get the error telling me that it can not connect to the process. It is this error: Errno::ECONNR... Ben
Determinig if 3 characters in a row are the same?732 (8/25/2006 12:02:40 AM) comp.lang.ruby Sorry for the noob question, but is there a fast and efficient way to determine if there are 3 of the same charater in a row in a string? I'm sure this could be done in regex but I am not a black belt in rege... Ben
cURL in ruby? Faster than Net::HTTP?1718 (8/23/2006 3:17:42 AM) comp.lang.ruby I've found a couple of packages that claim to integrate the curl library into ruby. Which one is the standard library? Also the reason I am asking is because I did some tests and came to find out that curl i... Ben
Microtime / Milliseconds?278 (8/22/2006 5:23:07 PM) comp.lang.ruby How do I get more precision that seconds in ruby? If I wanted to know 1 millisecond passed how would I do this? Thanks for your help. -- Posted via http://www.ruby-forum.com/. ... Ben
Noob question: How to do number formatting?347 (8/21/2006 9:27:52 PM) comp.lang.ruby I searched the documentation and everything and can't find a simple method for number formatting. Any links? thanks for your help. -- Posted via http://www.ruby-forum.com/. ... Ben
bjohnson8269's replies:
Items(4) /1
How to md5 a file?822 (7/29/2006 8:27:52 AM) comp.lang.ruby Basically I want to generate an md5 hash from considerably large files to determine if they are exactly the same. Is there a better way to do this besides comparing md5 hashes? Thanks for your help. -- Pos... bjohnson8269(18)
cURL in ruby? Faster than Net::HTTP?1718 (8/23/2006 3:17:42 AM) comp.lang.ruby I've found a couple of packages that claim to integrate the curl library into ruby. Which one is the standard library? Also the reason I am asking is because I did some tests and came to find out that curl i... bjohnson8269(18)
Why would a DRb process shut down?326 (9/19/2006 8:03:47 PM) comp.lang.ruby I have a program that runs about 10 DRb processes. Ocassionally one of the processes will shut down and I will get the error telling me that it can not connect to the process. It is this error: Errno::ECONNR... bjohnson8269(18)
Question about drb and databases329 (9/21/2006 4:54:17 PM) comp.lang.ruby Let's say I have 2 servers. One has the database, the other doesn't. The main application is being ran on the one with the database. If I was to distribute ruby using DRb to the other server does that process... bjohnson8269(18)