Description:
The Ruby dynamic OO programming language.
|
|
|
Using activerecord with mysql
|
| |
Hi All, I've successfully been using Ruby on one machine for quite some time and now, on another machine, after: installing Ruby 1.86-27 rc2 (using the one click installer for Windows obtained from [link], with the 'Enable RubyGems' option checked) installing the additional gems activerecord and mysql (using gem install... more »
|
|
what's ||
|
| |
sorry just was learning ruby so have some low level questions, :) in this statement: 1.upto(10) do |c| print c," " end what's the usage of "| ... |" in ruby? can't easily understand. Thanks.
|
|
. earningtoonline1000dollars.blo gspot.com
|
| |
CONFAM OFFLINE TRAFFICE IF U WANT CLIX OFF LINE TRUE SO U SEND ME TO EMAIL THAT ADDRESS h_hussain2...@hotmail.com u send me UR PERSOLNAL EAMIL ADDRESS LIKE HOTMAIL..YAHOOO..AND OTHERS... BUT DEAR IST U DO THA MAY WORK AND SEND ME PROOF ALSO SO I DO UR WORK HONESTLY .. MAY REQ IS 2 (3) (33)... more »
|
|
bsearch.rb
|
| |
I found online [link]. Yippee! Is the following good idiomatic Ruby for doing a binary search the way that Array.assoc searches linearly? irb -r .\ruby-bsearch-1.5\bsearch.rb sorted_array = [ [ 1, [1000, rand(1000), rand(1000)]], [ 2, [ 999, rand(1000), rand(1000)]], [ 4, [ 998, rand(1000), rand(1000)]],... more »
|
|
edit related record
|
| |
There's a one-to-one relation between the base model "item" and the associated model "page," but the page table is empty and the structure seems wrong (no fk): mysql> mysql> describe rss2mysql.pages; +-------+---------+------+---- -+---------+----------------+ ...+-------+---------+------+- ----+---------+--------------- -+... more »
|
|
Traversing the contents of a proc (for a DSL)
|
| |
Hi List, Is it possible to traverse and modify the statements inside a Proc after it has been created? I'm playing with a small DSL for HTML, which should look like this. html { head { title {"Hello World"} } body { h1 { "hello"} p { "text body" "more text" } } ...If it is possible to recursively traverse through the statements in... more »
|
|
very newbie question
|
| |
Hello, I run these in irb: irb(main):001:0> queue=0 => 0 irb(main):002:0> if !queue then print "The queue is empty." end => nil why the result is nil? I thought it should be printing "The queue is empty." Thanks.
|
|
Array.assoc
|
| |
If I want to find the source to the Class Array ... specifically Array.assoc ... where would I look?
|
|
How do I get a random number between two random numbers?
|
| |
I want to create a program that asks you to guess a number between two numbers. The problem is that I can't figure out how to make the numbers that you're guessing between random and have the random number you are guessing between those two numbers. Does anybody know how to do this?
|
|
|