283560-284294

283351-336654 subjects 283803-288333

Re: Programmer Ping-Pong (#150)
283560 [phrogz@ma .c] On Dec 14, 8:30 am, John Joyce <dangerwillrobinsondan...@gmail.com>
+ 283565 [rubytraining] Ken,
| + 283566 [rubytraining] In an earlier discussion with James, I think forks are OK.  People
| + 283567 [bulibuta@fa ] I had the solution to Rob's ping (but stopped posting it so I could get
|   + 283587 [rubytraining] Well I think a lower bound would be log2(@content.length + 1).  The
|   + 283740 [Rob@Ag le on] Paul,
+ 283570 [rick.denatal] I'm afraid that mail is going to be a terrible way to do this.
  + 283586 [rubytraining] avl_tree.rb
  | + 283590 [adam.shelly@] I agree with Eric's assumptions about the tree height, and his
  | + 283604 [hramrach@ce ] Now I think this one is misleading. Here you choose to lie about the
  |   + 283606 [rubytraining] I think that's a valid criticism.  It was a failed attempt to make it
  |   + 283616 [phrogz@ma .c] So...write a failing test case :)
  + 283617 [james@gr yp ] The rules did not ask for a zip file, no.
  + 283628 [james@gr yp ] I also considered using Subversion over email.  The decision here was

Printing result of class method
283563 [rubyror@go g] class Business
283572 [rubyror@go g] Thanx PPL for Replying me. Buy I did it, on my own way.

unsubscribe
283564 [jjames@is th] unsubscribe

Net:Telnet to Cisco Router
283568 [contact@th r] I have some code that will login to my cisco router and run a basic
+ 283601 [jeremymcanal] You don't have \n on the end of ENABLE, but I don't know if that makes
+ 283866 [boesemar@gm ] ...

YAML Problem  YAML::Object
283571 [homebeautypi] c.lawsuit.customer_service_location
283602 [yermej@gm il] On Dec 14, 11:38 am, Fransiscus Xaverius <homebeautyp...@yahoo.co.id>
283605 [homebeautypi] You just saved my life from fired. Thank You.

simple way to turn "foo and bar" to "+foo +bar"
283574 [toastkid.wil] I want to add a slightly hacky feature into my boolean mysql search
+ 283577 [phrogz@ma .c] I feel like there's a more elegant one-pass regexp, but I haven't the
+ 283579 [jpywtora@ca ] How about...
+ 283580 [mental@ry ia] query = "foo and bar and baz"
| 283585 [jamesthepipe] Do you need to worry about phrases?
+ 283581 [funkaster@gm] "foo and bar and baz".split(/\s+and\s+/i).map{|s| "+#{s}"}.join(' ')
  283582 [mental@ry ia] I think this one is best.
  + 283588 [phrogz@ma .c] It's elegant, but it assumes that the search phrase always has "and".
  | 283593 [mike.s.mckin] ...
  | 283671 [toastkid.wil] Awesome, thanks a lot everyone!
  + 283589 [jpywtora@ca ] I could not resist, so a slight mod ;-)

Browser Compatibility Chart
283578 [gemblon@ya o] Does anybody have a nice browser compatibility chart?
283636 [dangerwillro] For perhaps the latest, google "westciv" "css3"
283657 [gemblon@ya o] thanks a bunch....

Test::Unit bug?
283598 [george@nu ru] Not sure if anyone's noticed this before, but there's bug in
283618 [ryand-ruby@z] or just don't include 'test/unit'.

AVL Tree
283600 [fedzor@gm il] I have a quick question about the AVL tree. Isn't this a lot like the
283610 [james@gr yp ] Some people did use AVL balancing in their ropes, but I consider the
283682 [rick.denatal] I hope this is taken the right way, but as I think of this quiz, I'm
283685 [james@gr yp ] I'm sure I make plenty of mistakes.  This could be one of them.

