109920-115372

109728-111478 subjects 110155-110785

^ Shortest if Assignment Statement
109920 [zdennis mkte] I am playing with different assignment statements and I am using the
109922 [dblack wobbl] I'm not quite following.  What's not working as you'd like exactly?
+ 109924 [assaph avaya] Not a generic answer, but in this case why don't you use Hash#default ?
| 109926 [zdennis mkte] Ah, beautiful! I didn't even know I could do a thing like that. Thanks
+ 109925 [zdennis mkte] hsh = { '*' => '(*)' , 'a' => '(1){2}' }
  109927 [dblack wobbl] Whoops, I fell into the irb trap :-)
  109928 [zdennis mkte] a = hsh[val] || hsh['*']

^ MatchData.each method.....no "next" ?
109929 [zdennis mkte] process = proc { |str,val|
+ 109931 [zdennis mkte] m.each{ |v| ...}
+ 109933 [dblack wobbl] m isn't a MatchData object; it's an Array (returned by scan).  'next'

^ YAML and line numbers
109932 [jgb3 email.b] Didn't see this discussed in the archives...if I just missed it, I would
109978 [ruby-talk wh] Not in the Ruby extension.  This data is available in Syck, so it's
109979 [jgb3 email.b] conf = YAML.load( File.read( "package.yml" ) )
+ 109982 [ahoward noaa] yaml = <<-yaml
+ 109983 [ruby-talk wh] Well, yeah.  You'll never need the line number for every object, so
  109985 [jgb3 email.b] That would work fine for my purposes as well. Whichever ends up being

^ Re: determining ruby interpreter
109936 [assaph avaya] Works on windows and cygwin, but you might have to add ".exe" to spawn
109940 [ahoward noaa] really?  the install name doesn't include the extention then?
+ 109942 [khaines enig] This works reliably to get the full path to the interpreter on both *nix and
+ 109943 [nobu.nokada ] It doesn't, but EXEEXT is not needed by system and spawn.
| 109977 [ahoward noaa] tricky.  what is spawn?!
| 110024 [nobu.nokada ] As well as command.com/cmd.exe, some suffixes can be omitted.
| 110025 [shanko_date ] I believe it exists (not sure if on *ALL* versions) as
+ 109944 [khaines enig] ruby = File.join(::Config::CONFIG['bindir'],

^ Re: splat behavior with different versions of ruby
109938 [assaph avaya] where

^ i18n, m17n
109946 [aredridel nb] Has any thought been given to ways to internationalize rdoc and ri?

^ compiling bdb
109947 [Ara.T.Howard] shouldn't this pick up 4.2?
109949 [decoux moulo] What is the content of src/mkmf.log ?
109975 [ahoward noaa] looks like all the conftest.c files testing for bdb features need to be
109976 [decoux moulo] If I'm right this mean that db-4.2 was compiled with pthread and not
109980 [ahoward noaa] i don't like the sound of that - i think i should compile bdb without pthread
109981 [decoux moulo] I don't understand : do you have compiled db-4.2 with pthread ?

^ Got stuck...
109954 [Meino.Cramer] may be my Enigma hacking has encyphered my brain also...but...
+ 109955 [emmanuel.tou] print(val + ?A).chr," "
| + 109956 [assaph avaya] below...
| + 109957 [decoux moulo] moulon% ruby -e 'val = 32; print (val + ?A).chr," "'
+ 109958 [Stephan.Kaem] print( (val + ?A).chr, " " )
+ 109959 [nml fjserv.n] I think you need to be a wee bit more explicit about what you want to print.
+ 109960 [martindemell] Other people have pointed the error out, but it's worth noting that
  109961 [decoux moulo] What error ?
  109964 [martindemell] Well, the reason ruby was issuing a warning, at any rate :)
  109966 [decoux moulo] and you find this normal ?
  + 109967 [botp delmont] ruby is enigmatic sometimes...
  + 109968 [martindemell] Wow - wasn't aware of that. What's the difference due to?

^ Curess + SIGWINCH
109969 [sigsegv alch] How do I get the new size of the changed xterm window?

^ Setting up environment variables
109974 [sarahtanemba] What would be the best way to set a bunch of system-wide environment

^ ri/YAML/Windows Problem
109988 [halostatue g] There is a display problem with ri on Windows, and it's related to
109990 [ruby-talk wh] Exactly which version of Ruby are you using?  Within the past few weeks,
109997 [halostatue g] I'm using 1.8.2-preview2. I'm in the middle of trying to get a new

^ [ANN] Rails 0.6.5 (AR 0.9.4, AP 0.8.0): Release of Contributors!
109993 [david loudth] I gather that most people are now familar with the RoR suite, so I'm
+ 110008 [transami run] NO!!!!!!!!!!!!!! I just lost my entire rails application. I had originally
| + 110009 [david loudth] Uargh. I'm terribly sorry to hear of your loss. I've instantly updated
| | 110016 [transami run] Perhaps calling it new_rails would be better (like new_model, etc.)?
| + 110017 [csshsh struc] quite honestly i think this shouldnt be there. why delete the
| | 110020 [david loudth] It's because it's just using the same Rake command as I were using
| + 110021 [flgr ccan.de] Regards,
|   110089 [transami run] Thanks, I checked it out. Unfortunately I'm using reiserfs, so there isn't any
|   + 110091 [cyclists nc.] For versioning, CVS. Then backup your local CVS repository (and any other
|   + 110108 [aredridel nb] I'm fond of subversion for versioning, and rsnapshot for backup and
|   + 110249 [mneumann nte] I'm using RBackup for my backups ;-)
+ 110111 [tunah.usenet] Cool! Time for some learning...
+ 110129 [mmirra liber] Any chance for a .rpa package soon?
| 110130 [batsman.geo ] You currently have rails 0.6.0-1 in the repos.
+ 110180 [jim freeze.o] I haven't been able to download the config video at nextangle
  110209 [robertm spel] Doesn't quite install under cygwin.
  110216 [david loudth] This is not a cygwin problem, but an example of how Rails is currently
  110219 [robertm spel] Ah, oh well time to stick a stock 1.8.x install on my box.

^ newbie programming question:
109998 [danb mojolin] I am trying to pass a variable to the backticks `` function, but it is
+ 109999 [hal9000 hype] command[0]=`ping #{host}`
+ 110000 [mental gmail] this line should be
+ 110001 [dblack wobbl] You can interpolate your variable using the #{...} construct, and
+ 110002 [Stephan.Kaem] command[0]=`ping #{host}`
+ 110003 [sdate everes] command[0] = `ping #{host}`
  110004 [WBrown isoft] Dan,

^ Ruby/Qt on Win32 via C++GPwQt
110005 [phlip_cpp ya] Considering this well-reviewed book...
110120 [ruby-lists l] i'm considering this for qt4...
110137 [phlip_cpp ya] mild or
110147 [ruby-lists l] lets put it a different way :)

^ More fun with unary * (was: Re: newbie programming question:)
110006 [dblack wobbl] I've been messing with the unary * a lot today, and thought I'd try it

^ Neat trick for Steckerboard of Enigma needed...
110010 [Meino.Cramer] The Steckerboard is a patch panel on some models of the Enigma.
+ 110011 [hal9000 hype] Would this work?
| 110013 [hal9000 hype] hash = Hash.new(*string.split(""))
| + 110014 [hal9000 hype] Haha, I'm being very stupid today.
| + 110015 [jgb3 email.b] Hal,
|   110018 [Meino.Cramer] Together were are unbeatable,hahaha !  ;O)))
|   110019 [hal9000 hype] The * expands the array, so that the call is in effect passing
+ 110012 [jgb3 email.b] Something like this, perhaps?

