224415-225632
224238-226475 subjects 224625-244230
^ Java scripting language poll
224415 [pat.eyler gm] Since I'm a glutton for punishment, I thought I'd go
224490 [david vallne] The apparent popularity of Groovy disturbs me, for fear of overhyping
224547 [charles.nutt] I expected Groovy to do well; in the past it's been the most "official"
224572 [david vallne] or
^ Debian packages for qt4-qtruby
224417 [vincent.four] I've made debian packages for the qt4-qtruby bindings. They are
^ Linux Cairo, webcam displaying images
224418 [mdurham peop] G'day
224453 [kou cozmixng] In <45551ebe_5@news.peopletelecom.com.au>
224457 [kou cozmixng] In <20061111.125758.14759375.kou@cozmixng.org>
224473 [mdurham peop] Thanks for the info kou,
224478 [kou cozmixng] In <45557881_4@news.peopletelecom.com.au>
224480 [mdurham peop] Thanks a lot kou, you're a star.
^ questions about Class#remove_class implementation
224423 [fxn hashref.] def remove_class(*klasses)
^ Beginner question: testing for either condition?
224424 [taylorstrait] I want to check two conditions. If EITHER of them are true I want to
+ 224427 [nwitmer gmai] It's a little unclear, but it sounds like you're looking for an
| 224428 [taylorstrait] That will ALMOST work. I also want true OR true => true. Basically if
+ 224429 [nospam nosit] In English: IF A=TRUE OR B=TRUE THEN ACT
+ 224432 [hal9000 hype] I don't see what is wrong here. Are you sure your data are
^ Easy way to do a HTTPS POST?
224425 [greg.kujawa ] For a business banking app I needed to script out something that would
224431 [gabriele.mar] You can see examples on http://www.ruby-doc.org/stdlib/libdoc/net/
+ 224435 [gabriele.mar] Oops! As soon as I posted, I found an example about using cookies
+ 224438 [greg.kujawa ] Gotcha. I guess since most of the API docs just had HTTP examples I
+ 224709 [aaron_patter] Try Mechanize. It will handle redirects and cookies for you. It will
^ MS SQL direct access
224441 [jfabiani yol] Just wondering if Ruby can access MS SQL2000 direct - not using ODBC.
+ 224449 [david.mullet] Using the win32ole module (on Windows), you can access Microsoft SQL
+ 224470 [bauer.mail g] You can also use the MsSqlClient (crappy name, we haven't thought of
^ Singleton Methods
224444 [sur.max gmai] Could anyone explain what exactly we meant by a Singleton Method ?
+ 224450 [dblack wobbl] Yes. A singleton method is basically a method that belongs to one
| 224459 [sur.max gmai] Thanks David !!
+ 224484 [botp delmont] # Could anyone explain what exactly we meant by a Singleton Method ?
^ Logger::ShiftingError
224472 [unni.tallman] What can be the cause of this error?
224602 [halostatue g] A lack of code?
^ can i shorten up this function ?
224474 [nephish gmai] hey there, i have a function that checks to see if a string is in a
+ 224475 [bryanesmith ] def get_in_list(status)
| 224476 [nephish gmai] much better, thanks. the list is an example of a string in a database.
+ 224477 [vjoel path.b] def get_in_list(status)
+ 224479 [bauer.mail g] You may want to consider a little refactoring when you are hard-coding
+ 224482 [allergic-to-] class HardCoded
+ 224483 [botp delmont] # def get_in_list(status)
224511 [nephish gmai] not a c programmer, just a newbie
^ Can't compile with readline
224485 [jmetillon gm] I'm trying to compile Ruby 1.8.5 on Debian Sarge with readline. After
224487 [jmetillon gm] At last, thanks to this message I have been able to make the extension
224513 [juapdiaz gma] how do i install ruby in debian?
224514 [codeblogger ] 'apt-get install ruby' will work just fine.
224515 [juapdiaz gma] thank you!
^ Export AOL adress book
224488 [yuesefa gmai] I try to use WWW::Mechanize to get the data, but lots javascript are used in
^ ruby libcurl II
224489 [just-for-new] has anyone get
^ Re: Ruby-Lang.org in Korean, Polish and Spanish
224491 [ilpuccio.feb] I could take care for the italian version, if you want.
^ Re: [OT] Rails vs. Asp.Net politics
224492 [david vallne] No thread hijacking.
^ gcc: Internal error when gem is building native extensions
224496 [jmetillon gm] $ sudo gem update -y
224499 [jmetillon gm] ruby extconf.rb update -y
^ Babel aftermath (Re: [OT] the name of Matz)
224497 [ jupp gmx.de] For reference one should use kanji with furigana and only add latin
^ parsing html table cells
224502 [lrlebron gma] I am trying to parse an html page that has strings that looks like this
+ 224504 [david vallne] I'd use XPath, I'm not sure if that's doable with hpricot CSS selectors
| 224512 [lrlebron gma] Thanks for your help. I was able to get it with some hpricot code
+ 224589 [nospam nosit] #!/usr/bin/ruby -w
^ graph orientation in Excel
224506 [chen_li3 yah] I copy one script as follows to draw a graph. The result is a
224508 [david vallne] Read the Excel documentation? Win32Ole is just an interface to its COM
224599 [chen_li3 yah] Thanks and I get it.
^ Loading, CGI and some aother questions
224509 [gamblergluck] I'm learning Ruby right now, and I have couple of questions about it.
+ 224510 [david vallne] way to include an rb file with data structure so that it is assigned to s=
+ 224526 [james graypr] I really believe YAML was made for configuration files. It's my
224560 [gamblergluck] Well, configs are mine anyway, so I'm not afraid of injection from those files. But how do I "source" a file? Kernel#load and Kernel#require return boolean and do not seem to affect local scope. Could you please provide a code example?
+ 224562 [ara.t.howard] eval IO.read(config)
+ 224563 [david vallne] e files. But how do I "source" a file? Kernel#load and Kernel#require ret=
^ Ruby parsing in Ruby
224516 [iamwil gmail] I've been doing Ruby for a small while now, but I'm a newbie when it
+ 224517 [juapdiaz gma] are you create a game as ruby?
| + 224518 [juapdiaz gma] i said with ruby
| + 224566 [david vallne] Stop spamming arbitrary threads with unrelated chiming in. This isn't IRC=
| 224632 [jeff schwabc] What are you talking about? The only one who appears to have chimed
| 224653 [hal9000 hype] You're missing something. :) David was right.
| 224660 [jeff schwabc] Thanks. Sorry, David!
+ 224521 [rubytalk eac] gem install ParseTree
+ 224615 [interfecus g] Take a look at parsetree. It should be able to do this quite happily
224654 [iamwil gmail] Hrm, I remember stumbling over parsetree, and it seems like the classes
+ 224724 [dido.sevilla] Well, why not eval the string in that case then? Then the classes
+ 224847 [drbrain segm] $ ri ParseTree | grep string
^ best way to get epoch seconds from mysql datetime value
224522 [nephish gmai] Hey there all,
+ 224523 [gabriele.mar] $ irb
+ 224524 [ara.t.howard] require 'time'
| 224527 [nephish gmai] Hey great ! thanks, this works for me.
+ 224533 [al-rubylang ] If you have the possibility to use mysql why not to use the builtin
224535 [nephish gmai] i suppose i could use that, i am working with mysql 5 ( oh, the luxury )
224536 [al-rubylang ] Same there => UNIX_TIMESTAMP(date)
^ Pattern-matching for method arguments in Ruby
224528 [vshepelev im] I think, pattern-matching for function argument is a rather good idea.
^ eval question
224531 [peter rubyra] I am setting up a few variables based on user input with the following
+ 224542 [vjoel path.b] Use a hash?
| 224544 [peter rubyra] Hey Joel, that looks great! Thanks a lot (for solving the mystery of the
+ 224559 [matt tidbits] Pass a binding?
+ 224612 [robert.dober] Just two tiny improvements
^ McGovern Likes JRuby...
224532 [charles.nutt] I'm not sure how to feel about this one :)
+ 224537 [vjoel path.b] How does James McGovern think that running ruby on a JVM improves the
| + 224540 [collinsj sea] *groans*
| + 224545 [charles.nutt] Yeah, and exactly how does running on Java help that? Maybe we should
| | 224557 [david vallne] Running on Java would of course do bugger all for that. However, I am
| | + 224605 [halostatue g] That's good, because it would change Ruby from a beautiful language
| | + 224685 [dblack wobbl] I can't speak to the preaching and howling, neither being much in my
| + 224556 [david vallne] Right, I'm dropping my Java troll hat for a change.
| 224658 [charles.nutt] There's a lot more to deployment than Maven. Being able to zip up a
+ 224570 [znmeb cesmai] M. Edward (Ed) Borasky, FBG, AB, PTA, PGS, MS, MNLP, NST, ACMC(P)
224574 [david vallne] ml
+ 224583 [znmeb cesmai] Well, the original poster wanted jRuby to be the one true way. I was
| + 224592 [pbooth nocoi] I would love JRuby to be a solid Ruby implementation that can
| | 224604 [znmeb cesmai] I'm not sure why you'd want to use both "sar" and "/proc". Everything in
| + 224622 [ola.bini ki.] From your post I got the distinct impression that JRuby is no longer an
| | 224707 [znmeb cesmai] Ah ... OK. I'm glad to hear that jRuby is indeed a community/open source
| | 224711 [ola.bini ki.] Ola Bini (http://ola-bini.blogspot.com)
| | 224719 [znmeb cesmai] My browser (SeaMonkey) goes to the eWeek home page on that link. What's
| | 224720 [ola.bini ki.] That URL seems to have been closed down, for some reason. It was a post
| | 224729 [znmeb cesmai] Ah ... today's the day, eh? Well, I'm sure it will show up elsewhere.
| + 224655 [charles.nutt] Talk about trolling... :)
| 224718 [znmeb cesmai] Yeah ... it's become a tradition for me every Saturday to try to be
| 224731 [charles.nutt] I develop on OS X on Intel and in Linux on AMD64. There are JVMs for all
+ 224661 [charles.nutt] You seem to imply that folks will either use Ruby or Java, but not both.
+ 224705 [znmeb cesmai] Well ... actually there *aren't* a lot of good VMs out there. The JVM
+ 224717 [per pjacobss] A good example is actually what BEA are doing with Jython in their WLST
^ sprintf bug (?)
224538 [peter rubyra] I am wondering if I have just found a bug in (s)printf...
+ 224541 [vjoel path.b] I think ruby follows the C standard, which says zero padding only
+ 224722 [peter rubyra] irb(main):002:0> sprintf("%10s",'hello')
224725 [TimHunter nc] Possibly you meant "%010s" instead of "%10s"? In any case, I checked the
224733 [matz ruby-la] 0 The value should be zero padded. For d, i, o, u, x, X,
224766 [peter rubyra] Thank, Matz. This made it really clear at last...
^ Ruby GUI with IDE
224539 [kamipride102] I am currently looking for a good easy to use IDE that includes GUI
224543 [znmeb cesmai] This should be a FAQ. :) There are quite a few -- my favorite (on Linux)
224546 [kamipride102] I'm running Windows, any good ones for that?
224554 [david vallne] x)
+ 224555 [kamipride102] That's what I figured, I guess I'm going to have to stick to ugly
| 224750 [jlhurtado gm] There seems to be a few IDEs for Ruby GUIs in Windows or Linux, if
+ 224569 [znmeb cesmai] IIRC Caleb Tennis posted some encouraging words on this a couple of
+ 224573 [kamipride102] You lost me there with the combination of ActiveState tools.
| 224575 [david vallne] ActiveState Komodo supports targetting Ruby/Tk from its GUI builder, it
| 224576 [kamipride102] I wasn't aware it has a GUI builder. I have ActiveState Komodo 3.5
| 224582 [znmeb cesmai] Try the Komodo 4 beta.
| 224689 [alexandru gl] It's there on 3.5 as well, but you need the Professional version.
+ 224577 [caleb aei-te] The word on the street is that it works, with a little coercion. It
224578 [kamipride102] Windows users, what do you do to develop GUI's for Ruby?
+ 224580 [david vallne] Handcode / use Python.
| + 224581 [znmeb cesmai] Use commercial Microsoft tools, just like they teach you about in the
| | + 224588 [david vallne] You're evil. So very evil.
| | | + 224590 [znmeb cesmai] But a QTDesigner GUI is a lot prettier than the ones I've seen come out
| | | | 224593 [david vallne] Well, I never said they looked pretty. Just did the job, for given
| | | + 224610 [leslieviljoe] I think Visual Studio 2005 is great. Controls on forms are pixel
| | | 224628 [david vallne] Spacers put the user in control.
| | | 224636 [leslieviljoe] In what way? A spacer on one side seems to create exactly the same
| | | 224641 [david vallne] Unless I have my terminology wrong, a spacer can be dragged around to
| | + 224614 [robert.dober] It has been a pleasure reading your posts, RIP ;)
| | 224619 [leslieviljoe] ..I think I have seen more.
| + 224963 [richard.conr] I am curious, but is handcoding Ruby UIs in whatever (Tk by default)
| + 224967 [martindemell] martin
| + 225036 [david vallne] I honestly haven't really tried. Gtk and Tk sort of put me off, since
+ 224613 [smartgpx gma] foxGUIb (http://fox-tool.rubyforge.org/) is a possible option,
225070 [mvondung gma] Oh-ha! I didn't know about this one! And it works -- pretty much what I
225080 [leslieviljoe] I was also very pleased to see it, but it is a little buggy. Save
225087 [meinrad.rech] i am very pleased, that my project is helpful for you ;)
225088 [leslieviljoe] Oh if ONLY I'd known about that a few months ago!
^ print message if user does nothing for x seconds?
224548 [ben643 hotma] Only just started using ruby so this may be really simple to do, but
+ 224550 [hal9000 hype] This is tricky on Windows... what platform are you on?
| 224552 [ben643 hotma] Windows... D'oh!
+ 224558 [ara.t.howard] require 'timeout'
| + 224565 [gabriele.mar] Nice! May I suggest adding an optional validation block?
| + 224567 [ben643 hotma] Thanks for the reply. Unfortunately I am on windows.
| 224568 [hal9000 hype] Actually I think this should partially work on Windows.
+ 224561 [david vallne] Read the data in a thread, or use nonblocking io (currently crude at
224564 [ben643 hotma] Yeah, I'd never even think of doing it normally, it was just put in a
^ TkEntry validation?
224549 [ummaycoc gma] TkEntry's a bit easier. I thought some others might be interested
+ 224551 [ummaycoc gma] actually, update ~ line 154 from
| 224553 [ummaycoc gma] and..
+ 224591 [nagai ai.kyu] Why don't you use 'validatecommand' (or 'vcmd') option and on?
224743 [ummaycoc gma] When I originally went looking into validate, I found it hard to find
^ class reloading and constants
224571 [fxn hashref.] reloading.
224728 [fxn hashref.] I reply to myself :-). Looking at the source code in class.c that's
^ Controlling readline
224594 [cyberblue.yo] Is there anyway to control the maxium length of the IO.readline can read?
224608 [nospam nosit] Not really, not from the command line. You can throw away all the length you
224617 [cyberblue.yo] I'm writing an RPC program.I use readline to read the command.I'm
224621 [nospam nosit] As written, "readline" won't read more than it can safely store, which is
224649 [cyberblue.yo] This may be the best way.
^ Can Ruby do this magic... elegantly
224596 [james2mccart] I would like to be able to be able to include instance methods of a
+ 224598 [halostatue g] class Bas
+ 224601 [ara.t.howard] class Module
+ 224609 [transfire gm] Foo = Struct.new(:attribute, :another_attribute)
+ 224618 [shortcutter ] I don't know why people make it so complicated. :-) All these are easier
+ 224623 [james2mccart] Robert, T, A & Austin;
+ 224624 [dblack wobbl] You're adding instance methods to Bas rather than to Bas's singleton
224629 [shortcutter ] Oh, ok then I misinterpreted that. I read "include instance methods
224656 [james2mccart] I got the final solution down to this which I think is rather elegant;
224680 [transfire gm] class Bas < Struct.new :attribute, :another_attribute
+ 224697 [james2mccart] Yes, this is the behaviour I want. I am not actually creating any
+ 224698 [shortcutter ] Also, what is the point in creating a Struct in this case when you're
224702 [james2mccart] Good spot :-/
^ Splitting an array into quads and putting them back together again.
224600 [CBlair1986 g] if I'm lucky ;)
+ 224607 [nospam nosit] Perhaps it would be better if you specify exactly what you want, with all
+ 224611 [martindemell] require 'enumerator'
225256 [cblair1986 g] Thanks! I don't quite understand the code, right now, but it does work
+ 225260 [cblair1986 g] I don't mean to reply to myself, but I just realized that the way I
+ 225281 [martindemell] Ruby's multidimensional arrays are actually arrays of arrays. So if you have
225632 [CBlair1986 g] Thank you for the in-depth explanation. It really helped me grasp what
^ getopt/long and ARGV
224606 [vjoel path.b] Why does getopts delete the option _arguments_ but not the options
^ Saving an UTF-8 file
224616 [ktalanet yah] I have a problem (newbie problem).
+ 224620 [nospam nosit] # "data" contain the text data
| 224627 [david vallne] Byte order mark?
| 224651 [halostatue g] Not meaningful in UTF-8, since it's all a defined series of bytes
| 224657 [david vallne] Yes, but it can be used as a "this file is UTF-8" marker by convention.
| 224662 [halostatue g] It's a bad convention, because it adds meaningless bytes to the
+ 224726 [dido.sevilla] Well, how are you storing the Unicode characters are you using
threads.html
top