362336-364873

362128-403690 subjects 362499-371727

[ANN] kramdown 0.7.0 released
362336 [t_leitner@gm] ## About kramdown

ease of porting (translating) ruby to C (vs. python)?
362341 [jtprince@gm ] In a very small bioinformatics group I know of, they are deciding
+ 362347 [usenet-nospa] That's a bunch of bullshit.
| 362443 [mrzombie@th ] From my understanding, both Python and Ruby are able to use native
+ 362349 [josh.cheek@g] C to begin with so that you don't get side tracked using some nice
+ 362350 [rogerpack200] Rubinius is pretty fast these days..
| 362355 [cameron.mcbr] and if you're familiar with C, inline or C extensions are really easy
+ 362356 [tony.arcieri] There's lots of good reasons to use Python for scientific computing, such as
| + 362357 [williamkmani] What is the nature of the project? If it is solely intended for research
| + 362358 [cameron.mcbr] I do not agree, but this is becoming the typical rant and somewhat
|   362361 [tony.arcieri] What's a Ruby equivalent of SciPy?
|   362365 [cameron.mcbr] I took this offline since I feel it's off-topic to the OP.
+ 362683 [cbciv@ya oo ] First, I agree with Peter Seebach that this is nonsense.
| + 362702 [vikkous@gm i] While one should not get overwrought about performance ahead of time,
| | 362703 [colinb2r@go ] Seconded!
| | 362704 [jameskilton@] Good design will always beat the pants off of hasty premature optimization,
| + 363306 [jtprince@gm ] Thanks to all for their thoughtful responses!  I'll pass it along.
+ 362709 [tony.arcieri] on translating to C for this thread.

bond 0.2.0 - Improving Irb's Autocompletion
362342 [gabriel.horn] I just released version 0.2.0 of bond, a gem which improves irb's
362359 [botpena@gm i] autocompletion-for-methods-in-irb.html
362389 [joelvanderwe] That happens in irb anyway (without bond).

Can't use RDF/Raptor on Windows
362344 [yuridenommus] I have compiled Raptor on Windows with cygwin, now I don't know where to
362352 [rogerpack200] Unfortunately you can't mix and match cygwin libraries with your windows
362354 [yuridenommus] I'm trying to use RDF.rb on a Rails project, and almost everything is

[ANN] Money 3.0.0
362345 [shane.emmons] Money 3.0.0 Released

Is Ruby ready to embrace new Linux face and UI realities?
362353 [gooigpi@gm i] I may be utterly out of line expecting sympathy for my concerns about
+ 362368 [transfire@gm] I do not know about GNOME 3, but I have always been under the
| 362397 [shevegen@li ] Ruby Gnome support is quite ok.
+ 362474 [rogerpack200] I think if you want GUI for Ruby that's stable, etc., it might be a good
  362625 [gooigpi@gm i] Thank you, for your suggestions.  Roger, yours might be particularly

Modify Class Instance Inside Another Class (scope problem?)
362360 [thephist@ho ] First, I've not used a forum before, but I want to be more involved.
362371 [josh.cheek@g] You have an instance method called cards which returns an initialized set of
362379 [thephist@ho ] So basically, my method was working as intended, but I was looking for

[QUIZ] Interactive Mode BASIC Interpreter (#232)
362369 [yahivin@gm i] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=

[ANN] "Using JRuby" book in beta now!
362372 [headius@he d] I'm incredibly excited to announce that the new JRuby book, "Using

Strings iteration
362375 [viorelvladu@] I have some names like aaxxbbyy where xx is '01'..'10' and yy is also
+ 362376 [jeanjulien.f] Perhaps this would do what you are looking for ?
+ 362377 [robert.dober] Without knowing what aa and bb look like I can only guess.
+ 362380 [shortcutter@] I am not sure I understand exactly what you are trying to do.  Does this
  + 362385 [Rob@Ag le on] aa01bb01
  + 362390 [viorelvladu@] ractices.com/
    + 362394 [shevegen@li ] r.zip(r){|xx,yy| puts "aa#{xx}bb#{yy}"}
    + 362398 [shortcutter@] Where's the difference?
      362406 [viorelvladu@] this
      + 362409 [rick.denatal] gh
      | 362410 [colinb2r@go ] so
      + 362411 [shortcutter@] Yes, now I see it, too.  Sorry for my stupidity.  :-)  You want all
        + 362412 [eregontp@gm ] You could also use this one liner in ruby-1.9.2(r > 27352), if both
        + 362413 [viorelvladu@] Thank you, Robert, that is exactly what I need. You are the best!

