[#144157] Interesting discovery... — Austin Ziegler <halostatue@...>
I had a user report a slowdown in PDF::Writer. I'm pretty certain I
On Wed, 1 Jun 2005, Austin Ziegler wrote:
On 5/31/05, Ara.T.Howard <Ara.T.Howard@noaa.gov> wrote:
On Wed, 1 Jun 2005, Austin Ziegler wrote:
Ara.T.Howard@noaa.gov wrote:
[#144158] tk image problem — Charles Hixson <charleshixsn@...>
When I attempt to read in xpm files created by the Gimp, I get
[#144164] TinyUrl class — "Vincent Foley" <vfoley@...>
Hi everyone,
Vincent Foley wrote:
[#144186] Re: array of object insert polices — "Pe, Botp" <botp@...>
dave [mailto:dave.m@email.it] wrote:
dave wrote:
dave wrote:
[#144206] Implementing a Read-Only array — Gavin Kistner <gavin@...>
Right up front, let me say that I realize that I can't prevent
Gavin Kistner wrote:
[#144208] OT: Looking for embeddable WYSIWYG HTML editor — "delirious" <Simon.Vandemoortele@...>
Dear all,
"delirious" <Simon.Vandemoortele@gmail.com> inquired:
[#144223] Document identification — "M. Eteum" <meteum@...>
Dear Ruby Guru:
[#144224] Method Chaining Issues — "aartist" <aartist@...>
try this:
This is a FAQ, though no page on the RubyGarden wiki seems to address
Phrogz wrote:
On 6/2/05, Nikolai Weibull
Gyoung-Yoon Noh wrote:
Phrogz wrote:
Sam Goldman wrote:
>> Some people think that "bang" methods shouldn't exist at all!
[#144230] ternary operator confusion — Belorion <belorion@...>
I don't know if this is "improper" use of the ternary operator, but I
true ? a.push(1) : a.push(2)
On Thu, Jun 02, 2005 at 01:40:23AM +0900, Phrogz wrote:
--- "Marcel Molina Jr." <marcel@vernix.org> wrote:
On 6/1/05, Eric Mahurin <eric_mahurin@yahoo.com> wrote:
On Jun 1, 2005, at 3:47 PM, Austin Ziegler wrote:
[#144253] Installing ruby on rails locally — "g_u_s" <gus_literatura@...>
Hi, everyone, I want to know how I do to install ruby on rails locally,
[#144274] help, I can't compile an extension on windows — Lionel Thiry <lthiryidontwantspam@...>
Hello!
Lionel Thiry wrote:
Daniel Berger a 馗rit :
[#144275] The WIPO Intellectual Property Forum - defend your right to Ruby. — John Carter <reNfOacStPoArMedE@...>
Here is an opportunity to fight the new Imperialism.
[#144290] librend 0.0.1 — Ilmari Heikkinen <kig@...>
Here's something I've been hacking on for the past two months, an OpenGL
[#144310] internal iterators in ruby — Navya Amerineni <navyaamerineni@...>
Hi,
[#144350] How to use open uri or net/http class — sujeet kumar <sujeetkr@...>
Hi
[#144362] Google Summer of Code: status of Ruby Central — "David A. Black" <dblack@...>
Hi --
[#144379] Ruby equiv of Perltidy? — <RubyLANG@...>
Hello All,
[#144390] requiring files — Joe Van Dyk <joevandyk@...>
Hi,
[#144405] Nuby problem w/CSV, tab-delimited files & embedded double-quotes — rpardee@...
Hey All,
[#144436] Google Summer of Code update — "David A. Black" <dblack@...>
Hi --
[#144444] Re: internal iterators in ruby — "Geert Fannes" <Geert.Fannes@...>
So, if I understand well, the problem with iterating over different
[#144448] AllInOneRuby 0.2.3 — Erik Veenstra <pan@...>
[#144452] Whiteout (#34) — Ruby Quiz <james@...>
The three rules of Ruby Quiz:
> 3. When "whiteout" is required, the original code must be executed with
[#144453] RubyScript2Exe and GUI toolkits — Erik Veenstra <pan@...>
[#144458] Failure: test_verify(OpenSSL::TestX509Store) — "James B. Byrne" <ByrneJB@...>
I built ruby-1.8.2 stable from source (ruby-lang.org) on a CentOS4
[#144465] newby question on validation — Matteo Corti <corti@...>
Hi,
[#144468] erb/apache problem — "HAL 9000" <hal9000@...>
Hi, all. Posting from work via Google.
On Sat, Jun 04, 2005 at 01:50:24AM +0900, HAL 9000 wrote:
[#144480] method_missing and assignment — Patrick Gundlach <clr5.10.randomuser@...>
Hi,
[#144487] Building a business case for Ruby — Joe Van Dyk <joevandyk@...>
Hi,
On Friday 03 June 2005 16:33, Joe Van Dyk wrote:
You could, er, load ruby as a python extension...
[#144494] Teaching Ruby — Joe Van Dyk <joevandyk@...>
Somewhat related to the other thread I just started. In order to get
[#144535] ruby-dev summary 26128-26222 — Minero Aoki <aamine@...>
Hi all,
[#144557] Calling a procedure with dinamyc name — Marcelo Paniagua <paniagua@...>
Hi there!
[#144565] RDoc: bug or limitation? — "Vincent Foley" <vfoley@...>
I think I found a bug in RDoc, although this could be a limitation, I'm
[#144579] Package, a future replacement for setup.rb and mkmf.rb — Christian Neukirchen <chneukirchen@...>
* Christian Neukirchen <chneukirchen@gmail.com> [2005-06-05 07:59:15 +0900]:
Jim Freeze <jim@freeze.org> writes:
On 6/4/05, Christian Neukirchen <chneukirchen@gmail.com> wrote:
Austin Ziegler <halostatue@gmail.com> writes:
Christian Neukirchen ha scritto:
gabriele renzi <surrender_it@remove-yahoo.it> writes:
Christian Neukirchen ha scritto:
[#144610] Creating objects from strings. — Bill <ruby@...>
Hi,
Bill wrote:
[#144614] unbinding a Proc? — Eric Mahurin <eric_mahurin@...>
This is mostly a curiosity thing...
[#144658] Rails/ActiveRecord Nuby question. — Harold Hausman <hhausman@...>
I am kindof assuming that this is something of a newbie question as
[#144666] A Ruby script to add email disclaimers — Johann Spies <jspies@...>
A few years after my first contact with ruby (and not using it) I am
[#144672] newbie read.scan (?) question — "Bruce D'Arcus" <bdarcus.lists@...>
Hi,
article is a stream and you try to read it twice, this doesn't work like
One followup.
Hi,
[#144682] How to call a class method when (i.e. in the moment of) inheriting from a class/defining a descendant? — Thomas <sanobast-2005a@...>
Hi,
[#144691] making a duck — Eric Mahurin <eric_mahurin@...>
Regarding duck-typing... Is there an easy way make a "duck"?
Eric Mahurin ha scritto:
Eric Mahurin wrote:
Hi,
--- nobu.nokada@softhome.net wrote:
Hi,
Eric Mahurin wrote:
[#144694] A little Quiz — "Dominik Bathon" <dbatml@...>
First of all, this is no attempt to rival with James' nice Ruby Quiz ;-)
[#144706] 'gets' has been hijacked — Pete Elmore <pete@...>
I was working with a simple script, that unexpectedly broke. The
[#144723] Stats comp.lang.ruby (last 7 days) — Balwinder Singh Dheeman <bsd.SANSPAM@...>
Stats comp.lang.ruby (last 7 days)
[#144724] Saving YAML data — Nigel Wilkinson <nigel@...>
Hi
[#144735] Re: Help getting RMagick working — Timothy Hunter <cyclists@...>
pjhyett@gmail.com wrote:
[#144742] Could Ruby-doc be better? -- Proposal for a better system. — Andrew Thompson <vagabond@...>
<Sorry for the crosspost, but I thought I might as well try to reach as
Andrew Thompson wrote:
So, basically the consensus is that Rdoc is in need of some work,
[#144782] DRb Method_mising respond_to? — "curtis.schofield@..." <curtis.schofield@...>
[#144816] Ruby version ot TEA (Tiny Encryption Alogrithm)? — James Britt <james_b@...>
Does anyone know of a pure-Ruby lib that implements the Tiny Encryption
[#144837] I cannot get rescue to work — Xeno Campanoli <xeno@...>
The example on page 108 of pickaxe gives me the following syntax error, for
[#144853] Test-Driven Development in GUIs — Joe Van Dyk <joevandyk@...>
Hi,
On 6/7/05, Joe Van Dyk <joevandyk@gmail.com> wrote:
[#144867] ruby-wish@ruby-lang.org mailing list — dave <dave.m@...>
Austin Ziegler wrote:
On 6/8/05, dave <dave.m@email.it> wrote:
On Jun 8, 2005, at 8:25 AM, Austin Ziegler wrote:
On 6/8/05, dave <dave.m@email.it> wrote:
On Thu, Jun 09, 2005 at 05:30:13AM +0900, dave wrote:
[#144876] Memory leak? — Nathan Smith <nsmith5@...>
Hello,
[#144879] StringMatrix — Gavin Kistner <gavin@...>
(This isn't a library I plan on maintaining, but ANN felt like the
[#144890] RubyStuff: The Ruby Shop for Ruby Programmers — James Britt <james_b@...>
Announcing the formal grand opening of Ruby Stuff: The Ruby Shop for
On Thu, Jun 09, 2005 at 12:50:52AM +0900, James Britt wrote:
Michal 'hramrach' Suchanek wrote:
Hal Fulton wrote:
Hey James,
I know CafePress is easy, but the shirts look generic, the quality is
On 6/8/05, James Britt <james_b@neurogami.com> wrote:
[#144923] Newb math question — brian <brian@...>
Can someone tell me why this code:
[#144956] Whiteout (#34) — Ruby Quiz <james@...>
Does this library have any practical value? Probably not. It's been suggested
[#144966] python/ruby benchmark. — "\"</script>" <groleo@...>
I took a look at
"</script> ha scritto:
Hello gabriele,
Java is an order of magnitude faster than Ruby. The development of a
Hello Kent,
Lothar Scholz said:
On 6/10/05, Ryan Leavengood <mrcode@netrox.net> wrote:
Gavri Fernandez said:
On Fri, 10 Jun 2005, Ryan Leavengood wrote:
As Gabriele mentionned, they implement a lot of stuff that is done in C
Vincent Foley wrote:
On 6/10/05, Isaac Gouy <igouy@yahoo.com> wrote:
On Jun 10, 2005, at 1:02 PM, Austin Ziegler wrote:
I've run through this thread and i am finally writting this because i am in a way astonished.
In article <9e7db91105061106485b68d629@mail.gmail.com>,
Phil Tomson wrote:
On 6/12/05, Steven Jenkins <steven.jenkins@ieee.org> wrote:
#: the mind was *winged* after Austin Ziegler said on 6/12/2005 5:53 PM :#
Austin Ziegler wrote:
On 6/12/05, Steven Jenkins <steven.jenkins@ieee.org> wrote:
Austin Ziegler wrote:
On 6/12/05, Steven Jenkins <steven.jenkins@ieee.org> wrote:
Austin Ziegler wrote:
In this essay I'm going to attempt, one final time, to demonstrate
On Wed, Jun 15, 2005 at 01:55:58PM +0900, Steven Jenkins wrote:
On 6/15/05, Ralph PJPizza Siegler <pjpizza@rsiegler.org> wrote:
[#144973] How to take password from user — sujeet kumar <sujeetkr@...>
Hi
On Jun 9, 2005, at 11:19 AM, sujeet kumar wrote:
On Fri, 10 Jun 2005, James Edward Gray II wrote:
[#144985] Getting a method object directly from a module — "Daniel Berger" <djberg96@...>
Hi all,
[#144991] http://sciruby.codeforpeople.com/ — "Ara.T.Howard" <Ara.T.Howard@...>
[#145000] RDoc —
Hi, I have a question. When I compiled ruby-1.8.2
On 09 Jun 2005, at 13:55, Jesffffas Antonio Sfffe1nchez A. wrote:
But for example it run rdoc --op -html-docs inside
Xeno Campanoli <xeno@eskimo.com> writes:
a slow loris with poison elbows wrote:
[#145011] gnu readline ruby vs. perl — Wybo Dekker <wybo@...>
I'm translating a Perl script into Ruby, but can't reproduce a readline
Hi,
Quoting nobuyoshi nakada <nobuyoshi.nakada@ge.com>:
[#145026] Re: [Rails] Ajax on Rails — Curt Hibbs <curt@...>
Robby Russell wrote:
> http://rubyurl.com/OddwR
Also dead:
On 6/10/05, Douglas Livingstone <rampant@gmail.com> wrote:
Could you replace it with a 404 page then? Atleast it won't look like
[#145031] framework of Ruby/Tk + VNC — Hidetoshi NAGAI <nagai@...>
Hi,
[#145032] newbieQ: new array from old array w regex — "Charles L. Snyder" <csnyder1@...>
Hi,
[#145045] Re: howto write rtf directly? — Nuralanur@...
Dear Thomas and Brian,
[#145049] duck-typing allows deeper polymorphism — Eric Mahurin <eric_mahurin@...>
I've seen many posts on what duck-typing is, that Ruby doesn't
On Fri, 10 Jun 2005, Eric Mahurin wrote:
[#145053] Chess Variants (I) (#35) — Ruby Quiz <james@...>
The three rules of Ruby Quiz:
On Jun 10, 2005, at 7:07 AM, Ruby Quiz wrote:
[#145079] Ruby/LDAP on Windows — "gregarican" <greg.kujawa@...>
Here is a message I sent to the maintainer of this particular project.
[#145085] Is there a Ruby equivilant to Python's exec_file? — Wayne Pierce <shalofin@...>
I'm working on a white-box security auditing framework, which is
[#145125] Regex help — Ezra Zygmuntowicz <ezra@...>
Hey there list
[#145132] Please help me get "Ajax on Rails" Slashdotted — Curt Hibbs <curt@...>
To those of you who've read my "Ajax on Rails" article at:
[#145135] blocks, scope/context confusion — "Corey" <corey_s@...>
Hi,
[#145146] (newb) installing rails — "luke" <lduncalfe@...>
[#145166] Only if the object exists — Gavin Kistner <gavin@...>
If I write code like this:
[#145175] how to extract url's from html source of google search result — sujeet kumar <sujeetkr@...>
hi
[#145177] Behavior of $* in String subclasses — Jamis Buck <jamis@37signals.com>
Here's an interesting snafu I ran into today:
[#145181] Regular expression problem — sujeet kumar <sujeetkr@...>
hi
[#145221] gem can't install rails? — Robo <robo@...>
I had a real old version of Rails, so I wanted to upgrade it.
[#145238] finding Hash subsets based on key value — "ee" <erik.eide@...>
Hi
James Edward Gray II <james@grayproductions.net> wrote:
....gonna launch a computerized weather balloon, of couse!
mark wrote:
[#145263] Re: python/ruby benchmark(don't shoot the messenger) — Nuralanur@...
Hello,
[#145264] [ANN] BoilerPlate 0.1.0 -- An application skeleton for Ruby on Rails — Michael Schuerig <michael@...>
[#145285] encryption using ruby? — "Nick Hayworth" <chipped_up@...>
Hi all
[#145288] ruby module for subversion? — Steve Kelem <s_kelem@...>
Is there a module for ruby that will give access to subversion functions?
[#145291] Chip Multi-threading and the future — Stephen Kellett <snail@...>
Hi Folks,
[#145302] Re: python/ruby benchmark(don't shoot the messenger) — Nuralanur@...
Tanner Burson wrote:
[#145304] PDF::Writer 1.0 (version 1.0.1) — Austin Ziegler <halostatue@...>
= PDF::Writer
On 6/13/05, Austin Ziegler <halostatue@gmail.com> wrote:
No love from PDF::Writer on Mac OS X 10.4.1. I hope to get this fixed
On 6/14/05, Jason Foreman <threeve.org@gmail.com> wrote:
On Jun 14, 2005, at 5:11 PM, Austin Ziegler wrote:
On 6/14/05, Jamis Buck <jamis@37signals.com> wrote:
On 6/14/05, Austin Ziegler <halostatue@gmail.com> wrote:
On Jun 14, 2005, at 9:06 PM, Jason Foreman wrote:
Jamis Buck <jamis@37signals.com> writes:
[#145306] Book: Agile Web Development with Rails — Stephen Kellett <snail@...>
Hi Folks,
[#145325] Speed concerns, rudeness, and narrow-minded excuses — Matt Pattison <matchbo@...>
I've been a little ashamed to be a part of the Ruby community reading
Matt Pattison wrote:
[#145339] survey: what editor do you use to hack ruby? — Lowell Kirsh <lkirsh@...>
I've been having a tough time getting emacs set up properly with ruby
2005/6/14, Lowell Kirsh <lkirsh@cs.ubc.ca>:
As a follow-up on the other people mentioning (g)vim: I think it should
Lowell Kirsh wrote:
On Jun 15, 2005, at 8:25 AM, Nikolai Weibull wrote:
James Edward Gray II <james@grayproductions.net> writes:
[#145372] vim question — "jeem" <jeem.hughes@...>
The survey thread reminded me that I wanted to ask this:
[#145373] Deploying on Textdrive — Bruno Bornsztein <bruno.bornsztein@...>
I've got an application working nicely on my localhost, and I'm
[#145390] Ruby and recursion (Ackermann benchmark) — ptkwt@... (Phil Tomson)
On 6/14/05, Phil Tomson <ptkwt@aracnet.com> wrote:
Austin Ziegler <halostatue@gmail.com> writes:
Christian Neukirchen <chneukirchen@gmail.com> writes:
[#145429] PDF::Writer Angle Issues — Austin Ziegler <halostatue@...>
Well, things have just gotten ... interesting. In response to a
On Wed, 15 Jun 2005, Austin Ziegler wrote:
[#145434] Limiting the CPU time of program started via SYSTEM() — Garance A Drosehn <drosihn@...>
Let's say I have a ruby script which calls system() to run some
[#145456] Problem to make Xtemplate parse my XHTML — "simonced" <simonced@...>
hi everyone,
I'll look better to Amrita documentation.
[#145465] code optimpization: delete_if, each, send. — dave <dave.m@...>
[#145487] Chess Variants (I) (#35) — Jim Menard <jimm@...>
My hacked-together solution, based on Bangkok (http://bangkok.rubyforge.org),
On Jun 15, 2005, at 8:54 AM, Jim Menard wrote:
James Edward Gray II wrote:
[#145531] Article on Ruby/Rails — Tom Copeland <tom@...>
Hi all -
[#145537] Regex help — Ezra Zygmuntowicz <ezra@...>
Hello list!
[#145546] Funniest Thing Evar! — Nikolai Weibull <mailing-lists.ruby-talk@...>
% python
[#145551] ruby openssl ? — "Bill Kelly" <billk@...>
Hi,
[#145574] stubborn program using readline — Wybo Dekker <wybo@...>
Hi,
On 6/16/05, Wybo Dekker <wybo@servalys.nl> wrote:
[#145575] OpenVMS woes — Renald Buter <buter@...>
Hello,
[#145582] Chess Variants (I) (#35) — Ruby Quiz <james@...>
As Gavin Kistner pointed out, this quiz was too much work. There's nothing that
[#145586] How to make a browser in Ruby Tk — sujeet kumar <sujeetkr@...>
Hi
From: sujeet kumar <sujeetkr@gmail.com>
When I run Ruby's source archive ("ext/tk/sample/tkextlib/tkHTML/hv.rb").
From: sujeet kumar <sujeetkr@gmail.com>
Hi,
From: sujeet kumar <sujeetkr@gmail.com>
Hi
From: sujeet kumar <sujeetkr@gmail.com>
Hi,
[#145603] Good Ruby Cross-platform GUI toolkit — jhouchin@... (Jimmie Houchin)
I've seen this pop up a couple of times while reading c.l.r.
[#145607] hash of hashes by default — Belorion <belorion@...>
I want a Hash of Hashes. Furthermore, I want it so that if a key for
[#145624] Backing up files and database better in Ant or Ruby? — "vike84" <mhust6@...>
I am looking to write some basic scripts to back-up various files and
[#145636] Super-scalar Optimizations — "Phrogz" <gavin@...>
I was looking over the shoulder of a C++ coworker yesterday, when he
Devin Mullins wrote:
On Jun 17, 2005, at 6:40 AM, Robert Klemme wrote:
[#145652] LinuxTag 2005 — Tanaka Akira <akr@...17n.org>
I'll go to LinuxTag 2005 next week.
[#145670] Nitro + Og 0.19.0: Og reloaded part2! — "George Moschovitis" <george.moschovitis@...>
Hello everyone,
On Fri, 17 Jun 2005, George Moschovitis wrote:
> > experimental In-Memory/Filesystem adapter.
[#145677] Truth maintenance system in Ruby — "itsme213" <itsme213@...>
Anyone know of any kind of truth-maintenance system implemented in Ruby (or,
Sorry, I should have elaborated. It is an AI/logic/rule-based system that
On Jun 17, 2005, at 11:20 AM, itsme213 wrote:
[#145683] Multitasking server? — mrt@...
Disclaimer: Ruby newbie here.
mrt@thomaszone.com wrote:
[#145684] ruby-vim line number — tsuraan <tsuraan@...>
This might be more appropriate on a vim list, but I'll give it a go here...
[#145704] Simple Check Box Question — "Matt Koidin" <mkoidin@...>
I'm new to ruby and rails and I have a simple question that is driving
It's the third parameter to the call you're making, a boolean. False is
I tried that and it doesn't work (again, I might be misinterpreting the
I solved the problem --
[#145718] gemserver for rubyforge projects — Eric Mahurin <eric_mahurin@...>
Anybody else think it would be nice if we had a gemserver
[#145720] Frameless RDoc template ('technology preview') — ES <ruby-ml@...>
Hi!
On 17 Jun 2005, at 12:59, ES wrote:
ES wrote:
On Saturday 18 June 2005 00:28, John W. Long wrote:
Ben Giddings wrote:
[#145730] What's the correspond method of PERL's DESTROY in ruby — "Yi Zhang" <yzhang@...>
Hello
[#145733] Confusion about gems and non-gems working together. — Lloyd Zusman <ljz@...>
Ever since I started installing packages via the gems mechanism, I have
[#145737] Why do arrays work this way? — Nigel Wilkinson <nigel@...>
Hi folks
[#145764] ruby on rails problem — "Ken Fettig" <kenfettig@...>
Hello, I have a Ruby on Rails question. I have used a layout in a
[#145779] Newbe questions... — "Chuck Brotman" <brotman@...>
In Ruby Is there a prefered (or otherwise elegant) way to do an inner &
[#145787] Syntax 1.0.0 — Jamis Buck <jamis@37signals.com>
INTRODUCING SYNTAX 1.0! IT'S EXPLOSIVE! IT'LL MAKE A REAL PROGRAMMER
[#145790] GC.disable not working? — Eric Mahurin <eric_mahurin@...>
From what I can tell, GC.disable doesn't work. I'm wanting to
Hi,
>>>>> "E" == Eric Mahurin <eric_mahurin@yahoo.com> writes:
Hello all,
dave wrote:
[#145823] Anybody using Ruby 1.6.x? — Timothy Hunter <cyclists@...>
With Ruby 1.8.3 on the horizon, should I continue to support building
[#145830] preventing instantiation — "R. Mark Volkmann" <mark@...>
What is the recommended way in Ruby to prevent other classes from creating
On 6/19/05, R. Mark Volkmann <mark@ociweb.com> wrote:
Quoting Gavri Fernandez <gavri.fernandez@gmail.com>:
R. Mark Volkmann wrote:
[#145846] irb without history? — Daniel Sche <uval@...>
Hello NG,
Take a look at:
well, I dont want to maintain history through the sessions
[#145862] trouble with sqlite-ruby — Lowell Kirsh <lkirsh@...>
I'm having trouble getting bind parameters to work. I'm getting errors
[#145870] Iterate with condition — G畸or SEBESTYノN <segabor@...>
Hi,
[#145879] x==1 vs 1==x — Gavin Kistner <gavin@...>
I'm against _premature_ optimization in theory, but believe that a
>>>>> "G" == Gavin Kistner <gavin@refinery.com> writes:
On Jun 20, 2005, at 7:23 AM, ts wrote:
On 6/20/05, Gavin Kistner <gavin@refinery.com> wrote:
Jason Foreman wrote:
[#145911] ruby9i dead? — rubyhacker@...
Is Ruby9i still an active project? I sent email to the owner
[#145941] Congrats to why_ — James Britt <james_b@...>
I don't recall seeing this mentioned here before, and I just read a post
[#145943] Chess Variants (II) (#36) — James Edward Gray II <james@...>
I don't want to spoil all the fun, in case anyone is still attempting
James Edward Gray II wrote:
On Jun 20, 2005, at 3:56 PM, Jim Menard wrote:
James Edward Gray II wrote:
Jim Van Fleet wrote:
On Jun 20, 2005, at 6:14 PM, Glenn Parker wrote:
[#145977] Ruby/REXML vs XSLT — John Carter <john.carter@...>
I'm just looking at 5000 lines of the gnarliest XSLT that generates
[#145987] Confusing code behavior in Rails — "szymon.rozga" <szymon.rozga@...>
I have a class in /project_dir/lib called Failure. Failure has one
[#145994] RMagick and RubyGems — Robert Mannl <ro@...>
Hi!
[#146003] Ruby and Java — Wayne Pierce <shalofin@...>
I have a vendor product with Java APIs that I need to write against
[#146023] HTML parsing as good as Perls. — TLOlczyk <olczyk2002@...>
First let me be very clear. I hate the language that Larry "should be
[#146038] 1. Ruby result: 101 seconds , 2. Java result:9.8 seconds, 3. Perl result:62 seconds — Michael Tan <mtan1232000@...>
Just new to Ruby since last week, running my same functional program on the windows XP(Pentium M1.5G), the Ruby version is 10 times slower than the Java version. The program is to find the prime numbers like 2, 3,5, 7, 11, 13... Are there setup issues? or it is normal?
Michael Tan wrote:
* Florian Frank <flori@nixe.ping.de> [2005-06-22 05:40:14 +0900]:
Jim Freeze said:
Ryan Leavengood wrote:
Glenn Parker said:
Ryan Leavengood wrote:
On 6/21/05, Glenn Parker <glenn.parker@comcast.net> wrote:
Florian Frank wrote:
Hey,
Keith Fahlgren wrote:
On Wed, 22 Jun 2005, Michael Tan wrote:
How about using a better algorithm than Eratosthenes sieve invented
Here's a version that skips even numbers:
[#146040] tk canvas question — Joe Van Dyk <joevandyk@...>
Hi,
On 6/21/05, Joe Van Dyk <joevandyk@gmail.com> wrote:
On 6/21/05, Joe Van Dyk <joevandyk@gmail.com> wrote:
From: Joe Van Dyk <joevandyk@gmail.com>
[#146064] rubyscript2exe — Joe Van Dyk <joevandyk@...>
Hi,
Joe Van Dyk said:
[#146074] Histogram-type Data — "Charles L. Snyder" <csnyder1@...>
Hi,
[#146087] Runtime vs Development — gwtmp01@...
On Wed, 2005-06-22 at 12:06 +0900, gwtmp01@mac.com wrote:
Matthew Berg said:
[#146123] traits-0.3.0 — "Ara.T.Howard" <Ara.T.Howard@...>
On Wed, Jun 22, 2005 at 09:18:13PM +0900, Ara.T.Howard wrote:
[#146143] How I can find out on which platform I am running (32/64 bits)? — "Joachim Just" <joachim.just@...>
[#146144] Newbee: recursively converting LF to CRLF and vice versa — Elliott <e.hmlhml@...>
Hello,
[#146169] spidering a website to build a sitemap — Bill Guindon <agorilla@...>
I need to spider a site and build a sitemap for it. I've looked
Bill Guindon said:
I have a site mapping tool I'm working on which does not yet read
i noticed webfetcher in RPAbase, haven't had a chance to play with it:
On 6/29/05, Gene Tani <gene.tani@gmail.com> wrote:
I was looking for somehting to trap 404-type errors, kind of like
[#146178] traits-0.4.0 - the coffee release — "Ara.T.Howard" <Ara.T.Howard@...>
Ara.T.Howard wrote:
On Thu, 23 Jun 2005, James Britt wrote:
On Thu, Jun 23, 2005 at 08:31:35AM +0900, Ara.T.Howard wrote:
Hello,
btw,
On Thu, 23 Jun 2005, George Moschovitis wrote:
[#146206] PostgreSQL Inserted OID — nexus <nexus@...>
Does anyone know how to get the inserted OID following an insert
[#146233] RMagick on Win — pavel.s.sokolov@...
Hi
[#146243] Packaging dillema — Joe Van Dyk <joevandyk@...>
Hi,
[#146248] Dead gateway detection — balcer <balcersk@...>
Is there some way to detect if gateway is dead?
[#146257] /dev/tty in windows — Wybo Dekker <wybo@...>
under linux I use
[#146263] Eclipse Weird Console Error — "Seago" <seagoj@...>
I'm not sure if anyone else is experiencing this. It's pretty much the
[#146296] ICFP 2005 Programming Contest — "Ryan Leavengood" <mrcode@...>
http://icfpc.plt-scheme.org/index.html
[#146325] REXML libraries and parsing issues — BA <lists@...>
First off, let me say right up front that I am a newbie wrt Ruby.
BA wrote:
[#146326] freeride debugger issue — "Chuck Brotman" <brotman@...>
I've been trying out Freeride and when I try to run my program using the
[#146327] Problems with Typo — Hal Fulton <hal9000@...>
Hi, all...
[#146328] string to Class object — "R. Mark Volkmann" <mark@...>
How can I create a Class object from a String that contains the name of a class?
On 6/23/05, R. Mark Volkmann <mark@ociweb.com> wrote:
Austin Ziegler wrote:
[#146349] FixedPt-0.0.1 — ptkwt@... (Phil Tomson)
[#146364] FastCGI: handling the caching of ruby scripts. — Jonas Hartmann <Mail@...>
FastCGIs idea of caching scripts on first startup is a great thing but:
[#146379] FSDB, Apache, FastCGI - ERROR: FSDB::Database::DirIsImmutableError — Jonas Hartmann <Mail@...>
when I run a script [1] from the command line, it works. it asks for
[#146380] Application-0.6.0 — Jim Freeze <jim@...>
CommandLine - Application and OptionParser
Great work, Jim! Looks like very quick way to get started on
* Eric Mahurin <eric_mahurin@yahoo.com> [2005-06-25 04:41:16 +0900]:
On Friday 24 June 2005 04:04 pm, Jim Freeze wrote:
Jim Freeze <jim@freeze.org> wrote:
* Levin Alexander <levin@grundeis.net> [2005-06-25 13:53:17 +0900]:
[#146391] ASP.NET vs Ruby on Rails — Stephen Kellett <snail@...>
HI Folks,
Hi Stephen,
Having written tens of thousands of lines of code in ASP.NET for
On 6/28/05, xmlblog@gmail.com <xmlblog@gmail.com> wrote:
[#146418] launching process and keeping track of pid — Joe Van Dyk <joevandyk@...>
Hi,
[#146419] Best way to parse/update HTML file? — "Bucco" <buc2@...>
Sorry for the newbie question. I am trying to find the best metod for
Bucco wrote:
[#146421] Text::Format 1.0.0 — Austin Ziegler <halostatue@...>
I am pleased to finally announce the release of Text::Format 1.0.0.
[#146425] speeding up Process.detach frequency — Joe Van Dyk <joevandyk@...>
Is there any way to speed up Process.detach? The ri documentation for
Hi,
Hi,
[#146437] optparse bug? — Joel VanderWerf <vjoel@...>
Hi,
[#146444] Defining a method vs aliasing it — leon breedt <bitserf@...>
Hi,
[#146452] Hash hidden in hash with default object — "Marcel Molina Jr." <marcel@...>
I observed this odd behavior when setting a hash to have as its default
[#146474] RubyGems Issue — Patrick Fernie <patrick.fernie@...>
Hi list,
[#146483] I saw the beauty of Ruby Re: 1. Ruby result: 101 seconds , 2. Java result:9.8 seconds, 3. Perl result:62 seconds — Michael Tan <mtan1232000@...>
Michael Tan wrote:
On 6/25/05, Florian Frank <flori@nixe.ping.de> wrote:
Joe Van Dyk wrote:
I think this shows the speed of my computer more than anything else:
For comparison, the port of your code to (less than elegant) C#.
Brad Wilson wrote:
On 6/26/05, Florian Gro<florgro@gmail.com> wrote:
My algorithmic ramblings gone unheard ... for performance language
[#146491] What do you want to see in a Sparklines Library? — Daniel Nugent <nugend@...>
This is sort of an interest gauging/feature request poll.
See what's already been done before you get too far.
Yup, seen the stuff on RedHanded, I was planning on writing a little
One thing that would make sparklines a lot more universally accessible to=
I'm doing that right now actually, I just want to add the ability to
Well... what does it do right now?
[#146508] RubyNuby Q: Howto Ri — Meino Christian Cramer <Meino.Cramer@...>
Hi,
[#146518] grouping/sorting [newbie question] — bdarcus@...
I'm trying to do something fairly simple that I understand how to do in
bdarcus@gmail.com wrote:
[#146535] newbie scope question — "Charles L. Snyder" <csnyder1@...>
Hi,
[#146536] Error using Net::SSH — "Amit Chitre" <amitchitre@...>
>From WinXP, I'm trying (for the first time) to connect to remote
On Jun 26, 2005, at 4:20 PM, Amit Chitre wrote:
[#146554] Caching eval() for reuse to gain performance ? — "Neville Burnell" <Neville.Burnell@...>
Hi,
[#146560] PDF::Writer Boggles — Brian McCallister <brianm@...>
Neither Austin nor myself has been able to diagnose this one.
[#146562] RCM - A Ruby Configuration Management System — Michael Neumann <mneumann@...>
Hi all,
Hi Everyone,
Zed A. Shaw wrote:
On Wed, 2005-06-29 at 05:42 +0900, Michael Neumann wrote:
Zed A. Shaw wrote:
[#146568] pythonchallenge level5 and pickle — Michael Tan <mtan1232000@...>
hi,what is Ruby's equivalent module of the Python
[#146569] Ruby 1.8.3 preview1 Build Error on AIX 5.2 — "Philippe Lucas" <philippe.lucas@...>
Hello,
[#146573] redirecting STDOUT — Joe Van Dyk <joevandyk@...>
Why doesn't this work?
[#146580] Adding a header to a SOAP request — David Teare <dteare@...>
Hi all,
[#146617] bit/byte operations — Meino Christian Cramer <Meino.Cramer@...>
Hi,
[#146630] yield does not take a block — Daniel Brockman <daniel@...>
Under ruby 1.9.0 (2005-06-23) [i386-linux], irb 0.9.5(05/04/13),
Yukihiro Matsumoto <matz@ruby-lang.org> writes:
Hi,
Eric Mahurin said:
* Ryan Leavengood <mrcode@netrox.net> [2005-06-29 05:49:45 +0900]:
In article <20050628215637.45029.qmail@web41129.mail.yahoo.com>, Eric
--- Jeremy Henty <jeremy@chaos.org.uk> wrote:
Eric Mahurin wrote:
Eric Mahurin wrote:
Eric Mahurin wrote:
[#146647] Problem in binding IWidget combobox to event — "Markus Liebelt" <markus.liebelt@...>
Hello all together,
[#146648] Ask for help about Regexp — Eric Luo <eric.wenbl@...>
Hi ,
[#146673] mkmf and oracle problem - not detecting header files — Daniel Berger <Daniel.Berger@...>
Hi all,
Have you set your ORACLE_HOME environment variable to the directory
[#146676] Rails: Seeing Apache Page instead of the Congratulations Page — "Jenjhiz" <jenjhiz@...>
Hello,
[#146677] SciTE — Jonas Galvez <jonasgalvez@...>
Can anyone share or point me to a decent syntax highlighting file for
[#146700] Anything in new Eclipse for Rubyists? — "jfry" <jeff.fry@...>
Hey there, I know that a number of folks on the list use Eclipse as
I tried multiple times to install the ruby plugin for eclipse 3.1. It's
Nope! I couldn't get it to work either...
On Tue, 28 Jun 2005 19:36:25 -0400, Amarison wrote:
JZ wrote:
[#146709] running unit tests in graphical mode — Joe Van Dyk <joevandyk@...>
Hi,
Joe Van Dyk ha scritto:
On 6/29/05, gabriele renzi <surrender_it@remove-yahoo.it> wrote:
Quoting Joe Van Dyk <joevandyk@gmail.com>:
[#146731] Qt 4.0 ruby bindings? — Ezra Zygmuntowicz <ezra@...>
I just noticed that Qt 4.0 has been released. http://
[#146745] heretix-user ML? — jm <jeffm@...>
Is the mailing list currently operational?
[#146751] Smart(er) platform detection — Matt Mower <matt.mower@...>
Hi folks,
[#146761] Re: Smart(er) platform detection — "Berger, Daniel" <Daniel.Berger@...>
> -----Original Message-----
[#146766] regex and gsub quest — "Charles L. Snyder" <csnyder1@...>
Hi
[#146773] Programmers Contest: Fit pictures on a page — hicinbothem@...
GLOSSY: The Summer Programmer Of The Month Contest is underway!
On Wednesday 29 June 2005 10:30 am, hicinbothem@ems.att.com wrote:
marcus baker wrote:
Karl, I think you are (incorrectly) assuming that all the pictures have
[#146776] Patch to delegate.rb — christophe.poucet@...
Hello,
[#146791] Agile Development with Ruby on Rails — "Jenjhiz" <jenjhiz@...>
Hello,
On 6/29/05, Jenjhiz <jenjhiz@yahoo.com> wrote:
Joe Van Dyk wrote:
[#146815] shift vs. slice!(0) and others — Eric Mahurin <eric_mahurin@...>
I just did some benchmarking of various ways to insert/delete
Eric Mahurin wrote:
Nikolai Weibull wrote:
[#146820] Tk text widget and tk_textCut — Nigel Wilkinson <nigel@...>
Hi folks
[#146854] Can you use Erb outside of Apache? — "Kyle Heon" <kheon@...>
I hope this doesn't sound like an odd question but as I'm learning Ruby I'm
Nevermind. I figured it out.
[#146885] code coverage tools — Pierre Gambarotto <pierre.gambarotto@...>
I want to know if my unit tests are really testing all of my code.
[#146892] win32ole object creation failure — "Axel" <anieden@...>
Hello, Rubyists!
[#146897] Time.parse unavailable — Karol Hosiawa <hosiawak@...>
Hello,
[#146920] debugger issue — pat eyler <pat.eyler@...>
I'm running into an unexpected issue with the debugger, and I'm hoping someone
[#146929] Escape sequences for unicode chars? — Michael Schuerig <michael@...>
[#146933] Rails day results are in — Carl Woodward <cjwoodward@...>
Hi everyone,
[#146934] stupid TCP — Joe Van Dyk <joevandyk@...>
require 'socket'
Ruby Weekly News 6th - 12th June 2005
http://www.rubyweeklynews.org/20050612.html
Ruby Weekly News 6th - 12th June 2005
-------------------------------------
Ruby Weekly News is a summary of the week's activity on the ruby-talk
mailing list / the comp.lang.ruby newsgroup, brought to you by
Tim Sutherland.
Articles and Announcements
--------------------------
* Ajax on Rails
---------------
The third Curt Hibbs ONLamp.com article covering the
Ruby on Rails web application framework.
This time it's about Rails' Ajax support, which makes it
super-easy to create web sites that use asynchronous
Javascript calls.
It was also posted to Slashdot.
Nearby, Curt posted the latest version of his Rails presentation, see
the thread [My Rails presentation is available for download].
"It includes a video that goes through the entire development process
for the cookbook application in part 1 of Rolling with Ruby on Rails".
* RubyStuff: The Ruby Shop for Ruby Programmers
-----------------------------------------------
James Britt announced the "formal grand opening" of RubyStuff.com.
"In an effort to help fund ruby-doc.org and rubyxml.com, I assembled a
variety of designs and opened up multiple shops on CafePress to hawk
apparel, clocks, mugs, mouse pads, assorted sundries."
* LinuxJournal awards are open for voting...
--------------------------------------------
Tom Copeland noticed that Ruby is in the programming language category
of the Linux Journal Readers' Choice Awards 2005.
The first round of voting has begun and is open to anyone with an
email address.
* http://sciruby.codeforpeople.com/
-----------------------------------
Ara.T.Howard announced the Scientific Ruby Wiki.
It is "a place for all things scientific and ruby. come join us!"
It includes a [WeeklySpotlight] page, which has something new every
week.
Quote of the Week
-----------------
Daniel Berger on RubyStuff.com shirt designs:
|
| I'm still waiting for my "Ruby programmers do it with class" t-shirt.
|
Link of the Week
----------------
Lambda the Ultimate - The Programming Languages Weblog.
http://lambda-the-ultimate.org/
Lots of interesting posts, if you're into that programming language
junk ;-)
Threads
-------
Interesting threads included:
finding Hash subsets based on key value
---------------------------------------
ee began
| Is there a simple way of searching the keys of a Hash to find a
| subset. I have a set of keys with two values indicating group and
| sub-group", for example "group_1_item_1", "group_1_item_2",
| "group_2_item_2".
"I'd like to divide them into groups, but without having to loop through
the entire collection and having to test each key".
Martin DeMello said that it isn't possible to solve this problem without
testing each key, but gave a single line using Enumerable#partition that
otherwise met the criteria.
| Enumerable#partition divides your collection into two parts, based on
| whether the block returns true or false, so it doesn't scale to more
| than two subsets, but for your example it should work nicely."
Robert Klemme thought that perhaps we should have a
Enumerable#general_partition method that partitions into "several buckets
and not just two." He gave a sample implementation.
James Edward Gray II popped in with the best answer: The standard
Set#classify. It can be used as follows,
----
require 'set'
items = Set[
'group_1_item_1',
'group_2_item_2',
'group_1_item_2',
'group_1_item_4',
'group_2_item_3',
]
groups = items.classify { |name|
name[/^group_\d+/]
}
p(groups)
# { "group_2" => #<Set: {"group_2_item_2", "group_2_item_3"}>,
# "group_1" => #<Set: {"group_1_item_1", "group_1_item_2",
# "group_1_item_4"}> }
----
Set#classify groups items by whatever the block returns for them - in this
case the prefix of each item.
python/ruby benchmark
---------------------
</script> (yes, that was the name) took a look at
`The Computer Language Shootout Benchmarks' page comparing the
performance of Ruby and Python in various micro-benchmarks.
To his disappointment, Python performed better.
"So what I'm asking for is a link to some ruby-specific optimisation tips."
Various people commented that such benchmarks do not mean that Ruby is
slow in real-life programs.
Austin Ziegler:
| At any rate, I consider the Alioth shootout to be harmful to all
| languages involved. There is no useful value provided by it,
| especially as it does not permit language-appropriate modifications
| to the algorithms in use.
Austin also called the benchmarks "bogus", and some other, less polite,
things.
Phil Tomson said that this was blaming the messenger.
| If we keep telling ourselves that Ruby is `fast enough' for our
| application (and it may well be) are we going to be sitting still
| while other languages improve performance?
The (sometimes hostile) thread continued for over 60 posts.
framework of Ruby/Tk + VNC
--------------------------
Hidetoshi NAGAI announced that he is working on a framework utilising
Ruby/Tk and VNC. "Its purpose is to put GUI applications of Ruby/Tk on
internet view", running "on a safe (safe-Tk) based slave interpreter".
VNC connects to a Tk canvas, with no external window manager. "In the
future, it may be expected that Ruby/Tk has RFB server functions and no
VNC server is required for this purpose." (RFB = Remote FrameBuffer.)
He compared this scheme with using the tclplugin web browser plugin to run
the Tk client on the user's computer.
FXRuby 1.2 with Fox 1.4?
------------------------
Tom Nakamura knew that FXRuby 1.2 was designed to work with Fox 1.2, but
wondered whether it would work with Fox 1.4, since "There's no FXRuby 1.4
yet".
Lothar Scholz said that it wouldn't work, since Fox 1.4 changes the names
of many methods in an effort to make them more consistent.
how to extract url's from html source of google search result
-------------------------------------------------------------
Sujeet Kumar was able to retrieve HTML from a website using Ruby, but was
stuck at the next point: how to extract URLs out of the result.
Marcel Molina Jr. suggested the URI.extract method from the `uri' library.
----
require 'uri'
URI.extract('My favorite site is http://google.com')
# => ["http://google.com"]
----
| An optional second argument can limit the schemes that it will match
| against and return" so, for example, you can tell it only to retrieve
| `http' links and not `mailto' etc.
Alexey Verkhovsky thought that URI.extract was potentially troublesome
because it is implemented using a regular expression - "it can produce
false positives (finding things that look like URIs, but aren't)".
| If you are sure that the page is a well-formed XHTML (I'm not sure if
| that's the case or not with Google), you might instead parse it with
| REXML, and use XPath to retrieve href attributes of all <a>..</a>
| elements, selecting only those that start with "http://" (there may
| also be mailto:, ftp:, JavaScript calls etc).
As an entirely different solution, Eric Hodel asked why the original
poster didn't juse use the Google API (web-service).
text to images using RMagick
----------------------------
Nick Hayworth wanted to convert a string to an image using RMagick,
automatically wrapping at a certain number of pixels.
He already had this working using the convert utility that comes with
ImageMagick.
----
convert -size 200x -font Tahoma -pointsize 20 caption:"My very long caption
which should wrap at 200 pixels" output.gif
----
Timothy Hunter released a new version of RMagick (version 1.8.2) and
announced that it was indeed possible ;-)
The following code will do it:
----
require 'RMagick'
include Magick
img = Image.read("caption:My very long caption which should wrap at 200
pixels") do
self.size = "200x"
self.pointsize = 20
self.font = "Tahoma"
end
img[0].display
----
Persistence of Ruby sessions/programs
-------------------------------------
Renzo Orsini:
| I know there are several ways of saving ruby objects on
| files, but there is a simple way of saving ALL the state of a Ruby
| program execution (or an irb work session) and then reload it in
| another execution (or session)?"
gabriele renzi said that a "hackish" solution would be to store the source
you entered in irb and eval it back later. "Saving the state of the
program would be hard since you can't serialize closures, singletons and
continuations".
Renzo Orsini noted that he would be "happy just to save classes, objects
and global variables that I have defined, or a subset of them, but it
seems to me that with Marshal.dump I cannot even save a class".
blocks, scope/context confusion
-------------------------------
Corey, learning Ruby from PickAxe2, was having trouble in the section on
blocks.
"What's the difference between the two methods below?"
----
def meth1
yield
end
def meth2(&b)
b.call
end
----
He also asked why "meth { return 99 }" throws a LocalJumpError.
To the last question, Matz said the error was because even the bare
return 99 at the top-level causes an exception. He suggesting Corey try
----
def foo
meth1 { return 99 }
end
p foo
----
For the other questions, Gary Wright said that yield and b.call were
equivalent. "The first example is syntactic sugar for the second example."
He noted an implementation difference in them; the former is slightly more
efficient.
Devin Mullins gave a link to an article on "closures" (another name for
blocks).
Chess Variants (I) (#35)
------------------------
James Edward Gray II posted this week's Ruby Quiz. It is reminiscent of
the idea behind the 2005 ICFP Functional Programming Contest.
| One of the greatest challenges in programming is modular design.
| Building code that adapts well to change is a Holy Grail quest for
| most of us. This two-part Ruby Quiz is designed to put your ability
| to predict the future to the test.
The first part of the problem is to build an engine for two player chess.
There is no need to create AI or other features, "just a board and piece
interface players can use for games. The game should prevent illegal
moves, make sure the right player moves at the right time, declare a
winner when a game ends, etc."
"Next week, in part two of this quiz, I will provide a list of chess
variants you are expected to modify your program to support."
(Aha! The twist.)
get username of file owner?
---------------------------
John Fry wanted to find the username of whoever owned a particular file.
He could get the uid with File.stat("testfile").uid, but how might he
retrieve a username such as "smith" instead?
Fredrik Fornwall showed how to use the `etc' library to convert a uid to a
username:
----
require 'etc'
uid = File.stat('testfile').uid
puts 'Owner name: ', Etc.getpwuid(uid).name
----
duck-typing allows deeper polymorphism
--------------------------------------
Eric Mahurin posted the advantages he sees of duck-typing over
"conventional polymorphism".
See also the [making a duck thread] from earlier in the week.
problem matching accented chars on OS X
---------------------------------------
Alex Fenton wrote: "I'm finding words within strings in Western European
languages, so I need to account for accented characters, such as (e
circumflex) and (a grave)."
He can match them in reguar expressions by including "\xC0" and so on in
the expression - the hex representation of characters in the iso-8859-1
encoding.
This works on Windows, but when he tries to run the same code on Mac OS X,
he gets an error about "mismatch multibyte code length in char-class
range".
Axel (now that's confusing!) replied, saying that a regular expression
such as /abc/U can be used to specify that the expression is encoded in
UTF-8.
Other character sets, such as EUC and SJIS are supported in a similar way.
Axel later added that the Oniguruma regular expression library supports
more encodings. It is the standard engine in Ruby 1.9.
Rails on Altix ia64
-------------------
Adam P. Jenkins was getting "[BUG] Segmentation fault" messages when
running Ruby on an Altix IA64.
Tanaka Akira posted a patch which solved Adam's problem, but noted that
issues on IA64 still exist.
(Particularly around the way the GC interacts with registers.)
Getting a method object directly from a module
----------------------------------------------
Daniel Berger asked how he could extract a method from a module.
----
module Foo
def my_method
end
end
method = Foo.method(:my_method)
=> NameError: undefined method `my_method' for class `Module'
----
Matz:
----
Foo.instance_method(:my_method).bind(obj).call
----
A little Quiz
-------------
Dominik Bathon wrote some code that uses method_missing for an unspecified
purpose, and challenged the group to figure out what it does.
Later ... "As James Britt already figured out, it lets you call one method
on all elements of an Array. If no block is given this works like
collect."
| Instead of
|
| [-1, -2, -3].collect { |x| x.abs }
| => [1, 2, 3]
|
| you can just write
|
| [-1, -2, -3].abs
| => [1, 2, 3]
|
| Since #abs is not part of the Array interface, method_missing is
| triggered. But it does more than collect, it even works on nested
| Arrays:
|
| [[-1,-2],[-3,4],-2,5].abs
| => [[1, 2], [3, 4], 2, 5]
Accessing SVN through Ruby/DL
-----------------------------
Jim Morris was wandering through an old thread which discussed the merits
of binding Subversion through SWIG or Ruby/DL.
"I cobbled together the following to see how hard it would be to do this
in DL."
"I hope this can be added to the samples, as it involves callbacks,
structures and pointer types."
Takaaki Tateishi thanked him, and added the sample program to the
DLCookbook project.
Ruby/LDAP on Windows
--------------------
gregarican was having trouble building Ruby/LDAP on Windows.
extconf.rb was complaining that it couldn't find `ldap.h', `lber.h' or
`ldap_ssl.h'.
The headers were under `c:\openldap-2.2.26', and gregarican had tried
passing in arguments such as --with-ldap-dir="c:\\openldap-2.2.26".
There weren't yet any replies.
Perhaps using '-with-ldap-incdir' to point directly to the header
directory may help?
Array#nitems and Object#nil?
----------------------------
Matz re-discovered a March post from Bertram Scharpf that proposed adding
a block to Array#nitems.
"Today, I happened to re-discover this mail, and found it reasonable.
Array#nitems will be able to take a block to count items specified by the
block (CVS HEAD)."
Could Ruby-doc be better?-Proposal for a better system
------------------------------------------------------
Andrew Thompson thought that ruby-doc.org could use some inspiration from
the PHP manual.
| My basic plan is to have a php style manual
| http://www.php.net/manual/en/ generated from the rdoc comments,
| with the ability to have the documentation maintained in a wiki
| based fashion, and have user comments along the lines of the PHP
| manual. This way we lower the barrier to writing documentation,
| allow users to comment with code samples or additional info, and
| hopefully increase and improve the amount of documentation ruby has.
Can't see the ground `cause my chest is so puffed out!
------------------------------------------------------
Timothy Hunter:
| Following the Rails Day links from /. I was immeasureably pleased to
| discover that at least 2 Rails Day qualifiers
| (http://railsday.com/svn/qualifiers) used RMagick!
You might guess that Timothy is the creator of RMagick, the Ruby bindings
for the ImageMagick and GraphicsMagick image manipulation libraries.
Gambit Codefest Postmortem
--------------------------
James Edward Gray II,
| We've just completed nine solid days of development on Gambit. Now
| that's a "Codefest" alright! I thought I would share a little with the
| curious about how I think it went...
|
| Greg Brown flew out to my home in Oklahoma so we could work on Gambit.
| It was nice to finally meet face-to-face. We've actually programmed
| together on many projects these last couple of years, but this was the
| first time we didn't do it over the Internet. We're both grateful to the
| wonderful people at Ruby Central for giving us that opportunity.
....
| Which brings us to what we built. Some of you have expressed interest in
| Gambit and I'm sure you would like to hear how it came out. The short
| story is, very good. We met and even exceeded our expectations in many
| areas.
|
| The longer story: We've built a very hand model layer for common game
| elements like Boards, Cards, and Dice. This is probably our most
| polished work and has been a real asset to our internal development
| already.
.... with lots and lots of unit tests.
New Releases
------------
* constraint 0.1-ensure that object always satisfy a specified set of
constraints
---------------------------------------------------------------------
Thomas announced the "first draft" of `constraint', a library that
assists in adding constraints to objects. In particular, it is used to
implement typed collections.
* RDoc Dashboard Widget
-----------------------
David Felstead created an RDoc Dashboard widget for Mac OS X Tiger. It
reads any RDoc repository and "lets you check your documentation
without having to open a Safari/Firefox window."
"I'm also working on an IRB widget which should be done shortly, if
anyone's interested."
Gavin Kistner: "Hot damn, that's awesome! Just what I was looking for
and thinking of when Tiger came out."
* ruby2c 1.0.0 beta 3
---------------------
Ryan Davis released the third beta of ruby2c 1.0.0.
| Ruby2C provides a pipeline of SexpProcessor classes to work with
| ParseTree output. Processors included:
|
| Rewriter - massages the sexp into a more consistent form.
| TypeChecker - type inferencer for the above sexps.
| RubyToC - converts a ruby (subset) sexp to C.
* Tiddy 0.0.4
-------------
Dr Balwinder S Dheeman updated Tiddy, a program for re-formatting Ruby
source code. (And Ada, C, C++, Java, C#, Perl, ...)
See also Tiddy 0.0.3-pre3 is released.
* FireRuby 0.3.1
----------------
Peter Wood enhanced the Connection class in FireRuby 0.3.1, the
bindings to the Firebird RDBMS.
It now rolls back outstanding transactions whenever the close method
is called.
* Ruby Month 0.1.0
------------------
Francis Hwang, from "out of murky depths of the Lafcadio codebase",
released a utility library called Ruby Month.
It is used, unsurprisingly, to make it easier to manipulate months.
* Ruby/Odeum 0.4: ResultSets, KirbyBase Demo
--------------------------------------------
Zed A. Shaw announced Ruby/Odeum 0.4, a binding to the QDBM Odeum
full-text search engine.
This release is 15-20% faster than the last, and includes a KirbyBase
wrapper that "indexes records on the fly and allows you to do full
text search for them".
--