Ruby-warrior : Teaching AI concepts with Ruby23111 (4/9/2010 5:20:23 PM) comp.lang.ruby I think this project doesn't get enough attention :-)
http://github.com/ryanb/ruby-warrior
I've tried it and it's really cool and entertaining. The code is also
pretty cool to look at, and it's got tests a... Aldric
Weird hash key: what am I asking Ruby to do?3154 (3/31/2010 6:32:05 PM) comp.lang.ruby I decided to type the following in irb:
irb(main):010:0> a = {}
=> {}
irb(main):015:0> a[lambda { x } => 5] = 5
=> 5
irb(main):016:0> a
=> {{#=>5}=>5}
irb(main):017:0> a = {}
=> {}
irb(main):018:0> a... Aldric
Mountain West Ruby Conf : Videos132 (3/15/2010 2:40:17 PM) comp.lang.ruby Hi all, Do you have an estimate as to when the presentations from MWRC will be available online? The website still tells us we can register.. :) -- Posted via http://www.ruby-forum.com/. ... Aldric
Ruby Regexp implementation?345 (3/12/2010 6:54:09 PM) comp.lang.ruby This probably doesn't belong in Ruby Core. I was reading this article: http://swtch.com/~rsc/regexp/regexp1.html http://swtch.com/~rsc/regexp/regexp2.html http://swtch.com/~rsc/regexp/regexp3.html And in the f... Aldric
[ANN] ListBrowser 0.1.0 released: Browse tree structures!137 (1/15/2010 11:56:02 PM) comp.lang.ruby ~~~~ ListBrowser README ~~~~ I was working on a parser for a very specific tree structure, and was frustrated that there wasn't a simple way to parse it in irb. "What??", I thought. "I have to use my brain?! G... Aldric
SPOJ ? Test for end of file input7457 (1/12/2010 7:33:06 PM) comp.lang.ruby Here's the problem:
https://www.spoj.pl/problems/PROBTNPO/
It's pretty trivial, but it doesn't have a well-delimited "end" to it.
In the forums, they indicate one should test for end of file. I have no
id... Aldric
[ANN] SgfParser 0.8.0 - Open, browse and save!0153 (1/5/2010 6:19:01 AM) comp.lang.ruby SgfParser has been released!
What is it?
SGF stands for Simple Game Format. It is a plain text file format to
store records of two-player board games like chess, backgammon, etc -
the most famous of which... Aldric
Using threads to show progress21113 (12/15/2009 7:32:40 PM) comp.lang.ruby I want to do this in a Rake task, but the concept is Ruby. I would like
to use one thread to do the work, and one thread to periodically tell me
"We're working on element x now". I'm trying to work from this ... Aldric
Re-opening an existing module and changing a method1096 (11/19/2009 5:27:40 PM) comp.lang.ruby "I hear and I forget; I see and I remember; I do and I understand."
Wouldn't it be nice if it were that simple - clearly they did not know
about the subtle art of debugging.
So, I'm trying to hack at the m... Aldric
Exact (LISP-ish) calculations in Ruby?2472 (11/18/2009 2:35:36 PM) comp.lang.ruby Has anyone written a gem for exact calculations? The kind one would find
on a LISP REPL, or when using your average HP scientific calculator?
>> 3 / 4
=> 3/4
>> 3 / 6
=> 1/2
>> sqrt(2)
=> sqrt(2)
>> sqr... Aldric
[ANN] Camping 2.0 - minature rails for stay-at-home moms321 (4/9/2010 2:47:27 PM) comp.lang.ruby require "uri";require "rack";class Object;def meta_def m,&b;(classCam\ping Problem!%s";U=Rack::Utils;Apps=[] class HURL(*a). to_s;end;def r404 p;P%"#{p} not found"end;def r500 k,m,e;raise e;end;def r501 m P%"#{... judofyr(7)
[ANN] net-ldap 0.1.1 Released148 (3/18/2010 2:09:21 PM) comp.lang.ruby Unfortunately, yesterday's release of net-ldap 0.1.0 had a critical bug in it, so today net-ldap version 0.1.1 has been released! * * Pure Ruby LDAP library. Changes: ### Net::LDAP 0.1.1 / 2010-03-18 * Fi... halostatue(1713)
Overriding new?1839 (3/15/2010 2:13:16 PM) comp.lang.ruby Hi everybody, given the following situation: class Parent def initialize print "magic\n" end end class Child < Parent def initialize print "more magic\n" end end child = Child.new is t... andrea182(15)
will_paginate551 (2/17/2010 6:33:14 PM) comp.lang.ruby Hello, I m working on a rails proj.. i m using Ruby version 1.3.2 can u please help me in implementing the pagination stuff in Ruby... how to install the gem 'will_paginate' which is latest for pagination.. --... manishbelsare2003(2)
Newbie needs help1120 (2/16/2010 12:56:54 AM) comp.lang.ruby Heya fellas. I've coded C, Java and perl for a while now, but I'm completely new to Ruby (started off today ;) ), and I have an error that's bugging me. Basically, the script is intented to calculate the radice... guidjos0x00(3)
Why no ++ and --?2636 (2/8/2010 3:15:17 AM) comp.lang.ruby "foo += 1" somehow seems less elegant or pretty as "foo++". Is there any reason Ruby doesn't have ++? Is it something that might be added in a future version? -- Posted via http://www.ruby-forum.com/. ... sonja(3)
Anyone here understand dfp's and cfp's?2206 (2/4/2010 11:04:18 PM) comp.lang.ruby If you know the internals of Ruby, I would appreciate a little advice on
my pet project: http://github.com/RISCfuture/better_caller
I'm also open to your criticism if you think what I'm doing is a REALLY
b... Tim
Some noob questions28153 (2/4/2010 10:58:30 AM) comp.lang.ruby Hello Ruby friends!
I'm learning ruby and i already have some problems.
I have a file with Login and Ip address but not on the same line.
Exemple :
Login1
Address1
Login2
Address2
....
I sear... John
What does ||= represent in this situation?921 (1/17/2010 5:31:36 PM) comp.lang.ruby Hey all, || is equal to Or. So what would ||= in this situation? def expensive @expensive ||= begin n = 99 buf = "" begin buf 0 buf << "no more bottles of beer" end e... stoicism1(6)
[QUIZ] Solar System (#227)226 (1/16/2010 5:07:34 AM) comp.lang.ruby -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- The three rules of Ruby Quiz: 1. Please do not post any solutions o... yahivin(88)