105081-106305
104865-106709 subjects 105275-106468
^ Help with one-liner
105081 [pmateescu no] I'm having problems with an one-liner (ruby 1.6.8 (2003-02-25)
+ 105084 [halostatue g] ping localhost | ruby -e "$<.readlines.each { |line| puts
| + 105087 [pmateescu no] Thanks.
| + 105094 [martindemell] Yes, I found that one out the hard way too (totally mystified me).
+ 105086 [g intersect-] Probably line endings - windows line endings are "\r\n" - and chomp!
+ 105088 [aredridel nb] You're one windows, so the line ending coming out of ping is \r\n, not
| 105089 [pmateescu no] $ ping localhost | ruby -e '$<.each_line { |line| chomp1 = line.chomp();
| + 105090 [aredridel nb] Looks like the third one was close...
| | 105092 [pmateescu no] ... but no cigar :)
| | 105098 [aredridel nb] Wow. I'd be curious to know. Perhaps Ruby doing some misinterpretation?
| | 105146 [angus quovad] [Aredridel <aredridel@nbtsc.org>, 2004-07-02 19.17 CEST]
| + 105095 [sean celsoft] Just remember what \r does. In your original code, if \r appeared at the end
+ 105117 [drbrain segm] The real reason has been adequately addressed in the rest of this
^ Status of Interbase/Firebird interface
105091 [peter_jacobi] Can someone please clarify the situatiuon regarding
105181 [mental gmail] All fb related listed packages require fb1.5, so you should be ok. I
^ bug in String#to_f in 1.9 (was Re: ruby-dev summary 23690-23762)
105100 [pbrannan atd] I think it's a good idea to print NaN and Inf uniformly across all
105159 [ocean m2.ccs] I think this patch works...
105161 [pbrannan atd] Right, I forgot strtod was a macro.
^ How to detect if variable has been defined yet?
105102 [jm zzzzzzzzz] I'd like to detect if a variable has been defined yet. Is this possible
+ 105101 [surrender_it] if variable
| + 105104 [dblack wobbl] Have you tried it? :-)
| | + 105106 [dblack wobbl] x ||= -1
| | + 105111 [surrender_it] oops, sorry for disinforming :)
| | + 105118 [drbrain segm] Use conditional assignment over defined?.
| | + 105143 [g_ogata optu] x = (x || 0) + 1
| + 105105 [ahoward noaa] unless variable == nil has semantics.
+ 105107 [sean celsoft] if defined?($total)
105113 [jm zzzzzzzzz] Thanks! This was exactly what was needed and it works.
105259 [bob.news gmx] "Randy Lawrence" <jm@zzzzzzzzzzzz.com> schrieb im Newsbeitrag
^ define_method to add a Class method?
105121 [walter mwsew] How do you use define_method (or an equivalent) to add a method to a
105123 [sean celsoft] I'd stick with eval; it does the job. Something like this should work just
+ 105124 [walter mwsew] That was how original version worked, and I can seem to port
| 105125 [sean celsoft] class MyClass
| 105129 [walter mwsew] method
| 105131 [pit capitain] c = Class.new do
| 105154 [walter mwsew] Excellent, That does work as expected. I did try that previously,
| 105170 [nobu.nokada ] (class << self; self; end).class_eval do
| 105175 [walter mwsew] Thanks Nobu,
+ 105130 [pbrannan atd] Using eval doesn't allow the method to be executed in the context in
^ Simple mod_ruby counter using global variable
105126 [jm zzzzzzzzz] I'm guessing this is because each Apache process has its own Ruby
+ 105132 [sean celsoft] You could run your application as a stand-alone server and have your CGI call
| 105151 [rcoder gmail] A file would work, but you'd have to be careful to lock it before each
+ 105247 [mortonda dgr] I would use the Application or Session objects in the Ruby::ASP environment.
^ Ruby 1.8.2 to be released on July 7?
105127 [jm zzzzzzzzz] Is Ruby 1.8.2 going to be released on July 7? I heard a rumor that it
+ 105128 [mailinglists] This is the last email interaction between matz and Sean E. Russel on
| + 105381 [ser germane-] Read this conversanion carefully. It does not mean that Ruby 1.8.2
| + 105712 [curt hibbs.c] Does anyone have any more info on this?
| + 105713 [halostatue g] I would personally wait; I know there are probably people waiting on
| + 105727 [mailinglists] I have not seen any more comments about this on the Ruby Core Mailing
| + 105780 [curt hibbs.c] producing
| + 105784 [curt hibbs.c] This morning I decided to do just this, but I'm having trouble subscribing
| 105883 [botp delmont] keep on releasing rc-ies so that we can check the distro (not really the
+ 106305 [jm zzzzzzzzz] The following was from matz today in comp.lang.ruby.core
^ irb
105133 [Ara.T.Howard] is there a way dump executed commands to a file?
105139 [surrender_it] does this help?
+ 105141 [ahoward noaa] yes! thanks!
+ 105229 [vjoel PATH.B] def dump_history(file=nil)
^ slow method searching?
105134 [lists zara.6] $ time ruby -e'a=(1..200000).to_a; a.classx'
+ 105135 [dave pragpro] Perhaps the time is being spent constructing the arrays?
| + 105137 [rcoder gmail] Dave,
| + 105140 [lists zara.6] $ time ruby -e'a=(1..200000).to_a; a.classx'; # slow
+ 105136 [sean celsoft] You're timing how long it takes the OS to load the time program, the Ruby
| + 105138 [rcoder gmail] Sean,
| + 105153 [drbrain segm] The OS does not add 35 seconds of variance.
| 105155 [sean celsoft] I think they've found the answer already, read back a few posts in the thread.
+ 105142 [g_ogata optu] Ok, my turn to guess... :)
| 105168 [lists zara.6] I guess you're right.
| 105169 [lists zara.6] a) adding an optional argument to inspect, which is the maximum number
| + 105171 [dooby d10.ka] ## 2 * id
| + 105178 [pbrannan atd] This will break classes that define their own inspect method.
+ 105144 [angus quovad] [David Garamond <lists@zara.6.isreserved.com>, 2004-07-02 23.56 CEST]
| 105147 [rcoder gmail] eval.c from ruby-1.8.1, in 'method_missing', lines 4908-4910
+ 105145 [batsman.geo ] When the exception is printed, a string representation of the associated
105150 [batsman.geo ] batsman@tux-chan:/tmp$ cat dfghdfg.rb
^ Windows installer
105149 [harryo zip.c] I just noticed that, while there's an ri.bat in the ruby bin directory,
105172 [surrender_it] rj is not part of the core ruby distribution, why do you expect it to
105174 [harryo zip.c] Ah. It's just that I noticed an "rj" shell script in the directory
105196 [surrender_it] nevermind :)
^ rb_time_new() change in 1.8.2?
105162 [djberg96 hot] Contrary to http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/2725,
+ 105163 [matz ruby-la] ??
+ 105165 [dooby d10.ka] It isn't contrary. In the same thread, Nobu explained why the
^ submitting bug reports
105166 [pbrannan atd] What is the appropriate way to submit a bug report against the ruby
105167 [dooby d10.ka] As to ruby bug reports, I like seeing the English reports here
^ uncaught exceptions
105173 [csshsh struc] is there a way to catch uncaught exceptions globally for a
105177 [pbrannan atd] The simplest way is to catch the exception at the topmost level of your
^ win32ole and uint64 handling
105180 [djberg96 hot] Ruby 1.8.2 RC2
105273 [masaki.suket] Unfortunately, it is not easy to fix this problem.
^ A trivial irb question
105182 [mjkay stanfo] Please excuse this infantile question.
105189 [dooby d10.ka] I think folks here will need to know the platform you're running on
^ Symbols & yaml (was Re: SOT (slightly offtopic): General OOP question)
105184 [dooby d10.ka] Sorry, I just noticed this and it almost spoilt
105185 [ahoward noaa] i had NOT noticed that. thanks for the heads up!
^ SQLite/Ruby update pending
105186 [jgb3 email.b] I'm getting ready to release a "release-candidate" of SQLite/Ruby 1.3.0.
+ 105190 [ahoward noaa] sounds good. hopefully you know that it goes without saying that you can take
| 105191 [jgb3 email.b] Thanks, Ara. I appreciate that. However, I always worry when doing that,
| 105198 [ahoward noaa] just keep up the good work!
+ 105206 [surrender_it] a quote() or escape() method built in would be useful imo
105219 [jgb3 email.b] - Jamis
105220 [gsinclair so] Does that take care of NULs?
105221 [jgb3 email.b] What do you mean? Can you give me an example?
105222 [gsinclair so] SQLite, I believe, chokes on strings that have NUL (0) characters in
+ 105226 [jgb3 email.b] I see what you mean. I've been using base64 to encode/decode as well.
| 105241 [ahoward noaa] considering the nature of the binary data i am usually working with (satelite
+ 105228 [mailinglists] SQLite 3.0 has support for BLOB's.
^ [ANN] Alexandria 0.3.0
105187 [lrz gnome.or] Alexandria 0.3.0 has just been released!
^ Best way to determine if running on windows or unix-based system
105192 [carl.youngbl] I'm going to try using Ruby/DL to write a full-fledged ruby extension
+ 105193 [jgb3 email.b] ruby -e "p RUBY_PLATFORM"
+ 105195 [pan erikveen] <code language="ruby">
+ 105197 [nobu.nokada ] It depends on what you want to know. For instance,
| 105201 [carl.youngbl] Okay, forgive me for my ignorance but I thought a "ruby extension"
| 105202 [nobu.nokada ] Well, I guess it would be possible but wouldn't be called
+ 105200 [djberg96 hot] if File::ALT_SEPARATOR
^ _why
105194 [carl.youngbl] _why, I once again sojourned into the jabberwockian vastnesses of your
105214 [martindemell] +1
^ [ANN] SQLite/Ruby 1.2.9.1
105199 [jgb3 email.b] SQLite-Ruby is a module that allows Ruby programs to interface with
^ Problem with "eval"
105204 [dirk.einecke] I've a id and a value. Now I want a variable with id as name and the
+ 105210 [nkh SP_tele2] eval "#{id} = '#{value}'"
+ 105212 [eule space.c] ~ eval %Q{ $#{id} = #{value.inspect} }
105213 [dirk.einecke] Okay. It seems that a struct is a better way for me. I will try it on
^ Re: Problem with eval
105205 [dross code-e] sorry but your syntax is wrong. Also.. value is a string, so when you eval
^ Beginner question
105207 [mikael.x.lar] Fulton's" book "the Ruby way", but I haven'thad time to read it until now.
+ 105208 [hal9000 hype] I think you're failing to understand that Ruby's classes are "open" --
+ 105209 [Mike DeleteT] What you're seeing is the fact that you can reopen a class and add new
^ Regular expression question
105215 [ gm navel.gr] I have a question regarding regular expressions. Let me explain
+ 105216 [dblack wobbl] Actually gsub *is* the /g equivalent :-) The problem is that you need
+ 105217 [msparshatt y] try this
+ 105218 [demerzel gma] str.gsub!(/\{b\}(.*?)\{\/b\}/, '<b>\1</b>')
| 105264 [ gm navel.gr] Thank you all for the answer!
+ 105237 [johnatl mac.] I realize you've gotten what is probably the most correct answer,
105270 [chneukirchen] You would need .gsub! here, but str.tr('{}', '<>') is even better.
^ [ANN] Presentation proposals for RubyConf 2004 now being accepted
105223 [dblack wobbl] We're pleased to announce that proposals for presentations at RubyConf
^ [ANN] Ruby-GetText-Package-0.6.0
105224 [mutoh highwa] Ruby-GetText-Package-0.6.0 is now available.
^ http.post problems with base64 encoded data
105230 [jm zzzzzzzzz] I can do http.post using simple variable values but I'm having some
^ http.post() problem only when using base64-encoded data
105231 [jm zzzzzzzzz] I'm able to do a simple http.post() but when the data I'm posting is
+ 105232 [patrick hexa] What are you running on the server? It looks to me like 'cgi' or
+ 105233 [jm zzzzzzzzz] Problem solved.
^ Which version of Ruby is most widely used?
105234 [jm zzzzzzzzz] What version of Ruby are most of us currenting using?
+ 105235 [mailinglists] This was for a bug in the Pragmatic Programmer Installer.
| + 105239 [jm zzzzzzzzz] First, I don't think Ruby 1.8.1 for Windows sucks and I apologize if
| + 105266 [quixoticsyco] Just to clarify, this analogy does not quite match because there is a
| 105277 [dave pragpro] Just to be accurate here, although we kicked of this work, there's now
| 105282 [halostatue g] Should it perhaps then be called something other than the "Pragmatic
| + 105303 [curt hibbs.c] I've been calling it the "Ruby Installer for Windows", and informally
| + 105318 [dave pragpro] Perhaps it should, should anyone feel strongly about this. The team
| 105341 [jbhurst attg] open. I typically install Perl & Ruby and other stuff from the CygWin
| 105366 [halostatue g] I rarely drop into Cygwin to do anything useful. I never use the
+ 105236 [rich lithino] I use the latest stable release of the one-click installer - and I get
+ 105238 [surrender_it] latest snapshot on both windows and linux (actually latest one-clieck
+ 105242 [ahoward noaa] i have always just compiled the stable-snapshot and never had a problem and
+ 105305 [rcoder gmail] Well, if you're asking about the most-used by developers actively
^ [ANN] aeditor 1.0 released
105240 [neoneye adsl] dependency#2, fxruby
+ 105243 [sean celsoft] Aeditor is a text editor with syntax highlighting?
| 105244 [neoneye adsl] yes.. I forgot to mention that.. I am a little tired.
+ 105245 [nobu.nokada ] Just a question; does this change tabstop size? Can it change
| 105246 [neoneye adsl] no.. sorry, not at the moment.
+ 105280 [eule space.c] @font.create is not executed before onCanvasPrepare, and the font thusly
| + 105283 [surrender_it] well, it's strange anyway that on linux this does work :/
| | 105288 [jamesUNDERBA] Ah. Opponent-based software. Yes, I think I seen some of that lately.
| + 105291 [neoneye adsl] Wonderful!
| | + 105296 [mailinglists] emacs has about 100.000 lines of C code to avoid the slowness of
| | | 105297 [neoneye adsl] wew.. thats many lines, my project has ~3400 lines of source code
| | | 105309 [surrender_it] if we just had a ruby ->c++/ObjectiveC translator..
| | + 105302 [curt hibbs.c] It would, indeed, be interesting to see an aeditor freeride plugin. One of
| | | 105304 [neoneye adsl] I need to enhance the editor sligthly more, before I give it a shot.
| | | 105313 [curt hibbs.c] Yes, FreeBASE is already a completely standalone system. Rich Kilmer (its
| | + 105306 [neoneye adsl] I think I have added your suggested idea.. however I don't know if it changes
| + 105294 [lyle.johnson] I will not argue the merits of (potentially) reinventing the wheel
+ 105383 [neoneye adsl] I hope I have fixed the font issues, so that it now works
105434 [eule space.c] Thank you for your effort, sorry for not answering. I have tried this
105435 [neoneye adsl] I had a chat session with Robert Klemme, who experienced almost the same,
105462 [neoneye adsl] Today Robert Klemme got it hunted down.. the recursion no longer happens.
+ 105476 [mailinglists] Maybe someone can help me too. Is there any unicode monospaced font on
| 105554 [nhodgson big] With Japanese, 'monospaced' tends to mean 'duospaced' instead with full
+ 105489 [eule space.c] Your last fix got the editor working. [...]
105542 [botp delmont] 1. I prefer courier new for default font (as attested by this email :-)
105555 [neoneye adsl] im on a non-windows box where there are no 'courier new' font,
^ [ANN] Diff::LCS 1.0
105249 [halostatue g] I've been very busy lately on an ancillary project for Ruwiki because
^ Copland an IOC Containers in Real Use
105250 [carsten circ] every so often I go and read the wonderful stuff, that Jamis has put
105251 [jgb3 email.b] I'm so glad to hear that the documentation is readable. :)
105276 [michael.camp] I use a little IOC in java, and for me it was one of those
^ [ANN] Diff::LCS 1.0.1
105252 [halostatue g] Gavin Sinclair pointed out a couple of problems. These have been
^ YAML questions/ideas
105253 [hal9000 hype] I'm pausing from doing the hamster dance long enough to
+ 105257 [eban os.rim.] - !ruby/object:SomeClass { foo: 23, bar: 37, bam: 237 }
| 105268 [hal9000 hype] Arigato!
+ 105590 [ruby-talk wh] Yes. Very soon.
105593 [hal9000 hype] Ahh, cool, cool. Thanks!
^ Transforming...
105254 [Meino.Cramer] In my program there is a hash of this form
+ 105255 [gsinclair so] I presume you mean you just want an array of the *values* in the hash?
| 105256 [Meino.Cramer] whow! what a fast reply ! Thank you very much ! :)
| + 105258 [gsinclair so] Sorry, Meino, I don't understand what you want. You want to transform 'a'
| | 105265 [Meino.Cramer] ...oh,oh,oh...I think I have started a great Ruby-BigBang...
| + 105261 [harryo qiqso] How about ...
| + 105262 [bob.news gmx] "Meino Christian Cramer" <Meino.Cramer@gmx.de> schrieb im Newsbeitrag
| 105263 [harryo qiqso] Yes, and if I'd read Gavin's whole message, I'd have realised I was just repeating what he said, too :-) ... except that I didn't realise there was a #values method!
+ 105272 [dmertz free.] b = a.values
+ 105285 [vladare yaho] b = a.values
^ Wiki spam
105269 [gsinclair so] Folks,
+ 105271 [bob.news gmx] "Gavin Sinclair" <gsinclair@soyabean.com.au> schrieb im Newsbeitrag
+ 105279 [surrender_it] add a uman detection system on the edit page. Mothing fancy, just
+ 105299 [patrick hexa] Do the spam attacks seem come from the same set of individuals, or are
| 105301 [jgb3 email.b] FWIW, I've got a CAPTCHA library on rubyforge that does just this. As
+ 105300 [aredridel nb] Yes. Alter the engine so that external URLs go to a non-indexed-by-
105316 [dga lcs.mit.] This removes the long term incentive, but the spammers can't
105319 [aredridel nb] I'm not sure. It seems to have effectively cut down on link-spam in a
threads.html
top