[#154556] Ruby and WSH How? — "Andres M. Hidalgo" <ahidalgo@...>
Any ideas or links to Ruby and WSH(Windows Scripting Host)?
[#154577] Code Sharing - Units (abandoned child) — Gavin Kistner <gavin@...>
Last night I was sleepily trying to calculate the sustained transfer
[#154582] how to read binary file with char 0x1A — hsun <sunh11373@...>
Hi,
[#154598] implementing the "each" method for own classes — Philipp Huber <huber.philipp@...>
hello!
Philipp Huber wrote:
actually i did test it with a queue filled with a few elements. as you
[#154620] Word Chains (#44) — Ruby Quiz <james@...>
Gavin Kistner asked that I try timing the quiz solutions this week. I did
Ruby Quiz wrote:
On Sep 1, 2005, at 11:43 AM, Simon Krer wrote:
[#154637] Email classes — tsuraan <tsuraan@...>
Has anyone written email parsing classes similar to those found in the
[#154642] palindrome finder — Josh Charles <josh.charles@...>
I've been working on this piece of code and it's starting to drive me
[#154659] Builder Question — Keith Fahlgren <keith@...>
Hey,
[#154704] Ruby compilers (for DSP processors and alike) — Bart Masschelein <bart.masschelein@...>
Hi guys,
[#154721] Hamburg.rb in September — Stephan K舂per <Stephan.Kaemper@...>
Hi all,
[#154731] MUD Client (#45) — Ruby Quiz <james@...>
The three rules of Ruby Quiz:
A very basic quick solution I thew together. This only works on Unix
[#154732] rpc (not xml-rpc) — Vladimir Konrad <bouncer@...>
is rpc possible with ruby?
[#154733] Ruby-specific performance heuristics? — Hugh Sasse <hgs@...>
I've been doing some stuff with CSV recently, having data in one
On Fri, 2 Sep 2005, Hugh Sasse wrote:
[#154773] MouseHole 1.1 -- rose-colored spectacles for the Web — why the lucky stiff <ruby-talk@...>
MouseHole 1.1 is out. If you're unfamiliar with it, that's okay because
[#154775] Idiomatic conversion of yielding block to array — David Brady <ruby_talk@...>
So I have a function that generates like 300 lines of text and I want to
David Brady <ruby_talk@shinybit.com> wrote:
Levin Alexander wrote:
Simon Krer wrote:
On 9/3/05, Simon Krer <SimonKroeger@gmx.de> wrote:
Levin Alexander wrote:
On 9/2/05, Simon Krer <SimonKroeger@gmx.de> wrote:
Good heavens, no! Neither of those are thread safe. Criminy!
Jacob Fugal wrote:
On 9/2/05, Simon Krer <SimonKroeger@gmx.de> wrote:
[#154778] Beginner: Options with YAML — Oliver Cromm <lispamateur@...>
I already use YAML to handle persistance of a queue, e.g. - one big data
[#154825] gmailer-0.0.8 released — "Park Heesob" <phasis@...>
GMailer 0.0.8 Released
[#154833] Lexical Casts with Ruby — kingruedi@... (Rüdiger Sonderfeld)
Hello,
On Sun, Sep 04, 2005 at 12:16:26AM +0900, R??diger Sonderfeld wrote:
--- Paul Brannan <pbrannan@atdesk.com> wrote:
On Thu, Sep 08, 2005 at 02:09:32AM +0900, Eric Mahurin wrote:
[#154843] Newbie Q: Self-Testing Ruby Files (Double Assignment to Constants) — "ded" <ded-google@...>
I like to make class files self-testing and can do so with the
[#154853] How to get REXML to return items in order?? — "ted" <tedPLEASE-NO-SPAM-95050@...>
Hi,
[#154861] Kerberos module for ruby? — snacktime <snacktime@...>
Is there a kerberos module anywhere for ruby? I wasn't able to find anything
[#154868] Idea about Test::Unit — gabriele renzi <surrender_it@...>
Hi gurus and nubys,
I've gotten tired of this verbosity myself and have started playing
"Trans" <transfire@gmail.com> writes:
[#154872] windows shell — Gaston Garcia <gaston.garcia@...>
Is there anyone here that uses Windows XP and uses a windows shell
Gaston Garcia <gaston.garcia@gmail.com> wrote:
On 9/4/05, Robert Klemme <bob.news@gmx.net> wrote:
Austin Ziegler wrote:
On 9/5/05, Charles Plager <cplager+news@physics.ucla.edu> wrote:
Austin Ziegler wrote:
On Sep 4, 2005, at 6:29 PM, Austin Ziegler wrote:
[#154874] params v.s. @params in rails? — "Barry" <rubyrails@...>
Both work in my controller class, so I am wondering what's the
Hi --
Not really. In this particular case, params is simply an accessor
[#154915] Making my Regex less greedy? — "luke" <l.d.u.n.c.a.l.f.e@... (dot)>
[#154920] Help me clean up this method — "Vincent Foley" <vfoley@...>
Hello guys,
On Mon, 5 Sep 2005, Vincent Foley wrote:
On Fri, 23 Sep 2005, Daniel Berger wrote:
Hi,
On Fri, 23 Sep 2005 nobu.nokada@softhome.net wrote:
Hi,
[#154954] Encoding hell — Damphyr <damphyr@...>
OK, I am officially frustrated/lost/bewildered (take your pick) with all
On Mon, 2005-09-05 at 22:34 +0900, Damphyr wrote:
Joshua Haberman <joshua@reverberate.org> writes:
[#154997] Change Binding of a Proc — "Trans" <transfire@...>
Is there any way to change the binding of a proc? I'm defining a proc
Trans schrieb:
[#155018] Rake 0.6.0 Released — Jim Weirich <jim@...>
= Rake 0.6.0 Released
Jim Weirich wrote:
On Tuesday 06 September 2005 12:00 am, Joel VanderWerf wrote:
Jim Weirich wrote:
On Tuesday 06 September 2005 01:21 am, Joel VanderWerf wrote:
Jim Weirich wrote:
On Tuesday 06 September 2005 11:39 pm, Joel VanderWerf wrote:
On Tue, 6 Sep 2005 09:44:43 +0900, Jim Weirich <jim@weirichhouse.org>
[#155020] Efficient Object Reconstruction? — Austin Ziegler <halostatue@...>
I have a problem, and it's been bugging me for a while, so I thought
Austin Ziegler wrote:
[#155032] ZIP: Writing binary file fails — Dmytro Bablinyuk <dmytro.bablinyuk@...>
Hi,
[#155043] Poetry Jam 05: A Ruby Octet — Devin Mullins <twifkak@...>
A sleepless night reading way too many blogposts (and a bit high off my
Cute... but do they run?
Trans wrote:
On 9/6/05, Trans <transfire@gmail.com> wrote:
[#155045] Newbie Mixed Bag — doconnel@... (doc)
Excuse this mixed bag but to me they all come under the heading "help me
On 9/6/05, doc <doconnel@gmail.com> wrote:
[#155064] Sorted arrays — <ruby@...64.com>
I'm a relative newcomer to Ruby. Most of my experience is in Delphi. And in Delphi one of the most commonly-used classes is TStringList, which is sort of analogous to ruby's Array (Delphi also has dynamic arrays and static arrays). TStringList has a property called Sorted, which if set to True makes it possible to insert strings into the list and have it maintain them as a sorted list (without having to re-sort it each time). Then you can use the IndexOf method (or the Find method) to do a binary search on the list, so you can quickly find the element you're looking for. My question is whether Ruby has anything like this. It seems like one could create a descendant of Array that does this.
ruby@danb64.com wrote:
On Wed, 7 Sep 2005, ruby@danb64.com wrote:
On Wed, 7 Sep 2005, Hugh Sasse wrote:
[#155077] Ruby Debugging Article at IBM Developerworks — pat eyler <pat.eyler@...>
http://www-128.ibm.com/developerworks/edu/os-dw-os-distruby-i.html
[#155079] ruby style blocks in java — Martin Ankerl <martin.ankerl@...>
Is there a nice way to implement Ruby-style blocks in Java? I have to
[#155085] Install failure on Mac OS X v10.4.2 — Dan Hinz <dhinz@...>
Upgraded to Mac OS X v10.4.2 and Xtools v2.0 over the weekend.
[#155117] Simple RSS for Ruby — "Lucas Carlson" <lucas@...>
I have just released a new library for Ruby:
[#155120] Units for Ruby — "Lucas Carlson" <lucas@...>
I have also created a new library to add units to numbers in Ruby:
On 9/6/05, Lucas Carlson <lucas@rufy.com> wrote:
[#155127] Rio 0.3.4 — "rio4ruby" <rio4ruby@...>
New and Improved -- Rio 0.3.4
Lloyd Zusman wrote:
rio4ruby wrote:
Do people seriously like all these examples in the announcement? I really think this kind of information belongs on a web page showing you how to use it.
[#155146] Class constant methods — Bret Pettichord <bret@...>
In several cases, i find myself wanting to create constants for a set of
[#155147] Harp? — "curtis" <curtis.edmond@...>
Just wanted to ask a real quick basic noob question, in some posts I
[#155156] memoize — horndude77@...
Is there any good memoize library out there? A quick look for one
[#155180] Embedding Ruby into C — Dennis Schridde <devurandom@...>
Hi!
[#155181] Need help finding decent IDE/development environment for Windows — "Paul Dix" <paulcdix@...>
I've just started playing around with ruby on rails and by association,
On 9/7/05, Paul Dix <paulcdix@gmail.com> wrote:
Paul Dix wrote:
On 9/7/05, graham <fghfghfh@homr.vom> wrote:
> You could ask them why they need all that IDE stuff for developing in Ruby.
On Thu, Sep 08, 2005 at 02:36:29AM +0900, graham wrote:
Edward Faulkner wrote:
On Sep 7, 2005, at 6:56 PM, graham wrote:
I have to say, I agree that part of what makes Ruby special is that itdoesn't need an IDE to be efficient (*cough* *cough*, Java!). Ipersonally use JEdit for my Ruby work (well, learning it at least),and while I'd love something with more autocomplete abilities andbetter syntax checking, that's it. Btw, that's neat about NOAA usingRuby!
graham wrote on 9/7/2005 7:56 PM:
[#155214] unsubscribe — smg <smgilbert@...>
unsubscribe
[#155236] Ruby Conference Hotel — Matt Lawrence <matt@...>
ACK! The hotel is sold out. Any suggestions?
[#155239] FileTest.directory?( x ) weird behavior — Josh Charles <josh.charles@...>
I have a bit of code I'm working on where I need to seperate the
[#155240] acgi-0.0.0 — "Ara.T.Howard" <Ara.T.Howard@...>
[#155245] RubyGems Statistics — James Edward Gray II <james@...>
I'm giving a Ruby introduction speech at the local university this
[#155271] soap4r and ASP.NET problems — Pete Elmore <pete@...>
Hello,
I had some problems with soap4r and asp.net too. Try the latest
[#155272] sharing memory in ruby — "Ara.T.Howard" <Ara.T.Howard@...>
[#155274] myriad/event comment (was RE: [ANN] Rio 0.3.4) — Pe, Botp <botp@...>
Zed A. Shaw [mailto:zedshaw@zedshaw.com] wrote:
[#155291] Re: Need help finding decent IDE/development environment for Windows — Pe, Botp <botp@...>
jussij@zeusedit.com [mailto:jussij@zeusedit.com] wrote:
[#155303] The Laziest Variable in the Whooole World — Daniel Nugent <nugend@...>
Hello fellow Rubyists,
[#155308] Problem with popen on windows — "Kroeger Simon (ext)" <simon.kroeger.ext@...>
Hi all,
Kroeger Simon (ext) wrote:
I second this and have battled it numerous times. Finally, I've just given
I just found a fix that works for me.. I hope this helps someone else out...
[#155314] KirbyBase 2.3 beta 1 — Jamey Cribbs <cribbsj@...>
I would like to announce the first beta of version 2.3 of KirbyBase, a
[#155318] Banging head against the wall.. — "Graham" <gandalfmeister@...>
Quick question: I just need another set of eyes on this as I cannot see
[#155327] general performance question — Brian Le Roy <brian@...>
I'm running top and when I run my app - I see the user CPU utilitization
Brian Le Roy wrote:
Brian Le Roy wrote:
I am doing some database queries using the MySQL-Ruby library, not DBI.
[#155364] KirbyBase — rubyhacker@...
I'm posting from work, but will try to follow up in more
Jamey Cribbs wrote:
rubyhacker@gmail.com wrote:
On Monday 12 September 2005 04:11 pm, Jamey Cribbs wrote:
Randy Kramer wrote:
On Monday 12 September 2005 17:06, rubyhacker@gmail.com wrote:
Kevin Brown wrote:
rubyhacker@gmail.com wrote:
Logan Capaldo wrote:
On 9/14/05, Jamey Cribbs <cribbsj@oakwood.org> wrote:
On 9/14/05, Logan Capaldo <logancapaldo@gmail.com> wrote:
It sounds interesting to me. Ask Jamey.
> <Jamey dons Database Guy hat>
[#155365] File.mtime <=> DateTime.strptime() — Hugh Sasse <hgs@...>
I'm trying to compare how new a file is with the header obtained
On Fri, 9 Sep 2005, Hugh Sasse wrote:
[#155369] compiling ruby on red hat linux — "Philip J. Mikal" <philip_mikal@...>
Hi,
On Fri, 9 Sep 2005, Philip J. Mikal wrote:
Thanks for the suggestion, but same results as before:
[#155372] RGSS — Dirk Meijer <hawkman.gelooft@...>
hello everyone,
[#155386] Rails and Code Tables — "rmmcgr" <richard.mcgrath@...>
Hi,
[#155400] Why? Blocks — Julian Leviston <julian@...>
Why can I not do this:
[#155408] implode function? — Julian Leviston <julian@...>
Is there are similar thing to the PHP version of implode in ruby?
[#155411] Optimizing a single slow method — "Glenn M. Lewis" <noSpam@...>
Hi!
On 08 Sep 2005, at 20:46, Glenn M. Lewis wrote:
On Sat, 10 Sep 2005, Eric Hodel wrote:
Thanks a bunch, Hugh and Eric! The combination of your
On Sat, 10 Sep 2005, Glenn M. Lewis wrote:
Great news!
On Sat, 10 Sep 2005, Glenn M. Lewis wrote:
On 9/12/05, Hugh Sasse <hgs@dmu.ac.uk> wrote:
Glenn M. Lewis <noSpam@noSpam.com> wrote:
[#155418] 'which' command for Ruby (like csh which?) — Dan Bikle <dan.bikle@...>
Hi,
[#155441] NDiff (#46) — Ruby Quiz <james@...>
The three rules of Ruby Quiz:
Hi
It would seem useful to be produce a file of numerical differences
[#155464] quick print type debugging — Eric Mahurin <eric_mahurin@...>
Anybody think something like this would be useful?
require 'dev-utils/debug' # http://dev-utils.rubyforge.org
Eric Mahurin wrote:
[#155480] method_added for class methods — Caio Chassot <k@...2studio.com>
Hi all,
class X
[#155487] Dynamic method execution problem — "joe.yakich@..." <joe.yakich@...>
All,
[#155507] Using Ruby as a preprocessor for another language — debbie@...
I have the misfortune of being stuck programming in a very bad
[#155512] Kudos! — Austin Ziegler <halostatue@...>
I want to offer my heartfelt thanks and kudos to the developers of two
[#155530] Win32 gem for RMagick 1.9.1 — Timothy Hunter <cyclists@...>
Hot on the heels of the latest RMagick update, Kaspar Schiess has
Hello Nick,
On 9/13/05, Kaspar Schiess <eule@space.ch> wrote:
On 9/13/05, Nicholas Van Weerdenburg <vanweerd@gmail.com> wrote:
[#155537] RCR to modify #puts and #print inside ERB — Gavin Kistner <gavin@...>
Proposed RCR:
Hi --
In article <49958C10-DAD0-4E7C-B9AB-44C6D314A637@refinery.com>,
Hi --
On 9/10/05, David A. Black <dblack@wobblini.net> wrote:
[#155552] Mmap crash when appending — Guillaume Marcais <guslist@...>
[gus@hibernatus Bifurcation]$ cat mmap-abort.rb
[#155564] I cannot figure out how to set my signature on thunderbird... — Xeno Campanoli <xeno@...>
I actually had it working with thunderbird on SuSE, but the "signature"
[#155567] Better Random benchmark - need help with profiling — "Martin Jansson" <martialis@...>
[#155591] confused by nested functions — Navindra Umanee <navindra@...>
Hi,
Navindra Umanee wrote:
Hi --
Yo --
[#155594] Getting "Require" to work, using the Poignant Guide to Ruby — "Ian FalsePositives" <Ian.Irving@...>
In a (doomed?) attempt to actual understand ruby (with my almost 20
Many Thanks for the replys. Problem resolved! by
[#155601] r4 - the simplest ruby pre-processor — "Ara.T.Howard" <Ara.T.Howard@...>
"Ara.T.Howard" <Ara.T.Howard@noaa.gov> writes:
Hi,
Bob Hutchison wrote:
[#155621] newbie mysteries — "Tom Cloyd" <tomcloyd@...>
Good morning!
On 9/11/05, Tom Cloyd <tomcloyd@bestmindhealth.com> wrote:
i've actually got the same problem,
As Nicholas said, this does sound like a path problem. Typing "path" at a
[#155626] When an Array is not — Michael Schuerig <michael@...>
[#155632] gem & require -> returns false? — "itsme213" <itsme213@...>
When requiring a gem with
In article <IJXUe.3397$S26.923@tornado.texas.rr.com>,
[#155638] The Early Demise of Myriad (Thanks To Ruby Threads) — "Zed A. Shaw" <zedshaw@...>
Hi Everyone,
"Zed A. Shaw" <zedshaw@zedshaw.com> writes:
On Mon, 12 Sep 2005, Christian Neukirchen wrote:
Zed A. Shaw wrote:
[#155659] Array#[]= — Daniel Schierbeck <daniel.schierbeck@...>
I'm writing a class representing a coordinate system, and I want to be
[#155674] IO like object — Simon Krer <SimonKroeger@...>
Hi List,
[#155705] new RCRs — Eric Mahurin <eric_mahurin@...>
I just wrote up several RCR's that I've been thinking about for
[#155708] how to well-qualify the 2-inherited methods at their collision point — "SHIGETOMI, Takuhiko" <tshiget1@...>
dear guys,
[#155735] website screen scraping with Mechanize or Rubyful Soup — "Dan Kohn" <dan@...>
I'm trying to get some website screen scraping working, but I'm
Dan Kohn wrote:
My ultimate goal is to create a series of screen scrapers that are able
[#155782] NDiff (#46) — Jim Freeze <jim@...>
Uhm, where are the solutions?
[#155796] Install Ruby under Windows — "Odud" <pete.barlow@...>
Sorry if I'm missing something here but I can't get the links to the
On Monday 12 September 2005 21:36, Odud wrote:
Sorry, Stefan I get the same error - I'm using Firefox but tried with
[#155823] BEGIN and END vs. blocks — "leonardo.pires@..." <leonardo.pires@...>
I know that { ... } and do ... end have differente precedente. But,
[#155828] Adventures in html decoding. — Morgan <taria@...>
From the "If you want it done right, do it yourself... maybe"
On 9/12/05, Morgan <taria@the-arc.net> wrote:
"William James" wrote:
On 9/12/05, Morgan <taria@the-arc.net> wrote:
[#155847] Choosing an open source license — "debbie@..." <debbie@...>
I'm working on a server program and I'm trying to decide which open
On 12 Sep 2005, at 18:41, debbie@theanimaro.com wrote:
On Monday 12 September 2005 19:50, Eric Hodel wrote:
See http://www.gnu.org/licenses/gpl-faq.html#UnreleasedMods
Patrick Chanezon wrote:
On 9/13/05, Christophe Grandsire <christophe.grandsire@free.fr> wrote:
[#155863] Quick question. — Kevin Brown <blargity@...>
Alright, I feel like an absolute idiot, but the question is simple, and 30
Kevin Brown <blargity@gmail.com> wrote:
[#155866] Re: Quick question. — "Daniel Sheppard" <daniels@...>
Something like:
[#155872] Some suggestions — "christophe.poucet@..." <christophe.poucet@...>
Dear,
[#155908] hash and "==" — Brian Buckley <briankbuckley@...>
Hello all,
[#155922] find executables on windows — "Ara.T.Howard" <Ara.T.Howard@...>
[#155941] yet another simple command-line option parser — Eric Mahurin <eric_mahurin@...>
I just put in a good example for:
That's pretty interesting Eric, to grab the type off the default.
Thanks for the input Jim. Comments below. I'm also putting
On 9/13/05, Eric Mahurin <eric_mahurin@yahoo.com> wrote:
--- Jim Freeze <jim@freeze.org> wrote:
[#155948] Help finding a leak — awertyui@...
I'm having trouble finding out why my program leaks like the titanic.
[#155949] Sets, uniqueness not unique. — Hugh Sasse <hgs@...>
I have been splitting a comma separated values file, and putting
On Wed, 14 Sep 2005, Hugh Sasse wrote:
Hi --
On Wed, 14 Sep 2005, David A. Black wrote:
[#155969] dual pipes? — "Trans" <transfire@...>
Is there a way to fork a seperate ruby process (i.e. a clean
[#155970] Surprising Regexp Behavior — James Edward Gray II <james@...>
I keep running into some surprising points with Ruby's Regexp engine
[#155988] Re: Surprising Regexp Behavior — "Berger, Daniel" <Daniel.Berger@...>
[#155992] Launch directory in Rake — Jim Freeze <jim@...>
Hi
On Tuesday 13 September 2005 03:48 pm, Jim Freeze wrote:
Thanks Jim
On 9/14/05, Jim Freeze <jim@freeze.org> wrote:
Jim Weirich wrote:
[#156015] Where did ruby go? — Josh Charles <josh.charles@...>
I just did a clean install of Suse 9.3 and was pleased to see that it
[#156026] tcl/tk translate — Ed Redman <redman@...>
I am still fairly new to ruby/tk
[#156030] cgi/session.rb — "Ara.T.Howard" <Ara.T.Howard@...>
Hi,
On Wed, 14 Sep 2005, Yukihiro Matsumoto wrote:
Hi,
On Wed, 14 Sep 2005, Yukihiro Matsumoto wrote:
[#156031] strings and regex's — "jdm" <xyz@...>
I'm parsing some html and have a table-driven state machine that configures
[#156053] ruby and aop — Alexandru Popescu <the.mindstorm.mailinglist@...>
Hi!
Alexandru Popescu <the.mindstorm.mailinglist@gmail.com> writes:
[#156059] Re: Win Pipes and IO — "Kroeger Simon (ext)" <simon.kroeger.ext@...>
[#156065] TkDialog question — Stephen Kellett <snail@...>
Hi Folks.
[#156068] REXML screen scraping questions — "Dan Kohn" <dan@...>
My goal here is to take an HTML table and convert it into an array of
[#156070] extend question — Sebastian Pad<pado@...>
Hello everybody,
[#156093] Quick and dirty word wrapping. — Erik Terpstra <erik@...>
In case anyone needs it,
On Sep 14, 2005, at 9:26 AM, Erik Terpstra wrote:
[#156111] Ternary operator request — Robert Mannl <mannl@...>
Hi!
[#156155] Re: Quick and dirty word wrapping. — David Tran <email55555@...>
> "Kroeger Simon (ext)" <simon.kroeger.ext siemens.com> wrote:
On Sep 14, 2005, at 4:04 PM, David Tran wrote:
[#156157] RMagick + ImageMagick issues on OSX — Joe Van Dyk <joevandyk@...>
Hi,
[#156172] ruby-dev suumary 26862-26956 — Masayoshi Takahashi <maki@...>
Hi all,
[#156174] Referencing Methods Dynamically? — x1 <caldridge@...>
Very Basic Example: (notice the <! part !>)
[#156189] Get to the Point: Ruby and Rails Presentation Slides — "John W. Long" <ng@...>
Hi,
John W. Long wrote:
Bil Kleb wrote:
[#156191] defining a method relative to a module's nesting — "Trans" <transfire@...>
[#156197] Vim/Ruby Configuration Files, 2005.09.15 — Doug Kearns <dougkearns@...>
G'day folks,
[#156201] typo in jamis.rb? — Joel VanderWerf <vjoel@...>
[#156202] Bug in Ruby 1.8.2 'mkmf.rb' ? — "Glenn M. Lewis" <noSpam@...>
Hi all!
[#156203] World's 1st Hamster-Powered Mud Server! (in Ruby) — "Jon A. Lambert" <jlsysinc@...>
[ANN] World's 1st Hamster-Powered Mud Server! (in Ruby)
[#156209] acgi-0.1.0 — "Ara.T.Howard" <Ara.T.Howard@...>
[#156216] Zero to Rails — Ryan Davis <ryand-ruby@...>
From absolutely nothing to a running rails app in under two minutes.
[#156230] you can't get in trouble with your boss for picking C# — "Phlip" <phlipcpp@...>
Rubies:
Hey all,
Hello ToRA,
ToRA wrote:
Florian Growrote:
Remember when Java was the new guy in town (ca. 1995)? "It's too slow, too
C# is The Devil, capital "T" capital "D," plain and simple. There is
John wrote:
klancaster1957 wrote:
On 9/15/05, Phlip <phlipcpp@yahoo.com> wrote:
On 9/15/05, Josh Charles <josh.charles@gmail.com> wrote:
On 9/15/05, Joe Van Dyk <joevandyk@gmail.com> wrote:
Hello Josh,
> JC> Very interesting. But you'll still need C ;) I'm interested to know
[#156248] Math: sum and faculty — Daniel Schierbeck <daniel.schierbeck@...>
I hereby propose two additions to Ruby. Please come with some comments
Daniel Schierbeck wrote:
HaPK wrote:
[#156298] A big project — mike.novecento@...
Hi everybody,
[#156299] MS Access — "Steve" <sdouglas949@...>
I'm considering learning Ruby. I have no programming experience yet. I was
Steve wrote:
On 9/15/05, Phlip <phlipcpp@yahoo.com> wrote:
Sean Armstrong wrote:
Does anyone know how to install the Ruby MySQL module on a Windows platform.
Sean,I needed to compile/install mysql (running ./configure--without-server) from source to get the required developmentlibraries under Cygwin. (then I moved the newly-created clientbinaries out of the way so I could use the Win32-native mysqlbinaries.) After that, it worked like a charm. *Do not compile theCygwin-ized mysql client with "--with-openssl"* I don't know why, butthe gem refused to install if I did. Good luck, and let me know if yourun into any issues. Overall, developing on Cygwin for Ruby/Rails isquite nice.
Let me make sure I got this right:
It still refuses to find the lib and include directories even if I use the
Sean,I'm going to try to explain *exactly* what I did, and hopefully you'llsee something you forgot to do.1. Download mysql-essential-4.1.14-win32.msi from mysql.org and install it.2. Download mysql-4.1.13.tar.gz from mysql.org3. Extract the above, and run "./configure -C --without-server" (the-C enables config caching, I use it because the ./configure scriptruns very slowly under Cygwin. Optional, of course)4. Run "make && make install"5. Run "gem install mysql"6. Go make cool rails apps!
Well you have got me the closest so far. I had to go back and manually
[#156317] Re: [rrt_ruby]Ruby and RoseRT — "Berger, Daniel" <Daniel.Berger@...>
> -----Original Message-----
Berger, Daniel wrote:
Hi,
[#156323] Error using soap/wsdlDriver — "matt.hulse@..." <matt.hulse@...>
I am attempting to use ruby to connect to a webservice. I am able to
[#156378] bug in require? — "Ara.T.Howard" <Ara.T.Howard@...>
[ahoward@localhost ~]$ cat a.rb
On Fri, Sep 16, 2005 at 07:14:21PM +0900, Han Holl wrote:
Yes, that's answering where it happens.
Hi,
[#156420] Ruby Jobs Site (#47) — Ruby Quiz <james@...>
The three rules of Ruby Quiz:
[#156440] Re: Job site — toy <toy@...>
Wow, that really is weird.
[#156444] Hash table questions — EdUarDo <eduardo.yanezNOSPAM@...>
Hi all,
On Sep 16, 2005, at 10:11 AM, EdUarDo wrote:
>> @position.post = :DC
On Sep 16, 2005, at 10:26 AM, EdUarDo wrote:
>> is this correct? Do I need to do .to_s to retrieve data from hash?
> Key is a symbol, but it doesn't work if I not call to_s
[#156458] MissingSourceFile in <controller not set>#<action not set> - No such file to load -- /config/routes.rb — Seth Rasmussen <seths.mailing.lists@...>
I encountered this error last nite in the early stages of a new Rails
Bueller?
[#156460] MySQL, Ruby, DBI connetc problem...help please — Sean Armstrong <phinsxiii@...>
I currently have the MySQL binary for Windows installed. I have ruby under
[#156480] Some interesting criticisms of rails — David Balick <davidbalick@...>
may be found in the podcast
> In a nutshell, they say that Rails starts to get less appropriate for apps
Bob Hutchison wrote:
Zed A. Shaw <zedshaw@zedshaw.com> wrote:
On Saturday 17 September 2005 05:51 am, Robert Klemme wrote:
On Sat, September 17, 2005 4:15 pm, Randy Kramer said:
Well, I first heard of the dining philosophers in the Java tutorial
[#156486] sending EOF portably — "Ara.T.Howard" <Ara.T.Howard@...>
[#156493] IO#clearerr — "Ara.T.Howard" <Ara.T.Howard@...>
In article <Pine.LNX.4.62.0509161558490.31195@harp.ngdc.noaa.gov>,
[#156500] More MySQL-Ruby Frustrations! — Sean Armstrong <phinsxiii@...>
Ok, now I tried to install the stupid mysql module on Mac OS X. Same
On Sep 16, 2005, at 5:58 PM, Sean Armstrong wrote:
Well, that got me a make file. However, make ccrapped out with the
[#156533] Re: gsub(/Ads by Goooooogle/, "PayPal DONATE").suggest? — "Mike Novecento" <mike.novecento@...>
In a way I agree with you x1. I got the same feeling, but on the other
[#156548] installing rubygems under Linux — Mark Volkmann <r.mark.volkmann@...>
I've recently started using Ruby under Linux as opposed to Windows. I
[#156562] $SAFE >= 2 — Mark Volkmann <r.mark.volkmann@...>
When $SAFE is >= 2 then code can't be loaded from "globally writable locations".
[#156576] Rinda documentation — Mark Volkmann <r.mark.volkmann@...>
Documentation on Rinda seems hard to come by, at least in English.
[#156581] StringScanner question — "Jon A. Lambert" <jlsysinc@...>
Dear Ruby,
Jon A. Lambert wrote:
[#156585] RType-0.2 — oxy@... (Yuichi Yoshida)
Hi. I've released RType 0.2 today.
On 9/17/05, Yuichi Yoshida <oxy@kmc.gr.jp> wrote:
> Excellent! It seems to work for me. This is very interesting.
[#156617] Handling multiple processes on Windows — "Gregory Brown" <gregory.t.brown@...>
I started up a ruby group at my university and this weeks 'challenge'
[#156624] Language recommendations from ruby persons.... — "Greg Lorriman" <bogus@...>
Dear sirs and madames,
On 9/18/05, Greg Lorriman <bogus@bogus.com> wrote:
On Sep 18, 2005, at 11:32 PM, Kev Jackson wrote:
[#156653] Re: Language recommendations from ruby persons.... — "Neville Burnell" <Neville.Burnell@...>
I've been watching 'Factor' for sometime, but I havent used it yet ...
Neville Burnell wrote:
On 9/23/05, Florian Gro<florgro@gmail.com> wrote:
[#156661] FuseFS-0.1 — Greg Millam <ruby-talk@...>
Howdy -
[#156662] Capcha in ruby — Federico <pix@...>
Hello,
On 9/19/05, Federico <pix@yahoo.it> wrote:
But they stop the average spambot, which is what they're for I think.
I have seen the case where a subscriber is asked to solve a simple
Austin Ziegler <halostatue@gmail.com> writes:
[#156677] Yet another blog... — Hal Fulton <hal9000@...>
Hi, all.
[#156680] Metaprogramming problem — Clifford Heath <no@...>
I'm trying to define s.t. like attr_accessor, but one that takes
[#156704] Considering learning Ruby on Rails — "dspohn" <dspohn@...>
I have spent most of my career using PHP, Perl, C# and VB .NET for web
I could tell you how great I think Ruby and Rails both are, and the
[#156708] help with tricky proc/binding issue — "Ara.T.Howard" <Ara.T.Howard@...>
Hi,
[#156743] The Ruby troll [was: Looking for...] — Gunnar Hjalmarsson <noreply@...>
David H. Adler wrote:
["Followup-To:" header set to comp.lang.perl.misc.]
Tim Hammerquist wrote:
Aside from your the preposterous nature of your proposition (that clr
Ara.T.Howard wrote:
[#156749] ruby idiom for python's for/else while/else — Gergely Kontra <kgergely@...>
Hi!
Excerpts from Gergely Kontra's mail of 19 Sep 2005 (CDT):
[#156778] Re: MockFS 0.1.2 — "Daniel Sheppard" <daniels@...>
Except for the fact that you can pretend you're talking to the entirety
On 20/09/05, Daniel Sheppard <daniels@pronto.com.au> wrote:
[#156796] Dissident 0.1, a Ruby dependency injection container — Christian Neukirchen <chneukirchen@...>
Hello,
On Tue, September 20, 2005 8:22 am, Christian Neukirchen said:
"Jason Voegele" <jason@jvoegele.com> writes:
This is a little OT, but every-time dependency injection comes up I
Logan Capaldo wrote:
Piergiuliano Bossi wrote:
Piergiuliano Bossi <p_bossi_AGAINST_SPAM@tiscali.it> writes:
[#156821] Interesting class — "christophe.poucet@..." <christophe.poucet@...>
Dear,
[#156825] ruby && XSL-FO ? — Benedikt Heinen <ruby@...>
[#156828] Reading the ruby source — Robbie Carlton <robbie.carlton@...>
Hi.
[#156831] windows help/pipes/thread — "Ara.T.Howard" <Ara.T.Howard@...>
A possible suggestion:
On Wed, 21 Sep 2005, christophe.poucet@gmail.com wrote:
[#156844] Archno Ruby — Josh Charles <josh.charles@...>
I've been using this editor, and so far it's pretty nice, if a bit
#: Josh Charles changed the world a bit at a time by saying on 9/20/2005 10:00 PM :#
Ok, was that documented somewhere, but I looked all over the place to
#: Josh Charles changed the world a bit at a time by saying on 9/20/2005 10:56 PM :#
On 9/20/05, Alexandru Popescu <the.mindstorm.mailinglist@gmail.com> wrote:
[#156866] Places for a programmer to live? — Devin Mullins <twifkak@...>
While we seem to be rife with OT threads, I thought I'd throw in an OT
Wooaahh now. You want to stay away from Seattle. Really. Complete
Devin Mullins wrote:
Robbie Carlton wrote:
[#156867] b = i if i = a doesn't work? — "Trans" <transfire@...>
Recently I was suprised by the behavior of "start = lambda { start }".
[#156886] signals handlers and threads — "Ara.T.Howard" <Ara.T.Howard@...>
[#156903] Ruby 1.8.3 Issues — James Edward Gray II <james@...>
I just recompiled Ruby and I'm seeing a lot of issues already.
[#156912] Re: Welcome to our (ruby-talk ML) You are added automatically — Stewart Chen <stewartchen@...>
hello ruby programmers !
[#156920] Problem with constants — "Kroeger Simon (ext)" <simon.kroeger.ext@...>
[#156923] modifying hash — Bil Kleb <Bil.Kleb@...>
I've got a mental block on refactoring the following,
[#156933] Hello, I am a newbie to ruby. — could ildg <could.net@...>
I want learn a script language.
On Sep 21, 2005, at 6:23 AM, could ildg wrote:
[#156946] Continuation - where does it continue — michelemendel@...
Why does the following code print the line "doing other stuff" twice?
[#156973] Set#== ain't.. — Gary Shea <shea@...>
While writing an acceptance test, I needed to compare two sets of sets
[#156982] What to do with the snippets of code you always use? — Damphyr <damphyr@...>
I have a question on maintaining code.
On Thu, 22 Sep 2005, Damphyr wrote:
[#157000] Usage 0.0.2 - Yet another command line option processor — stevetuckner <stevetuckner@...>
What is Usage?
[#157005] Large Ruby Apps ? — "Warren Seltzer" <warrens@...>
I am coming to Ruby having used the usual list of scripting and C* languages. Since Ruby
Very useful discussion that highlights quite few misconceptions.
I agree that some sort of static analysis would allow Ruby codes to more
On 9/30/05, Leonardo Eloy <leonardo.eloy@gmail.com> wrote:
On 10/2/05, Eivind Eklund <eeklund@gmail.com> wrote:
Hello Matt,
On 9/21/05, Warren Seltzer <warrens@actcom.net.il> wrote:
[#157007] Re: Large Ruby Apps ? — "Berger, Daniel" <Daniel.Berger@...>
> -----Original Message-----
Ara.T.Howard wrote:
[#157044] Widget toolkits - layout methodolgy — Logan Capaldo <logancapaldo@...>
Hello all, I got a few questions and ideas I want to throw out there.
On Wednesday 21 September 2005 20:18, Logan Capaldo wrote:
[#157051] hi, i'm new. plus one question — travis laduke <wrong@...>
I've been forced to work on some php lately and found myself
[#157054] Rich User-interface.. — "Erland" <Erland.Erikson@...>
Hi All,
[#157061] Re: [ANN] FuseFS-0.3 — Brian Palmer <ruby@...>
I've been discussing with Greg ways to make FuseFS cross-platform
[#157063] Visual IDEs?? — "Erland" <Erland.Erikson@...>
HI,
[#157080] A question about Intelligent Systems and using Ruby — Daniel Lewis <danieljohnlewis@...>
Yesterday (21/09/2005) I sent an email to Dave Thomas (author of
I'm interested in this as well, but for a different reason. I'm
On Thu, 22 Sep 2005, Daniel Lewis wrote:
[#157101] Instantiating a subclass of NilClass. — "Trans" <transfire@...>
I've subclasses NilClass, but don't know how to instantiate it. Any
Trans <transfire@gmail.com> wrote:
Hi,
[#157128] Net::Netrc request for comments — Bob Showalter <Bob_Showalter@...>
Hi,
[#157140] gui's for ruby? — Dirk Meijer <hawkman.gelooft@...>
hello all,
[#157171] Outputting custom YAML types in 1.8.3 — Aaron Schrab <aaron@...>
I just upgraded my main development box (Debian unstable) to the new
[#157182] Inspect, looking in from the outside — "Trans" <transfire@...>
Hi--
[#157189] "The class that it is mixed in to..." — John Carter <john.carter@...>
Ok, so I'm documenting a Mixin.
Excerpts from John Carter's mail of 22 Sep 2005 (CDT):
Hi --
On Friday 23 September 2005 08:58 am, David A. Black wrote:
Excerpts from Randy Kramer's mail of 23 Sep 2005 (CDT):
[#157203] class methods — Mark Volkmann <r.mark.volkmann@...>
I thought this would be easy, so it's embarassing to ask.
Class is an Object too, so
[#157222] RDE 1.0.0 released — sakazuki <qzs01353@...>
Hi.
Very nice!
[#157224] Trapping TaskManager's kill process on win32 — "gga" <ggarra@...>
Is there a way to trap the killing of a ruby windows process killed
[#157226] memory measurements — Eric Mahurin <eric_mahurin@...>
In ruby, is there a portable way to measure memory usage? Any
In message <20050923031500.82696.qmail@web36108.mail.mud.yahoo.com>,
[#157263] Re: [ANN] RDE 1.0.0 released — "Kroeger Simon (ext)" <simon.kroeger.ext@...>
[#157268] Math Captcha (#48) — Ruby Quiz <james@...>
The three rules of Ruby Quiz:
[#157294] Why is this not a syntax error? — Jamey Cribbs <cribbsj@...>
Switching back and forth between Python and Ruby bit me in the butt
[#157299] On accidental unsubscribe messages — "Berger, Daniel" <Daniel.Berger@...>
Hi all,
Berger, Daniel wrote:
Patrick Fernie <patrick.fernie@gmail.com> wrote:
It's an old university account that I'm no longer allowed to send mail
As long as you have access to something the likes of sendmail (plenty of
[#157320] net/ftp works manually, fails via cron — Daniel Berger <Daniel.Berger@...>
Hi all,
[#157348] Tracer question — Bart Masschelein <bart.masschelein@...>
Hello all,
[#157360] Re: Large scale sites? Anyone? Anyone? — snacktime <snacktime@...>
On 9/23/05, SEan Wolfe <nospam@nowhere.com> wrote:
[#157365] Creating directories — Joe Van Dyk <joevandyk@...>
There seem to have been a bunch of filesystem-related releases
On Sat, 24 Sep 2005, Joe Van Dyk wrote:
[#157400] "once" methods — Steven Arnold <stevena@...>
Hi,
[#157401] OpenClass — raymond medeiros <zenlinux@...>
it seemed like a good idea at the time but honestly, hindsight being 20/20 i
[#157420] self.puts? — Derek Chesterfield <dez@...>
I am trying to convince myself that Ruby is fully OO [I'm not
[#157442] cannot convert Float into String — "Nick" <glenn.brutyn@...>
i am making a pdf file, retrieving an product for the db and print the price
[#157443] image in pdf — "Nick" <glenn.brutyn@...>
i do this and he cant find it
[#157458] Concerning Marshalling — "christophe.poucet@..." <christophe.poucet@...>
Hello,
[#157463] Re: swiggery — Steven Jenkins <steven.jenkins@...>
Martin DeMello wrote:
[#157467] MD5 function — sandhya mittal <sandhya1205@...>
Can anyone tell how to implement MD5 function(NOT algorithm) in Ruby.I just want to hex MD5 a string.It would be of great help.
[#157470] Mixin of class methods? — Michael Roth <mroth@...>
Hello all,
[#157474] Python doesn't have one of these — Steven Jenkins <steven.jenkins@...>
http://geonames.usgs.gov/pls/gnis/MapServer?f_name=Ruby%20Canyon%20Debris%20Basin&f_state=CA&f_latlong=340952N1175952W&server=TIGER
I hate to be the bearer of bad news, but...
[#157513] something like PHP imports or ASP WUC — "Nick" <glenn.brutyn@...>
i am used to work with php, and mostly i create an menu on one page and the
[#157514] allow Open3.popen3 to set $? based on grandchild status rather than child status — "Andrew S. Townley" <andrew.townley@...>
[#157520] Relative speed of Ruby vs Java for a large compiled app like Freenet — seekingleverage@...
I'm wondering if anyone could shed some light on whether or not it
seekingleverage@gmail.com schrieb:
Andreas Schwarz schrieb:
Martin, perhaps you could collect this stuff and put it into your wiki
Isaac Gouy wrote:
On 9/26/05, Isaac Gouy <igouy@yahoo.com> wrote:
Excerpts from seekingleverage@gmail.com's mail of 25 Sep 2005 (CDT):
William Morgan wrote:
[#157540] String#ggsub — Gavin Kistner <gavin@...>
I occasionally find myself with gsub regexp that either eat too much,
Oh better:
[#157558] My dependency-injection library — Nikolai Weibull <mailing-lists.ruby-talk@...>
OK. So Ruby has enough dependency-injection/inversion-of-control
Nikolai Weibull <mailing-lists.ruby-talk@rawuncut.elitemail.org> writes:
[#157565] Rinda frustration — Mark Volkmann <r.mark.volkmann@...>
I'm trying to determine what the methods "move" and "notify" do in the
On Mon, Sep 26, 2005 at 09:49:41AM +0900, Mark Volkmann wrote:
On 9/26/05, Rick Nooner <rick@nooner.net> wrote:
On Tue, Sep 27, 2005 at 04:32:58AM +0900, Mark Volkmann wrote:
On 9/26/05, Rick Nooner <rick@nooner.net> wrote:
[#157569] Overloading — Ben <benbelly@...>
I'm a C++ programmer learning Ruby. I would like to make a class that
On Mon, Sep 26, 2005 at 10:38:16AM +0900, Ben wrote:
[#157576] Is there a hash-like class that maintains insertion order — Bob Hutchison <hutch@...>
Hi,
On Mon, 26 Sep 2005, Bob Hutchison wrote:
[#157580] Ruby and CLR interactions — John Lam <drjflam@...>
While building my Ruby <-> CLR shim, I came across a nasty issue with
[#157585] How each class splats — "Trans" <transfire@...>
First I'll just ask it there's a way to do this WITHOUT redefining
Devin Mullins wrote:
Devin Mullins wrote:
[#157587] noob question — Dirk Meijer <hawkman.gelooft@...>
this may be a stupid question, and i might have even overlooked it in the
[#157604] Re: [ANN] RDE 1.0.0 released — "Kroeger Simon (ext)" <simon.kroeger.ext@...>
Hi Sakazuki,
[#157623] A big thank you to Robby Russell... — Tom Copeland <tom@...>
...for providing another RubyForge mirror via his company, PlanetArgon.
On Sep 26, 2005, at 7:25 AM, Tom Copeland wrote:
On Tue, 2005-09-27 at 12:43 +0900, Gavin Kistner wrote:
whats the process for becomming a mirror?
On Tuesday 27 September 2005 10:24 am, Sam Mayes wrote:
On Wed, 2005-09-28 at 01:38 +0900, Kirk Haines wrote:
On Tue, 2005-09-27 at 12:46 -0400, Tom Copeland wrote:
Did you consider using bittorrent ?
[#157625] Linux install of 1.8.2 — Mark Volkmann <r.mark.volkmann@...>
I've installed Ruby 1.8.2 from source under Fedora Core Linux. It
>>>>> "M" == Mark Volkmann <r.mark.volkmann@gmail.com> writes:
On 9/26/05, ts <decoux@moulon.inra.fr> wrote:
>>>>> "M" == Mark Volkmann <r.mark.volkmann@gmail.com> writes:
[#157648] Rapid GUI Development with QtRuby — Dave Thomas <dave@...>
I hope y'all don't mind a short announcement, but it seemed relevant.
Dave Thomas wrote:
[#157652] random testing with Test::Unit — Eric Mahurin <eric_mahurin@...>
Does anybody else do random testing on their ruby code besides
[#157654] Ruby Threads 101 — Ben <benbelly@...>
I am leading a peer-learning group that is using "Programming Ruby" to
[#157658] Time interval — Daniel Berger <Daniel.Berger@...>
Hi all,
Daniel Berger wrote:
On Sep 27, 2005, at 2:51 AM, Robert Klemme wrote:
[#157662] Truncating Floats — Keith Fahlgren <keith@...>
Hi,
[#157671] Re: Outlook calendar — "Walter" <Walter@...>
... [snip] ...
[#157696] General programming strategy — "Yannick Turgeon" <vendredi5h@...>
Hello all,
[#157697] Embedded Ruby and Tag Libs — Adam Van Den Hoven <mail@...>
Hey guys,
On 9/26/05, Adam Van Den Hoven <mail@adamvandenhoven.com> wrote:
Austin.
On Sep 26, 2005, at 4:25 PM, Adam Van Den Hoven wrote:
[#157706] ruby-gnome2 querying of installed library versions — Joe Van Dyk <joevandyk@...>
Hi,
[#157717] Is there an issue with a library extending Object? — Bob Hutchison <hutch@...>
Hi,
On Tue, 27 Sep 2005, Bob Hutchison wrote:
[#157722] Molecular visualization in Ruby? — ptkwt@... (Phil Tomson)
Anyone created any kind of molecular visualization software in Ruby?
[#157732] ShortURL 0.7.0 — "Vincent Foley" <vfoley@...>
After a lot of procrastination, I have released ShortURL 0.7.0. I
You know, I am running out of ideas for ShortURL. I admit that it's
Vincent Foley wrote:
[#157746] Fwd: Lisp macros — Joe Van Dyk <joevandyk@...>
Whoops, this belongs on ruby-talk... Sorry.
Joe Van Dyk wrote:
On 9/26/05, James Britt <james_b@neurogami.com> wrote:
On 9/27/05, Jim Freeze <jim@freeze.org> wrote:
On 9/27/05, Ben <benbelly@gmail.com> wrote:
On 9/27/05, Jim Freeze <jim@freeze.org> wrote:
The big thing Lisp has that Ruby can't do is code-as-data. I wish I
[#157782] how to cancel the 'extend' which once has done — "SHIGETOMI, Takuhiko" <tshiget1@...>
dear guys,
[#157791] changing permissions in windows XP using ruby!! — "kraf001" <ihaveblackout@...>
Hi guys,
[#157807] How do I (really) encrypt a string in ruby? — Michal Suchanek <hramrach@...>
Hello
Hello,
Hello
-----BEGIN PGP SIGNED MESSAGE-----
[#157837] Ruby on Rails Agile role — grant.bodie@...
Hi
[#157854] Class and Iterator Design Question — Jim Freeze <jim@...>
This may be a silly design question, but I always balk at
Wow, thanks for all the responses.
Hi --
On 9/27/05, David A. Black <dblack@wobblini.net> wrote:
Jim Freeze wrote:
On Sep 28, 2005, at 5:10 AM, Florian Frank wrote:
James Edward Gray II ha scritto:
[#157856] Object private methods — Paolino <paolo_veronelli@...>
Hello
Paolino wrote:
[#157869] Wierd behaviour with Date — Damphyr <damphyr@...>
Tell me where does everything get mixed-up
[#157902] 101, Was: Ruby Threads 101 — Brian Schrer <ruby.brian@...>
> [snip question]
[#157913] Trouble building 64-bit Ruby 1.8.3 on Solaris 10/AMD64 — Tony Arcieri <bascule@...>
Hello, I'm attempting to build an AMD64 native Ruby interpreter on top
Hi,
On 9/27/05, nobuyoshi nakada <nobuyoshi.nakada@ge.com> wrote:
Hi,
[#157947] Dynamically generating classes? — Jonas Galvez <jonasgalvez@...>
Hi,
Jonas Galvez wrote:
On 9/27/05, Jonas Galvez <jonasgalvez@gmail.com> wrote:
[#157956] How do you read ruby source code? — brian-usenet@...
Hi, I'm a Java developer who is checking out Ruby on Rails. I'm
[#157964] raising exceptions across DRb and XMLRPC — Joe Van Dyk <joevandyk@...>
My architecture looks something like this. Please excuse the pitiful
Joe Van Dyk wrote:
[#157980] Gems undermine unit testing — Bret Pettichord <bret@...>
I put the following line at the top of each of my unit tests for Watir:
[#158004] class variables — "v.nainar" <vnainar@...>
Hello!
[#158037] Even more WIN32OLE_EVENT — Fredrik Jagenheim <jagenheim@...>
Hi,
When I've used PeekMessage/GetMessage like functions, I've called them
[#158041] creating independent lambdas in loops — Michael Roth <mroth@...>
Hello all,
[#158051] Re: creating independent lambdas in loops — "Kroeger Simon (ext)" <simon.kroeger.ext@...>
--- "Kroeger Simon (ext)" <simon.kroeger.ext@siemens.com>
On Sep 28, 2005, at 7:47 AM, Eric Mahurin wrote:
--- Gavin Kistner <gavin@refinery.com> wrote:
--- Eric Mahurin <eric_mahurin@yahoo.com> wrote:
Hi --
--- "David A. Black" <dblack@wobblini.net> wrote:
Hi --
Ara.T.Howard <Ara.T.Howard@noaa.gov> wrote:
--- Martin DeMello <martindemello@yahoo.com> wrote:
On Thu, 29 Sep 2005, Eric Mahurin wrote:
--- "Ara.T.Howard" <Ara.T.Howard@noaa.gov> wrote:
[#158073] "Updating gem source index" hanging? — "itsme213" <itsme213@...>
Just curious ... the last few times (this morning) this update did not
[#158095] Class Methods and derivation — Damphyr <damphyr@...>
I do something like the following
[#158106] rake 0.6 - thank you — "itsme213" <itsme213@...>
Rake 0.5 included a whole bunch of FileUtils stuff into Object, which made
[#158121] Python to Ruby: Two puzzlements... — "Elf M. Sternberg" <elf@...>
I'm afraid that I'm coming from Python, a B&D language where I'm used to
James Edward Gray II <james@grayproductions.net> writes:
Actually everything you do in ruby has a receiving object reference
oops, that should have been
On Sep 28, 2005, at 7:15 PM, Jeff Wood wrote:
[#158132] With a Ruby Yell: more, more more! — "Robert Klemme" <bob.news@...>
Glad to know you guys don't mind our nuby ruby posts! Actually, one of
[#158138] MouseHole 1.2 -- rose-colored spectacles for the Web — why the lucky stiff <ruby-talk@...>
MouseHole is a scriptable web proxy. Alter the Web with Ruby. Host
[#158157] IBM vs. Microsoft vs. ... Ruby? — "itsme213" <itsme213@...>
More "Enterprise Scale" talk over here, with a strong leaning towards
Hi,
How about:
Kev Jackson wrote:
bonefry you sure throw a lot of opinion around, but you always forget
On Sep 29, 2005, at 6:21 PM, bonefry wrote:
On Fri, Sep 30, 2005 at 08:26:14AM +0900, James Edward Gray II wrote:
ArachnoRuby works fine as a Ruby "IDE". There isn't really an IDE for Rails
[#158159] where to look for API win32/registry — Alexandru Popescu <the.mindstorm.mailinglist@...>
Hi!
[#158209] Re: slurp a file into an array without newlines — "Kroeger Simon (ext)" <simon.kroeger.ext@...>
[#158210] wxRuby problem on Ubuntu — RaW <raw73@...>
Hello,
I have Ubuntu-hoary and have Ruby 1.8 installed (with WxRuby), I have
Daniel Lewis napisaa):
Oh yes, I just remembered. Do you have WxWidgets installed as well asWxRuby? - You need WxWidgets 2.4 (It will not work with 2.5). You canget it from the apt-get / Synaptic Package Manager.
[#158221] Concerning persistency techniques — "Christophe Poucet" <christophe.poucet@...>
Hello,
[#158224] Win32API question — "PWR" <pw_richards@...>
I am trying to use Ruby's Win32API interface to access the windows file
[#158244] Backslashes — Han Holl <han.holl@...>
Hi,
[#158256] Would you like to use Ruby? — grant.bodie@...
OK So its me the recruiter again.
[#158258] In your opinion.... — Daniel Lewis <danieljohnlewis@...>
In your opinion(s)....
Devin Mullins <twifkak@comcast.net> wrote:
Daniel Lewis wrote:
> Too lazy to do your own research? It happens ;-). For a starter, check
I am new to Ruby, but its expressiveness as a language is profound.
Christophe Grandsire wrote:
Daniel Lewis <danieljohnlewis@gmail.com> wrote:
In article <3q7gddFdii3nU1@individual.net>, bob.news@gmx.net says...
[#158266] REXML to extract only values from XML? — "christopher.mcmahon@..." <christopher.mcmahon@...>
[#158288] rubyzip problem with local header magic — Robert Evans <robert.evans@...>
Hi,
[#158293] Net::SFTP: open_handle => null string — Louis J Scoras <louis.j.scoras@...>
Does anyone know off the top of their head why the 'open_handle' method
No, it is correct. open_handle returns an opaque value that
On 9/29/05, Jamis Buck <jamis@37signals.com> wrote:
[#158311] rush 0.1.bandicoot: object-oriented shell goodness (rationed for your health)! — The rush folks <rush-ruby-ml@...>
= rush-0.1.bandicoot
This looks fun!
Guillaume Marcais wrote:
On Thursday 29 September 2005 15:47, The rush folks wrote:
> On Thursday 29 September 2005 15:47, The rush folks wrote:
[#158315] QT 4 Binding — =?ISO-8859-15?Q?Daniel_V=F6lkerts?= <daniel@...>
Hello!
[#158327] Operator Overloading << — "matt.hulse@..." <matt.hulse@...>
Is there a way to overload '<<' in the Array class?
Austin Ziegler wrote:
On 9/30/05, Robert Klemme <bob.news@gmx.net> wrote:
On 9/30/05, Bob Hutchison <hutch@recursive.ca> wrote:
[#158339] creating hard links for Directories. — "kraf001" <ihaveblackout@...>
well as we all know the File class in ruby has the method link which
[#158349] Threading Performance? — Jeff McNeil <jeff@...>
Greetings.
On Fri, Sep 30, 2005 at 12:20:07PM +0900, Jeff McNeil wrote:
[#158369] ruby gsub! problem — Kev Jackson <kevin.jackson@...>
Hi all,
Another gsub/regex problem
On Sep 30, 2005, at 2:49 AM, Kev Jackson wrote:
[#158389] Rake, Rant, A-A-P — alan@...
I'd like to start working with C++ again. What's held me back is not
[#158400] Lisp Game (#49) — Ruby Quiz <james@...>
The three rules of Ruby Quiz:
[#158412] SQLite / Ruby on Windows? — david@...
Does anyone have an install-by-copy version of the SQLite Ruby binding at hand?
On 9/30/05, david@vallner.net <david@vallner.net> wrote:
There are three phases:
Hello,
[#158433] Apache 2 & global variables question — Pascal Meunier <pmeunier@...>
In Ruby under Apache 2 threads, is a global variable global to all instances
Or is it that Ruby 1.8.2 isn't compatible with Apache 2?
On Sat, 1 Oct 2005, Pascal Meunier wrote:
[#158460] Ruby licence... — netspam@...
I understand that the distribution of Ruby is under the GPL.
The Ruby License and the License of Ruby are two different things.
On Saturday 01 October 2005 20:51, Gregory Brown wrote:
Kevin Brown <blargity@gmail.com> writes:
On Sunday 02 October 2005 10:56, Christian Neukirchen wrote:
Kevin Brown <blargity@gmail.com> writes:
On Sunday 02 October 2005 12:45, Christian Neukirchen wrote:
[#158492] suggested changes for ruby libraries — "jdm" <xyz@...>
These are all relative to version 1.8.1.
[#158497] Interest in Boost::Ruby — Alan Gutierrez <alan-ruby-talk@...>
I'd like to build a CSS renderer in modern C++ as an enthusist's
On 9/30/05, Alan Gutierrez <alan-ruby-talk@engrm.com> wrote:
On 9/30/05, Alan Gutierrez <alan-ruby-talk@engrm.com> wrote:
* Austin Ziegler <halostatue@gmail.com> [2005-09-30 21:41]:
[SUMMARY] Word Chains (#44)
Gavin Kistner asked that I try timing the quiz solutions this week. I did
indeed "try" that very thing and the results shocked me. Let's take a look,
shall we:
=== Timing ./Adam Shelly/wordchain ===
Wordchain Finder
Connecting duck -> ruby
nil
=== ./Adam Shelly/wordchain: 0.950922 seconds ===
=== Timing ./Brian Schroeder/wordchain.rb ===
Loading database
Searching connection between duck and ruby
duck
dusk
rusk
ruse
rube
ruby
=== ./Brian Schroeder/wordchain.rb: 3.722559 seconds ===
=== Timing ./Daniel Sheppard/word_chain.rb ===
./Daniel Sheppard/word_chain.rb:42:in `find_distances': undefined local
variable or method `distances' for #<Word:0x1c70ac> (NameError)
from ./Daniel Sheppard/word_chain.rb:46:in `shortest_path'
from ./Daniel Sheppard/word_chain.rb:135
=== ./Daniel Sheppard/word_chain.rb: 0.019652 seconds ===
=== Timing ./David Tran/word_chain.rb ===
Loading dictionary...
Building chain...
No solution.
=== ./David Tran/word_chain.rb: 314.369476 seconds ===
=== Timing ./David Tran/word_chain2.rb ===
Loading dictionary...
Building chain...
No solution.
=== ./David Tran/word_chain2.rb: 1.184791 seconds ===
=== Timing ./Dominik Bathon/word_chain.rb ===
duck
luck
luce
lube
rube
ruby
=== ./Dominik Bathon/word_chain.rb: 1.472335 seconds ===
=== Timing ./Gavin Kistner/word_chain.rb ===
./Gavin Kistner/word_chain.rb:65:in `Integer': invalid value for Integer:
"duck" (ArgumentError)
from ./Gavin Kistner/word_chain.rb:65
=== ./Gavin Kistner/word_chain.rb: 0.020758 seconds ===
=== Timing ./horndude77/wordchain.rb ===
Two words required
=== ./horndude77/wordchain.rb: 0.014078 seconds ===
=== Timing ./James Edward Gray II/word_chain.rb ===
duck
ruck
rusk
ruse
rube
ruby
=== ./James Edward Gray II/word_chain.rb: 27.577392 seconds ===
=== Timing ./Levin Alexander/word_chains.rb ===
duck
ruck
rusk
ruse
rube
ruby
=== ./Levin Alexander/word_chains.rb: 2.795315 seconds ===
=== Timing ./Paolo Capriotti/chain.rb ===
no chain could be found
=== ./Paolo Capriotti/chain.rb: 65.236484 seconds ===
=== Timing ./Simon Kroeger/word_chain.rb ===
now way!
=== ./Simon Kroeger/word_chain.rb: 2.981419 seconds ===
=== Timing ./Simon Kroeger/word_chain2.rb ===
./Simon Kroeger/word_chain2.rb:2:in `foreach': No such file or directory -
duck (Errno::ENOENT)
from ./Simon Kroeger/word_chain2.rb:2
=== ./Simon Kroeger/word_chain2.rb: 0.017581 seconds ===
=== Timing ./Will Thimbleby/word_chain.rb ===
duck
dunk
dune
rune
rube
ruby
=== ./Will Thimbleby/word_chain.rb: 63.026336 seconds ===
=== Timing ./William James/word_chain.rb ===
./William James/word_chain.rb:1:in `read': No such file or directory - dict
(Errno::ENOENT)
from ./William James/word_chain.rb:1
=== ./William James/word_chain.rb: 0.024691 seconds ===
=== Timing ./William James/word_chain2.rb ===
./William James/word_chain2.rb:2:in `foreach': No such file or directory -
duck (Errno::ENOENT)
from ./William James/word_chain2.rb:2
=== ./William James/word_chain2.rb: 0.01695 seconds ===
I just ran sixteen programs there all with exactly the same command, outlined in
the quiz. Five of the sixteen programs died with an exception. Six more
printed only an error message or couldn't find a chain. That leaves us with
five chains out of sixteen attempts, about a 31% accuracy ratio. Yikes!
Obviously, the biggest problem are the exceptions and the error messages. These
programs refused to try and build a chain. (Yes, I looked into all of them to
see why and no, I didn't try to fix any of them.) The main issue here was that
people changed my proposed command-line arguments. Some of them moved the
dictionary to an optional third argument and others added new options.
I think new options are great, but was it really that hard to support the quiz
format? Will Thimberly parsed the quiz described arguments in seven lines, so I
think it was reasonable.
Of course, you are always welcome to submit whatever you like as a Ruby Quiz
solution. Along the same lines, I consider myself free to ignore anything that
creates more work for me.
The one exception is that I do try to resolve external dependancies, especially
if you make it easy on me. Paulo Capriotti gave me a link right to the library
needed and Brian included a README that showed how to build a required (and
included!) C extension. Thank you both.
Anyway, if someone would like to resolve all of the above issues and rerun time
trials, please be my guest. If you download the solutions from the Ruby Quiz
site, my time_trial.rb script is in the root directory and hopefully that will
get you started.
The minor issue this time around is that some solutions obviously had trouble
finding chains, at least with my dictionary. Not much to say here except that
unit tests probably could have helped. Several test cases were posted to Ruby
Talk. Hope everyone was trying those as they came in.
Okay, let's clean up those time trials and have another look at them:
=== Timing ./Brian Schroeder/wordchain.rb ===
Loading database
Searching connection between duck and ruby
duck
dusk
rusk
ruse
rube
ruby
=== ./Brian Schroeder/wordchain.rb: 3.722559 seconds ===
=== Timing ./Dominik Bathon/word_chain.rb ===
duck
luck
luce
lube
rube
ruby
=== ./Dominik Bathon/word_chain.rb: 1.472335 seconds ===
=== Timing ./James Edward Gray II/word_chain.rb ===
duck
ruck
rusk
ruse
rube
ruby
=== ./James Edward Gray II/word_chain.rb: 27.577392 seconds ===
=== Timing ./Levin Alexander/word_chains.rb ===
duck
ruck
rusk
ruse
rube
ruby
=== ./Levin Alexander/word_chains.rb: 2.795315 seconds ===
=== Timing ./Will Thimbleby/word_chain.rb ===
duck
dunk
dune
rune
rube
ruby
=== ./Will Thimbleby/word_chain.rb: 63.026336 seconds ===
I actually expected Brian's to be the fastest, just from what I had read about
them as they came in. Under the hood, Brian is using a priority queue written
in C. As the saying goes though, the speed is in the algorithm, and Dominik and
Levin prove the truth of it.
For an interesting comparison, Levin is using a plain Ruby priority queue.
Let's take a look at that class:
# inefficient implementation of a priority queue
#
class SimpleQueue
def initialize
@storage = Hash.new { [] }
end
def insert(priority, data)
@storage[priority] = @storage[priority] << data
end
def extract_min
return nil if @storage.empty?
key, val = *@storage.min
result = val.shift
@storage.delete(key) if val.empty?
return result
end
end
If you look at that insert() method, you might find the calls a bit odd. The
code does work, but only because of the awkward assignment that shouldn't be
needed. This is a gotcha that bit me early in learning Ruby so I'll explain it
here in the hope of helping others.
Array.new() can take a number and a block. It will invoke the block the
indicated number of times to generate an Array, using the return value of the
block as each member.
Because Hash.new() also takes a block and will call it when a key is first
accessed without an assignment, the natural assumption is that it uses the
return value, and in truth it does, but it does not set the key to that value!
That's why the extra assignment is needed above.
The fix is to use the passed in Hash and key String objects to set it yourself.
Using that, we can write the above a little more naturally:
# inefficient implementation of a priority queue
#
class SimpleQueue
def initialize
@storage = Hash.new { |hash, key| hash[key] = [] }
end
def insert(priority, data)
@storage[priority] << data
end
def extract_min
return nil if @storage.empty?
key, val = *@storage.min
result = val.shift
@storage.delete(key) if val.empty?
return result
end
end
I just think that's more natural and easy to follow. They work the same.
Looking at the code itself, there's nothing too fancy here. It stores items by
priority in a Hash. The real work is done in extract_min() which just locates
the minimum value, shifts some data off of that Array, and returns it. The
comment warns that it's inefficient, but it sure is easy to setup and use. Hard
to beat that for just fifteen lines of code. Nice work Levin.
Now I want to examine Dominik's lightning fast solution. Here's how it starts:
DEFAULT_DICTIONARY = "/usr/share/dict/words"
# Data structure that efficiently stores words from a dictionary in a way,
# that it is easy to find all words that differ from a given word only at
# one letter (words that could be the next step in a word chain).
# Example: when adding the word "dog", add_word will register "dog" as
# step for "\0og", "d\0g" and "do\0", later each_possible_step("cat")
# will yield all words registered for "\0at", "c\0t" or "ca\0".
class WordSteps
def initialize
@steps = Hash.new { |h, k| h[k] = [] }
@words = {}
end
# yields all words (as strings) that were added with add_word
def each_word(&block)
@words.each_key(&block)
end
# add all steps for word (a string) to the steps
def add_word(word)
sym = word.to_sym
wdup = word.dup
for i in 0...word.length
wdup[i] = 0
@steps[wdup] << sym
wdup[i] = word[i]
end
@words[word] = sym # for allow_shorter and each_word
end
# yields each possible next step for word (a string) as symbol, some
# possible steps might be yielded multiple times
# if allow_shorter is true, word[0..-2].to_sym will also be yielded
# if available
# if allow_longer is true, all words that match /#{word}./ will be
# yielded
def each_possible_step(word, allow_shorter = false,
allow_longer = false)
wdup = word.dup
for i in 0...word.length
wdup[i] = 0
if @steps.has_key?(wdup)
@steps[wdup].each { |step| yield step }
end
wdup[i] = word[i]
end
if allow_shorter && @words.has_key?(tmp = word[0..-2])
yield @words[tmp]
end
if allow_longer && @steps.has_key?(tmp = word + "\0")
@steps[tmp].each { |step| yield step }
end
end
# ...
The comments are just great in this code. If you read them, you'll understand
how the code moves so darn fast. Here's the mini-summary: When called
add_word() maps a word to all possible variations with exactly one letter
changed to a null character. Later, each_possible_step() can use the same
mapping to quickly look up all possibilities for the current word in question.
This can also handle searches where words aren't the same size, though that
wasn't part of the quiz.
# ...
# tries to find a word chain between word1 and word2 (strings) using
# all available steps
# returns the chain as array of symbols or nil, if no chain is found
# shorter/longer determines if shorter or longer words are allowed in
# the chain
def build_word_chain(word1, word2, shorter = false, longer = false)
# build chain with simple breadth first search
current = [word1.to_sym]
pre = { current[0] => nil } # will contain the predecessors
target = word2.to_sym
catch(:done) do
until current.empty?
next_step = []
current.each do |csym|
each_possible_step(csym.to_s, shorter, longer) do |ssym|
# have we seen this word before?
unless pre.has_key? ssym
pre[ssym] = csym
throw(:done) if ssym == target
next_step << ssym
end
end
end
current = next_step
end
return nil # no chain found
end
# build the chain (in reverse order)
chain = [target]
chain << target while target = pre[target]
chain.reverse
end
# ...
This is the search for a chain. Believe it or not, it's a rather boring
unidirectional breadth-first search. Most people implemented much fancier
searches, but thanks to Domink's dictionary storage this code doesn't need to be
clever.
This code just uses each_possible_step() to walk level-by-level of like words,
until it finds the end word. The pre Hash is used to keep the code from
retracing its steps and to walk the previous word chain to build the final
answer at the bottom of the method.
This method has a nice use of catch() and throw() to create the equivalent of a
labeled goto call in many other languages.
There's one more piece to this class:
# ...
# builds and returns a WordSteps instance "containing" all words with
# length in length_range from the file file_name
def self.load_from_file(file_name, length_range)
word_steps = new
IO.foreach(file_name) do |line|
# only load words with correct length
if length_range === (word = line.strip).length
word_steps.add_word(word.downcase)
end
end
word_steps
end
end
# ...
Here's the simple dictionary reading method. Note the clever use of a Range
argument here, to support word chains of differing sizes. The === check ensures
that the current dictionary word is in the Range we care about, before it's
added to the memory mappings.
Finally, here's the interface code:
# ...
if $0 == __FILE__
dictionary = DEFAULT_DICTIONARY
# parse arguments
if ARGV[0] == "-d"
ARGV.shift
dictionary = ARGV.shift
end
unless ARGV.size == 2
puts "usage: #$0 [-d path/to/dictionary] word1 word2"
exit 1
end
word1, word2 = ARGV[0].strip.downcase, ARGV[1].strip.downcase
shorter = word1.length > word2.length
longer = word1.length < word2.length
length_range = if longer
word1.length..word2.length
else
word2.length..word1.length
end
# read dictionary
warn "Loading dictionary..." if $DEBUG
word_steps = WordSteps.load_from_file(dictionary, length_range)
word_steps.add_word(word2) # if it is not in dictionary
# build chain
warn "Building chain..." if $DEBUG
chain = word_steps.build_word_chain(word1, word2, shorter, longer)
# print result
puts chain || "No chain found!"
end
Most of that is just the code to support the arguments from the quiz. Note the
clever building of the length Range that allows the program to switch behavior
when different sized words are given. All around great code Domink. Thanks for
the lesson!
My thanks to all who were able to understand my command-line argument
instructions this week. ;) Seriously, thanks to all submitters. Many great
solutions this week.
If you don't know what tomorrow's quiz is yet, you're not reading Redhanded
closely enough...