385626-387494 subjects 386053-386644
Bundle update fails
385850 [sutniuq@gm .] =======================================
Counting lines of code in a ruby code file ignoring method code lines in the process
385860 [htruax@st .c] I am writing a Ruby program that reads a ruby code file and counts the
+ 385861 [peterhickman] Well this could be a bit of a cheat but you could put the code through
| + 385873 [htruax@st .c] Thanks for the reply Peter. Yeah, I thought about something like that, but
| + 385874 [htruax@st .c] Thanks for the reply Peter. Yeah, I thought about something like that, but
| 385878 [jgabrielygal] Maybe you could take a look at ruby_parser or parse_tree. I currently
| 385883 [htruax@st .c] Thanks Jesus, I will take a look.
+ 385913 [list.push@gm] But, I think it is not so simple.
385914 [jgabrielygal] od
if condition for pattern matching
385866 [kotin76@ya o] i have below program
+ 385867 [dave.baldwin] You need to quote the string, i.e.
| 385869 [jakekaiden@y] if "pass" is not a method or a local variable, you will also need to
+ 385868 [hanmac@gm .d] you need "" or '' around your string
385870 [kotin76@ya o] i tried as per you suggestions from below program
385871 [kotin76@ya o] as per jake reply,
385872 [kotin76@ya o] i applying same above logic for below program
+ 385876 [kotin76@ya o] Regards
| + 385880 [jgabrielygal] String#match returns a MatchData object. If you want the matched
| + 385882 [code@ap th o] Give people a chance to read, formulate a response, and reply. Sometimes
| 385901 [kotin76@ya o] Thanks for all your quick support.
+ 385877 [jakekaiden@y] have a look here: http://www.ruby-doc.org/core/classes/File.html, and
installing latest version of 1.8.7 with rvm dosn't work
385879 [serialhex@gm] i don't believe that this is rvm-specific, but here is the error that it
385900 [wayneeseguin] That is well outside of RVM's scope/control. My recommendation is to bring
I Need some help installing ruby
385881 [dataoverflow] I need some help people.. i hope i don't ask too much.
+ 385886 [steve@st ve ] Check out rvm: https://rvm.beginrescueend.com/
+ 385889 [dataoverflow] RDE(Ruby Development Environment)
+ 385890 [echristopher] Just so you know, FXRuby isn't an implementation of Ruby (the way
+ 385891 [dataoverflow] where i write the come to instal RVM?
385892 [echristopher] RVM doesn't work on Windows. There is something similar called Pik,
How do we read this line of code?
385884 [abder.rahman] @x.each do |x|
+ 385885 [cmdjackryan@] A block variable
+ 385887 [jakekaiden@y] if @x is an array, you could read this as "for each entry (x) in the
+ 385888 [code@ap th o] It's an argument supplied to the block that follows. In this case, the
| 385893 [ryand-ruby@z] It is not an instance variable.
| 385895 [code@ap th o] Since when is @x not an instance variable?
| 385896 [ryand-ruby@z] Ah. I was pre-caffiene and thought you were referring to the block variable.
+ 385894 [stu@ru yp og] each is an important part of ruby and it is something people from
| 385917 [shortcutter@] @x actually points to. So we can only say something like
+ 385897 [bbxx789_05ss] @x = [10, 20, 30]
Fiber performance in 1.9.2-p290 vs -p180
385898 [lleoem@gm il] I ran it one MRI ruby 1.9.2-p180 and -p290. The performance
+ 385912 [mikbe.tk@gm ] You should note that it's not running the fibers that's taking so much time;
+ 385915 [lleoem@gm il] First, thanks for looking at the code.
siimple string manuplation logic. But i did not getting correct one
385902 [kotin76@ya o] I am new for ruby.
+ 385904 [botpena@gm i] -5451"
+ 385905 [jgabrielygal] -5451"
385909 [kotin76@ya o] thanks for all and especially for Gabriel.
intelisense is not working properly in eclipse or netbeans
385903 [shahgomji@gm] I am new to ruby and trying to use it for website testing. For that I
385921 [Carey.Nation] Probably because it would have to execute setup to know what @browser means and you don't do that anywhere. Maybe call it initialize so that it is the ctor and maybe the ide will figure it out.
Test Unit setup teardown problem
385906 [shahgomji@gm] I am using Test::Unit framework for website testing. It has setup and
+ 385911 [chris@ch is ] I'm not sure whether it's possible to do what you're suggesting. It's open
+ 385922 [kou@co mi ng] Thanks,
385959 [shahgomji@gm] hey sutou,
385991 [kou@co mi ng] require 'rubygems'
Location of SSL certificates on Windows (7)
385908 [d_rems@ya oo] I am trying to access Exchange server with viewpoint gem. Connection is
385910 [cmdjackryan@] Phillip Gawlowski
385918 [d_rems@ya oo] Which tells that I should put certificate into some directory. Nothing
[ANN] myrrha 1.1.0 Released
385919 [blambeau@gm ] myrrha version 1.1.0 has been released!
Fwd: AR + TinyTDS timeout fails to trigger on network failure
385925 [peter.fitzgi] Cross-posted to : Ruby-Talk, Rails-Talk, Jruby-Users
385926 [b.candler@po] Posted via http://www.ruby-forum.com/.
long loops inside threads
385928 [correo@mi ue] I have a newbie question :)
385930 [sduncan@we a] Are you join'ing the thread? If not your main thread is likely to exit
385932 [correo@mi ue] That was the problem! I have to reread the threat chapter of the ruby
+ 385933 [sduncan@we a] No worries. You are on the doorstep of an exciting and endlessly
+ 385955 [shortcutter@] irb(main):003:0> t = Thread.new do
OptionParser on option separator "--"
385929 [blambeau@gm ] Does anyone here know if it is on purpose that OptionParser#parse!
385931 [b.candler@po] It's standard option parsing behaviour. -- indicates "end of options",
385934 [blambeau@gm ] Whoups, I did not know that there was a commonly agreed
Help in Pointer
385936 [tridib04@gm ] I am a beginner to Ruby. I want to know how to hide a value with pointer
+ 385937 [josh.cheek@g] I don't know what this means, can you be more explicit or give an example?
+ 385938 [stu@ru yp og] ~Stu
| 385939 [tridib04@gm ] No.
| 385940 [normalperson] rb_global_variable(). It's documented in README.EXT of the Ruby source.
| 385962 [keithrbennet] ...
+ 385965 [hanmac@gm .d] Tridib what did you try?
+ 386079 [tridib04@gm ] I got to know from this forum before that the Garbage Collector just
| 386125 [drbrain@se m] memory=20
| 386144 [tridib04@gm ] So does it delete only the pointer or the pointer with the data its
+ 386149 [hanmac@gm .d] if you use
| + 386150 [jgabrielygal] If I understand correctly, you have to use the mark function if you
| + 386295 [tridib04@gm ] So will it make Memory Leak..!!!!
| 386316 [drbrain@se m] No. If your object can be freed with free() then everything is fine. =
| 386340 [tridib04@gm ] Yeah thats what i am trying to do implement my custom free function.
+ 386595 [tridib04@gm ] Is there anyone who can answer to my previous post???
+ 386598 [hanmac@gm .d] the mark function is not important for your problem
+ 386617 [tridib04@gm ] Thanks
How to overcome network IO block (lost network) ?
385941 [peter.fitzgi] I would like to know of any suggestions you have on working around lost
385942 [normalperson] It depends /heavily/ on the underlying C libraries for you're using
get response from soap using curb in ruby
385943 [kumarshiva43] I start working on ruby very recently. i written a small code for SOAP
385946 [b.candler@po] But you didn't show us the SOAP data you sent (contents of
No tests were specified errror
385944 [shahgomji@gm] I am new to ruby and so i am facing this silly issue.
385945 [b.candler@po] It's because it's trying to run all test cases in BaseClass and in
385954 [shortcutter@] +1
+ 385960 [shahgomji@gm] Thanks robert,
+ 385992 [kou@co mi ng] Implement it as a module not class. To share method
class variables in modules, annoying
385947 [ibc@al ax ne] module M
+ 385948 [adgar@ca bo ] ...
| 385952 [ibc@al ax ne] Great. Thanks a lot for the information.
+ 385951 [bbxx789_05ss] A class is a module. So the statement should be: don't use class variables period.
385953 [ibc@al ax ne] Right. Is it not planned to change the behaviour of class variables in Ruby?
385956 [robert.dober] by?
385958 [ibc@al ax ne] Yes, I try to use instance variables (but let's say "class's instance
[ANN] quickl 0.3.0 Released
385949 [blambeau@gm ] quickl version 0.3.0 has been released!
Can't install Gems on Windows 7
385950 [rovf_via_rub] party did not properly res
385963 [luislavena@g] This seems to be a network connection issue.
Argument error in ludcmp when using Newton module
385957 [wkranec@gm i] I am trying to use bigdecimal/newton for an implementation of XIRR. A
386140 [tomonacci@gm] You got the error because your Function#values returned a Float
Unite test is not woking as per design
385961 [shahgomji@gm] require 'test/unit'
385964 [bbxx789_05ss] puts RUBY_VERSION
385966 [shahgomji@gm] Actually i have installed test-unit 2.3.0 gem. And ruby 1.8.7 the thing
+ 385967 [shahgomji@gm] Okay i got it.. i just include the below line and now it's working.
+ 385969 [josh.cheek@g] This is what I see in my mail from 7stud
385973 [bbxx789_05ss] I wonder if it has something to do with editing messages? The website
385974 [jgabrielygal] What would be the best way to fix this, then? Maybe send an email for
385975 [cmdjackryan@] Don't allow editing. Problem solved.
385976 [bbxx789_05ss] In my opinion, there should be unlimited editing--no time limit.
why startup and shutdown is not being called?
385968 [shahgomji@gm] startup and shudown method is being called if it is inside the one class
385970 [josh.cheek@g] Modules don't work that way. You're defining startup and shutdown on
[ANN] rb-readline 0.4.1 released
385971 [mark@sc tt s] I'm happy to announce that version 0.4.1 of rb-readline is available now.
385972 [trylobeet@gm] i'm new to ruby, and having got the basics by now i decided to try and
+ 385977 [bbxx789_05ss] Posted via http://www.ruby-forum.com/.
+ 385981 [cwprogram@li] Here's an alternative that uses a simple xml parsing gem (xml-object)=2C an=
385978 [bellcolt@ho ] working on a ruby project with several files all lumped into a single
+ 385979 [wishdev@gm i] John
+ 385980 [josh.cheek@g] Personally, I've grown to like explicit requiring, but if you're sure you
+ 386264 [axyd80@gm il] Use §Ņutomatic Class Loader and forget about the :require ;)
avoiding capturing local variables in closures
385982 [cremes.devli] I do a lot of event-driven programming (Eventmachine, ZMQMachine). You would think that by now I would know how to answer this question but I'm a bit stumped.
+ 385983 [adgar@ca bo ] #schedule_for_execution is capturing the variables foo, bar, bigarg1 and =
+ 385990 [robert.dober] Answered by Michael
+ 385996 [shortcutter@] Generally care should be taken about the value of self when a long
+ 385997 [cremes.devli] I want to be clear that I understand you. Here's some code that I think illustrates what you mean.
| 385998 [robert.dober] <snip> Right?
+ 386007 [bbxx789_05ss] Huh?
386009 [robert.dober] May I ask what your point is?
386019 [bbxx789_05ss] That what you said is wrong/doesn't make sense.
Dynamic creation of variables
385984 [mulvaneyenat] I am building a interactive shell for chemistry related tasks and am
+ 385986 [cwprogram@li] I would recommend making a module=2C then setting module constants for your=
+ 385988 [mulvaneyenat] Thanks for the quick reply!
Problem installing gem - please help
385985 [pgfarms@co c] I need to install gem GData
+ 385987 [cwprogram@li] Regards=2C
+ 385989 [b.candler@po] sudo gem update --system
How to read/write from ruby to VB.Net application and vice versa using Memory Mapped Files?
385993 [premjeetsing] We are trying to communicate between our two applications, One is in
400221 [lists@ru y- ] If you want to pass data to and from C# you can write socket
How to communicate between a ruby and VB.Net application using Memory Mapped Files?
385994 [premjeetsing] We are trying to read/write a memory mapped file created from VB.Net in
How to read contents of a Memory Mapped File created in ruby through some other app. like .Net?
385995 [premjeetsing] We are creating a Memory Mapped file in ruby using win32-mmap gem.
385999 [eleanor@ga e] in
386000 [jakekaiden@y] rubyWax 0.8.11
Re: Filename directory path store into mysql databas
386001 [b.candler@po] Please read
Rad, Web Framework inspired by Rails, Spring IoC and JBoss Seam
386002 [axyd80@gm il] The main difference from existing frameworks is that it has true OO
[ANN] Rainbows! 4.1.0 - Unicorn for sleepy apps and slow clients
386004 [normalperson] Rainbows! is an HTTP server for sleepy Rack applications. It is based on
Documentation in Ruby
386010 [aef1370@gm i] I have a problem with Ruby Reference. How can I see all the methods of a
+ 386011 [vderyagin@gm] Use 'Class#instance_methods' method. 'Array.instance_methods', for.example. By
+ 386018 [bbxx789_05ss] its singleton class
| 386027 [code@ap th o] What does this mean?
| 386029 [bbxx789_05ss] s/class's/classes'/gc
+ 386026 [justincollin] If you look at http://rdoc.info/stdlib/core/1.9.2/Array you will see
+ 386042 [josh.cheek@g] obj.methods # public methods
Ruby a "4th generation language"? Credible sources?
386012 [albertschlef] I've noticed that Wikipedia says that "C#, Java" are 3'rd generation
+ 386015 [cwprogram@li] It's Wikipedia, and being a community driven content site people will =
+ 386028 [code@ap th o] Problem solved: Perl, PHP, Python, and Ruby have been removed from the
+ 386059 [rubfor@re it] The Wikipedia articles are spurious.
| 386062 [code@ap th o] In my experience, the language "generation" talk is (as noted early on
| + 386063 [shortcutter@] Actually, PL/SQL is a pretty good procedural language with a decent
| | 386064 [code@ap th o] Yeah, that was kinda my point.
| + 386075 [rubfor@re it] Well I agree. So what's your theory? Why did someone see Java as a 3GL
| 386078 [code@ap th o] Good question. Probably some kind of anti-"scripting" language bigotry,
+ 387341 [rogerpack200] I was once chatting with a fellow at church who programs mainframes. He
| 387436 [rubfor@re it] Probably a useful way of looking at generations. A 4GL builds on 3GL
| 387444 [josh.cheek@g] Can you clarify this? I have a suspicion that what you are calling
+ 387447 [rubfor@re it] True - once you've become sophisticated, you might as well enjoy it.
NoMethodError: undefined method
386013 [shahgomji@gm] I am not able to understand why it gets nil object. would someone let me
386014 [nobuoka@r- e] Do you initialize the instance variable @browser?
386020 [shahgomji@gm] actually the some of method is of unit test and gets invoked
386025 [b.candler@po] So, show the *exact* error you are getting, together with the backtrace.
386016 [velasquez.fe] Hy guys! :)
386017 [cwprogram@li] /Users/felipevelasquez/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.=
386021 [hassan.schro] No! It means the OP has screwed up his RVM install, probably by
386022 [cwprogram@li] /Users/felipevelasquez/.rvm/gems/ruby-1.8.7-p352@metrocubico/cache/rake-0.=
386023 [steve@st ve ] And if you ever do need sudo with rvm, it's just 'rvmsudo'.
[ANN] Ruby 1.9.3 preview1 released
386024 [yugui@yu ui ] I have just released Ruby 1.9.3 preview1.
How to connect to and use Postgresql from Ruby
386030 [ruby@ta ja e] I have just started to learn Ruby, quite nice language, but I'm stuck on
+ 386032 [b.candler@po] You did google for "ruby DBI"? There's a good introductory article on
+ 386035 [cwprogram@li] on
386038 [code@ap th o] . . .
386039 [cwprogram@li] Performance, as ruby-pg interfaces directly with libpq. There are also =
386040 [roylzuo@gm i] I would personally recommend Sequel, even for performance. Although ruby-pg is
386044 [code@ap th o] That was much more articulate than the answer I was thinking about, but
send() docs are wrong
386033 [bbxx789_05ss] obj.send(symbol [, args...]) ĒŠ obj
+ 386034 [cwprogram@li] Potentially misleading yes, incorrect no. If you call send on an object you get an object back. It may be the same object, it may be another object. You could say
| + 386036 [bbxx789_05ss] Oh, please.
| | 386046 [shortcutter@] I guess you are referring to
| + 386037 [keithrbennet] ...
+ 386045 [drbrain@se m] ...
386051 [cwprogram@li] Regards,
[Pre-ANN] diff-lcs 1.1.3 to be released soon
386041 [halostatue@g] It's partly David Chelimsky's fault for picking on it in a blog post,
A question on style...
386043 [psynaptic_ac] ...
+ 386047 [code@ap th o] get_response =3D [
+ 386048 [josh.cheek@g] I wouldn't have a problem doing it, though I usually start like `[ "Got
+ 386049 [shortcutter@] e to input text. I have a method to return the the array of responses, whic=
system stack error in ObjectSpace.each_object
386050 [luke.gru@gm ] Hey guys, I'm just starting to mess around with metaprogramming in Ruby,
386052 [josh.cheek@g] Test
386055 [luke.gru@gm ] Yeah, I'm running the same Ruby version and I have 4 gb of ram, not sure
386058 [shortcutter@] I can reproduce
+ 386061 [b.candler@po] This looks to me like an abuse of ObjectSpace.
+ 386080 [luke.gru@gm ] Yeah, it was just for fun and to learn some of these metaprogramming
+ 386095 [jgabrielygal] In the initialize (or new) method of Foo, store self in a container
+ 386096 [shortcutter@] Not sure what this is supposed to do but I would always make the
+ 386098 [b.candler@po] Others have answered this already. (There's weakref if you really need a
386143 [luke.gru@gm ] That's cool, I like the way the class is effectively just that, a set
386148 [shortcutter@] d.
386166 [luke.gru@gm ] I'm an idiot, I just forgot that instance methods defined in class
386167 [luke.gru@gm ] have read before I posted above.
386174 [shortcutter@] Plus, you will have one pair of accessors for "cl" and a few more