Fwd: [QUIZ] Programmer Ping-Pong (#150)
283614 [james@gr yp ] (forwarding to Ruby Talk so all can benefit from this code)

Re: Work with Audio Files
283619 [lloyd@2l ve ] Posted via http://www.ruby-forum.com/.
283625 [kout.peter@g] thank you for the link, but it's not what I was looking for. I do not
+ 283638 [dangerwillro] just dig through the gems.
| 283641 [kout.peter@g] Thank you John,
+ 283644 [konrad@ty er] charset="utf-8"
  + 283647 [kout.peter@g] Okay Konrad, thanks very much! That sounds interesting. I will
  | 283649 [konrad@ty er] charset="utf-8"
  + 283650 [dangerwillro] Remember, keyword there was CONSTANT bitrate, variable bitrate might
    + 283652 [konrad@ty er] charset="iso-8859-1"
    + 283691 [pcrawfor@gm ] On Dec 14, 5:48 pm, John Joyce <dangerwillrobinsondan...@gmail.com>
      283697 [kout.peter@g] thank you very much. That sounds like exactly what I am looking for.

doing require on some relateive path
283621 [junkone1@gm ] I have the following 2 files
+ 283632 [jpywtora@ca ] The idiom I have seen used and use myself is...
| 283679 [vinbarnes@gm] Some recommend being a bit more implicit with the path structure. So
+ 283703 [MonkeeSage@g] $:.unshift(File.basename($0))
  + 283707 [MonkeeSage@g] Oops. Those should have been "../../Dir2/File2.rb" &c.
  + 283709 [MonkeeSage@g] Heh...I'm not batting so well here. That should also have been

How to maintain a single network connection? (newbie)
283624 [abcdesi@ya o] things. I am writing a simple script to familiarize myself with the
283630 [jpywtora@ca ] I suspect it is the sftp.close stanza that is causing the problem.  Try
283658 [abcdesi@ya o] Thanks for the reply. Unfortunately, that didn't work.

[noob] Parsing problems using https and redirects
283627 [ramirodt@gm ] ...
283645 [konrad@ty er] charset="utf-8"
283664 [ramirodt@gm ] ...

File Modification Monitor
283629 [rubynewbee@l] I am new to ruby.  I have a thrid party application that stores
283888 [boss@ai bl d] You might Autotest's code instructive.  It watches a directory (of

how to display an oracle trigger programatically
283648 [seannakasone] Is there a way to display an Oracle trigger programatically?  The only way
283651 [chris.hulan@] Don't really need Ruby, but it'd be easy to adapt...

help with timeout and IO.popen (newb)
283655 [weathercoach] I have a script where I use IO.popen to execute some system

Combinatorial testing
283656 [znmeb@ce ma ] I ran across an interesting article today on so-called "combinatorial"

2 ruby apps sharing info
283659 [two55309@ya ] Anyone have any ideas on having two ruby apps share information from two
+ 283660 [halostatue@g] Yes. Read the Pickaxe. It'll tell you all kinds of neat things about
+ 283661 [dangerwillro] DRb

Pros and cons on dynamic method generation
283665 [nyarly@gm il] ...

ANN: Sequel 0.4.3 Released
283666 [ciconia@gm i] Sequel version 0.4.3 has just been released. This release includes

SIGCHLD handler not working correctly
283669 [ayqaziZIG@ya] #!/usr/bin/ruby -w
283678 [lionel-subsc] If I'm not mistaken, there's none because the child didn't call exit.

[ANN] One-Click Ruby Installer 186-26 Final Release
283670 [ml.chibbs@gm] This updates Ruby to 1.8.6 patch level 111 (lots of bug fixes since

CFP : First Ruby and Rails devroom at Fosdem 2008
283672 [calamitates@] The Belgian Ruby User Group is happy to announce the first Ruby and

Smallest device to code ruby on?
283673 [pikselNOSPAM] Whats the smallest gadget you can code (and compile) ruby on?
+ 283675 [careo@fa tm ] There is a ruby package for the iphone and iPod touch. I don't think
+ 283677 [ttmrichter@g] The Nokia N800 has had Ruby ported to it, complete with UI bindings.
+ 283681 [alterego@sd ] I've been working on getting Ruby integrated with the open source development
+ 283700 [gmane@au bu ] Casimir P said...
+ 283716 [vjoel@pa h. ] There's not many devices smaller than gumstix. They are cheap, too. I've
| 283750 [znmeb@ce ma ] I got Ruby running on a gumstix but not Rails. Which reminds me, my
+ 283733 [pikselNOSPAM] Thanks for all the replies. 8) You have given me a lot to look into. Not
+ 283752 [znmeb@ce ma ] Well ...
  283788 [pikselNOSPAM] Anybody here code ruby on cell size devices? Can you tell me how it feels
  + 283800 [pikselNOSPAM] etc.
  | + 283821 [tieg.zaharia] I think I remember reading that these will come with Ruby installed,
  | + 283875 [pikEISPAMMMs] Ya I kno. But if it wuzn't globals then it wuld "disappear" once the
  |   283916 [caduceass@gm] You can't be serious.
  + 283828 [no@sp m. le ] Or Bluetooth, if you buy that version. Or just ssh to it using
  + 283854 [znmeb@ce ma ] OK ... now I have to port LOLCODE to the XO. :)

Problem with using win32ole in Linux server.
283674 [veeraa2003@y] I'm Having one excel file. I want this file using ruby, for this I used
283676 [jan.svitok@g] This was discussed already, although quite some time ago.
283699 [rsteckly@wh ] Yes, but if you use OpenOffice, how do you script it?  Does Ruby have a

a self.method! returning a changing self attributes
283680 [unbewusst.se] say, i've a class "Clazz" i've a method #revert_to_saved

