223838-232003 subjects 224238-226475

^ Parse date fields from mysql database
224020 [bart.braem g] I would like to be able to parse date fields from a MySQL database in order
+ 224023 [gabriele.mar] Just use Date#day, Date#year, Date#hour and so on.
+ 224027 [khaines enig] require 'time'
  224068 [bart.braem g] Combined with the methods from Gabriele this works perfectly, thanks!
  224072 [gabriele.mar] Oops! Sorry, I thought you were using ActiveRecord, so it was already

^ Suprise in Ruby
224026 [just-for-new] I can not remember having read about it before, however the following
+ 224029 [eric.jacobon] Friedrich Dominicus <just-for-news-frido@q-software-solutions.de>
+ 224031 [ruby ml.icem] Yes. In your first call, 'Array.new' is evaluated ONCE before the call,
| 224111 [just-for-new] Yeah it has come to me this night that it's supposed to be right.
+ 224033 [dblack wobbl] Array.new(n, obj)

^ Net::SSH Data Stream Problem
224038 [boss airblad] I am trying to copy a file from my local machine to a remote machine
+ 224041 [hgs dmu.ac.u] what platform(s)?
| 224044 [boss airblad] I tried that just now but sadly it didn't change the result.
| 224049 [hgs dmu.ac.u] OK, given they're both unices, that figures...  I'd then read and
| 224052 [boss airblad] open(source_path) { |f| stdin.write f.read }
| 224056 [hgs dmu.ac.u] [ri output]
| 224065 [boss airblad] Thanks for the suggestion -- it worked.  Here are the code changes
+ 224054 [ara.t.howard] does this help?
| 224058 [boss airblad] undefined method `flush' for
+ 224059 [pgquiles elp] charset="iso-8859-1"
  224067 [boss airblad] [snipped]
  224071 [eegreg gmail] I had the same problem where my ssh connection closing early.  I solved

^ [TIP] Proc as Observer
224039 [tim.pease gm] Working with an Observable object, I wanted to be able to add a Proc

^ Simple Math Problem
224040 [tloring mac.] Can anyone shed some light on a simple math problem I have encountered?
+ 224043 [tim.pease gm] Machine roundoff error. Floating point values are never precise on any computer.
| + 224046 [hgs dmu.ac.u] brains hgs 226 %> irb
| | 224050 [tim.pease gm] With IEEE 754  floating point values you only have 15 digits of
| | + 224051 [tim.pease gm] <errata>
| | + 224053 [hgs dmu.ac.u] I just picked a large value.  This seemed the clearest way to show
| + 224047 [tloring mac.] Hmm...yeah, I figured that must be it, but I just didn't expect it with
| | 224123 [nospam nosit] It isn't about the magnitude of the numbers, it is about the unseen bits.
| + 224048 [ara.t.howard] boy,  how bout an rcr for that behaviour if one write this
+ 224045 [ara.t.howard] -a
+ 224271 [ jupp gmx.de] Visit an introduction to Numerical Mathematics at your favorite
  + 224320 [vihanpandey ] That would of course be great, but one ends up with diving in a a lot deeper
  + 224321 [benjohn fysh] It's jolly decent of light to be so obliging about the speed it travels
    224322 [vihanpandey ] True, but thats in m/s, if you like other units its not so jolly :-)

^ matz podcast, and, streaming data in Ruby?
224042 [gilesb gmail] streaming data in Ruby -- anybody know of media servers in Ruby? I

^ Re: Bytecode Compiler (#100)
224055 [rossrt rosco] This quiz has turned out to have some interesting solutions, I'm looking
224105 [louis.j.scor] #!/usr/bin/env ruby
224202 [rosco roscop] It certainly looks it, too. I've glanced a few times, and put it on my

^ Flat CSV to Relational DB
224060 [mguterl gmai] Anyone have any suggestions on pushing a flat CSV file into a
+ 224081 [james graypr] #!/usr/local/bin/ruby -w
| 224226 [mguterl gmai] Thanks, I was unaware of :header_converters, those look like they
+ 224095 [jeremy hineg] Depending on the quantity of data you may want to pick something other
  224231 [mguterl gmai] In this particular case I do not have a large quantity of data, though
  224367 [jeremy hineg] Glad to help.  Let us know how it turns out.

^ Re: Proc as Observer
224061 [transfire gm] Interesting... I'd like to see a simple example of this.
+ 224062 [marcel verni] def add_observer(observer, func=:update)
| 224063 [tim.pease gm] Good to know. Thanks for the tip.
+ 224074 [james graypr] I thought Tim's solution was far more elegant.  Notice how he
  224076 [ara.t.howard] not to mention tim's solution can be neatly extended to
  + 224077 [transfire gm] I think that's over zealous about avoidance of core extension. This is
  | 224079 [ara.t.howard] i'm sure not saying it's a bad idea, but i do avoid it when it's not needed
  | 225054 [transfire gm] Cool. I agree with your there.
  + 224078 [tim.pease gm] That's a fantastic idea. The only caveat is that the add_observer
  + 224083 [tim.pease gm] New and improved tip ...
    225062 [nobu ruby-la] Sorry to bother you, but it reminded me the proposal of
    225063 [transfire gm] Whoa! I had just written the equivalent code for NilClass a few days
    225098 [nobu ruby-la] Sorry, I'm not sure what you expect for NilClass.  Isn't this the
    225107 [transfire gm] My mistake. It is for Symbols that it doesn't work. I was mistakingly
    + 225108 [transfire gm] Hehe. You realize I've habitualized the mispronounciation of that silly
    + 225110 [nobu ruby-la] I guess that Symbol in current 1.9 could have singleton
      225115 [transfire gm] Oh, there was one more thing I got confused about last night (sorry, it
      225132 [nobu ruby-la] Indeed, you can just do remove_method.
      225148 [transfire gm] (*slaps forehead*) pfff. Of course. It's right there in front of me and

^ windows commands and error handling
224064 [rtilley vt.e] I am attempting to handle windows native command errors within a Ruby script on
224066 [wilsonb gmai] Use "system" if you want the exit code of the system command you are

^ RubyX11 - how to make it work?
224075 [hramrach cen] I tried RubyX11. As seen in some sort of example code I tried to

^ Charset detection
224080 [ktalanet yah] I'm coding a planet software in Ruby, like planet planet, but inserting
+ 224175 [david vallne] Look for the XML header? That one should list encoding.
| + 224188 [james graypr] Right, cause XML encoding headers *never* lie.  ;)
| + 225113 [richard.conr] Shouldn't you be looking at the HTTP header instead/also?
+ 224345 [ jupp gmx.de] The only way is to write an artificial intelligence that a) can

^ The Ruby Way review on Slashdot
224087 [TimHunter nc] Whoo-hoo! My review of Hal Fulton's _The_Ruby_Way,_Second_Edition_ is on
+ 224097 [hal9000 hype] Thanks much for writing this, Tim...
| 224098 [michael.gors] I ordered my copy from Amazon two days ago.  I can't wait to receive it, as
| 224099 [has.sox gmai] Hal,
| + 224100 [hal9000 hype] Through Safari, I think.
| | 224101 [has.sox gmai] Sorri I'm not sure what you mean by safari.  Do you have a link..
| | + 224102 [mike stok.ca] Mike Stok <mike@stok.ca>
| | + 224103 [hal9000 hype] Hal
| |   224108 [has.sox gmai] Thanx for the link.
| + 224191 [leslieviljoe] I got it on PDF but with much DRM.
+ 224168 [david vallne] Wow, precisely ZERO posts before the comments degenerated into unrelated
| 224185 [louis.j.scor] I Soviet Russia, slashdot trolls YOU!!
| 224192 [spoooq gmail] slashdot is a meta-troll. It's obvious when you think about it.
+ 224194 [ebonakDUH_ h] Perfection is achieved, not when there is nothing left to add,
  224198 [andy pragmat] My long-time favorite as well; that's why Dave and I put in "The
  + 224213 [gethemant gm] I have both editions for "Ruby Way" in my safari bookshelf.
  + 224383 [ebonak-a- t-] Another great Ruby book!

^ Ruby to C?
224094 [name.goes.he] Okay, I'm working an a robotics project and instead of using C could I
+ 224121 [nospam nosit] If you mean convert automatically, no, not really. Not unless what you write
| 224127 [ryand-ruby z] Not quite accurate. Depending on what you're doing ruby2c might work.
| 224134 [vihanpandey ] Mohammad, are you downloading the program to a hardware robot or are you
+ 225716 [eric.mahurin] I use his CVS version and can get 1-5X speedups.  It handles most ruby code

^ Using qtruby with qtdesigner query
224096 [nigel waspz.] I've recently started experimenting with qtruby and have decided to
224129 [richard.j.da] You need to use the Edit -> Slots menu in Qt3 Designer to bring up a
224244 [nigel waspz.] Works for me, thankyou.

^ Ruby Shipping Gem Setup
224104 [pj boomdesig] I'm new to the list, and found some posts on this topic, but never any

^ [ANN] Ruby-VPI 11.1.0
224109 [ snk gna.org] Ruby-VPI is a Ruby interface to Verilog VPI. It lets you create

^ (none)
224115 [daiello symp] please remove me.

^ [ANN] MasterView rails-optimized (x)html friendly template engine - Release 0.3.0
224116 [jeff.barczew] MasterView is a rails-optimized (x)html friendly template engine plugin that

^ Quicky.
224117 [shyguyfrenzy] Alright, can somebody point me to a guide that doesn't leave me all
+ 224119 [nospam nosit] There is a lot of free, terrific information available to help you learn
+ 224122 [vihanpandey ] Alright, can somebody point me to a guide that doesn't leave me all
| 224124 [shyguyfrenzy] Once again, I think you all kindly for your quick response to my "quick"
| + 224149 [shortcutter ] I do not know whether you can - actually I never bothered to try it out.
| + 224151 [hgs dmu.ac.u] You have just defined a method called self.  This will confuse
| + 224164 [david vallne] You're skipping past concepts, trying to get working code without
|   224197 [rossrt rosco] Much like the growing trend of programmers trying to (t/pr)each English.
+ 224156 [richard.conr] It explains the complete basics. Assumes little on the part of the

^ Can not download plugins for jEdit (help!!)
224118 [billjosephso] any plugins. I go to Plugin Manager, and select Download
+ 224130 [a99.googlegr] I think, a better forum for jEdit related questions is
+ 224174 [stephen.dunc] I've had this happen.  Try to go to your settings (global settings, I

^ [ANN] hoe 1.1.3 Released
224120 [ryand-ruby z] hoe version 1.1.3 has been released!

^ [ANN] ZenTest 3.4.2 Released
224126 [ryand-ruby z] ZenTest version 3.4.2 has been released! Between this and today's Hoe

^ Another quicky, sorry.
224131 [shyguyfrenzy] Ok, I'm doing the examples from
+ 224132 [vihanpandey ] i've tried most of the examples and to the best of my knowledge, all of them
| 224137 [shyguyfrenzy] I'm using irb to get a feel for it yah, I'm probably going to have start
| + 224141 [vihanpandey ] I'm using irb to get a feel for it yah, I'm probably going to have start
| | 224142 [peter rubyra] Heh, 10:15 AM here (Europe)
| | 224143 [vihanpandey ] 3:06 PM Here (Asia)
| + 224159 [spoooq gmail] If you find you are always doing chmod +x on files with
+ 224135 [peter rubyra] I guess the problem could be here: (in Person.initialize)
| 224139 [shyguyfrenzy] Also, there's a typo on the page that I was completely missing.
+ 224138 [peter rubyra] Ah, OK, i scrolled down and there is the correct definition of Address

^ Autoload problem in 1.8.5
224152 [han.holl gma] I encountered a problem in 1.8.5, or at least in ruby-1.8.5-4.fc6 from
224176 [david vallne] Could this be related to the recurrent FXRuby load bug? If so, it's
224184 [han.holl gma] It has nothing to do with FXRuby.
224186 [lyle.johnson] What David was trying to say (I think) is that a change was introduced
224193 [han.holl gma] @@ -7017,12 +7145,11 @@

^ [ANN] TTF/Ruby, first release!
224155 [mblondel gma] I am pleased to announce the first release (version 0.1) of TTF/Ruby,
224595 [halostatue g] to convince your employers to relicense this under Ruby's licence,

^ thousand ways to rome
224157 [damngoodcoff] i am new to ruby and i am wondering how many more ways (and what ways)
+ 224161 [spoooq gmail] "hi, you, guys".split(",").map! { |x| x.strip }
+ 224162 [bruno exceli] "hi, you, guys".split(',').map { |word| word.strip }
| + 224165 [has.sox gmai] Split recieves a regexp as an argument.  So you can be as tricky as you like
| | 224169 [damngoodcoff] good timing to you first two guys;)
| | 224171 [spoooq gmail] use map! instead
| | 224173 [robert.dober] nope,
| | + 224179 [has.sox gmai] Robert, I don't really understand what you mean.  My understanding is that
| | | 224196 [robert.dober] "he, nice,  guys".split(",") ===> tmp1 <-- ["he", "  nice", "  guys" ]
| | + 224183 [spoooq gmail] you are absolutely correct, my mind is rotting from weeks of sitting
| + 224170 [spoooq gmail] Your version has no side-effect on the array, so it's not exactly the
+ 224229 [kero chello.] words_array = separated_words.split(/, /)
| 224243 [shortcutter ] And yet another one
+ 224235 [dblack wobbl] separated_words.scan(/[^\s,]+/)
+ 224301 [john.carter ] My favourite cheat is....
+ 224344 [cparticle gm] Chris,
  224384 [damngoodcoff] i forgot to mention that the comma seperated list comes from a text_area

^ select_list WATIR codes..
224166 [csamigroup g] I have something funny going on with my WATIR. code.
224167 [csamigroup g] <select name=leftsegments multiple size=8>
+ 224172 [csamigroup g] I did some addtional testing, and i think the problem has something to
| 224224 [christopher.] ...
+ 224203 [djmj12 gmail] I suspect the trailing newline character; "\n", is what's eating your
+ 224204 [djmj12 gmail] I suspect the trailing newline character; "\n", is what's eating your

^ Re:
224178 [david vallne] For all those that have problems understanding how subscribing and

^ Array question
224180 [peter rubyra] def f(*args)
+ 224181 [has.sox gmai] Splat the array first with the * (splat) operator.
+ 224182 [farrel.lifso] f(*a)

^ Re: Modifying Time with DPrecision to work with Runt
224187 [Mlipper doit] None that I can think of.
224267 [wrighty gmai] Good to hear!

^ [OT] Constructive Criticism (was Re: Quicky.)
224190 [james graypr] I find the abusive tone of this message equally unhelpful.  There no

^ Kudos to all Ruby creators/enhancers/users
224199 [donn cmscms.] I can't stop myself from using 15 minutes of my work time to express my
+ 224205 [leslieviljoe] Look at ArrayList. I think C# is the best of the RAD GUI languages,
| 224206 [leslieviljoe] Just saw Qt4 with Ruby bindings... maybe the wait is over!
| + 224223 [felipecpg gm] You can play with some of the array manipulation features you mentioned
| | 224270 [david vallne] LINQ is an abomination, and a marketing scam to make Transact SQL coders
| + 224266 [david vallne] No win32 maintainers. WOE.
+ 224265 [david vallne] Ruby Array !=3D C# array. Ruby Array =3D C# ArrayList. (Sort of.)

^ [SUMMARY] Bytecode Compiler (#100)
224201 [james graypr] I'm very glad this quiz came along, because I honestly had no idea what

^ Best way to parse email recipient lists?
224208 [shanti brafo] Hey all,
+ 224280 [ruby disinno] Shanti,
+ 224286 [ara.t.howard] require 'tmail'

^ Ruby on Rails - Multiple Controllers in a page?
224209 [griffin.kev ] I am building a site, and I wish to populate the navigation dynamically
+ 224210 [glenn.gillen] a) Have the controllers load the data from the relevant sections into
+ 224214 [gustav rails] Hey
  224219 [griffin.kev ] Thanks guys,
  224288 [gilesb gmail] Don't use components!
  224507 [david vallne] ing-in-rails
  224597 [carl.lerche ] Yeah, use components.... if 15 seconds per request is acceptable.

^ too greedy of a regexp
224211 [bitdoger2 ya] i have a regexp: /(^BillHead(.*))(^Bill_End(.*))/m that's too greedy for
224217 [jan.svitok g] /(^BillHead(.*?))(^Bill_End(.*?))\n/m
224232 [shortcutter ] I would also remove the last .* because that likely eats up the rest of
224242 [bitdoger2 ya] => ["", "BillHead", "\nfoo\nbar\n", "BillEnd"]

^ Ruby and threads: a VTK example
224215 [saveez hotma] There is a ruby wrapper available for vtk which works, more or less,
224218 [rossrt rosco] I don't have any of this stuff installed, so I'm guessing, but couldn't
224221 [saveez hotma] ?> winthr = Thread.new { iren.Start() }
224230 [rossrt rosco] Well, it looks like something in the library is blocking the calling
224234 [saveez hotma] Ross,
+ 224237 [rosco roscop] True.
+ 224341 [nagai ai.kyu] What is your OS ?
  224366 [saveez hotma] The OS is WinXP, I have also tried IRB with eclipse as an external tool
  224505 [nagai ai.kyu] I'm sorry, but I have no idea. If I had, I didn't make irbtkw.rbw.;-)

^ Mac OS X SSL Certificates Path
224220 [james graypr] Does anyone know the directory or file I could feed to OpenSSL via
225538 [verno mailin] There is /usr/share/curl/curl-ca-bundle.crt but nothing similar in
225540 [james graypr] Yeah, Mac OS X stores its certificates in the Keychain I learned.  No

^ use new net/smtp in ruby 1.8.5 (SMTPS support)
224227 [mmalaidini g] I'd like to use the new net/smtp library in ruby 1.8.5 because it

^ Re: First Posting
224233 [shortcutter ] Kind regards