^ ruby-doc.org content snarfing
110022 [jamesUNDERBA] I received an alert E-mail today telling me that ruby-doc.org had
+ 110033 [aredridel nb] James -- is there a possibility of you providing a tarball of the whole
| 110036 [jamesUNDERBA] A tarball of the whole site would be close to 5 GB. That's including the
| 110038 [aredridel nb] Yeah, torrents make sense for anything over 10mb.
+ 110034 [mortonda dgr] Not sure if this is the problem, but I noticed that
| 110035 [jamesUNDERBA] Crawlers and spiders and such are fine.  They hit the site often.
+ 110058 [usenet andre] You should look at mod_throttle and set up a few .htaccess rules against
+ 110101 [nospam nospa] I highly recommend you look into mod_dosevasive.
  110104 [discord mac.] From what has been said, I doubt that the person who did this was being
  110109 [jamesUNDERBA] I've banned specific IP addresses and domain names.  If I get complaints

^ ruby, actors, continuations, Kernel#callcc
110026 [sean.zuzu gm] my current impression is that actors are basically pure-OO objects
+ 110028 [flgr ccan.de] I find that Continuations are easy to work with once you've got the
+ 110029 [mikael phubu] For me, there wasn't really an a-ha moment, at which point I immediately
| 110030 [mikael phubu] By the way, that code uses a lot of catch/throw, which is a typical use
+ 110031 [kristof vlee] Here is how I think continuations and actor theory work together. This is
| + 110032 [sean.zuzu gm] hey.  let me see how well i follow what say here...
| | 110048 [kristof vlee] Yes, that's right.  A 'continuation point' would be a special kind
| | 110100 [sean.zuzu gm] or, perhaps i'm over-thinking this because of the terminology and theory.
| + 110037 [ptkwt aracne] Sure, CPUs are not necessarily designed with this degree of parallelism
|   110115 [feldt ce.cha] Tell me you're planning a Ruby2FPGA compiler! Talk about edge vs other
|   + 110117 [sean.zuzu gm] not likely as an advantage over other languages...  such low level
|   | 110119 [feldt ce.cha] That last part was with tongue-in-cheek. I seriously doubt it would look
|   | 110182 [ptkwt aracne] There's certainly work going into converting C to gates especially with
|   + 110181 [ptkwt aracne] Well, that would be cool.
+ 110043 [martindemell] Not sure if you've done ths already, but what really helped me grok