Tk Images - Transparency
362378 [e.j.jurman@g] I'm making a game with Ruby and Tk, but the transparency in the .gif
362387 [jonathan@jm ] -Jonathan Nielsen
362388 [jonathan@jm ] Actually looks like I'm a bit wrong about that (that's for window
362407 [e.j.jurman@g] Thanks, but I don't think ruby has native support for PNGs and after

Is 'require "rubygems" necessory?
362381 [liumengjiang] I create a sample app in padrino. orm is sequel and db is sqlite3 as
362382 [fela.kde@gm ] It is if you are using ruby 1.8.x. Since ruby 1.9 the gem directories are part
362383 [liumengjiang] You are right. All the gems include sequel and padrino is lastest except
362384 [walton@vy er] No, you just have to require rubygems before using them.
362386 [limux@12 .c ] ...

Review needed - Table Class, based on 2d (nested) Arrays
362391 [dreamcat4@gm] Have been working on this new class, after seeing no other satisfactory

rdoc-data vs rdoc_osx_dictionary
362392 [matt@ti bi s] I'm still having trouble with rdoc. When I try to run rdoc-data, I get a

[ANN] posix_mq 0.5.1 - fix notify(&block)
362393 [normalperson] POSIX message queues allow local processes to exchange data in the form

ruby gem not found although it is installed
362395 [eimantas@va ] I found some similar problems here on SO, but none seem to match my case
362399 [ryand-ruby@z] On May 9, 2010, at 1:38 AM, Eimantas Vaiciunas <eimantas@vaiciunas.info> =
362400 [eimantas@va ] Since I'm running modrails on apache, I'm seeing simple 500 screen with

how to remove duplicates from hash
362401 [lakshmi27.u@] i have the values in hash is like
362402 [transfire@gm] Tricky, b/c order becomes important here, which traditionally is not
362403 [lakshmi27.u@] Thankq so much Thomas Sawyer
362404 [lakshmi27.u@] but how to do this manually.
362405 [lakshmi27.u@] ok in mycode something going wrong due to that result not get properly .

GTK::ScrolledWindow
362408 [oskarszrajer] I have GTK::ScrolledWindow with GTK::TreeView with a lot of elements. My

Files
362414 [ideabolt@gm ] New to Ruby, with little previous coding experience. Anyway, trying out
362417 [chandrasekar] r+ will open the file and give you read-write access iff the file is
362418 [chandrasekar] * iff the file exists.
362426 [ideabolt@gm ] Thanks. Question #2.
362427 [commel@gm il] the only way I could think of right now would be to read all lines and
362428 [chandrasekar] Or you could read it into an array, mess with it and write it back,
362430 [th@tp .r b. ] how about
+ 362431 [ideabolt@gm ] Thanks guys.
+ 362432 [robert.dober] File.open ... do | f |

wxruby2 - Error Message
362415 [iroupa@gm il] I don't understand what's going wrong when I try to use the wxruby2...
+ 362424 [rikiji@pl yk] did you install it as a gem? try to require rubygems in the first line then
+ 362436 [sutniuq@gm .] Try
+ 362454 [javaalley@gm] Make sure you installed wxruby for 1.9 instead of 1.8 "run gem install
  362491 [iroupa@gm il] Allan

In Ruby, how does coerce() actually work?
362416 [blueskybreez] It is said that when we have a class Point and knows how to perform
362444 [shortcutter@] There is no type checking and conversion.  Normally you would also

wcswidth, ruby 1.9, and string encodings
362419 [wmorgan-ruby] I need some advice about how to use wcswidth on Ruby 1.9 strings.
362421 [akr@fs j. rg] str = rb_str_encode(str, rb_enc_from_encoding(rb_locale_encoding()), 0, Qnil);
362446 [wmorgan-ruby] Very nice. It works when I use your git version. But the latest gem
363021 [wmorgan-ruby] If anyone else is interested in writing i18n-capable console

Failed open the sqlite3 db use sequel under padrino!
362420 [liumengjiang] I use Padrino to develope a sample blog followed the tutorial in the

[ANN] sqlite3-ruby 1.3.0.beta.1 Released
362422 [luislavena@g] sqlite3-ruby version 1.3.0.beta.1 has been released!

multiline gets ?
362423 [unbewusst.se] sml = ""
362435 [lparravi@gm ] Are you sure? How did you check that?
362437 [shortcutter@] Also, there are much easier ways to read the complete input than to use #ge=

