208967-233890 subjects 209422-210280

Re: DateBocks v2.0.0 Released
209201 [wccrawford@g] I agree!
209219 [wccrawford@g] Firefox 1.5 on Kubuntu here.  Clicking on the little calendar icon, or
+ 209221 [gk@cu co y. ] Here Firefox 1.5 on Win 2k (whitelistet this page in adblock, javascript
| 209235 [bill@ma gr v] No joy on XP with Opera either.
| + 209241 [nshb@in mi .] Thanks for all the great feedback, other than the strange bugs going
| + 209243 [ara.t.howard] nor linux/konqueror
+ 209229 [ara.t.howard] nope.  it's quite strange.  i actually have some other similar widgets running

209208 [fabbyfabs@gm] Hey.. I just installed hpricot but it acts strange..
209223 [canyonrat@ma] Maybe you better show us your actual code. There are several examples
209227 [fabbyfabs@gm] Im getting the same error with the code you pasted..
209239 [canyonrat@ma] Weird,
209265 [fabbyfabs@gm] I'ts really strange.. It works in irb but not when im pasting in in a
209271 [canyonrat@ma] Maybe. It seems to me that if it weren't installed correctly it
209275 [fabbyfabs@gm] Yeah.. re-installed it but i still get the same error..
+ 209280 [collinsj@se ] ...
| 209283 [canyonrat@ma] I think maybe Justin is on to something here. Could your editor be
+ 209301 [phrogz@gm il] Smells like you've got a line-endings problem.
  209318 [fabbyfabs@gm] Aah!

[QUIZ] QAPrototype (#91)
209209 [james@gr yp ] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 209262 [martin@sn wp] Yeah, I was thinking about that as I read this quiz - the core of the
+ 209491 [sander.land@] Here is my solution, it focuses on being able to use the methods you
| 209499 [chiology@gm ] Actually, you can declare an attr in the module and it will work as an
| + 209511 [timhollingsw] My solution intercepts the missing method, generates the method
| + 209546 [bulliver@ba ] charset="utf-8"
+ 209524 [rick.denatal] I've been away from e-mail for a few days.  I haven't looked at anyone
+ 209528 [bpf@me ia mi] Not as nice as Tim Hollingsworth's use of the method signature, but

Question on speed
209211 [jesse.r.brow] File.open(name).each { |line|
209220 [pbattley@gm ] Ruby doesn't compile the separate expressions: it sends ===(subject)
209234 [jesse.r.brow] Thank you for the explanation and example (it's plenty 'un'scientific

[ANN] Spreadsheet-Excel 0.3.5 released
209214 [hannes.wyss@] == What is it?
+ 209310 [lopx@ga et .] Has anyone tried to support strings longer than 255 characters (the cell
+ 209598 [zoso@fo on e] re
  209623 [hannes.wyss@] (And http://rubyspreadsheet.sourceforge.net - which is to be moved to RubyForge)

Net/LDAP, eRuby/CGI problem
209236 [justin.crawf] I've been trying to build a CGI LDAP tool for password changes using
209242 [decoux@mo lo] Well, if I remember well eruby run with $SAFE = 1

Bug in sprintf?
209245 [weyus@at .n ] All,
+ 209248 [wccrawford@g] Because 8 isn't an octal number.  0-7 are octal.
| 209250 [wccrawford@g] -slaps self- Think before you reply, William.
| 209251 [wccrawford@g] Last time, I swear.
| 209325 [hal9000@hy e] This comes from C, and is at least 30 years old.
+ 209249 [ara.t.howard] main(){ char s[42]; int r = sprintf (s, "%d", 07); printf ("%d: <%s>\n", r, s); }
  + 209253 [angus@qu va ] It is not expected, nor documented, because the documentation of sprintf
  | + 209263 [reima@gm .n ] I disagree on that. %d tells sprintf to expect an Integer as the
  | + 209268 [martin@sn wp] I think that the problem here is that ruby is performing two
  | | + 209279 [weyus@at .n ] I'll buy that.  I did know that my input was a String so I am implicitly
  | | | 209329 [hal9000@hy e] Actually I failed to take that into account, so what I said
  | | + 209292 [fxn@ha hr f.] How did you figure that out? I started at sprintf.c and browsed a bit
  | + 209326 [hal9000@hy e] The string of characters is interpreted as a decimal number IF IT IS
  |   209340 [angus@qu va ] [Hal Fulton <hal9000@hypermetrics.com>, 2006-08-19 00.27 CEST]
  |   209341 [hal9000@hy e] Why would you pass a string to something that expects a number
  |   209342 [hal9000@hy e] Actually, let me say this, as it's more informative and
  |   209361 [robert.dober] ...
  |   + 209374 [halostatue@g] sprintf("%02d", 3)
  |   + 209453 [hal9000@hy e] I see your point. Truthfully, I think automatic conversion of a
  |     209471 [robert.dober] ...
  + 209255 [weyus@at .n ] Thanks for the comprehensive response.
    + 209256 [weyus@at .n ] What Carlos said ;)
    + 209260 [jan.svitok@g] As I see it, there are two separate things: WHAT number you want to
    + 209278 [jesse.r.brow] The format character (%d) is a way to know how the values collected
    + 209293 [david@va ln ] Declare your intent by doing '08'.to_i(10) instead. In fact, declare
    + 209327 [hal9000@hy e] I see your point. But most things in Ruby that are stolen from C

is there a tutorial for RoR using legacy DB's
209254 [jfabiani@yo ] I need to setup a website reporting tool.  I thought I try RoR (therefore I'm
209259 [halostatue@g] You'll probably get better answers at
209264 [masukomi@gm ] He's right about that being the right place to ask but the short

parsing commandline parameters to a win32ole instance of an application
209258 [simon.lont@g] I'm a newby to ruby and I'm trying to whrite a script that uses the

Refactoring transactional support within Puppet (long)
209270 [luke@ma st p] This is one of those "complicated" problems I mentioned a bit ago.
209288 [ara.t.howard] 1) make transactions re-entrant AND singleton
209428 [luke@ma st p] Hmm.  If I do this, then at the very least I want to organize things

`cmd` and UTF-8
209281 [atd@ru do eb] I have spent several hours searching for this and I still don't know how
+ 209282 [pbattley@gm ] Do you mean the return value? That depends on your platform, locale,
| 209287 [atd@ru do eb] Yes, I mean the return value.
| + 209314 [david@va ln ] Until Ruby gets some non-basic Unicode support, I -think- you're stuck
| + 209347 [nobu@ru y- a] Then what encoding does your target program use?
+ 209556 [atd@ru do eb] ENV["LC_ALL"] = "C.UTF-8"

Machine sync
209284 [carl.sampson] ...
209432 [leslieviljoe] I don't think so - I have quite a lot of stuff in /usr/lib/ruby. What

Re: RubyPhone 0.1.8 released.
209290 [greg.kujawa@] Actually I wrapped a couple of extra CTI methods today and have updated

Class variables in Ruby
209291 [prcorcoran@c] I am trying to cache lookup table values from a database table into a
209294 [khaines@en g] @@cacheDescr = {} unless @@cacheDescr
+ 209308 [rabbitblue@g] @@cache_descr ||= {}
| 209311 [khaines@en g] Which I usually prefer, but the variant that uses unless reads more like a
+ 209320 [prcorcoran@c] I tried @@cacheDescr = {} unless @@cacheDescr but I get the same
| 209344 [ara.t.howard] but the file may be getting loaded each time... depending on mode.  fyi.
+ 209346 [prcorcoran@c] class for every request coming into the application and therefore
  209352 [james@gr yp ] You really, really don't want to do this.  Trust me.  ;)
  + 209353 [ara.t.howard] or you need to configure your app so that only one instance will run at once -
  + 209392 [prcorcoran@c] James,
    + 209402 [gwtmp01@ma .] Just a side note.  It isn't necessary to use class variables to
    | 209412 [prcorcoran@c] I'm not quite sure what you mean by using "an instance variable of the
    | + 209436 [jan.svitok@g] This comes from Ruby's object model (and this may sound familiar to
    | | + 209485 [dblack@wo bl] Just one additional comment: you'll also see instance variables of
    | | + 209541 [prcorcoran@c] Yes, this makes perfect sense now that you mention it. I had not seen
    | + 209635 [rick.denatal] Smalltalk has pretty much the same thing, there's a difference between
    |   209637 [dblack@wo bl] The class and its subclasses are different objects, though, so they
    + 209406 [james@gr yp ] This smells like premature optimization to me.  You've timed it and
      209417 [prcorcoran@c] I do appreciate your comments and I was not aware of the caching
      209424 [rsanheim@gm ] This is getting more into rails-talk, but just fyi - the built in
      209542 [prcorcoran@c] Yes, MemCache looks like what I am after. Right now I'm doing

How to turn off input echo in irb?
209295 [jacklty@gm i] How to turn off input echo in irb?
+ 209312 [david@va ln ] irb is a read-eval-print-loop, why would you ever want to do that? If
| + 209315 [jacklty@gm i] I am trying to write a irb console in my java app (Using JTextArea and
| | 209317 [david@va ln ] Ah. *puts dumbass hat on*
| + 209368 [none@no e. o] If you are using irb in irb-mode in Emacs, then why would you want the
+ 209555 [robert.dober] ...

Re: Question on speed [OT]
209296 [david@va ln ] Shh. Don't tell anyone, but there's the benchmark module 'bm'. Pickaxe

exception handling in ruby
209297 [junkone1@gm ] My exception handling routine is not able to thro the stack trace etc
209299 [jan.svitok@g] rescue Exception ex

cross-installing gems
209298 [kero@ch ll .] Obvisouly I want post-install.rb to write in ./ipkg, as setup.rb does.

File creation time
209302 [kendrhyd@sy ] I see the File.atime/ctime/mtime methods documented, but is there a
209305 [phrogz@gm il] This was asked 3 days ago. See http://rubyurl.com/8vE

How do I download Ruby DBI?
209303 [needin4matio] I'm trying to download ruby dbi.  I am using Apache on Windows.  What I
209316 [wccrawford@g] There ya go :)

User Interface Designer for GTK+ and GNOME
209306 [felipeureta@] I'm posting here since I cannot do it in the Ruby-Gnome 2 forum.
+ 209364 [interfecus@g] The idea behind glade is that you keep the interface separate from the
+ 209469 [boukewoudstr] Glade can do anything you want it to and is fast too. If you want to
  209561 [felipeureta@] Thanks for both of your replies. Crazy88, I'll look at the code of your

Curier-IMAP and imap.create()
209354 [henrik.ormas] I don't get imap.create to work on Courier-IMAP. I can search

how does sort work on hash
209355 [inxs.hemant@] I am just a little curious about how exactly sort workes on hashes.
209360 [robert.dober] ...

best-performing Rss parser
209358 [ray.c.chen@g] I am working on a project that requires rss parsing for pre-fetched web
209359 [ray.c.chen@g] One more.
209448 [vacindak@gm ] Right now, I'm recommending that people who care about performance use
211185 [ray.c.chen@g] Just wanted to give everyone who's curious an update on this situation.
212647 [vacindak@gm ] The results aren't even remotely suprising to me, but yeah, they
289275 [sunil@tr es ] I am working on a RSS parser script. Here I have to parser thousands and
+ 328198 [collimarco91] Have you come across any solution?
| + 328201 [transfire@gm] If speed is the #1 issue, I would try libxml-ruby. It's lower lever
| + 328260 [m.fellinger@] ^ manveru
|   328340 [crackeur@co ] ...
+ 328483 [tony@me io .] Sounds like a case of premature optimization to me.  If you intend to do
  + 328485 [raulparraco@] unsubscribe'
  + 328501 [ben.woosley@] Check out Paul Dix's Feedzirra.  It's an order of magnitude faster than

help with TkRoot
209362 [Diego.Viraso] I would like to write a program on the Mac which at the start only
+ 209425 [m_goldberg@a] Yes, you can make the root window invisible. The following produces a
| 209430 [m_goldberg@a] Now that I've looked a little deeper into the problem, I see that
+ 209584 [gk@cu co y. ] Maybe you could try to define the menubar in the root window with proper

Ruby on Rails testing/ fixtures question
209363 [s.richards@c] I'm using Test::Unit::TastCase and am having some problems getting
209367 [drbrain@se m] The Ruby on Rails mailing list is the appropriate place for asking

Why is my http call failing?
209365 [none@no e. o] print(http.head('/yaml'))
+ 209366 [wccrawford@g] #<Net::HTTPOK:0xb7bef67c>=> nil
| 209369 [shortcutter@] Works for me, too.
| 209437 [none@no e. o] The firewall I use is zonealarm. It keeps prompting me to allow ruby
| + 209446 [garbagecat10] ...
| + 209449 [ezmobius@gm ] I have seen this same issue on windows before. ZoneAlarm interferes
|   + 209451 [james.britt@] Interesting. I have ZA installed on two different WinXP boxen, and a
|   | 209455 [ezmobius@gm ] It has been a while since I've seen this issue as I don't use
|   + 209461 [none@no e. o] Hmmm.
|     209470 [shortcutter@] You can try Kerio Personal Firewall - personally I like it better than
|     209573 [none@no e. o] I removed ZA and installed Sygate. No difference.
+ 209373 [garbagecat10] What happens if you use a more recent version of Windows?
  209440 [james.britt@] This works for me on WinXP and a somewhat recent version of Curt's

Basics of eval?
209372 [jon.hadley@g] I'm a 'ruby nubie' and otherwise unfamiliar with the ':eval' technique
+ 209380 [M.B.Smillie@] There's actually several different things going on, so I'll give my
| 209408 [james@gr yp ] SymbolsAreNotImmutableStrings.red
+ 209383 [lopx@ga et .] You use eval with ajaxscaffold when you want to supply more complicated
  209390 [jon.hadley@g] Thanks guys, some outstandingly useful and pertinent advice.
  + 209396 [alex@bl ck e] Check http://ruby-doc.org/core/classes/Kernel.src/M003216.html.  No idea
  + 209410 [james@gr yp ] The book Ruby for Rails has a section that explains and compares the

Client/server with threads
209375 [andreas.alin] Yow!
209376 [garbagecat10] First, make sure your constructor is getting called. You spelled it
209377 [andreas.alin] Oh, thanks. :) Didn't see that. :)
209387 [garbagecat10] Please forgive me, I don't intend to be rude, but this program is not
209403 [andreas.alin] Thanks for the advice, and for explaining :)

Convert "ThisIsSomeString" to "this_is_some_string"?
209378 [forum@jo h. ] What's the fastest way to convert "ThisIsSomeString" to
+ 209379 [ara.t.howard] def snake_case string
| 209381 [forum@jo h. ] Thanks a lot for your help. :-)
+ 209385 [lopx@ga et .] p "ThisIsSomeString".scan(/[A-Z][a-z]+/).map{|w|w.downcase}.join('_')
| + 209386 [forum@jo h. ] syntax error near unexpected token `('
| | 209404 [lopx@ga et .] works for me, maybe some typo ?
| + 209393 [ara.t.howard] irb(main):001:0> "FooBAR".scan(/[A-Z][a-z]+/).map{|w|w.downcase}.join('_')
|   209665 [rick.denatal] Oh, look, a mini-quiz!
+ 209389 [daniel.schie] I believe this is the fastest way, though it may not catch all cases
| 209394 [ara.t.howard] irb(main):025:0> lowerize 'BARFoo'
| + 209418 [khaines@en g] How about this one?
| + 209421 [daniel.schie] Correct. Your solution has a flaw, too.
|   209427 [ara.t.howard] good catch!
|   209433 [daniel.schie] Can we agree that "ABCde" => "ab_cde"?
|   209435 [ara.t.howard] sure.  it's arbitrary i realize - but i make sense to me!  ;-)
|   209473 [daniel.schie] Cheers,
|   209476 [daniel.schie] class String
|   209504 [ara.t.howard] <snip and integrate into my test>
+ 209411 [bauer.mail@g] require 'action_pack'
| 209563 [listbox@ju i] require 'active_support' is enough.
+ 209429 [w_a_x_man@ya] p ["FooBar","fooBar","FOOBar","FooBAR"].map{|s|
+ 209459 [logancapaldo] I like to do string.split(/(?=[A-Z])/).map { |s| s.downcase }.join('_')

attributes[:xxx] does not work within model?
209382 [forum@jo h. ] I have a model User that contains the attribute avatar. I'd like to
209384 [forum@jo h. ] Oh I'm sorry, wrong forum... Should go into the Rails forum.

Who's a newbie?
209391 [bob@rj sl n.] (Note - I'll fix the margins before I post again)
+ 209414 [david@va ln ] -1, Rant
+ 209420 [znmeb@ce ma ] The original BASIC from Dartmouth was an intentionally limited dialect

Match all occurance of double quotes in a string
209395 [patrick@pk p] I have a string something like this...
209397 [alex@bl ck e] string.sub(/"([^"]*)"/, '[i]\1[/i]')
209398 [patrick@pk p] I like simple, thanks!

SOS Taskable
209399 [transfire@gm] I'm stuck. I can't figure out how to implement Taskable. If you haven;t
209426 [transfire@gm] Never mind. I just reworote the whole thing from scratch WITHOUT using

Fixing ruby on Mac OS X Tiger
209400 [explorer@gm ] Hey all, I'd greatly appreciate it if someone could help me with this
209416 [canyonrat@ma] <http://ruby-lang.org/en/> and download the latest stable or stable

Ruby + IMAP + Attachment
209405 [stian.hole@g] I am trying read out attachments using Net::IMAP, but this seems to be
209409 [decoux@mo lo] You have an example in comp.lang.ruby

How to override RUBYLIB for soap4r on shared host?
209419 [bothari@gm i] Group,