[#144157] Interesting discovery... — Austin Ziegler <halostatue@...>
I had a user report a slowdown in PDF::Writer. I'm pretty certain I
On Wed, 1 Jun 2005, Austin Ziegler wrote:
On 5/31/05, Ara.T.Howard <Ara.T.Howard@noaa.gov> wrote:
On Wed, 1 Jun 2005, Austin Ziegler wrote:
Ara.T.Howard@noaa.gov wrote:
[#144158] tk image problem — Charles Hixson <charleshixsn@...>
When I attempt to read in xpm files created by the Gimp, I get
[#144164] TinyUrl class — "Vincent Foley" <vfoley@...>
Hi everyone,
Vincent Foley wrote:
[#144186] Re: array of object insert polices — "Pe, Botp" <botp@...>
dave [mailto:dave.m@email.it] wrote:
dave wrote:
dave wrote:
[#144206] Implementing a Read-Only array — Gavin Kistner <gavin@...>
Right up front, let me say that I realize that I can't prevent
Gavin Kistner wrote:
[#144208] OT: Looking for embeddable WYSIWYG HTML editor — "delirious" <Simon.Vandemoortele@...>
Dear all,
"delirious" <Simon.Vandemoortele@gmail.com> inquired:
[#144223] Document identification — "M. Eteum" <meteum@...>
Dear Ruby Guru:
[#144224] Method Chaining Issues — "aartist" <aartist@...>
try this:
This is a FAQ, though no page on the RubyGarden wiki seems to address
Phrogz wrote:
On 6/2/05, Nikolai Weibull
Gyoung-Yoon Noh wrote:
Phrogz wrote:
Sam Goldman wrote:
>> Some people think that "bang" methods shouldn't exist at all!
[#144230] ternary operator confusion — Belorion <belorion@...>
I don't know if this is "improper" use of the ternary operator, but I
true ? a.push(1) : a.push(2)
On Thu, Jun 02, 2005 at 01:40:23AM +0900, Phrogz wrote:
--- "Marcel Molina Jr." <marcel@vernix.org> wrote:
On 6/1/05, Eric Mahurin <eric_mahurin@yahoo.com> wrote:
On Jun 1, 2005, at 3:47 PM, Austin Ziegler wrote:
[#144253] Installing ruby on rails locally — "g_u_s" <gus_literatura@...>
Hi, everyone, I want to know how I do to install ruby on rails locally,
[#144274] help, I can't compile an extension on windows — Lionel Thiry <lthiryidontwantspam@...>
Hello!
Lionel Thiry wrote:
Daniel Berger a 馗rit :
[#144275] The WIPO Intellectual Property Forum - defend your right to Ruby. — John Carter <reNfOacStPoArMedE@...>
Here is an opportunity to fight the new Imperialism.
[#144290] librend 0.0.1 — Ilmari Heikkinen <kig@...>
Here's something I've been hacking on for the past two months, an OpenGL
[#144310] internal iterators in ruby — Navya Amerineni <navyaamerineni@...>
Hi,
[#144350] How to use open uri or net/http class — sujeet kumar <sujeetkr@...>
Hi
[#144362] Google Summer of Code: status of Ruby Central — "David A. Black" <dblack@...>
Hi --
[#144379] Ruby equiv of Perltidy? — <RubyLANG@...>
Hello All,
[#144390] requiring files — Joe Van Dyk <joevandyk@...>
Hi,
[#144405] Nuby problem w/CSV, tab-delimited files & embedded double-quotes — rpardee@...
Hey All,
[#144436] Google Summer of Code update — "David A. Black" <dblack@...>
Hi --
[#144444] Re: internal iterators in ruby — "Geert Fannes" <Geert.Fannes@...>
So, if I understand well, the problem with iterating over different
[#144448] AllInOneRuby 0.2.3 — Erik Veenstra <pan@...>
[#144452] Whiteout (#34) — Ruby Quiz <james@...>
The three rules of Ruby Quiz:
> 3. When "whiteout" is required, the original code must be executed with
[#144453] RubyScript2Exe and GUI toolkits — Erik Veenstra <pan@...>
[#144458] Failure: test_verify(OpenSSL::TestX509Store) — "James B. Byrne" <ByrneJB@...>
I built ruby-1.8.2 stable from source (ruby-lang.org) on a CentOS4
[#144465] newby question on validation — Matteo Corti <corti@...>
Hi,
[#144468] erb/apache problem — "HAL 9000" <hal9000@...>
Hi, all. Posting from work via Google.
On Sat, Jun 04, 2005 at 01:50:24AM +0900, HAL 9000 wrote:
[#144480] method_missing and assignment — Patrick Gundlach <clr5.10.randomuser@...>
Hi,
[#144487] Building a business case for Ruby — Joe Van Dyk <joevandyk@...>
Hi,
On Friday 03 June 2005 16:33, Joe Van Dyk wrote:
You could, er, load ruby as a python extension...
[#144494] Teaching Ruby — Joe Van Dyk <joevandyk@...>
Somewhat related to the other thread I just started. In order to get
[#144535] ruby-dev summary 26128-26222 — Minero Aoki <aamine@...>
Hi all,
[#144557] Calling a procedure with dinamyc name — Marcelo Paniagua <paniagua@...>
Hi there!
[#144565] RDoc: bug or limitation? — "Vincent Foley" <vfoley@...>
I think I found a bug in RDoc, although this could be a limitation, I'm
[#144579] Package, a future replacement for setup.rb and mkmf.rb — Christian Neukirchen <chneukirchen@...>
* Christian Neukirchen <chneukirchen@gmail.com> [2005-06-05 07:59:15 +0900]:
Jim Freeze <jim@freeze.org> writes:
On 6/4/05, Christian Neukirchen <chneukirchen@gmail.com> wrote:
Austin Ziegler <halostatue@gmail.com> writes:
Christian Neukirchen ha scritto:
gabriele renzi <surrender_it@remove-yahoo.it> writes:
Christian Neukirchen ha scritto:
[#144610] Creating objects from strings. — Bill <ruby@...>
Hi,
Bill wrote:
[#144614] unbinding a Proc? — Eric Mahurin <eric_mahurin@...>
This is mostly a curiosity thing...
[#144658] Rails/ActiveRecord Nuby question. — Harold Hausman <hhausman@...>
I am kindof assuming that this is something of a newbie question as
[#144666] A Ruby script to add email disclaimers — Johann Spies <jspies@...>
A few years after my first contact with ruby (and not using it) I am
[#144672] newbie read.scan (?) question — "Bruce D'Arcus" <bdarcus.lists@...>
Hi,
article is a stream and you try to read it twice, this doesn't work like
One followup.
Hi,
[#144682] How to call a class method when (i.e. in the moment of) inheriting from a class/defining a descendant? — Thomas <sanobast-2005a@...>
Hi,
[#144691] making a duck — Eric Mahurin <eric_mahurin@...>
Regarding duck-typing... Is there an easy way make a "duck"?
Eric Mahurin ha scritto:
Eric Mahurin wrote:
Hi,
--- nobu.nokada@softhome.net wrote:
Hi,
Eric Mahurin wrote:
[#144694] A little Quiz — "Dominik Bathon" <dbatml@...>
First of all, this is no attempt to rival with James' nice Ruby Quiz ;-)
[#144706] 'gets' has been hijacked — Pete Elmore <pete@...>
I was working with a simple script, that unexpectedly broke. The
[#144723] Stats comp.lang.ruby (last 7 days) — Balwinder Singh Dheeman <bsd.SANSPAM@...>
Stats comp.lang.ruby (last 7 days)
[#144724] Saving YAML data — Nigel Wilkinson <nigel@...>
Hi
[#144735] Re: Help getting RMagick working — Timothy Hunter <cyclists@...>
pjhyett@gmail.com wrote:
[#144742] Could Ruby-doc be better? -- Proposal for a better system. — Andrew Thompson <vagabond@...>
<Sorry for the crosspost, but I thought I might as well try to reach as
Andrew Thompson wrote:
So, basically the consensus is that Rdoc is in need of some work,
[#144782] DRb Method_mising respond_to? — "curtis.schofield@..." <curtis.schofield@...>
[#144816] Ruby version ot TEA (Tiny Encryption Alogrithm)? — James Britt <james_b@...>
Does anyone know of a pure-Ruby lib that implements the Tiny Encryption
[#144837] I cannot get rescue to work — Xeno Campanoli <xeno@...>
The example on page 108 of pickaxe gives me the following syntax error, for
[#144853] Test-Driven Development in GUIs — Joe Van Dyk <joevandyk@...>
Hi,
On 6/7/05, Joe Van Dyk <joevandyk@gmail.com> wrote:
[#144867] ruby-wish@ruby-lang.org mailing list — dave <dave.m@...>
Austin Ziegler wrote:
On 6/8/05, dave <dave.m@email.it> wrote:
On Jun 8, 2005, at 8:25 AM, Austin Ziegler wrote:
On 6/8/05, dave <dave.m@email.it> wrote:
On Thu, Jun 09, 2005 at 05:30:13AM +0900, dave wrote:
[#144876] Memory leak? — Nathan Smith <nsmith5@...>
Hello,
[#144879] StringMatrix — Gavin Kistner <gavin@...>
(This isn't a library I plan on maintaining, but ANN felt like the
[#144890] RubyStuff: The Ruby Shop for Ruby Programmers — James Britt <james_b@...>
Announcing the formal grand opening of Ruby Stuff: The Ruby Shop for
On Thu, Jun 09, 2005 at 12:50:52AM +0900, James Britt wrote:
Michal 'hramrach' Suchanek wrote:
Hal Fulton wrote:
Hey James,
I know CafePress is easy, but the shirts look generic, the quality is
On 6/8/05, James Britt <james_b@neurogami.com> wrote:
[#144923] Newb math question — brian <brian@...>
Can someone tell me why this code:
[#144956] Whiteout (#34) — Ruby Quiz <james@...>
Does this library have any practical value? Probably not. It's been suggested
[#144966] python/ruby benchmark. — "\"</script>" <groleo@...>
I took a look at
"</script> ha scritto:
Hello gabriele,
Java is an order of magnitude faster than Ruby. The development of a
Hello Kent,
Lothar Scholz said:
On 6/10/05, Ryan Leavengood <mrcode@netrox.net> wrote:
Gavri Fernandez said:
On Fri, 10 Jun 2005, Ryan Leavengood wrote:
As Gabriele mentionned, they implement a lot of stuff that is done in C
Vincent Foley wrote:
On 6/10/05, Isaac Gouy <igouy@yahoo.com> wrote:
On Jun 10, 2005, at 1:02 PM, Austin Ziegler wrote:
I've run through this thread and i am finally writting this because i am in a way astonished.
In article <9e7db91105061106485b68d629@mail.gmail.com>,
Phil Tomson wrote:
On 6/12/05, Steven Jenkins <steven.jenkins@ieee.org> wrote:
#: the mind was *winged* after Austin Ziegler said on 6/12/2005 5:53 PM :#
Austin Ziegler wrote:
On 6/12/05, Steven Jenkins <steven.jenkins@ieee.org> wrote:
Austin Ziegler wrote:
On 6/12/05, Steven Jenkins <steven.jenkins@ieee.org> wrote:
Austin Ziegler wrote:
In this essay I'm going to attempt, one final time, to demonstrate
On Wed, Jun 15, 2005 at 01:55:58PM +0900, Steven Jenkins wrote:
On 6/15/05, Ralph PJPizza Siegler <pjpizza@rsiegler.org> wrote:
[#144973] How to take password from user — sujeet kumar <sujeetkr@...>
Hi
On Jun 9, 2005, at 11:19 AM, sujeet kumar wrote:
On Fri, 10 Jun 2005, James Edward Gray II wrote:
[#144985] Getting a method object directly from a module — "Daniel Berger" <djberg96@...>
Hi all,
[#144991] http://sciruby.codeforpeople.com/ — "Ara.T.Howard" <Ara.T.Howard@...>
[#145000] RDoc —
Hi, I have a question. When I compiled ruby-1.8.2
On 09 Jun 2005, at 13:55, Jesffffas Antonio Sfffe1nchez A. wrote:
But for example it run rdoc --op -html-docs inside
Xeno Campanoli <xeno@eskimo.com> writes:
a slow loris with poison elbows wrote:
[#145011] gnu readline ruby vs. perl — Wybo Dekker <wybo@...>
I'm translating a Perl script into Ruby, but can't reproduce a readline
Hi,
Quoting nobuyoshi nakada <nobuyoshi.nakada@ge.com>:
[#145026] Re: [Rails] Ajax on Rails — Curt Hibbs <curt@...>
Robby Russell wrote:
> http://rubyurl.com/OddwR
Also dead:
On 6/10/05, Douglas Livingstone <rampant@gmail.com> wrote:
Could you replace it with a 404 page then? Atleast it won't look like
[#145031] framework of Ruby/Tk + VNC — Hidetoshi NAGAI <nagai@...>
Hi,
[#145032] newbieQ: new array from old array w regex — "Charles L. Snyder" <csnyder1@...>
Hi,
[#145045] Re: howto write rtf directly? — Nuralanur@...
Dear Thomas and Brian,
[#145049] duck-typing allows deeper polymorphism — Eric Mahurin <eric_mahurin@...>
I've seen many posts on what duck-typing is, that Ruby doesn't
On Fri, 10 Jun 2005, Eric Mahurin wrote:
[#145053] Chess Variants (I) (#35) — Ruby Quiz <james@...>
The three rules of Ruby Quiz:
On Jun 10, 2005, at 7:07 AM, Ruby Quiz wrote:
[#145079] Ruby/LDAP on Windows — "gregarican" <greg.kujawa@...>
Here is a message I sent to the maintainer of this particular project.
[#145085] Is there a Ruby equivilant to Python's exec_file? — Wayne Pierce <shalofin@...>
I'm working on a white-box security auditing framework, which is
[#145125] Regex help — Ezra Zygmuntowicz <ezra@...>
Hey there list
[#145132] Please help me get "Ajax on Rails" Slashdotted — Curt Hibbs <curt@...>
To those of you who've read my "Ajax on Rails" article at:
[#145135] blocks, scope/context confusion — "Corey" <corey_s@...>
Hi,
[#145146] (newb) installing rails — "luke" <lduncalfe@...>
[#145166] Only if the object exists — Gavin Kistner <gavin@...>
If I write code like this:
[#145175] how to extract url's from html source of google search result — sujeet kumar <sujeetkr@...>
hi
[#145177] Behavior of $* in String subclasses — Jamis Buck <jamis@37signals.com>
Here's an interesting snafu I ran into today:
[#145181] Regular expression problem — sujeet kumar <sujeetkr@...>
hi
[#145221] gem can't install rails? — Robo <robo@...>
I had a real old version of Rails, so I wanted to upgrade it.
[#145238] finding Hash subsets based on key value — "ee" <erik.eide@...>
Hi
James Edward Gray II <james@grayproductions.net> wrote:
....gonna launch a computerized weather balloon, of couse!
mark wrote:
[#145263] Re: python/ruby benchmark(don't shoot the messenger) — Nuralanur@...
Hello,
[#145264] [ANN] BoilerPlate 0.1.0 -- An application skeleton for Ruby on Rails — Michael Schuerig <michael@...>
[#145285] encryption using ruby? — "Nick Hayworth" <chipped_up@...>
Hi all
[#145288] ruby module for subversion? — Steve Kelem <s_kelem@...>
Is there a module for ruby that will give access to subversion functions?
[#145291] Chip Multi-threading and the future — Stephen Kellett <snail@...>
Hi Folks,
[#145302] Re: python/ruby benchmark(don't shoot the messenger) — Nuralanur@...
Tanner Burson wrote:
[#145304] PDF::Writer 1.0 (version 1.0.1) — Austin Ziegler <halostatue@...>
= PDF::Writer
On 6/13/05, Austin Ziegler <halostatue@gmail.com> wrote:
No love from PDF::Writer on Mac OS X 10.4.1. I hope to get this fixed
On 6/14/05, Jason Foreman <threeve.org@gmail.com> wrote:
On Jun 14, 2005, at 5:11 PM, Austin Ziegler wrote:
On 6/14/05, Jamis Buck <jamis@37signals.com> wrote:
On 6/14/05, Austin Ziegler <halostatue@gmail.com> wrote:
On Jun 14, 2005, at 9:06 PM, Jason Foreman wrote:
Jamis Buck <jamis@37signals.com> writes:
[#145306] Book: Agile Web Development with Rails — Stephen Kellett <snail@...>
Hi Folks,
[#145325] Speed concerns, rudeness, and narrow-minded excuses — Matt Pattison <matchbo@...>
I've been a little ashamed to be a part of the Ruby community reading
Matt Pattison wrote:
[#145339] survey: what editor do you use to hack ruby? — Lowell Kirsh <lkirsh@...>
I've been having a tough time getting emacs set up properly with ruby
2005/6/14, Lowell Kirsh <lkirsh@cs.ubc.ca>:
As a follow-up on the other people mentioning (g)vim: I think it should
Lowell Kirsh wrote:
On Jun 15, 2005, at 8:25 AM, Nikolai Weibull wrote:
James Edward Gray II <james@grayproductions.net> writes:
[#145372] vim question — "jeem" <jeem.hughes@...>
The survey thread reminded me that I wanted to ask this:
[#145373] Deploying on Textdrive — Bruno Bornsztein <bruno.bornsztein@...>
I've got an application working nicely on my localhost, and I'm
[#145390] Ruby and recursion (Ackermann benchmark) — ptkwt@... (Phil Tomson)
On 6/14/05, Phil Tomson <ptkwt@aracnet.com> wrote:
Austin Ziegler <halostatue@gmail.com> writes:
Christian Neukirchen <chneukirchen@gmail.com> writes:
[#145429] PDF::Writer Angle Issues — Austin Ziegler <halostatue@...>
Well, things have just gotten ... interesting. In response to a
On Wed, 15 Jun 2005, Austin Ziegler wrote:
[#145434] Limiting the CPU time of program started via SYSTEM() — Garance A Drosehn <drosihn@...>
Let's say I have a ruby script which calls system() to run some
[#145456] Problem to make Xtemplate parse my XHTML — "simonced" <simonced@...>
hi everyone,
I'll look better to Amrita documentation.
[#145465] code optimpization: delete_if, each, send. — dave <dave.m@...>
[#145487] Chess Variants (I) (#35) — Jim Menard <jimm@...>
My hacked-together solution, based on Bangkok (http://bangkok.rubyforge.org),
On Jun 15, 2005, at 8:54 AM, Jim Menard wrote:
James Edward Gray II wrote:
[#145531] Article on Ruby/Rails — Tom Copeland <tom@...>
Hi all -
[#145537] Regex help — Ezra Zygmuntowicz <ezra@...>
Hello list!
[#145546] Funniest Thing Evar! — Nikolai Weibull <mailing-lists.ruby-talk@...>
% python
[#145551] ruby openssl ? — "Bill Kelly" <billk@...>
Hi,
[#145574] stubborn program using readline — Wybo Dekker <wybo@...>
Hi,
On 6/16/05, Wybo Dekker <wybo@servalys.nl> wrote:
[#145575] OpenVMS woes — Renald Buter <buter@...>
Hello,
[#145582] Chess Variants (I) (#35) — Ruby Quiz <james@...>
As Gavin Kistner pointed out, this quiz was too much work. There's nothing that
[#145586] How to make a browser in Ruby Tk — sujeet kumar <sujeetkr@...>
Hi
From: sujeet kumar <sujeetkr@gmail.com>
When I run Ruby's source archive ("ext/tk/sample/tkextlib/tkHTML/hv.rb").
From: sujeet kumar <sujeetkr@gmail.com>
Hi,
From: sujeet kumar <sujeetkr@gmail.com>
Hi
From: sujeet kumar <sujeetkr@gmail.com>
Hi,
[#145603] Good Ruby Cross-platform GUI toolkit — jhouchin@... (Jimmie Houchin)
I've seen this pop up a couple of times while reading c.l.r.
[#145607] hash of hashes by default — Belorion <belorion@...>
I want a Hash of Hashes. Furthermore, I want it so that if a key for
[#145624] Backing up files and database better in Ant or Ruby? — "vike84" <mhust6@...>
I am looking to write some basic scripts to back-up various files and
[#145636] Super-scalar Optimizations — "Phrogz" <gavin@...>
I was looking over the shoulder of a C++ coworker yesterday, when he
Devin Mullins wrote:
On Jun 17, 2005, at 6:40 AM, Robert Klemme wrote:
[#145652] LinuxTag 2005 — Tanaka Akira <akr@...17n.org>
I'll go to LinuxTag 2005 next week.
[#145670] Nitro + Og 0.19.0: Og reloaded part2! — "George Moschovitis" <george.moschovitis@...>
Hello everyone,
On Fri, 17 Jun 2005, George Moschovitis wrote:
> > experimental In-Memory/Filesystem adapter.
[#145677] Truth maintenance system in Ruby — "itsme213" <itsme213@...>
Anyone know of any kind of truth-maintenance system implemented in Ruby (or,
Sorry, I should have elaborated. It is an AI/logic/rule-based system that
On Jun 17, 2005, at 11:20 AM, itsme213 wrote:
[#145683] Multitasking server? — mrt@...
Disclaimer: Ruby newbie here.
mrt@thomaszone.com wrote:
[#145684] ruby-vim line number — tsuraan <tsuraan@...>
This might be more appropriate on a vim list, but I'll give it a go here...
[#145704] Simple Check Box Question — "Matt Koidin" <mkoidin@...>
I'm new to ruby and rails and I have a simple question that is driving
It's the third parameter to the call you're making, a boolean. False is
I tried that and it doesn't work (again, I might be misinterpreting the
I solved the problem --
[#145718] gemserver for rubyforge projects — Eric Mahurin <eric_mahurin@...>
Anybody else think it would be nice if we had a gemserver
[#145720] Frameless RDoc template ('technology preview') — ES <ruby-ml@...>
Hi!
On 17 Jun 2005, at 12:59, ES wrote:
ES wrote:
On Saturday 18 June 2005 00:28, John W. Long wrote:
Ben Giddings wrote:
[#145730] What's the correspond method of PERL's DESTROY in ruby — "Yi Zhang" <yzhang@...>
Hello
[#145733] Confusion about gems and non-gems working together. — Lloyd Zusman <ljz@...>
Ever since I started installing packages via the gems mechanism, I have
[#145737] Why do arrays work this way? — Nigel Wilkinson <nigel@...>
Hi folks
[#145764] ruby on rails problem — "Ken Fettig" <kenfettig@...>
Hello, I have a Ruby on Rails question. I have used a layout in a
[#145779] Newbe questions... — "Chuck Brotman" <brotman@...>
In Ruby Is there a prefered (or otherwise elegant) way to do an inner &
[#145787] Syntax 1.0.0 — Jamis Buck <jamis@37signals.com>
INTRODUCING SYNTAX 1.0! IT'S EXPLOSIVE! IT'LL MAKE A REAL PROGRAMMER
[#145790] GC.disable not working? — Eric Mahurin <eric_mahurin@...>
From what I can tell, GC.disable doesn't work. I'm wanting to
Hi,
>>>>> "E" == Eric Mahurin <eric_mahurin@yahoo.com> writes:
Hello all,
dave wrote:
[#145823] Anybody using Ruby 1.6.x? — Timothy Hunter <cyclists@...>
With Ruby 1.8.3 on the horizon, should I continue to support building
[#145830] preventing instantiation — "R. Mark Volkmann" <mark@...>
What is the recommended way in Ruby to prevent other classes from creating
On 6/19/05, R. Mark Volkmann <mark@ociweb.com> wrote:
Quoting Gavri Fernandez <gavri.fernandez@gmail.com>:
R. Mark Volkmann wrote:
[#145846] irb without history? — Daniel Sche <uval@...>
Hello NG,
Take a look at:
well, I dont want to maintain history through the sessions
[#145862] trouble with sqlite-ruby — Lowell Kirsh <lkirsh@...>
I'm having trouble getting bind parameters to work. I'm getting errors
[#145870] Iterate with condition — G畸or SEBESTYノN <segabor@...>
Hi,
[#145879] x==1 vs 1==x — Gavin Kistner <gavin@...>
I'm against _premature_ optimization in theory, but believe that a
>>>>> "G" == Gavin Kistner <gavin@refinery.com> writes:
On Jun 20, 2005, at 7:23 AM, ts wrote:
On 6/20/05, Gavin Kistner <gavin@refinery.com> wrote:
Jason Foreman wrote:
[#145911] ruby9i dead? — rubyhacker@...
Is Ruby9i still an active project? I sent email to the owner
[#145941] Congrats to why_ — James Britt <james_b@...>
I don't recall seeing this mentioned here before, and I just read a post
[#145943] Chess Variants (II) (#36) — James Edward Gray II <james@...>
I don't want to spoil all the fun, in case anyone is still attempting
James Edward Gray II wrote:
On Jun 20, 2005, at 3:56 PM, Jim Menard wrote:
James Edward Gray II wrote:
Jim Van Fleet wrote:
On Jun 20, 2005, at 6:14 PM, Glenn Parker wrote:
[#145977] Ruby/REXML vs XSLT — John Carter <john.carter@...>
I'm just looking at 5000 lines of the gnarliest XSLT that generates
[#145987] Confusing code behavior in Rails — "szymon.rozga" <szymon.rozga@...>
I have a class in /project_dir/lib called Failure. Failure has one
[#145994] RMagick and RubyGems — Robert Mannl <ro@...>
Hi!
[#146003] Ruby and Java — Wayne Pierce <shalofin@...>
I have a vendor product with Java APIs that I need to write against
[#146023] HTML parsing as good as Perls. — TLOlczyk <olczyk2002@...>
First let me be very clear. I hate the language that Larry "should be
[#146038] 1. Ruby result: 101 seconds , 2. Java result:9.8 seconds, 3. Perl result:62 seconds — Michael Tan <mtan1232000@...>
Just new to Ruby since last week, running my same functional program on the windows XP(Pentium M1.5G), the Ruby version is 10 times slower than the Java version. The program is to find the prime numbers like 2, 3,5, 7, 11, 13... Are there setup issues? or it is normal?
Michael Tan wrote:
* Florian Frank <flori@nixe.ping.de> [2005-06-22 05:40:14 +0900]:
Jim Freeze said:
Ryan Leavengood wrote:
Glenn Parker said:
Ryan Leavengood wrote:
On 6/21/05, Glenn Parker <glenn.parker@comcast.net> wrote:
Florian Frank wrote:
Hey,
Keith Fahlgren wrote:
On Wed, 22 Jun 2005, Michael Tan wrote:
How about using a better algorithm than Eratosthenes sieve invented
Here's a version that skips even numbers:
[#146040] tk canvas question — Joe Van Dyk <joevandyk@...>
Hi,
On 6/21/05, Joe Van Dyk <joevandyk@gmail.com> wrote:
On 6/21/05, Joe Van Dyk <joevandyk@gmail.com> wrote:
From: Joe Van Dyk <joevandyk@gmail.com>
[#146064] rubyscript2exe — Joe Van Dyk <joevandyk@...>
Hi,
Joe Van Dyk said:
[#146074] Histogram-type Data — "Charles L. Snyder" <csnyder1@...>
Hi,
[#146087] Runtime vs Development — gwtmp01@...
On Wed, 2005-06-22 at 12:06 +0900, gwtmp01@mac.com wrote:
Matthew Berg said:
[#146123] traits-0.3.0 — "Ara.T.Howard" <Ara.T.Howard@...>
On Wed, Jun 22, 2005 at 09:18:13PM +0900, Ara.T.Howard wrote:
[#146143] How I can find out on which platform I am running (32/64 bits)? — "Joachim Just" <joachim.just@...>
[#146144] Newbee: recursively converting LF to CRLF and vice versa — Elliott <e.hmlhml@...>
Hello,
[#146169] spidering a website to build a sitemap — Bill Guindon <agorilla@...>
I need to spider a site and build a sitemap for it. I've looked
Bill Guindon said:
I have a site mapping tool I'm working on which does not yet read
i noticed webfetcher in RPAbase, haven't had a chance to play with it:
On 6/29/05, Gene Tani <gene.tani@gmail.com> wrote:
I was looking for somehting to trap 404-type errors, kind of like
[#146178] traits-0.4.0 - the coffee release — "Ara.T.Howard" <Ara.T.Howard@...>
Ara.T.Howard wrote:
On Thu, 23 Jun 2005, James Britt wrote:
On Thu, Jun 23, 2005 at 08:31:35AM +0900, Ara.T.Howard wrote:
Hello,
btw,
On Thu, 23 Jun 2005, George Moschovitis wrote:
[#146206] PostgreSQL Inserted OID — nexus <nexus@...>
Does anyone know how to get the inserted OID following an insert
[#146233] RMagick on Win — pavel.s.sokolov@...
Hi
[#146243] Packaging dillema — Joe Van Dyk <joevandyk@...>
Hi,
[#146248] Dead gateway detection — balcer <balcersk@...>
Is there some way to detect if gateway is dead?
[#146257] /dev/tty in windows — Wybo Dekker <wybo@...>
under linux I use
[#146263] Eclipse Weird Console Error — "Seago" <seagoj@...>
I'm not sure if anyone else is experiencing this. It's pretty much the
[#146296] ICFP 2005 Programming Contest — "Ryan Leavengood" <mrcode@...>
http://icfpc.plt-scheme.org/index.html
[#146325] REXML libraries and parsing issues — BA <lists@...>
First off, let me say right up front that I am a newbie wrt Ruby.
BA wrote:
[#146326] freeride debugger issue — "Chuck Brotman" <brotman@...>
I've been trying out Freeride and when I try to run my program using the
[#146327] Problems with Typo — Hal Fulton <hal9000@...>
Hi, all...
[#146328] string to Class object — "R. Mark Volkmann" <mark@...>
How can I create a Class object from a String that contains the name of a class?
On 6/23/05, R. Mark Volkmann <mark@ociweb.com> wrote:
Austin Ziegler wrote:
[#146349] FixedPt-0.0.1 — ptkwt@... (Phil Tomson)
[#146364] FastCGI: handling the caching of ruby scripts. — Jonas Hartmann <Mail@...>
FastCGIs idea of caching scripts on first startup is a great thing but:
[#146379] FSDB, Apache, FastCGI - ERROR: FSDB::Database::DirIsImmutableError — Jonas Hartmann <Mail@...>
when I run a script [1] from the command line, it works. it asks for
[#146380] Application-0.6.0 — Jim Freeze <jim@...>
CommandLine - Application and OptionParser
Great work, Jim! Looks like very quick way to get started on
* Eric Mahurin <eric_mahurin@yahoo.com> [2005-06-25 04:41:16 +0900]:
On Friday 24 June 2005 04:04 pm, Jim Freeze wrote:
Jim Freeze <jim@freeze.org> wrote:
* Levin Alexander <levin@grundeis.net> [2005-06-25 13:53:17 +0900]:
[#146391] ASP.NET vs Ruby on Rails — Stephen Kellett <snail@...>
HI Folks,
Hi Stephen,
Having written tens of thousands of lines of code in ASP.NET for
On 6/28/05, xmlblog@gmail.com <xmlblog@gmail.com> wrote:
[#146418] launching process and keeping track of pid — Joe Van Dyk <joevandyk@...>
Hi,
[#146419] Best way to parse/update HTML file? — "Bucco" <buc2@...>
Sorry for the newbie question. I am trying to find the best metod for
Bucco wrote:
[#146421] Text::Format 1.0.0 — Austin Ziegler <halostatue@...>
I am pleased to finally announce the release of Text::Format 1.0.0.
[#146425] speeding up Process.detach frequency — Joe Van Dyk <joevandyk@...>
Is there any way to speed up Process.detach? The ri documentation for
Hi,
Hi,
[#146437] optparse bug? — Joel VanderWerf <vjoel@...>
Hi,
[#146444] Defining a method vs aliasing it — leon breedt <bitserf@...>
Hi,
[#146452] Hash hidden in hash with default object — "Marcel Molina Jr." <marcel@...>
I observed this odd behavior when setting a hash to have as its default
[#146474] RubyGems Issue — Patrick Fernie <patrick.fernie@...>
Hi list,
[#146483] I saw the beauty of Ruby Re: 1. Ruby result: 101 seconds , 2. Java result:9.8 seconds, 3. Perl result:62 seconds — Michael Tan <mtan1232000@...>
Michael Tan wrote:
On 6/25/05, Florian Frank <flori@nixe.ping.de> wrote:
Joe Van Dyk wrote:
I think this shows the speed of my computer more than anything else:
For comparison, the port of your code to (less than elegant) C#.
Brad Wilson wrote:
On 6/26/05, Florian Gro<florgro@gmail.com> wrote:
My algorithmic ramblings gone unheard ... for performance language
[#146491] What do you want to see in a Sparklines Library? — Daniel Nugent <nugend@...>
This is sort of an interest gauging/feature request poll.
See what's already been done before you get too far.
Yup, seen the stuff on RedHanded, I was planning on writing a little
One thing that would make sparklines a lot more universally accessible to=
I'm doing that right now actually, I just want to add the ability to
Well... what does it do right now?
[#146508] RubyNuby Q: Howto Ri — Meino Christian Cramer <Meino.Cramer@...>
Hi,
[#146518] grouping/sorting [newbie question] — bdarcus@...
I'm trying to do something fairly simple that I understand how to do in
bdarcus@gmail.com wrote:
[#146535] newbie scope question — "Charles L. Snyder" <csnyder1@...>
Hi,
[#146536] Error using Net::SSH — "Amit Chitre" <amitchitre@...>
>From WinXP, I'm trying (for the first time) to connect to remote
On Jun 26, 2005, at 4:20 PM, Amit Chitre wrote:
[#146554] Caching eval() for reuse to gain performance ? — "Neville Burnell" <Neville.Burnell@...>
Hi,
[#146560] PDF::Writer Boggles — Brian McCallister <brianm@...>
Neither Austin nor myself has been able to diagnose this one.
[#146562] RCM - A Ruby Configuration Management System — Michael Neumann <mneumann@...>
Hi all,
Hi Everyone,
Zed A. Shaw wrote:
On Wed, 2005-06-29 at 05:42 +0900, Michael Neumann wrote:
Zed A. Shaw wrote:
[#146568] pythonchallenge level5 and pickle — Michael Tan <mtan1232000@...>
hi,what is Ruby's equivalent module of the Python
[#146569] Ruby 1.8.3 preview1 Build Error on AIX 5.2 — "Philippe Lucas" <philippe.lucas@...>
Hello,
[#146573] redirecting STDOUT — Joe Van Dyk <joevandyk@...>
Why doesn't this work?
[#146580] Adding a header to a SOAP request — David Teare <dteare@...>
Hi all,
[#146617] bit/byte operations — Meino Christian Cramer <Meino.Cramer@...>
Hi,
[#146630] yield does not take a block — Daniel Brockman <daniel@...>
Under ruby 1.9.0 (2005-06-23) [i386-linux], irb 0.9.5(05/04/13),
Yukihiro Matsumoto <matz@ruby-lang.org> writes:
Hi,
Eric Mahurin said:
* Ryan Leavengood <mrcode@netrox.net> [2005-06-29 05:49:45 +0900]:
In article <20050628215637.45029.qmail@web41129.mail.yahoo.com>, Eric
--- Jeremy Henty <jeremy@chaos.org.uk> wrote:
Eric Mahurin wrote:
Eric Mahurin wrote:
Eric Mahurin wrote:
[#146647] Problem in binding IWidget combobox to event — "Markus Liebelt" <markus.liebelt@...>
Hello all together,
[#146648] Ask for help about Regexp — Eric Luo <eric.wenbl@...>
Hi ,
[#146673] mkmf and oracle problem - not detecting header files — Daniel Berger <Daniel.Berger@...>
Hi all,
Have you set your ORACLE_HOME environment variable to the directory
[#146676] Rails: Seeing Apache Page instead of the Congratulations Page — "Jenjhiz" <jenjhiz@...>
Hello,
[#146677] SciTE — Jonas Galvez <jonasgalvez@...>
Can anyone share or point me to a decent syntax highlighting file for
[#146700] Anything in new Eclipse for Rubyists? — "jfry" <jeff.fry@...>
Hey there, I know that a number of folks on the list use Eclipse as
I tried multiple times to install the ruby plugin for eclipse 3.1. It's
Nope! I couldn't get it to work either...
On Tue, 28 Jun 2005 19:36:25 -0400, Amarison wrote:
JZ wrote:
[#146709] running unit tests in graphical mode — Joe Van Dyk <joevandyk@...>
Hi,
Joe Van Dyk ha scritto:
On 6/29/05, gabriele renzi <surrender_it@remove-yahoo.it> wrote:
Quoting Joe Van Dyk <joevandyk@gmail.com>:
[#146731] Qt 4.0 ruby bindings? — Ezra Zygmuntowicz <ezra@...>
I just noticed that Qt 4.0 has been released. http://
[#146745] heretix-user ML? — jm <jeffm@...>
Is the mailing list currently operational?
[#146751] Smart(er) platform detection — Matt Mower <matt.mower@...>
Hi folks,
[#146761] Re: Smart(er) platform detection — "Berger, Daniel" <Daniel.Berger@...>
> -----Original Message-----
[#146766] regex and gsub quest — "Charles L. Snyder" <csnyder1@...>
Hi
[#146773] Programmers Contest: Fit pictures on a page — hicinbothem@...
GLOSSY: The Summer Programmer Of The Month Contest is underway!
On Wednesday 29 June 2005 10:30 am, hicinbothem@ems.att.com wrote:
marcus baker wrote:
Karl, I think you are (incorrectly) assuming that all the pictures have
[#146776] Patch to delegate.rb — christophe.poucet@...
Hello,
[#146791] Agile Development with Ruby on Rails — "Jenjhiz" <jenjhiz@...>
Hello,
On 6/29/05, Jenjhiz <jenjhiz@yahoo.com> wrote:
Joe Van Dyk wrote:
[#146815] shift vs. slice!(0) and others — Eric Mahurin <eric_mahurin@...>
I just did some benchmarking of various ways to insert/delete
Eric Mahurin wrote:
Nikolai Weibull wrote:
[#146820] Tk text widget and tk_textCut — Nigel Wilkinson <nigel@...>
Hi folks
[#146854] Can you use Erb outside of Apache? — "Kyle Heon" <kheon@...>
I hope this doesn't sound like an odd question but as I'm learning Ruby I'm
Nevermind. I figured it out.
[#146885] code coverage tools — Pierre Gambarotto <pierre.gambarotto@...>
I want to know if my unit tests are really testing all of my code.
[#146892] win32ole object creation failure — "Axel" <anieden@...>
Hello, Rubyists!
[#146897] Time.parse unavailable — Karol Hosiawa <hosiawak@...>
Hello,
[#146920] debugger issue — pat eyler <pat.eyler@...>
I'm running into an unexpected issue with the debugger, and I'm hoping someone
[#146929] Escape sequences for unicode chars? — Michael Schuerig <michael@...>
[#146933] Rails day results are in — Carl Woodward <cjwoodward@...>
Hi everyone,
[#146934] stupid TCP — Joe Van Dyk <joevandyk@...>
require 'socket'
[SUMMARY] Chess Variants (II) (#36)
Everyone must have worn themselves out on the crazy hard task last week and had
no juice left for the easier one this week.
Since we're implementing these games in terms of some chess library, it's really
best if you can restate the game in chess terms. Let's take Gun Chess, for
example. Pieces don't move when capturing. That requires me to rewrite my
library's move() method, which is too much work because of all the special
cases. Instead, I can just restate the problem: Whenever a piece captures, it
returns to the square it started on. That is trivial to implement:
# An enhanced chess board for playing Gun Chess.
class GunChess < Chess::Board
# Returns a numerical count of all the pieces on the board.
def count_pieces( )
find_all { |(square, piece)| piece }.size
end
# Make standard chess moves, save that capturing pieces do not move.
def move( from_square, to_square, promote_to = nil )
old_count = count_pieces
super # normal chess move
if count_pieces < old_count # if it was a capture...
move(to_square, from_square) # move the piece back
next_turn # fix the extra turn change
end
self
end
end
The overridden move() method is the key here. It counts the number of pieces on
the board (using the helper method count_pieces()), then executes a normal chess
move. Before returning, the pieces are again counted and if the number is less
we move the piece back to it's starting square because a capture has just taken
place.
Pop quiz: Why did I count the pieces, instead of checking for a piece on the
to_square (which is probably easier)?
En-passant. When capturing en-passant, there is no piece on the to_square, but
we can still spot it because the piece count will drop.
Let's examine another variation. Fairy Chess is just chess with an upgraded
queen. That should be all the hint you need for an easy implementation.
Subclass Chess::Queen and just add the new moves.
My library also requires you to update the king's awareness of check slightly.
While it's good to have the ability to change check when needed, this is
probably a weakness of my original library. It could find check using the moves
of pieces on the board and then we would just need to add the fairy.
Anyway, here's what I came up with:
#
# The container for the behavior of a chess fairy. Fairies are simply
# treated as both a Queen and a Knight.
#
class Fairy < Chess::Queen
#
# Returns all the capturing moves for a Fairy on the provided _board_
# at the provided _square_ of the provided _color_.
#
def self.captures( board, square, color )
captures = Chess::Queen.captures(board, square, color)
captures += Chess::Knight.captures(board, square, color)
captures.sort
end
#
# Returns all the non-capturing moves for a Fairy on the provided
# _board_ at the provided _square_ of the provided _color_.
#
def self.moves( board, square, color )
moves = Chess::Queen.moves(board, square, color)
moves += Chess::Knight.moves(board, square, color)
moves.sort
end
end
# Make the Chess::King aware of the Fairy.
class FairyAwareKing < Chess::King
# Enhance in_check? to spot special Fairy moves.
def self.in_check?( bd, sq, col )
return true if Chess::Knight.captures(bd, sq, col).any? do |name|
bd[name].is_a?(Fairy)
end
Chess::King.in_check?( bd, sq, col )
end
# Make this piece show up as a normal King.
def to_s( )
if @color == :white then "K" else "k" end
end
end
# An enhanced chess board for playing Fairy Chess.
class FairyChess < Chess::Board
# Setup a normal board, then replace the queens with fairies.
def setup( )
super
@squares["d1"] = Fairy.new(self, "d1", :white)
@squares["d8"] = Fairy.new(self, "d8", :black)
@squares["e1"] = FairyAwareKing.new(self, "e1", :white)
@squares["e8"] = FairyAwareKing.new(self, "e8", :black)
end
end
The first class is my fairy. You can see that my library allows me to access
the captures and moves of a queen and a knight. Adding those together gives us
a fairy.
The second class is my updated king. It will know when it is in check by a
fairy. Because Fairy is a subclass of Chess::Queen, the old check will already
spot Chess::Queen threats from a Fairy. All I had to add was the Chess::Knight
threats.
Finally, all the new board class has to do is change the initial setup() to
include the two new pieces.
Blackhole Chess is even easier than the above two variations, because it's
already stated in easy to implement terms. You can check to see if a move will
cross one of the blackholes, and simply remove the moving piece when it will:
# An enhanced chess board for playing Blackhole Chess.
class BlackholeChess < Chess::Board
#
# A general purpose test to see if a _test_ square is between _start_
# and _finish_ squares, on a rank, file or diagonal.
#
def self.between?( start, finish, test )
test_rank, test_file = test[1, 1].to_i, test[0]
start_rank, start_file = start[1, 1].to_i, start[0]
finish_rank, finish_file = finish[1, 1].to_i, finish[0]
( test_rank == start_rank and test_rank == finish_rank and
test_file >= [start_file, finish_file].min and
test_file <= [start_file, finish_file].max ) or
( test_file == start_file and test_file == finish_file and
test_rank >= [start_rank, finish_rank].min and
test_rank <= [start_rank, finish_rank].max ) or
( (start_file - finish_file).abs ==
(start_rank - finish_rank).abs and
(start_file - test_file).abs ==
(start_rank - test_rank).abs and
(test_file - finish_file).abs ==
(test_rank - finish_rank).abs and
test_file >= [start_file, finish_file].min and
test_file <= [start_file, finish_file].max and
test_rank >= [start_rank, finish_rank].min and
test_rank <= [start_rank, finish_rank].max )
end
# End the game if a King goes missing.
def in_checkmate?( who = @turn )
if find { |(s, p)| p and p.color == who and p.is_a? Chess::King }
super
else
true
end
end
# Eliminate any piece moving through the blackholes.
def move( from_square, to_square, promote_to = nil )
if self.class.between?(from_square, to_square, "d5") or
self.class.between?(from_square, to_square, "f5")
@squares[from_square] = nil
next_turn
else
super
end
self
end
# Board display with two added blackholes.
def to_s( )
super.sub( /^(5\s+\|(?:[^|]+\|){3})[^|]+\|([^|]+\|)[^|]+\|/,
"\\1 * |\\2 * |" )
end
end
The between?() method is my helper for checking if a move will cross over a
blackhole. You can glance down to move() to see it used, just as I described
above. I also have to update in_checkmate?() to recognize a missing king as a
losing condition and to_s() to draw the blackholes.
Fibonacci Chess is the easiest of the four I implemented, as long as your
library has something like my next_turn() method to override:
# An enhanced chess board for playing Fibonacci Chess.
class FibonacciBoard < Chess::Board
# Setup chess board and initialize move count sequence.
def initialize( )
super
@fib1 = nil
@fib2 = nil
@count = 1
end
# Advance turn, as players complete moves in the Fibonacci sequence.
def next_turn( )
if @fib1.nil?
@fib1 = 1
elsif @fib2.nil?
@fib2 = 2
next_turn if in_check?(@turn == :white ? :black : :white)
elsif @count.zero? or
in_check?(@turn == :white ? :black : :white)
@fib1, @fib2 = @fib2, @fib1 + @fib2
@count = @fib2 - 1
else
@count -= 1
return
end
super
end
# Return a String description of the moves remaining.
def moves_remaining( )
if @fib1.nil? or @fib2.nil? or @count.zero?
"last move"
else
"#{@count + 1} moves"
end
end
end
As you can see, I just changed the traditional one turn flop to roll after
Fibonacci N moves or the other player is placed in check, whichever comes first.
The moves_remaining() method was a hook for the interface to give you a move
countdown on your turn.
I didn't implement the other three variations, but I would use the same
technique. Just shift their changes to something as close as possible to chess.
For example, with Madhouse Chess, you can use a very similar move() override to
my Gun Chess example. Save a dup() of the board, instead of just the piece
count, because you'll need access to the soon-to-be captured piece. Make a
normal chess move, then check the before and after piece counts. If it dropped,
prompt the player to select a square and move the captured piece from the old
board to the new one at that location.
Baseline Chess is the easiest variation of all, I think. With my library, you
can just override Chess::Board.setup() to prompt for the starting squares.
Disabling castling is also trivial. Just make a nonsense move with the king
after he's placed to the exact same square he was on. This makes the king think
he has moved and so he won't allow castling moves.
Extinction Chess is probably the hardest variation (conceptually speaking--it's
actually very little code). The first step is overriding
Chess::Board.in_checkmate?() to spot the new win condition. Just walk the board
looking for one of everything. Then you need to subclass Chess::King as I did
in Fairy Chess to shut off check. Just replace in_check?() with something that
always returns false. Don't forget to override Chess::Board.setup() to swap the
old king out for the new one.
Okay, that's all for chess variants. Sorry again for the time sink element of
this one. Faster quizzes are coming soon.
Let me remind everyone that Ruby Quiz is taking a break this weekend to
encourage anyone who would like to to compete in the ICFP 05 programming
contest. That contest is a lot of work, but they usually have excellent
challenges and I think it's worth the effort. Ruby has had a small showing in
previous years, so we need all the people showing off our favorite language we
can get! Hope to see some familiar names there.
Ruby Quiz returns a week from tomorrow, when we'll build inference engines...