271407-275513 subjects 271789-390602
Re: how can I start a shell process and return immediately?
271620 [dolgun@ex it] "this"? Here let's play a little game. You try to help me. Here is
271632 [dolgun@ex it] r8test.rb
OLE Object - combo box problem
271625 [mihai.bulhac] -i want to add to an excel worksheet a meniu accessing from a combo box
+ 271648 [masaki.suket] Try $combo_box.object.additem("opt1").
+ 271658 [masaki.suket] Sorry, I had not noticed your second question.
271674 [mihai.bulhac] tnx a lot, now additem its working, but for the combo box menu make it
271710 [masaki.suket] I'm not sure that I understand what you want to do,
271765 [mihai.bulhac] OLE error code:800A03EC in Microsoft Office Excel
271766 [mihai.bulhac] excel2.rb:207:in `method_missing': Item (WIN32OLERuntimeError)
271773 [masaki.suket] Is $worksheet_asitt_menu WIN32OLE object?
271777 [mihai.bulhac] $excel = WIN32OLE.new('Excel.Application')
271781 [masaki.suket] $combo_box=$worksheet_asitt_menu.OLEObjects.Add("Forms.Combobox.1").object
271782 [mihai.bulhac] TNX a lot man, its working now; indeed it was with that comp.name a
Re: dike-0.0.1 - a memory leak detector
271637 [anibalrojas@] If using MySQL check the version of the gem you are using.
Noobie question: saving the values
271638 [squeezzed@gm] May you forgive me for this irrelevant thread but nonetheless, I need
+ 271639 [dblack@ru yp] "Link" isn't the right word. Variables contain either the actual value
+ 271640 [wayneeseguin] ...
271642 [squeezzed@gm] Thanks for your quick help, looks like I'm starting to understand
unit testing: example p. 156 pickaxe2
271644 [dolgun@ex it] require "test/unit"
+ 271921 [dolgun@ex it] Anyone?
+ 271938 [dolgun@ex it] ARGF.read #<---***
iCal (ics) parser in Ruby
271647 [unbewusst.se] does exists an iCalendar (ics extension) exists un ruby ?
271670 [jeremy@hi eg] Try out vpim. http://vpim.rubyforge.org/
+ 271722 [unbewusst.se] fine ! thanks a lot, it's exactly what i needed !
| 271725 [unbewusst.se] i'd like to say instead of vCards i'm using an xml version of those
+ 271730 [unbewusst.se] ~%> sudo gem install vpim
271745 [jeremy@hi eg] This all just means that the rdoc generation of the vpim gem has some
271845 [unbewusst.se] #!/usr/bin/env ruby
271897 [jeremy@hi eg] These aren't my examles. I had nothing to do with the development of
271935 [unbewusst.se] U're right, done !
Is there a combination of a struct and an array? I wanna iterate over all created objects from a certain struct-class (I guess).
271649 [kazaam@ol co] name=arthur
+ 271655 [sepp2k@go gl] If the order is guaranteed, it's as simple as
+ 271661 [rff_rffREMOV] Person=Struct.new(:name,:hobby,:home)
+ 271662 [AEtzold@gm .] Dear Kazaam,
| 271664 [kazaam@ol co] thanks for you're answers I'll work through the different approaches now!
+ 271666 [listbox@ju i] 1) You parse the thing into a hash
| 271724 [rff_rffREMOV] 2b) you use openstruct which does it for you :)
+ 271667 [ara.t.howard] require 'enumerator'
Iconv hangs while converting chinese UTF-8 to ascii, please help.
271650 [eryan.yu@gm ] using permalink_fu to generating permalink field.
271736 [nobu@ru y- a] How and from where did you install ruby and libiconv?
271783 [eryan.yu@gm ] It's the Windows One-Click Installer from Ruby's homepage.
Cut pages for OCR with RMagick?
271660 [AEtzold@gm .] Dear all,
271701 [TimHunter@nc] to_blob just gives you an in-memory copy of the image file. If the image
272031 [steven@lu os] When it comes to document imaging, the problem with most image
[ANN] VimMate 0.6.5
271665 [guillaume.be] A new version of VimMate is now available: Version 0.6.5
erb - erubis problems
271669 [wibblecp@gm ] ...
a = Dog.new # a is not a pointer and not a reference?
271673 [summercoolne] when we say
+ 271677 [m_goldberg@a] I think it best to think of a Ruby variable as holding a reference to
| + 271683 [summercoolne] hm... so you mean best to think of a Ruby variable as holding a pointer
| | 271689 [gwtmp01@ma .] I think that 'pointer', for most programmers, means an explicit memory
| | 271693 [dangerwillro] Yep.
| + 271698 [halostatue@g] Please forget anything and everything you ever learned about pointers
| | + 271718 [vjoel@pa h. ] It's not so mysterious. If you're coming from C/C++, you may find it
| | | 271804 [halostatue@g] No, I don't think that's a valid comparison because a void* still
| | | + 271880 [vjoel@pa h. ] Not quite legitimately... you didn't mean to take the address of a
| | | | 271881 [lloyd@2l ve ] There is a lot of confusion on this one. While I know for sure that
| | | | 272030 [dblack@ru yp] I'm just following what I've always understood, from discussions with
| | | + 271907 [charles.nutt] Ruby variables take up just as much space, they just do it in the call
| | | + 271910 [halostatue@g] That's an implementer's view. When I program with Ruby, I don't think of
| | | | + 271915 [gwtmp01@ma .] I can see the value of the sticky note analogy but I think it
| | | | | 271956 [halostatue@g] It's an analogy. Nothing more, nothing less. There are ALWAYS limits
| | | | + 271923 [dolgun@ex it] Your original post was ridiculous and now you've been called out. Take
| | | | 271958 [halostatue@g] Are you always this unpleasant, boorish, and rude?
| | | + 271927 [summercoolne] yes, that's what i mean by thinking of a reference to an object as a
| | | 272006 [charles.nutt] I think the named slots holding object references analogy is probably as
| | + 271719 [m_goldberg@a] My use of "holding" may be unfortunate. I only meant it conceptually.
| | | 271805 [halostatue@g] So are succubi ;)
| | | 271822 [ttmrichter@g] Sure there is. I am married because of C++. Before C++ I kinda-sorta
| | + 271732 [summercoolne] Doesn't a Ruby variable behave the same way in Java, PHP5, C++, and
| | | + 271734 [summercoolne] $a = new Dog("lulu"); # a is a reference to "lulu" object
| | | | 271740 [m_goldberg@a] No, you do not. Ruby has it own semantics, which do not correspond
| | | | + 271746 [summercoolne] hm,... but is there a problem to think of reference in Ruby as a
| | | | | + 271755 [m_goldberg@a] Well, your assertion that a.value is the equivalent of a->value is a
| | | | | | 271761 [summercoolne] how about just a.set_value(3) vs a->set_value(3). what i mean is just
| | | | | | + 271786 [jballanc@gm ] I think that this will get you into trouble only because you will
| | | | | | | 271787 [jballanc@gm ] Apologies. That should be "do not translate well"
| | | | | | + 271793 [dblack@ru yp] And I'd add that bareword identifiers are sometimes *not* variables,
| | | | | | + 271795 [ttmrichter@g] I think part of your confusion here, SFAM, is that you're talking about
| | | | | + 271791 [dblack@ru yp] Imagine if you went to a C mailing list and announced that you were
| | | | | + 271908 [charles.nutt] Ruby variables hold the value of an object reference. Reassigning the
| | | | + 271812 [halostatue@g] It's close enough to the whole story as to not matter from the Ruby
| | | + 271748 [iw1junk@co c] No. Well, yes, to the extent that variables in all these languages
| | | | 271751 [summercoolne] I want to think of it like as a pointer to distinguish it from the C++'s
| | | + 271810 [halostatue@g] Didn't I just say that they aren't the same?
| | | + 271818 [dolgun@ex it] What makes you think that is the op's goal?
| | | | + 271851 [halostatue@g] Because I tend to assume the best intentions in people. I see no
| | | | + 271859 [summercoolne] I asked similar question before although at that time I didn't know the
| | | + 272026 [charles.nutt] In exactly the same way as Java variables don't take up space...except
| | + 272271 [rick.denatal] And moving a sticky note to another object leaves any other sticky
| + 271785 [ttmrichter@g] I spoke with Dr. Meyer during his trip to China last year. One of the
| 271798 [ttmrichter@g] I don't know. I'm not sure what a "Dragomir" is. If it's a name, its
| 271799 [robert.dober] yup I think that's him, please note that if his parents had called him
+ 271679 [dolgun@ex it] Sort of sounds like a constant pointer, doesn't it?
+ 271681 [dblack@ru yp] It's a reference; at least, that's the term I've always heard Matz and
| 271686 [dolgun@ex it] What language is ruby written in? (Not jRuby or IronRuby.)
| + 271687 [TimHunter@nc] RMagick OS X Installer [http://rubyforge.org/projects/rmagick/]
| + 271728 [dblack@ru yp] C. It sounds like you're asking the question rhetorically, though. I'm
| 271743 [phlipcpp@ya ] C doesn't have references. Hence, as a metaphor for Ruby, the 'a' in 'a =
+ 271696 [listbox@ju i] This has been discussed at greatest length imaginable. Personally I
| 271700 [halostatue@g] There is no Object#replace method. String, Array, and Hash each have
| 271731 [listbox@ju i] Sure. Mistake on my part. But the semantics of something#replace are
+ 271973 [overlord@gm ] ?a? is a variable. A variable is never a pointer.
+ 272659 [wangqianpku@] On Sep 30, 1:16 am, SpringFlowers AutumnMoon
Re (30x) difference between PPC and Intel - ruby-yadis found guilty
271675 [listbox@ju i] Ok, figured it out. It was ruby-yadis who, for some reason, was
How to setup Ruby on Apache
271685 [junu.pv@gm i] here, i want to run ruby on apache, in which, embedding ruby within
271690 [wibblecp@gm ] I have some problems with my scripts but a lot of that work fine
271688 [ara.t.howard] NAME
271902 [ news@ja .f ] Hey, ara, what's new?
271912 [ara.t.howard] touche teacher. touche.
271918 [ news@ja .f ] No, I mean, really.. what's new? There's no changelog.
272065 [ara.t.howard] sorry.
1.9 - modify frozen object exception
271702 [TimHunter@nc] In 1.9, I notice that the exception that is raised for trying to modify
271729 [drbrain@se m] ...
script/generate model Cookbook yields: `const_missing': uninitialized constant
271703 [REMOVE-CAPSb] This only appears to have started in the past day or so. I initially
271714 [REMOVE-CAPSb] Seems this was caused by soap4r-1.5.8, removing it and using only 1.5.7
271737 [nakahiro@sa ] soap4r-1.5.6, soap4r-1.5.7 did not work as expected, too.
271884 [REMOVE-CAPSb] The second option seems to work for me and I'll simply leave it that way
Calling Ruby from PHP fails on "requires 'mysql'"
271704 [mtlmeijer@gm] I'm calling Ruby from PHP using system().
271709 [jan.svitok@g] If the problem is in gems, try adding require "rubygems" before require "mysql".(the same may be achieved by setting RUBYOP?=rubygems in the environment)
271712 [mtlmeijer@gm] Thanks Jano,
271720 [mtlmeijer@gm] Execution of my script ends at "require 'mysql'".
271871 [jan.svitok@g] 1. try adding -w switch to ruby to see the warnings (ruby -w ...)
272034 [mtlmeijer@gm] Thanks again!
272039 [jan.svitok@g] What came to my mind is whether are you using the same ruby in those two cases?
272071 [mtlmeijer@gm] Ok, getting close.
272078 [dangerwillro] *nix trouble!
[ANN] scheduler 0.3
271707 [mental@ry ia] Just a quick note that I've released scheduler 0.3, a very small library
Regular Expresion Error?
271711 [filipedlarca] According to the Regular Expressions section of the following ruby
+ 271713 [filipedlarca] Forgot to mention: Im running ruby 1.8.6 at Mac OS X 10.4.
+ 271772 [sepp2k@go gl] Both return "He<<ll>>o" for me.
+ 271774 [ed.odanow@wo] Both return "He<<ll>>o" on my machine too (Windows2000 -
272657 [filipedlarca] On Sep 30, 5:52 am, "Wolfgang N=E1dasi-Donner" <ed.oda...@wonado.de>
[ANN] Gosu 0.7.6 - features RMagick integration & new example game
271733 [julian@ra ch] Gosu is a 2D game development/multimedia library with a focus on
Newbie needs help getting user input
271738 [bostonantifa] I'm trying to learn Ruby and trying to convert a Perl program at the
+ 271739 [wayneeseguin] ...
| 271741 [bostonantifa] Wayne,
+ 271749 [dolgun@ex it] print "Enter option (1, 2, 3): "
+ 271750 [dangerwillro] puts "Enter option:"
+ 271771 [sepp2k@go gl] The ruby equivalent of this would be STDERR.print "Enter option: " but why
271806 [bostonantifa] Sebastian,
+ 271817 [bostonantifa] Sebastian,
| + 271821 [sepp2k@go gl] File.open(filename,'w') do |f|
| + 271823 [dolgun@ex it] 1)
| 271824 [dolgun@ex it] Whoops, too slow. And I had some detritus stuck to the front of that
| 271838 [bostonantifa] 7stud,
| 271840 [sepp2k@go gl] puts adds a newline at the end (if the string doesn't already end with a
+ 271819 [sepp2k@go gl] Well, he doesn't say that he doesn't recognize gets, he says that an error
Newbi needs help installing Rubygems in XP
271742 [bostonantifa] I need to install Rubygems on my Windows XP Pro machine. Can anyone
271747 [list.push@gm] Does this help?
271803 [bostonantifa] Yes, thank you Harry!
Re: how can I start a shell process and return immediately?
271756 [dolgun@ex it] You can consider the sleep(4) statement in the subprocess as a stand in
271760 [mamajeed42@g] ...
271762 [sgware@gm il] Is it possible to launch a Ruby thread without passing a block to
+ 271763 [yermej@gm il] class MyThread < Thread
+ 271829 [dolgun@ex it] The following simulates calling run to start a thread. It stops the
271837 [kero@ch ll .] The usual question is, why would you want that?
+ 271857 [sgware@gm il] My motivation for wanting the thread in a separate class is simply
| 271974 [shortcutter@] Personally I always found the Java way to inherit java.lang.Thread
+ 271865 [ari@ar br wn] Does a thread need to be started with x.join, or will it start
271866 [dolgun@ex it] As this thread highlights, there doesn't seem to be a way to create a
how to handle cookie with ruby
271768 [leondu@gm il] ...
271797 [mortee.lists] which is designed for just this kind of thing.
271917 [leondu@gm il] ...
Can you please help to make decision?
271776 [bh@iz .k u. ] Fist of all, sorry for poor English, I am not professional English
+ 271778 [summercoolne] Ruby, no question about it.
| 271820 [bh@iz .k u. ] Thank you for kindness..
+ 271808 [dolgun@ex it] I would choose python.
| + 271816 [bh@iz .k u. ] [...snip...]
| + 271826 [m_goldberg@a] Look under 'block' not 'code block'.
| | 271861 [dolgun@ex it] Ahh. "Blocks" as in "Proc's and blocks".
| | 271867 [dolgun@ex it] Here's a simple test for the op. Which of the following do you think is
| | + 271874 [w_a_x_man@ya] colors = ["red", "blue", "green"]
| | + 272040 [perrin@ap th] In the case of someone who has never programmed before, I rather think
| | + 272044 [logancapaldo] You bring up an excellent point. Where the hell did "for" come from
| | | 272931 [jwkenne@at g] *for* i := 1 *step* 1 *until* 10 *do*
| | | 272946 [logancapaldo] <snip snippet>
| | + 272047 [dangerwillro] But you forget, Ruby can also do
| | + 272123 [perrin@ap th] . . . and while I'm at it, I think this might be even more easily
| + 271836 [phlip2005@gm] (-;
| + 271843 [bigboss64@ip] If you are not the best at English, I would suggest Ruby.
| + 271855 [w_a_x_man@ya] Those are probably the same people who can't figure out
| | 272112 [perrin@ap th] I should have read this before I responded and brought up the idea of
| + 271869 [summercoolne] if viewed as "hey number 12, i give you a message, and the message is
| + 271977 [james@gr yp ] I'm staying out of the Ruby vs. Python debate, but the above is just
| | + 271981 [znmeb@ce ma ] +1
| | + 271987 [phlip2005@gm] Then test them, clean them up, use /m on their ends so you can group
| | | 271988 [w_a_x_man@ya] Incorrect. /m makes . match a newline. /x lets you put extra
| | | 271994 [phlip2005@gm] I upgraded one of my assertions to write that post. I added blanks,
| | + 272116 [perrin@ap th] Agreed. If an emacs user can learn to use a regex, anyone can.
| + 272153 [perrin@ap th] Technically, you're using "to_s" to call a method -- but you're sending
+ 271868 [summercoolne] I think one thing is the "fun" factor, that i have programmed in BASIC,
+ 271870 [dolgun@ex it] numbers = [10, 20, 30]
| 271872 [w_a_x_man@ya] numbers = [10, 20, 30]
+ 271925 [codethought@] I don't think Python has ever gained the traction that Ruby has,
271983 [dangerwillro] Huh? Python's got lots of traction! Just not the buzz.
+ 272072 [perrin@ap th] True. Perl, Python, and Ruby are all quite widely used. For instance,
+ 272128 [codethought@] Yea I knew I'd invoke some ire by saying that.
which language allows you to change an argument's value?
271784 [Summercoolne] I wonder which language allows you to change an argument's value?
+ 271788 [samy.rolka@g] Of course in C++, functions that don't modify argument's value should
+ 271790 [dolgun@ex it] Sure you do. You look at the function's signature. In order to use
| 271849 [Summercoolne] do you mean in C++? I tried to find signature in two C++ books and it
| + 271862 [Erik-wikstro] A signature is what is required to identify a function and includes
| | 271877 [jstucklex@at] No, the function's signature does not include the return type.
| + 271864 [jstucklex@at] You need to get more C++ books :-). You generally won't find them in
| + 271873 [netizen@gm .] .oO(Summercool)
| + 271954 [james.kanze@] That's not really correct. It's more a case that if you don't
+ 271792 [fxn@ha hr f.] Java can't do that, Perl _only_ works that way.
+ 271794 [Erik-wikstro] Since you know C++ can do it why do you include c.l.c++? Honestly cross-
| 271883 [arne@va ho j] Neither C or Java has call by reference.
| + 271937 [bohnenkamp@m] so what? the references in c++ are passed by value too, its just a nice
| + 271944 [Erik-wikstro] I never said that, what I said was that C allows you to simulate it by
+ 271811 [david@cy er ] From my understanding, in Ruby all argument passing is by value.
+ 271858 [googlegroupi] Some would say that in truely good OO design, the state should be
+ 271875 [fakeaddress@] I think you've missed how Python works, and probably others.
+ 271904 [see_website@] Seem to me you could in FORTRAN and Pascal, and maybe even Algol. It
| + 271933 [wlfraed@ix n] <email@example.com> declaimed the following in
| | + 272261 [rick.denatal] Fortran II was like this. It cost me a day or two of head-scratching
| | + 272468 [jwkenne@at g] However, some implementations passed /and returned/ elementary arguments
| | + 272730 [blmblm@my ea] In FORTRAN/Fortran, don't they call that "copy-in/copy-out"? Same
| | | 272896 [blmblm@my ea] Huh. I'd have said I was remembering the terminology from back
| | + 272984 [james.kanze@] ed
| | 272985 [alfps@st rt ] This is all to simple. Please discuss Algol pass-by-name. Much more
| | 273046 [jcoffin@ta u] [ ... ]
| | 273128 [bbound@gm il] This sounds rather like macro expansion as found in languages ranging
| | + 273129 [lew@le sc no] Zen.
| | | 273130 [znmeb@ce ma ] No, the word you're looking for is "bullshit"
| | + 273146 [james.kanze@] Not really. The arguments of a macro are normally expanded
| | 273441 [nebulous99@g] You seem to be meaning to disagree with me, but it's unclear exactly
| | 273485 [james.kanze@] r,
| + 272935 [jwkenne@at g] FORTRAN generally looked like call by reference, but was often actually
+ 272018 [sgifford@su ] Perl will let you change the value of a passed-in object directly.