^ anonymous first class modules
110040 [510046470588] does ruby have anonymous first-class modules?
110042 [bob.news gmx] "klaus schilling" <510046470588-0001@t-online.de> schrieb im Newsbeitrag

^ Reminder: EuRuKo 2004, October 9 and 10 in Munich (Mchen)
110045 [armin xss.de] everybody interested in coming, please update the wiki.
110062 [jamesUNDERBA] Oh, what luck!  I finally made some vacation plans, and I'll be in

^ Help
110047 [Balasudana26] Interesting newsgroup!

^ Ruby vulnerabilities
110049 [drossruby ya] Someone has been watching Ruby development closely :)
+ 110050 [dblack wobbl] Go for it!
+ 110051 [decoux moulo] Learn Japanese (it's a nice language) and subscribe to ruby-dev. It's
| 110054 [drossruby ya] I know Japanese is a nice language. I am trying to
+ 110053 [drossruby ya] I'm suprised
+ 110059 [catcher linu] The current 1.6 version of Ruby and versions 1.8.1 and 1.8.2 pre1 and 1.8.2
  110061 [drossruby ya] I know, thats why I sent another email after ;) I use
  110063 [catcher linu] I just re-read that. Sorry.

^ This naughty language of ours violates hallowed Structure Programming sophistries
110055 [phlip_cpp ya] Before Object Oriented Programming, people who studied the difference
+ 110056 [eyez illuzio] I've always believed that the key principle behind coding with scope in
+ 110057 [dblack wobbl] (I think of myself more as a Ruby*ist*, but so be it :-)
| 110080 [phlip_cpp ya] Guys, everyone needs to look "sophistries" up in a dictionary.
| + 110083 [dblack wobbl] Take them or leave them, but my comments were made in full knowledge
| + 110084 [jgb3 email.b] Hmmm. I don't see how David's comment in any way fits that definition.
|   110088 [phlip_cpp ya] Phlip
|   110138 [dblack wobbl] Nor I :-)
+ 110060 [bob.news gmx] "Phlip" <phlip_cpp@yahoo.com> schrieb im Newsbeitrag

^ Package requests for the prelim. Ruby Production Archive
110067 [batsman.geo ] As of today, 110 libraries/applications are available in
110069 [dave pragpro] You should probably remove RDoc, as it is bundled with Ruby. Installing
110072 [batsman.geo ] That (breakage) won't happen ;)
110073 [dave pragpro] Thanks - it would be great if you could rename it: having two different
110078 [batsman.geo ] #SOME WORK DONE Figure out what to do about "ri" integration. Dave
+ 110079 [dave pragpro] I don't think you need feel misled; Chad's statement is inconsistent
| 110085 [batsman.geo ] Yes, that's the fundamental problem (and some associated usability issues)
+ 110086 [rich infoeth] You were misled?  This is just some notes that I typed up relayed from Chad
  + 110087 [batsman.geo ] I should have emphasized the smiley :-))
  + 110099 [chadfowler g] Right.  This wasn't meant to be a dig.  ri-gems and ri-rpa are
  | 110103 [halostatue g] Doesn't ri have a problem if two parts of the class are defined in
  | 110131 [dave pragpro] Yup! Currently it assumes that any one class is defined in one place,
  | 110140 [halostatue g] Right. I think that this is something that can be dealt with
  + 110118 [batsman.geo ] mmmm I was wondering why both you & Dave were attaching such an
    110143 [jamesUNDERBA] I just tried to install rpa-base-0.2.0b on a Win2K machine, with no luck.
    + 110149 [aredridel nb] It's damn good! A fair bit ahead of where I am. Everything I currently
    | 110154 [drossruby ya] As mentioned in other emails. Windows is a target
    + 110156 [batsman.geo ] It has been tested on Win32. I myself have tried it on WinXP and it
    + 110161 [batsman.geo ] Thank you for your report. It helped me find a stupid bug which was triggered
    | 110167 [jamesUNDERBA] Sweet. Thanks.
    | 110175 [batsman.geo ] I'll change the messages; if it's bitten you it could bite more people :-)
    + 115371 [ruby-lists l] used it for a few months with no problems
      115372 [ruby-lists l] wow, remind me to use an auto purge on my