Question about sockets/listeners
283683 [crofty_james] this.  I am writing a script that listens for UDP packets on a
+ 283689 [gwtmp01@ma .] My first guess is that you are running out of file descriptors.  It
| 283692 [crofty_james] Sorry, I should have said, I am expecting mulitple responses from the
+ 283690 [gwtmp01@ma .] You main thread may be existing before all the
+ 283693 [garbagecat10] ...
+ 283698 [garbagecat10] ...

Splitting string into array keeping delimiters
283684 [garyc40@ga y] Yesterday I came across an interesting problem.
+ 283687 [sepp2k@go gl] If the regex has capturing groups you'll get those in the array as well.
| 283688 [fxn@ha hr f.] 'abcd1234abc123'.scan(/\D+|\d+/) # ["abcd", "1234", "abc", "123"]
| 283695 [phrogz@ma .c] irb(main):004:0> str.split /(?<=\D)(?=\d)|(?<=\d)(?=\D)/
| 283728 [no@sp m. le ] 'abcd1234abc123'.shatter(/\d+/)
| 283749 [garyc40@ga y] Wow, there sure are more than one way to solve a problem in Ruby.
+ 283777 [MonkeeSage@g] And the highly esoteric version...

[ANN] Zerenity 1.2
283694 [farrel.lifso] == Synopsis

_id2ref in finalize or how get object.var from class.finalize
283696 [Andrey.D.Nik] #!/usr/bin/ruby1.8

_id2ref in finalize or how get object.var from class.finalize
283702 [andrey.d.nik] #!/usr/bin/ruby1.8
283743 [nobu@ru y- a] Finalizer is called after the object was disposed.  So _id2ref

JRubyHub.com: The hub to all JRuby and JRuby on Rails (JRoR)  resources...
283704 [sbaltagi@gm ] I'm very pleased to announce the launch of JRubyHub.com : a One-Stop

autoindenting ruby
283708 [martindemell] Something most of the "IDE roundup" threads seem to pass over lightly
+ 283711 [phrexianreap] Have you looked into the indent utility? I know it works with C well,
| + 283712 [martindemell] That misses the "hit return and have the next line indented properly"
| + 283713 [vasyl.smirno] In Emacs I use the following function, found somewhere on the net.
|   283715 [konrad@ty er] charset="iso-8859-1"
|   283754 [ryand-ruby@z] read the code above again and tell me that 'gg=G' does all that...
|   + 283762 [konrad@ty er] charset="iso-8859-1"
|   + 283781 [MonkeeSage@g] For vim, that function would be something like...
|     283832 [reid.thompso] ...
+ 283717 [jari.william] NetBeans 6 has auto-formatting of regions, auto-indenting when pressing
+ 283814 [eric.promisl] Komodo does auto-indent for Ruby, including Ruby code in RHTML blocks.
  283827 [huw@da kn on] Ruby In Steel does smart auto-indenting of Ruby and embedded Ruby (in

Ruby + OpenOffice Was: Re: Problem with using win32ole in Linux server.
283721 [jan.svitok@g] They all are pretty old...
283723 [james.britt@] Ooo4r is old and dead.

An idiomatic way to traverse all pairs in an enumerable?
283722 [ shot@ho .p ] enum.each do |a|
+ 283734 [Rob@Ag le on] for
| + 283772 [MonkeeSage@g] On Dec 15, 6:25 pm, Rob Biedenharn <R...@AgileConsultingLLC.com>
| | 283789 [ shot@ho .p ] Ah, perfect. In my (limited) case, it ended up to be
| + 283790 [ shot@ho .p ] Thanks a lot!
+ 283787 [transfire@gm] Facets exits for you.
  283817 [ shot@ho .p ] (I can=E2=80=99t help but love the typo.)

[ANN] JRuby 1.0.3 Released
283724 [Thomas.Enebo] The JRuby community is pleased to announce the release of JRuby 1.0.3.
283730 [drinkwat@ho ] What is Jruby, and how is it different than Ruby?
+ 283732 [jari.william] www.jruby.org
+ 283737 [no@sp m. le ] Point your mouse at the first link in the message you quoted,
  283736 [Bil.Kleb@NA ] Forgot your manners?
  283742 [no@sp m. le ] I get a lot of requests to write personalized responses to people who
  283746 [billk@ct .c ] Even so, that probably doesn't trump MINASWAN on this list, though,
  283773 [no@sp m. le ] You're right, I was uncivil. I'll try to be better. Sorry folk.

string to code?
283725 [pavel989@gm ] is it possible to get user input, and put that in as a code. like lets
283727 [TimHunter@nc] Well, you can certainly use the eval method, which just executes a
+ 283751 [pavel989@gm ] yes i know that, and in the actual app im not going to have that. just
+ 283768 [sepp2k@go gl] Why not? I mean the user wouldn't type something like this without knowing

Automatic Range?
283731 [jari.william] I want to know if an integer is within the range of x and y. However, I
283735 [Rob@Ag le on] That's probably as good as it gets.  However, Ranges with #end <
283765 [jari.william] Ah, of course - there it makes sense. Thanks!

Re: Logging irb stdin & stdout to file but still remain showin
283741 [RubyTalk@gm ] Hey,
283801 [james@gr yp ] Really?  Why?

Leopard rails 2.0 hell
283744 [treasonx@gm ] I did something very silly tonight that I am now paying dearly for!! I
+ 283745 [anthonyeden@] 1.) Post the errors you are seeing.
+ 283764 [timocratic@g] Also, if all you did is upgrade rails you haven't really touched the
  + 283784 [dangerwillro] If you're really worried and don't know what to do, don't rush to 2.0
  + 283897 [rick.denatal] or freeze the existing project(s)

