282890-286910 subjects 283351-336654

[ANN] turn 0.3.0
283130 [tim.pease@gm] the output of Test::Unit into something a little more verbose than
283141 [rsanheim@gm ] Do you have a change log?
283227 [tim.pease@gm] Ummm .... YES!!
283267 [rsanheim@gm ] We have some hacks to put in links to the failing lines of code (using
283375 [tim.pease@gm] Send the patch to my gmail account, and I'll incorporate it into the

[ANN] Gosu 0.7.8, also: Ludum Dare timed gamedev compo this weekend!
283131 [julianraschk] first, I want to announce the newest version of Gosu, the free 2D game

Getting started with Emacs and Ruby (and RoR)?
283144 [lists@so rc ] Guys,
283146 [grabber@gm i] ...
283153 [lists@so rc ] Great, thanks! I have it installed and am looking through.
283189 [lists@so rc ] And if it is possible, where might one go to learn how?

Re: How much would variable declarations in Ruby make you wi
283155 [rogerpack200] I agree with number 1.  I like duck typing and respect it, but I have
283164 [eeklund@gm i] Try out http://people.freebsd.org/~eivind/ruby/types/

Inject SQL Statement in Rails
283156 [lonexenophob] I have a simple SQL statement which I would like to inject in my web
283157 [yudi.xue@gm ] ...
283278 [lonexenophob] okay so i put this statement in the model right?
283283 [yudi.xue@gm ] ...
283287 [lonexenophob] thanks everyone for all the help!

using if block_given? method.
283159 [martin@an le] I have created a simple parser. i have used @tag method to store tag
+ 283167 [shortcutter@] I am not really sure what you are asking here but in case you are
+ 283201 [phrogz@ma .c] I suggest you stop using ruby-forum until it is fixed, and instead use
  283296 [martin@an le] sorry Gavin, please if you are not intrested in topic please dont reply.
  283319 [shortcutter@] Did you actually *read* and *understand* Gavin's message?  His was an
  283320 [martin@an le] sorry robert and gavin........
  283324 [shortcutter@] Then you should show some code you have issues with.  With the bits

1053 Error about win32-service
283160 [anthruby@gm ] I have installed the gem of win32-service-0.6.0-x86-mswin32-60.gem.But
+ 283179 [jan.svitok@g] I suggest you google for "1053 ERROR win32-service ruby".
+ 283182 [jan.svitok@g] Just make TWO scripts: one for registering the service and the other
| 283183 [jan.svitok@g] see mongrel_service how they do it.
| 283202 [anthruby@gm ] Thanks for Jano Svitok.I have rescued the problem with your help.
+ 283214 [djberg96@gm ] One thing you'll want to be aware of is that there was an interface
  283301 [anthruby@gm ] Thanks for your help and your win32-service gem :)

Re: Gerbil 0.0.0 - a document generator
283161 [renard@nc rr] Please do not use version 0.0.0 since gem searches for a gem version
283502 [ snk@gn .o g] I tried creating a gem with version '0.0.1' and the same problem[1]

statically generated call graph
283165 [martindemell] Is there anything out there that will statically analyse a ruby
283168 [shortcutter@] I don't think there are any.  The issue is, how do you want to do that?
283172 [martindemell] Oh - good point :) Didn't think it through enough - I was thinking

Re: Gosu 0.7.8, also: Ludum Dare timed gamedev compo this weekend!
283169 [energinen@gm] On 12 joulu, 02:24, Julian Raschke <julianrasc...@googlemail.com>
+ 283175 [energinen@gm] No problem, I forgot to run the command in admin mode, always forget
+ 283176 [julianraschk] On OS X, you need to call it as 'sudo gem install gosu'.

How to start a service with the win32-service gem
283177 [anthruby@gm ] I have install the win32-service 0.6.0 and made some test code just like

library for backup restore mysql
283184 [junkone1@gm ] Is there any libraries to backup and restore mysql databses.
283210 [boss@ai bl d] $ mysqldump -u username -ppassword -x --databases db1 db2 db3 > dump.sql
283251 [junkone1@gm ] how do i restore the databse to a new name. for eg
283409 [boss@ai bl d] mysql -u username -ppassword -D dbanother < dump.sql

Fwd: Please Forward: Ruby Quiz Submission
283187 [james@gr yp ] ...

Re: [ANN] Utility Belt: nifty gem mostly for IRB
283188 [ news@ja .f ] Wow.. what a great looking gem.  Nice work!!
283192 [hutch@re ur ] Very nice!
283215 [hutch@re ur ] There's a little nonsense going on in the fix I provided... I posted
283231 [hutch@re ur ] I'll join up.

