[#12345] "[ruby-talk:12345]" tag is removed — matz@... (Yukihiro Matsumoto)
Hi,
[#29915] Re: How to check free diskspace? (fwd) — Mathieu Bouchard <matju@...>
[#29932] Happy 2002! — "Rich Kilmer" <rich@...>
Happy New Year from Washington DC!
>
"James Britt (rubydev)" wrote:
I am attempting to install Ruby 1.6.6 on Solaris (SunOS 5.6):
At Tue, 1 Jan 2002 23:10:57 +0900,
On Wednesday, January 2, 2002, at 03:43 AM, Takaaki Tateishi wrote:
>>>>> "N" == Nigel Gilbert <n.gilbert@soc.surrey.ac.uk> writes:
[#29979] Extending Ruby on Windows (New Post) — "Alan Moyer" <moyer4@...>
This is actually a continuation of the thread I stared on 12/28. I tightened
[#29980] Project Proposal: Cardinal: Ruby frontend for Parrot — ptkwt@...1.aracnet.com (Phil Tomson)
We've had a couple of different threads flowing here the last few days
[#29991] Execing command with backquotes — mail02@... (Frank Benoit)
Hi
You need to add cmd.exe like this:
On Tue, 01 Jan 2002 23:32:43 GMT, "Mark Hahn" <mchahn@facelink.com>
[#30011] on the occasion of message 30K — David Alan Black <dblack@...>
Hello --
[#30101] Ruby Weekly News rdf feed now available — Dave Thomas <Dave@...>
[#30121] more parrot-questions.. — Erik B虍fors <erik@...>
Maybe I should join perl6-internals for this but here we go.
[#30124] How to get top-level object from C? — "Paul E.C. Melis" <melis@...>
Hi,
>>>>> "P" == Paul E C Melis <melis@cs.utwente.nl> writes:
At Fri, 4 Jan 2002 00:19:08 +0900,
>>>>> "n" == nobu nokada <nobu.nokada@softhome.net> writes:
[#30143] Rubydoc ? — Vincent Bernat <bernat@...>
Hi !
[#30144] Compiling Berkeley db for Ruby under Cygwin — "Albert L. Wagner" <alwagner@...>
Even as a Linux user, I probably stay as confused about compiling
[#30149] Ruby and Eclipse — bobx@... (Bob)
Is anyone working on getting a Ruby module for the eclipse project
[#30191] chomp for arrays? — dempsejn@...
Hi All,
How about something like this?
On Sat, Jan 05, 2002 at 04:53:14AM +0900, Adam Spitz wrote:
Hello --
A daydream of mine is a "super-require" that if the file was not found, the
At 06:31 AM 1/7/2002 +0900, Mark Hahn wrote:
Right and the way to address this is to have a public/private encryption key
At 11:48 AM 1/7/2002 +0900, Rich Kilmer wrote:
On Mon, Jan 07, 2002 at 12:03:05PM +0900, Dan Sugalski wrote:
At 01:07 PM 1/7/2002 +0900, Massimiliano Mirra wrote:
At 12:39 PM 1/7/2002 +0900, Rich Kilmer wrote:
[#30195] should I use ruby instead of perl — vekkuli ketkutin <qvyht@...>
simple question...
On Fri, Jan 04, 2002 at 08:32:26PM +0900, vekkuli ketkutin wrote:
After using Ruby for several months now, I notice that using Ruby
[#30203] Ruby 1.6.6 bug and fix — Michal Rokos <rokosm@...>
[#30205] Bug? — Martin Kahlert <martin.kahlert@...>
Hi!
[#30229] cdecl vs stdcall — Shan-leung Maverick WOO <maverick@...>
Hello,
Hi,
[#30242] Patch for Ruby 1.7 — "Lyle Johnson" <ljohnson@...>
Looking at the CVS version of Ruby, the declaration for rb_rescue2() in
[#30243] Tab Arrows in RDE — "Ralph Mason" <ralph.mason@...>
Does anyone know how you turn off those tab arrows in RDE. They offend my eyes :-)
[#30265] Structs and Marshalling — Albert Wagner <alwagner@...>
I keep getting myself tripped up when I Marshal Struct objects. I typically
>>>>> "A" == Albert Wagner <alwagner@tcac.net> writes:
On Saturday 05 January 2002 06:25 am, you wrote:
Hi,
>>>>> "Y" == Yukihiro Matsumoto <matz@ruby-lang.org> writes:
At Tue, 8 Jan 2002 02:36:12 +0900,
Hi,
>>>>> "n" == nobu nokada <nobu.nokada@softhome.net> writes:
At Tue, 8 Jan 2002 17:59:23 +0900,
>>>>> "n" == nobu nokada <nobu.nokada@softhome.net> writes:
[#30267] Need help understanding system() call — "John Wheeler" <wheelerwjx9@...>
I have a quick question for anyone willing to help out a newbie:
In article <003201c1966f$dadae780$0301a8c0@inf>,
[#30274] The Ruby Way — "Conrad Schneiker" <schneiker@...>
Hi,
> From: Conrad Schneiker [mailto:schneiker@jump.net]
That was supposed to say "how do I implement a hash with duplicate keys?"
Hi,
fre 2002-01-11 klockan 05.08 skrev Mark Hahn:
[#30278] Summary: Call for a small program - willing to give a bonus — Tom Karas <Tom.Karas@...>
Hello out there,
[#30286] Ruby article on Freshmeat — Stefan Scholl <stesch@...>
http://freshmeat.net/articles/view/358/
I was in the middle of writing almost exactly what you said, because
[#30320] Sorting a Hash by value of integer stored in the Hash — Michael Joner <finalfrontier@...>
I have a program which creates a Hash array. The ultimate result is a
[#30327] one liner / overriden class repository — "Jack Dempsey" <dabigdemp@...>
Why aim if not high? :-)
On Mon, 7 Jan 2002, Chad Fowler wrote:
Horacio Lopez <vruz@www.digipromo.com> writes:
> From: dave@thomases.com [mailto:dave@thomases.com]On Behalf Of Dave
[#30347] How to convert character code to a String? — furufuru@... (Ryo Furue)
Hi there,
[#30359] possible addition to rubycookbook.org — "Jack Dempsey" <dabigdemp@...>
Hi Colin (et al),
[#30361] obfuscated ruby contest — "Jack Dempsey" <dabigdemp@...>
Although I agree that creating obfuscated ruby code is probably a challenge, i think it'd be fun. Anyone else up for it?
[#30366] class name reported differently in different contexts — Joel VanderWerf <vjoel@...>
On Mon, 7 Jan 2002, Chr. Rippel wrote:
<ale@crimson.propagation.net> wrote
>>>>> "C" == Chr Rippel <chr_news@gmx.net> writes:
"ts" <decoux@moulon.inra.fr> wrote in
[#30372] [ANN] Invitation to join LotY (Language of the Year) project, 2002: learning Haskell — David Alan Black <dblack@...>
Dear fellow programmers,
On Mon, 7 Jan 2002, David Alan Black wrote:
[#30391] Efficient "lexing" in Ruby (maybe an RCR?) — "Matt Armstrong" <matt+dated+1010799012.80728c@...>
I notice that many of the Ruby packages that do hard core parsing make
At Mon, 7 Jan 2002 10:30:17 +0900,
nobu.nokada@softhome.net writes:
[#30413] how do I "pop up" a scaled jpg image — Bil Kleb <W.L.Kleb@...>
So I created a small script (I welcome criticism) to
[#30431] Re: snippet exchange (was: Re: Re: chomp for arrays?) — "Jack Dempsey" <dabigdemp@...>
The way i was thinking of this working would be this: someone has heard of a
On Mon, Jan 07, 2002 at 01:37:56PM +0900, Jack Dempsey wrote:
On Mon, 2002-01-07 at 11:08, Massimiliano Mirra wrote:
On Tue, Jan 08, 2002 at 02:24:18AM +0900, Sean Middleditch wrote:
On Mon, 2002-01-07 at 15:10, Massimiliano Mirra wrote:
On Tue, Jan 08, 2002 at 05:25:11AM +0900, Sean Middleditch wrote:
[#30443] "[ruby-talk:12345]" tag is removed — matz@... (Yukihiro Matsumoto)
Hi,
[#30454] the [ruby-talk] is gone? — "Jack Dempsey" <dabigdemp@...>
Matz,
[#30461] Re: the [ruby-talk] is gone? — "Jack Dempsey" <dabigdemp@...>
Hi Matz,
Yukihiro Matsumoto wrote:
Hi --
[#30494] Segfault with druby and fork — Michael Witrant <mike@...>
Hello,
Hi,
On Tue, 8 Jan 2002 00:37:14 +0900
Hi,
I wanted to give everyone an update on where we are with the FreeRIDE
Documentation should also be a big(?) concern. I am new to Ruby as
On Wed, 9 Jan 2002, Bob wrote:
"Neil Hodgson" <nhodgson@bigpond.net.au> wrote:
Absolutely! I've thought about documentation, but I wouldn't want to start
[#30503] regex/BNF for class names — Tobias Reif <tobiasreif@...>
Hi,
Hi,
Hello --
[#30539] RDoc Alpha-6 available — Dave Thomas <Dave@...>
Tobias Reif <tobiasreif@pinkjuice.com> writes:
break each title into their own frame with a fixed height
Hi Dave,
"NAKAMURA, Hiroshi" <nahi@keynauts.com> writes:
[#30542] dynamic variable — "Benoit Cerrina" <benoit.cerrina@...>
Hi,
[#30556] Ambiguous result making the latest snapshot. — Chris Gehlker <gehlker@...>
Making the latest snapshot on MOSX 10.1.2 I get:
[#30581] eruby only generates text/plain — Martin Maciaszek <mmaciaszek@...>
I compiled mod_ruby with eruby. Compiling went find and the
[#30631] chaining methods — Tobias Reif <tobiasreif@...>
Hi,
[#30658] Proc hash bug? — "Nathaniel Talbott" <ntalbott@...>
This behavior seems very strange (and is breaking one of my scripts):
Hi,
Yukihiro Matsumoto [mailto:matz@ruby-lang.org] wrote:
[#30700] A few questions... — "Morten" <morten@...>
Hi,
[#30706] ANNOUNCE: FXRuby-0.99.188 Now Available — "Lyle Johnson" <ljohnson@...>
All,
[#30709] instance variables automatically accessible? — cmlr@...
Does anyone know the best way to make instance variables in a class
[#30724] How to override subclass#new — Albert Wagner <alwagner@...>
I have some code similar to below, which expresses my intent, but is not what
[#30737] rpkg 0.1 (long) — Massimiliano Mirra <list@...>
<yaaawn>
Massimiliano Mirra <list@chromatic-harp.com> writes:
On Fri, Jan 11, 2002 at 04:13:48AM +0900, Dave Thomas wrote:
[#30743] Severe issue with two Threads and load and eval — "Jens Nissen" <frodo.hobbit@...>
I have trouble with executing load and eval in two concurrent Ruby Threads.
[#30746] New to Ruby - doing Web project — David Corbin <dcorbin@...>
I'm starting to learn Ruby, and I've decided on a small web/integration
[#30750] Fixing RUDL C extension and Ruby for Visual C — Danny van Bruggen <danny@...>
Hello all,
[#30753] Ruby books — Stephan K舂per <Stephan.Kaemper@...>
Hi all,
On Thu, 10 Jan 2002 16:12:35 +0100, Dave Thomas wrote:
[#30760] regexen for strings that can be converted to numbers — Tobias Reif <tobiasreif@...>
Hi,
nobu.nokada@softhome.net wrote:
nobu.nokada@softhome.net wrote:
[#30782] Question about RubyCocoa and GnuStep — ptkwt@...1.aracnet.com (Phil Tomson)
On 1/10/02 1:23 PM, "Phil Tomson" <ptkwt@shell1.aracnet.com> wrote:
On 1/10/02 1:19 PM, "Chris Gehlker" <gehlker@fastq.com> wrote:
On 1/10/02 2:50 PM, "Chris Thomas" <cjack@cjack.com> wrote:
[#30789] Build question: confused about ext/Setup and static linking — ptkwt@...1.aracnet.com (Phil Tomson)
I was under the impression that if you want a module that is named in
[#30792] When trying to pack Ruby scripts in one .exe file under Windows. — "Carine Abrantes" <abrantes.carine@...>
Hi,
[#30826] SysV::IPC — ahoward@... (ara howard)
has anyone written an interface to SysV::IPC? if not, are any others
[#30839] What is the best way to learn Ruby? — moontoeki@... (Moontoeki)
What is the best way to learn Ruby?
[#30841] The * operator... — Sean Chittenden <sean@...>
What's the * operator called when used in a method's arguments?
[#30866] Dir.entries have no home — Ron Jeffries <ronjeffries@...>
Chet and I were writing a little code manager yesterday and we wrote
Thanks David and Massimilano for your interesting and helpful replies.
On Sat, Jan 12, 2002 at 04:44:42AM +0900, Ron Jeffries wrote:
On Sun, Jan 13, 2002 at 02:43:33AM +0900, Massimiliano Mirra wrote:
Ron Jeffries <ronjeffries@REMOVEacm.org> writes:
[#30872] File management routines? — Massimiliano Mirra <list@...>
Is there any collection of file management routines, such as recursive
[#30883] eruby does not output error message — Masanori Fujita <fujita@...>
Javier Fontan wrote:
[#30890] gsub: arrays as parameters — "Jack Dempsey" <dempsejn@...>
I wrote this and it works well for me. I wanted to see what others
Hello --
Hi David,
On Sat, Jan 12, 2002 at 03:56:15AM +0900, Jack Dempsey wrote:
[#30920] MetaRuby : RubySchema.rb howto? — Tobias Reif <tobiasreif@...>
Hi,
Mathieu Bouchard wrote:
Mathieu Bouchard wrote:
Hi Tobias et al,
prettyprint.rb (and pp.rb) is written by me.
[#30936] raf - ruby application finder — Juli疣 Romero <julian.romero@...>
Yet another RAA web browsing site.
[#30949] Another suggestion for FreeRIDE — ptkwt@...1.aracnet.com (Phil Tomson)
Based on some discussions over at comp.lang.python...
Here's the code for that: easy, but it'll do the subs...i left the
"Jack Dempsey" <dempsejn@georgetown.edu> writes:
Hello --
[#30971] Changes to block behavior in ruby 1.6.6 — Niklas Frykholm <niklas@...>
It used to be that I could do this
[#30975] RubyUnit — David Corbin <dcorbin@...>
I'm trying to use RubyUnit. I've copied testall.rb, and modified it's
[#30988] I/O gets and integers — "linas" <geek@...>
Whenever i use gets to retireve user input, it always retrieves it as a
[#31008] RCRCR — David Alan Black <dblack@...>
Hello --
[#31044] syntax checking and error message — Shan-leung Maverick WOO <maverick@...>
Hello,
>>>>> "S" == Shan-leung Maverick WOO <maverick@cs.cmu.edu> writes:
[#31058] Markus' ruby-parser — Mathieu Bouchard <matju@...>
On Sun, 13 Jan 2002, Mathieu Bouchard wrote:
[#31068] Conflicting method names with modules — Jonathan Lim <trayde@...>
Hi,
[#31077] Markus' ruby-parser (part 2) — Mathieu Bouchard <matju@...>
[#31080] Best way for platf. independent compression? — Massimiliano Mirra <list@...>
Currently, rpkg builds packets by tar'ring and gzip'ping the source
On 1/13/02 1:42 PM, "Massimiliano Mirra" <list@chromatic-harp.com> wrote:
On Mon, Jan 14, 2002 at 12:08:58PM +0900, Chris Gehlker wrote:
On Mon, 2002-01-14 at 17:17, Massimiliano Mirra wrote:
On Tue, Jan 15, 2002 at 03:50:39AM +0900, Erik B虍fors wrote:
* Massimiliano Mirra (list@chromatic-harp.com) wrote:
On Tue, Jan 15, 2002 at 08:29:05AM +0900, Thomas Hurst wrote:
* Massimiliano Mirra (list@chromatic-harp.com) wrote:
On Thu, Jan 17, 2002 at 04:48:30AM +0900, Thomas Hurst wrote:
[#31085] Small Methods - a ramble — Ron Jeffries <ronjeffries@...>
I noticed in some code that Chet and I were writing that, as Smalltalkers, we tend to write really
On Sun, 13 Jan 2002 22:56:22 GMT, Tobias Reif <tobiasreif@pinkjuice.com>
Ron Jeffries wrote:
Hi --
[#31099] a wishlist for ruby 2.0 — Mathieu Bouchard <matju@...>
Hello --
Hi,
Hi,
"Mathieu Bouchard" <matju@sympatico.ca> wrote in,
[#31143] questions: TkText, TkTextTag, etc — nilzn@... (Nils)
hi all
[#31174] Re: Announcing Log4r - A flexible logger for Ruby — Brian Marick <marick@...>
At 03:07 AM 1/8/02, Leon Torres wrote:
[#31182] ROSA (pre-announcement) — "Jack Dempsey" <dempsejn@...>
Over the last few weeks a couple threads emerged in which an online
[#31224] benefits of callbacks — "Jack Dempsey" <dempsejn@...>
A co-worker asked today what they were and why they are so useful, and to be
A callback gives the power of a virtual or late binding function to a non OO
Ok, but being in Ruby (which most certainly is OO =P), why are callbacks so
Signals. You can register a function (or an object, in Ruby) to listen
[#31248] list of all class names — Tobias Reif <tobiasreif@...>
Hi,
[#31251] Swig Ruby documentation mods. — Hugh Sasse Staff Elec Eng <hgs@...>
I have been trying to use Swig Ruby recently, and in attempting to
On Tue, Jan 15, 2002 at 09:18:18PM +0900, Hugh Sasse Staff Elec Eng wrote:
On Wed, 16 Jan 2002, Alan Chen wrote:
At 07:00 PM 1/16/02 +0900, Hugh Sasse Staff Elec Eng wrote:
On Wed, 16 Jan 2002, Luigi Ballabio wrote:
At 11:09 AM 1/16/02 +0000, Hugh Sasse Staff Elec Eng wrote:
On Wed, 16 Jan 2002, Luigi Ballabio wrote:
[#31262] grabbing stuff from web pages — Ron Jeffries <ronjeffries@...>
Part of my web site has recommended books. I use the cover jpegs from
[#31269] Windows Automation — Bhagavatheeswaran Mahadevan <BMahadevan@...>
Hi
[#31275] how to get all the reserved words? — Tobias Reif <tobiasreif@...>
Hi;
[#31289] memory usage question — "Mark Hahn" <mchahn@...>
I need to write a script that will use a hash with 4 million strings of 16
----- Original Message -----
[#31311] Vote for Windows Installer packages — Andrew Hunt <andy@...>
[#31314] Naive thread question. — Eirikur Hallgrimsson <Eirikur@...>
This is just killing me. I need to do a bunch of shell commands in parallel.
[#31319] Ruby and Parrot at the 1/16/2002 Boston Perl Mongers meeting — Dan Sugalski <dan@...>
Dunno if anyone's interested, but there'll be both a short presentation on
[#31401] attr_{reader|writer|accessor} for class methods — stephen.hill@... (Steve Hill)
Hi,
[#31404] Re: A question on Ruby Threads — "Tobias DiPasquale" <anany@...>
In article <a242re$gop@ftp.ee.vill.edu>, "Chris Gehlker"
In article <a24bn1$lhu@gap.cco.caltech.edu>, Phil Ehrens <-@-> wrote:
Hi,
[#31424] A few words on threads — "Avdi B. Grimm" <avdi@...>
Warning: many strong personal opinions and broad
[#31435] Protecting a member hash — Jim Freeze <jfreeze@...>
Hi:
In article <20020116131656.A93722@freebsdportal.com>,
[#31442] #59 Add fsync method to IO class — hensleyl@... (Leslie Hensley)
Adding fsync and fdatasync methods to the IO class will allow Ruby to
In article <1011251260.134700.4748.nullmailer@ev.netlab.jp>, Yukihiro
[#31458] ruby docs — ahoward@... (ara howard)
are there any sources of docs other than 'the book' that are more
[#31478] rubycookbook.org opens new section for code — Colin Steele <colin@...>
[#31512] Hello! Array sub classing? — Markt <markt@...>
Hello Ruby lovers!
Have to admit I'm making hard work of this...
[#31525] Yet another ruby book listet at amazon.com — Markus Jais <mjais@...>
hi
[#31533] Possible bug in Mac version? — Dave Thomas <Dave@...>
On 1/17/02 6:35 AM, "Dave Thomas" <Dave@PragmaticProgrammer.com> wrote:
Chris Gehlker <gehlker@fastq.com> writes:
On 1/17/02 11:41 AM, "Josh Huber" <huber@alum.wpi.edu> wrote:
[#31542] Segfault for define_method — "Chr. Rippel" <chr_news@...>
Talking about bugs, on cygwin 1.7.2 ...
[#31564] The first alternative RDoc template — Dave Thomas <Dave@...>
Hi,
[#31571] Newbie question: RubyTk and Observer ? — Dave <dlc-usenet@...>
[#31593] Can we use constant for a method name? — moontoeki@... (Sung Moon)
Can we use constant for a method name?
Hi,
[#31604] Re: [Fwd: Re: more parrot-questions..] — Dan Sugalski <dan@...>
>Sorry to send this mail to you in private but I did send it to the
[#31618] foozboozer — Tobias Reif <tobiasreif@...>
Who invented the word "foozboozer"? What does it mean?
[#31619] Solving equation for a variable — Massimiliano Mirra <list@...>
In a symbolic algebra tool named Yacas, one can do the following:
[#31636] What's a wiki? — "Dan Hable" <DHable@...>
I've been reading the mailing list for some time and I'm still a little lost on what a wiki is?
[#31643] Submission: Ruby shard for config files — Sean Russell <ser@...>
Here's a code snippit I find myself using quite a bit. I thought others
[#31658] dynamic method creation — "Albert L. Wagner" <alwagner@...>
I have a need to dynamically create methods with method names
"Albert L. Wagner" <alwagner@uark.edu> writes:
At 6:19 AM +0900 1/19/02, Leo wrote:
[#31673] Chopping and chomping to no avail — "Michael Hayes" <mike@...>
[#31692] New Rubygarden poll — Dave Thomas <Dave@...>
[#31711] Re: zip on Linux — "Mirabai Neumann" <webmaster@...>
Mirabai Neumann wrote:
In article <Pine.LNX.4.21.0201191154530.4074-100000@bartok>,
[#31727] Keeping track of multiple Ruby discussion sites. — "James Britt (rubydev)" <james@...>
Recently, Massimiliano Mirra wrote:
On Sun, Jan 20, 2002 at 02:01:38AM +0900, James Britt (rubydev) wrote:
[#31735] installing mod_ruby --> seg fault in ruby-rdtool — craig@...
At least that's where core dumped. FreeBSD/Alpha (4.4-RELEASE). New to
Thanks Shugo,
Hi,
[#31741] $_ as default parameter for a function — thomass@... (Thomas)
I'd like the fragment below to produce "blah blah", but it doesn't
[#31748] ssh module? (not zebedee) — Jack Dempsey <dempsejn@...>
Anyone seen/worked on one? Are there any plans to support SSH natively
[#31757] _The Ruby Way_: Call for errata — "Hal E. Fulton" <hal9000@...>
Hello, friends.
[#31789] Coding challenge :-) — David Alan Black <dblack@...>
Hello --
[#31824] Re: Ruby ib Linux disrtos (was: Keeping track of multiple Ruby discussion sites.) — "Tobias DiPasquale" <anany@...>
In article <a2favi$iro@ftp.ee.vill.edu>, "Bob" <bobx@linuxmail.org> wrote:
[#31838] Mnemonic 0.8 — Leslie Henlsey <hensleyl@...>
Mnemonic is object prevalence layer for Ruby. It provides a persistence
[#31845] Devel::Logger -- Lightweight logging utility. — "NAKAMURA, Hiroshi" <nahi@...>
Hi all,
On Mon, 21 Jan 2002, NAKAMURA, Hiroshi wrote:
[#31859] Jabber4R 0.1.0 — "Rich Kilmer" <rich@...>
Jabber4R is out...finally ;-)
[#31881] Return the ASCII code ? — "D De Villiers" <ddevilliers@...>
Hello!
[#31882] RANT: Ruby GUI API — Sean Russell <ser@...>
I started this rant in another thread, where it was way OT, so I'm moving
Sean Russell wrote:
Massimiliano Mirra wrote:
Sean Russell wrote:
On Wed, Jan 23, 2002 at 03:32:28AM +0900, Sean Russell wrote:
[#31897] Problem with Marshal in bdb-0.2.9 — Albert Wagner <alwagner@...>
Hello, Guy.
[#31901] converting chars to numeric — Mark Probert <probertm@...>
[#31913] to_hex? — "Jack Dempsey" <dempsejn@...>
Is there an easy way to convert a string to hex?
[#31921] Re: RANT: Ruby GUI API — Ben Crowell <crowell02@...>
As a mac user, I'm curious to what extent all this could actually
[#31937] Re: RANT: Ruby GUI API — Ben Crowell <crowell02@...>
M. Mirra wrote:
This is just personal opinion but I'd hate to see the Ruby GUI API
> This is just personal opinion but I'd hate to see the Ruby GUI API
[#32003] Windows ruby(cygwin version) Command Expansion Problem — "Songsu Yun" <yuns@...>
Hi,
[#32029] Abstracted GUI APIs (was: RANT: Ruby GUI API) — Sean Russell <ser@...>
I'd like to follow up on a thread, and attempt to consolidate some thoughts
[#32056] Ruby Publishing Framework v0.5.0 — Bryan Murphy <bryan@...>
Ruby Publishing Framework
* Bryan Murphy (bryan@terralab.com) wrote:
On 1/22/02 6:37 PM, "Thomas Hurst" <tom.hurst@clara.net> wrote:
[#32071] Minor thoughts on 'Find' module — Garance A Drosihn <drosih@...>
I think it would be nice to have one or two alternate behaviors
Hi,
[#32086] BotFrenzy game (pre-alpha) — Leon Torres <leon@...>
Hi folk,
[#32121] : ruby-talk seperation — "Tobias DiPasquale" <anany@...>
Hi all,
[#32134] Re: [POLL]: ruby-talk seperation — "Tobias DiPasquale" <anany@...>
Hi again,
[#32137] Tk interface with Ruby — Bhagavatheeswaran Mahadevan <BMahadevan@...>
Hi
[#32168] Re: OOP UI Design — Chris Gehlker <gehlker@...>
On 1/23/02 8:05 AM, "James Britt (rubydev)" <james@rubyxml.com> wrote:
[#32177] — Eugene Scripnik <Eugene.Scripnik@...>
I have a problem loading files from my script (I mean Kernel::load):
Hi,
Hello nobu,
Hi,
Tuesday, January 29, 2002, 5:05:05 PM, you wrote:
Hi,
Wednesday, January 30, 2002, 4:55:23 PM, you wrote:
Hi,
Monday, February 04, 2002, 10:17:37 AM, you wrote:
>>>>> "E" == Eugene Scripnik <Eugene.Scripnik@itgrp.net> writes:
Wednesday, February 06, 2002, 2:53:27 PM, you wrote:
>>>>> "E" == Eugene Scripnik <Eugene.Scripnik@itgrp.net> writes:
Wednesday, February 06, 2002, 3:34:53 PM, you wrote:
>>>>> "E" == Eugene Scripnik <Eugene.Scripnik@itgrp.net> writes:
[#32216] New JRuby release 1.6/0.3.1 beta — Jan Arne Petersen <jpetersen@...>
Hi all!
[#32233] Subclassing vs Subtyping (partly OOP vs FP) — Robert Feldt <feldt@...>
Hi,
Lewis Perin <perin@panix.com> writes:
On Mon, 4 Feb 2002, Dave Thomas wrote:
Robert Feldt <feldt@ce.chalmers.se> writes:
On Mon, 4 Feb 2002, Dave Thomas wrote:
[#32245] FXRuby Drag-and-Drop Code?? — jobeicus@... (Joseph Benik)
Hi,
[#32247] Array.last Weirdness — Jesse Jones <jesjones@...>
I'd expect the following code:
[#32281] Easy references in Ruby? — Olivier CARRERE <olivier@...>
Hello,
[#32312] Serious Array Bug in Ruby 1.6.6? — William Djaja Tjokroaminata <billtj@...>
Hi,
Hello --
Hi,
Hello --
[#32319] looking for an example problem to demonstrate TaskMaster — ptkwt@...1.aracnet.com (Phil Tomson)
I'm looking for suggestions here...
How about some sort of search for a value? As you add more nodes to search
In article <m2adv37fh9.fsf@zip.local.thomases.com>,
[#32343] Win32ole event callback? — a@... (a)
In the world of visual basic, some event subs have an argument that can
[#32351] Ruby/Gtk : question on menus — Markus Jais <info@...>
hello
[#32355] RDoc learns to draw pictures... — Dave Thomas <Dave@...>
On 25 Jan 2002, at 9:34, Dave Thomas wrote:
"Pit Capitain" <pit@capitain.de> writes:
On Fri, Jan 25, 2002 at 10:38:55PM +0900, Dave Thomas wrote:
[#32359] RDoc: eval("class A; ... end") — GOTO Kentaro <gotoken@...>
I'd like to use the great tool RDoc but I have a problem.
[#32388] Ruby Developers Guide — Robert Feldt <feldt@...>
Hi,
----- Original Message -----
[#32401] Sourcecode dump? — Olivier CARRERE <carrere@...>
Hello,
[#32417] Subrange of String subclass => invalid object — "Bob Alexander" <bobalex@...>
Given these conditions:
matz@ruby-lang.org (Yukihiro Matsumoto) writes:
"Yukihiro Matsumoto" <matz@ruby-lang.org> wrote in,
>>>>> "M" == Mathieu Bouchard <matju@sympatico.ca> writes:
matz@ruby-lang.org (Yukihiro Matsumoto) writes:
[#32424] upcase/downcase first character of a word — Tobias Reif <tobiasreif@...>
any simpler way than
[#32432] FXRuby-0.99.189 Now Available — "Lyle Johnson" <ljohnson@...>
All,
[#32445] "friend" alternative in Ruby? — kturing@... (kate turing)
I have a class "Foo". It has a method "doSecretStuff" that I want to
[#32465] rubyzip 0.3.1 — thomass@... (Thomas)
rubyzip 0.3.1 is out.
> It'll need ruby-zlib 0.4 for tgz support, because a) 0.3 nukes
[#32495] REXML: stream parsing question — Markus Jais <info@...>
Hello,
[#32536] Separate lists — Massimiliano Mirra <list@...>
The discussion seems to have died, I think more because the proposed
[#32560] how to find out which args a method can take — Tobias Reif <tobiasreif@...>
Hi,
[#32565] Furnished Office For Rent (close to O'Hare) — milana12373@...
Furnished office for rent.
[#32593] OT: tools for creating documentation — ptkwt@...1.aracnet.com (Phil Tomson)
I'm going to be creating a good bit of documentation for TaskMaster and I
[#32602] open source projects, sponsoring — Tobias Reif <tobiasreif@...>
Hi;
[#32617] Array#splice method — michael libby <x@...>
I'm rewriting the examples in "Mastering Algorithms with Perl" (the
[#32627] Problem with Ruby Tk — Peter Hickman <peter@...>
I'm having some problems with the following code. When I click on either
[#32646] popen3 and buffering — Paul Brannan <paul@...>
I have a program test.rb:
Here's one possible solution. Does anyone know how to get rid of this
>>>>> "P" == Paul Brannan <paul@atdesk.com> writes:
Paul Brannan <paul@atdesk.com> writes:
On Tue, Jan 29, 2002 at 02:58:30AM +0900, Yohanes Santoso wrote:
[#32653] problems with string interpolation — ahoward@... (ara howard)
i'd like do a gsub such that some characters are escapes for later use
ts> well, the problem is with \\ it must be escaped twice this mean
[#32670] What is special about TCPServer? — John Carter <john.carter@...>
I have a wee problem inheriting from TCPServer
[#32681] Cardinal - project looking for a leader — ptkwt@...1.aracnet.com (Phil Tomson)
A few weeks back I proposed the Cardinal project - basically a project to
[#32716] Hal Fulton's Set class — David Corbin <dcorbin@...>
I'm attempting to use this class
[#32731] FOX newbie help, hooking up button click to method — "Morris, Chris" <chris.morris@...>
Whipped up my first FOX dealy ... and it don't work. It creates the form,
[#32732] RbProf 0.2.1 — Robert Feldt <feldt@...>
Hi,
[#32757] strange behavior — <mengx@...>
Hi,
[#32759] Ruby and Morphic? — "Lyle Johnson" <ljohnson@...>
So I'd like to look into an extension for FXRuby that allows you to (easily)
[#32776] RDoc, imagemaps, help — Dave Thomas <Dave@...>
[#32794] trouble changing mtime on symlinks — "Simon Strandgaard" <0bz63fz3m1qt3001@...>
I need to change the time on some symlinks.
[#32803] IOWA error and question — <ntalbott@...>
First of all, when I try to access IOWA pages (I've tried all the
[#32823] Re: strange behavior — <mengx@...>
An indirectly related topic, A class method can not be called
[#32832] Ruby named as a finalist for the Jolt Awards — "Pete McBreen" <pete@...>
Congratulations to Matz and everyone in the Ruby community!
[#32871] Newbie question about mixins — "Mark Wilson" <mwilson@...>
I have a module that I want to use as a mixin. I have defined a method
[#32882] MOre RDoc HTML needed — Dave Thomas <Dave@...>
[#32887] Determining CPU and disk usage — ptkwt@...1.aracnet.com (Phil Tomson)
RE: Printing on Windows with Ruby (long)
> From: David Naseby
> I've been banging my head against a series of walls trying to
> get simple
> straight text print jobs to be sent to a network printer in my Ruby
> application. Has anyone out there done any printing on
> Windows with Ruby,
> and have a code example of how it might be done?
>
Kinda tacky to reply to my own mail with an answer, but I figured I'd post
my findings for the benefit of future google searches..
I've found basically 3 ways to print text under windows in Ruby..
1.
system ('notepad.exe /p ("<yourfile.txt>")')
2.
require 'Win32API'
def system2(command)
Win32API.new("crtdll","system",['P'],'L').Call(command)
end
puts system ('copy <yourfile.txt> <printername>')
3. use Win32API: (I went to this method because I couldn't find out the
printername.. basically because I'm an idiot. But it works, and it opens up
a few options...). Beware the line feeds..
<code>
require 'Win32API'
module Win32
class TextPrinterControl
#API FUNCTIONS
@@PrintDlg = Win32API.new("comdlg32", "PrintDlg", ['P'], 'N')
@@GlobalLock = Win32API.new('kernel32', 'GlobalLock', ['N'], 'N')
@@GlobalFree = Win32API.new('kernel32', 'GlobalFree', ['N'], 'N')
@@OpenPrinter = Win32API.new('winspool.drv', 'OpenPrinter',
['P','P','P'], 'N')
@@ClosePrinter = Win32API.new('winspool.drv', 'ClosePrinter', ['N'],
'N')
@@StartDocPrinter = Win32API.new('winspool.drv', 'StartDocPrinter',
['N','N','P'], 'N')
@@EndDocPrinter = Win32API.new('winspool.drv', 'EndDocPrinter', ['N'],
'N')
@@StartPagePrinter = Win32API.new('winspool.drv', 'StartPagePrinter',
['N'], 'N')
@@EndPagePrinter = Win32API.new('winspool.drv', 'EndPagePrinter', ['N'],
'N')
@@WritePrinter = Win32API.new('winspool.drv', 'WritePrinter',
['N','P','N','P'], 'N')
@@GetLastError = Win32API.new('kernel32', 'GetLastError', [], 'N')
@@FormatMessage = Win32API.new('kernel32', 'FormatMessage',
['N','P','N','N','P','N','P'], 'N')
#the functions that wrap the Win32API calls enforce type checking on
arguments
# (through #check). This is to be consistent with the Win32API which
will assume
# different arguments are calling different functions, throwing wacky
errors
#API WRAPPERS
def print_dlg(pPrintDlg)
check(pPrintDlg, String)
api_call(@@PrintDlg, pPrintDlg)
end
def global_lock(hMovableMemory)
check(hMovableMemory,Integer)
api_call(@@GlobalLock, hMovableMemory)
end
def global_free(hMovableMemory)
check(hMovableMemory,Integer)
api_call(@@GlobalFree, hMovableMemory)
end
def open_printer(pPrinterName, phPrinter, pDefault)
check (pPrinterName,String)
check (phPrinter,String) #handle to string.. return value
#phPrinter is the PRINTER_DEFAULTS structure.. 0 for default
# since we want to send through a zero for default, can't enforce
string check...
api_call(@@OpenPrinter, pPrinterName, phPrinter, pDefault)
end
def close_printer(hPrinter)
check(hPrinter,Integer)
api_call(@@ClosePrinter, hPrinter)
end
def start_doc_printer(hPrinter, level, pDocInfo)
check(hPrinter, Integer); check(level, Integer); check(pDocInfo,
String)
api_call(@@StartDocPrinter, hPrinter, level, pDocInfo)
end
def end_doc_printer(hPrinter)
check(hPrinter, Integer)
api_call(@@EndDocPrinter, hPrinter)
end
def start_page_printer(hPrinter)
check(hPrinter, Integer)
api_call(@@StartPagePrinter, hPrinter)
end
def end_page_printer(hPrinter)
check (hPrinter, Integer)
api_call(@@EndPagePrinter, hPrinter)
end
def write_printer(hPrinter, pBuf, cdBuf, pcWritten)
check(hPrinter,Integer); check(pBuf,String);
check(cdBuf,Integer);check(pcWritten,String)
api_call(@@WritePrinter, hPrinter, pBuf, cdBuf, pcWritten)
end
def get_last_error()
api_call(@@GetLastError)
end
def format_message(dwFlags, lpSource, dwMessageID, dwLanguageID,
lpBuffer, nSize, arguments)
check(dwFlags,Integer); check(lpSource,String);
check(dwMessageID,Integer)
check(dwLanguageID,Integer); check(lpBuffer,String);
check(nSize,Integer); check(arguments,String)
api_call(@@FormatMessage, dwFlags, lpSource, dwMessageID,
dwLanguageID, lpBuffer, nSize, arguments)
end
#HELPER FUNCTIONS
def show_error
message = " " * 1024 #store 1kb space
format_message(0x1000, 0, get_last_error(), 0, message, 1024, 0)
message
end
def api_call(apiFunction, *args)
begin
return apiFunction.Call(*args)
rescue RuntimeError => e
raise show_error
end
end
private :api_call
def check(variable, klass)
raise "#{variable}, #{variable.type} != #{klass.to_s}" unless
variable.kind_of?(klass)
end
private :check
def with_global_lock(handle)
begin
globalMemory = global_lock(handle)
yield globalMemory
ensure
show_error unless global_free(handle) == 0
end
end
def with_printer(devicename, datatype, devmode)
begin
devicename << "\0"
printer = "\0" * 4
if devmode == 0
pdefaults = 0
else
datatype << "\0"
pdefaults = [datatype, devmode.to_s, 0x8].pack('ppL')
end
if (open_printer(devicename, printer, pdefaults) == 0)
show_error
end
hprinter = printer.unpack('L')[0]
yield hprinter
ensure
close_printer(hprinter) if hprinter
end
end
def with_doc_printer(documentName, handleToPrinter)
begin
documentName << "\0"
docinfo = [documentName].pack('px12')
start_doc_printer(handleToPrinter, 1, docinfo)
yield
ensure
end_doc_printer(handleToPrinter)
end
end
def show_print_dialog
pd = [66, 0x140].pack("Lx16Lx42")
print_dlg(pd)
devmode, dc = pd.unpack("x8Lx4L")
end
def parse_devmode(devmode)
devicename, orient, duplex, formname =
devmode.to_s.unpack('A32x12Sx16Sx6A32')
end
def print_doc_from_dialog(docString, docName, pageLength=50)
#need a more reasonable default for pageLength
devmode, dc = show_print_dialog
devicename, orient, duplex, formname = parse_devmode(devmode)
_print_doc(docString, devicename, devmode, docName, pageLength)
end
def _print_doc(docString, printerName, devMode, docName, pageLength)
raise "bad docString" unless docString.respond_to?(:each_line)
raise "bad pageLength" unless pageLength > 1
datatype = (devMode == 0) ? nil : "TEXT"
with_printer(printerName, datatype, devMode) do |hPrinter|
with_doc_printer(docName, hPrinter) do
lines = 0
written = "\0" * 4
docString.each_line do |line|
line.chomp!
if (lines == 0)
start_page_printer(hPrinter)
lines += 1
end
line << "\r\n"
write_printer(hPrinter, line, line.length, written)
lines += 1
if lines == pageLength
lines = 0
write_printer(hPrinter, "\f", 1, written)
end_page_printer(hPrinter)
end
end
#flush last page
write_printer(hPrinter, "\f", 1, written)
end_page_printer(hPrinter)
end
end
end
def print_doc(docString, printerName, docName="printjob", pageLength=50)
_print_doc(docString, printerName, 0, docName, pageLength)
end
end
end
if __FILE__ == $0
p = Win32::TextPrinterControl.new
devicename = '\\\SYDEONE\Lexmark Optra T614'
docString =<<EOF
This is a test.
Should be on a different line.
Should be 3 lines in total, with a y at the end.
EOF
p.print_doc(docString, devicename)
end