Backslashes in Command Line Arguments
283753 [joepeck02@gm] In writing a script that takes strings on the command line I have run
+ 283770 [sepp2k@go gl] Yes.
| 283791 [joepeck02@gm] Sadly, passing those into example.rb to Ruby produces the same
| 283792 [sepp2k@go gl] It does?
| 283794 [joepeck02@gm] You are absolutely right, I don't know what I was thinking.
+ 283898 [rick.denatal] No, it's because you are using p instead of puts.
  283905 [joepeck02@gm] I purposely used p instead of puts for that exact reason.  Which is how
  283906 [MonkeeSage@g] It does get a newline character...try looking at "\n"[0] (or if you're
  + 283907 [MonkeeSage@g] Doh! Sorry Rick...brain said one thing, fingers rebelled.
  + 283911 [joepeck02@gm] It seems both of you have missed the point of my question.  The input is
    283915 [MonkeeSage@g] Ah-ha. I understood your original problem, but I was confused about
    283921 [joepeck02@gm] No problem.  Also, after re-reading my previous comment I noticed I
    283920 [joepeck02@gm] Posted via http://www.ruby-forum.com/.

How t owrite an OR statement
283755 [danpeikes@ho] Ok folks I know this is an easy question, I am trying to write a while
+ 283756 [joepeck02@gm] These don't use the OR logic, but they are similiar.
| 283757 [danpeikes@ho] This is what I currently have, but it looks to be giving me an infinite
| + 283758 [joepeck02@gm] 1) The logic here has two parts, two sides of the or.
| + 283785 [shortcutter@] numbers = []
+ 283769 [sepp2k@go gl] Maybe my C is a bit rusty, but isn't anything that's not zero true in C? If so
+ 283774 [MonkeeSage@g] Also, again != "y" || "n" evaluates to ((again != "y") == true) ||
  283775 [sepp2k@go gl] Not quite.
  283786 [MonkeeSage@g] On Dec 16, 4:27 am, Sebastian Hungerecker <sep...@googlemail.com>

Re: JRuby 1.0.3 Released
283759 [bad_good_lio] how to improve jruby speed .
283795 [jari.william] Probably better to ask this in a JRuby or Rails group.
283796 [Thomas.Enebo] Which is user@jruby.codehaus.org and dev@jruby.codehaus.org.

Importing module to local namespace
283760 [neko18@gm il] #####
283761 [neko18@gm il] #####
283763 [timocratic@g] For the easiest thing, just stick with your first example of using

SWIG function problem
283771 [flashdog@gm ] class Random
283902 [jan.svitok@g] See http://www.swig.org/Doc1.3/Ruby.html#Ruby_nn32
284294 [flashdog@gm ] Your link doesn't help. My little code is atteched.

I need help debugging my program
283776 [phantom3380@] I'm new to Ruby and I'm trying out a very basic user input program. The
+ 283778 [sepp2k@go gl] In this line you're asking ruby to give you a string representation of age.
+ 283779 [tek.katu@gm ] What does "birth = year -= age" try to do?
  283780 [maestroiut-r] That is not surprising since Ruby does not automatically cast values

Mixins and class variables
283793 [bruno.bazzan] I can't figure out how to set class variables from class methods
+ 283802 [MonkeeSage@g] Use Module#class_variable_get/set for this kind of thing.
| 283806 [bruno.bazzan] Indeed !
| 283807 [timocratic@g] Yeah, the pickaxe is only really a jumping off point.  It definitely
+ 283818 [gwtmp01@ma .] The New Haven Ruby Brigade spent an hour or so one night trying
| 283820 [MonkeeSage@g] From the standpoint of intuitiveness, one would also expect that
+ 283819 [michael@sc u] Consider if class variables are really what you want.
  283877 [bruno.bazzan] You are totally right !
threads.html
top