401174-407831

400994-406991 subjects 401380-407191

how to define method with variables in arg list
401174 [jarodzz@gm i] Class Gui
401180 [lists@ru y- ] I think class_eval %Q{def method(#{args.join(",")}) ... end} is your
401215 [jarodzz@gm i] thanks, Brian.

Modelling tools for Ruby, IDE and BPMN support.
401186 [lists@ru y- ] I consider Ruby as a technology for my project. I am a Python developer,
+ 401187 [mikaa123@gm ] If you are already familiar with vim, you could just stick to it for Ruby.
+ 401188 [lists@ru y- ] well - I know that I can reconfigure vim to suport Ruby, but my tam
+ 401212 [saji@u- iz .] Maybe ..

"alert" is not working.
401189 [lists@ru y- ] morning!
401196 [lists@ru y- ] That's because plain ruby doesn't have an "alert" method. For normal
401202 [lists@ru y- ] Ok...Thanks

Extending Array instances
401190 [charleshixsn] I'm trying to figure out a good way to extend an Array, when the items

Extending Array instances
401191 [charleshixsn] I'm trying to figure out a good way to extend an Array, when the items
+ 401192 [wbrisett@at ] push?
| 401193 [matma.rex@gm] I'd just use a hash.
+ 401195 [lists@ru y- ] This happens automatically.
  + 401199 [charleshixsn] Hashes are slow compared to direct indexing.  Push might be a good
  | + 401219 [shortcutter@] Did you measure it?  If not, please do.  It's easy to arrive at wrong
  | | 401238 [charleshixsn] I'm talking about data size.  The number of instances would probably be
  | | + 401239 [ryand-ruby@z] On Nov 13, 2012, at 21:30 , Charles Hixson <charleshixsn@earthlink.net> =
  | | | 401240 [charleshixsn] That's not what the code I saw showed...admittedly my C skill are very
  | | + 401242 [shortcutter@] That is still speculation.
  | | + 401244 [lists@ru y- ] Then you lose the bet. I already posted the code.
  | + 401220 [lists@ru y- ] Says who?
  |   + 401256 [charleshixsn] Thank you.
  |   | 401257 [ryand-ruby@z] On Nov 14, 2012, at 11:06 , Charles Hixson <charleshixsn@earthlink.net> =
  |   + 401258 [charleshixsn] This is a commonly true statement for a wide variety of languages.  I am
  |     401259 [matthew@ke w] This is going to sound elitist and snobby, but I'm pretty sure that's the
  + 401210 [charleshixsn] a[10] = :baz

help with queue-tip
401194 [mustafa@al u] ...

Efficient way for comparing records between 2 large files (16 million records)
401200 [ruby.student] Team,
+ 401201 [keystonelemu] Generate an MD5 or stronger hash on the file. If anything changes, the hash
+ 401206 [ryand-ruby@z] You or someone else posted this exact problem just a few weeks ago. =
| 401253 [shortcutter@] IIRC I even posted a solution outline.
+ 401209 [rob@ag le on] ...
+ 401254 [atma@co va e] Not sure if you dealing with hashes or arrays but take a look at the '-' method for arrays, it's blazing fast for comparing even large arrays.
  401300 [ruby.student] Robert,
  401303 [sto.mar@we .] I assume he meant he posted a solution on this very list
  401306 [ruby.student] Aha, Got it now. The problem is that I never got or noticed the answer to y

Python or RUBY?
401203 [lists@ru y- ] Python or RUBY?
+ 401204 [   ar@le .m ] Well, you did ask on the ruby-talk mailing list‘Δ
| 401205 [gedece@gm il] It's a tricky question.
+ 401207 [charleshixsn] For anything really basic they're about the same.  So this is just about
+ 401208 [sophrinix@gm] see which one you like better. good luck.
+ 401214 [lists@ru y- ] There is a python book called "Hello World! Computer Programming for
+ 401216 [sto.mar@we .] It's really only a matter of taste. I like Ruby :)
+ 401217 [fluido@fl id] It is not such a good approach to ask which one is easier. If you
+ 401218 [flo@an er gr] Honestly, I could start to weight features, but this would be out of =
+ 401223 [lists@ru y- ] Ok...Thanks everybody. Ruby is easier than Python...
  + 401224 [contact@se o] Just some advice for when you're actually coding: the easier option is
  + 401231 [stu@ru yp og] That's a relative statement. C++ is easier than C and C is easier than

Calling Ruby from C (reverse SWIG)
401211 [graham@me he] My C program calls a third-party Windows DLL to provide access to some specialised hardware. I don't have source code for this DLL. We're losing access to the hardware soon but we want to be able to test our software via an emulator. I'd like to write the emulator in Ruby.
+ 401226 [Reid.Thompso] Embedding a Ruby Interpreter
| 401227 [saji@u- iz .] If I am not mistaken, the subtle window manager embeds ruby within its C
+ 401263 [graham@me he] Many thanks to Reid and Saji for replying. I have the embedded Ruby
  401357 [lists@ru y- ] That's great that you got it working. I am trying to accomplish the same
  401359 [graham@me he] It worked pretty much exactly by the book
  401360 [lists@ru y- ] Yeah, that is what I'm trying to do. So far no luck in Visual Studio. I

[ANN] hoe 3.3.0 Released
401213 [ryand-ruby@z] hoe version 3.3.0 has been released!

[ANN] R2CORBA 1.2.1 released.
401221 [mcorino@re e] Remedy IT is pleased to announce the release of version 1.2.1 of

help with queue-tip
401222 [mustafa@al u] ...

Ruby on IBM Z/VM?
401229 [ruby.student] Team,
401230 [tony.arcieri] JRuby? http://jruby.org
401234 [headius@he d] If there's a JVM, JRuby's an answer.

help me understand (method 1 : 0)
401235 [lists@ru y- ] I got this piece of code from "RSpec Book" page 85
401236 [kiswono@gm i] is the ternary if operator..
401237 [lists@ru y- ] Thanks I see it now!

2013 Fukuoka Ruby Award Competition -Entries to be judged by Matz
401241 [lists@ru y- ] Dear Ruby Enthusiasts,

Beginner with project in mind
401245 [lists@ru y- ] The project is basically a system to keep track of my workouts at the
+ 401247 [lists@ru y- ] is this supposed to be a web application? Or an offline tool?
| 401248 [lists@ru y- ] Thanks for the reply, It will be an offline tool, with the possibility
+ 401249 [lists@ru y- ] I'm developing a begginer project, like you will be. Take a look at this
+ 401250 [lists@ru y- ] It is actually possible to use an excel back-end, or a CSV to store the
+ 401252 [lists@ru y- ] Thanks for the help, I can get started now !

creating new users with LDAP
401255 [lists@ru y- ] Trying to create a new user in AD with Ruby: Net: Ldap. I am getting

Need of ruby and Scripting language
401264 [lists@ru y- ] I am a ruby beginner.I need to know what is the exact need of ruby,what
+ 401265 [   ar@le .m ] We don't have to use a scripting language, but if you're a Ruby beginner, it sounds like you might have chosen to anyway!
| 401267 [lists@ru y- ] I need to know what is the use of scripting language and why Ruby is
| 401268 [shortcutter@] Why do you "need" to know that?  Frankly, this sounds suspiciously
+ 401266 [fluido@fl id] In which sense? If you mean material needs, a PC plus an operating

best method for creating a new gem in 1.9.3 land
401270 [tamouse.list] I'm starting to work on a new gem, a command line application.
+ 401271 [richard.conr] The GLI gem is used for generating command suite CLI apps (like Git, RVM
+ 401273 [lists@ru y- ] bundle gem cli
  401288 [tamouse.list] Thanks, Richard and Vlad, I will check them both out!

following along with "Beginning Ruby."
401274 [lists@ru y- ] I'm having trouble following along with some of the examples in this
+ 401275 [chris.hulan@] try the second with '/' instead of '\' path separator
+ 401276 [lists@ru y- ] Thanks. I wish they could've included that in the book.
+ 401277 [lists@ru y- ] I'm not sure profile gem works in IRB. Have you tried running it from an
+ 401278 [lists@ru y- ] %   cumulative   self              self     total
| 401290 [lists@ru y- ] 1) Do you know what ARGV contains?
+ 401291 [lists@ru y- ] stopwords = %w{the a by on for are with just but and to the me I has
| 401325 [lists@ru y- ] Your code works for me when given an argument and a valid text
+ 401323 [lists@ru y- ] I tried to delete a directory that I created.
| 401326 [alexandermcm] ...
| 401341 [lists@ru y- ] what's the method?
+ 401343 [lists@ru y- ] nvrmnd. i figured it out. thanks again. :)
+ 401400 [lists@ru y- ] I'm havng trouble using mysql in my example.
+ 401425 [lists@ru y- ] Im just a beginer so what is everyone talking about?
  401429 [lists@ru y- ] I'm learning ruby by following along w/ a begnnner's guide to the

Question on exceptions
401279 [lists@ru y- ] prompt on screen when someone tries to make a negative withdrawal and
+ 401280 [lists@ru y- ] raise InsufficientFundsError.new(1234,50,100)
+ 401281 [lists@ru y- ] What is the reason of doing the .new(...)in
  + 401289 [lists@ru y- ] class MyException < Exception
  + 401295 [lists@ru y- ] If the exception doesn't take any arguments, you can just do
    401296 [tamouse.list] Is this a good way to use exceptions? Having an insufficent balance
    401299 [shortcutter@] Depends on how you implement it: if you have the option to query the
    + 401310 [lists@ru y- ] def withdraw( amount )
    + 401322 [tamouse.list] I know the right answer to every question is "It depends" :)
      + 401324 [fluido@fl id] I will try to describe in words the fuzzy logic I follow.
      | + 401328 [tamouse.list] One of the things I *really* like about Ruby is that false is *not*
      | + 401331 [shortcutter@] Well, there are other uses of exceptions than defining your own. :-)
      |   401332 [fluido@fl id] Thanks for your many words!
      |   401334 [shortcutter@] You're welcome!
      + 401329 [shortcutter@] Ah, I see you learned the most important lesson! ;-)
        401330 [tamouse.list] I'm quick like that. :)