CSS Filtration
283193 [transfire@gm] Is there anything already out there for sanitizing/optimizing CSS?
283729 [aaron@te de ] Aaron Patterson

Modern Ruby RPMS for Old Distros?
283195 [kyleaschmitt] Does anyone know of a site that has rpms of a reasonable (at least
+ 283217 [bulliver@ba ] -d
| 283222 [kyleaschmitt] Not really :) I found that before.
+ 283423 [konrad@ty er] charset="utf-8"
  283427 [kyleaschmitt] I've been thinking of that, but that'll mean doing that for three
  283437 [konrad@ty er] charset="utf-8"

283198 [phrogz@ma .c] Ruby-Forum.com is acting as a one-way gateway to the ruby-talk mailing
283204 [rmagick@gm i] The ruby-forum owner doesn't read all the posts, but he does list his
283205 [phrogz@ma .c] Then I'll give him another shot. I've sent (polite) email to that
283226 [lionel-subsc] I'm tempted to do so for quite some time.

Windows Ruby application with Visual C++ 2008
283206 [jari.william] I'm trying to create a standalone Windows program to run some Ruby

Ruby 1-click installer for updates
283220 [alex.decaria] I am currently using Ruby 1.8.21 on a Windows machine.  I want to
283236 [luislavena@g] On Dec 12, 1:26 pm, Alex DeCaria <alex.deca...@millersville.edu>

Logging irb stdin & stdout to file but still remain showing
283228 [sgwong513@ho] I search the ruby-talk and find a few discussion on redirecting the

multibyte characters in curses
283230 [hramrach@ce ] ...

Ruby/Gnome app hangs when http'ing from inside a thread (linux only)
283233 [andre.nho@gm] I'm writing a Ruby/Gnome application that auto-updates itself from the
+ 283376 [andre.nho@gm] Anyone?
+ 283425 [thgfrj@gm il] I think your problem may be caused by a blocking name lookup, and
  + 283518 [andre.nho@gm] Thank you SO MUCH! That's exactly what I needed to know. I'll try to
  + 283521 [andre.nho@gm] I made a mistake: the same problem happens both in Linux and Windows.
    283599 [thgfrj@gm il] I have no idea why it doesn't work under Windows - looking at the

Re: Utility Belt: nifty gem mostly for IRB
283237 [timocratic@g] Awesome work Giles.  I kept meaning to get around to some of those
+ 283238 [timocratic@g] My crappy fcgi'ed Typo install is slow sometimes.  If it dies let me
+ 283310 [timocratic@g] This is what happens when you twiddle the comments_enabled? bit every
  283408 [timocratic@g] ...

Re: Logging irb stdin & stdout to file but still remain show
283239 [sgwong513@ho] No answer? well, I just found an ugly hack on myself....

.capitalize! not being recognized in home made sort method
283240 [nigamax@gm i] def sort some_array
283242 [sepp2k@go gl] You're defining Object#sort(some_array), but you're calling Enumerable#sort().

Connecting to Outlook 'Saved Items' folder using win32ole
283243 [alex.decaria] Can anyone tell me how to connect to the 'Saved Items' folder in Outlook

Re: Connecting to Outlook 'Saved Items' folder using win32ol
283244 [wpdavenport@] I'm curious.  Are you connecting to Outlook through an Exchange Server
283245 [alex.decaria] Bill,
283250 [wpdavenport@] Alex,
283256 [alex.decaria] Bill,
283258 [wpdavenport@] I misread. Is 'Saved Items' a folder you created.  Look at the structure
283260 [alex.decaria] Bill,
283265 [wpdavenport@] I created a 'Saved Items' and was able to access it using WebDAV.
283266 [wpdavenport@] Posted via http://www.ruby-forum.com/.
283269 [alex.decaria] Bill,
283362 [alex.decaria] Bill,

