[#86843] Marshal.load EOF on loading subclass of Array (1.8.1) — Brian Marick <marick@...>
I think I have found a bug in marshaling in version "ruby 1.8.1
[#86844] Usage message in optparse.. summarize method? — "Jeff Dickens" <dickens@...>
I tried your script, and -h doesn't output anything. I'm using ruby 1.8.0.
[#86899] how do I create a TestSuite — Rasputin <rasputin@...>
This code used to work under 1.6.8 with Test::Unit 0.1.8:
[#86905] RSS aggregators with web interface? — Hugh Sasse Staff Elec Eng <hgs@...>
I think this may already exist, hence my question:
[#86926] Rite, Block locals and Autovivification — John Carter <john.carter@...>
Perl has what may be an evil solution block locals.
Hi --
[#86969] Fwd: Re: Ruby2 RCR (was Re: Constants, class variables and the cbase field) — "T. Onoma" <transami@...>
Hi all,
Hi --
On Tuesday 02 December 2003 03:38 pm, David A. Black wrote:
Hi --
On Tuesday 02 December 2003 04:54 pm, David A. Black wrote:
Hi,
[#86984] Attempted roadmap of future instance variables.... — "David A. Black" <dblack@...>
Hi --
So what is the relationship between @_ vars and @vars that are defined in a
Hi --
Maybe I am being dense, so bear with me...
Steve Tuckner wrote:
Steve Tuckner wrote:
OK so the jist of it is that @_var variables are stored with the class of
Hi,
Hi --
>>>>> "D" == David A Black <dblack@wobblini.net> writes:
ts wrote:
>>>>> "C" == Christoph <chr_mail@gmx.net> writes:
ts wrote:
Hi --
On Fri, 5 Dec 2003 22:56:41 +0900, David A. Black wrote:
Austin Ziegler wrote:
On Friday 05 December 2003 05:40 pm, Christoph wrote:
Hi,
Yukihiro Matsumoto wrote:
On Dec 5, 2003, at 12:15, Yukihiro Matsumoto wrote:
Nathaniel Talbott wrote:
On Friday 05 December 2003 07:40 pm, Nathaniel Talbott wrote:
On Dec 5, 2003, at 14:47, T. Onoma wrote:
On Friday 05 December 2003 09:05 pm, Nathaniel Talbott wrote:
On Sat, 6 Dec 2003 01:40:42 +0900, Christoph wrote:
On Friday 05 December 2003 06:41 pm, Austin Ziegler wrote:
On Sat, 6 Dec 2003 02:50:19 +0900, T. Onoma wrote:
On Friday 05 December 2003 07:02 pm, Austin Ziegler wrote:
Can anyone take a look at this and tell me what the hek is happening with
>>>>> "T" == T Onoma <transami@runbox.com> writes:
Take a look at this:
[#86989] require bug?? (1.8.0) — Andrew Walrond <andrew@...>
Require is supposed to include each file only once, but if the same physical
[#87000] protocol.rb (1.6) doesn't like VERP style addressing — culley harrelson <culley@...>
I am using NET::SMPT to send messages with VERP style addressing:
[#87031] ruby 1.8 in the freebsd ports tree — culley harrelson <culley@...>
Does anyone have ruby 1.8 + libraries working from the freebsd ports
culley harrelson (culley@fastmail.fm) wrote:
[#87050] Please recommend a regular expression excluding return character. .. — Kurt Euler <keuler@...>
All-
[#87066] What's the best way to create methods dealing with an object of a certain class? — Leif K-Brooks <eurleif@...>
I want to add a method to be run on Strings. Currently, I'm just adding
Leif K-Brooks wrote:
I'm looking for a very indepth book on Ruby. Any suggestions?
[#87067] YAML Question: Using YAML::YamlNode#transform Method to get float values? — RubyQuestions@... (RubyQuestions)
I'm trying to use the transform method in YAML to grab the values from
[#87083] Some Regexp — orlovdn@... (Dmitry N Orlov)
I want to get array from file like this:
On Wed, 3 Dec 2003, Robert Klemme wrote:
>>>>> "H" == Hugh Sasse Staff Elec Eng <hgs@dmu.ac.uk> writes:
On Wed, 3 Dec 2003, ts wrote:
>>>>> "H" == Hugh Sasse Staff Elec Eng <hgs@dmu.ac.uk> writes:
[#87084] mixin vs. multiple inheritence — "T. Onoma" <transami@...>
In ruby-talk:72013, matz wrote:
T. Onoma wrote:
[#87085] each_with_what_index? — "T. Onoma" <transami@...>
Can you see the bug'a'boo in the following snippet?
On Wednesday, December 3, 2003, 10:01:38 PM, T. wrote:
On Wednesday 03 December 2003 12:23 pm, Gavin Sinclair wrote:
[#87155] Re: Linux protocol.rb and smtp.rb problem — George Girton <ggirton@...>
I'm looking forward to the answer to this question, I had the
George Girton (ggirton@mac.com) wrote:
[#87156] c extension troubles on windows — Michael Hale <michael@...>
Hi ruby extension geeks, and thanks in advance for your help.
"Michael Hale" wrote:
Unfortunately I don't have the source for the windows version of the
I recently resurrected my code to try to get it working again. So far
[#87159] Using Modules as Decorators — elbows@... (Nathan Weston)
Someone recently mentioned the idea of using Modules to implement the
[#87165] Ruby not exiting when developing extension — Derek Lewis <lewisd@...00f.net>
>>>>> "D" == Derek Lewis <lewisd@f00f.net> writes:
>>>>> "D" == Derek Lewis <lewisd@f00f.net> writes:
[#87166] _VERY_ basic Here Doc Question — "dhtapp" <dhtapp@...>
Hi,
[#87183] Swatch's internet time in Ruby [Code Inside] — Pablo Lorenzzoni <spectra@...>
Hello ALL!
[#87192] debugging [BUG] messages/c ext woes — "Ara.T.Howard" <ahoward@...>
[#87203] sorting — vanjac12@... (Van Jacques)
I'm not sure where to post about this problem, so
[snip]
On Thu, Dec 04, 2003 at 07:24:28PM +0900, Peter wrote:
On Sunday 07 December 2003 12:43, nainar wrote:
On Sun, Dec 07, 2003 at 03:14:28PM +0900, Dmitry V. Sabanin wrote:
On Sunday 07 December 2003 10:41 am, nainar wrote:
[#87209] Libxml XML::Document.find("/doc") # [BUG ] Segmentation fault — ujwalic@... (Ujwal)
This is my first message
[#87221] Problems with TestUnit — "Dmitry V. Sabanin" <sdmitry@...>
Hello,
On Dec 4, 2003, at 12:23, Dmitry V. Sabanin wrote:
[#87233] Generalized break? — Hal Fulton <hal9000@...>
I hate to bring up possible language changes, since there is
On Fri, 5 Dec 2003, Hal Fulton wrote:
[#87241] TCL/TK 8.4 for Windows — Ian Hobson <NewGroups@...>
Hi,
[#87247] how to navigate in a file ? — "Boris \"BXS\" Schulz" <bxs@...>
Hi,
[#87251] propagating errno from c extensions — "Ara.T.Howard" <ahoward@...>
[#87255] WeakRef and Object#hash — Samuel Tesla <samuel@...>
I'm trying to implement a weak key hash to use for generic objects.
Is there an assignment version of Hash#values_at, so I can assign
On Fri, 5 Dec 2003 12:42:05 +0900, Mark J. Reed wrote:
On Fri, Dec 05, 2003 at 01:45:36PM +0900, Austin Ziegler wrote:
On Fri, 5 Dec 2003 13:57:04 +0900, Mark J. Reed wrote:
[#87301] Re: Dumb question to which I ought to know the answer by now — Michael Campbell <michael_s_campbell@...>
Mark J. Reed wrote:
[#87333] Re: Attempted roadmap of future instance variables.... — "Weirich, James" <James.Weirich@...>
From: David A. Black [mailto:dblack@wobblini.net]
Hi,
Hi --
David A. Black <dblack@wobblini.net>:
[#87364] Dir.mkdir fails — "Jesper Olsen" <Jesper@...>
From a mod_ruby cgi_script I try to use
[#87382] Idea: Linux PIM in Ruby — Hal Fulton <hal9000@...>
On my wishlist of top 20 things I'd like to do: A PIM for Linux.
On Saturday, December 6, 2003, 4:34:01 PM, Hal wrote:
Hal Fulton wrote:
Lyle Johnson wrote:
Hal Fulton wrote:
Lyle Johnson wrote:
[#87409] rbbr-0.5.0 — Masao Mutoh <mutoh@...>
Hi,
[#87430] Ideas for replacing $0==__FILE__ — Hal Fulton <hal9000@...>
I've accepted now that my "generalized break" was a bad idea. In
On Saturday 06 December 2003 07:59 pm, Hal Fulton wrote:
Hal Fulton (hal9000@hypermetrics.com) wrote:
Eric Hodel wrote:
Hal Fulton (hal9000@hypermetrics.com) wrote:
On Thu, 11 Dec 2003 06:21:37 +0900, Eric Hodel wrote:
[#87431] Running Ruby from a CD — ptkwt@... (Phil Tomson)
I'm looking into a contract to develop a license manager/installation tool
[#87459] Trying to create a Ruby daemon — Samuel Kvarnbrink <samuel.kvarnbrink@...>
Hi,
[#87492] subclassing Errno::XXX — Joel VanderWerf <vjoel@...>
[#87498] handling large data sets — Martin Pirker <nospam@...>
Hi...
[#87506] Surprising(?) behaviour of the comma operator — Frank Schmitt <invalid@...>
[#87519] Ruby blocks... forever — Nathaniel Talbott <nathaniel@...>
Ruby 1.8.1preview2, running on Debian Linux. Server is WEBrick based,
>>>>> "N" == Nathaniel Talbott <nathaniel@talbott.ws> writes:
On Dec 8, 2003, at 08:52, ts wrote:
>>>>> "N" == Nathaniel Talbott <nathaniel@talbott.ws> writes:
On Dec 8, 2003, at 09:36, ts wrote:
>>>>> "N" == Nathaniel Talbott <nathaniel@talbott.ws> writes:
On Dec 8, 2003, at 10:03, ts wrote:
[#87545] ruby-gdkpixbuf — Rasputin <rasputin@...>
[#87553] format money — saggmannen@... (saggmannen)
Hello, is there a way to format "Money"-style floats in ruby. E.g:
On Mon, Dec 08, 2003 at 07:06:32PM +0000, saggmannen wrote:
> Yes, there is. I'm sure that there's a module in the RAA for this,
Received: Tue, 9 Dec 2003 04:37:54 +0900
On Tuesday, December 9, 2003, 6:07:02 AM, saggmannen wrote:
On Tue, Dec 09, 2003 at 05:55:07AM +0900, Gavin Sinclair wrote:
On Tuesday, December 9, 2003, 8:42:02 AM, Mark wrote:
On Tue, Dec 09, 2003 at 06:53:42AM +0900, Gavin Sinclair wrote:
> On Tue, Dec 09, 2003 at 06:53:42AM +0900, Gavin Sinclair wrote:
Hi!
On Tue, 2003-12-09 at 19:03, Josef 'Jupp' SCHUGT wrote:
Tom Copeland wrote:
il Thu, 11 Dec 2003 03:14:43 +0900, Tom Copeland <tom@infoether.com>
[#87567] drb on windows not connecting — Joel VanderWerf <vjoel@...>
[#87586] RCR - 'struct flock*' wrapper for rb_io_fcntl — "Ara.T.Howard" <ahoward@...>
Hi,
[#87587] Adjusting the Scope of Blocks — Mark Cox <mark_cox@...>
Hi,
Hi --
Hi --
>>>>> "D" == David A Black <dblack@wobblini.net> writes:
[#87622] Segfault in 1.8.1p3 — Nathaniel Talbott <nathaniel@...>
Unfortunately, I don't have much information at this point, but here's
On Dec 9, 2003, at 08:24, Nathaniel Talbott wrote:
>>>>> "N" == Nathaniel Talbott <nathaniel@talbott.ws> writes:
On Dec 10, 2003, at 05:33, ts wrote:
On Dec 10, 2003, at 11:10, Nathaniel Talbott wrote:
[#87626] ANN: REXML 2.7.2 — ser@... (Sean Russell)
Hi,
--rexml--
[#87628] passing a func to a ruby func — elathan@...
Hello!
[#87632] Multiline Regexps — Ceri Storey <cez@...>
Either this is a bug, or I'm missing something:
[#87638] Inheriting variables, super, and "not super"? — Hugh Sasse Staff Elec Eng <hgs@...>
Is there a way in a method to say
[#87671] expect, rexpect and others — Ben Giddings <bg-rubytalk@...>
I know that now Ruby includes "expect", and that's great, however I noticed
Ben Giddings wrote:
On Thu, 11 Dec 2003, Ben Giddings wrote:
[#87691] Request for comments (longish) — "Luke A. Kanies" <luke@...>
Hi all,
[#87701] ruby 1.8.0: Error on "%02d" % "08" or "%02d" % "09" — Thomas Link <samul@...>
Hi,
[#87706] Docs for Socket, OpenSSL, etc — "James F. Hranicky" <jfh@...>
Are there any plans to add docs for modules like Socket and OpenSSL, etc to
On Thursday, December 11, 2003, 1:20:21 AM, James wrote:
On Wed, 10 Dec 2003 23:20:21 +0900, James F. Hranicky wrote:
On Thu, 11 Dec 2003 20:57:00 +0900
On Fri, 12 Dec 2003 00:07:28 +0900
On Fri, 12 Dec 2003 02:14:43 +0900
On Friday, December 12, 2003, 4:50:15 AM, James wrote:
[#87737] Fast loading of BIG data structures — Steven Lumos <slumos@...>
[#87775] prog for g.c.d. of 2 integers — vanjac12@... (Van Jacques)
Topics from mathematics make good practice programs, IMO.
[#87783] problems with racc: $end token — "Luke A. Kanies" <luke@...>
Hello,
On Friday, 12 December 2003 at 0:42:30 +0900, Luke A. Kanies wrote:
On Fri, 12 Dec 2003, Jim Freeze wrote:
On Friday, 12 December 2003 at 1:28:57 +0900, Luke A. Kanies wrote:
On Fri, 12 Dec 2003, Jim Freeze wrote:
On Friday, 12 December 2003 at 2:16:53 +0900, Luke A. Kanies wrote:
[#87787] FastCGI ? — "T. Onoma" <transami@...>
Quote from the fastcgi website:
[#87819] Ruby-Talk Subject Matters — "T. Onoma" <transami@...>
Out of curiosity, how do others feel about "suggestive" threads? Do you feel
T. Onoma wrote:
[#87856] Simple issue giving problems — Brad <coish@...>
Hello all,
[#87857] Appending to an array — Thomas Adam <thomas_adam16@...>
Hi All,
[#87867] YAML treatment of '#' character in middle of a string — "David A. Black" <dblack@...>
Hi --
[#87876] Fwd: Can't define +@ for Symbol (plus ruby install problem) — "T. Onoma" <transami@...>
Oops, my bad, wrong mailing list. Please see fowared message:
[#87889] History of programming languages — Daniel Carrera <dcarrera@...>
Here is a diagram with a "family tree" showing the history of programming
[#87890] getting a method from a block in C — elathan@...
[#87892] regexp for $(text) — Szymon Drejewicz <drejewic@...>
I have string
[#87924] types? casting and bools — KONTRA Gergely <kgergely@...>
Hi!
On Sat, 13 Dec 2003 01:56:18 +0900, KONTRA Gergely wrote:
[#87926] non-blocking io — "Ara.T.Howard" <ahoward@...>
>>>>> "A" == Ara T Howard <ahoward@ngdc.noaa.gov> writes:
>>>>> "D" == Derek Lewis <lewisd@f00f.net> writes:
[#87947] Object ID Lookup? — "Jim Moy" <web@...>
Hi all, a Ruby Nuby here with a question.
[#87950] Re: Zeus Programmers Editor V3.92 — "Berger, Daniel" <djberge@...>
> -----Original Message-----
[#87957] Can xemacs do syntax highlighting for ruby — Nigel Wilkinson <nigel@...>
Hi folks
On Sat, 13 Dec 2003 09:25:54 +0900
[#87964] Mirror for FreeRIDE? — Jonathan Edwards <edwards@...>
I'd like to check out FreeRIDE, but it is offline. rubyide.org has been
[#87965] Q: introspection — Mike Hall <mghallNO@...>
Is there a way to find out the methods that a given class/modules provides,
[#87975] installing extmath on MAC OS X — vanjac12@... (Van Jacques)
MAC OS X comes with ruby installed (v.1.6.7), which is nice.
[#87981] strange rb_gc_mark error — Elias Athanasopoulos <elathan@...>
Hello!
Hi,
On Sat, Dec 13, 2003 at 10:11:12PM +0900, Yukihiro Matsumoto wrote:
[#87993] additional methods for Array — David Garamond <lists@...6.isreserved.com>
I'm wondering what other people's thoughts are about adding these
[#87996] fox-toolkit.org down? — Carl Youngblood <carl@...>
Anybody know what's wrong with the Fox web site?
[#88031] inplace assignment — "T. Onoma" <transami@...>
is there anyway, anyway at all, ugly hacks accepted, of doing inplace
T. Onoma wrote:
On Sunday 14 December 2003 05:51 am, Hal Fulton wrote:
Hi,
T. Onoma wrote:
On Sunday 14 December 2003 07:49 am, Hal Fulton wrote:
On Sun, 14 Dec 2003, T. Onoma wrote:
On Sunday 14 December 2003 03:59 pm, David A. Black wrote:
On Mon, 15 Dec 2003, T. Onoma wrote:
Alright, a number of things related to Duck Tpying have been popping up and I
> -----Original Message-----
On Mon, 15 Dec 2003, David Naseby wrote:
On Sunday 14 December 2003 10:06 pm, John Carter wrote:
You could invoke any method on any object of any class.
[#88042] append_features(mod) -- mod.kind_of? makes absolutely no sense — "T. Onoma" <transami@...>
First of all, if class Class inherits class Module then why isn't
Hi,
[#88050] dbi install failed — thomas eric <sanniso@...>
Hi,
[#88104] Q: How to convert hashed parameters to local variables? — Dennis Misener <dm@...>
In my efforts to write yet another template language {I know, I
Hi --
[#88147] extremely strange segfault — "Luke A. Kanies" <luke@...>
Hi all,
Hi,
[#88150] UnboundMethods Useless? — "T. Onoma" <transami@...>
Urrrr.....
On Tue, Dec 16, 2003 at 05:09:00AM +0900, T. Onoma wrote:
You can do stuff like this:
On Tuesday 16 December 2003 08:54 pm, Dan Doel wrote:
On Wed, 17 Dec 2003, T. Onoma wrote:
>>>>> "C" == Chad Fowler <chad@chadfowler.com> writes:
On Wednesday 17 December 2003 01:21 pm, ts wrote:
>>>>> "T" == T Onoma <transami@runbox.com> writes:
On Wednesday 17 December 2003 01:59 pm, ts wrote:
On Wed, 17 Dec 2003, T. Onoma wrote:
> I don't know what you mean by (ir)reversible, but the point is that
>>>>> "P" == Peter <Peter.Vanbroekhoven@cs.kuleuven.ac.be> writes:
> a module is not a class
>>>>> "P" == Peter <Peter.Vanbroekhoven@cs.kuleuven.ac.be> writes:
> No, I'm saying that only method in *some* class can work in another class.
>>>>> "P" == Peter <Peter.Vanbroekhoven@cs.kuleuven.ac.be> writes:
[#88159] Re: Extracting multiple lines from a file — "Berger, Daniel" <djberge@...>
> -----Original Message-----
On Tue, Dec 16, 2003 at 07:16:23AM +0900, Ron Coutts wrote:
On Tue, 16 Dec 2003, Mark J. Reed wrote:
Dave Thomas <dave@pragprog.com> wrote in message news:<4F6A14B4-2FEA-11D8-BFF4-000A95676A62@pragprog.com>...
Dave Thomas wrote:
[#88172] Copying methods from one class to another — "T. Onoma" <transami@...>
Is there any way to copy a method from one class to another?
T. Onoma wrote:
On Tuesday 16 December 2003 05:23 am, Jamis Buck wrote:
On Tue, 16 Dec 2003, T. Onoma wrote:
On Tuesday 16 December 2003 02:51 pm, David A. Black wrote:
Sorry to step into the middle of a conversation, but what does this mean:
On Tuesday 16 December 2003 04:33 pm, Hacksaw wrote:
> On Tuesday 16 December 2003 04:33 pm, Hacksaw wrote:
On Tuesday 16 December 2003 10:51 pm, Hacksaw wrote:
> So, the short notation of
> Well, okay, you can do this. It strikes me that this is the equivalent
Hi --
[#88179] redirect stdout for Kernel.system()? — Neil Spring <nspring@...>
I'd like to be able to say:
[#88188] rescue block doesn't get run — Hacksaw <hacksaw@...>
This code snippet processes the options correctly, but if I leave off a
[#88197] Open Source Convention 2004 - Call for Papers — "Berger, Daniel" <djberge@...>
All,
[#88211] Newbie questions — jfrapper@... (Jim Frapper)
I was wondering what the equivalent tools were to perldoc(ri is not)
Daniel Carrera wrote:
On Wed, 17 Dec 2003, Jim Frapper wrote:
On Wednesday, December 17, 2003, 8:10:19 AM, Chad wrote:
>
On Wed, 17 Dec 2003, Daniel Carrera wrote:
On Wed, Dec 17, 2003 at 07:07:45AM +0900, Luke A. Kanies wrote:
On Wed, 17 Dec 2003, Daniel Carrera wrote:
Derek Lewis wrote:
On Thu, 18 Dec 2003, Jamis Buck wrote:
--- Derek Lewis <lewisd@f00f.net> wrote:
Daniel Carrera wrote:
[#88220] Re: Newbie questions — "Berger, Daniel" <djberge@...>
> -----Original Message-----
Berger, Daniel wrote:
--- Hal Fulton <hal9000@hypermetrics.com> wrote:
Thomas Adam wrote:
> >>Personally I'd call it "rman" or some such.
Daniel Carrera wrote:
[#88234] substituting apostrphe's — Daniel Bretoi <lists@...>
Hi,
[#88286] Re: Secure Ruby ? — Brett S Hallett <dragoncity@...>
Thanks Clifford,
[#88289] Very odd IO problem — Brad <coish@...>
All:
[#88299] non-english characters — Daniel Bretoi <lists@...>
how do I match non-english alphabetical characters? Such as the german
Hi,
[#88303] Re: Newbie questions — "Weirich, James" <James.Weirich@...>
From: Randy W. Sims [mailto:RandyS@ThePierianSpring.org]
On 12/17/2003 12:30 AM, Weirich, James wrote:
On Thu, 18 Dec 2003, Randy W. Sims wrote:
[#88342] Re: Copying methods from one class to another — Michael Campbell <michael_s_campbell@...>
T. Onoma wrote:
On Wednesday 17 December 2003 03:43 pm, Michael Campbell wrote:
On Thu, 18 Dec 2003, T. Onoma wrote:
[#88357] 42.type and TypeError or 42.class and ClassError — "Ara.T.Howard" <ahoward@...>
[#88389] Binary-safe file IO — Carl Youngblood <carl@...>
Hi, I'm trying to embed a binary file inside a ruby script but I'm
[#88398] Secure Ruby - second challenge ! — Brett S Hallett <dragoncity@...>
Further to the excellent 'attacks' on my 'rubyrun' tool, I have revised
[#88414] Yukihiro - Please ensure backwards compatibility — jobeicus@... (Joseph Benik)
having recently migrated one of my machines from a 1.6 flavor to the
On Thu, 18 Dec 2003 11:01:56 +0900, Joseph Benik wrote:
On Thu, Dec 18, 2003 at 12:39:53PM +0900, Austin Ziegler wrote:
Elias Athanasopoulos <elathan@phys.uoa.gr> wrote:
[#88419] Configuration Files — "John W. Long" <ws@...>
A while back someone submitted some code to this list for evaluating
[#88444] question about I/O and pipes — Jean-Baptiste <temuphaey0@...>
There is a (very) little programm (count.rb) which count lines:
[#88462] Re: Configuration Files — Gennady <gfb@...>
> Subject: Re: Configuration Files
[#88474] FreeRIDE project moved to RubyForge — Laurent Julliard <laurent@...>
To all FreeRIDE fellows,
[#88478] WxRuby? — Daniel Carrera <dcarrera@...>
The FreeRide annoucement just reminded me... what's up with wxRuby?
[#88484] What happened to File.copy? — "Ron Coutts" <rcoutts@...>
Did File.copy and File.cp disappear sometime between Ruby 1.6 and 1.8?
[#88494] How to return more than one result from a method? — Tim Hunter <cyclists@...>
I'm trying to code a method that has two result values. The values are
On Fri, 19 Dec 2003, Tim Hunter wrote:
Hi --
Hi --
On Fri, Dec 19, 2003 at 10:28:49PM +0900, David A. Black wrote:
[#88509] amrita question — Carl Youngblood <carl@...>
I am trying to nest one amrita template inside another. The problem I'm
On Fri, 19 Dec 2003, Carl Youngblood wrote:
[#88524] string to UTF — Jean-Baptiste <temuphaey0@...>
How to convert a single string into UTF format.
On Fri, Dec 19, 2003 at 04:59:53PM +0100, Jean-Baptiste wrote:
Mark J. Reed wrote:
[#88544] Lexically scoped variables — Eric Sunshine <sunshine@...>
Hello,
Received: Sat, 20 Dec 2003 06:47:53 +0900
[#88547] O'Reilly Network Article: "Ruby's Present and Future" — Lyle Johnson <lyle@...>
Haven't seen this mentioned here yet, but they are running a nice
[#88549] 2003 OSDir.com Editor's Choice Awards in Open Source — Lyle Johnson <lyle@...>
Also, also, a friend just pointed out this story:
[#88552] Could I have an example of using Continuations as 'co-routines'? — Asfand Yar Qazi <im_not_giving_it_here@..._hate_spam.com>
Hi,
[#88560] tk file dialog and directories — "Ara.T.Howard" <ahoward@...>
rtk'rs-
[#88572] Problem with bdb — Andreas Schwarz <usenet@...>
I have compiled bdb on Debian Woody, but when I try to use it I get the
[#88581] replacing two EOL chars by one — xah@... (Xah Lee)
i have a bunch of java files that has spaced-out formatting that i
"Xah Lee" <xah@xahlee.org> wrote in message
[#88594] Hex editor and FXRuby ? — Noel Cuillandre <noel.cuillandre@...>
Anyone know to make a hex editor in FXRuby ?
[#88618] Ruby for Windows, Compiler (like DJGPP) — "Legion" <Legion@...>
I'm a beginner in the C++ world, and have been using DJGPP compiler program.
[#88643] Ruby 1.8.1 preview4 — matz@... (Yukihiro Matsumoto)
Hi,
Hi, all,
[#88663] win32ole, outlook, ruby 1.8 — "Greg Brondo" <greg@...>
I'm using ruby 1.8 on Windows via rubyinstaller accessing outlook with
[#88664] md5 — KONTRA Gergely <kgergely@...>
Hi!
[#88666] Ruby for AIX 5.2? — don_feliciano@... (Don)
Latest stable ruby, as well as 1.8.1 preview 4, does not build on AIX
On Tue, 23 Dec 2003, Don wrote:
Hi,
On Tue, 23 Dec 2003, Yukihiro Matsumoto wrote:
[#88674] creating an object of a specific type — Elias Athanasopoulos <elathan@...>
Hello!
[#88686] Question about Ruby2 and Rite.... — jfrapper@... (Jim Frapper)
I have been familiarizing myself with ruby over recent weeks. This
il 22 Dec 2003 15:20:48 -0800, jfrapper@lycos.com (Jim Frapper) ha
[#88692] Does String cache its 'hash' return value? — Asfand Yar Qazi <im_not_giving_it_here@..._hate_spam.com>
What I mean is, if I repeatedly call a String's hash method (i.e. like
[#88698] Using DRbObservable — "Andre Nathan" <andre@...>
Hi
[#88707] bug: threads and win32 — hatespyware@... (anon luker)
Hi. I use Arton X's Activeruby package (ruby 1.8.0 (2003-08-04)
[#88731] RubyGems and dependencies — sera@... (Francis Hwang)
Two RubyGems questions about dependencies:
On Wed, 24 Dec 2003, Francis Hwang wrote:
In article <Pine.LNX.4.44.0312231138440.27882-100000@www.pocketdeveloper.com>,
Phil Tomson wrote:
[#88746] binary data — Alwin Blok <alwinblok@...>
Hello!
[#88747] Property files — "Ron Coutts" <rcoutts@...>
Is there a library class for handling common property files that have
[#88752] ruby 1.8 on MAC OS X — vanjac12@... (Van Jacques)
Has anyone posted an installer package for ruby 1.8 for MAC OS X (10.2.8
[#88765] getaddrinfo :: ? — Chris Morris <chrismo@...>
I'm tinkering around with Borges on my XP box and one of the first
[#88781] TkText freezes — quillion <me@...>
Hello all,
>>>>> "q" == quillion <me@privacy.net> writes:
Hi,
>>>>> "Y" == Yukihiro Matsumoto <matz@ruby-lang.org> writes:
Hi,
[#88814] ruby 1.8.1 — matz@... (Yukihiro Matsumoto)
Merry Christmas,
[#88836] Happy Holidays — "jbritt@..." <jbritt@...>
Here's hoping everyone finds peace and happiness in the new year.
[#88872] dbdbd installation help please — "Joseph Paish" <jpaish@...>
has anyone successfully installed dbdbd? this program has just the right level of simplicity and
[#88876] ruby-mode font-lock trouble on Gnu Emacs 21.3.1 — Samuel Tesla <samuel@...>
I've been using ruby-mode along with a number of different Emacsen over the
[#88877] newbie question on how to subtract two dates. — Ruby Ruby <ruby4lover@...>
[#88904] The great ri conversion... :) — Dave Thomas <dave@...>
We're in the middle of integrating RDoc/ri-style comments into the main
On Sam, 2003-12-27 at 07:30, Dave Thomas wrote:
[#88930] Defining/Deleting variables — GGarramuno@... (GGarramuno)
Okay, I am trying to clarify the use of nil in Ruby.
On Sun, 28 Dec 2003 18:51:50 +0900, GGarramuno wrote:
[#88936] Inconsistent value of uninitialized variable — Gavin Sinclair <gsinclair@...>
The following statement, free of all context, generates an error:
Nathaniel Talbott <nathaniel@talbott.ws> wrote:
[#88940] system() — "Jesper Olsen" <Jesper@...>
I want to call a shell command from a mod_ruby cgi-script, eg.:
[#88954] An addition to Array (or Enumerable)? — Harry Ohlsen <harryo@...>
Yesterday, I wanted to get the output from "ls -l some_file" and pull out just the file size and the file name. As I start writing this, I realise, of course, that I'd have been better off just using the File#size method, but I still think the issue I hit is interesting.
[#88965] Re: Anyone has IniFile? — "Andre Nathan" <andre@...>
Albert Chou said:
[#88966] RDOC generation broken in 1.8.1 — "Chris White" <xxx@...>
I'm very new to Ruby, but I have successfully built and installed Ruby 1.8.1
[#88996] Question about Ruby implementation — Jamis Buck <jgb3@...>
I've been poking around the Ruby internals, trying to understand the
[#88998] Having trouble with ruby-mysql — Martin Larsson <martin.morgoth@...>
Hi list
[#89015] ruby-dev summary 22273-22434 — "Takaaki Tateishi" <ttate@...>
Hello,
On Wed, 31 Dec 2003 00:45:11 +0900, Takaaki Tateishi wrote:
In article <bstlfp$1a1cm$1@ID-194283.news.uni-berlin.de>,
On Wed, 31 Dec 2003 16:21:48 +0900, Phil Tomson wrote:
On Wed, 31 Dec 2003 17:10:52 +0900, Austin Ziegler wrote:
[#89025] ruby-opengl, ruby-glut — Alwin Blok <alwinblok@...>
Hello!
[#89054] rdoc: how to generate rdoc & ri documentation of standard library? — Andreas Schwarz <usenet@...>
Hi,
[#89058] Overriding to_s — Brad <BCoish@...>
All:
[#89070] Denying access to methods on DRb — "Andre Nathan" <andre@...>
Hi
Andre Nathan wrote:
Joel VanderWerf said:
On Thu, 1 Jan 2004 08:23:14 +0900, Andre Nathan wrote:
[#89071] Array #== and #=== — "John W. Long" <ws@...>
Now I'm really confused:
Re: FAQ? raw i/o in Ruby
Well, I don't know how useful this is, but here's an extension
that wraps the POSIX termios structure. With it, you can enable
cbreak mode (character-at-a-time input) in a way that mirrors
C usage:
require 'termios'
t = $stdin.getattr
t.lflag &= ~Termios::ICANON
$stdin.setattr(0, t)
After which, $stdin.getc will return the next key pressed without waiting
for a newline, at least on a UNIX system.
-Mark
Attachments (2)
#include <termios.h>
#include <ruby.h>
VALUE cTermios;
VALUE tio_get_c_iflag(VALUE self)
{
struct termios *ctio;
Data_Get_Struct(self, struct termios, ctio);
return INT2NUM(ctio->c_iflag);
}
VALUE tio_set_c_iflag(VALUE self, VALUE c_iflag)
{
struct termios *ctio;
Data_Get_Struct(self, struct termios, ctio);
ctio->c_iflag = NUM2INT(c_iflag);
return c_iflag;
}
VALUE tio_get_c_ispeed(VALUE self)
{
struct termios *ctio;
Data_Get_Struct(self, struct termios, ctio);
return INT2NUM(ctio->c_ispeed);
}
VALUE tio_set_c_ispeed(VALUE self, VALUE c_ispeed)
{
struct termios *ctio;
Data_Get_Struct(self, struct termios, ctio);
ctio->c_ispeed = NUM2INT(c_ispeed);
return c_ispeed;
}
VALUE tio_get_c_oflag(VALUE self)
{
struct termios *ctio;
Data_Get_Struct(self, struct termios, ctio);
return INT2NUM(ctio->c_oflag);
}
VALUE tio_set_c_oflag(VALUE self, VALUE c_oflag)
{
struct termios *ctio;
Data_Get_Struct(self, struct termios, ctio);
ctio->c_oflag = NUM2INT(c_oflag);
return c_oflag;
}
VALUE tio_get_c_ospeed(VALUE self)
{
struct termios *ctio;
Data_Get_Struct(self, struct termios, ctio);
return INT2NUM(ctio->c_ospeed);
}
VALUE tio_set_c_ospeed(VALUE self, VALUE c_ospeed)
{
struct termios *ctio;
Data_Get_Struct(self, struct termios, ctio);
ctio->c_ospeed = NUM2INT(c_ospeed);
return c_ospeed;
}
VALUE tio_get_c_lflag(VALUE self)
{
struct termios *ctio;
Data_Get_Struct(self, struct termios, ctio);
return INT2NUM(ctio->c_lflag);
}
VALUE tio_set_c_lflag(VALUE self, VALUE c_lflag)
{
struct termios *ctio;
Data_Get_Struct(self, struct termios, ctio);
ctio->c_lflag = NUM2INT(c_lflag);
return c_lflag;
}
VALUE tio_get_c_line(VALUE self)
{
struct termios *ctio;
char c_line[2];
Data_Get_Struct(self, struct termios, ctio);
c_line[0] = ctio->c_line;
c_line[1] = '\0';
return rb_str_new2(c_line);
}
VALUE tio_set_c_line(VALUE self, VALUE c_line)
{
struct termios *ctio;
Data_Get_Struct(self, struct termios, ctio);
ctio->c_line = STR2CSTR(c_line)[0];
return c_line;
}
VALUE tio_get_c_cc(VALUE self)
{
struct termios *ctio;
VALUE rcc = rb_array_new2(NCCS);
int i;
char ccc[2];
Data_Get_Struct(self, struct termios, ctio);
ccc[1] = '\0';
for (i=0; i<NCCS; ++i)
{
ccc[0] = ctio->c_cc[i];
rb_ary_store(rcc, i, rb_str_new2(ccc));
}
return rcc;
}
VALUE tio_set_c_cc(VALUE self, VALUE c_cc)
{
struct termios *ctio;
int i;
Data_Get_Struct(self, struct termios, ctio);
for (i=0; i<NCCS; ++i)
{
ctio->c_cc[i] = STR2CSTR(rb_ary_entry(c_cc, i))[0];
}
return c_cc;
}
VALUE rio_tcgetattr(VALUE self)
{
int fd = NUM2INT(rb_funcall(self, rb_intern("fileno"), 0));
struct termios *ctio = ALLOC(struct termios);
if (0 == tcgetattr(fd, ctio))
{
return Data_Wrap_Struct(cTermios, 0, free, ctio);
}
else
{
FREE(ctio);
rb_sys_fail("Could not retrieve attributes");
return Qnil;
}
}
VALUE rio_tcsetattr(VALUE self, VALUE optact, VALUE rtio)
{
int fd = NUM2INT(rb_funcall(self, rb_intern("fileno"), 0));
struct termios *ctio;
Data_Get_Struct(rtio, struct termios, ctio);
if (0 == tcsetattr(fd, NUM2INT(optact), ctio))
{
return Qtrue;
}
else
{
rb_sys_fail("Could not set attributes");
return Qnil;
}
}
void Init_termios()
{
cTermios = rb_define_class("Termios", rb_cObject);
/* new IO methods */
rb_define_method(rb_cIO, "getattr", rio_tcgetattr, 0);
rb_define_method(rb_cIO, "setattr", rio_tcsetattr, 2);
/* accessor methods for the structure */
rb_define_method(cTermios, "iflag", tio_get_c_iflag, 0);
rb_define_method(cTermios, "iflag=", tio_set_c_iflag, 1);
rb_define_method(cTermios, "oflag", tio_get_c_oflag, 0);
rb_define_method(cTermios, "oflag=", tio_set_c_oflag, 1);
rb_define_method(cTermios, "lflag", tio_get_c_lflag, 0);
rb_define_method(cTermios, "lflag=", tio_set_c_lflag, 1);
rb_define_method(cTermios, "line", tio_get_c_line, 0);
rb_define_method(cTermios, "line=", tio_set_c_line, 1);
rb_define_method(cTermios, "cc", tio_get_c_cc, 0);
rb_define_method(cTermios, "cc=", tio_set_c_cc, 1);
rb_define_method(cTermios, "ispeed", tio_get_c_ispeed, 0);
rb_define_method(cTermios, "ispeed=", tio_set_c_ispeed, 1);
rb_define_method(cTermios, "ospeed", tio_get_c_ospeed, 0);
rb_define_method(cTermios, "ospeed=", tio_set_c_ospeed, 1);
/* constants */
rb_define_const(cTermios, "NCCS", INT2NUM(NCCS));
rb_define_const(cTermios, "VINTR", INT2NUM(VINTR));
rb_define_const(cTermios, "VQUIT", INT2NUM(VQUIT));
rb_define_const(cTermios, "VERASE", INT2NUM(VERASE));
rb_define_const(cTermios, "VKILL", INT2NUM(VKILL));
rb_define_const(cTermios, "VEOF", INT2NUM(VEOF));
rb_define_const(cTermios, "VTIME", INT2NUM(VTIME));
rb_define_const(cTermios, "VMIN", INT2NUM(VMIN));
rb_define_const(cTermios, "VSWTC", INT2NUM(VSWTC));
rb_define_const(cTermios, "VSTART", INT2NUM(VSTART));
rb_define_const(cTermios, "VSTOP", INT2NUM(VSTOP));
rb_define_const(cTermios, "VSUSP", INT2NUM(VSUSP));
rb_define_const(cTermios, "VEOL", INT2NUM(VEOL));
rb_define_const(cTermios, "VREPRINT", INT2NUM(VREPRINT));
rb_define_const(cTermios, "VDISCARD", INT2NUM(VDISCARD));
rb_define_const(cTermios, "VWERASE", INT2NUM(VWERASE));
rb_define_const(cTermios, "VLNEXT", INT2NUM(VLNEXT));
rb_define_const(cTermios, "VEOL2", INT2NUM(VEOL2));
rb_define_const(cTermios, "IGNBRK", INT2NUM(IGNBRK));
rb_define_const(cTermios, "BRKINT", INT2NUM(BRKINT));
rb_define_const(cTermios, "IGNPAR", INT2NUM(IGNPAR));
rb_define_const(cTermios, "PARMRK", INT2NUM(PARMRK));
rb_define_const(cTermios, "INPCK", INT2NUM(INPCK));
rb_define_const(cTermios, "ISTRIP", INT2NUM(ISTRIP));
rb_define_const(cTermios, "INLCR", INT2NUM(INLCR));
rb_define_const(cTermios, "IGNCR", INT2NUM(IGNCR));
rb_define_const(cTermios, "ICRNL", INT2NUM(ICRNL));
rb_define_const(cTermios, "IUCLC", INT2NUM(IUCLC));
rb_define_const(cTermios, "IXON", INT2NUM(IXON));
rb_define_const(cTermios, "IXANY", INT2NUM(IXANY));
rb_define_const(cTermios, "IXOFF", INT2NUM(IXOFF));
rb_define_const(cTermios, "IMAXBEL", INT2NUM(IMAXBEL));
rb_define_const(cTermios, "OPOST", INT2NUM(OPOST));
rb_define_const(cTermios, "OLCUC", INT2NUM(OLCUC));
rb_define_const(cTermios, "ONLCR", INT2NUM(ONLCR));
rb_define_const(cTermios, "OCRNL", INT2NUM(OCRNL));
rb_define_const(cTermios, "ONOCR", INT2NUM(ONOCR));
rb_define_const(cTermios, "ONLRET", INT2NUM(ONLRET));
rb_define_const(cTermios, "OFILL", INT2NUM(OFILL));
rb_define_const(cTermios, "OFDEL", INT2NUM(OFDEL));
rb_define_const(cTermios, "NLDLY", INT2NUM(NLDLY));
rb_define_const(cTermios, "NL0", INT2NUM( NL0));
rb_define_const(cTermios, "NL1", INT2NUM( NL1));
rb_define_const(cTermios, "CRDLY", INT2NUM(CRDLY));
rb_define_const(cTermios, "CR0", INT2NUM( CR0));
rb_define_const(cTermios, "CR1", INT2NUM( CR1));
rb_define_const(cTermios, "CR2", INT2NUM( CR2));
rb_define_const(cTermios, "CR3", INT2NUM( CR3));
rb_define_const(cTermios, "TABDLY", INT2NUM(TABDLY));
rb_define_const(cTermios, "TAB0", INT2NUM( TAB0));
rb_define_const(cTermios, "TAB1", INT2NUM( TAB1));
rb_define_const(cTermios, "TAB2", INT2NUM( TAB2));
rb_define_const(cTermios, "TAB3", INT2NUM( TAB3));
rb_define_const(cTermios, "BSDLY", INT2NUM(BSDLY));
rb_define_const(cTermios, "BS0", INT2NUM( BS0));
rb_define_const(cTermios, "BS1", INT2NUM( BS1));
rb_define_const(cTermios, "FFDLY", INT2NUM(FFDLY));
rb_define_const(cTermios, "FF0", INT2NUM( FF0));
rb_define_const(cTermios, "FF1", INT2NUM( FF1));
rb_define_const(cTermios, "VTDLY", INT2NUM(VTDLY));
rb_define_const(cTermios, "VT0", INT2NUM( VT0));
rb_define_const(cTermios, "VT1", INT2NUM( VT1));
rb_define_const(cTermios, "XTABS", INT2NUM(XTABS));
rb_define_const(cTermios, "CBAUD", INT2NUM(CBAUD));
rb_define_const(cTermios, "B0", INT2NUM( B0));
rb_define_const(cTermios, "B50", INT2NUM( B50));
rb_define_const(cTermios, "B75", INT2NUM( B75));
rb_define_const(cTermios, "B110", INT2NUM( B110));
rb_define_const(cTermios, "B134", INT2NUM( B134));
rb_define_const(cTermios, "B150", INT2NUM( B150));
rb_define_const(cTermios, "B200", INT2NUM( B200));
rb_define_const(cTermios, "B300", INT2NUM( B300));
rb_define_const(cTermios, "B600", INT2NUM( B600));
rb_define_const(cTermios, "B1200", INT2NUM( B1200));
rb_define_const(cTermios, "B1800", INT2NUM( B1800));
rb_define_const(cTermios, "B2400", INT2NUM( B2400));
rb_define_const(cTermios, "B4800", INT2NUM( B4800));
rb_define_const(cTermios, "B9600", INT2NUM( B9600));
rb_define_const(cTermios, "B19200", INT2NUM( B19200));
rb_define_const(cTermios, "B38400", INT2NUM( B38400));
rb_define_const(cTermios, "EXTA", INT2NUM(EXTA));
rb_define_const(cTermios, "EXTB", INT2NUM(EXTB));
rb_define_const(cTermios, "CSIZE", INT2NUM(CSIZE));
rb_define_const(cTermios, "CS5", INT2NUM( CS5));
rb_define_const(cTermios, "CS6", INT2NUM( CS6));
rb_define_const(cTermios, "CS7", INT2NUM( CS7));
rb_define_const(cTermios, "CS8", INT2NUM( CS8));
rb_define_const(cTermios, "CSTOPB", INT2NUM(CSTOPB));
rb_define_const(cTermios, "CREAD", INT2NUM(CREAD));
rb_define_const(cTermios, "PARENB", INT2NUM(PARENB));
rb_define_const(cTermios, "PARODD", INT2NUM(PARODD));
rb_define_const(cTermios, "HUPCL", INT2NUM(HUPCL));
rb_define_const(cTermios, "CLOCAL", INT2NUM(CLOCAL));
rb_define_const(cTermios, "CBAUDEX", INT2NUM(CBAUDEX));
rb_define_const(cTermios, "B57600", INT2NUM( B57600));
rb_define_const(cTermios, "B115200", INT2NUM( B115200));
rb_define_const(cTermios, "B230400", INT2NUM( B230400));
rb_define_const(cTermios, "B460800", INT2NUM( B460800));
rb_define_const(cTermios, "B500000", INT2NUM( B500000));
rb_define_const(cTermios, "B576000", INT2NUM( B576000));
rb_define_const(cTermios, "B921600", INT2NUM( B921600));
rb_define_const(cTermios, "B1000000", INT2NUM( B1000000));
rb_define_const(cTermios, "B1152000", INT2NUM( B1152000));
rb_define_const(cTermios, "B1500000", INT2NUM( B1500000));
rb_define_const(cTermios, "B2000000", INT2NUM( B2000000));
rb_define_const(cTermios, "B2500000", INT2NUM( B2500000));
rb_define_const(cTermios, "B3000000", INT2NUM( B3000000));
rb_define_const(cTermios, "B3500000", INT2NUM( B3500000));
rb_define_const(cTermios, "B4000000", INT2NUM( B4000000));
rb_define_const(cTermios, "CIBAUD", INT2NUM(CIBAUD));
rb_define_const(cTermios, "CRTSCTS", INT2NUM(CRTSCTS));
rb_define_const(cTermios, "ISIG", INT2NUM(ISIG));
rb_define_const(cTermios, "ICANON", INT2NUM(ICANON));
rb_define_const(cTermios, "XCASE", INT2NUM(XCASE));
rb_define_const(cTermios, "ECHO", INT2NUM(ECHO));
rb_define_const(cTermios, "ECHOE", INT2NUM(ECHOE));
rb_define_const(cTermios, "ECHOK", INT2NUM(ECHOK));
rb_define_const(cTermios, "ECHONL", INT2NUM(ECHONL));
rb_define_const(cTermios, "NOFLSH", INT2NUM(NOFLSH));
rb_define_const(cTermios, "TOSTOP", INT2NUM(TOSTOP));
rb_define_const(cTermios, "ECHOCTL", INT2NUM(ECHOCTL));
rb_define_const(cTermios, "ECHOPRT", INT2NUM(ECHOPRT));
rb_define_const(cTermios, "ECHOKE", INT2NUM(ECHOKE));
rb_define_const(cTermios, "FLUSHO", INT2NUM(FLUSHO));
rb_define_const(cTermios, "PENDIN", INT2NUM(PENDIN));
rb_define_const(cTermios, "IEXTEN", INT2NUM(IEXTEN));
rb_define_const(cTermios, "TCOOFF", INT2NUM(TCOOFF));
rb_define_const(cTermios, "TCOON", INT2NUM(TCOON));
rb_define_const(cTermios, "TCIOFF", INT2NUM(TCIOFF));
rb_define_const(cTermios, "TCION", INT2NUM(TCION));
rb_define_const(cTermios, "TCIFLUSH", INT2NUM(TCIFLUSH));
rb_define_const(cTermios, "TCOFLUSH", INT2NUM(TCOFLUSH));
rb_define_const(cTermios, "TCIOFLUSH", INT2NUM(TCIOFLUSH));
rb_define_const(cTermios, "TCSANOW", INT2NUM(TCSANOW));
rb_define_const(cTermios, "TCSADRAIN", INT2NUM(TCSADRAIN));
rb_define_const(cTermios, "TCSAFLUSH", INT2NUM(TCSAFLUSH));
}
require 'mkmf'
create_makefile('termios')