Re: creating users with LDAP
401282 [lists@ru y- ] You are certainly not obligated to answer any postings but I was
+ 401283 [eliezer@ng e] Maybe because nobody have a clue?
+ 401305 [lists@ru y- ] If you are working in a Windows environment, you might have better luck
  401311 [lists@ru y- ] Thanks for both replies....
  401356 [eliezer@ng e] The ative LDAP code in ruby for the last year is the activeLDAP.

Re:
401287 [redlegdaddy@] #unsubscribe

why texts are jumbled using PDF-reader.
401297 [lists@ru y- ] I am using pdf-reader gem and trying to look for some content at some
401298 [lists@ru y- ] I can't even find that one :(
401313 [lists@ru y- ] OR
401552 [lists@ru y- ] any idea? why it happens? or any solution?

Alternatives to methods for large number of nested "ifs"
401301 [phil@pr co .] People,
+ 401302 [shortcutter@] I can believe *that*.
+ 401304 [botpena@gm i] try a chain, eg,
| 401320 [tamouse.list] That, right there, is idiomatic ruby.
+ 401309 [lists@ru y- ] def mymethod
| 401314 [hmaddocks@me] Don't use exceptions for flow control.
| 401316 [sto.mar@we .] But throw/catch has nothing to do with exceptions.
| + 401319 [   ar@le .m ] Indeed ‘½ throw/catch is *for* flow control.
| + 401321 [hmaddocks@me] Sorry, language context switch failure.
|   401327 [phil@pr co .] People,
|   401333 [shortcutter@] Ah, now we are cooking!  That looks like a proper use case for case.
+ 401312 [lists@ru y- ] Wouldn't a case statement work for this kind of thing?
  401315 [hmaddocks@me] case statements are more of an if..else replacement rather than nested ifs. If you can refactor the code to use case statements then that's a good start because from there you can replace the branches with calls to objects.

