[#1] Re: regular expressions question — "Robert Klemme" <bob.news@...>
ako... wrote:
[#19] Re: GetoptLong example — Jim Freeze <jim@...>
On 12/14/05, Nick Sieger <nicksieger@gmail.com> wrote:
[#26] Re: US Zipcode API for Ruby? — Steve Litt <slitt@...>
On Wednesday 14 December 2005 10:46 pm, Paul Duncan wrote:
[#30] Re: Is ruby dbi still in development? — "Francis Hwang" <sera@...>
As Kirk said, we're moving forward ... but slowly. These sorts of
Thanks for your reply and I appreciate your work for providing this lib
[#32] Re: Forthcoming 2nd ed. of _The Ruby Way_ — "Doug H" <doug00@...>
I'd recommend the exact opposite. If you ignore the libraries and GUI
Doug H wrote:
On 12/15/05, James Britt <james_b@neurogami.com> wrote:
[#46] Re: ruby beats them all — "jwesley" <justin.w.smith@...>
If Ruby properly handled tail-recursion, then the "accumulator passing"
[#49] Re: Forthcoming 2nd ed. of _The Ruby Way_ — "GJB" <gjblomquist@...>
Phil Tomson wrote:
On 12/15/05, GJB <gjblomquist@hotmail.com> wrote:
Greg Donald wrote:
On 12/15/05, Hal Fulton <hal9000@hypermetrics.com> wrote:
Bill Guindon wrote:
[#53] Easy Duck-Typing — Daniel Schierbeck <daniel.schierbeck@...>
This will make it easier to add type checking to your methods. Let me
Hi --
[#56] Help with fcgi installation — Francis Vidal <francisv.list@...>
Hi,
[#64] Assigning a block to a variable in Ruby — ajmayo@...
I am new to Ruby and curious as to how you emulate the following
WRT forward references. My code was just
> Whereas in Javascript that would compile.
Technically, Ruby is really an 'incremental compiler'. That there is no
Hi,
[#91] system() failed with $?==32512 — Steve Litt <slitt@...>
Hi all,
[#103] adding any <text/> to a rexml doc (bump) — ara.t.howard@...
Hi,
[#110] challenge - regex which matches nothing — ara.t.howard@...
On 15/12/05, ara.t.howard@noaa.gov <ara.t.howard@noaa.gov> wrote:
[#168211] require! — "Ross Bamford" <rosco@...>
It (finally) clicked now, 'require' is just a method...
Hi Ross, actually as Florian recently taught me, *obj works for any
On Nov 30, 2005, at 7:52 PM, Ross Bamford wrote:
[#168232] Problem: Getting Rails to run on apache — one man army <newsAT@...>
hello. I need some help getting rails to run on apache2/red hat. Made
[#168239] Workflow/Rules Engine in Ruby? — Saimon Moore <saimonmoore@...>
Hi all,
[#168252] String + Range = Strange — Martin DeMello <martindemello@...>
How does this work?
Exactly.
Martin wrote:
[#168265] What is the best way to edit a file to eliminate a line using Ruby? — "Steve [RubyTalk]" <steve_rubytalk@...>
This sounds an easy task, but I'm certain that I'm yet to find the most
Steve [RubyTalk] wrote:
William James wrote:
steve_rubytalk wrote:
Mike Fletcher wrote:
Steve [RubyTalk] wrote:
zdennis wrote:
Ok, slightly more elegant...
zdennis wrote:
I don't think you can get away without a tempfile and get safe
[#168271] Good Ruby Examples? — "Hampton" <hcatlin@...>
I'm planning on doing a tutorial about Ruby for Ryerson University's CS
C has 'Hello world!'
[#168300] Memory Leaks: How to see GC Roots? — "Sven C. Koehler" <schween@...>
Hello!
[#168323] abstract class — hochherz <hochherz@...>
hey
[#168342] [ANN} Komodo 3.5.1 -- a professional Ruby IDE — Curt Hibbs <curt.hibbs@...>
Yesterday, ActiveState released Komodo
I've tried it on Win XP. It's terribly slow, one minute just to see my
I thought Komodo used to support code completion drop-downs... is this
On 12/2/05, frugalprogrammer <sillydeveloper@gmail.com> wrote:
I'm looking forward to your comparison, Curt.
On 12/2/05, Christer Nilsson <janchrister.nilsson@gmail.com> wrote:
Hi Christer,
On 12/5/05, Wayne Vucenic <nightphotos@gmail.com> wrote:
curt.hibbs wrote:
Hi Christer,
Hi, did you try the Ruby editor RDE?
Wayne!
Hey Christer,
I've been playing with Arachno and wish it had hyper navigation of the code
On 12/7/05, Mark Ericson <mark.ericson@gmail.com> wrote:
I think it should be free or have documentation. I don't think I should have
soxinbox wrote on 12/12/2005 8:07 PM:
tony summerfelt wrote:
Christer Nilsson wrote on 12/13/2005 9:09 AM:
My first post. <b>testing html</b>
By a Newbie, for Newbies.
Spectacular evaluation. I greatly appreciate it.
Eric Armstrong wrote:
Whups. Typo: s/b ArchnoRuby
Kev Jackson wrote:
Just out of curiosity, did you look at all at the "QT Ruby" family in
>>> sender: "Javaman49" date: "Mon, Apr 17, 2006 at 10:59:56AM +0900" <<<EOQ
Alexandru E. Ungur wrote:
On Monday 17 April 2006 06:28 am, Kev Jackson wrote:
I find most text editors out there to be abysmal. That said, here are
[#168344] need some Ruby magic — Hammed Malik <hammed@...>
I'd like to sort collections randomly. This is what I tried first:
In article <dd3f270e4d20842e121bb970bc9a8386@ruby-forum.com>,
reinder wrote:
On Sun, Dec 04, 2005 at 08:48:11AM +0900, Jim Weirich wrote:
On Sun, 4 Dec 2005, Mauricio [iso-8859-1] Fern疣dez wrote:
On Sun, Dec 04, 2005 at 10:21:02AM +0900, ara.t.howard@noaa.gov wrote:
Mauricio Fern疣dez wrote:
On Tue, 6 Dec 2005, Mauricio [iso-8859-1] Fern疣dez wrote:
||
On Tue, Dec 06, 2005 at 07:32:34PM +0900, Uwe Schmitt wrote:
||
Uwe Schmitt wrote:
Stephen Waits wrote:
Stephen Waits wrote:
[#168371] Optimizing for Newbies — Matthew Feadler <matthew@...>
Since I've gotten the go-ahead from Christer, here's a little newbie app
Matthew Feadler wrote:
[#168387] Double posts? — Ezra Zygmuntowicz <ezra@...>
Why is every post I make to the list getting doubled? Or is it just
i have the same problem using gmail (by web). whenever i post to the
[#168388] Aliasing to an inherited method — "Phrogz" <gavin@...>
I tried to modify Daniel Schierbeck's code (in response to the recent
[#168398] Labelled text file parsing... — "CBlair1986" <CBlair1986@...>
Hi. What I'd like to do is to take a file like so:
[#168440] ruby one-liner needed — Kev Jackson <kevin.jackson@...>
Here's one taht I know is possible (I'm sure I've seen it somewhere before)
[#168450] Implementation of String or Array #slice and similar ops? — Ron Jeffries <ronjeffries@...>
As some may recall, I'm fiddling with some string manipulation in a recent
On Fri, Dec 02, 2005 at 07:27:32PM +0900, Ron Jeffries wrote:
[#168455] how can I install ruby-xslt ? — Daniel R <draens@...>
Hello,
Please, could someone help me ?
Have you been to:
No. There is no gem for this stuff. You have to download and compile
Oh, ok.
You may check here http://gnuwin32.sourceforge.net/install.html. You
[#168468] Problem with method that starts process, yields pid then yields return code — x1 <caldridge@...>
I'm trying to create a method that will kick off a new process, return
On Fri, 2 Dec 2005, x1 wrote:
it seems to work!!
On Sat, 3 Dec 2005, x1 wrote:
I've hacked at it and managed to learn quite a few things in the
On Sun, 4 Dec 2005, x1 wrote:
What we have so far works, however ideally, printing the pid should
On Tue, 6 Dec 2005, x1 wrote:
weird thing is, with your first example, the pid prints out before the
[#168469] Weird Numbers (#57) — Ruby Quiz <james@...>
The three rules of Ruby Quiz:
On 02/12/05, Ruby Quiz <james@grayproductions.net> wrote:
On 02/12/05, Brian Schrer <ruby.brian@gmail.com> wrote:
please give an example of such a number. english is my second language, and
My first Ruby Quiz solution...
My previous solution contained an error. This is a new version,
[#168473] Dynamic Modules — "Trans" <transfire@...>
I would like to discuss the merits/non-merits and the best approach to
[#168482] Re: [QUIZ] Weird Numbers (#57) — "Kroeger, Simon (ext)" <simon.kroeger.ext@...>
If I got I right, 70 would be such a number.
>please give an example of such a number.
[#168508] IL Generator syntax proposal — John Lam <drjflam@...>
In my rewrite of my Ruby <=> CLR bridge, I've been thinking about pushing
Hi John,
Hi Wayne,
[#168513] Screen scraping via regex vs. htmltools (vs. REXML) — "Dan Kohn" <dan@...>
I've finally reimplemented the screen scraper I mentioned on
[#168525] Make a symbol represent a method? — Chris Irish <chris.irish@...>
I just read a FAQ page online about Ruby symbols and someone mentions this
On 12/2/05, Chris Irish <chris.irish@libertydistribution.com> wrote:
[#168557] Studying in the US — Daniel Schierbeck <daniel.schierbeck@...>
Hi fellow Rubyists!
In article <4390c1da$0$152$edfadb0f@dread11.news.tele.dk>,
[#168595] Curses about libcurse — zimba-tm <zimba.tm@...>
Hello,
[#168604] Encounter troubles with Regex in Chinese text splitting — "Mike Meng" <meng.yan@...>
Hi All,
[#168612] Regex: except when — "basi" <basi_lio@...>
Hello,
[#168623] #append_features deprecated? — "Trans" <transfire@...>
Somone else mentioned this. Is it true?
Trans wrote:
Dave Burt wrote:
>>>>> "D" == Daniel Schierbeck <daniel.schierbeck@gmail.com> writes:
[#168655] Ruby Code & Style is looking for articles. — James Britt <james_b@...>
Request for Article Submissions
On 12/3/05, James Britt <james_b@neurogami.com> wrote:
[#168679] Help converting DateTime from UTC — Geary Eppley <gearye+rubyforum@...>
I trying to convert a parsed time of "2005-12-01T18:00:00Z" to the local
[#168699] injecting dynamic methods into a class — johanatan <zjll9@...>
hi All,
If you don't mind while I'm at this I'm going to touch up the code to
transfire wrote:
Ok. The class is ready for consumption. :) Here it is:
Couple suggestions:
On Tue, 06 Dec 2005 02:10:51 -0000, Trans <transfire@gmail.com> wrote:
Ross Bamford wrote:
> 'Ad hoc' has too many negative connotations and singleton has a fairly
transfire wrote:
jonathan wrote:
Hi,
Hi --
Hi --
Okay David, its obvious you're getting upset. Though you say the
Hi --
Hi --
On Wed, 2005-12-07 at 04:42 +0900, David A. Black wrote:
Hi --
On Wed, 2005-12-07 at 06:32 +0900, David A. Black wrote:
Hi --
On Wed, 2005-12-07 at 14:23 +0900, dblack@wobblini.net wrote:
Here we go again with the endless discussion threads. I guess most of
A Ruby TRAITOR? Because I offer up opinions, options and interesting
[#168706] gem install rails hangs — "Scott" <bauer.mail@...>
Doesnt looks rails-specific, any gem will hang after I get the followin
[#168716] Weird Numbers (#57) Solution — "Hampton" <hcatlin@...>
Here is my solution. Its not the most beautiful thing in the world, but
On 12/4/05, Hampton <hcatlin@gmail.com> wrote:
On 12/4/05, Simon Strandgaard <neoneye@gmail.com> wrote:
Here is my solution. It is pretty fast, but not quite as fast as
Mine's *really* fast up to 3,963,968.... then it slows down just a
On 12/4/05, Hampton <hcatlin@gmail.com> wrote:
On Dec 4, 2005, at 7:27 AM, Hampton wrote:
On 12/4/05, James Edward Gray II <james@grayproductions.net> wrote:
On Dec 4, 2005, at 11:29 AM, Ryan Leavengood wrote:
On 12/4/05, James Edward Gray II <james@grayproductions.net> wrote:
On Dec 4, 2005, at 2:40 PM, Ryan Leavengood wrote:
On 12/4/05, James Edward Gray II <james@grayproductions.net> wrote:
[#168720] Strange crash (interpreter bug?) — Sylvain Joyeux <sylvain.joyeux@...>
I was trying to fix the busy_handler of the sqlite3. (version 1.1.0 makes
> For me, those two functions are strictly equivalent. So ...
[#168760] Fuzzy Searching a Database — "TomRossi7" <tomrossi7@...>
How would you recommend implementing something like a fuzzy search with
[#168763] Getting Over Symbols — gwtmp01@...
When I was first learning Ruby, symbols were a bit of a mystery.
[#168776] Automatic trace utility. — Kyku <kyku@...>
Hi All,
[#168801] Deleting object inn array, if... — Henrik Orm蚶en <henrik.ormasen@...>
[#168837] Filling PDF Forms — "Kevin Olbrich <kevin.olbrich@...>" <kevin.olbrich@...>
Are there any Ruby utilities out there for filling out PDF forms?
Kevin Olbrich <kevin.olbrich@duke.edu> wrote:
[#168838] Ruby :symbols and C *pointers are related? — petermichaux@...
Hi,
[#168846] ruby ferret question -> how to get list of values for a given term ? — didier.prophete@...
hi all,
[#168858] Oppinions on map vs collect — Gary Watson <pfharlock@...>
I've been using collect in all my programs up till now, and I recently
Gary Watson wrote:
[#168861] lib for optional static typing — "robertj" <robert_kuzelj@...>
hi,
ok,
On 12/5/05, robertj <robert_kuzelj@yahoo.com> wrote:
On Dec 6, 2005, at 8:17 PM, Austin Ziegler wrote:
>The *real* question is where to get a type-system that is flexible
On 12/10/05, robertj <robert_kuzelj@yahoo.com> wrote:
robertj wrote:
Hi --
dblack@wobblini.net ha scritto:
[#168871] increasing counter whithin loop? — Patrick Gundlach <clr9.10.randomuser@...>
Hi,
[#168882] Can I set a module context for a block? — John Lam <drjflam@...>
I'd really like to be able to inject the 'include Bob' statement in the
[#168896] Rote 0.2.4 (Textual templating, Doco) — "Ross Bamford" <rosco@...>
Hi,
[#168902] Gem install error — "Trans" <transfire@...>
[#168905] limiting how long a method is permiited to run — Brian Buckley <briankbuckley@...>
Hello all,
[#168918] Equivalent to Perl's Tk::Tiler? — Forrest Chang <fkc_email-news@...>
Hi All:
[#168919] a todo list — steven masala <smasala@...>
did a tutorial on ruby on rails site, however the edit isnt working
[#168920] Colorized Ruby Source Listings/Printing — Patrick Hurley <phurley@...>
I guess I am just old fashion, but sometimes when I am working on
[#168941] Determining endianness in extconf.rb — Aaron Patterson <aaron_patterson@...>
Hi. Hopefully this is the right list for this question!
Aaron Patterson wrote:
[#168943] http://www.inkdroid.org/journal/2005/12/02/code4lib-2006/ — pat eyler <pat.eyler@...>
For those of you working on Library or Library related stuff, this link
[#168956] Interactive browser/IDE for Ruby — Mark Ericson <mark.ericson@...>
I'm sure this has been asked before on this list... I was wondering if
[#168958] String split drops the delimiter — "basi" <basi_lio@...>
Hello:
basi wrote:
Hi,
[#168978] Perl's DBI::quote functionality? — "ako..." <akonsu@...>
hello,
[#168980] Are my metaprogramming underpants showing? — Matthew Smillie <M.B.Smillie@...>
Matthew Smillie wrote:
On Dec 6, 2005, at 0:03, James Britt wrote:
The whole class as method thing seems very odd.n I suspect there's a
> Here is, hopefully, a fuller explanation
[#168989] Subclassing Class. — John Carter <john.carter@...>
Ok. This is a wild idea.
> We really want
John Carter <john.carter@tait.co.nz> wrote:
Hi --
Hi --
[#168992] Speed Golf - Remove Early Dups — "Phrogz" <gavin@...>
SUMMARY
perhaps in.reverse!.uniq!.reverse! ?
Phrogz wrote:
does this have a quadratic time complexity? doing this by sorting might
[#168993] Overloaded constructors in Ruby — "Kyle Heon" <kheon@...>
I have a class that I want to have a number of overloaded constructors for.
[#169000] how best to handle errors in object instaintiation (sp ?) — Russell Fulton <r.fulton@...>
Hi,
[#169010] CLOSING SHOP! XML:Tools, bindings for libxml and libxslt — "Trans" <transfire@...>
It my sad task to inform all those interested that I will no long be
[#169023] Qt Ruby Bindings in Ubuntu? — gary huntress <ghuntress@...>
[#169049] [ruby talk] Localization woes — Dan Bikle <dan.bikle@...>
People,
[#169052] rflickr — Nate Agrin <n8agrinster@...>
hey all, i'm looking for anyone out there who is using rflickr to access the
[#169057] getting around access control — "Ara.T.Howard" <ara.t.howard@...>
Ara.T.Howard wrote:
Hi,
[#169080] Ruby Event Manager / Scheduler — "eDreamers" <bpotier@...>
In the scope of a project management tool development, we would need to
I have considered writing a cron-like system in pure Ruby, as it would
[#169093] Gems Install All Dependencies Option — "Trans" <transfire@...>
Is there a way, or can a way be made to install all dependencies
Hi --
[#169097] How can I find __LINE__ on the execution stack ? — Christer Nilsson <janchrister.nilsson@...>
I would like to be able to display the line number in my simple assert.
[#169128] Recursive Rake — Tanner Burson <tanner.burson@...>
Hello all,
[#169149] Screen scraping an html text contents into a file — "basi" <basi_lio@...>
Hello,
> basi wrote:
Hi,
On 12/6/05, basi <basi_lio@hotmail.com> wrote:
Hello,
Steve Callaway <sjc2000_uk@yahoo.com> wrote:
[#169191] Variable score — vnpenguin@...
Hi all,
[#169199] Question concerning multiline regexps and best practice — Oliver Andrich <oliver.andrich@...>
Hi,
unless i do not understand the question, a regex option that allows
[#169228] Interfaces in Ruby? — Jeff Cohen <cohen.jeff@...>
I'm new to Ruby - actually new to dynamically typed languages in
[#169239] Mixins and variables — Johannes Friestad <johannes.friestad@...>
Hi,
[#169240] Re: Mixins and variables — "Daniel Sheppard" <daniels@...>
It's got nothing to do with mixins:
[#169270] One-Click Ruby Installer — kishor.gurtu@...
Any idea when this will be updated to 1.8.3?
[#169274] wxruby and threads — "Yuri Kozlov" <kozlov.y@...>
Hello.
Hello
It seems, what this code make new thread every time when on_idle
Yuri Kozlov wrote:
Could you post the full text working example ?
[#169277] where is the Content Assist of RDT? — Frank Potter <could.net@...>
this url() said RDT *HAS* Content Assist. I use RDT 0.6.0, but I never found
I forgot to say, the url is:
[#169288] Build array of possible combinations — Timo Hoepfner <th-dev@...>
Hi,
[#169304] Win32OLE: Output parameters, Dispatch IDs — "Dave Burt" <dave@...>
Hi,
x1 wrote:
[#169312] Where is RUBYOPT set? — williamerubin@...
This is on Windows XP:
williamerubin@dodgeit.com wrote:
It should be in system variables on XP as well. I just doubled checked my XP
[#169314] Syntax checker? — "William E. Rubin" <williamerubin@...>
Ruby doesn't seem to check for class names, function names, and so
William E. Rubin schrieb:
Thanks for the explanation. But there certainly could at least be a
On Dec 7, 2005, at 10:32 AM, William E. Rubin wrote:
> At the risk of sounding pedantic, Test Driven Development really is
[#169326] Ruby newcomer — "BAT" <b.trapp@...>
Hi all!
On Thu, Dec 08, 2005 at 01:27:35AM +0900, BAT wrote:
[#169337] Difference between rb_define_module_function and rb_define_singleton_method? — John Lam <drjflam@...>
Is there a difference between calling rb_define_module_function and
[#169347] Re: ArachnoRuby -- a professional Ruby IDE — "Bennett, Patrick" <Patrick.Bennett@...>
[#169354] Oniguruma -- when? — rubyhacker@...
When does Oniguruma go into Ruby? I thought it
[#169386] Newer to Ruby — Kwhamec Rojas <bedeviledme@...>
Hi. I am new to Ruby and new to programming altogether, but I am really
[#169399] DRb connection issues — Kevin Brown <blargity@...>
This is not a DRb problem, so much as a system configuration problem. I know
On Dec 7, 2005, at 1:09 PM, Kevin Brown wrote:
Thanks for the reply!
[#169400] What's your opinion? ArachnoRuby, Komodo, Eclipse/RDT, RadRails, etc. — Curt Hibbs <curt.hibbs@...>
There's been a couple really good threads that are still ongoing about Ruby
On Wed, 07 Dec 2005 21:13:11 -0000, Curt Hibbs <curt.hibbs@gmail.com>
I've tried the following on Win XP
[#169403] Re: What's your opinion? ArachnoRuby, Komodo, Eclipse/RDT, RadRails, etc. — "Berger, Daniel" <Daniel.Berger@...>
> -----Original Message-----
Big plus for Arachno... I LOVE it's multithreading debugger ... it's nice to
All meaning Eclipse/RDT , KOMODO, & Arachno ... ( plus I use xemacs on linux
[#169410] RubyScript — dpersik@...
I have done some searching on the web and have found very little about
>I have done some searching on the web and have found very little about
On 12/7/05, Dan Diebolt <dandiebolt@yahoo.com> wrote:
>I tried it in IE6 (Version: 6.0.2900.2180.xpsp_sp2_gdr.050301-1519), didn't work
On 12/7/05, Dan Diebolt <dandiebolt@yahoo.com> wrote:
Of course you have to install it - you only get VBScript and JavaScript functionality out of the IE box.
On 12/7/05, Dan Diebolt <dandiebolt@yahoo.com> wrote:
[#169422] Rails and PostgreSQL — Colin Freas <colinfreas@...>
I'm trying to get Rails up and running using a PostgreSQL database, and
[#169423] Standard Library questions — Joe Van Dyk <joevandyk@...>
I'm spending an hour or two today going through Ruby's standard
On 12/7/05, Joe Van Dyk <joevandyk@gmail.com> wrote:
[#169440] code execution from file? — "ako..." <akonsu@...>
hello,
please forgive the term "class with a static method", i meant "class
On Thu, 8 Dec 2005, ako... wrote:
thank you very much for your help.
[#169466] They say I write Ruby like Perl — Steve Litt <slitt@...>
Hi all,
Ryan Leavengood <leavengood@gmail.com> wrote:
Ryan Leavengood wrote:
On Dec 8, 2005, at 7:27 AM, Chris Game wrote:
I'd be interested to know *why* it is a language convention, and more
On Thu, Dec 08, 2005 at 11:27:23PM +0900, Rich wrote:
On 12/8/05, Chad Perrin <perrin@apotheon.com> wrote:
On Dec 8, 2005, at 8:27 AM, Rich wrote:
Tim Hammerquist <penryu@saiyix.ath.cx> writes:
[#169485] How to capture PrettyPrint output to string? — List Recv <listrecv@...>
I'd like to capture the output of pp (PrettyPrint) as a string, as
[#169509] Ruby + Lotus Domino oh my! — Kev Jackson <kevin.jackson@...>
Hi,
[#169512] is this a good way to find anagrams? — travis laduke <wrong@...>
it seems to me, with computers these days, this should finish
[#169516] About class methods — Hank Gong <hankgong@...>
Hi! When I read the Ruby manual, I noticed that for class Array, there are
Hank Gong wrote:
> They're not eigenmethods are they?
Sorry Hank, if you are unware of what were talking about in these last
I carefully read two articles about classmethods and singleton concept.
Hi --
transfire wrote:
>
My understanding of 'singleton' methods or 'ad hoc' methods or
J,
transfire wrote:
T,
transfire wrote:
Hi --
dblack wrote:
Hi --
unknown wrote:
I'm curious why "class method" is being avoided? It certainly seems
Mark Ericson wrote:
On Mon, Dec 12, 2005 at 03:30:50PM +0900, Hal Fulton wrote:
Dave Howell wrote:
"jonathan <zjll9@imail.etsu.edu> <zjll9@imail.etsu.edu> <zjll9@imail.etsu.edu>" <zjll9@imail.etsu.edu> wrote:
[#169517] Re: Are my metaprogramming underpants showing? — "Daniel Sheppard" <daniels@...>
Considering that there seems to be at least one mandatory argument
[#169525] A small query — Srinivas Jonnalagadda <srinivas.j@...>
Dear all,
[#169527] YAML can not accept "\t" under windows! — "cap" <capitain@...>
when i try this code
[#169567] Suggestion to the Pragmatic Programmers — "Shannon Fang" <xrfang@...>
Hi Andy and Dave,
[#169578] do/end vs braces — Steve Litt <slitt@...>
Hi all,
On 12/8/05, Steve Litt <slitt@earthlink.net> wrote:
Steve Litt wrote:
On Thursday 08 December 2005 10:07 am, Daniel Schierbeck wrote:
On 12/8/05, Steve Litt <slitt@earthlink.net> wrote:
[#169586] Retrieving PID running time — Philip Rhoades <phil@...>
People,
On 12/8/05, Philip Rhoades <phil@pricom.com.au> wrote:
[#169636] fastcgi and shared interpreters — James Britt <james_b@...>
I'm doing more work with fascgi and scgi, and I'm looking for some
On Fri, 9 Dec 2005, James Britt wrote:
ara.t.howard@noaa.gov wrote:
[#169642] ordered/sorted hash — "robertj" <robert_kuzelj@...>
hi,
[#169660] New guy... Intoduction and first question on some direction. — Oscar Gonzalez <rakxzo@...>
Hi everyone. I'm new to these forums. I am sysadmin in California and
hello,
akonsu wrote:
i would write a parser for these files. represent the contents as a set
On 12/8/05, Oscar Gonzalez <rakxzo@gmail.com> wrote:
[#169673] invalid arg to sysread deep within protocol.rb — "William E. Rubin" <williamerubin@...>
I just made a script that fetches certain web pages, using Net::HTTP,
[#169674] Transparent Caching Idiom — "beng" <b@...>
I've made good use of this idiom recently, and wanted to share it.
[#169676] rescue anything raised? — "William E. Rubin" <williamerubin@...>
Is there a way to rescue any raised error? Like "rescue *" or
rescue Exception
[#169690] creating Exchange mailBox via Ruby? — tech.samaritan@...
Howdy!
On 12/8/05, tech.samaritan@gmail.com <tech.samaritan@gmail.com> wrote:
I have found that I can do all the normal stuff, but interaction with
[#169694] Detecting control-c? — "William E. Rubin" <williamerubin@...>
How does one detect Control-C?
[#169695] Help defining multi-dimensional array — Victor Reyes <victor.reyes@...>
Ruby Team,
[#169698] Subversion support on RubyForge — Tom Copeland <tom@...>
Hi all -
On Dec 8, 2005, at 1:41 PM, Tom Copeland wrote:
Tom Copeland wrote:
[#169745] Ruby on Rails mailing list? — Chris Irish <chris.irish@...>
Could someone tell me if rails@lists.rubyonrails.org
I would expect that all of that information is available to you from the
[#169758] Advanced rubycocoa: full-screen applications? (Can I access CoreGraphics calls?) — Ben Giddings <bg-rubytalk@...>
Hi guys,
Hi folks,
On Dec 8, 2005, at 19:30, FUJIMOTO Hisa wrote:
On 12/9/05, Ben Giddings <bg-rubytalk@infofiend.com> wrote:
On Dec 8, 2005, at 23:52, FUJIMOTO Hisa wrote:
Hi,
[#169778] home of the gems? — Kelly Dwight Felkins <railsinator@...>
I'm trying to understand how gems are loaded. Please help.
railsinator wrote:
Thanks for getting back to me Jim. Please bear with me as I try to
[#169783] extend an object using string as module name? — "ako..." <akonsu@...>
hello,
[#169793] Regex: greedy pattern — "basi" <basi_lio@...>
Hello,
[#169816] Unlogical ? — Christer Nilsson <janchrister.nilsson@...>
Hmm, why are these two assertions breaking?
[#169840] Some quick questions — "Ross Bamford" <rosco@...>
Hi,
[#169854] Equation graphing software? — Steve Litt <slitt@...>
Hi all,
>Does Ruby have any modules useful in graphing equations like y=x**2+5,
On Friday 09 December 2005 01:22 pm, Eric Lavigne wrote:
On Friday 09 December 2005 14:58, Steve Litt wrote:
[#169855] Where has my output gone??? — Andrew Walrond <andrew@...>
I run my ruby script, and it produces lots of output
[#169857] Kalah (#58) — Ruby Quiz <james@...>
The three rules of Ruby Quiz:
> I agree. That looks like a bug.
On 12/9/05, Kero <kero@chello.single-dot.nl> wrote:
On Dec 9, 2005, at 1:57 PM, Bill Guindon wrote:
James Edward Gray II wrote:
Here's my solution. I'm still playing with it, but I'm posting it now
Rob, I think you forgot the code.
Hi Rob,
[#169875] Multipackage Gems — "Trans" <transfire@...>
I have a multipackage project layout:
transfire wrote:
> Your gem spec allows you to enumerate the files you want included in the
[#169900] Ruby for small devices ? — zimba-tm <zimba.tm@...>
Hello ruby fellows,
[#169913] new to Ruby - pls help in translating this — Sam Dela Cruz <sam.dela.cruz@...>
Hi,
On 12/9/05, Sam Dela Cruz <sam.dela.cruz@philips.com> wrote:
On Dec 9, 2005, at 11:23 AM, pat eyler wrote:
Thank you all. I learned a little bit more ruby. And yes, I want to do
Or, in keeping with the DRY and KISS principles I humbly submit the
On 12/9/05, Corey Jewett <corey@syntheticplayground.com> wrote:
On Sat, Dec 10, 2005 at 10:03:06AM +0900, pat eyler wrote:
On 12/9/05, Chad Perrin <perrin@apotheon.com> wrote:
Eric Hodel wrote:
On Dec 12, 2005, at 12:32 PM, William James wrote:
On Tue, Dec 13, 2005 at 03:46:09AM +0900, James Edward Gray II wrote:
[#169943] YAML for Ruby: How to turn off the boolean interpretations? — "mikshir" <mikshir@...>
I have YAML documents generated in Perl and Python that I process with
[#169944] different methods for initializing one object? — "Tool69" <kibleur.christophe@...>
Hi,
kibleur.christophe wrote:
[#169947] next, retry, break? — mental@...
Okay, I've got a question.
Hi,
On Sat, 2005-12-10 at 11:29 +0900, Yukihiro Matsumoto wrote:
[#169957] Unpack problems — Aaron Patterson <aaron_patterson@...>
Hi! I'm having some troubles with unpack that I can't seem to figure
[#169965] need to run setup.rb after 'gem install facets' — "ako..." <akonsu@...>
hello,
[#169967] Unspecified Syntax Error — StarLion <hmrhouse@...>
[#169979] Rails & MySQL login problem (#42000Access denied for user) — Stephan <nospam@...>
I'm running Ruby on Rails and MySQL on a Fedora Core 4 server. When I
It looks like you or your host have upgraded to the latest Rails gems.
-----BEGIN PGP SIGNED MESSAGE-----
Jeremy Kemper wrote:
Yan-Fa Li wrote:
[#170004] Ruby SOAP client communication with Microsoft .NET webservice — "Kishore" <keyshawn@...>
Hi:
[#170007] Customizing erb's recognized tags — Larry White <ljw1001@...>
Hi
On Dec 9, 2005, at 7:46 PM, Larry White wrote:
[#170051] :-) Sharing a Shower Moment :-) — "Trans" <transfire@...>
What did the Rubyist say to the duck?
Trans wrote:
[#170069] Logic... — StarLion <hmrhouse@...>
def MakeBoard
Ok, i made a bit more cleaned up version, but i'm still not sure what you want
m.fellinger wrote:
> The idea is to take a string of 9 characters, and transform them into an
[#170088] Ncurses - how do you get mousemask working? — Richard Lyman <lymans@...>
I've tried... and I've looked around.
[#170105] How to preserve line endings in strings with YAML? — Tom Payne <ruby@...>
Hi all,
Sorry to bump, but the timing of my initial posting (early hours of
[#170126] ruby's Logger conflict with Log4r's Logger — "cap" <capitain@...>
Both of them has a class named "Logger"
[#170127] erb and scope — Wybo Dekker <wybo@...>
Why does this not work (bar->undefined) and what's a better way to do it?:
[#170167] creating a <=> method — Dirk Meijer <hawkman.gelooft@...>
hi everyone,
[#170174] Calculating single-digit summands — "draq" <boyang.xia@...>
I have tried to make an algorithm that finds all possible combinations
[#170175] Calculating single-digit summands — "draq" <boyang.xia@...>
I have tried to make an algorithm that finds all possible combinations
This is a newer algorithm which works much more faster.
[#170181] Watir Javascript popup handler: works with popups from links, not from buttons — jeffz_2002@...
(long post!)
[#170182] Embedded Ruby into C — Joe Van Dyk <joevandyk@...>
Anyone got any good resources on embedding C into Ruby? The ones I
On 12/11/05, Joe Van Dyk <joevandyk@gmail.com> wrote:
[#170183] Ruby + yaml = warnings??? — "Kurt V. Hindenburg" <ml@...>
[#170196] [SOLUTION] Kalah (#58) — David Balmain <dbalmain.ml@...>
Hey guys,
Here are my Kalah Players.
Of course I introduced an error while cleaning up my code:
On Monday 12 December 2005 05:24 pm, Adam Shelly wrote:
[#170217] ruby-gnome2: catching middle clicks on tabs — "Clayton Smith" <ces.fci@...>
What I am trying to do is capture the button-press-event when a person
Hi,
[#170226] Ruby GUI recommendations? — Christer Nilsson <janchrister.nilsson@...>
Which GUI lib is the best and which is the most widely used ?
[#170229] test/unit and pp — Patrick Gundlach <clr10.10.randomuser@...>
Hi,
[#170237] - posixtimer 0.1 — Caleb Tennis <caleb@...>
Caleb Tennis wrote:
OK - Here's my issue
[#170243] String.to_sym? — "robertj" <robert_kuzelj@...>
hi,
[#170244] A question about recursive programming — Hank Gong <hankgong@...>
I want to calculate all sum possibility of interger array. I know there are
Hank Gong wrote:
Yes, I agree with you...
Quoting Hank Gong <hankgong@gmail.com>:
[#170251] How To Turn Off Net::HTTP w/SSL Certificate Warnings? — Keith Fahlgren <keith@...>
Hi,
>>>>> "K" == Keith Fahlgren <keith@oreilly.com> writes:
[#170291] GC in lambdas? — "ako..." <akonsu@...>
hello,
[#170319] rendering charts via rails — "larry" <ljw1001@...>
Is there a recommended way to render charts from a ruby-based web
[#170321] matches -> regexp ? — "ako..." <akonsu@...>
Hello,
[#170341] Hibernate on Ruby — listrecv@...
Any ideas on using Hibernate OR/M from within Ruby?
Why, when you have Og, ActiveRecord and a few other interesting
ActiveRecord is great for small-to-medium things, but does quickly show
[#170343] LXR style cross references Ruby code — listrecv@...
While trying to navigate a large, unfamiliar application, I find a
[#170348] Idiom wanted: do-while — Adam Shelly <adam.shelly@...>
So I was working on the quiz solution, and
On Dec 12, 2005, at 4:34 PM, Adam Shelly wrote:
On Tue, Dec 13, 2005 at 07:42:59AM +0900, James Edward Gray II wrote:
You can also do
I was certain I had tried that....
On Monday 12 December 2005 05:42 pm, James Edward Gray II wrote:
On 12/12/05, Steve Litt <slitt@earthlink.net> wrote:
On Tuesday 13 December 2005 11:09 am, Jacob Fugal wrote:
[#170361] Way to combing Hash Definition sans => with %w() ? — Dan Diebolt <dandiebolt@...>
I have a large amount of text pairs (no spaces inthe text) that I need to turn into a hash. Is there a shorcut that will allow me to create the hash without entering the quotes and arrows?
On Dec 12, 2005, at 5:25 PM, Dan Diebolt wrote:
>Hash[*%w(apple bananna orange grape)]
[#170371] Using Float For Currency — "Hunter's Lists" <lists@...>
Howdy,
Quoting Hunter's Lists <lists@lastonepicked.com>:
On 12/12/05, mental@rydia.net <mental@rydia.net> wrote:
Joe Van Dyk wrote:
mathew wrote:
On Dec 16, 2005, at 4:39 PM, Stephen Waits wrote:
[#170400] Accessing C structures in Ruby — Joe Van Dyk <joevandyk@...>
(I've already looked at Swig, btw. I'd like to do this one by hand.)
Joe Van Dyk wrote:
On 12/12/05, Eero Saynatkari <ruby-forum-reg@mailinator.com> wrote:
[#170408] Ruby in a Nutshell - still worthwhile? — Jeff Cohen <cohen.jeff@...>
I'm looking for a quick reference guide to Ruby. I have the PickAxe
[#170444] KirbyBase 2.5: Problem pdating records — "basi" <basi_lio@...>
Hello,
[#170447] Ruby Weekly News 5th - 11th December 2005 — timsuth@... (Tim Sutherland)
http://www.rubyweeklynews.org/20051211.html
[#170453] stable sort_by? — Patrick Gundlach <clr10.10.randomuser@...>
Hi,
Patrick Gundlach wrote:
[#170456] Re: stable sort_by? — "Kroeger, Simon (ext)" <simon.kroeger.ext@...>
[#170463] Re: stable sort_by? — "Kroeger, Simon (ext)" <simon.kroeger.ext@...>
[#170478] Iconv weirdness on Windows XP — Wilson Bilkovich <wilsonb@...>
Is anyone else having this problem?
I wrote just before:
[#170482] Array.invert — Christer Nilsson <janchrister.nilsson@...>
I would like to see invert "rubyfied".
[#170491] Re: stable sort_by? — "Kroeger, Simon (ext)" <simon.kroeger.ext@...>
[#170498] Re: Array.invert — "Kroeger, Simon (ext)" <simon.kroeger.ext@...>
Hi Christer,
[#170510] Private attribute or accessor? — "Sam Kong" <sam.s.kong@...>
Hi!
[#170512] Concerning the #to_* convention — Daniel Schierbeck <daniel.schierbeck@...>
Howdy partners! I'm having a bit of fun writing a Ruby XML document
[#170517] ,elegant — Leslie Viljoen <leslie@...>
Hiya!
[#170525] US Zipcode API for Ruby? — Mark Ericson <mark.ericson@...>
Does anyone know of API (and database) for Ruby to provide information
There is a 40,000+ zip code database in CivicSpace labs that has lat and long by zip code:
[#170539] ruby-ldap: uninitialized constant LDAP::LDAP_CONTROL_PAGEDRESULTS — James Hughes <hughes.james@...>
Hi,
[#170553] Rails 1.0: Party like it's one oh oh! — David Heinemeier Hansson <david.heinemeier@...>
15 months after the first public release, Rails has arrived at the big
[#170564] Java is so 90s - thought you'd all like this — Stephen Kellett <snail@...>
Doesn't mention Ruby directly but does talk about whats hip (LAMP which
In message <20051214115617.GF8831@chastell.shot.pl>, Shot - Piotr
[#170571] Puby 1.0 Release! — "Hampton" <hcatlin@...>
On 2005.12.14 09:27, "Hampton" <hcatlin@gmail.com> wrote:
[#170593] Undefined method — "Mark Liang" <mwql.aus@...>
I've recently started learning Ruby, I cannot seem to locate the
[#170594] Ruby as a MUD language — malcolm.ryan@...
I'm thinking about building a new MUD server (for those who are less
[#170600] Correct way to use DRb within a Rails Controller? — x1 <caldridge@...>
[not really rails specific]
[#170602] Instant Rails 1.0 preview6 — Curt Hibbs <curt.hibbs@...>
This release upgrades Rails to version 1.0.
[#170616] convert seconds to hours:minutes:seconds — `p <a@...>
hello!
As long as you dont go past 24 hours you can use the Time class:
Andy Delcambre wrote:
On Wednesday 14 December 2005 05:21 am, Andy Delcambre wrote:
Steve Litt wrote:
[#170623] Re: convert seconds to hours:minutes:seconds — "Kroeger, Simon (ext)" <simon.kroeger.ext@...>
[#170630] string mangling — Martin Pirker <crf@...>
Imagine an input string
[#170634] English Ruby Home as a second class citizen — <slonik.az@...>
Hi Everyone,
slonik.az@gmail.com wrote:
I use
cap wrote:
On 12/14/05, James Britt <james_b@neurogami.com> wrote:
On 12/14/05, Jacob Fugal <lukfugl@gmail.com> wrote:
On 12/14/05, Wilson Bilkovich <wilsonb@gmail.com> wrote:
[#170647] jEdit Ruby Editor Plugin 0.7.6 released — "Rob ." <rob.02004@...>
The jEdit Ruby Editor Plugin release 0.7.6 is available for download at:
[#170652] Differences between 1.8.2 and 1.8.4 — Joe Van Dyk <joevandyk@...>
Is there any place that summarizes the major differences between Ruby
[#170668] Freeride on Windows XP - where does the output go? — "Craig" <luthycraig@...>
I want to use Freeride on my Win XP box, Version 2002, sp 1, but the
You need to set a debugger option. the menu command "Edit >>
[#170676] ruby beats them all — "Peter Ertl" <pertl@...>
that why I love ruby (and functional languages in general)
"Peter Ertl" <pertl@gmx.org> writes:
Nice.
[#170706] regular expressions question — "ako..." <akonsu@...>
hello,
On Wed, 14 Dec 2005 21:59:27 -0000, ako... <akonsu@gmail.com> wrote:
You should be able to tell who this message is meant for:
On Dec 14, 2005, at 6:16 PM, Jeff Wood wrote:
James Edward Gray II wrote:
James Edward Gray II wrote:
Jeff Wood wrote:
On Dec 15, 2005, at 2:12 PM, Neil Stevens wrote:
James Edward Gray II wrote:
On Dec 15, 2005, at 3:07 PM, Neil Stevens wrote:
James Edward Gray II wrote:
I know I said I'd shut up, and I am, but I did feel that after some of
On 12/15/05, jeff.darklight@gmail.com <jeff.darklight@gmail.com> wrote:
Ryan Leavengood wrote:
On 12/15/05, Neil Stevens <neil@hakubi.us> wrote:
Ryan Leavengood wrote:
[#170708] can someone improve on this multiple inheritence methodology? — "Ara.T.Howard" <ara.t.howard@...>
Hi --
On Thu, 15 Dec 2005 dblack@wobblini.net wrote:
[#170735] Forthcoming 2nd ed. of _The Ruby Way_ — rubyhacker@...
Hello, all.
On 12/14/05, rubyhacker@gmail.com <rubyhacker@gmail.com> wrote:
In article <e3ecfac70512151053y523c7364ha47b2b79b8985f8d@mail.gmail.com>,
[#170741] string comparison — Boris Glawe <boris@...>
Hi,
[#170756] Ruby group in Orlando Florida — Steve Litt <slitt@...>
Hi all,
[#170758] GetoptLong example — Steve Litt <slitt@...>
Hi all,
On Wednesday 14 December 2005 07:38 pm, Steve Litt wrote:
[#170778] LISP to Ruby translation — Douglas Livingstone <rampant@...>
Jut a quick one, how do you translate this:
[#170779] iniciante — "tetri" <tetri.mesquita@...>
gostaria de saber se algu駑 recomenda algum material dispon咩el na
[#170798] Dynamically adding methods to a Ruby class — John Lam <drjflam@...>
I just finished writing the first spike for my Ruby CLR bridge tonight, and
[#170814] Re: Question of reference and (sub)strings. — "Daniel Sheppard" <daniels@...>
[#170952] credit card processing — swill <sillewille@...>
Sorry this is so far off topic, but there are a lot of smart,
[#170988] Advanced Ruby Book (was [ANN] Forthcoming 2nd ed. of _The Ruby Way_) — pat eyler <pat.eyler@...>
On 12/15/05, Patrick Hurley <phurley@gmail.com> wrote:
In article <6fd0654b0512151347v3c5558f4ye7546cfe04db61c5@mail.gmail.com>,
On 12/15/05, Phil Tomson <ptkwt@aracnet.com> wrote:
[#171074] Emacs mode question: backward-sexp & forward-sexp for begin..end — David Garamond <lists@...6.isreserved.com>
Hi all,
[#171075] Ruby tail recursion — Mark Ericson <mark.ericson@...>
In another thread someone mentioned tail recursion doesn't work right
-----BEGIN PGP SIGNED MESSAGE-----
I wouldn't really call it optimization (although I guess it is), it's more like implementing them in such a way that you get around the limitations of computer memory. (As opposed to just making them run faster or something.) It doesn't really have anything to do with efficiency in that sense.
[#171099] How come I get two e-mails? — Francis Vidal <francisv.list@...>
Hi,
luke wrote:
On 12/16/05, Chris Game <chrisgame@example.net> wrote:
[#171103] scoped_require 0.0 — Devin Mullins <twifkak@...>
... and from the substratum, it arises ...
[#171112] nonblocking TCPSocket in multithread software. — Arto Pastinen <arto.pastinen@...>
Hi!
It seems work if i lock thread.. funny.. :)
From: "Arto Pastinen" <arto.pastinen@gmail.com>
Arto Pastinen <arto.pastinen@gmail.com> writes:
[#171120] how get data from xls document? — keal <keal21@...>
how get data from excel document (*.xls) without using win32ole?
[#171134] RRobots (#59) — Ruby Quiz <james@...>
The three rules of Ruby Quiz:
On Dec 16, 2005, at 7:29 AM, Ruby Quiz wrote:
[#171150] Smarter creation of redunant methods — "Caleb Tennis" <caleb@...>
I have some methods in a class that look like this:
[#171154] Re: [QUIZ] RRobots (#59) — "Kroeger, Simon (ext)" <simon.kroeger.ext@...>
[#171159] End matching — Steve Litt <slitt@...>
Hi all,
[#171179] Math::PI? —
Hello,
[#171192] RSpec - should_raise method? — Brian Takita <brian.takita@...>
Hello,
[#171240] multiple blocks (unfold) — mental@...
I've been pondering how to write an "unfold" in Ruby lately, and
[#171246] New to coding, lost as hell — Stephen None <mikari@...>
I've been looking into coding for a while now and would really like to
Stephen None wrote:
> I'm currently running Windows 98 (I don't need any more, so no reason to
[#171251] Seattle.rb RubyGems Hackfest this weekend! — Eric Hodel <drbrain@...7.net>
Starting Saturday at 10:30 the second Seattle.rb RubyGems Hackfest
[#171284] String#dump and quotes — "Daniel Berger" <djberg96@...>
Just out of curiosity, why are double quotes added to the start and end
[#171285] how to update gems package version listed by rubygems? — "kwatch" <kwa@...>
How to tell rubygems to update gems package version?
[#171288] Ruby and Debian — Hal Fulton <hal9000@...>
I don't wish to open a can of worms here. I'm not even a Debian
On 12/16/05, Hal Fulton <hal9000@hypermetrics.com> wrote:
Chris Martin wrote:
Hi:
Esteban Manchado Vel痙quez wrote:
Hello.
[#171289] Recruitment translators for new Ruby-GetText-Package — Masao Mutoh <mutoh@...>
Hi all,
On 12/17/05, Masao Mutoh <mutoh@highway.ne.jp> wrote:
Masao Mutoh wrote:
Hi Eero,
Hi Eero,
[#171315] Why would Webrick use 0.0.0.0:3000 instead of 127.0.0.1:3000 ? — Curt Hibbs <curt.hibbs@...>
A guy who was working through my Rolling wit Ruby on Rails tutorial had this
[#171326] Rescuing SyntaxError — Caleb Tennis <caleb@...>
Is it possible to catch illegal syntax errors?
[#171337] gem: after installing display text — "Kurt V. Hindenburg" <ml@...>
Hello,
[#171348] Reminder: Phoenix.rb Meeting Monday, Dec 19 — James Britt <james_b@...>
Just a reminder that the Phoenix Ruby Users Group is meeting this coming
On Saturday 17 December 2005 07:15 pm, James Britt wrote:
[#171357] Spawning — Steve Litt <slitt@...>
Hi all,
On Dec 17, 2005, at 10:56 PM, Steve Litt wrote:
On Sunday 18 December 2005 12:09 am, James Edward Gray II wrote:
On Sun, 18 Dec 2005 12:58:09 -0000, Stefan Lang <langstefan@gmx.at> wrote:
[#171370] How to grep the shortly matching in a string — Arowana Lin <priceagle@...>
I used regular expression to grep content from a web page,but it seems
[#171378] Better way to read data from IO into packets? — Levin Alexander <levin@...>
Hi,
[#171404] Re: Removing parts from a file — Harpo <trashcan@...>
Thomas Dutch wrote:
Harpo wrote:
Hmmm... not a general solution, but depending on the specific
[#171410] Any TextMate Editor equivelent for Windows ? — "Jules" <Roseanna80@...>
Hello
Jules wrote:
On Mon, Dec 19, 2005 at 04:32:37AM +0900, James Britt wrote:
On 12/18/05, Chad Perrin <perrin@apotheon.com> wrote:
On Mon, Dec 19, 2005 at 07:22:50AM +0900, Gregory Brown wrote:
Hello
On Dec 19, 2005, at 10:32 AM, Jules wrote:
On Mon, 19 Dec 2005 09:10:04 -0800, James Edward Gray II
On Tue, Dec 20, 2005 at 02:21:59AM +0900, Gary Allum wrote:
Hi!
On Wed, Dec 21, 2005 at 04:03:13AM +0900, Josef 'Jupp' SCHUGT wrote:
On 12/20/05, Chad Perrin <perrin@apotheon.com> wrote:
On Wed, Dec 21, 2005 at 04:31:33AM +0900, Gregory Brown wrote:
On 12/20/05, Chad Perrin <perrin@apotheon.com> wrote:
On Wed, Dec 21, 2005 at 06:13:13AM +0900, Gregory Brown wrote:
On Mon, Dec 19, 2005 at 03:57:46AM +0900, Jules wrote:
Based on this thread, I downloaded RadRails last night. After several
Well I use jedit on windows and found it very handy. Its slight pain to
On 12/18/05, Jules <Roseanna80@hotmail.com> wrote:
On Tue, 2005-12-20 at 09:26 +0900, Wilson Bilkovich wrote:
On 12/20/05, Alexander Jakopin <setrodox@users.sourceforge.net> wrote:
[#171419] Newbie: require 'filename' - undefined local variable or method... — "Grehom" <grehom@...>
I have one line of code in a file called 'stuff.rb':
Thanks Gene and Ezra, I tried your suggestions but with no luck. I
Grehom wrote:
[#171426] Unescaped text in REXML — Farrel Lifson <farrel.lifson@...>
Hi Rubyists,
[#171439] Writing to ferret index from multiple processes — "Andreas S." <f@...>
Hi,
Hi Andreas,
David Balmain wrote:
I'm not to sure about this one. Are you by any chance explicitely
David Balmain wrote:
[#171447] How to know if a method is read-write or read-only — "Trans" <transfire@...>
I've now come across a second usecase for knowing if a method is
[#171448] Rant 0.5.4 — Stefan Lang <langstefan@...>
Rant is a flexible build tool written entirely in Ruby,
[#171465] shortcut to self.class ? — "Mark J.Reed" <mreed@...>
Without writing my own alias, is there an easy way to get the class of
Mark J. Reed wrote:
[#171472] :: without a prefix (global?) — List Recv <listrecv@...>
I've found some cases where things don't work correctly unless they're
[#171481] Is there any chemistry-related ruby application? — Hanjo Kim <lordmiss@...>
Hello, I'm new to ruby and this lists, and woking in cheminformatics field.
[#171490] How do I do this in ruby? — kishor.gurtu@...
Hi,
[#171502] TheYAML change the id of Object — Andrea <andrea.reginato@...>
I'm using an hash object and i use a Termine Object for the key and, for
[#171521] Purpose of Ruby Talk — Gary Allum <shadarach@...>
Is there a clear cut purpose for ruby-talk, or can most any ruby topic
[#171528] ruby-dev summary 27761-28026 — SASADA Koichi <ko1@...>
Hi,
SASADA Koichi wrote:
On Tue, 20 Dec 2005, Joel VanderWerf wrote:
On Dec 19, 2005, at 11:08 AM, ara.t.howard@noaa.gov wrote:
[#171530] RubyPlanet.NET: please submit URLs for Ruby blog feeds — "Mark Watson" <mark.watson@...>
Hello all. I am just setting up the web site http://RubyPlanet.NET as
[#171533] Dumb question concerning ruby 1.8.2 and 1.8.3 — Oliver Andrich <oliver.andrich@...>
Hi,
On Dec 19, 2005, at 12:22 PM, Oliver Andrich wrote:
James Edward Gray II ha scritto:
[#171552] Rails + Amazon — Rubena Rub <rubybot@...>
Hi,
[#171562] Subversion on RubyForge — "Tom Copeland" <tom@...>
Thought folks might be interested in this analysis of Subversion usage
[#171577] how to use a proc like a method — hochherz <hochherz@...>
is there a way to use a proc like a method?
[#171578] is there a way to use a proc like a method? — hochherz <hochherz@...>
is there a way to use a proc like a method?
[#171593] Very new to Ruby--needs help — "Beginner" <smankan@...>
Dear Ruby Gurus,
[#171594] Blog for Ruby — "Gary Allum" <shadarach@...>
Hi!
[#171649] Replacing single quotes and backslashes in strings — Phil Rhoades <phil@...>
People,
[#171653] iterate chars in a string — shinya <piccionevolante@...>
Hi there!
On 12/20/05, Logan Capaldo <logancapaldo@gmail.com> wrote:>> On Dec 20, 2005, at 4:52 AM, shinya wrote:>> > Hi there!> > I'm a ruby newbie, and I'm searching for a way to iterate every> > char in a string, but I cannot find any easy way. My problem is to> > look at every char in a string and match it with some known letter.> > I use the String#each_byte iterator for now, but it still be a poor> > solution :/> > Thanks,> >> > shinya.> >>> The usual idiom is str.split(//).each do |character|> # do stuff with character> end
shinya wrote:
a="123"
Lyndon Samson wrote:
Robert Klemme wrote:
Kev Jackson wrote:
[#171657] Object Database Access v 1.0 released — Hannes Wyss <hwyss@...>
Hi all!
[#171669] gem install mysql error — javachallenge@...
gem install mysql
Do you have the mysql client libraries installed?
[#171671] Nitro Screencasts — George Moschovitis <george.moschovitis@...>
Dear devs,
On 12/20/05, George Moschovitis <george.moschovitis@gmail.com> wrote:
On 12/20/05, George Moschovitis <george.moschovitis@gmail.com> wrote:
> Very nice. I'm convinced enough to go and build a toy with Nitro to
... So is Rails, and the thing that helped build it's user base as a 10
> Since there is so little documentation, they really need SOMETHING that
[#171700] ruby -r profile gives wrong percentage? — javachallenge@...
I am using Windows, and I was testing the profiler with the simple
[#171708] Bruce Eckel wouldn't know why to switch from Python to Ruby — "cyberco" <cyberco@...>
Bruce Eckel (author of amongst other popular books 'Thinking in Java')
I don't think he has "doubts" about someone switching. He wants to see
Eckel's article is getting pretty long in the tooth at this point -- I
rcoder ha scritto:
Doug H wrote on 12/20/2005 6:42 PM:
tony summerfelt ha scritto:
On Fri, Dec 23, 2005 at 03:42:50AM +0900, gabriele renzi wrote:
Chad Perrin ha scritto:
On Fri, Dec 23, 2005 at 12:17:50PM +0900, gabriele renzi wrote:
On 12/22/05, Chad Perrin <perrin@apotheon.com> wrote:
On Friday 23 December 2005 09:40 am, Patrick Hurley wrote:
* Steve Litt (slitt@earthlink.net) wrote:
On Tuesday 27 December 2005 08:49 pm, Paul Duncan wrote:
[#171723] RubyPlanet.NET is up and running — "Mark Watson" <mark.watson@...>
I would like to thank the people who sent in links to their Ruby
[#171724] Shelve module in Ruby? — "Bryan" <bryanweatherly@...>
Hi,
[#171726] apt-sary-0.1 — rubikitch@...
Hi,
[#171729] Difficulty opening a socket — ra88it ra88it <mr.ra88it@...>
Hello,
ra88it ra88it wrote:
[#171758] Bruce Eckel and Ruby — Hal Fulton <hal9000@...>
<sigh>
On 12/20/05, Hal Fulton <hal9000@hypermetrics.com> wrote:
Ryan Leavengood wrote:
Timothy Hunter wrote:
Hal Fulton wrote:
Hal Fulton wrote:
Nikolai Weibull ha scritto:
Hal Fulton wrote on 12/20/2005 3:33 PM:
In message <BF0740FD-4249-4BDE-988B-F21CFF764FD5@mac.com>,
[#171765] Posted my newbie code — "Ross Bamford" <rosco@...>
Hi,
[#171786] Re: [grammarians] shortcut to self.class ? — "Berger, Daniel" <Daniel.Berger@...>
> -----Original Message-----
[#171797] =~ vs match - Some benchmarks. — John Carter <john.carter@...>
While profiling some code I noticed =~, String.match and Regexp.match
[#171828] Port Knocking — sven.schott@...
Has anyone seen (or written) any port knocking implementations in Ruby?
[#171830] The "ruby way" to break apart a name? — Jeff Cohen <cohen.jeff@...>
Switching from C# to Ruby, and learning to write "the Ruby way"... is
On Wed, Dec 21, 2005 at 10:57:01AM +0900, Jeff Cohen wrote:
Jeff Cohen wrote:
On Dec 21, 2005, at 4:17 PM, mathew wrote:
We had a similar problem at work.
This reminds me of U.S. street addresses. I (on and off) do work that
On Sunday 01 January 2006 10:25 pm, Gerardo Santana Gez Garrido wrote:
[#171844] problem with gem — Mohammad Khan <beeplove@...>
Hello,
[#171847] When are attr_reader type methods called? — "Vivek" <krishna.vivek@...>
I couldnt get a proper subject for the post but here is my question.
On 12/20/05, Vivek <krishna.vivek@gmail.com> wrote:
[#171851] Merging two Word documents with Ruby? — Denver Mike <denvermike@...>
I've got a bugger of a problem and I thought I'd toss it out there to
Several points
[#171864] How are people making use of Iconv? — Wilson Bilkovich <wilsonb@...>
Since Iconv jumped out of the pond and chewed on my leg the other
Wilson Bilkovich wrote:
* Andreas S. (f@andreas-s.net) wrote:
[#171871] Re: Help with object scope — "Daniel Sheppard" <daniels@...>
module M
[#171882] Multibyte regexps... — Horacio Sanson <hsanson@...>
[#171891] A interesting obervation about object_id method — Hank Gong <hankgong@...>
#integer
[#171893] How can I get soap4r to work with digest authentication? — yonatan_avraham@...
Hello,
Security alert: Don't use my code as-is! I checked with a sniffer and
[#171908] ruby videos — olczyk <doctlo-usenet@...>
Aside from the Rails demo, are there any ruby videos online?
On Dec 21, 2005, at 8:22 AM, olczyk wrote:
[#171918] OT: Mac configuration — "nsquared" <tim@...>
I am switching from Windows to Mac specifically for Ruby development.
[#171926] Looking for better Ruby/Tk references... — Chris Dagnon <chris.dagnon@...>
... or better GUI APIs for Ruby.
Hi Chris!
> ... and without answering your other questions, is the following
[#171943] Why not Python? (No, no, I am not a spy) — "Tolga" <tolgacavdar@...>
First of all and very first of all, I must state that I am not an enemy
Am Wed, 21 Dec 2005 08:54:12 -0800 schrieb Tolga:
On Wednesday 21 December 2005 01:22 pm, Steffen Mutter wrote:
Steve Litt wrote:
On 12/22/05, J. Ryan Sobol <ryansobol@gmail.com> wrote:
Hi!
On Thursday 22 December 2005 11:07 am, Gene Tani wrote:
Actually, the one comparison that gets touched on a bit too lightly ... is
Jeff Wood <jeff.darklight@gmail.com> writes:
... I believe the question was in regards to implementing factorial in a
Jeff Wood <jeff.darklight@gmail.com> writes:
ah, but to me that isn't completely iterative.... iterative is using a loop
[#171976] move to front of array — Payton Swick <payton@...>
Hi,
Payton Swick wrote:
[#172004] More "Ruby for Java developers" — Tom Copeland <tom@...>
There's a new article on IBM developerWorks called "Ruby off the Rails":
[#172010] String > Integer Conversion Problem — Matthew Feadler <matthew@...>
Retro thanks to all who helped me with my last post. I'm certainly more
On Dec 21, 2005, at 4:39 PM, Matthew Feadler wrote:
Matthew Feadler wrote:
On 12/21/05, Timothy Hunter <cyclists@nc.rr.com> wrote:
On Thu, 22 Dec 2005 14:07:03 -0000, jwesley <justin.w.smith@gmail.com>
Hi --
dblack@wobblini.net wrote:
Hi --
On 12/22/05, dblack@wobblini.net <dblack@wobblini.net> wrote:
First, thanks all very much for the lively discussion thus far. It's
Matthew Feadler wrote:
[#172019] Regex: Up for a challenge? — "basi" <basi_lio@...>
Hello,
[#172024] unit tests == ugly code? — Joe Van Dyk <joevandyk@...>
I've found that when I write the tests first, and then write the code,
[#172052] OpenGl — Raymond Brown <raymond@...>
Any willing to talk offline or here if all are interested in the
[#172057] Help needed wrapping C library for Ruby extension — Scott Raymond <scottraymond@...>
Hi-
[#172069] Problem with: Exception: cannot convert Class into String — "basi" <basi_lio@...>
Hello:
hello,
Yes, it is incomplete. I was illustrating that the variable aString is
Hi,
[#172089] Strange StringScanner behaviour — Neowulf <neowulf@...>
Hi all,
Anandh Kumar wrote:
On Mon, Jun 15, 2009 at 11:56 PM, Anandh
[#172127] Re: Bruce Eckel and Ruby — "Molitor, Stephen L" <Stephen.L.Molitor@...>
Sorry, but I hate it when people attack the arguer instead of the
[#172151] Ruby version of UMENU — Steve Litt <slitt@...>
Hi all,
On 12/22/05, Steve Litt <slitt@earthlink.net> wrote:
On Thursday 22 December 2005 01:56 pm, Gregory Brown wrote:
On 12/22/05, Steve Litt <slitt@earthlink.net> wrote:
On Thursday 22 December 2005 04:51 pm, Gregory Brown wrote:
[#172163] Diff of opinion on dynamic stuff — "Drew Mills" <drewmills@...>
Let me preface this post by saying that I'm no Ruby expert. I like it.
Hi,
Yukihiro Matsumoto wrote:
On Fri, Dec 23, 2005 at 07:36:48AM +0900, why the lucky stiff wrote:
Bob Hutchison wrote:
Drew Mills wrote:
[#172168] How do you know what class defines method foo()? — "Sam Kong" <sam.s.kong@...>
Hi, folks!
[#172170] BigDecimal#sqrt — James Edward Gray II <james@...>
I'm trying to understand the argument to BigDecimal#sqrt. I figured
[#172178] WinXP, no braces in irb. — klausa <iIdont@...>
Hi,
[#172191] xslt processor for ruby — Agnieszka Figiel <agnieszka.figiel@...>
Hello,
[#172200] correct terminology for a function that yields — Joe Van Dyk <joevandyk@...>
def foo
[#172202] What's the "#" for? — "redrhodes" <richstep911@...>
I've started on my first ruby project and came accross the following
[#172232] # guide — Martin Fowler <mf@...>
ruby-talk-admin@ruby-lang.org wrote:
[#172270] character safe CSV parser. — "sean.swolfe@..." <sean.swolfe@...>
I was running into difficulties with the CSV library in Ruby. I had
[#172275] Displaying object variables, not obj ID — Tobias Jonch <joench@...>
I'm having problems with displaying an object correctly. I keep getting the
[#172280] Quick Regex Query — "Neowulf" <neowulf@...>
Hi all,
[#172320] multithreaded file access — Matias Surdi <matiassurdi@...>
Hi...
Well, I think it's OK to do that.
On Dec 23, 2005, at 12:12 PM, Jellen wrote:
On 12/23/05, J. Ryan Sobol <ryansobol@gmail.com> wrote:> Correct me if I'm wrong, but your examples only prove that the thread> on the CPU will be able to append the file. I *think* Matias wants> to know if the statement ( File.new('filename','a').puts("this is the> string") ) is atomic. Or in other words, do you need to enforce> mutual exclusive access to the file with a mutex? Unfortunately, I> don't have an answer to that question.
On Dec 23, 2005, at 4:13 PM, Ilmari Heikkinen wrote:
On 12/23/05, J. Ryan Sobol <ryansobol@gmail.com> wrote:> On Dec 23, 2005, at 4:13 PM, Ilmari Heikkinen wrote:> > [kig@jugend:~] ruby fw_test.rb> > puts in different threads seems to be atomic>> Crafty test program. Coincidentally, my results differ from yours.>> $ ruby fw_test.rb> puts in different threads isn't atomic> $ ruby -v> ruby 1.8.2 (2004-12-25) [powerpc-darwin8.3.0]
On Dec 23, 2005, at 5:23 PM, Ilmari Heikkinen wrote:
[#172352] Ruby faster than Python??? — Steve Litt <slitt@...>
Hi all,
[#172375] kernel#select and threads — Jon Smirl <jonsmirl@...>
Does calling kernel#select stop all ruby threads while it is waiting
[#172388] Translate from Python to Ruby — "Sam Kong" <sam.s.kong@...>
Hi!
[#172389] How to sort this hash? — x1 <caldridge@...>
Is it possible to sort the jobs hash below based on values such as
x1 wrote:
Simon, would you be willing to explain the syntax you used here:
[#172411] Installing Ruby and Rails on Ubuntu — Mark <mark.ericson@...>
I've been following the instructions at:
[#172422] Ruby christmas — "Franz Hartmann" <porschefranz@...>
Dear Ruby community,
oh how very embarassing! i wanted to attach "christmas.jpg" and clicked on
[#172428] Merry Christmas! — Christian Neukirchen <chneukirchen@...>
[#172435] ruby 1.8.4 released — Yukihiro Matsumoto <matz@...>
Merry Christmas!
[#172444] Ruby 1.8.4 — Dirk Meijer <hawkman.gelooft@...>
Matz, thank you for releasing 1.8.4!!
Dirk Meijer wrote...
Dave Burt wrote:
Eric Christensen wrote:
[#172453] Please help on gem packaging — Mohammad Khan <beeplove@...>
Hello,
[#172462] Ruby 1.8.4 Mac OS X readline problems — Daniel Harple <dharple@...>
Is anyone else having this problem?
On 12/24/05, J. Ryan Sobol <ryansobol@gmail.com> wrote:
On 12/25/05, Jim Menard <jim.menard@gmail.com> wrote:> On 12/24/05, J. Ryan Sobol <ryansobol@gmail.com> wrote:> >> > On Dec 24, 2005, at 12:58 PM, Daniel Harple wrote:> >> > > Is anyone else having this problem?>> Yes, I am. I don't want to install Fink or Darwin ports. I got> readline working with 1.8.2, and am now struggling to get it to work> with 1.8.4. readline.bundle is in ruby/1.8/powerpc-darwin8.3.0.>> I used "./configure --with-readline --enable-shared" to configure> Ruby, then make, then make install. When I tried running "rake test"> on a random Rails 1.0 project, the unit tests fail with>> /usr/local/bin/ruby -Ilib:test> "/usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake/rake_test_loader.rb"> "test/unit/bookmark_test.rb" "test/unit/group_test.rb"> "test/unit/inbox_test.rb" "test/unit/user_test.rb"> dyld: NSLinkModule() error> dyld: Symbol not found: _rl_filename_completion_function> Referenced from: /usr/local/lib/ruby/1.8/powerpc-darwin8.3.0/readline.bundle> Expected in: flat namespace>> rake aborted!> Command failed with status (): [/usr/local/bin/ruby -Ilib:test "/usr/local...]>Hello
[#172490] Where is the attribute definition of Category class? — "sadys.humblebee@..." <sadys.humblebee@...>
Hi everyone, I'm a newbie of ruby and rubyonrails.
Hi --
I know, i know,:-)
[#172494] why there's no ruby 1.8.4 for win-one-click-installer? — "Arie Kusuma Atmaja" <ariekusumaatmaja@...>
http://rubyforge.org/frs/?group_id=167
Arie Kusuma Atmaja wrote:
On 12/24/05, James Britt <james_b@neurogami.com> wrote:
It might not be too difficult to include options of including or excluding
[#172507] Block comments syntax — Jonathan Leighton <lists@...>
Hello,
On Sunday 25 December 2005 12:53, Jonathan Leighton wrote:
On Sun, 2005-12-25 at 21:45 +0900, Stefan Lang wrote:
[#172525] Using an existing session to grab a page — Chad Layton <laytoc@...>
I'm rather new to both web programming and ruby so forgive me if my
[#172526] Inconsistent testing Ruby 1.8.4 on Tiger. — "sean.swolfe@..." <sean.swolfe@...>
I was able to build ruby 1.8.4 on my Tiger (OSX 10.4.3) box here.
[#172540] - E05 - Ruby 1.8.4 ri class documentation — Ilias Lazaridis <ilias@...>
I've seen that ruby 1.8.4 was released.
[#172559] Thread synchronization: Mutex or Monitor?? — <slonik.az@...>
Hi Rubyists!!
[#172599] Re: The Expert Ruby Programmer — "basi" <basi_lio@...>
Hi,
On 12/26/05, basi <basi_lio@hotmail.com> wrote:
On Tuesday 27 December 2005 12:11 am, Gregory Brown wrote:
On Dec 27, 2005, at 1:01 PM, Steve Litt wrote:
[#172611] Found a neat trick for doing recursive one-liners — Gary Watson <pfharlock@...>
This is probably something everyone in here already knows about, but I
Or you can use the tools designed for finding stuff :)
On Tue, 27 Dec 2005, Gary Watson wrote:
Ara,
[#172625] SOAP + HTTP Authentication — Drew Butler <nodrew@...>
Hey,
-----BEGIN PGP SIGNED MESSAGE-----
On Sun, Feb 05, 2006 at 08:58:21PM +0900, NAKAMURA, Hiroshi wrote:
[#172627] can't figure out what's wrong — erik blas <ether.sa@...>
I'm reading the why's ruby guide, and i've retyped a class in the guide
[#172629] ruby-dipus 0.1.2 — Ilmari Heikkinen <ilmari.heikkinen@...>
DIPUS - Distributed IPC by Proxying UNIX Sockets================================================Sockets with user authentication, file permissions, encryption,service discovery and network transparent addressing.
[#172638] (Real) Primitive Ruby Generics support — Isaac Devine <isaac.devine@...>
Hi all,
Isaac Devine wrote:
On Wed, 28 Dec 2005 23:24:01 +0900
Isaac Devine wrote:
Hi --
dblack@wobblini.net wrote:
ToRA wrote:
[#172639] rubygems win32 error with ruby 1.8.4 (final) — "simonh" <simonharrison@...>
hi all. i'm using the ruby 1.8.4 binary from garbagecollect with dll's
[#172649] Re: The Expert Ruby Programmer — "Robert Klemme" <bob.news@...>
basi <basi_lio@hotmail.com> wrote:
Warning: Newby's first post.
Dan,
On 12/27/05, basi <basi_lio@hotmail.com> wrote:
On 12/27/05, Wilson Bilkovich <wilsonb@gmail.com> wrote:
Ryan Leavengood wrote:
[#172653] Blunyx game library for Ruby — Alexander Jakopin <setrodox@...>
I'm very new at Ruby, and I like it very much. :)
great!
[#172700] Re: ruby 1.8.4 released — "Bennett, Patrick" <Patrick.Bennett@...>
Better optimizations...
On 27/12/05, Bennett, Patrick <Patrick.Bennett@inin.com> wrote:
On 27/12/05, Austin Ziegler <halostatue@gmail.com> wrote:
I think I'm going to stick with VC++ 7.1 for this round. I have a
Hi,
[#172708] gem and ruby extension — Guillaume Marcais <guslist@...>
I created a gem for a ruby C extension. Compiling the gem and
[#172711] Medical APIs — Tom Jordan <tdjordan@...>
Hi All:
[#172721] Command-line option parsing — "Eric J. Roode" <sdn.girths00869@...>
Greetings,
"Robert Klemme" <bob.news@gmx.net> wrote in
[#172730] Is there an easy way to extend an object? — Jeff Cohen <cohen.jeff@...>
Given an object, is there a clean way of creating a new object that
[#172766] Nitro Screencast: Web 2.0, Flickr ignited — George Moschovitis <george.moschovitis@...>
Dear devs,
[#172779] Ruby Curriculum for coworkers — ssmoot@...
I've been tasked with coming up with a curriculum for Rails coworkers.
On Wednesday 28 December 2005 10:42 am, ssmoot@gmail.com wrote:
On Dec 28, 2005, at 10:13 AM, Steve Litt wrote:
Thanks for the well thought out and thought-provoking reply!
[#172780] Included modules and String — Rich <rjseagraves@...>
I looked at the RDoc for the String class and found that the class
[#172798] Problem with Ruby 1.8.4, C extensions, Solaris — Daniel Berger <Daniel.Berger@...>
Hi all,
[#172818] What is the difference between :foo and "foo" ? — "Surgeon" <biyokuantum@...>
Hi,
2005/12/28, Surgeon <biyokuantum@gmail.com>:
On Wednesday 28 December 2005 02:32 pm, Alex Knaub wrote:
On Dec 28, 2005, at 1:47 PM, Steve Litt wrote:
On Wednesday 28 December 2005 03:00 pm, James Edward Gray II wrote:
attr_reader :fname, :lname (attr_reader "fname", "lname" works too)
On Thu, 29 Dec 2005, Johannes Friestad wrote:
That's where the 'can be' part comes in :)
ara wrote:
On 12/28/05, ara.t.howard@noaa.gov <ara.t.howard@noaa.gov> wrote:
BTW: Ruby version 1.8.2, Win XP Pro, Pentium M 2.0 GHz
On Thu, 29 Dec 2005, Johannes Friestad wrote:
ara wrote:
On Thursday 29 December 2005 03:03 am, Surgeon wrote:
Hi --
On Thursday 29 December 2005 10:16 am, dblack@wobblini.net wrote:
Hi --
Hi --
-----BEGIN PGP SIGNED MESSAGE-----
On Fri, Dec 30, 2005 at 10:46:23AM +0900, Eero Saynatkari wrote:
-----BEGIN PGP SIGNED MESSAGE-----
On Thursday 29 December 2005 8:45 am, Steve Litt wrote:
On Thursday 29 December 2005 11:20 am, Kirk Haines wrote:
On Dec 29, 2005, at 11:08 AM, Steve Litt wrote:
On 29/12/05, Steve Litt <slitt@earthlink.net> wrote:
Austin Ziegler wrote:
On 29/12/05, Devin Mullins <twifkak@comcast.net> wrote:
Heh, one of my emails to the list got eaten (by a grue?). Let's try this
On Fri, Dec 30, 2005 at 03:01:34PM +0900, Devin Mullins wrote:
On 29/12/05, Steve Litt <slitt@earthlink.net> wrote:
On Thursday 29 December 2005 11:30 am, Austin Ziegler wrote:
Steve Litt <slitt@earthlink.net> writes:
On Friday 30 December 2005 08:06 am, Christian Neukirchen wrote:
Steve Litt <slitt@earthlink.net> writes:
On Friday 30 December 2005 10:35 am, Steve Litt wrote:
On 30/12/05, Steve Litt <slitt@earthlink.net> wrote:
On Friday 30 December 2005 1:03 pm, Austin Ziegler wrote:
On Friday 30 December 2005 03:03 pm, Austin Ziegler wrote:
> I have no idea of the internal representation, but I do know when I use
On Sat, Dec 31, 2005 at 05:03:20AM +0900, Austin Ziegler wrote:
On 30/12/05, Chad Perrin <perrin@apotheon.com> wrote:
On Sat, Dec 31, 2005 at 09:37:00AM +0900, Austin Ziegler wrote:
On 30/12/05, Chad Perrin <perrin@apotheon.com> wrote:
On Sat, Dec 31, 2005 at 09:43:54AM +0900, Austin Ziegler wrote:
On 30/12/05, Chad Perrin <perrin@apotheon.com> wrote:
On Sat, Dec 31, 2005 at 11:50:27AM +0900, Austin Ziegler wrote:
On 30/12/05, Chad Perrin <perrin@apotheon.com> wrote:
On 12/30/05, Austin Ziegler <halostatue@gmail.com> wrote:
On Sat, Dec 31, 2005 at 01:34:26PM +0900, Gregory Brown wrote:
Note: This reply is sent directly to you, not to the list.
Alex Knaub <aknaub@gmail.com> writes:
Yohanes Santoso wrote:
> Question: Would using a constant be equally suitable for expressing
Yohanes Santoso wrote:
Eero Saynatkari <ruby-forum-reg@mailinator.com> writes:
On Thu, Dec 29, 2005 at 11:37:59PM +0900, Yohanes Santoso wrote:
Chad Perrin <perrin@apotheon.com> writes:
On Fri, Dec 30, 2005 at 05:07:35AM +0900, Yohanes Santoso wrote:
On Thursday 29 December 2005 07:36 pm, Chad Perrin wrote:
[#172820] new project: Ruby Message System (RMS) — "Mark Watson" <mark.watson@...>
I have relied on guarenteed delivery asynchronous messaging to build
How about this?
[#172861] Directory and file listing — adam beazley <abeazley@...>
Hello,
Am Donnerstag, den 29.12.2005, 07:07 +0900 schrieb adam beazley:
> thanks for your reply, I believe i understand, however I dont know how
> > But on the string answer of your question:
Thanks for all of the post so far I really appreciate it.
require 'sketchup.rb'
Ok i think you lost me im still very new to ruby and programming in
On 12/29/05, adam beazley <abeazley@gbarchitects.com> wrote:
[#172885] Real-time image processing in Ruby — John Koschwanez <ishkaprog@...>
I'm a Ruby newbie - "Programming Ruby" was great Xmas break reading!
On 12/29/05, John Koschwanez <ishkaprog@gmail.com> wrote:> I'm a Ruby newbie - "Programming Ruby" was great Xmas break reading!> I write image analysis and processing code to analyze single cells under> a microscope in real-time and to automate lab equipment. I now write> solely in C++ for PC, but I would love to use Ruby to quickly try new> ideas without plowing through C++ code. I have read through the forums> and I see Ara Howard is using C extensions to process images - I'll try> the same thing. I have some questions for the group:> - I capture images from a camera, process and analyze them, and display> them at ~10 fps. Ruby-v4l (capture) is for Linux only. Tk is probably> too slow, and someone recommended using OpenGL for display. Has anyone> had success with image capture or display using Ruby? What worked? Any> advice?
[#172902] get mixin's name — Payton Swick <payton@...>
A somewhat weird situation.
[#172928] new to ruby, "requier" not working? — David Just <davidj.just@...>
Hello,
[#172931] Locking classes? — Max Eskin <kurtkilgor@...>
Hi,
[#172953] Ruby-GetText-Package-1.1.0 — Masao Mutoh <mutoh@...>
Hi,
[#172955] Need Help Using Net::SMTP — Dan Diebolt <dandiebolt@...>
I am trying to send email from my comcast email account (say me@comcast.net) to my yahoo email accout (say me@yahoo.com) from a ruby script using net/smtp:
[#172987] Beginners Question — joe quimby <jughead@...>
Hello Folks,
[#172988] RRobots (#59) — Ruby Quiz <james@...>
The tournament has been run, so let's begin with the official results. You can
[#173010] Removing RubyGems — Jonathan Waddilove <jonathan@...>
Hmm, I have ended up with multiple instances of RubyGems installed on my
[#173032] Path Separator and Windows — Justin Johnson <justinjohnson@...>
Using ruby 1.8.2 on Windows XP, the path separator used for things like
Justin Johnson wrote:
Bob Showalter wrote:
Justin Johnson wrote:
On 12/29/05, Bob Showalter <bob_showalter@taylorwhite.com> wrote:
Regardless of the history I am still of the opinion that something
[#173043] create file with LF (not CRLF) in windows — Ben Anderson <benanderson.us@...>
Hi,
[#173063] Using Ruby to Invest in the Market? — Michael Gorsuch <michael.gorsuch@...>
An idea popped in my head today. Has anyone ever used a stock
On Dec 29, 2005, at 7:35 PM, Michael Gorsuch wrote:
[#173083] Fixnums can have instance variables? Cool. — gwtmp01@...
This really surprises me:
On 12/30/05, gwtmp01@mac.com <gwtmp01@mac.com> wrote:
class Object
On 12/30/05, Pete <pertl@gmx.org> wrote:
Quoting http://www.rubygarden.org/faq/entry/show/83 :
[#173096] very simple question — "Tom Cloyd" <tomcloyd@...>
Bewilderer, tired beginner, here.
[#173110] Numeric Maze (#60) — Ruby Quiz <james@...>
The three rules of Ruby Quiz:
Are negative numbers and zero allowed to be a starting point or
On Dec 30, 2005, at 8:37 AM, Ruby Quiz wrote:
On Dec 30, 2005, at 4:17 PM, J. Ryan Sobol wrote:
Stephen Waits wrote:
On 12/31/05, Stephen Waits <steve@waits.net> wrote:
On 12/31/05, Stephen Waits <steve@waits.net> wrote:
On Sun, 01 Jan 2006 04:59:32 +0100, Wilson Bilkovich <wilsonb@gmail.com>
On 1/1/06, Dominik Bathon <dbatml@gmx.de> wrote:>> $ time ruby num_maze.rb 22222 99999> [22222, 22224, 11112, 5556, 2778, 2780, 1390, 1392, 696, 348, 174, 87, 89,> 91, 93, 95, 97, 194, 388, 390, 780, 1560, 1562, 3124, 6248, 12496, 12498,> 24996, 24998, 49996, 49998, 99996, 199992, 199994, 99997, 99999]>> real 0m1.768s> user 0m1.725s> sys 0m0.022s>> ;-)
J. Ryan Sobol wrote:
On 12/30/05, Christer Nilsson <janchrister.nilsson@gmail.com> wrote:
On Dec 30, 2005, at 5:37 PM, Jim Freeze wrote:
J. Ryan Sobol schrieb:
On Dec 30, 2005, at 5:51 PM, Robert Retzbach wrote:
On Dec 30, 2005, at 7:37 AM, Ruby Quiz wrote:
On Jan 1, 2006, at 15:47, James Edward Gray II wrote:
I guess we're allowed to submit solutions now... here's my first ever ruby
Maurice,
Mark: could you explain what you mean? these were outputs from that prog:
On 12/30/05, Ruby Quiz <james@grayproductions.net> wrote:> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=>> by Christer Nilsson>> You have a starting point and a target, say 2 and 9.>> You have a set of three operations:>> double> halve (Odd numbers cannot be halved.)> add_two>> Problem: Move from the starting point to the target, minimizing the number of> operations.>> Examples:>> solve(2,9) # => [2,4,8,16,18,9]> solve(9,2) # => [9,18,20,10,12,6,8,4,2]>>
Hello dear quizzers,
In article
This is my first Ruby quiz. I was hoping to have the whole thing done
On 1/2/06, Gregory Seidman <gsslist+ruby@anthropohedron.net> wrote:> I'm pretty sure the results are guaranteed to> be optimal, too.>
okay here's my shot at the quiz, it's quite large for such a simple
[#173111] On Symbols — Devin Mullins <twifkak@...>
Hey, all you lurkers:
I don't know, they have always made sense to me, which is why I didn't
Ryan Leavengood <leavengood@gmail.com> writes:
The longish 'foo' vs :foo thread was helpful to me as a "nuby" in terms
[#173116] Fwd: [SOLUTION] Sudoku — James Edward Gray II <james@...>
Begin forwarded message:
Greetings,
2005/12/30, Craig Demyanovich demmer12@fastmail.us:
Dirk Meijer wrote:
[#173117] Nukumi2 0.5 released — Christian Neukirchen <chneukirchen@...>
Hello,
[#173125] Method for turning strings into code — Steve Litt <slitt@...>
Hi all,
> > What is the Ruby technique for turning strings into
[#173128] Is the Ruby executable written in C? — Steve Litt <slitt@...>
Hi all,
[#173143] Ruby-Feed parser and relative URL references — eduard <fishkei@...>
I am using Ruby-Feedparser and it works great, but when I try to parse a
[#173149] About Steve Yegge's 'Opinions considered harmful' post — Gregory Brown <gregory.t.brown@...>
Excuse me, but where in this post does anything about Ruby arise?
On Sat, 31 Dec 2005 12:09:51 -0000, Gregory Brown
On Sun, Jan 01, 2006 at 02:52:56AM +0900, Ross Bamford wrote:
[#173179] Another Newb asks questions. — Joseph Divelbiss <joseph@...>
Ok, recently started "trying" to learn this wonderful language, but am
On 12/30/05, Joseph Divelbiss <joseph@joseph.net> wrote:
Wilson Bilkovich wrote:
On 12/30/05, Joseph Divelbiss <joseph@joseph.net> wrote:
Wilson Bilkovich wrote:
Great answers guys! Thanks for the help.. surprisingly a part of what
[#173259] Newb: Search & Replace — Art Gillespie <agillesp@...>
Hi all,
[#173279] A few questions of function and style from a newbie — "Sven Johansson" <sven_u_johansson@...>
Hi, good people of clr,
[#173318] Ruby PDA implementation? — "gregarican" <greg.kujawa@...>
I asked this question a couple of months ago, and now am throwing it
[#173344] discrete event simulation in ruby? — Larry White <ljw1001@...>
I'm looking for a reasonably complete discrete event simulation library in
In article
i'm looking to simulate small, but not 'toy' systems.
[#173396] my stupid code ... — vnpenguin@...
Hi,
[ANN] ruby queue : rq-2.3.1
URIS:
http://codeforpeople.com/lib/ruby/rq/
http://www.linuxjournal.com/article/7922
http://raa.ruby-lang.org/project/rq/
HISTORY:
---
2.3.1:
- added 'stage' option to submit mode, which allows submission in a 'holding'
state. thanks to Juan.Fernandez@eu.Takata.com for this fix!
README:
NAME
rq v2.3.1
SYNOPSIS
rq (queue | export RQ_Q=q) mode [mode_args]* [options]*
DESCRIPTION
ruby queue (rq) is a tool used to create instant linux clusters by managing
sqlite databases as nfs mounted priority work queues. multiple instances of
rq running from multiples hosts can work from these queues to distribute
processing load to n nodes - bringing many dozens of otherwise powerful cpus
to their knees with a single blow. clearly this software should be kept out
of the hands of free radicals, seti enthusiasts, and mr. jeff safran.
the central concept of rq is that n nodes work in isolation to pull jobs from
an central nfs mounted priority work queue in a synchronized fashion. the
nodes have absolutely no knowledge of each other and all communication if done
via the queue meaning that, so long as the queue is available via nfs and a
single node is running jobs from it, the system will continue to process jobs.
there is no centralized process whatsoever - all nodes work to take jobs from
the queue and run them as fast as possible. this creates a system which load
balances automatically and is robust in face of node failures.
the first argument to any rq command is the name of the queue. this name may
be omitted if, and only if, the environment variable RQ_Q has been set to
contain the absolute path of target queue.
rq operates in one of the modes create, submit, resubmit, list, status,
delete, update, query, execute, configure, snapshot, lock, backup, rotate,
feed, or help. depending on the mode of operation and the options used the
meaning of 'mode_args' may change.
MODES
the following mode abbreviations exist
c => create
s => submit
r => resubmit
l => list
ls => list
t => status
d => delete
rm => delete
u => update
q => query
e => execute
C => configure
S => snapshot
L => lock
b => backup
R => rotate
f => feed
h => help
not all modes have abbreviations
create, c :
create a queue. the queue must be located on an nfs mounted file system
visible from all nodes intended to run jobs from it. nfs locking must be
functional on this file system.
examples :
0) to create a queue
~ > rq /path/to/nfs/mounted/q create
or simply
~ > rq /path/to/nfs/mounted/q c
submit, s :
submit jobs to a queue to be proccesed by a feeding node. any 'mode_args'
are taken as the command to run. note that 'mode_args' are subject to shell
expansion - if you don't understand what this means do not use this feature
and pass jobs on stdin.
when running in submit mode a file may by specified as a list of commands to
run using the '--infile, -i' option. this file is taken to be a newline
separated list of commands to submit, blank lines and comments (#) are
allowed. if submitting a large number of jobs the input file method is
MUCH, more efficient. if no commands are specified on the command line rq
automatically reads them from STDIN. yaml formatted files are also allowed
as input (http://www.yaml.org/) - note that the output of nearly all rq
commands is valid yaml and may, therefore, be piped as input into the submit
command. the leading '---' of yaml file may not be omitted.
when submitting the '--priority, -p' option can be used here to determine
the priority of jobs. priorities may be any whole number - zero is the
default. note that submission of a high priority job will NOT supplant
currently running low priority jobs, but higher priority jobs WILL always
migrate above lower priority jobs in the queue in order that they be run as
soon as possible. constant submission of high priority jobs may create a
starvation situation whereby low priority jobs are never allowed to run.
avoiding this situation is the responsibility of the user. the only
guaruntee rq makes regarding job execution is that jobs are executed in an
'oldest highest priority' order and that running jobs are never supplanted.
jobs submitted with the '--stage' option will not be run by any node and
will remain in a 'holding' state until updated (see update mode) into the
'pending' mode, this option allows jobs to entered, or staged, in the queue
and made candidates for running at a later date.
examples :
0) submit the job ls to run on some feeding host
~ > rq q s ls
1) submit the job ls to run on some feeding host, at priority 9
~ > rq -p9 q s ls
2) submit 42000 jobs (quietly) from a command file, marking them as
restartable should the node they are running on reboot.
~ > wc -l cmdfile
42000
~ > rq q s --quiet --restartable < cmdfile
3) submit 42 priority 9 jobs from a command file.
~ > wc -l cmdfile
42
~ > rq -p9 q s < cmdfile
4) submit 42 priority 9 jobs from a command file, marking them as
'important' using the '--tag, -t' option.
~ > wc -l cmdfile
42
~ > rq -p9 -timportant q s < cmdfile
5) re-submit all the 'important' jobs (see 'query' section below)
~ > rq q query tag=important | rq q s
6) re-submit all jobs which are already finished (see 'list' section
below)
~ > rq q l f | rq q s
7) stage the job wont_run_yet to the queue in a 'holding' state. no
feeder will run this job until it's state is upgraded to 'pending'
~ > rq q s --stage wont_run_yet
resubmit, r :
resubmit jobs back to a queue to be proccesed by a feeding node. resubmit
is essentially equivalent to submitting a job that is already in the queue
as a new job and then deleting the original job except that using resubmit
is atomic and, therefore, safer and more efficient. read docs for delete
and submit for more info.
examples :
0) resubmit job 42 to the queue. afterwards
list, l, ls :
list mode lists jobs of a certain state or job id. state may be one of
pending, holding, running, finished, dead, or all. any 'mode_args' that are
numbers are taken to be job id's to list.
states may be abbreviated to uniqueness, therefore the following shortcuts
apply :
p => pending
h => holding
r => running
f => finished
d => dead
a => all
examples :
0) show everything in q
~ > rq q list all
or
~ > rq q l all
or
~ > export RQ_Q=q
~ > rq l
1) show q's pending jobs
~ > rq q list pending
2) show q's running jobs
~ > rq q list running
3) show q's finished jobs
~ > rq q list finished
4) show job id 42
~ > rq q l 42
5) show q's holding jobs
~ > rq q list holding
status, t :
status mode shows the global state the queue. there are no 'mode_args'.
the meaning of each state is as follows:
pending => no feeder has yet taken this job
holding => a hold has been placed on this job, thus no feeder will start
it
running => a feeder has taken this job
finished => a feeder has finished this job
dead => rq died while running a job, has restarted, and moved
this job to the dead state
note that rq cannot move jobs into the dead state unless it has been
restarted. this is because no node has any knowledge of other nodes and
cannot possibly know if a job was started on a node that died, or is simply
taking a very long time. only the node that dies, upon restart, can
determine that is has jobs that 'were started before it started' and move
these jobs into the dead state. normally only a machine crash would cause a
job to be placed into the dead state. dead jobs are never automatically
restarted, this is the responsibility of an operator.
examples :
0) show q's status
~ > rq q t
delete, d :
delete combinations of pending, holding, finished, dead, or jobs specified
by jid. the delete mode is capable of parsing the output of list and query
modes, making it possible to create custom filters to delete jobs meeting
very specific conditions.
'mode_args' are the same as for list.
note that it is NOT possible to delete a running job. rq has a
decentralized architechture which means that compute nodes are completely
independant of one another; an extension is that there is no way to
communicate the deletion of a running job from the queue the the node
actually running that job. it is not an error to force a job to die
prematurely using a facility such as an ssh command spawned on the remote
host to kill it. once a job has been noted to have finished, whatever the
exit status, it can be deleted from the queue.
examples :
0) delete all pending, finished, and dead jobs from a queue
~ > rq q d all
1) delete all pending jobs from a queue
~ > rq q d p
2) delete all finished jobs from a queue
~ > rq q d f
3) delete jobs via hand crafted filter program
~ > rq q list | yaml_filter_prog | rq q d
an example ruby filter program (you have to love this)
require 'yaml'
joblist = YAML::load STDIN
y joblist.select{|job| job['command'] =~ /bombing_program/}
this program reads the list of jobs (yaml) from stdin and then dumps
only those jobs whose command matches 'bombing_program', which is
subsequently piped to the delete command.
update, u :
update assumes all leading arguments are jids to update with subsequent
key=value pairs. currently only the 'command', 'priority', and 'tag' fields
of pending jobs can be generically updated and the 'state' field may be
toggled between pending and holding.
examples:
0) update the priority of job 42
~ > rq q update 42 priority=7
1) update the priority of all pending jobs
~ > rq q update pending priority=7
2) query jobs with a command matching 'foobar' and update their command
to be 'barfoo'
~ > rq q q "command like '%foobar%'" |\
rq q u command=barfoo
3) place a hold on jid 2
~ > rq q u 2 state=holding
4) place a hold on all jobs with tag=disk_filler
~ > rq q q tag=disk_filler | rq q u state=holding
5) remove the hold on jid 2
~ > rq q u 2 state=pending
query, q :
query exposes the database more directly the user, evaluating the where
clause specified on the command line (or read from STDIN). this feature can
be used to make a fine grained slection of jobs for reporting or as input
into the delete command. you must have a basic understanding of SQL syntax
to use this feature, but it is fairly intuitive in this limited capacity.
examples:
0) show all jobs submitted within a specific 10 minute range
~ > rq q query "started >= '2004-06-29 22:51:00' and started < '2004-06-29 22:51:10'"
1) shell quoting can be tricky here so input on STDIN is also allowed to
avoid shell expansion
~ > cat constraints.txt
started >= '2004-06-29 22:51:00' and
started < '2004-06-29 22:51:10'
~ > rq q query < contraints.txt
or (same thing)
~ > cat contraints.txt| rq q query
2) this query output might then be used to delete those jobs
~ > cat contraints.txt | rq q q | rq q d
3) show all jobs which are either finished or dead
~ > rq q q "state='finished' or state='dead'"
4) show all jobs which have non-zero exit status
~ > rq q query exit_status!=0
5) if you plan to query groups of jobs with some common feature consider
using the '--tag, -t' feature of the submit mode which allows a user to
tag a job with a user defined string which can then be used to easily
query that job group
~ > rq q submit --tag=my_jobs < joblist
~ > rq q query tag=my_jobs
6) in general all but numbers will need to be surrounded by single quotes
unless the query is a 'simple' one. a simple query is a query with no
boolean operators, not quotes, and where every part of it looks like
key op value
with ** NO SPACES ** between key, op, and value. if, and only if, the
query is 'simple' rq will contruct the where clause appropriately. the
operators accepted, and their meanings, are
= : equivalence : sql =
=~ : matches : sql like
!~ : not matches : sql not like
match, in the context is ** NOT ** a regular expression but a sql style
string match. about all you need to know about sql matches is that the
'%' char matches anything. multiple simple queries will be joined with
boolean 'and'
this sounds confusing - it isn't. here are some examples of simple
queries
6.a)
query :
rq q query tag=important
where_clause :
"( tag = 'important' )"
6.b)
query :
rq q q priority=6 restartable=true
where_clause :
"( priority = 6 ) and ( restartable = 'true' )"
6.c)
query :
rq q q command=~%bombing_job% runner=~%node_1%
where_clause :
"( command like '%bombing_job%') and (runner like '%node_1%')"
execute, e :
execute mode is to be used by expert users with a knowledge of sql syntax
only. it follows the locking protocol used by rq and then allows the user
to execute arbitrary sql on the queue. unlike query mode a write lock on
the queue is obtained allowing a user to definitively shoot themselves in
the foot. for details on a queue's schema the file 'db.schema' in the queue
directory should be examined.
examples :
0) list all jobs
~ > rq q execute 'select * from jobs'
configure, C :
this mode is not supported yet.
snapshot, p :
snapshot provides a means of taking a snapshot of the q. use this feature
when many queries are going to be run; for example when attempting to figure
out a complex pipeline command your test queries will not compete with the
feeders for the queue's lock. you should use this option whenever possible
to avoid lock competition.
examples:
0) take a snapshot using default snapshot naming, which is made via the
basename of the q plus '.snapshot'
~ > rq /path/to/nfs/q snapshot
1) use this snapshot to chceck status
~ > rq ./q.snapshot status
2) use the snapshot to see what's running on which host
~ > rq ./q.snapshot list running | grep `hostname`
note that there is also a snapshot option - this option is not the same as
the snapshot command. the option can be applied to ANY command. if in
effect then that command will be run on a snapshot of the database and the
snapshot then immediately deleted. this is really only useful if one were
to need to run a command against a very heavily loaded queue and did not
wish to wait to obtain the lock. eg.
0) get the status of a heavily loaded queue
~ > rq q t --snapshot
1) same as above
~ > rq q t -s
** IMPORTANT **
a really great way to hang all processing in your queue is to do this
rq q list | less
and then leave for the night. you hold a read lock you won't release
until less dies. this is what snapshot is made for! use it like
rq q list -s | less
now you've taken a snapshot of the queue to list so your locks affect no
one.
lock, L :
lock the queue and then execute an arbitrary shell command. lock mode uses
the queue's locking protocol to safely obtain a lock of the specified type
and execute a command on the user's behalf. lock type must be one of
(r)ead | (sh)ared | (w)rite | (ex)clusive
examples :
0) get a read lock on the queue and make a backup
~ > rq q L read -- cp -r q q.bak
(the '--' is needed to tell rq to stop parsing command line
options which allows the '-r' to be passed to the 'cp' command)
** IMPORTANT **
this is another fantastic way to freeze your queue - use with care!
backup, b :
backup mode is exactly the same as getting a read lock on the queue and
making a copy of it. this mode is provided as a convenience.
0) make a backup of the queue using default naming ( qname + timestamp + .bak )
~ > rq q b
1) make a backup of the queue as 'q.bak'
~ > rq q b q.bak
rotate, r :
rotate mode is conceptually similar to log rolling. normally the list of
finished jobs will grow without bound in a queue unless they are manually
deleted. rotation is a method of trimming finished jobs from a queue
without deleting them. the method used is that the queue is copied to a
'rotation'; all jobs that are dead or finished are deleted from the original
queue and all pending and running jobs are deleted from the rotation. in
this way the rotation becomes a record of the queue's finished and dead jobs
at the time the rotation was made.
0) rotate a queue using default rotation name
~ > rq q rotate
1) rotate a queue naming the rotation
~ > rq q rotate q.rotation
2) a crontab entry like this could be used to rotate a queue daily
59 23 * * * rq q rotate `date +q.%Y%m%d`
feed, f :
take jobs from the queue and run them on behalf of the submitter as quickly
as possible. jobs are taken from the queue in an 'oldest highest priority'
first order.
feeders can be run from any number of nodes allowing you to harness the CPU
power of many nodes simoultaneously in order to more effectively clobber
your network, anoy your sysads, and set output raids on fire.
the most useful method of feeding from a queue is to do so in daemon mode so
that if the process loses it's controling terminal it will not exit when you
exit your terminal session. use the '--daemon, -d' option to accomplish
this. by default only one feeding process per host per queue is allowed to
run at any given moment. because of this it is acceptable to start a feeder
at some regular interval from a cron entry since, if a feeder is alreay
running, the process will simply exit and otherwise a new feeder will be
started. in this way you may keep feeder processing running even acroess
machine reboots without requiring sysad intervention to add an entry to the
machine's startup tasks.
examples :
0) feed from a queue verbosely for debugging purposes, using a minimum and
maximum polling time of 2 and 4 respectively. you would NEVER specify
polling times this brief except for debugging purposes!!!
~ > rq q feed -v4 -m2 -M4
1) same as above, but viewing the executed sql as it is sent to the
database
~ > RQ_SQL_DEBUG=1 rq q f -v4 -m2 -M4
2) feed from a queue in daemon mode - logging to /home/ahoward/rq.log
~ > rq q f -d -l/home/ahoward/rq.log
log rolling in daemon mode is automatic so your logs should never need
to be deleted to prevent disk overflow.
3) use something like this sample crontab entry to keep a feeder running
forever - it attempts to (re)start every fifteen minutes but exits if
another process is already feeding.
#
# your crontab file - sample only
#
*/15 * * * * /full/path/to/bin/rq /full/path/to/nfs/mounted/q f -d -l/home/username/cfq.log -q
the '--quiet, -q' here tells rq to exit quietly (no STDERR)
when another process is found to already be feeding so that no cron
message would be sent under these conditions.
start :
the start mode is equivalent to running the feed mode except the --daemon is
implied so the process instantly goes into the background. also, if no log
(--log) is specified in start mode a default one is used. the default is
ENV['HOME'] + '/' + File::basename(queue) + '.log'
the crontab line above could just as well be
*/15 * * * * /full/path/to/bin/rq /full/path/to/nfs/mounted/q start -q
with the resulting log ending up in ~/q.log
examples :
0) start a daemon process feeding from q
~ > rq q start
shutdown :
tell a running feeder to finish any pending jobs and then to exit. this is
equivalent to sending signal 'SIGTERM' to the process - this is what using
'kill pid' does by default.
examples :
0) stop a feeding process, if any, that is feeding from q. allow all jobs
to be finished first.
~ > rq q shutdown
** VERY IMPORTANT **
if you are keeping your feeder alive with a crontab entry you'll need to
comment it out before doing this or else it will simply re-start!!!
stop :
tell any running feeder to stop NOW. this sends signal 'SIGKILL' (-9) to
the feeder process. the same warning as for shutdown applies!!!
examples :
0) stop a feeding process, if any, that is feeding from q. allow NO jobs
to be finished first - exit instantly.
~ > rq q stop
feeder :
show the pid, if any, of the feeder
~ > rq q feeder
feeder <15366>
help, h :
this message
examples :
0) get this message
~> rq q help
or
~> rq help
NOTES
- realize that your job is going to be running on a remote host and this has
implications. paths, for example, should be absolute, not relative.
specifically the submitted job script must be visible from all hosts
currently feeding from a queue as must be the input and output
files/directories.
- jobs are currently run under the bash shell using the --login option.
therefore any settings in your .bashrc will apply - specifically your PATH
setting. you should not, however, rely on jobs running with any given
environment.
- you need to consider __CAREFULLY__ what the ramifications of having multiple
instances of your program all potentially running at the same time will be.
for instance, it is beyond the scope of rq to ensure multiple instances of a
given program will not overwrite each others output files. coordination
of programs is left entirely to the user.
- the list of finished jobs will grow without bound unless you sometimes
delete some (all) of them. the reason for this is that rq cannot know when
the user has collected the exit_status of a given job, and so keeps this
information in the queue forever until instructed to delete it. if you have
collected the exit_status of you job(s) it is not an error to then delete
that job from the finished list - the information is kept for your
informational purposes only. in a production system it would be normal to
periodically save, and then delete, all finished jobs.
- know that it is a VERY bad idea to spawn several dozen process all
reading/writing huge output files to a single NFS server. use this paradigm
instead
copy data locally from input space
work on date
move data to output space
the vsftp daemon is an excellent utility to have running on hosts in your
cluster so anonymous ftp can be used to get/put data.
- know that nfs locking is very, very easy to break with firewalls put in
place by over zealous system administrators. be postive not only that nfs
locking works, but that lock recovery server/client crash or reboot works as
well. http://nfs.sourceforge.net/ is the place to learn about NFS. my
experience thus far is that there are ZERO properly configured NFS
installations in the world. please test yours. contact me for a simple
script which can assist you. donations of beer may be required.
ENVIRONMENT
RQ_Q: set to the full path of nfs mounted queue
the queue argument to all commands may be omitted if, and only if, the
environment variable 'RQ_Q' contains the full path to the q. eg.
~ > export RQ_Q=/full/path/to/my/q
this feature can save a considerable amount of typing for those weak of
wrist.
DIAGNOSTICS
success : $? == 0
failure : $? != 0
CREDITS
- kim baugh : patient tester and design input
- jeff safran : the guy can break anything
- chris elvidge : made it possible
- trond myklebust : tons of help with nfs
- jamis buck : for writing the sqlite bindings for ruby
- _why : for writing yaml for ruby
- matz : for writing ruby
AUTHOR
ara.t.howard@noaa.gov
BUGS
0 < bugno && bugno <= 42
reports to ara.t.howard@noaa.gov
OPTIONS
--priority=priority, -p
modes <submit> : set the job(s) priority - lowest(0) .. highest(n) -
(default 0)
--tag=tag, -t
modes <submit> : set the job(s) user data tag
--runner=runner
modes <submit> : set the job(s) required runner(s)
--restartable
modes <submit> : set the job(s) to be restartable on node reboot
--stage
modes <submit> : set the job(s) initial state to be holding (default
pending)
--infile=infile
modes <submit> : infile
--quiet, -q
modes <submit, feed> : do not echo submitted jobs, fail silently if
another process is already feeding
--daemon, -D
modes <feed> : spawn a daemon
--max_feed=max_feed
modes <feed> : the maximum number of concurrent jobs run
--retries=retries
modes <feed> : specify transaction retries
--min_sleep=min_sleep
modes <feed> : specify min sleep
--max_sleep=max_sleep
modes <feed> : specify max sleep
--snapshot, -s
operate on snapshot of queue
--verbosity=verbostiy, -v
0|fatal < 1|error < 2|warn < 3|info < 4|debug - (default info)
--log=path, -l
set log file - (default stderr)
--log_age=log_age
daily | weekly | monthly - what age will cause log rolling (default
nil)
--log_size=log_size
size in bytes - what size will cause log rolling (default nil)
--help, -h
this message
--version
show version number
enjoy.
-a
--
===============================================================================
| ara [dot] t [dot] howard [at] noaa [dot] gov
| all happiness comes from the desire for others to be happy. all misery
| comes from the desire for oneself to be happy.
| -- bodhicaryavatara
===============================================================================