367285-372975
367058-367426 subjects 367456-369187
^ [ANN] Win32::Screenshot 0.0.6
367285 [jarmo.p gmai] I'm happy to announce that new version of Win32::Screenshot got just
^ regexp help - substring of a backreference
367286 [me bryankenn] I'm putting together a web forum and want to parse web addresses that
+ 367288 [eregontp gma] $ ri gsub!
| 367289 [eregontp gma] also use %r{regex} for you Regexp, as it contains '/'.
| 367300 [me bryankenn] Thanks, works a charm :)
+ 367290 [dblack rubyp] text = "a bunch of miscellaneous words"
^ Term meaning "Class or Module"
367287 [transfire gm] Anyone have a term, for an attribute name, meaning "Class or Module".
+ 367292 [jacob.d.mitc] People sometimes use "klass". As for module, I haven't ever found a need
+ 367294 [chris feedme] I've seen the deliberate mispelling #klass used before.
+ 367305 [jgabrielygal] class_or_module ?
+ 367306 [vikkous gmai] #class is a perfectly fine name for a method. So is #module. Ruby is,
| 367309 [fxn hashref.] That's correct but it would override Object#class though, probably not
+ 367312 [wagner.andre] I would tend to call it a module, since a class is_a module, and I'm
367314 [eregontp gma] Agreed.
^ Search on text
367291 [unc88 mail.r] I have a text
367293 [josh.cheek g] Are you saying the page you are parsing returns code (like a pastebin or a
367295 [unc88 mail.r] This java script code, which includes links to those pictures that I
367297 [unc88 mail.r] I need only draw from this piece of code references
^ Looking for good Ruby OpenSSL TLS docs
367299 [astounding g] I've got a custom TCP protocol that currently runs plaintext/cleartext
+ 367320 [yermej gmail] Ruby's openssl is a very basic wrapper around the OpenSSL library and
| 367321 [astounding g] Thanks for the tip, Jeremy! I was going to go source-code digging
+ 367367 [b.candler po] exactly that. Shouldn't be too hard to extract it.
^ trouble with mysqldump
367301 [junkone1 gma] when i try
367302 [jonathan jmn] You'll need to wrap the program name in quotes to use it with arguments like
^ Where + how to download Shoes
367304 [my77elephant] I'am trying to create an education database software,which can create
367324 [jeanjulien.f] Try http://shoes.heroku.com/
^ question about sub-class of array
367308 [warren_e_fer] I don't understand why thsi isn't working. I wanted to introduce a subclass=
367310 [dblack rubyp] It's because of the map operation, which returns an Array.
367311 [warren_e_fer] You're right, and I'm enjoying your book. Just to be clear, this solved
367313 [astounding g] class Bitvector < Array
367316 [warren_e_fer] No, there isn't, my bad. I added the initialize method because I thought
367317 [dblack rubyp] No; it's because you weren't doing what you think you were doing :-)
367319 [warren_e_fer] Give me a dope slap.
^ [ANN] rake-compiler 0.7.1 Released
367315 [luislavena g] rake-compiler version 0.7.1 has been released!
^ [ANN] Call for Participation for 2010 Workshop on Scheme and Functional Programming
367322 [feeley iro.u] [The early registration deadline is only 2 days from now. Please
^ [ANN] Inochi 5.0.0
367323 [sunaku gmail] Inochi
^ [ANN] Detest 3.1.1
367325 [sunaku gmail] Detest
^ Loops
367327 [winshocker g] Here's: I'm writing a program which will ask the user to input a word or
367328 [d_rems yahoo] longest = ''
+ 367330 [winshocker g] Thank U very much! for the fast response
| 367334 [gf.bozzetti ] Change p "Longest is #(longest)" with
+ 367331 [jeanjulien.f] You need accolades and not parenthesis here.
367332 [winshocker g] Thx again it works like a charm
^ calendar hash
367329 [tschellhorn ] Posted this in the rails group, but didn't get an answer yet.
^ ruby update from 1.8.6 to 1.8.7
367333 [laguna53 yma] I have instantrails installed, updated rails to 2.3.8, but can't get
367350 [oscartheduck] charset=us-ascii
367427 [laguna53 yma] Thank you James.
367599 [laguna53 yma] I have resolved the issue.
^ New in classes
367335 [amiref ymail] In the attached code what is the meaning of colored part of code? what
+ 367345 [matt tidbits] You said "please instantiate the Test class". irb said "Okay, I did
| 367348 [amiref ymail] you means that in second time that I make an object I named a memory
| 367349 [a.bovanenko ] No, you store memory location in link variable.
| 367351 [a.bovanenko ] When you create a instance of object you need to store link to it.
+ 367347 [a.bovanenko ] You have a class. Next, Test.new - it's a instantiation, you create the real
^ Nokogiri help
367336 [sentinel1879] I am trying to access some particular children in a document. I find
+ 367338 [hassan.schro] doc.css('p.nextprev/a').each do |a|
+ 367354 [mike.dalessi] For advanced usage like capturing attribute values in a Nokogiri search, you
367355 [sentinel1879] thanks a lot to both answers.
367586 [aaron tender] ,=20
^ Hel;p with Tip Calculator
367337 [human.dictio] puts "What is the total?"
367339 [letteras mai] Use
367340 [hassan.schro] More universally
367453 [human.dictio] tax.rb:6:in `<main>': undefined method `gsub' for 0:Fixnum
367455 [hassan.schro] Yes, it works on *strings* -- that was the problem you posed. If you
367495 [jasonjoo.god] or just
367497 [hassan.schro] Depending on what your actual numeric use case is :-)
367498 [jasonjoo.god] aha, i forgot positive number and dot. then the regular expression should
367535 [glennj ncf.c] The empty string matches that pattern (all your quantifiers allow zero
^ Attributes in class
367341 [amiref ymail] Does "attribute" in ruby is same as "private member" in c++ ? if no
+ 367342 [a.bovanenko ] Attributes are as accessor methods for private field. You
+ 367375 [sathish.sale] i thing you are talking about rails model
+ 367382 [b.candler po] class Foo
^ Is it possible to access memory as a block ?
367343 [pinit inters] I have a situation to load large amount of data multi-million of data to
367344 [joelvanderwe] What kind of data is it?
^ [ANN] configurability 1.0.1
367346 [ged FaerieMU] Version 1.0.1 of configurability has been released.
^ Need help passing variable to Net::HTTP
367353 [samatoms gma] I would like to pass it a variable instead.
+ 367358 [tilde autist] url="google.com/index.html"
| 367363 [samatoms gma] Thanks :D It is working now.
+ 367361 [jgabrielygal] You don't need to do this, since you are assigning a new value to the
| 367364 [samatoms gma] Thanks for the tip Jesus. I used to program in C so I have some bad
| 367365 [eldestdamphy] Might I suggest reading the first few chapters of the original Pickaxe
+ 367366 [b.candler po] url = ['google.com', '/index.html']
+ 367373 [sathish.sale] it will be easy (to unterstand) and fast also
^ Expressive Languages for the JVM (JRuby/Mirah)
367356 [josh.cheek g] Thought you guys might enjoy "Expressive Languages for the JVM", a Google
^ dynamic require
367359 [raj_plays ya] Is there a syntax of 'require' that can dynamically pick up all source
+ 367360 [tony.arcieri] There's my require_all gem, which will not only do this, but
+ 367362 [jgabrielygal] Dir["#{libdir}/*/*.rb"].each do |x|
^ telugu movies songs,telugu movie reviews,telugu movie songs,telugu songs,telugu movie news,telugu film news,telugu music,telugu movie stills,telugu websites,telugu songs download,telugu news,telugu mp3,telugu mp3 songs,telugu new songs
367369 [rockpreethi2] Telugu Movies Info.Com=A0=A0 A Complete Telugu Movie Portal. Latest Telugu
^ telugu movies songs,telugu movie reviews,telugu movie songs,telugu songs,telugu movie news,telugu film news,telugu music,telugu movie stills,telugu websites,telugu songs download,telugu news,telugu mp3,telugu mp3 songs,telugu new songs
367370 [rockpreethi2] Telugu Movies Info.Com=A0=A0 A Complete Telugu Movie Portal. Latest Telugu
^ telugu movies songs,telugu movie reviews,telugu movie songs,telugu songs,telugu movie news,telugu film news,telugu music,telugu movie stills,telugu websites,telugu songs download,telugu news,telugu mp3,telugu mp3 songs,telugu new songs
367371 [rockpreethi2] Telugu Movies Info.Com=A0=A0 A Complete Telugu Movie Portal. Latest Telugu
^ Is there any human talkable ruby library?
367372 [sathish.sale] Is there any human talk able(like Eliza ) ruby library?
367374 [peterhickman] Google broken or something?
367376 [sathish.sale] yes, i know about eliza
367377 [peterhickman] You mean other than a complete version of Eliza written in ruby?
367378 [sathish.sale] i have a rails project which should talk to humans.
+ 367380 [dennis corte] n ruby.
| 367381 [dennis corte] Talk to humans? =A0Everytime I think I want to write such a program, I
+ 367383 [peterhickman] You are still confusing me. You said Ruby, you are now saying Rails
| 367384 [default spir] man... free use of offensive language like this have no place on this side
+ 367385 [b.candler po] If you have a stateless Eliza program - one whose answers don't depend
+ 367386 [peterhickman] You could set up a chat server (using the link given earlier or
+ 367425 [sathish.sale] that is exactly what i want .
^ unsubscribe
367379 [flopezg333 g] ...
^ place string into paste buffer?
367387 [ralphs dos32] How can I copy a string to Windows paste buffer.
+ 367389 [javaalley gm] If your using wxruby. I am not sure if the win32 integration has a method.
+ 367390 [gthiesfeld g] You might also look at win32-clipboard
| 367395 [ralphs dos32] Gordon,
+ 367418 [rogerpack200] you could pipe it into the "nircmd.exe" program, as well...
^ error messages from bash aren't captured by ruby interpreter
367392 [brgsousa gma] How can I write a ruby script in order to capture error messagens from
367393 [b.candler po] out = `rm /var/mail/teste2 2>&1`
367396 [brgsousa gma] Thanks!
^ windows stty IRB question
367394 [RKeller reli] I am on windows XP and when I run IRB ruby version 1.8.7-p249 I get a STTY =
367417 [rogerpack200] Which stty.exe is it calling? It's probably calling into a wrong one,
367452 [rlkeller yah] It is calling the wks version....., is there a way to edit what irb is
367461 [rogerpack200] I think it calls out to "stty.exe" and "if it's there, uses it, if not
367463 [RKeller reli] That was the answer. Windows in this case works if you set the TERM to not=
^ modules
367397 [faivrem gmai] I don't understand how to use modules.
+ 367398 [wagner.andre] Modules in ruby have a lot of similarities to classes (in fact, Class
| 367400 [Rob AgileCon] Or, if you want to use a module to hold methods to be mixed in to
| + 367401 [faivrem gmai] Thanks Rob !
| + 367411 [markus fisch] Interesting example. Is there another way to "access" or "make use" of
| + 367421 [jasonjoo.god] or just
| + 367422 [Rob AgileCon] => "hello"
| + 367448 [b.candler po] Try "module_function".
+ 367460 [matt tidbits] m.
367488 [markus fisch] I'm currently sucking in everything I can find on ruby to iron out my
^ Accessing programs through the terminal with ruby
367399 [trevor nugen] Specifically browsers. I'm trying to get a bunch of different browsers
+ 367402 [joseph.savar] In OS X : open /Applications/Tools/browsers/Firefox.app
| 367405 [joelvanderwe] gnome-open <url>
| 367406 [trevor nugen] Tried all of these. None of them really seemed to work. Came across this
| 367410 [trevor nugen] Ok so I started working on this a little bit and I basically have this
+ 367404 [richard.conr] You could try the launchy gem, its specifically for launching the default
^ Overriding ENV[]
367403 [jos catnook.] $ cat x
367408 [jgabrielygal] irb(main):001:0> a =3D [1,2,3]
367416 [jos catnook.] This works, thanks Jesù¸. I tried
^ SSL Client Certificate error on Mac OS X 10.6.4
367407 [katrash hotm] Client Certificate error on Mac OS X 10.6.4
^ Error: Bignum too big to convert into `long'
367409 [MR-Mencel wi] I've got a bit of code that I borrowed from here http://www.ruby-forum.com/topic/77821. I use it to convert MS timestamps into a ruby Time object.
+ 367423 [Rob AgileCon] Ah, note the x86_64 part? That's a 64-bit system so Fixnum holds up to
+ 367447 [b.candler po] irb(main):003:0> (9223372036854775807 - 116_444_736_000_000_000) /
367450 [b.candler po] irb(main):001:0> 9223372036854775807.to_s(16)
367451 [MR-Mencel wi] Ah...
+ 367458 [MR-Mencel wi] Nope....that doesn't work either.
| + 367477 [Rob AgileCon] 32 bits of counting seconds since 1970 only gets you as far as 2038.
| + 367496 [botpena gmai] you may let ruby do the work for you :)
| | 367517 [MR-Mencel wi] Solaris 10 SPARC is 64bit. It may be the ruby version I have installed was compiled for 32bit? It's an older version of 1.8.7 off of sunfreeware.com. I noticed that sunfreeware has a newer 1.9.1 version available there now so I think I'll upgrade ruby to 1.9.1 and see what happens.
| | 367518 [b.candler po] Remember that ruby 1.9 is a significantly different language to ruby
| + 367504 [b.candler po] You can get 64-bit Solaris SPARC can't you?
+ 367503 [b.candler po] irb(main):001:0> Time.at(0x7fffffff)
^ Crunching Text Not Working in a Loop
367412 [lists f-p-i.] Greetings, folks!
367428 [jgabrielygal] sn=92t
+ 367568 [lists f-p-i.] Bless you, Jesús; you saved the day again!
| 367570 [lists f-p-i.] ¡ÈI learned more than...¡É
+ 367604 [jgabrielygal] Notice the brainfart !
^ haml view can't find helper function
367413 [rainyglade c] \views\surveys\index.html.haml.
367414 [rainyglade c] There was a report function called by chart_options that was in the
^ Clipboard.set_data
367419 [ralphs dos32] To all those who might run into this ...
^ basic chat client using eventmachine (I AM A BIG NOOB)
367424 [angel21ccs h] did the server and works fine but now I wanna do a client, the problem
367479 [rogerpack200] If it works it's good :)
^ [ANN] Inochi 5.0.1
367429 [sunaku gmail] Inochi
^ [ANN] Detest 3.1.2
367430 [sunaku gmail] Detest
^ hash
367431 [makarovx gma] how to repeat key's?
+ 367432 [jasonjoo.god] the keys for a hash are uniq.
| 367433 [makarovx gma] axample in java
| 367435 [peterhickman] The Ruby hash is not a Java HashMap
| + 367439 [jasonjoo.god] another way is to make a patch to Hash object, put ur own rules in it and u
| + 367440 [pig_in_shoes] Why do that?
| | 367441 [jasonjoo.god] actually u just need a method to put value in and return the overwrite
| + 367457 [a.bovanenko ] Java hash map several pairs with the same keys=20
+ 367434 [letteras mai] do you need a multivalue hash?
| 367437 [makarovx gma] Yes
| 367446 [b.candler po] (1)
+ 367436 [letteras mai] you can find an example solution in "The Ruby way." by Hal Fulton.
^ Determining whether the running ruby is outdated?
367438 [lasso lassow] I'm writing a small utility that shows information on the currently
+ 367478 [rogerpack200] et al.
| 367507 [lasso lassow] Thanks guys! I was hoping there was a simpler method than parsing
| + 367511 [rogerpack200] Yeah that's the general way people have done it in the past. You could
| + 367516 [danzoid61 gm] I attached my TEXT FILE to my previous post Lars.
| 367531 [lasso lassow] ases.txt
| 367533 [danzoid61 gm] I will update it for my own use (as a reference to keep track
| 367537 [danzoid61 gm] Lars, I found where the information is in each package.
| 367539 [luislavena g] No, all versions of MRI (Matz Ruby Implementation) still stores
| 367793 [lasso lassow] Thanks everybody for all of your suggestions. I finally decided that
+ 367491 [danzoid61 gm] I just went thru ALL the 1.8.x i386-mswin32 releases compiling a list,
| + 367492 [danzoid61 gm] # RUBY_ENGINE was added sometime in the 1.9.x branch
| + 367512 [rogerpack200] There's also a backports gem, if that helps at all.
+ 367538 [florian.assm] I did in IRB
^ Problem with db:create
367442 [bianca.steph] rake aborted!
367443 [bianca.steph] Solved.
^ building ruby on windows 7
367444 [manohar.akul] I'm trying to build ruby 1.9.2 rc2 on windows 7. When I run
+ 367472 [macrolet dev] Were you using http://rubyforge.org/frs/?group_id=3D167 ?
| 367501 [manohar.akul] No, I used the source present here.
+ 367515 [luislavena g] If compilers are not your ground of expertise, I would suggest you
+ 372751 [daniel boven] I'm also using Win7 to compile Ruby Trunk. Together with VC++ (CL
| 372753 [phasis gmail] cl -nologo -MD rtname.c user32.lib -link > nul
| 372970 [daniel boven] Thank you so much for your fast reply!
| 372971 [phasis gmail] Without > nul
+ 372975 [daniel boven] due to the reason that something was really wrong with my environment I
^ [ANN] Money 3.1.0.pre2
367445 [shane.emmons] Money 3.1.0.pre2
^ London Ruby contractor needed
367449 [rcatley fuel] I need a ruby contractor for a high profile site in London. Initially 2
^ NEWBIE: Ruby & XML
367454 [imran.nazir ] I am working with some XML logs coming from a network simulator.
367459 [brabuhr gmai] I make no claim about what might be best :) but, nokogiri seems to be
threads.html
top