Accumulate the value of an array if this is repeated
401307 [lists@ru y- ] I have an arrangement with a series of numbers and a string. What I'm
401308 [sto.mar@we .] Please shorten your examples and include the code in the E-Mail.
401317 [caduceass@gm] Something like this? I'm making a hash from the second and running

[ANN] flog 3.1.0 Released
401318 [ryand-ruby@z] flog version 3.1.0 has been released!

[ANN] mysql 2.9.0 Released
401335 [luislavena@g] mysql version 2.9.0 has been released!

Advice for simple client/server application
401336 [atma@co va e] I need to write a client/server application and I'd like to some advice =
+ 401338 [hmaddocks@me] http is your friend
+ 401345 [fluido@fl id] You do not specify if the clients are also written in Ruby. When I
| + 401347 [atma@co va e] Thanks for code sample and the extensive answer Carlo!
| | 401362 [fluido@fl id] From what I can see, Connection is closed either at end of the script
| + 407816 [atma@co va e] 1) Send results to server
+ 402456 [lists@ru y- ] Carlo, I came from a
| 402457 [fluido@fl id] The amount of increased understanding is directly proportional to the
| 402473 [shortcutter@] Sorry, I have to intervene here: CORBA does not deserve such a bad
+ 402458 [lists@ru y- ] Okay, good explanation. Thank you Carlo for your time, very appreciated.
+ 407829 [lists@ru y- ] Depends, are you using the example given by Carlo? If not I will need
  407831 [atma@co va e] Thanks for the reply. Here you can see a gist of the server https://gist.github.com/atmosx/5686155