composition/inheritance/subclassing standard lib classes
283246 [bobterwillin] An old ruby quiz (#24) deals with a game of poker, and there's a
283297 [Joerg.Mittag] The way I see it, there's two reasons: a more metaphysical design
283338 [paul.nulty@g] ries
288607 [Joerg.Mittag] Sorry for the late reply.

Turning symbols into class names
283249 [rubygeekgirl] Long time no see!
+ 283252 [gthiesfeld@g] I believe you're looking for Module#const_get.
| 283255 [ljjarvis@gm ] Damnit, you were too quick :-P
+ 283253 [sepp2k@go gl] need ruby to "recognize" the symbols as something they're not.
| 283259 [rubygeekgirl] On Dec 12, 4:26 pm, Sebastian Hungerecker <sep...@googlemail.com>
| 283262 [jcribbs@ne p] ...
| 283263 [jcribbs@ne p] ...
+ 283254 [ljjarvis@gm ] const_get?

Inheritance and meta-classes
283270 [adam.q.salte] OK. I'm trying to work out where a method is defined in Rails.
283303 [adam.q.salte] Any suggestions?
283327 [shortcutter@] Where exactly do you see cycles?  I am not aware of any.
283350 [rick.denatal] irb(main):001:0> def meta
283782 [shortcutter@] Ah, now I see!  Should've put on my glasses. ;-)
283896 [rick.denatal] Yes I copied the classname' notation from the diagrams Dave Thomas
283899 [shortcutter@] But note that any class is also an instance.
283903 [rick.denatal] But that doesn't seem to be relevant to the 'slightly restated assertion that.

system(), syscall(), and Shells
283271 [fedzor@gm il] I have a rather quick question.
+ 283273 [transfire@gm] How does one join/observe the unix ruby team?
| + 283275 [fedzor@gm il] subscribe to the mailing list!
| + 283431 [devi.webmast] I recommend joining the mailing list at
+ 283359 [kbloom@gm il] Syscall in ruby works exactly like it does in C.

[ADV] New Ruby Pragmatic Studio
283272 [mike@cl rk a] Just a quick reminder before the end of the year...

comma separated lists syntax error
283274 [ry@ti yc ou ] I'm very disappointed that I cannot format my hashes like this
+ 283279 [phrogz@ma .c] For the same obvious reasons as you desire that, does it sufficiently
| 283285 [ry@ti yc ou ] No, the benefit is that the separators are at the beginning of the
| + 283300 [nobu@ru y- a] But you don't have a comma before the first element.
| + 283398 [phrogz@ma .c] Ah; I thought the 'obvious' benefit you were referring to was that you
|   283591 [MonkeeSage@g] In haskell (mainly because of "layout") and to a lesser extent, ocaml,
+ 283284 [andrei@an re] Just out of curiosity, what are those obvious benefits? It's the first
  283288 [TimHunter@nc] I do this with C code. The idea is that you should make a continuation

warning: variable $KCODE is no longer effective
283276 [drbrain@se m] This warning comes from accessing $KCODE.  What should be used instead?

Christmas Shopping Made Easier
283277 [sisterofchar] This site really was a surprise. Also check out http://www.christmasplayland.com

Re: Abstract -- what's the Ruby way?
283281 [ryan.baldwin] Here is one way. Its not very satisfying, as you have no way to access
+ 283289 [timocratic@g] Is it possible to pull of maybe using some clever passing back and
+ 283295 [marick@vi ib] I missed the beginning, so hope this response is to the point. See the
+ 283307 [charles.nutt] You could privatize new and define a new new for inheriting classes that
  283783 [shortcutter@] This downside can be easily avoided: simply change #inherited to make

[ANN] bj-0.0.2
283282 [ara.t.howard] (note: i just pushed 0.0.2 up and the gem mirrors typically take ~ 30
283383 [ara.t.howard] well, backgrounddrb was originally written by ezra on top of my slave
+ 283394 [gethemant@gm] I am maintaining backgruondrb in these younger days. And things have
| + 283397 [gerardo.sant] A comparison between them would be enlightening. I knew about
| + 283422 [ara.t.howard] hey hemant - didn't know you'd taken that over.  so it seems everyone
+ 283395 [alex@bl ck e] My word.  I think you've just saved me a ton of work.  Yet again.
  283429 [ara.t.howard] 1) i'd forget about having specialized nodes unless you have a very
  283433 [alex@bl ck e] I should have been a little clearer - I'm not thinking of one node per
  283439 [ara.t.howard] maybe just use rq then?
  283454 [alex@bl ck e] Maybe.  It's another option to check out :-)

Korundum and threads
283286 [matthieu.rio] ...
+ 283292 [fedzor@gm il] How certain are you that it's your OS thats stopping the thread, and
+ 283299 [john.carter@] Personally I wish
| 283312 [vjoel@pa h. ] #Thread.abort_on_exception=true
+ 283308 [alex@de et m] I don't use Korundum, but generally GUI toolkits don't work well out of

read in file
283291 [chrisd27@ho ] I've created a simple program which will read in a file.
+ 283293 [enjo20@gm il] File.open("path/your/file") do |sFile|
| 283294 [chrisd27@ho ] cheers for that, but how can i take that data and move it into a new
| 283313 [enjo20@gm il] if you dont want to modify the existing file, you dont need to open
| 283314 [ljjarvis@gm ] Or if you do want to read and modify it..
+ 283353 [sepp2k@go gl] That can be written as
  283356 [mike.s.mckin] ...
  283361 [sepp2k@go gl] That leaves test.txt open which is not good. Don't use File.open in chains=
  + 283401 [phrogz@ma .c] On Dec 13, 8:27 am, Sebastian Hungerecker <sep...@googlemail.com>
  | 283400 [phrogz@ma .c] Nevermind; my reading comprehension seems to be turned off this
  + 283407 [mike.s.mckin] ...

Re: Gerbil 0.0.0 - a document generator
283298 [ snk@gn .o g] That visual design (whitespace is key!) is actually the result of two
283305 [alexg@ku cr ] Any eta for the LaTeX format specification? This looks really cool and
283387 [ snk@gn .o g] My current priority is to iron out the bugs & nuances in the HTML

localhost issues
283302 [harpoon45@ho] => nil
283381 [harpoon45@ho] ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]
283390 [homebeautypi] Have you checked your config/database.yml ?? try to restart your console