Any future for curses applications/toolkits like rbcurse ?
362425 [sentinel.200] Have apps moved over to the web (or GUI) totally ? Will there be any
+ 362434 [transfire@gm] Yes, I think this is true. There isn't much room for curses based
| 362450 [sentinel.200] Could you clarify that, i did not understand about "console apps that
| 362453 [transfire@gm] Yes.
| 362459 [sentinel.200] Thanks for your replies.
| 362462 [hramrach@ce ] Thanks, curses interface is nice and certainly useful.
+ 362441 [botpena@gm i] imho, the reason we do not see much curses apps is because the curses
| 362448 [sentinel.200] interface and/or the installation itself is terrible.
| 362458 [botpena@gm i] i'm sure ncurses installed fine since ffi-curses works.
| 362460 [sentinel.200] Oh, thanks for that !!! I have had a lot of issues generating gems,
| 362463 [sentinel.200] Strange. I cant push a gem even after yanking.
| + 362466 [botpena@gm i] i just ran gem update and all samples work like a charm ;)
| | + 362468 [botpena@gm i] of the samples, the viewtodo.rb fails.
| | | 362503 [sentinel.200] botp.
| | | 362504 [botpena@gm i] #<NoMethodError: undefined method `keys' for #<Array:0x86104f4>>
| | | 362505 [sentinel.200] viewtodo is not working since i'd changed the yml structure from hash to
| | + 362480 [sentinel.200] Drat !!! Is that because of the log file being generated ?
| + 362467 [botpena@gm i] btw, could you also register ncurses-1.2.4 in rubygems?
| + 362470 [josh.cheek@g] I think the problem is that 1.8.7 is installed in
|   362502 [sentinel.200] for the moment, pls do
+ 362449 [tony.arcieri] I use irssi almost every day.  I wish there were a Ruby equivalent.

