354626-355237 subjects 355036-355476
^ Debugger pains
354848 [hypermeister] I am testing a script using the built-in debugger (running 1.8.6 -
354861 [jan.svitok g] or
^ [ANN] Rice 1.3.1 - Bug fixes and memory management tweaks
354852 [jameskilton ] ========================================
^ How to modify a text value in a xml?
354854 [lxybhbh gmai] I met a problem with xml. I can't write to the file directly, here is my
^ File::exists?( "filename with a blank in it" )
354867 [ralphs dos32] Newbie here/
+ 354868 [matt harpsta] The issue isn't so much that you have a blank in it as that you've added
| 354873 [ralphs dos32] Isn't a Windows pathname with surrounding double quotes a valid
| + 354875 [Rob AgileCon] Well, perhaps you're thinking of the quotes that are needed/used to
| + 354900 [w_a_x_man ya] The quotes are not part of the file-name.
| 354908 [ralphs dos32] Yes, you are quite right
+ 354869 [Rob AgileCon] Well, probably to NOT put the quotes into the filename.
+ 354892 [luislavena g] .exe"'
^ [ANN] bellhop 1.0.0 released
354874 [gregory.t.br] It is my great pleasure to release this new wonderful tool.
354941 [gregory.t.br] For the less adventurous, here are some instructions on how to get
354943 [ibc aliax.ne] =2D -> /%07
354944 [gregory.t.br] That's expected. There isn't a / route. Do you have your system
354947 [ibc aliax.ne] I think my laptop has no system bell or I dissabled it long time ago :)=20
354953 [gregory.t.br] That would explain it.
^ redirecting output ruby and from stdout results in blank file
354877 [steve.c.hann] attempting to capture the output of stderr and stdout. The relevant
354880 [jonathan jmn] It's possible that I'm misinterpreting what you want here, but you may
354881 [ibc aliax.ne] s.
354884 [steve.c.hann] ams.
354885 [gwtmp01 mac.] Is the standard output file being created and then is found to be empty =
^ A.module_eval question
354878 [tennisbum200] module A
354897 [shortcutter ] What version of Ruby did you use? IIRC in 1.8 versions the lookup of
^ Re: bellhop 1.0.0 released
354883 [sasa hakeraj] And what is it?
354886 [gregory.t.br] Unpack the gem and read the source.
354887 [ibc aliax.ne] A brief description could invite the people to install and try the gem :)
+ 354888 [justincollin] I believe the idea is that it is a surprise.
+ 354889 [gregory.t.br] It is just a fun little exploit based on the recently announced
+ 354891 [james.britt ] When I saw it was from Greg I just went and installed it. ;)
^ [ANN] rspec 1.3.0 Released
354895 [dchelimsky g] rspec version 1.3.0 has been released!
^ [ANN] rspec-rails 1.3.0 Released
354896 [dchelimsky g] rspec-rails version 1.3.0 has been released!
^ Integration testing ..
354899 [hemant.bharg] In urgent need of you people .. :) Actually i am writing integration
+ 354911 [richard.conr] I am assuming you are using Rails? You might wish to direct your query on
+ 354913 [b.candler po] That looks like Rails code. Please ask your question on a Rails mailing
354914 [hemant.bharg] Ohh ..
^ How to close a TCP socket? (TCPSocket#close doesn't close it)
354901 [ibc aliax.ne] TCPSocket#close the connection remains as OS level for long seconds (minute=
354902 [larschbelunk] tes).
354903 [ibc aliax.ne] Yes, I'm realizing of it right now. There must be some error in my code whi=
+ 354904 [jgabrielygal] The
| 354906 [ibc aliax.ne] Thanks a lot, but as I've explained I don't see TIME_WAIT, my issue is=20
+ 354905 [ibc aliax.ne] I've found the cause of my issue. My ruby script listens into a pipe and wh=
354912 [b.candler po] When I run this code, substituting a 'www.google.com' and port 80, I see
354917 [ibc aliax.ne] I really sorry, I was doing a "grep ESTABLISHED" in my netstat command...
^ XML Manipulating
354907 [anandhthiyag] Can anybody there help me in solving the following issue.
+ 354909 [ibc aliax.ne] Of course it can be manipulated to get your desired output. You must use a =
+ 354921 [mike.dalessi] I've cross-posted my reply to nokogiri-talk, which is where followup
| + 355477 [anandhthiyag] Thanks mike. The solution solved my problem to a greater extent but with
| | 355488 [anandhthiyag] <?xml version="1.0"?>
| + 355603 [anandhthiyag] Dear Mike
+ 355001 [dvohra09 yah] Anandh
^ Is 'rescue' expensive ?
354910 [sentinel.200] does the rescue set up anything internally that will make this
+ 354916 [ibc aliax.ne] Ruby 1.9 has Array#size, sure.
| 354919 [sentinel.200] I looked at http://yardoc.org/docs/ruby-core/Array and it did not show a
| 354922 [ibc aliax.ne] irb(main):023:0> RUBY_VERSION
| 354923 [sentinel.200] Yes, i just checked myself. "size" matters :-).
| 354927 [ibc aliax.ne] IMHO yes=20
| 354928 [ibc aliax.ne] =2E..but I was wrong as Kirk has explained in a new thread :)=20
+ 354926 [wyhaines gma] To address the original question, the use of rescue does impart a
+ 354990 [albertschlef] rescue's impact is negligible.
354994 [sentinel.200] Thanks a lot for your answer. This brings up a question on usage of
355009 [wyhaines gma] "Code smell" is a weak concept that people use when they can't give
355011 [rick.denatal] One of the things that seems to be mostly missing from this discussion
^ 3D with Ruby (Ogre ?)
354915 [kadelfek kad] I would like to do 3D with Ruby.
+ 354918 [jameskilton ] Ogre.rb is not at all ready for use right now, but other than my work there
| 354924 [kadelfek kad] Yes, I found so few informations about that... I heard about Scattered
+ 354920 [b.candler po] The GL gears example exists for ruby (gears.rb). I have a copy lying
+ 354925 [brabuhr gmai] ...
| 354929 [default spir] 2010/1/12 <firstname.lastname@example.org>
| 354995 [kadelfek kad] The shaders are nice. Is OpenGL able to use shaders ? Or you made it to
| + 354999 [andrea.fazzi] What kind of bug? Feel free to open an issue on github about it.
| | 355010 [kadelfek kad] I remember I have had this kind of problems, trying to use OpenGL.
| | 355012 [andrea.fazzi] Marc-antoine,
| + 355028 [pg thimian.c] OpenGL Shading Language <http://www.opengl.org/documentation/glsl/> at
| + 355030 [michael.broo] All you need to do is write the shaders and load them into the GPU via
+ 354935 [michael.broo] I used the the gears.rb as the basis for a OpenGL programmable shader (i.e.
355073 [hramrach cen] e.
+ 355080 [brabuhr gmai] .e.
+ 355084 [michael.broo] I implemented the OpenGL 2.0 or greater version of the shader functions so
355108 [hramrach cen] that
355109 [pg thimian.c] They weren't particularly good until recently, but they are there.
355118 [hramrach cen] These *are* the X11/Mesa drivers and they *are* bad as in having few
355119 [michael.broo] Sorry to hear that. I do most of my work in Windows. I just booted my
+ 355120 [hramrach cen] ooted my
| 355125 [kadelfek kad] I tested Ruby-processing and I saw good 3D samples made thanks to
+ 355244 [hramrach cen] ooted my
^ Using underscores for "private" instance variables?
354930 [cohen.jeff g] I noticed that Rails core is adopting a style of using an underscore
354931 [gregory.t.br] As things get sufficiently, complex, I think that something like this
+ 354933 [djberg96 gma] y.
+ 354989 [cohen.jeff g] y.
+ 354991 [gregory.t.br] In either case, it's your fault if you don't read upstream source.
| 355598 [colinb2r goo] Sorry for being a bit late to this thread.
+ 354993 [boesemar gmx] I don't think it's about avoiding name clashes but a kind of 'Hungarian
^ Binding scope
354932 [thisisdaveb ] I'm trying to implement a simple parser and quite likely going about it
+ 355121 [thisisdaveb ] Thought I'd try one poke to see if I could resurrect this. I'm still
+ 355124 [marnen marne] You are aware of the serious security problems with this, right?
355127 [thisisdaveb ] Thanks very much for the reponse.
355128 [marnen marne] Then you shouldn't need to do this in the first place. If there's no
355129 [thisisdaveb ] To give you a bit of background to this - I've got a "macro" that is
+ 355148 [usenet-nospa] Check with a rails group, but I'm pretty sure you'll find that you can,
+ 355151 [josh.cheek g] I don't really see the benefit of storing the template in the database, but
355152 [josh.cheek g] Hmm, formatting looks really bad up on my email, here is a pastie for it
355153 [thisisdaveb ] Josh, thanks VERY much for the response. I'm going to digest it and
355191 [marnen marne] No. Better to go for a solution without the security hole. It should be
^ NOOB Question on Instance Variable
354945 [jet whidbey.] I have a class photo. It belongs_to a project.
+ 354949 [ibc aliax.ne] is=20
| + 354955 [jet whidbey.] Oh,
| | + 354957 [ibc aliax.ne] Would you ask about Apache custom modules in a maillist of C++?
| | + 354958 [pg thimian.c] It's a generally Ruby-related question. Your issue isn't necessarily
| | + 355046 [usenet-nospa] There are rails-related questions that are Ruby questions, but not all
| + 354980 [phrogz mac.c] at is
+ 354950 [phrogz mac.c] Looks like you're talking about Ruby on Rails, not Ruby the language.
354954 [jet whidbey.] Phrogz,
354956 [pg thimian.c] *Is* it the exact same code? Do you search for @displayphoto before or
354961 [jet whidbey.] Yes,
354964 [pg thimian.c] Obviously, the code is different then, is it not?
354970 [jet whidbey.] Yes everything was exact.
^ TCPSocket doesn't detect remote disconnection inmediatelly
354946 [ibc aliax.ne] connection established by a Ruby client.
354969 [b.candler po] Try writing a C program which uses the Unix socket API directly. It will
354975 [ibc aliax.ne] I'll do it. But it would be great if at least I could know in advance if wh=
+ 354976 [ibc aliax.ne] CP
+ 354978 [synfinatic g] what
354981 [ibc aliax.ne] Understood, thanks a lot.
354985 [synfinatic g] ts
^ instance_eval with local variable
354948 [phrogz mac.c] obj = Object.new
+ 354963 [phrogz mac.c] FWIW, there is a workaround I've come up with. Instead of trying to
| 354965 [xenogenesis ] with
| 354967 [xenogenesis ] up with
+ 354966 [b.candler po] I believe your lambda is bound to the @who in the scope where it was
354982 [phrogz mac.c] @who =3D "main"
^ SPOJ ? Test for end of file input
354951 [aldric trevo] It's pretty trivial, but it doesn't have a well-delimited "end" to it.
+ 354952 [aldric trevo] Well, with some research on the command-line arguments, I've now shown
+ 354968 [b.candler po] gets will return nil on end of file.
354972 [aldric trevo] Ah! And the light comes on and blinds me. Thank you!
+ 354973 [josh.cheek g] Ugh, sat down and played with it, and now I remember why I gave up on SPOJ,
+ 354998 [shortcutter ] I would do
355004 [b.candler po] Use #each_line if you want to do that. Ruby 1.9 removed #each from
355006 [shortcutter ] Hmm, both #each and #each_line work on 1.8.7 and 1.9.1. But you're
^ Instance Variable
354959 [jet whidbey.] If you have a class 'Thing'
+ 354960 [steve stevek] Variables can be named whatever you'd like. Feel free to use
+ 354962 [ibc aliax.ne] local_aaa =3D Thing.new
| 354971 [jet whidbey.] Inaki,
+ 355045 [usenet-nospa] How far do you think you'd get if you could only use "@fixnum" for numeric
^ [Q] WIN32OLE memory leaks
354974 [cremes.devli] In my ruby code I am making a call out to a COM object that is
354977 [brabuhr gmai] Some code might be helpful (and maybe a reference to the old article
^ Re: WIN32OLE memory leaks
354979 [luislavena g] =A0
355014 [cremes.devli] Sorry for not providing more details. I actually thought this might be
+ 355018 [brabuhr gmai] You see the same behavior even skipping the interaction with mongo?
| 355034 [cremes.devli] Running it with 1.9.1-p243 had the same results. I couldn't figure out
| + 355035 [brabuhr gmai] ws
| + 355156 [brabuhr gmai] ws
| 355177 [cremes.devli] I'll give ironruby a try on Monday when I get back into the office.
| 355179 [cremes.devli] I had a few minutes to try this out before I left for the day. Alas,
+ 355130 [masaki.suket] How about calling GC.start before requesting the next batch?
| 355144 [cremes.devli] Calling GC.start does not fix the problem. The program continues to
| 355208 [masaki.suket] Thank you for testing calling GC.start.
| 359232 [cremes.devli] I have new information on this WIN32OLE memory leak.
| 359234 [wruyahoo05 c] COM has a fairly elaborate protocol for memory management
| 359307 [cremes.devli] I've looked all over the Microsoft dev site at the COM documentation. I can't find anything that describes a complex memory management protocol. That isn't to say it isn't real just that I can't find it.
| 359315 [wruyahoo05 c] Complex or my fairly elaborate protocol may be a little strong. MS has
| 359596 [cremes.devli] I have continued to chase this problem down. I think I may have a lead, but I need someone familiar with the win32ole.c code to confirm or deny my suspicions.
| 359597 [cremes.devli] I should have noted that the code snippet comes from ruby 1.9.1 p-376.
| 365124 [cremes.devli] I have discovered the root cause of this problem. The good news is that it isn't a problem with the Ruby WIN32OLE implementation.
+ 355171 [brabuhr gmai] def object_count
^ ffi, kerberos
354983 [djberg96 gma] I'm trying to wrap two function calls from kerberos, krb5_init_context
+ 354984 [djberg96 gma] ly,
| 354987 [shawn42 gmai] You may want to post this to the ruby-ffi mailing list.
+ 354988 [phasis gmail] ad
355013 [djberg96 gma] y,
355019 [luc honk-hon] The one bit you are missing here is that krb5_context is not a struct. =
355037 [djberg96 gma] thout knowing the size of the struct. I assure you that it would complain :=
^ Re: TCPSocket doesn't detect remote disconnection inmediatelly [SOLVED]
354986 [ibc aliax.ne] I'm not talking with a HTTP server, but with a SIP server. When the SIP ser=
^ how to judge the command result of batch by Net::telnet
354992 [nuaadupuliu ] telnet = Net::Telnet::new("Host" => "192.168.0.16",
355005 [b.candler po] Yes, that's basically what you'll need to get it back from telnet.
355216 [nuaadupuliu ] thank you very much Brain! before that I have known that ssh could get
355217 [nuaadupuliu ] see the help information in windows
^ Ruby Regex
355002 [sriram.varah] I have a string as a = "&0&1"
355003 [b.candler po] That's because \& has a special meaning in a replacement string ("the
+ 355007 [shortcutter ] But it's only special when preceded by a backslash, which is special
| + 355015 [marnen marne] ...and Ruby's stupid backslash handling strikes again. This is a
| | 355023 [gwtmp01 mac.] Is this really a Ruby snafu? It seems like it would be inherent in
| | 355025 [marnen marne] Yes. The problem is that Ruby "helpfully" does another level of
| | + 355026 [fxn hashref.] I don't understand your point. The backslash is a special character in
| | + 355027 [b.candler po] It's necessary because it lets you use sequences like \n in
| | 355032 [marnen marne] I know that.
| | 355049 [shortcutter ] For me there is actually something weird about Ruby's escape handling
| | 355054 [b.candler po] I think the principle is "single quoting does the absolute minimum
| | 355056 [shortcutter ] Hmm, I never thought of it that way. I'm not sure I like this principle th=
| + 355017 [fxn hashref.] String literals have a one-pass escaping at parse time, so that
| 355031 [marnen marne] Yes, I see that now. I wasn't aware that gsub did an extra parsing
+ 355048 [sriram.varah] Thanks Brian, Robert and Xavier for your explanation. It was very
^ [ANN] Ruby Setup 5 (setup.rb)
355016 [transfire gm] Ruby Setup 5
^ Bug with end of string characters in regex?
355020 [digger250 gm] /\A\n\Z/m.match("\n\n") => #<MatchData>
+ 355021 [aldric trevo] Check out rubular.com
+ 355022 [digger250 gm] Looks like I've solved my own problem the \Z in ruby doesn't have the
355024 [jgabrielygal] \z end of a string
355057 [shortcutter ] Cheers
355058 [jgabrielygal] Thanks.
^ suggestions for using Rack-based Ruby apps on Windows?
355029 [nick nick-br] At my office, we have a Windows/IIS server hosting some CGI-based Ruby
355033 [pg thimian.c] allows Ruby apps to use the CAS protocol) can authenticate against AD,