Getting method parameters in specified order
283306 [chintanaw@gm] If I declare a function that expects 3 arguments,
+ 283341 [bermonruf@gm] ...
| 283366 [chintanaw@gm] Thanks Bernardo.
| 283487 [botp@de mo t] # Sent: Thursday, December 13, 2007 11:40 PM
| 283504 [chintanaw@gm] Thanks Botp and Phrogz, I'll look into it.
+ 283402 [phrogz@ma .c] There is not; as Bernardo said, Ruby only allows you to check the
+ 283524 [lloyd@2l ve ] Forgive the naive thoughts of a ruby ruby, but what if you accepted an
  + 283525 [lloyd@2l ve ] ruby nuby, I meant.  heh
  + 283634 [ezmobius@gm ] You can accomplish this with the Ruby2Ruby gem. Here is a pastie of

Simple method and block. foo.times
283316 [info@ja eo a] Why does the output stop at eight. Shouldn't the class of nine be
+ 283322 [stefano.croc] int.times {|i| block }     =3D> int
| 283475 [botp@de mo t] # If you want to include both 0 and 9, you can use upto instead=20
| 283481 [bermonruf@gm] ...
| 283488 [botp@de mo t] # class Integer
+ 283529 [lloyd@2l ve ] 1.upto(9) {|x| print x , " ", x.class, "\n" }

method accesible only from another class
283328 [mario@be wa ] I need that a method can be accesible only from other class but only
+ 283330 [stefano.croc] I don't think you can do exactly that. A method can only be public (everyone
+ 283331 [mario@be wa ] Maybe a solution can be if I write the classes inside a module and I can
  283334 [stefano.croc] No. There are private module methods, but they're another thing enterely. A
  283343 [mario@be wa ] I like very much the send option, and it works really well.
  283344 [mario@be wa ] About the solution with the module... could I use in this method a

Paid tuition?
283329 [dans-money@h] Iam relatively new to programming, and just began to learn Ruby and was
283333 [richard.conr] Derek, your best bet is to find a local Ruby users group, or even any

suprised by destructive map (not map!)
283332 [boris.sch.mi] Occasionally I run into bits of ruby that are surprising to me (although
+ 283339 [alex@bl ck e] It's not map that's destructive here, it's the #<< method.  Map iterates
| 283340 [bermonruf@gm] ...
| 283342 [alex@bl ck e] array.map{|a| a = a + [3] }
| + 283355 [bermonruf@gm] ...
| | 283410 [boris.sch.mi] Thanks for clarifying that. I'll compile a list of destructive methods
| | 283505 [shortcutter@] You should also remember that all parameters are passed by reference*.
| + 283520 [erikveen@gm ] array.map{|a| a + [3]}
+ 283509 [micathom@gm ] Well, Array#<< means: __append__ an element to an array and return

[ANN] Swat - A todo app for Gnome
283335 [gethemant@gm] Swat is a todo list manager for Gnome & Emacs.
283336 [gethemant@gm] It needs a "snippets" directory in your home directory,where all your

[SUMMARY] Word Loop (#149)
283345 [james@gr yp ] There were two kinds of solvers this week:  hardcore programmers who love a good

Modifying parent shell's attributes?
283347 [lists@so rc ] I asked this on the rails list, but received no traction. Since it's
283349 [halostatue@g] Check out the Process class; specifically getrlimit and setrlimit. It
+ 283374 [shevegen@li ] These are the little diamond things in ruby - bits of useful knowledge
| 283434 [lists@so rc ] Yep...thanks very much austin!
+ 285605 [lists@so rc ] Following up a bit late on this, but this doesn't solve my problem.
  285606 [gwtmp01@ma .] It looks like you are trying to increase the max stack size
  285609 [lists@so rc ] Process.setrlimit Process::RLIMIT_STACK, 18446744073709551615,
  285612 [gwtmp01@ma .] I'd avoid huge numbers like that--you may be causing other problems