how to implement 20 - point and point - 20 using coerce()?
362429 [blueskybreez] In Ruby, the operation of
362433 [colinb2r@go ] My apologies for the brevity and lack of explanation (I'm about to try
362438 [rick.denatal] While this explains the usage of the coerce method well, I'm not sure

Issue with regular expressions and locales
362439 [emili@ep rr ] I've experienced a courious issue with regular expressions: my locale is
+ 362447 [b.candler@po] (1) What exact version(s) of Ruby are you running? (Show
+ 362473 [rogerpack200] Same version of Ruby?

Ruby gems in lib - spare tire principle
362440 [fregas@gm il] I'm working on a console ruby application (not rails!) I will be
+ 362442 [botpena@gm i] if your app is simple,  you can  place  it together w all the gems in
+ 362469 [jhs408@gm il] Ruby Gem "OCRA" lets you "compile" your ruby code into an EXE file
+ 362482 [transfire@gm] Something like Capistrano might be easier.
+ 362486 [joelvanderwe] You may also want to check out rip and gem bundler.
+ 362531 [phrogz@ma .c] 1) Create "lib/gems" folder.

IO select. Reconnect procedure.
362445 [walle.sthlm@] Hey, I have a minor problem with my IRC bot. It disconnects every while
+ 362457 [ofusiono@gm ] Maybe this will help.
+ 362472 [rogerpack200] Maybe you have to detect when it sends you an empty string? (that
  364826 [walle.sthlm@] It still happens, but very rarely... The bot kicks in again if I write
  364836 [rogerpack200] Yeah I think it's a generic "problem" of TCP. If the other side has
  364873 [walle.sthlm@] Oh, okey.

Regexp match error on windows and unicode error on linux
362451 [ofusiono@gm ] I have a small problem with Regexp to match accented latin letters. I
362471 [rogerpack200] seems to fit the bill (if you're using different versions of ruby on the
362477 [ofusiono@gm ] I think there is no solution but reporting a bug

Unit Test of method calling system() - how?
362452 [mail@ma sh .] print_usage_full_and_exit
+ 362464 [vikkous@gm i] I would extract a helper from both methods which does the bulk of the
| 362506 [mail@ma sh .] @Caleb
| 362549 [vikkous@gm i] "Testing the interface" means different things to different people, I
| 362591 [mail@ma sh .] OK, I am getting closer, but are still a bit confused. I feel like
| 362592 [b.candler@po] if full
| 362597 [mail@ma sh .] Aaah, nice trick. I did notice that this always was raising, but I was
| 362598 [b.candler@po] print_usage_and_exit(true) if print_usage_full?
| 362599 [mail@ma sh .] if print_usage_full?
| 362600 [b.candler@po] he error is pretty clear when you break it down.
| 362602 [mail@ma sh .] Aha! Great!
| 362604 [b.candler@po] There's no need to assert anything - the mock setup is adding assertions
+ 362465 [robert.dober] The basic idea is to intercept system, a very crude first approach is
+ 362507 [b.candler@po] class Foo
  362514 [mail@ma sh .] @Brian
  362515 [b.candler@po] I used to use flexmock, but switched to mocha. The error messages were

VISIT A URL PROGRAMATICALLY
362455 [alumsimporta] i have the code below;
+ 362461 [mrzombie@th ] I don't mean to be rude, but you should read the corresponding API
+ 363037 [dthole@gm il] I'm not sure specifically what you're trying to do.  If you're trying to
  363093 [johnnyk3@gm ] require 'rexml/document'

Re: creating static variables
362456 [ofusiono@gm ] Last time I had this sort of problem I create a @@var in the class that

puts bug?
362478 [rogerpack200] # coding: UTF-8
+ 362485 [aaron@te de ] =E2=95=A8=E2=95=9D=E2=95=A8=E2=96=91=E2=95=A4=C3=A2=E2=95=A4=C3=BC
+ 362512 [b.candler@po] Yes.
  362539 [rogerpack200] Thanks much :)
  362595 [shortcutter@] Cheers

Question about rdoc (2.5.8)
362483 [byrnejb@ha t] The answer is probably 'No! Why on earth would you want to do that?'
362490 [drbrain@se m] You'll probably need to write a custom parser.  The rdoc-rake gem has =
362550 [byrnejb@ha t] .  .  .
362560 [ryand-ruby@z] the gist is fine. anything you can convey will work.
+ 362886 [byrnejb@ha t] you need an actual file to download?
+ 362887 [byrnejb@ha t] you need an actual file to download?

[QUIZ][SUMMARY] Solar System (#227)
362484 [yahivin@gm i] There were two solutions for this quiz, a mathematical computation

How to Plot Data?
362492 [iroupa@gm il] I would like to plot some data from .txt or .csv files. Is it possible?
+ 362500 [jeanjulien.f] sudo gem install ctioga
| 362535 [iroupa@gm il] Jean-Julien Fleck
| 362594 [iroupa@gm il] Jean-Julien Fleck
| 362596 [jeanjulien.f] Well, I have no idea if it will work on windows out of the box. I know
| 362606 [rogerpack200] If you want to run in windows native, I've had success with installing
+ 362540 [rogerpack200] Might be of use.  Also the gnuplot gem should work.
+ 362551 [vikkous@gm i] The quickest and easiest way to make a one-off plot of some csv data

Re: creating static variables, thanks
362494 [moreno.omar8] As for the static variables, thanks for the advice.
362511 [b.candler@po] You can use this pattern to save and load a Ruby object: it has the

Need a gem or code to retrieve file Summary information with Ruby /  Windows
362495 [jhs408@gm il] Need a gem or code for Windows to retrieve file Summary information
362770 [jhs408@gm il] #  Ruby code to read Windows file summary information

Problem renaming files
362496 [ismyhc@gm il] Im new to ruby and am having a hard time with something Im working on.
362501 [jgabrielygal] There are two problems here. The first one is that
362533 [ismyhc@gm il] Awesome! Yeap that worked! I see where I was making the mistakes last
362534 [jgabrielygal] Yes, if you do
362536 [shortcutter@] You do not even need to #dup because ARGV *is* an Array already.

Ways to compare the performance of different Ruby implementations
362497 [cartercheng@] Greetings,
362590 [headius@he d] The best benchmark is your own application. Synthetic benchmarks are
362609 [cartercheng@] Thanks for the reply. I guess perhaps my original post might not have
+ 362619 [rogerpack200] I believe Antonio is about to do another blog post on the various
| 362644 [cartercheng@] Thanks Roger. I will check it out.
+ 362645 [edward.middl] I suggest you look at, and understand the qualitative differences
  362655 [cartercheng@] I have been looking at the source code. Are there other ways of
  362713 [headius@he d] Ask the implementers? :)

In Ruby, can the coerce() method know what operator it is th
362498 [blueskybreez] In Ruby, it seems that a lot of coerce() help can be done by
+ 362510 [b.candler@po] In ruby 1.8 and 1.9, != is syntactic sugar for "not ==". So put the
+ 362546 [vikkous@gm i] Coerce does not know the operator is being called on behalf of.
  362611 [colinb2r@go ] ...[for coerce]
  + 362616 [rick.denatal] other first
  | 362643 [colinb2r@go ] 1. the OP might want to take a look at the Vector class in matrix.rb.
  | 362668 [eregontp@gm ] I first thought this would be for performance reason, to coerce once
  | 362674 [colinb2r@go ] You can drop the "almost"!
  | 362676 [eregontp@gm ] But, as many Ruby developers, github is the code's home ;)
  | 362682 [colinb2r@go ] I wish I'd known about this
  | 362691 [eregontp@gm ] You're very welcome to fork and use my code :)
  + 362624 [vikkous@gm i] Ah, thanks I knew there was an appropriate vocab word I was forgetting
threads.html
top