[#313454] Request for Block local methods, and Proc syntax — Patrick Li <patrickli_2001@...>
So after using Ruby for a little over two months, I've made the complete
2008/9/1 Patrick Li <patrickli_2001@hotmail.com>:
Patrick Li wrote:
Thanks for your input guys.
2008/9/2 Patrick Li <patrickli_2001@hotmail.com>:
So I thought about your code snippet a bit more Robert, and it's almost
Hi,
Thanks for the reply Matz,
Hi,
[#313477] Looking for a regular pattern — Zhao Yi <youhaodeyi@...>
Which pattern represents any characters including space, \t \n?
On Mon, Sep 1, 2008 at 10:20 AM, Zhao Yi <youhaodeyi@gmail.com> wrote:
Thomas Wieczorek wrote:
Sebastian Hungerecker wrote:
Zhao Yi wrote:
Sebastian Hungerecker wrote:
Zhao Yi wrote:
Generally, "." matches characters including what "\s" matches.
[#313480] How to replace a string with given pattern? — Zhao Yi <youhaodeyi@...>
I want to replace a string with the new value on a given regular
[#313516] Parsing a CSV file column-wise — Chris Lowis <chris.lowis@...>
Is there a short-cut to parsing a CSV file column-wise using any of
On Sep 1, 2008, at 6:09 AM, Chris Lowis wrote:
[#313521] accessing instance variable — "Mayuresh Kathe" <kathe.mayuresh@...>
Hello,
[#313523] gsub html sanitizer — "Chealsea S." <marikoc@...>
I'm new to Ruby and a bit confused about how gsub works. I've read the
[#313532] Undo Object.extend — José Ignacio <joseignacio.fernandez@...>
Hi all:
On Mon, Sep 1, 2008 at 3:39 PM, Jos=E9 Ignacio
Thanks, that's a really nice piece of code that helps a lot :)
On Mon, Sep 1, 2008 at 10:34 PM, Jos=E9 Ignacio
[#313536] Checking for 'nil' Class (not instance) variables? — John Pritchard-williams <monojohnny@...>
See below, what's the proper way of checking for initialized
[#313550] included() vs extended() — "James Coglan" <jcoglan@...>
Hi list,
[#313566] Tk questions — Kenneth McDonald <kenneth.m.mcdonald@...>
In "bind_remove_all" (and many other commands), what is the required
[#313569] web widget concept, how does it work? — h4lfl1ng <h4lfl1ng@...>
[#313571] rb_require() causes segfault — Bertram Scharpf <lists@...>
Hi,
[#313582] Self and Current Class — Pedro Silva <ei04065@...>
I know that Ruby always keeps track of two concepts: self and current
Pedro Silva wrote:
[#313602] rubylexer 0.7.1 Released — "Caleb Clausen" <vikkous@...>
rubylexer version 0.7.1 has been released!
[#313613] escaping ' — David Nguyen <pppswing@...>
Hi,
[#313624] Does this seem useful for you? — "Robert Dober" <robert.dober@...>
Hi list
hi robert!
[#313640] Ruby doesn't need equal's signs for assigment? — Peter Alvin <form@...>
I'm new to Ruby... do you need ='s signs for assigment?
[#313648] finding blocks in black-and-white images (efficiently) — "Axel Etzold" <AEtzold@...>
Dear all,
[#313654] About class variable question? — Zhao Yi <youhaodeyi@...>
Please see this code below. It will get "can't convert nil to string
[#313658] Simple IMAP client? — Phil <phil@...>
People,
[#313682] Beginner in Ruby — thiagobrandam <thiagobrandam@...>
Hi all, my name is Thiago and I am completely new to Ruby. I'm having
On Tue, Sep 2, 2008 at 12:54 PM, thiagobrandam <thiagobrandam@gmail.com> wrote:
[#313684] IO#write_nonblock(string, offset) useful? — Roger Pack <rogerpack2005@...>
Was asked to repost this under a separate thread, so here it is!
Roger Pack wrote:
[#313705] Can a Ruby program determine whether it's running on a 32-bit or 64-bit system? — Eric Promislow <eric.promislow@...>
I can't go by RUBY_PLATFORM -- I'm setting up a new 32-bit Linux box,
[#313713] How can I prevent include one module multi-times? — Zhao Yi <youhaodeyi@...>
I am looking for a method to check whether this module has been
Zhao Yi wrote:
[#313724] Hash optimization question — Roger Pack <rogerpack2005@...>
Are there any libraries that overcome this problem:
2008/9/3 Roger Pack <rogerpack2005@gmail.com>:
> I guess it will be difficult to get both: fast hash lookup and
[#313732] Error when running an exe created with rubyscript2exe — Rakesh Pai <rakeshgpai@...>
[#313738] Binary files comparision — Marcin Tyman <m.tyman@...>
Hallo guys,
[#313745] dtabase access with Ruby — Sijo Kg <sijo@...>
Hi
[#313753] Recursive file listening??? — Marcin Tyman <m.tyman@...>
Hi,
[#313770] IMAP, Gmail & reading the body of the message — Azalar --- <pteale@...>
I have been collecting emails to my Gmail account for some time from a
On Wed, Sep 3, 2008 at 12:28 PM, Azalar --- <pteale@gmail.com> wrote:
[#313774] Send email with attachments in Ruby — loominator1970 <loominator1970@...>
I'm trying to find some code to send an email with attachment in
[#313783] Calling DLL's from Ruby — dkmd_nielsen <donn@...>
I've written quite a bit of logic into DLL's using C#. I would like
[#313785] TCPSocket#initialize slow on Windows — "Victor 'Zverok' Shepelev" <vshepelev@...>
ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-mswin32_71]
Victor 'Zverok' Shepelev wrote:
From: rogerpack2005@gmail.com [mailto:rogerpack2005@gmail.com]
[#313791] How to upcase/downcase utf-8 chars? — es_ <esuomikim@...>
Hi,
[#313793] Ruby 1.8.6. - 100% CPU on OS X — David Ecd <dmritacco@...>
Recently Ruby has decided to stomp my CPU. After running for a bit Ruby
On Wed, Sep 3, 2008 at 5:50 PM, David Ecd <dmritacco@hotmail.com> wrote:
Glen Holcomb wrote:
On Thu, Sep 4, 2008 at 11:41 AM, David Ecd <dmritacco@hotmail.com> wrote:
[#313800] recurrence 0.1.0, Ruby library for recurring stuff — EdvardM <edvard@...>
[#313805] String Combine problem — Richard Zenn <luckyzenn@...>
Hello,
[#313817] Connecting to SQL Server — "Clinton D. Judy" <cdj@...>
So ActiveRecord has failed me. The sqlserver module isn't complete, and
[#313824] Where the Required Things Are (#175) — "Matthew Moss" <matthew.moss@...>
Great job on this quiz, everyone who submitted. I know I'll be adding
[#313831] Extract data from email - Tmail, Hpricot — George Cooper <geocooper@...>
Hi all,
[#313848] String#match vs. Regexp#match - confused — Old Echo <kodama@...>
Hello everyone,
[#313862] 'gem list --remote' is blank?? — Jon Garvin <jgarvin.lists@...>
When running 'gem list --remote' on our linux and mac machines, we get a
[#313873] How to save Ruby object as a blob in MySQL — Bryan Richardson <btrichardson@...>
Hello all,
On Thu, Sep 4, 2008 at 3:51 PM, Bryan Richardson <btrichardson@gmail.com> wrote:
[#313884] Where to learn rdoc? — Ben Johnson <bjohnson@...>
I know this is a noob question but I decided ot start documenting all of
[#313890] How do I quickly search the end of a huge text file? — Brian Green <gallagherjb@...>
I am trying to create a ruby script that will search a maya ascii file
RnJvbTogQnJpYW4gR3JlZW4gW21haWx0bzpnYWxsYWdoZXJqYkBnbWFpbC5jb21dIA0KIyBJIGFt
Pe単a, Botp wrote:
Here is an usage example :
[#313897] Need a 40 LOC (ignoring comments) to be shorter -- suggestions wanted — RichardOnRails <RichardDummyMailbox58407@...>
Hi All,
I believe it can easily be seen that a number of form xy or abc where
[#313908] Re: Need a 40 LOC (ignoring comments) to be shorter -- suggestions wanted — Brian Candler <B.Candler@...>
Verbose and inefficient, but there was a 10 minute limit :-)
[#313913] How to fetch images from web page with relative path — Yi Zheng <yzheng@...>
Hi, all
[#313923] how to read digits in a number — Pepe Sanchez <jsnit@...>
Hi all
[#313930] Extend OpenStruct's functionality with explicit default value — "Robert Klemme" <shortcutter@...>
Hi,
Sorry, somehow I seem to have forgotten to send this earlier.
[#313945] how to search a website — Li Chen <chen_li3@...>
Hi all,
Li Chen wrote:
James Britt wrote:
On Fri, Sep 5, 2008 at 1:10 PM, Li Chen <chen_li3@yahoo.com> wrote:
On Fri, Sep 5, 2008 at 1:42 PM, <brabuhr@gmail.com> wrote:
[#313946] Who's Charles angry at? — Joshua Ballanco <jballanc@...>
Well, I just came across this in my feed reader:
Joshua Ballanco wrote:
Charles Oliver Nutter wrote:
Hi,
Yukihiro Matsumoto wrote:
Hi,
[#313972] accessor methods for class methods — Jason Lillywhite <jason.lillywhite@...>
It seems odd that cattr_* (i.e. cattr_accessor, cattr_reader,
[#313975] String sanitizing — Travis Warlick <twarlick@...>
I have implemented a sanitize! method into the String class to
[#313980] is it possible to turn a private method into a public one? — Lex Williams <etaern@...>
hey guys !
[#313992] dynamically assigning class constants — Pete Hodgson <phodgson@...>
Hi folks,
Apologies, s/Comparable/Level/ in the example code.
[#313997] Request: arguments by reference — Pedro Silva <ei04065@...>
Would be possible to include the option to pass arguments by reference
[#314001] Why is Ruby dynamic? — Zhao Yi <youhaodeyi@...>
People say Ruby is a dynamic language. I don't understand what the
On 6 Sep 2008, at 02:16, Zhao Yi wrote:
2008/9/6 James Adam <james@lazyatom.com>:
[#314002] Is Ruby good at GUI develop? — Zhao Yi <youhaodeyi@...>
I want to choose a script to develop a GUI program. I want to know more
Zhao Yi wrote:
James Britt wrote:
> I'd like to have a GUI builder (preferably on Linux, or will run the
I do not quite care about the developing IDE for ruby GUI. What I want
qt4-qtruby is kinda wrapper for Qt4, GUI is nearly same speed as with
You can use Glade. I made a software with Ruby + ActiveRecord + Glade
Wow. Quite the storm! Oh well.
[#314010] Question About TCPServer & TCPSocket classes — Steve Lewis <poeticjustice72182@...>
Hello Rubyists,
[#314025] Frustrated: System call timeouts — "Mikel Lindsaar" <raasdnil@...>
Hello all,
On Sun, Sep 7, 2008 at 12:42 AM, ara.t.howard <ara.t.howard@gmail.com> wrote:
[#314041] attr_*, *variables_* — Pedro Silva <ei04065@...>
It wouldn't be nice if all these methods respect a unique arguments
[#314061] any way to write it in one line ? — Erwin <yves_dufour@...>
works = Array.new
Oops, I mean:
[#314074] Ruby interpreter bug? — Ryan Hinton <iobass@...>
I get a core dump when executing the following code.
[#314080] assemble many images files into one .mpeg or .mov — Andrew Arrow <andrew@...>
I'm looking to use something like:
[#314083] json for extjs (without rails) — Gurpal 2000 <gurpal@...>
Hi
Ara Howard wrote:
[#314090] find a button using mechanize — Li Chen <chen_li3@...>
Hi all,
Li Chen wrote:
Lex Williams wrote:
Lex Williams wrote:
Li Chen wrote:
Lex Williams wrote:
Li , I wouldn't try to find a form by searching after it's button .
Hi Lex,
Li , please post examples . What is it you want to extract ? From what
Lex Williams wrote:
Li , here is the script that downloads the wav file . It's kinda late
Hi Lex,
Hi Lex,
On Wed, Sep 10, 2008 at 9:58 AM, Li Chen <chen_li3@yahoo.com> wrote:
Martin DeMello wrote:
On Wed, Sep 10, 2008 at 10:14 AM, Li Chen <chen_li3@yahoo.com> wrote:
[#314098] how to change ASCI to Hex — Zqd Zqd <fzzqd@...>
hi everyone:
Zqd Zqd wrote:
--------------------------------- Joel VanderWerf vjoel@path.berkeley.edu
arton wrote:
--------------------------------- Joel VanderWerf vjoel@path.berkeley.edu
[#314127] "gem install mysql" failing horribly on OS X leaopard — Doug Livesey <biot023@...>
Hi -- I'm having trouble getting the mysql gem to install on an OS X
[#314130] #to_self — Trans <transfire@...>
Say I have a mixin:
[#314133] regular expression match and exclude — Azalar --- <pteale@...>
I am parsing a web page full of image links that also contain links to
On Sun, Sep 7, 2008 at 3:09 PM, Azalar --- <pteale@gmail.com> wrote:
2008/9/7 Azalar --- <pteale@gmail.com>:
[#314148] I have been looking at this little anomoly ?A => 65 — "Victor H. Goff III" <keeperotphones@...>
I know that the reverse is 65.chr
[#314173] Telnet client — Zhao Yi <youhaodeyi@...>
I use ruby wrote a Telnet client application. It works fine until users
[#314181] Newb question — Rong <ron.green@...>
Why does this
[#314187] Sort date array without using ruby's built-in date class — Robert Marley <colasli@...>
Say for instance I have an array of dates in string format
[#314188] Hash custom sort? Overriding <=>? Help! — Jarrett Green <jarrett@...>
This is a pretty ugly hash. The keys are objects. I'm afraid after going
[#314198] PDF::Writer - measure size of a section before rendering it? — Max Williams <toastkid.williams@...>
I'm using the PDF::Writer plugin and have got everything that i wanted
[#314199] FileUtils.chdir thread safety — Mr_Tibs <tiberiu.motoc@...>
Hi,
Darn it! It would seem like a good idea.
2008/9/9 Mr_Tibs <tiberiu.motoc@gmail.com>:
Robert Klemme wrote:
Charles Oliver Nutter wrote:
2008/9/9 Charles Oliver Nutter <charles.nutter@sun.com>:
On 10/09/2008, Robert Klemme <shortcutter@googlemail.com> wrote:
2008/9/10 Michal Suchanek <hramrach@centrum.cz>:
[#314202] Hash auto-true ({:a} == {:a => true}) — Woody Peterson <woody.peterson@...>
I have a unix-inspired desire to pass arguments to a method where some
2008/9/8 Woody Peterson <woody.peterson@gmail.com>
Yeah, that all would work pretty well. I think the restriction that
>
[#314223] Single backslash in a string. How?? — Rafael Viana <rafa.viana@...>
Is it possible to have a string with a single backslash?
Rafael Viana wrote:
Lloyd Linklater wrote:
[#314224] Oniguruma question — Kenneth McDonald <kenneth.m.mcdonald@...>
For those adventurous souls who are already using Oniguruma...
2008/9/8 Kenneth McDonald <kenneth.m.mcdonald@sbcglobal.net>:
[#314235] "Pointer" to an object? (i.e. reflect changes to original) — Doug Glidden <41mortimer@...>
Hi,
On Mon, Sep 8, 2008 at 4:39 PM, Doug Glidden <41mortimer@gmail.com> wrote:
[#314254] soap4r - where to get it ?! — Gilbert Rebhan <mailforgilbert@...>
Hi,
[#314260] Is this a sensible implementation for Array#group_by ? — Max Williams <toastkid.williams@...>
I was looking for a method to split an array into smaller arrays based
On Mon, Sep 8, 2008 at 10:04 AM, Max Williams
Indeed, Facets does have an Enumerable#group_by. And it has an
[#314295] CUDA bindings? — jzakiya <jzakiya@...>
I was wondering if anybody has (is thinking of) creating CUDA
[#314299] Drake: Distributed Rake — quixoticsycophant@...
= DRAKE -- Distributed Rake
On Sep 9, 4:52 am, David Masover <ni...@slaphack.com> wrote:
On Sep 9, 11:25=A0am, Jos Backus <j...@catnook.com> wrote:
On Sep 9, 7:32=A0pm, Martin DeMello <martindeme...@gmail.com> wrote:
James M. Lawrence wrote:
Thomas Sawyer wrote:
[#314317] Extending standard library by priority queue or search tree — "Artem Voroztsov" <artem.voroztsov@...>
I'd like to have guide for C++ programmers who wants to learn Ruby.
[#314321] smpp — Dario Pix <pizzato@...>
does anyone have some experience with SMPP in Ruby?
[#314349] Local variable in loop affects callcc — Pinku Surana <suranap@...>
I was trying to do some simple backtracking, but it kept failing for
Hi --
[#314367] How to access a method in the parent class — Iñaki Baz Castillo <ibc@...>
Hi, I'll explain my problem with an example code:
[#314384] yield/block question — Kenneth McDonald <kenneth.m.mcdonald@...>
This is something I know how to do in Python, but it's got me
[#314422] How to change the owner of a method in a block? — "Iñaki Baz Castillo" <ibc@...>
SGksIGxldCBtZSBleHBsYWluIHdpdGggdGhpcyBzaW1wbGUgY29kZToKCi0tLS0tLS0tLS0tLS0t
Lex Williams wrote:
MjAwOC85LzEwLCBMZXggV2lsbGlhbXMgPGV0YWVybkB5YWhvby5jb20+Ogo+IExleCBXaWxsaWFt
RnJvbTogScOxYWtpIEJheiBDYXN0aWxsbyBbbWFpbHRvOmliY0BhbGlheC5uZXRdIA0KIyA+PiBC
MjAwOC85LzEwLCBQZcOxYSwgQm90cCA8Ym90cEBkZWxtb250ZS1waGlsLmNvbT46Cj4gRnJvbTog
[#314428] invalid char '\220' in expression — MAwiniarski <MAwiniarski@...>
Greetings,
On 10 Wrz, 13:26, Lars Christensen <lar...@belunktum.dk> wrote:
[#314454] Please explain that — Jan Pilz <pilz@...>
Can you please explain this behaviour ?
[#314461] Difference between "sleep()" and "Thread.stop"? — "Iñaki Baz Castillo" <ibc@...>
SGksIGlzIHRoZXJlIGFueSBkaWZmZXJlbmNlIGJldHdlZW4gZG9pbmc6CgogIHNsZWVwCgphbmQ6
2008/9/10 I=F1aki Baz Castillo <ibc@aliax.net>:
[#314470] How to operate on 2 arrays simultaneously? — "Patrick Doyle" <wpdster@...>
There has got to be a more elegant solution than this. Suppose I have
DanDiebolt.exe <dandiebolt@yahoo.com> wrote:
ara.t.howard <ara.t.howard@gmail.com> wrote:
Patrick Doyle wrote:
[#314491] How to execute files or commands in ruby? — "F3leR F3leR" <f3ler0x69@...>
Hi!
[#314492] Redefe each to include each_with_index and arity=2 — "DanDiebolt.exe" <dandiebolt@...>
Is is possible to redefine each so that each_with_index behavior can be ach=
Dan Diebolt wrote:
On Wed, Sep 10, 2008 at 7:53 PM, DanDiebolt.exe <dandiebolt@yahoo.com> wrot=
[#314519] how can I set my shell to irb? — Lex Williams <etaern@...>
Hi guys !
[#314524] commandline options and output-"method" — Skave Rat <skaverat@...>
I've got two questions:
[#314529] How to check if a webpage exists — Davide Benini <nutsmuggler@...>
This probably is trivial, but I have been googling for almost 2hs
On Wed, Sep 10, 2008 at 4:38 PM, Davide Benini <nutsmuggler@hotmail.com> wrote:
RnJvbTogRGF2aWRlIEJlbmluaSBbbWFpbHRvOm51dHNtdWdnbGVyQGhvdG1haWwuY29tXSANCiMg
Thanks for your super-fast answer :)
-------- Original-Nachricht --------
Hi Axel,
RnJvbTogRGF2aWRlIEJlbmluaSBbbWFpbHRvOm51dHNtdWdnbGVyQGhvdG1haWwuY29tXSANCiMg
> try
RnJvbTogRGF2aWRlIEJlbmluaSBbbWFpbHRvOm51dHNtdWdnbGVyQGhvdG1haWwuY29tXSANCiMg
Ok folks, I probably see what's wrong.
On Thu, Sep 11, 2008 at 6:55 PM, Davide Benini <nutsmuggler@hotmail.com> wrote:
On Thu, Sep 11, 2008 at 10:34 PM, Davide Benini <nutsmuggler@hotmail.com> wrote:
[#314538] pass by reference in each loop — Xiong Chiamiov <xiong.chiamiov+ruby_forum@...>
I have a list of variables that I need to pass through a modifying
Hi,
Pedro Silva wrote:
On 11.09.2008 23:12, Xiong Chiamiov wrote:
Robert Klemme wrote:
2008/9/12 Xiong Chiamiov <xiong.chiamiov+ruby_forum@gmail.com>:
Robert Klemme wrote:
[#314547] Getting values from array of arrays — Allen Walker <auswalk@...>
I have a drop down list in my view. In my model I have the following:
[#314563] How to detect blocking? — David Masover <ninja@...>
I've been (barely, occasionally) writing an Actor system for Ruby.
On 11.09.2008 06:48, David Masover wrote:
On Thursday 11 September 2008 01:33:25 Robert Klemme wrote:
Suppose I start a worker thread, like so:
On 13.09.2008 22:59, David Masover wrote:
On Sunday 14 September 2008 03:24:53 Robert Klemme wrote:
On 14.09.2008 19:27, David Masover wrote:
> I'd like to detect "no work left" as a case of the "farmer" going out of
On Tuesday 16 September 2008 03:55:18 Brian Candler wrote:
[#314566] How to use this Combinatorial testing technique — Surya <surya5kn@...>
Hi Friends,
On 9/10/08, Surya <surya5kn@gmail.com> wrote:
On 9/11/08, ara.t.howard <ara.t.howard@gmail.com> wrote:
[#314576] Blocks and scoping question — Mischa Fierer <f.mischa@...>
Hello,
[#314590] Advanced conditionals — "Alain m. Lafon" <preek.aml@...>
Hi there,
RnJvbTogQWxhaW4gbS4gTGFmb24gW21haWx0bzpwcmVlay5hbWxAZ21haWwuY29tXSANCiMgaXMg
Hi --
From: David A. Black [mailto:dblack@rubypal.com]=20
[#314602] define and call methods in ruby — Jay Pangmi <jaeezzy@...>
Hi, I just simply can't figure out how I can define methods and call it
Hi --
David A. Black wrote:
[#314608] A menubar for Shoes? — Andy Joel <ak_joel@...>
I have just recently tarted to look at Shoes, after a quick dabble with
Andy Joel wrote:
Phlip wrote:
On 12/09/2008, Andy Joel <ak_joel@hotmail.com> wrote:
[#314632] Programming By Contract with Ruby — Pete Hodgson <phodgson@...>
Hi Folks,
[#314638] delete row in array of arrays — Junkone <junkone1@...>
i have a array of arrays. i want to empty the first 2 child arrays.
Junkone wrote:
[#314639] Array#pack and String#unpack query — Anton Hörnquist <anton@...>
Hi,
[#314645] Scripts dying mid-way — Peter Bailey <pbailey@...>
Hi,
On 11.09.2008 20:35, Peter Bailey wrote:
Robert Klemme wrote:
2008/9/12 Peter Bailey <pbailey@bna.com>:
[#314676] Getting current date — laredotornado <laredotornado@...>
Hi,
irb(main):005:0> Date.today.to_s
On Sep 11, 9:38=A0pm, "DanDiebolt.exe" <dandieb...@yahoo.com> wrote:
On Fri, Sep 12, 2008 at 12:13 PM, laredotornado
My clunky way:
ok. Improvement time:
[#314684] float precision — Difei Zhao <difeiz@...>
Hi all,
You are right, multiplying with 0.01 is even fast, see the benchmarks:
2008/9/13 thomas peklak <thomas.peklak@gmail.com>:
[#314703] strange behaviors in writing/saving file — Li Chen <chen_li3@...>
Hi all,
[#314731] Strange Errno::EOVERFLOW error with IO#read and IO#sysread — Daniel Berger <djberg96@...>
Hi all,
[#314776] Beginner User having issue with converting char to ASCII — Nick Bo <bornemann1@...>
I am working on this assignment and this is the first class I have used
Thanks for all the help but with a little more research i found this to
[#314795] unit testing offline with mechanize — Adam Akhtar <adamtemporary@...>
Although mechanize is designed to navigate around web pages online, is
[#314798] regular expressions on strings with multiple newlines — Adam Akhtar <adamtemporary@...>
im banging my head against a wall with this. Im sure theres an easy way
[#314799] how can i find lingering file descriptors? — Brad Volz <bradv@...>
Hello,
[#314800] Hello guys! — Lazar Simic Cvrcko <lazarsimic85@...>
Hello, this is Lazar Simic from town Banjaluka,
[#314803] Mechanize for Ruby on Linux not working... — "Just Another Victim of the Ambient Morality" <ihatespam@...>
The administrator for a server I'm using tried installing Mechanize for
[#314808] Is my method defined? — Fredrik <fredjoha@...>
I have a method by the name methodA. I want to access this method like
[#314826] RubyConf hotel: Only single-bed rooms available at group rate? — James Britt <james.britt@...>
Yesterday, the day or the day after I got the RubyConf E-mail giving me
On Sat, Sep 13, 2008 at 12:32 PM, James Britt <james.britt@gmail.com> wrote:
Gregory Brown wrote:
My partners and I were only able to book a non-smoking room with 1 king bed
Craig Demyanovich wrote:
James Britt wrote:
We very much apologize if this has inconvenienced folks, our intent
[#314830] why this website address doesn't change — Li Chen <chen_li3@...>
Hi all,
[#314848] rake spec:rcov => [BUG] Segmentation fault ruby 1.8.6 (2007-09-24) [i386-mswin32] — scott <scottnj@...>
i have a rails app that tests fine with "rake spec" but gets a
[#314861] A new database access framework for any Ruby (Iron or J) — Post-no-reply Tudbc <post-no-reply@...>
I would like to introduce my new exciting research in TUDBC (Truly
On 14.09.2008 08:30, Post-no-reply Tudbc wrote:
On Sunday 14 September 2008 15:37:55 Robert Klemme wrote:
[#314870] Keyzcar - cryptographic toolkit — Kless <jonas.esp@...>
Google has released Keyzcar [1], an open source cryptographic toolkit
On 14 sep, 11:05, Kless <jonas....@googlemail.com> wrote:
[#314872] getting an array of unique objects of a class i wrote — Adam Akhtar <adamtemporary@...>
Hi Ive done some searching on this but couldnt find an answer that was
Adam Akhtar wrote:
[#314877] how do deal with huge numbers and keep them accurate? — Tomi Zzzz <tomi_z@...>
Hello all, I wrote the following code:
On Sun, Sep 14, 2008 at 7:18 AM, Tomi Zzzz <tomi_z@nana.co.il> wrote:
On Sun, Sep 14, 2008 at 10:47 AM, Todd Benson <caduceass@gmail.com> wrote:
thanks u all for taking a few minutes to answer me. I'm really
[#314906] ANN: One-Click Ruby Installer 186-27 Release Candidate 1 Available — Luis Lavena <luislavena@...>
Hello Rubists from the World.
[#314924] 1.9 — Rong <ron.green@...>
Does anyone have any idea when 1.9 will be ready for production
On Sep 14, 2008, at 9:24 PM, Rong wrote:
On Sunday 14 September 2008 22:00:24 James Gray wrote:
[#314927] Q: IO.read() and IO.write() — kwatch <kwatch@...>
Hi,
[#314934] How to convert the charset of texts in a Execl which has multi-language text and charset? — "Wu Nan" <i.wunan+rubymail@...>
SGVsbG8gYWxsLAoKSSB3YW50IHRvIHVzZSBSdWJ5IHRvIHJlYWQgYSBleGNlbCBmaWxlJ3MgY29u
SGVsbG8gQXhlbCwKCk1hbnkgdGhhbmtzIGZvciB5b3VyIGFuc3dlciwKCkkganVzdCB0ZXN0IGl0
[#314953] Need someone who can help — Dot Baiki <dot_baiki@...>
Hello
On Mon, 2008-09-15 at 22:11 +0900, Dot Baiki wrote:
Hey! Amazing quick response! Outstanding. Sweet solutions! Will continue
[#314961] webrick proxy server and streaming. — samba <cooldudevamsee@...>
Hi,
[#314984] how to stream or write data into a tar.gz file as if the data were from files? — bwv549 <jtprince@...>
I have a gazillion little files in memory (each is really just a chunk
> you could consider rubyzip:
[#314989] Getting Employer to Pay for RubyConf — "Clinton D. Judy" <cdj@...>
So I'm just finishing my first year at a real job, and thinking about
<snip>
This may be a little lengthy.
Well seems to me you have had much more success in lobbing for Ruby
[#314991] ruby / rexml / xpath bug? — altinsel <altinsel@...>
[#314997] array question — Li Chen <chen_li3@...>
Hi all,
On Tue, Sep 16, 2008 at 05:27:03AM +0900, Li Chen wrote:
Nathan Powell wrote:
Joel VanderWerf wrote:
Add the two arrays and call uniq on the new array
On Tue, Sep 16, 2008 at 11:12:50PM +0900, Amos King wrote:
We'll see.
[#315019] Help with Shoes — "Ruby Student" <ruby.student@...>
Hello Ruby/Shoes World!
[#315026] for WIN32OLE: The returning of Reading the Asian Langugae Text in Excel is always '?????? ' — "Wu Nan" <i.wunan+rubymail@...>
Hi All,
Hi,
Hello Heesob,
[#315037] get a portion of a utf8 encoded string — Marco <m@...>
hi all.
SGksCgoyMDA4LzkvMTYgTWFyY28gPG1Aci5jbz46Cj4gaGkgYWxsLgo+Cj4gcnVieSAxLjguNSAo
Heesob Park wrote:
RnJvbTogUzIgW21haWx0bzpzdG8uZ2lvY2FuZG9AbW90b3Iuc3Rvcm1dIA0KIyB0aGFua3MuIGV2
On Tue, Sep 16, 2008 at 4:50 AM, Pe=F1a, Botp <botp@delmonte-phil.com> wrot=
[#315081] Is 1.8.6 p287 the "finally fixed" version? — Jeff <cohen.jeff@...>
Over the last couple of months there seemed to be long-running threads
On Tue, Sep 16, 2008 at 12:09 PM, Jeff <cohen.jeff@gmail.com> wrote:
On Sep 16, 11:17=A0am, "Gregory Brown" <gregory.t.br...@gmail.com>
[#315083] ANTLR Target for Ruby — arcadio <arcadiorubiogarcia@...>
Hi everyone,
arcadio wrote:
On Sun, Sep 21, 2008 at 7:56 AM, Clifford Heath <no@spam.please.net> wrote:
Eric Mahurin wrote:
On Tue, Sep 23, 2008 at 4:20 AM, Clifford Heath <no@spam.please.net> wrote:
Eric Mahurin wrote:
I wrote a PEG parser generator a couple of years ago to support my
[#315093] define anonymous module with closure — "I. E. Smith-Heisters" <i@0x09.com>
Hi everyone,
[#315098] WIN32OLE Question — Bryan Richardson <btrichardson@...>
Hello all,
[#315110] Gem program -- cannot install libxslt-ruby-0.3.6.gem — Robert Heller <heller@...>
I am trying to install some version of libxslt-ruby on my CentOS 4.7
> I've narrowed things down to a problem with mkmf.rb -- it is missing a
At Wed, 17 Sep 2008 02:43:39 -0500 Brian Candler <b.candler@pobox.com> wrote:
[#315113] IRB error using curl command. — Shane Nayler <snayler0@...>
Gday all.
[#315114] SuperClass and Modules — Shilesh Kumar <shyl.sk@...>
Hi,
[#315124] How to clean an xml files from non-utf-8 chars? — Krzysieq <krzysieq@...>
Hi,
If you really don't care about the content:
On Sep 17, 2008, at 4:07 AM, Krzysieq wrote:
On Sep 18, 9:25=A0am, Krzysieq <krzys...@gazeta.pl> wrote:
Ok, I tried all previous suggestions, neither worked (gsub idea, TRANSLIT,
On Fri, Sep 19, 2008 at 7:07 AM, Krzysieq <krzysieq@gazeta.pl> wrote:
[#315125] Threads preventing garbage collection? — Brian Candler <b.candler@...>
I wondered if someone can explain the following behaviour to me.
2008/9/17 Brian Candler <b.candler@pobox.com>:
Robert Klemme wrote:
2008/9/17 Brian Candler <b.candler@pobox.com>:
Your version only works because the threads are dying after 2 seconds.
[#315127] Ruby system programs — Mohamed Hussain <pshussain@...>
Hai all,
[#315153] irb shell exit — Scott Harper <scottharper24@...>
I am totally new to programming so this may sound stupid, but I would
[#315179] Getting Ruby to output a windows command to text (log) file. — Tony Mcneil <tmcneil@...>
Hey folks, I'm trying to create a program to ping one of my company's
See http://www.ruby-doc.org/core/classes/Kernel.html#M006001 :
[#315181] Singleton class's original class — Paul Brannan <pbrannan@...>
Given a singleton class:
[#315203] Reseach paper on Ruby. Need references. — Suneel Suneel <suneelgv@...>
Hi,
Thank you everyone for taking time to search and reply. The instructor
On Fri, 2008-09-19 at 05:13 +0900, Dave Thomas wrote:
[#315211] The mystery of File::append — Nit Khair <sentinel.2001@...>
$ ri File::append
[#315219] inits.c confused me — Mengjiang Liu <liumengjiang@...>
i am reading the ruby source, but the follow inits.c confused me.
Mengjiang Liu wrote:
Tim Hunter wrote:
[#315221] Suggestion for string parsing — Me Me <emanuelef@...>
Hi all,
> But I'm sure there's a better way, even considering that the number of
Thans for answering,
RnJvbTogTWUgTWUgW21haWx0bzplbWFudWVsZWZAdGlzY2FsaS5pdF0gDQojIEkgd2FzIHRoaW5r
>> line.scanf("%6s=%6s,%d,%d,%d,%d")
is there a way to use the scanf to parse a string not knowing how many
> is there a way to use the scanf to parse a string not knowing how many
[#315225] Problem installing Qt4 gem on Windows — Damjan Rems <d_rems@...>
[#315226] Preserve insert order in a Hash — Me Me <emanuelef@...>
Hi,
RnJvbTogTWUgTWUgW21haWx0bzplbWFudWVsZWZAdGlzY2FsaS5pdF0gDQojIEkgd291bGQgbGlr
Pe単a, Botp wrote:
Thomas B. wrote:
[#315238] steping back with a debugger — Lex Williams <etaern@...>
Does ruby have a debugger with the capability of steping back , so that
On Thu, Sep 18, 2008 at 6:48 AM, Lex Williams <etaern@yahoo.com> wrote:
What debuggers do you use?
Flaming Flamingo wrote:
steping back in time would be a great feature for the debugger to have.
[#315249] at_exit handler *except* for fatal runtime error — synergism <synergism@...>
How do we execute a handler (I assume via at_exit) when a program
On Sep 18, 1:03=A0pm, Robert Klemme <shortcut...@googlemail.com> wrote:
[#315250] why one array continues to grow after repeated call — Li Chen <chen_li3@...>
Hi all,
Li Chen wrote:
Brian Candler wrote:
On Thu, Sep 18, 2008 at 8:41 AM, Li Chen <chen_li3@yahoo.com> wrote:
On Thursday 18 September 2008 09:01 am, Rick DeNatale wrote:
> The statement "Line 4 might look like an assignment to the variable a,
On Thursday 18 September 2008 02:52 pm, Brian Candler wrote:
Randy Kramer wrote:
Randy Kramer wrote:
[#315287] short regexp question — Fritzek <fritz.thielemann@...>
Hi folks
Hi Robert
I wrote a quickie benchmark. CPU speed and compile options will
2008/9/19 Tod Beardsley <todb@planb-security.net>:
On Sat, Sep 20, 2008 at 6:40 AM, Robert Klemme
[#315288] cannot access gems — Tom Cloyd <tomcloyd@...>
I seem to have run right into my ignorance again.
Alle Thursday 18 September 2008, Tom Cloyd ha scritto:
[#315335] Reliable ping method from Windows? — "Glen Holcomb" <damnbigman@...>
Is there a reliable "Ruby" method for pinging/checking whether hosts are up?
[#315343] Array Count Issu — Nick Bo <bornemann1@...>
irb
Nick Bo wrote:
On Thu, Sep 18, 2008 at 3:04 PM, Nick Bo <bornemann1@nku.edu> wrote:
Adam Shelly wrote:
[#315385] rb_include_module() doesn't call Module#included — ddungum@...
I'm writing a c extension and I want to create a class called "World"
[#315407] IRB + C Extension = Memory Loss — Ryan Bates <ryan@...>
I'm having difficult making a simple C extension. The struct's memory
[#315409] How to provide variable to irb session — Bryan Richardson <btrichardson@...>
Hello all,
[#315412] That was unexpected -- strange scoping behavior — "Patrick Doyle" <wpdster@...>
Consider the following piece of code:
[#315424] Using Rails App (Models) in my Ruby script. — Nick da G <nick.gorbikoff@...>
Hi, All.
Nick da G wrote:
Nick da G wrote:
[#315427] Question about multi-demension hash initialization — "Ruby Student" <ruby.student@...>
Team,
On 19.09.2008 20:21, Ruby Student wrote:
On Sat, Sep 20, 2008 at 10:47 AM, Robert Klemme
[#315441] Softwareentwickler/-in, prometheus-Bildarchiv, Universit辰t zu K旦ln — Jens Wille <jens.wille@...>
Hi folks!
Am 19. September 2008 22:52 schrieb Jens Wille <jens.wille@uni-koeln.de>:
On Sep 22, 2008, at 7:41 AM, Robert Klemme wrote:
On Mon, 22 Sep 2008 15:19:45 +0200, Rob Biedenharn
Hi Josef, and Rob!
[#315444] ruby2exe — Junkone <junkone1@...>
i get a error i dont understand. pl help
You're right. Thank you!
[#315448] how to manage passwords — Junkone <junkone1@...>
many of my ruby apps have the password hard coded. i am looking for a
Junkone wrote:
[#315458] RDoc 2.2.0 released — Tony Strauss <tony.strauss@...>
RDoc 2.2.0 now is available!
Tony Strauss <tony.strauss@designingpatterns.com> wrote:
[#315460] One-Liners Mashup (#177 again) — Matthew Moss <matthew.moss@...>
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
def repeat(i)
On Sep 19, 2008, at 6:43 PM, Matthew Moss wrote:
> Given the class:
On Friday 19 September 2008 21:11:21 Patrick Doyle wrote:
On Sep 19, 2008, at 9:32 PM, Bill Kelly wrote:
James Gray wrote:
2008/9/20 Sebastian Hungerecker <sepp2k@googlemail.com>
Periodicity of 1/n -> length of the recurring sequence of the decimal
Too many solvers not providing additional problems!
[#315476] update a field in CSV file using fastercsv — Li Chen <chen_li3@...>
Hello everyone,
On Sep 19, 2008, at 10:41 PM, Li Chen wrote:
James Gray wrote:
On Sat, Sep 20, 2008 at 5:19 PM, Li Chen <chen_li3@yahoo.com> wrote:
[#315489] Symbol#re_s — Trans <transfire@...>
Came up with a great little extension today for the Symbol class. One
Thomas Sawyer wrote:
[#315496] system(" rake db:sample_data:hoop) — janus <emekamicro@...>
Hi all,
[#315510] iterating methods on multiple parameters — Jason Lillywhite <jason.lillywhite@...>
I'm thinking there must be a great Ruby-way to do the same thing to many
Jason Lillywhite wrote:
Thank you.
I just saw a similar issue (#163350 of this forum).
Jason Lillywhite wrote:
[#315527] for or each? — tekwiz <twarlick@...>
I just used the new roodi gem to check out some of my code that has a
Phlip wrote:
On Sep 20, 3:32=A0pm, Phlip <phlip2...@gmail.com> wrote:
tekwiz wrote:
It's interesting that array access using 'each' seems to be much
Joe Wfel wrote:
You can try my test if you like. I haven't checked it carefully. =20
[#315531] ThreadError: not owner — "Thomas B." <tpreal@...>
Hello. I had the following code and it worked in Ruby that came with
Hmmm. I'm guessing that the ability to use a Mutex like a semaphore
[#315541] Download a file from a site that needs authentication — Azalar --- <pteale@...>
I have a membership to a web site that needs authentication before you
[#315542] Explaination of a bit of code — Dave Lenhardt <davidinanhui@...>
Hey, another question. This is kinda putting several concepts together
[#315546] Grouping array elements while preserving order? — Matt Constantine <designmc@...>
Hi all,
[#315578] ruby gem to watch file — Junkone <junkone1@...>
is there any gem that will watch for a file and if the file exists, or
[#315608] comparison of Array with Array failed — Jesse Crockett <tefflox@...>
I am passing this hash to a method to sort it, which works in irb but in
[#315612] Instance variable acting like class variable? — "Mike Mr." <johnma@...>
I've written a Node class that I'm using to write a few programs for in
[#315619] Iterating through a string — Jody Glidden <jody.glidden@...>
If I try the following...
Alle Sunday 21 September 2008, Jody Glidden ha scritto:
[#315640] Using Ruby as a scripting language within a C app — forgottenwizard <phrexianreaper@...>
I'm working on building a MUD, and I would like to be able to use Ruby
On Mon, 22 Sep 2008 02:41:12 -0500, Brian Candler wrote:
Ken Bloom wrote:
On 05:58 Tue 23 Sep, Brian Candler wrote:
[#315645] Ruby GSUB question — Binh Ly <binh@...>
Hello All,
RnJvbTogQmluaCBMeSBbbWFpbHRvOmJpbmhAcGlnYmFieS5uZXRdIA0KIyA8YSBocmVmPSIjIiBv
I understand the first \\ , as it will produce \ when it's displayed ,
[#315691] Good docs & tutorials for ruby cairo? — "Kyle Schmitt" <kyleaschmitt@...>
Are there good documents and tutorials for ruby cairo?
[#315702] File path operations? — Kenneth McDonald <kenneth.m.mcdonald@...>
Ruby has an abstract File/path type which is nice (I'm mainly a Python
[#315711] how to extract something in between a pattern — Cheyne Li <happy.go.lucky.clr@...>
Hi experts,
[#315712] MysqlTableSyncer 0.2 — Roger Pack <rogerpack2005@...>
Released a script recently to sync the contents of tables between two
[#315750] Protecting Ruby code — Sasha Bee <rubyman77@...>
We are just starting a new project and it is going to be a commercial
T24gVHVlLCBTZXAgMjMsIDIwMDggYXQgMjo0MyBQTSwgU2FzaGEgQmVlIDxydWJ5bWFuNzdAZ21h
[#315753] Debugging Ruby Core — Saladin Mundi <saladin.mundi@...>
Hello everyone,
Saladin Mundi wrote:
Alex Fenton wrote:
Lex Williams wrote:
[#315765] Trouble running 'rubyscript2exe' for compiling my code — Idealone Ideally <shekarls@...>
All,
> I am getting the following error while to execute the
Erik Veenstra wrote:
[#315775] The World Trade Plaza - Free Trade Leads — "merwick.k" <merwick.k@...>
FREE INTERNATIONAL TRADE LEADS ==>
On Sep 23, 9:55=A0am, "merwick.k" <merwic...@gmail.com> wrote:
[#315783] Breaking apart arrays for arguments? — "Kyle Schmitt" <kyleaschmitt@...>
Is there a way to break apart an array to use it as arguments to
Kyle Schmitt wrote:
On Tue, Sep 23, 2008 at 11:41 AM, Thomas B. <tpreal@gmail.com> wrote:
Kyle Schmitt wrote:
On Tue, Sep 23, 2008 at 1:28 PM, Thomas B. <tpreal@gmail.com> wrote:
On Tue, Sep 23, 2008 at 2:19 PM, Kyle Schmitt <kyleaschmitt@gmail.com> wrote:
On Tue, Sep 23, 2008 at 3:19 PM, Kyle Schmitt <kyleaschmitt@gmail.com> wrote:
[#315804] Exiting ri on a mac terminal — Ruby Fan <jody.glidden@...>
Hi,
[#315812] undef_method and method lookup algorithm — "Xavier Noria" <fxn@...>
Descriptions of the method lookup algorithm normally describe a path
On Wed, Sep 24, 2008 at 2:37 AM, Xavier Noria <fxn@hashref.com> wrote:
[#315818] Small, simple Ruby applications and sample code? — Double Minus <nathan.wisman@...>
Hi all,
On Tue, Sep 23, 2008 at 11:59 PM, Double Minus <nathan.wisman@gmail.com> wrote:
Gregory Brown wrote:
On Wed, Sep 24, 2008 at 12:59:16PM +0900, Double Minus wrote:
Learning Ruby by programming can be fun, too. Just try out ruby-
[#315823] understanding inheritance and class singleton methods — Ittay Dror <ittay.dror@...>
Hi,
[#315864] Strange ruby problem — "christoforever@..." <christoforever@...>
So i've cut the program down to about 4 lines to give the idea of
[#315867] Rake dependencies unknown prior to running tasks — Joe Wfel <joe@...>
Say I don't know what all the dependencies are until I've already
Joe W旦lfel wrote:
Mike Gold wrote:
Cleaner, maybe. But inefficient in my case. That would mean a lot =20
Joe W旦lfel wrote:
> I don't see why it would be inefficient or require unnecessary
Joe W旦lfel wrote:
I didn't say what was being built couldn't be determined =20
Joe W旦lfel wrote:
[#315868] better test/unit progression display — Gaspard Bucher <gaspard@...>
Hi !
I cloned the repository and did "rake gem", "rake gem:install"
[#315884] erb reference anywhere online? — Kenneth McDonald <kenneth.m.mcdonald@...>
I have "Ruby for Rails" coming in in a few days, but in the meantime,
Kenneth McDonald wrote:
On Thu, Sep 25, 2008 at 05:14:00AM +0900, Brian Candler wrote:
> True. What's really needed is some guidelines for getting things done
[#315912] Getting the right class with inheritance and super() — "Kyle Schmitt" <kyleaschmitt@...>
I'm wondering what the _right_ way is to go about getting the right
On Wednesday 24 September 2008 15:45:13 Kyle Schmitt wrote:
2008/9/25 David Masover <ninja@slaphack.com>:
On Thu, Sep 25, 2008 at 2:26 AM, Robert Klemme
2008/9/25 Kyle Schmitt <kyleaschmitt@gmail.com>:
On Thu, Sep 25, 2008 at 9:51 AM, Robert Klemme
2008/9/25 Kyle Schmitt <kyleaschmitt@gmail.com>:
[#315918] How to read a PIPE in unbuffered way? — Iñaki Baz Castillo <ibc@...>
Hi, I'd like to know the Ruby equivalent to the following Perl code:
[#315920] Guy Decoux. — "Jean-Fran輟is Tr穗" <jftran@...>
Hello,
[#315932] Ruby Socket to Java Socket — Serge Savoie <seurdge.sawa@...>
Hello !
Serge Savoie wrote:
[#315954] Gem update on Windows is broken? — Charles Roper <reachme@...>
When I issue the "gem update" command on Windows, whenever it gets to a
On Sep 25, 2008, at 01:22 AM, Charles Roper wrote:
Eric Hodel wrote:
John T. wrote:
On Fri, Sep 26, 2008 at 2:09 AM, John T. <johnts@charter.net> wrote:
[#315960] Invocation of ruby interpreter for .rb files under bash — Zouplaz <user@...>
Hello, this is not really related to the core language by itself but I
[#315983] how to wrap a long string — Li Chen <chen_li3@...>
Hi all,
[#316013] How to get a string using InputDialog with FxRuby — Li Chen <chen_li3@...>
Hi all,
[#316027] How to get terminal dimensions without using curses or ncurses? — Kenneth McDonald <kenneth.m.mcdonald@...>
I'd like to be able to print to terminal and do some reasonable
On Sep 25, 2008, at 5:33 PM, Kenneth McDonald wrote:
[#316033] How to make Ruby _THE_ scripting language of choice, fold in SQLite — John Carter <john.carter@...>
Much has been written about the OOP / RDBMS impedance mismatch....
On Thursday 25 September 2008 18:43:31 John Carter wrote:
David Masover wrote:
On Thursday 25 September 2008 21:19:37 Clifford Heath wrote:
ara.t.howard wrote:
On Friday 26 September 2008 00:09:50 Clifford Heath wrote:
David Masover wrote:
On Friday 26 September 2008 07:34:41 Clifford Heath wrote:
David Masover wrote:
On Fri, 2008-09-26 at 08:53 +0900, ara.t.howard wrote:
[#316037] mkmf can't find lib then gives target pattern contains no % — "Lucas L." <lucaslevin@...>
Hello,
Lucas L. wrote:
[#316050] One-Liners Mashup (#177) — "Matthew Moss" <matthew.moss@...>
Thanks to everyone who joined in on the one-liners mashup. I think
[#316060] Is there a way to find the class methods of a class, just like 'methods' finds the instance methods? — Kenneth McDonald <kenneth.m.mcdonald@...>
The subject says it all, really.
[#316068] my ears are burning... ;) — parrt@...
Hi Gang, sorry I seem to have pissed off the ruby gang. :) Never
[#316070] darkfish-rdoc 1.1.5 — ged@...
On Sep 25, 2008, at 23:23 PM, ged@FaerieMUD.org wrote:
>
On Sep 26, 2008, at 16:52, Aria Stewart <aredridel@nbtsc.org> wrote:
[#316076] How does Array's each method change its elements ? — "w wg" <duzuike@...>
Hi,
From: w wg [mailto:duzuike@gmail.com]=20
I have noticed that Number elements and String elements of an array
T24gU2F0LCBTZXAgMjcsIDIwMDggYXQgOTo1NSBBTSwgdyB3ZyA8ZHV6dWlrZUBnbWFpbC5jb20+
[#316093] Problem with rake and dependencies — Brock Rycenga <brock.rycenga@...>
Hello:
I am not yet a rake enthusiast -- but just this morning I decided,
[#316095] Short question on regex in Ruby — Chris Ro <kylejc@...>
Hi,
[#316106] Cookie Monster (#178) — "Matthew Moss" <matthew.moss@...>
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Summary coming tomorrow.
On Thu, Oct 2, 2008 at 4:12 PM, Matthew Moss <matthew.moss@gmail.com> wrote:
[#316115] Delphi and Ruby — Anuradha Raghupathy <anuradha_raghupathy@...>
Hi,
[#316117] popen3 mysteriously hangs — James Dinkel <jdinkel@...>
I'm having a problem with a popen3 inexplicably hanging. I'm trying to
[#316144] RubyGems 1.3.0 — Eric Hodel <drbrain@...7.net>
Note! Some versions of RubyGems have a bug that will prevent
Eric Hodel wrote:
Vassilis Rizopoulos wrote:
[#316152] Trying to use gsub using variables — jackster the jackle <contact@...>
I need to be able to match and substitute text in a string and I'm
jackster the jackle wrote:
On 27.09.2008 05:18, Nit Khair wrote:
thanks guys...I'm making progress but what I have been slowly leading up
jackster the jackle wrote:
thanks...I got that to work...now for my last question...I am trying to
On 28.09.2008 03:03, jackster the jackle wrote:
On 28.09.2008 10:46, Robert Klemme wrote:
[#316164] Does array's each-block destroies outer objects ? — "w wg" <duzuike@...>
Hi,
[#316192] parsing xml (xmpp) with ruby — "Eric Will" <rakaur@...>
Hello World,
[#316199] Help, Ruby 1.8.6-p287 broke my "use" library and I don't know why — Daniel Berger <djberg96@...>
Hi everyone,
[#316205] Hello boys! — Milenko Stojadinovic Cvrcko <milenko.stojadinovic@...>
Hello, this is Milenko Stojadinovic from town Banjaluka,
[#316208] Variable name to string — "reuben doetsch" <hjast89@...>
I would like to get the name of the variable in string form, any way this is
[#316220] — Max Dev <max.devel@...>
I have a little problem...
Max Dev wrote:
Axel, Robert, Brian.
[#316228] Parsing a time span — Eric Marthinsen <emarthinsen@...>
Hello-
[#316233] what does the 'it' do? — timr <timrandg@...>
I came across the following code (see below). As President Clinton
[#316242] Merging hashes and having trouble with variable scope! — Andy Pipes <mypipeline@...>
Hi.
On Sun, Sep 28, 2008 at 6:42 AM, Andy Pipes <mypipeline@btinternet.com> wrote:
[#316246] Unable to install old gems — Mitko Kostov <mitko.kostov@...>
Hi, guys.
[#316261] screen capture to display it or to save it to a file possible? — liketofindoutwhy <liketofindoutwhy@...>
i would like do screen capture and then to display it in that app's
[#316269] Using Perl modules — Jan Luehr <jluehr@...>
Hello,
[#316275] Counting Tabs and splitting by that number — Nick Bo <bornemann1@...>
Basically i have a document which I am opening and then i am reading
[#316287] string#sub all instances of pattern??? — Nick Bo <bornemann1@...>
eg: str = "a b c d"
[#316294] wsdl2ruby request invalid while soapui's is correct — "Lee Grey" <nabble@...>
[Apologies if this ends up being a duplicate post. I've been waiting for
[#316315] future ruby books? — Lex Williams <etaern@...>
Could you guys give me a list of books that should come out soon ? Ruby
[#316316] ruby1.9 block scope — Daniel DeLorme <dan-ml@...42.com>
I could have sworn that one of the firm changes in ruby 1.9 was that
Hi,
Yukihiro Matsumoto wrote:
Hi,
Yukihiro Matsumoto wrote:
Hi,
Nobuyoshi Nakada wrote:
Hi,
Yukihiro Matsumoto wrote:
Hi --
David A. Black wrote:
Hi,
Yukihiro Matsumoto wrote:
Hi,
Hi,
Mike Gold wrote:
Daniel DeLorme wrote:
[#316326] SPAM — Trans <transfire@...>
We need to do something about the SPAM coming through on Usenet.
Trans wrote:
2008/9/29 Alex Fenton <aff28@deleteme.cam.ac.uk>:
[#316355] exception in thread? — Sylvain Viart <sylvain@...>
Hi,
Sylvain Viart wrote:
Hi Brian,
[#316356] ruby cgi, add params and redirect — David Susco <dsusco@...>
I'm looking for a way to add parameters to a cgi object and then
[#316382] Way to intercept method calls? - Reopened — "Brian Takita" <brian.takita@...>
Hello, I read the thread.
[#316385] Shoes: problem with http proxy — Raffaele Tesi <raffaele_tesi@...>
I've problem to do remote (internet) operations in the Shoes graphics
[#316392] Revision control for Ruby — thiagobrandam <thiagobrandam@...>
Does anyone know any good revision control tool/software for Ruby?
thiagobrandam wrote:
David Masover wrote:
[#316395] rexml exceptions — Eric Will <rakaur@...>
Is there any way to get any useful data out of REXML::ParseException
[#316414] copy remote a file — Bu Mihai <mihai.bulhac@...>
How can i copy with ruby a file from my computer to another computer
[#316424] extend keyword in class definition — "ruud grosmann" <r.grosmann@...>
Hi list,
>
> It's neither. extend() is method that all objects have (classes are objects
[#316432] How to implement signal.wait(timeout) ? — Jacob <ngocphuc@...>
Hi all
[#316447] Reliable character encodings conversion — "Hubert Łępicki" <hubert.lepicki@...>
SGksCgpJIGFtIGxvb2tpbmcgZm9yIHJlbGlhYmxlIGFuZCBlcnJvci1yZXNpc3RhbnQgd2F5IHRv
On Sep 30, 2008, at 7:30 AM, Hubert =C5=81=C4=99picki wrote:
[#316450] Real world ruby programs to learn from — Fernando Perez <pedrolito@...>
Hi,
Fernando Perez wrote:
Your link seems very interesting and cool to learn from and can very
2008/9/30 Fernando Perez <pedrolito@lavache.com>:
Robert Klemme wrote:
> Robert , pleac is "a work in progress" . Anyone can make contributions
[#316467] Mechanize error, File doesn't exist -- but it DOES! — David Beckwith <dbitsolutions@...>
I am using Mechanize to fill out a file upload form for an image file.
On Sep 30, 10:42=A0am, David Beckwith <dbitsoluti...@gmail.com> wrote:
Here is basically what's running in the script:
[#316477] C fwrite equivalent in ruby — "Lyes Amazouz" <lyesjob@...>
Hello list
[#316493] Mirroring large files over HTTP — Lars Haugseth <njus@...>
I'm working on a script where I want to download large files off a remote
[#316510] Syntax error — Alan Nicoll <alan.nicoll@...>
I'm a perlish person trying to get Ruby to talk to our Oracle 10g
[#316515] What gem needs to be installed so that 'require sqlite3' will work? — Kenneth McDonald <kenneth.m.mcdonald@...>
I've installed sqlite3-ruby, but that wasn't enough; I'm still getting:
[#316526] Mode method for Array — Glenn <glenn_ritz@...>
Hi,
Shame that the standard Hash#invert doesn't handle duplicate values
And since we all love speed, we tend to avoid inject. (For
2008/10/1 Erik Veenstra <erikveen@gmail.com>:
Hi --
David A. Black wrote:
2008/10/1 David A. Black <dblack@rubypal.com>:
Hi --
2008/10/1 David A. Black <dblack@rubypal.com>:
Optimization help - reading out of /proc on Solaris
Hi all,
Ruby 1.8.6
Solaris 10
I recently converted a C extension to get process table information on
Solaris into a pure Ruby. I knew it would be slower, I just didn't
realize how _much_ slower it would be. I was expecting the pure Ruby
version to be about 1/10th as fast. Instead, it's about 1/70th as
fast. Anticipating the, "Is it fast enough?" question, my answer is,
"I'm not sure". Besides, tuning can be fun. :)
Anyway, below is the code. I ran it through the profiler, but the top
two most costly ops were Dir.foreach, which I don't see any way to
optimize*, and the loop that gathers environment information, which I
again see no way to optimize.
# sunos.rb
#
# A pure Ruby version of sys-proctable for SunOS 5.8 or later
#--
# Directories under /proc on Solaris 2.8+
# The Sys module serves as a namespace only.
module Sys
# The ProcTable class encapsulates process table information.
class ProcTable
# The version of the sys-proctable library
VERSION = '0.8.0'
private
PRNODEV = -1 # non-existent device
FIELDS = [
:flag, # process flags (deprecated)
:nlwp, # number of active lwp's in the process
:pid, # unique process id
:ppid, # process id of parent
:pgid, # pid of session leader
:sid, # session id
:uid, # real user id
:euid, # effective user id
:gid, # real group id
:egid, # effective group id
:addr, # address of the process
:size, # size of process in kbytes
:rssize, # resident set size in kbytes
:ttydev, # tty device (or PRNODEV)
:pctcpu, # % of recent cpu used by all lwp's
:pctmem, # % of system memory used by process
:start, # absolute process start time
:time, # usr + sys cpu time for this process
:ctime, # usr + sys cpu time for reaped children
:fname, # name of the exec'd file
:psargs, # initial characters argument list
:wstat, # if a zombie, the wait status
:argc, # initial argument count
:argv, # address of initial argument vector
:envp, # address of initial environment vector
:dmodel, # data model of the process
:taskid, # task id
:projid, # project id
:nzomb, # number of zombie lwp's in the process
:poolid, # pool id
:zoneid, # zone id
:contract, # process contract
:lwpid, # lwp id
:wchan, # wait address for sleeping lwp
:stype, # synchronization event type
:state, # numeric lwp state
:sname, # printable character for state
:nice, # nice for cpu usage
:syscall, # system call number (if in syscall)
:pri, # priority
:clname, # scheduling class name
:name, # name of system lwp
:onpro, # processor which last ran thsi lwp
:bindpro, # processor to which lwp is bound
:bindpset, # processor set to which lwp is bound
:count, # number of contributing lwp's
:tstamp, # current time stamp
:create, # process/lwp creation time stamp
:term, # process/lwp termination time stamp
:rtime, # total lwp real (elapsed) time
:utime, # user level cpu time
:stime, # system call cpu time
:ttime, # other system trap cpu time
:tftime, # text page fault sleep time
:dftime, # text page fault sleep time
:kftime, # kernel page fault sleep time
:ltime, # user lock wait sleep time
:slptime, # all other sleep time
:wtime, # wait-cpu (latency) time
:stoptime, # stopped time
:minf, # minor page faults
:majf, # major page faults
:nswap, # swaps
:inblk, # input blocks
:oublk, # output blocks
:msnd, # messages sent
:mrcv, # messages received
:sigs, # signals received
:vctx, # voluntary context switches
:ictx, # involuntary context switches
:sysc, # system calls
:ioch, # chars read and written
:path, # array of symbolic link paths from /proc/<pid>/
pid
:contracts, # array symbolic link paths from /proc/<pid>/
contracts
:fd, # array of used file descriptors
:cmd_args, # array of command line arguments
:environ # hash of environment associated with the process
]
public
ProcTableStruct = Struct.new("ProcTableStruct", *FIELDS)
# In block form, yields a ProcTableStruct for each process entry
that you
# have rights to. This method returns an array of
ProcTableStruct's in
# non-block form.
#
# If a +pid+ is provided, then only a single ProcTableStruct is
yielded or
# returned, or nil if no process information is found for that
+pid+.
#
# Example:
#
# # Iterate over all processes
# ProcTable.ps do |proc_info|
# p proc_info
# end
#
# # Print process table information for only pid 1001
# p ProcTable.ps(1001)
#
def self.ps(pid = nil)
array = block_given? ? nil : []
Dir.foreach("/proc") do |file|
next if file =~ /\D/ # Skip non-numeric entries under /
proc
# Only return information for a given pid, if provided
if pid
next unless file.to_i == pid
end
# Skip over any entries we don't have permissions to read
begin
psinfo = IO.read("/proc/#{file}/psinfo")
rescue StandardError, Errno::EACCES
next
end
struct = ProcTableStruct.new
struct.flag = psinfo[0,4].unpack("i")[0] # pr_flag
struct.nlwp = psinfo[4,4].unpack("i")[0] # pr_nlwp
struct.pid = psinfo[8,4].unpack("i")[0] # pr_pid
struct.ppid = psinfo[12,4].unpack("i")[0] # pr_ppid
struct.pgid = psinfo[16,4].unpack("i")[0] # pr_pgid
struct.sid = psinfo[20,4].unpack("i")[0] # pr_sid
struct.uid = psinfo[24,4].unpack("i")[0] # pr_uid
struct.euid = psinfo[28,4].unpack("i")[0] # pr_euid
struct.gid = psinfo[32,4].unpack("i")[0] # pr_gid
struct.egid = psinfo[36,4].unpack("i")[0] # pr_egid
struct.addr = psinfo[40,4].unpack("L")[0] # pr_addr
struct.size = psinfo[44,4].unpack("L")[0] * 1024 #
pr_size
struct.rssize = psinfo[48,4].unpack("L")[0] * 1024 #
pr_rssize
# skip pr_pad1
# TODO: Convert this to a human readable string somehow
struct.ttydev = psinfo[56,4].unpack("i")[0] # pr_ttydev
# pr_pctcpu
struct.pctcpu = (psinfo[60,2].unpack("S")[0] * 100).to_f /
0x8000
# pr_pctmem
struct.pctmem = (psinfo[62,2].unpack("S")[0] * 100).to_f /
0x8000
struct.start = Time.at(psinfo[64,8].unpack("L")[0]) #
pr_start
struct.time = psinfo[72,8].unpack("L")[0] #
pr_time
struct.ctime = psinfo[80,8].unpack("L")[0] #
pr_ctime
struct.fname = psinfo[88,16].strip # pr_fname
struct.psargs = psinfo[104,80].strip # pr_psargs
struct.wstat = psinfo[184,4].unpack("i")[0] # pr_wstat
struct.argc = psinfo[188,4].unpack("i")[0] # pr_argc
struct.argv = psinfo[192,4].unpack("L")[0] # pr_argv
struct.envp = psinfo[196,4].unpack("L")[0] # pr_envp
struct.dmodel = psinfo[200,1].unpack("C")[0] # pr_dmodel
# skip pr_pad2
struct.taskid = psinfo[204,4].unpack("i")[0] # pr_taskid
struct.projid = psinfo[208,4].unpack("i")[0] #
pr_projectid
struct.nzomb = psinfo[212,4].unpack("i")[0] # pr_nzomb
struct.poolid = psinfo[216,4].unpack("i")[0] # pr_poolid
struct.zoneid = psinfo[220,4].unpack("i")[0] # pr_zoneid
struct.contract = psinfo[224,4].unpack("i")[0] #
pr_contract
# skip pr_filler
### lwpsinfo struct info
# skip pr_flag
struct.lwpid = psinfo[236,4].unpack("i")[0] # pr_lwpid
# skip pr_addr
struct.wchan = psinfo[244,4].unpack("L")[0] # pr_wchan
struct.stype = psinfo[248,1].unpack("C")[0] # pr_stype
struct.state = psinfo[249,1].unpack("C")[0] # pr_state
struct.sname = psinfo[250,1] # pr_sname
struct.nice = psinfo[251,1].unpack("C")[0] # pr_nice
struct.syscall = psinfo[252,2].unpack("S")[0] # pr_syscall
# skip pr_oldpri
# skip pr_cpu
struct.pri = psinfo[256,4].unpack("i")[0] # pr_syscall
# skip pr_pctcpu
# skip pr_pad
# skip pr_start
# skip pr_time
struct.clname = psinfo[280,8].strip # pr_clname
struct.name = psinfo[288,16].strip # pr_name
struct.onpro = psinfo[304,4].unpack("i")[0] # pr_onpro
struct.bindpro = psinfo[308,4].unpack("i")[0] #
pr_bindpro
struct.bindpset = psinfo[308,4].unpack("i")[0] #
pr_bindpset
# Get the full command line out of /proc/<pid>/as.
begin
fd = File.open("/proc/#{file}/as")
fd.sysseek(struct.argv, IO::SEEK_SET)
address = fd.sysread(struct.argc * 4).unpack("L")[0]
struct.cmd_args = []
0.upto(struct.argc - 1){ |i|
fd.sysseek(address, IO::SEEK_SET)
data = fd.sysread(128)[/^[^\0]*/] # Null strip
struct.cmd_args << data
address += data.length + 1 # Add 1 for the space
}
# Get the environment hash associated with the process.
struct.environ = {}
fd.sysseek(struct.envp, IO::SEEK_SET)
env_address = fd.sysread(128).unpack("L")[0]
loop do
fd.sysseek(env_address, IO::SEEK_SET)
data = fd.sysread(1024)[/^[^\0]*/] # Null strip
break if data.empty?
key, value = data.split('=')
struct.environ[key] = value
env_address += data.length + 1 # Add 1 for the space
end
rescue Errno::EACCES, Errno::EOVERFLOW, EOFError
# Skip this if we don't have proper permissions, if
there's
# no associated environment, or if there's a largefile
issue.
ensure
fd.close if fd
end
### struct prusage
begin
prusage = 0.chr * 512
prusage = IO.read("/proc/#{file}/usage")
# skip pr_lwpid
struct.count = prusage[4,4].unpack("i")[0] #
pr_count
struct.tstamp = prusage[8,8].unpack("L")[0] #
pr_tstamp
struct.create = prusage[16,8].unpack("L")[0] #
pr_create
struct.term = prusage[24,8].unpack("L")[0] #
pr_term
struct.rtime = prusage[32,8].unpack("L")[0] #
pr_rtime
struct.utime = prusage[40,8].unpack("L")[0] #
pr_utime
struct.stime = prusage[48,8].unpack("L")[0] #
pr_stime
struct.ttime = prusage[56,8].unpack("L")[0] #
pr_ttime
struct.tftime = prusage[64,8].unpack("L")[0] #
pr_tftime
struct.dftime = prusage[72,8].unpack("L")[0] #
pr_dftime
struct.kftime = prusage[80,8].unpack("L")[0] #
pr_kftime
struct.ltime = prusage[88,8].unpack("L")[0] #
pr_ltime
struct.slptime = prusage[96,8].unpack("L")[0] #
pr_slptime
struct.wtime = prusage[104,8].unpack("L")[0] #
pr_wtime
struct.stoptime = prusage[112,8].unpack("L")[0] #
pr_stoptime
struct.minf = prusage[120,4].unpack("L")[0] #
pr_minf
struct.majf = prusage[124,4].unpack("L")[0] #
pr_majf
struct.nswap = prusage[128,4].unpack("L")[0] #
pr_nswap
struct.inblk = prusage[128,4].unpack("L")[0] #
pr_inblk
struct.oublk = prusage[128,4].unpack("L")[0] #
pr_oublk
struct.msnd = prusage[128,4].unpack("L")[0] #
pr_msnd
struct.mrcv = prusage[128,4].unpack("L")[0] #
pr_mrcv
struct.sigs = prusage[128,4].unpack("L")[0] #
pr_sigs
struct.vctx = prusage[128,4].unpack("L")[0] #
pr_vctx
struct.ictx = prusage[128,4].unpack("L")[0] #
pr_ictx
struct.sysc = prusage[128,4].unpack("L")[0] #
pr_sysc
struct.ioch = prusage[128,4].unpack("L")[0] #
pr_ioch
rescue Errno::EACCES
# Do nothing if we lack permissions. Just move on.
end
# Information from /proc/<pid>/path. This is represented
as a hash,
# with the symbolic link name as the key, and the file it
links to
# as the value, or nil if it cannot be found.
#--
# Note that cwd information can be gathered from here,
too.
struct.path = {}
Dir["/proc/#{file}/path/*"].each{ |entry|
link = File.readlink(entry) rescue nil
struct.path[File.basename(entry)] = link
}
# Information from /proc/<pid>/contracts. This is
represented as
# a hash, with the symbolic link name as the key, and the
file
# it links to as the value.
struct.contracts = {}
Dir["/proc/#{file}/contracts/*"].each{ |entry|
link = File.readlink(entry) rescue nil
struct.contracts[File.basename(entry)] = link
}
# Information from /proc/<pid>/fd. This returns an array
of
# numeric file descriptors used by the process.
struct.fd = Dir["/proc/#{file}/fd/*"].map{ |f|
File.basename(f).to_i }
if block_given?
yield struct
else
array << struct
end
end
pid ? array[0] : array
end
end
end
Thanks,
Dan
* I tried tossing threads at it in a one-thread-per-directory
approach, but they didn't get along with IO.read in MRI, and seemed to
provide no real speed benefit with JRuby.