First  |  Prev |  Next  |  Last
Pages: 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
Why does `source .bashrc` complain "command not found"?
Is it just me or is this something that just cant be done? Ive found out that whenever system calls are made they open a child shell process. And as soon as that call is finished the child shell is closed and any changes that were made to the environment are lost with it. But i should still be able to execute ... 27 Jan 2010 18:18
How to connect to Mysql & Query for Database Tables
Hi Guys, Ruby imposes several way of connecting to Mysql (DBI,activerecord..) Database using ruby code. Let me know if anybody knows how to connect to mysql the easiest way. I am getting all sorts of error trying to connect to mysql. I am using Windows XP OS. Hope to hear from you guys soon!! Cheers -- Post... 2 Feb 2010 15:05
can't update and install gem
os:win xp ruby: ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32] I got this error: Updating RubyGems ERROR: http://gems.rubyforge.org/ does not appear to be a repository ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) Errno::ENOTCONN: A request to send or receive data was disa... 2 Feb 2010 15:06
Is there a way to list the classes defined in a module?
Suppose I have a module that's essentially used as a namespace, like this: module Castle class King < Royalty; end class Queen < Royalty; end class Guard < Commoner; end class Dragon_keeper < Commoner; end end Is there some way I could later create a list, say Castle_dwellers that would come ou... 26 Jan 2010 00:02
Class variable inside block of defining instance method
Hello. How do I perform something like this? https://gist.github.com/6a2aa7e86cad8717541f It's the @echo variable inside the block I'm talking about, how do I gain "access" to it? Sincerely, phora. -- Posted via http://www.ruby-forum.com/. ... 8 Feb 2010 12:13
search datetime column for all records that start at 11:00
i have to count how many records are in a database that have a start time of 11:00 for an entire year. the problem is, i can't seem to find out how to coax rails into ignoring the date to just search for a time. -- Posted via http://www.ruby-forum.com/. ... 23 Jan 2010 07:38
Use Ruby to make a MTU sweep utility (Ping)
Hi I've had a request to make a utility (I want to use Ruby) that does a MTU sweep looking for black holes in routes. So I need a library or a way to run ping in both a OS X, Linux and Windows environment. The utility will ping an IP and continue to increment the package / payload size until error if any The ... 23 Jan 2010 22:08
New gem snmpstats
Hi, I've developed a small gem that simplifies basic status information retrieval from a SNMP service. It's going to be used in another project in the future. I tested it with NetSNMP in Linux (Debian 5.3 and RedHat AS 5) and Windows XP (MS SNMP Service). At this time I have no other SNMP enabled devices to... 22 Jan 2010 16:19
SizedQueue
Hi Robert Thanks for your example. I wanted to play with it to really understand how that works. So I tried this : QUEUE = Queue.new threads = (1..5).map do |a| Thread.new(QUEUE) do |q| until ( q == (task = q.deq)) print "thread-", a, " ", task.inspect, "\n" end end end 10.t... 22 Jan 2010 06:10
ruby bounties--list of bounties
Sure would like to be able to afford a bounty on a Ruby (framework agnostic) OWASP ESAPI. http://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API MarkT -- チェックアウトが、Jingle だ! It's a Jingle Out There! ... 26 Jan 2010 04:21
First  |  Prev |  Next  |  Last
Pages: 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179