^ Rake vs SCons vs Boost.Build v2 vs Perforce Jam
110068 [nospam nospa] I'm pretty excited to find Rake, a build tool based on Ruby!!!

^ Database access
110070 [gene.leung g] For writing database application with portability and cross-platform in
110074 [armin xss.de] RubyDBI , esp. if you want linux/unix, too.

^ windows gs detection
110077 [martindemell] Is there a nice way under windows to determine if the user has
110092 [sdate everes] Searching for the registry is one way to do it ... see attached
110132 [martindemell] Thanks, I'll dig into that. Is it guaranteed that ghostscript will make
110136 [sdate everes] Assuming that the installation procedures get properly executed,
110153 [martindemell] No, I was the one who missed the point. I wasn't sure if the registry

^ Separation of Web Request and Response (was: Re: Idea: Webshare)
110096 [bob.news gmx] "Patrick May" <patrick@hexane.org> schrieb im Newsbeitrag
+ 110206 [patrick hexa] I don't really think that request / response are all that different.
| 110227 [transami run] Perhaps have both?
+ 110770 [aredridel nb] Well, all HTTP requests have responses, though some are pretty spartan
  110803 [bob.news gmx] "Aredridel" <aredridel@nbtsc.org> schrieb im Newsbeitrag

^ Fixating an object
110102 [jgb3 email.b] Just wanted to share a recent "discovery" of mine. (I'm sure many of you
110124 [bob.news gmx] "Jamis Buck" <jgb3@email.byu.edu> schrieb im Newsbeitrag
110128 [jgb3 email.b] True, except I don't want to prevent *all* changes. (I know the example
110144 [bob.news gmx] "Jamis Buck" <jgb3@email.byu.edu> schrieb im Newsbeitrag
110243 [jgb3 email.b] Hmm. What about some kind of "toggle!" method, which would dynamically
110318 [bob.news gmx] "Jamis Buck" <jgb3@email.byu.edu> schrieb im Newsbeitrag

^ eval function efficiency
110106 [zdennis mkte] I am using the eval function excessively in one of my programs. Is there
112128 [matz ruby-la] Sorry for being so slow.

^ Callback for instance var creation?
110114 [transami run] Is there a callback for when an instance variable is first used? I know they
110123 [bob.news gmx] "T. Onoma" <transami@runbox.com> schrieb im Newsbeitrag
110141 [transami run] Oh! I didn't realize b/c if you assign from one that doesn't exist, it returns
+ 110152 [flgr ccan.de] obj = Object.new
| 110157 [transami run] Not sure how that provides 1st class methods. The idea is to be able to store
| 110169 [flgr ccan.de] Oh, a cache could be added easily. Can't do anything about the verbosity
| 110173 [transami run] Yes, perhaps I will add a cache to method. Then I'll have three working
+ 110202 [bob.news gmx] "T. Onoma" <transami@runbox.com> schrieb im Newsbeitrag
  110204 [transami run] Yes, in one sense they are. That's true. But not in the sense that they
  110205 [bob.news gmx] "T. Onoma" <transami@runbox.com> schrieb im Newsbeitrag
  110234 [transami run] That what everybody says! (Because of the namespace pollution, I guess.)

^ Sandboxing librarys
110125 [dwerder gmx.] In my program I try to allow any user to write own code (event handler
+ 110126 [decoux moulo] Look at $SAFE
| + 110313 [510046470588] is that like perl's Safe module, with configurable departments
| | + 110321 [drossruby ya] This is one area I would like to see improve. I think
| | | 110322 [decoux moulo] These are OS things and must be done at OS level
| | | 110348 [drossruby ya] These are things that *could* be built in features as
| | + 110323 [decoux moulo] I don't know Safe
| + 110484 [dwerder gmx.] So I can load external code which can't modify anything else but
|   110524 [decoux moulo] It's really depend on what you want to do, this is why it's difficult to
+ 110142 [sean.zuzu gm] check out the capability security model.

^ Versioning tools (was Re: [ANN] Rails 0.6.5 (AR 0.9.4, AP 0.8.0): Release of Contributors!)
110127 [mmirra liber] For versioning, I migrated my stuff from CVS to darcs.  Interesting
110158 [transami run] Thanks Massimiliano!!!
threads.html
top