[ANN] RCAP 2.0.0
401337 [farrel.lifso] The Common Alerting Protocol is a lightweight standard to facilitate

[ANN] minitest 4.3.0 Released
401339 [ryand-ruby@z] minitest version 4.3.0 has been released!

Cannot install heroku gem
401340 [lists@ru y- ] I just started to study Ruby on Rails to use heroku.
+ 401342 [john@pi na a] It seems like you have some unrelated network issue between yourself and
| 401350 [john@pi na a] It looks like the rubygems mirror in Tokyo was down for some hours
+ 401353 [lists@ru y- ] Thank you !!

adding load_path
401344 [hujia06@gm i] In Ubuntu, I have to install a program into my home directory because I do
+ 401346 [atma@co va e] ...
+ 401358 [lists@ru y- ] Best way to do this is add them at execute time with $LOAD_PATH
  401363 [fluido@fl id] You can also include the libraries in the RUBYLIB shell variable. The
  401381 [lists@ru y- ] The original request mentioned they were using tcsh. For tcsh do
  401382 [hujia06@gm i] $LOAD_PATH.insert(0, "/my/path1")

Re: [RubyInstaller] Re: [ANN] mysql 2.9.0 Released
401348 [luislavena@g] Yes.

A basic question about Threads
401349 [lists@ru y- ] I'm reading about threads in the pickaxe book.
+ 401351 [stefano.croc] I'm not an expert using threads, but it seems that the program terminates
+ 401352 [lists@ru y- ] ha!
+ 401354 [jgabrielygal] As Stefano already answered, the main thread is finishing before the

[ANN] arcadia ide 0.12.0 release
401355 [lists@ru y- ] arcadia 0.12.0 has been released.

Objects prematurely garbage collected on Intel graphics.
401361 [lists@ru y- ] I had a problem with Intel integrated graphics. I abandoned it because

Metaprogramming
401364 [lists@ru y- ] I am doing one open source project and I hit the wall with this. Now I
+ 401365 [lists@ru y- ] Posted via http://www.ruby-forum.com/.
+ 401384 [lists@ru y- ] That makes no sense.  You are going to have to learn enough ruby to be
| 401385 [   ar@le .m ] 7stud, you are being needlessly belligerent. A moment's Googling would tell you that Aurimas is not a native English speaker, and you should adjust your attitude accordingly.
| 401403 [lists@ru y- ] Well, then why don't you rewrite the op's post so that English speakers
| 401407 [ryand-ruby@z] You are acting like a dick. Stop. If you can't contribute positively, stfu.
| 401412 [keystonelemu] Quit feeding the troll. Matz is nice, so we should be as well.
+ 401413 [lists@ru y- ] I have already figured out the way that I want to do. Here you can look
| 401509 [martindemell] The code looks fine to me - is there any particular piece you aren't happy with?
+ 401510 [lists@ru y- ] Oh, thank you really much!! It's my first gem :P
| 401511 [martindemell] One more suggestion - you really need a README explaining what Eagle
+ 401522 [lists@ru y- ] Yep, I know. I will write normal readme file today. I am creating other

Magical 57.6 minutes in Time
401366 [caduceass@gm] irb(main):80:0> RUBY_VERSION
401367 [alexg@ru ge ] If I understand your question (forgive me if not), have a think about
401368 [caduceass@gm] <facepalm>
401369 [alexg@ru ge ] Not sure where you get your 57.6mins from to be honest (a rounding
401374 [caduceass@gm] Yeah, I see what's going on. I'm dividing 745 by 24, which is giving

Blog post: Refining Ruby
401370 [headius@he d] I've been trying to sort out Ruby 2.0's refinements from an

Missing Something
401371 [lists@ru y- ] I am an amateur programmer, and I feel I am missing something. Whenever
+ 401372 [chris.hulan@] The code looks good, as a one-off quick-n-dirty get it done script
| 401375 [sto.mar@we .] What if you wanted to add functionality?
+ 401373 [lists@ru y- ] Thanks, Chris! I have spent time thinking about ALL of those things.
| 401376 [jgabrielygal] I think you should go step by step, little by little. Adding
| 401377 [lists@ru y- ] Jesus -
| + 401378 [sto.mar@we .] Growing and restructuring / refactoring is the normal way.
| | 401410 [lists@ru y- ] I am already there! It's amazing how quickly the parameters list grows.
| | 401420 [sto.mar@we .] Yes, it is, see
| + 401379 [jgabrielygal] Some interesting concepts about object orientation are among other
+ 401408 [lists@ru y- ] Thank you so much, Jesus! You given me more practical advice AND theory
threads.html
top