250077-265873

249911-251769 subjects 250267-276285

Re: [OT] RoR how does scaffold work?
250077 [sam@po er ou] It seems to work about the same way this one does...  I figured you

Enhanced Ruby editor
250079 [cparticle@gm] All,
+ 250080 [kazaam@ol co] I know this feature from borland's delphi IDE, I think you mean that if
| + 250099 [cparticle@gm] When I'm referring to a drop down I'm talking about a tool bar drop
| | + 250102 [ruby@an hr p] Ah, this is supported by ctags. It sounds like the kind of extension
| | | 250110 [cparticle@gm] On May 3, 12:01 pm, Gregory Seidman <gsslist+r...@anthropohedron.net>
| | + 250107 [chris.hulan@] Its not a drop-down list, but its close 9^)
| |   250112 [cparticle@gm] I think this is similar to ctags in SciTe that Greg's post led me to.
| + 250252 [lloyd@2l ve ] As I understand it, Code Gear (who owns Delphi now) found some ambitious
|   250272 [huw@DE TH SB] Do you mean syntax-senstive IntelliSense/code completion. We have that in
+ 250083 [znmeb@ce ma ] Almost Komodo editor -- free as in price but not as in speech,
| + 250092 [blowmage@gm ] ...
| + 250104 [cparticle@gm] Ed,
+ 250091 [ruby@an hr p] Vim fulfills all of the requirements you've listed, and it's been my editor
  + 250105 [cparticle@gm] On May 3, 11:32 am, Gregory Seidman <gsslist+r...@anthropohedron.net>
  | + 250113 [kazaam@ol co] but I really miss this feature to have quick every method and property
  | | 250389 [cdcarter@gm ] The latest NetBeans milestones supports that.
  | + 250254 [logancapaldo] ...
  + 250132 [ snk@gn .o g] If you like Vim, have a look at VimMate:  http://vimmate.rubyforge.org/
    250298 [eric.promisl] Komodo Edit is free (as in beer), and ships on Win, OS X, and Linux

Creating a local mirror of rubyforge?
250108 [mpazaryna@gm] I've been told that we cannot open our internal developer machine
250111 [max@bi ch sg] i'm not doing it (yet), but is this [1] what you want?

Re: array slicing THANKS TO ALL OF U...
250116 [josselin@wa ] a lot of tricks .. good ruby day !

Array to Hash
250117 [josselin@wa ] [ nil, "b", nil, nil, nil , "f", "g", nil, nil, "j"]
+ 250118 [seebs@se bs ] Yes.
| 250119 [seebs@se bs ] I thought about this more.  I'd like to explain WHY there's no code
+ 250121 [cbrowne@ra l] ...
| 250123 [seebs@se bs ] My code was very similar to this.
| 250128 [james.d.mast] When values are false.  Replace condition from "! value" to
| + 250129 [james.d.mast] Spoke too soon... also when duplicate array items exist...
| | 250130 [alex.doan@wa] Duplicate array items shouldn't matter b/c your key value is the index
| | 250131 [james.d.mast] You're right... I had it mixed up.  Which begs to question (to the
| + 250134 [cbrowne@ra l] ...
| + 250145 [rick.denatal] Not necessarily the simplest thing that could possibly work.
|   250147 [rick.denatal] .sub("array","hash")
+ 250157 [w_a_x_man@ya] We don't need no stinkin' loops!
  250244 [logancapaldo] ...

Regular expression - first two alphabets of a string
250122 [bobagent@gm ] I learning regular expressions in Ruby and I want to do the following
250125 [gabhijit@gm ] def matchaa (str)
+ 250138 [bobagent@gm ] Abhijit,
| 250185 [gabhijit@gm ] sorry! I misread your post! :-(
+ 250139 [shortcutter@] This does not seem to be worth a method...
+ 250140 [rick.denatal] irb(main):001:0> re = /^(?!aa)/
  + 250156 [bobagent@gm ] Thanks Rick -ve lookahead helped.
  + 250199 [shortcutter@] What exactly do you gain by using lookahead instead of a normal match?
    + 250293 [rick.denatal] The OP was asking for an RE which matched anything which DIDN'T start with aa.
    + 250340 [bobagent@gm ] When Rick directed me to use -ve lookahead I reach the following page

search and replace text in files
250124 [phil.swenson] I need to search a file for text "InstallDir=" + newline character and
250136 [ snk@gn .o g] => "InstallDir=C\\:\\mws71\n"
+ 250146 [B.Candler@po] Except where followed by a single quote or another backslash.
+ 250153 [phil.swenson] I meant on a file... I was looking for something like

Top-level
250133 [hollandlucas] I'm currently diving a bit deeper into Ruby and I've already asked this
+ 250141 [shortcutter@] Correct.
| 250191 [hollandlucas] Hey, it's me again (this time I'm logged in ;-) ). I understand that
| 250197 [B.Candler@po] No. Inside your 'test' method, which is an instance method of MyClass, self
| 250224 [hollandlucas] Ah, I see. Okay, so I can call puts like a 'standalone function' because
| + 250228 [dblack@wo bl] Except that Ruby makes a pretty huge distinction between meth and
| | 250229 [hollandlucas] Okay, so I can call puts because I am calling it on self (and self
| | 250453 [rick.denatal] Yes, although the fact that self in this case refers to main is pretty
| + 250287 [B.Candler@po] Roughly. Except you can't actually call it that way, because it's private.
+ 250144 [rick.denatal] Yes

mac help with rubygems
250142 [andy.koch@pc] I'm trying to expand my horizons by learning to do some dev work on an
+ 250162 [lyle.johnson] I am not at all familiar with the "fireruby" project, but I can say
+ 250188 [dangerwillro] According to this it should support OS X. However I see you're
+ 265873 [martina3@gm ] figured it out by now (looks like your post was a while ago...).

Ruby with Java Servlets
250151 [itisrajesh59] I have a JSP page which interacts with a servlet, which then interacts
251362 [ndrw_grn@ya ] For some time we've been using quite successfully the Ruby-Java Bridge

Re: Checking Credit Cards (#122)
250154 [novakps@gm i] One more way to do it:  mutually recursive functions that each strip

Hash of arrays - initialization (was Re: Beyond YAML? (scaling))
250161 [Bil.Kleb@NA ] Thanks; I figured the magic || operator was somehow

Unofficial Ruby Quiz -- Ranking Choices
250166 [kbloom@gm il] Apparently some people around here can't stand Ruby Quiz withdrawal. For
+ 250168 [agorilla@gm ] Thanks much for filling in.  I'm very interested, and I hope I have
| + 250182 [toddkennethb] I think it would be more fun to leave possibilities
| + 250184 [kbloom@gm il] I guess I'd want to know if I ran into a cycle, but I know that's a lot
| + 250190 [dangerwillro] ...
+ 250181 [cdcarter@gm ] Condorcet method described here: http://xkcd.com/date/algorithms.html.
+ 250189 [eric.mahurin] ...
+ 250463 [eric.mahurin] The way I see it, ranking is nothing more than sorting and choosing
+ 250513 [kbloom@gm il] Here's a solution that uses tsort, the topological sort module from

webgen dependencies
250167 [david.alm@go] Today I installed Ruby 1.8.6, then webgen (via gem install).
250195 [stefan@ma li] Actually redcloth is not needed, webgen works without redcloth. You just

Is there a better way to do this?
250169 [_mwryder@wo ] As part of my learning Ruby I am trying to learn how to format strings.
+ 250170 [list.push@gm] I'm sure there are better ways but here is something to look at.
| 250171 [_mwryder@wo ] I am trying to come up with a "generic" formatting routine so that I
| + 250172 [dzwell@gm il] welcome.
| | + 250174 [_mwryder@wo ] Your method is much better than my C style one.  With a little work to
| | | 250180 [w_a_x_man@ya] On May 3, 9:03 pm, "Michael W. Ryder" <_mwry...@worldnet.att.net>
| | | 250198 [_mwryder@wo ] Thank you for the ideas.  I figured there had to be a better way to
| | + 250176 [w_a_x_man@ya] def sform( str, fmt )
| |   250179 [dzwell@gm il] Yeah, that's much simpler. I like it.
| + 250173 [list.push@gm] Well, that's different :)
| | 250175 [list.push@gm] This will grab digits and then you can do what you want with them.
| + 250192 [list.push@gm] I was thinking about your question again and came up with this.
+ 250200 [B.Candler@po] I have a vague recollection that Perl has a specific feature along these
| 250203 [B.Candler@po] which of course can be shrunk to
+ 250204 [shortcutter@] I'd start by having the parts of the number separate.  Then you can
| 250206 [list.push@gm] I answered that question, too.
| 250219 [shortcutter@] That somehow eluded me.  Thanks for pointing it out!
+ 250248 [kbloom@gm il] puts a.sub(/(...)(...)(....)/,'(\1) \2-\3')
  250294 [_mwryder@wo ] That looks very interesting!  Thanks for the code.  I think it will work

Ruby love
250178 [cliffrowley@] I just taught my girlfriend - who has never coded before - how to code in
+ 250210 [ivorpaul@gm ] ...
| + 250226 [richard.conr] Mine has been working through Chris Pine's learn to program. She enjoys
| | 250227 [cdcarter@gm ] If you try to throw her some Camping, make sure she pretty decently
| + 250231 [cliffrowley@] of a number between 1 and 100 and you have to guess higher or lower until
+ 250234 [lloyd@2l ve ] I also started teaching an old flame how to program.  She went through
| 250238 [logancapaldo] ...
| 250265 [ivorpaul@gm ] ...
| + 250268 [ruby@ph li .] Well, it wasn't Ruby, it was C, but we've been married just under 10 years
| | 250271 [ivorpaul@gm ] ...
| + 250299 [gregory.t.br] You know, this is a little bit more of a sensitive topic than it might
|   + 250301 [ruby@ph li .] I'm not female, but one thing I learned about my wife while teaching her C
|   + 250313 [garbagecat10] ...
|   | 250338 [gregory.t.br] It is not at all a matter of profession to me.   It's a matter of the
|   + 250357 [ivorpaul@gm ] ...
|   + 250374 [dblack@wo bl] The fact that discussions of women in computing, among men, always
|     + 250375 [ivorpaul@gm ] ...
|     | + 250378 [cliffrowley@] Haha.. They should make a southpark episode about this..  Seriously, put the
|     | | 250379 [gregory.t.br] I'm sorry, I wasn't trying to seem inflammatory.   More positively, I
|     | | + 250385 [cliffrowley@] No no, your posts were really constructive.  I read them and I've been
|     | | | 250458 [rick.denatal] Well, I've known, and worked with quite a few, some rather famous.
|     | | + 250438 [spamtrap@do ] I have - several in fact.
|     | + 250382 [gregory.t.br] Ivor, I didn't really interpret it that way, but closer to what you
|     |   250383 [ivorpaul@gm ] ...
|     |   250387 [gregory.t.br] It's potentially a very good way to help address the broader issue by
|     |   250388 [cliffrowley@] Let's not forget that it's fun in all this =D  Athena really enjoyed coding
|     |   250392 [gregory.t.br] I actually typed something about fun and deleted it.   The fun factor
|     + 250384 [gregory.t.br] To attempt to make this constructive rather than critical... How can we do this?
|       250410 [dblack@wo bl] I was being constructive, just vague :-)  I admit that "one way or
|       250412 [gregory.t.br] Oh, whoops... should this <conversation>.
+ 250278 [garbagecat10] ...

Spoiler - Re: Unofficial Ruby Quiz -- Ranking Choices
250186 [no.spam@pl a] Topological sort. "man tsort" on most *nix systems, or

DRB Program Error
250187 [pshussain@gm] Hai
+ 250194 [vjoel@pa h. ] DRb
+ 250196 [gmurray@cl u] DRb

Net::HTTP performance difference: FreeBSD vs. Ubuntu ?
250193 [9ruvie@gm il] Strange ruby network performance drop examined on Ubuntu.
250202 [B.Candler@po] To debug this, first run your loop separately for redirect_url only,

3 videos that are rocking the web
250205 [foto@te pi b] 3 videos that are rocking the web

How to connect from JRuby to a MySql database?
250208 [ro.naldfi.sc] Could someone kindly sketch an example (or point me to a related
+ 250212 [satish.talim] ...
+ 250347 [satish.talim] ...

RCR?
250211 [robert.dober] I'd like to have your feedback on yet another RCR idea I had.
+ 250213 [matz@ru y- a] Could you tell me why you want to reduce tiny three letters?
| + 250222 [robert.dober] No I cannot not and even if I could I would not because I do not feel
| | 250239 [logancapaldo] ...
| | + 250243 [robert.dober] No I checked in Rdoc and double checked in irb before writing this.
| | + 250292 [vjoel@pa h. ] I like that. I keep having to check in irb or ri whether String#delete
| |   250305 [rick.denatal] The thing that vaguely bothers me about this definition of String#- is
| |   250314 [robert.dober] That is a very valid point and makes me think about another inconsistency
| + 250223 [tpo2@so rc p] I must say that the latter looks quite intuitive to me: replace /s/ by
+ 250216 [B.Candler@po] This is perhaps a good example of where making your own extensions to
| 250295 [vjoel@pa h. ] That's better than aliasing - to delete, since the latter functionality
+ 250240 [chneukirchen] I've been wanting that for ages and it's the best solution.
  250242 [shevegen@li ] I believe many who work a lot with .gsub and regexes

The simplest ruby on rails webapp endorsed by DHH
250215 [vaj@te pi bo] The simplest ruby on rails webapp endorsed by DHH

Where to install ruby-dbi?
250217 [dangerwillro] Does anybody have suggestions on where is best to install ruby-dbi??

Remote IRB shell (embedded in  rails)
250220 [aquasync@gm ] I wasn't able to find this functionality in rails to begin with, so I
250350 [eden.li@gm i] Interesting... although it sounds a bit insecure since you don't
+ 250361 [swistak@ma l] ssh remote host
| 250471 [eden.li@gm i] Yes :)  The cool thing about this is you can get an irb shell right
| 250560 [aquasync@gm ] Precisely. It's not intended to be exposed remotely. I've no idea what
+ 250364 [robert.dober] Unless ruby sends address information on the application layer (as
  250470 [eden.li@gm i] Nice, looks like this would work.  Just have to make sure that 4242 is
  250477 [robert.dober] Careful here, in our case everything is encrypted, but

Condition avant la boucle
250221 [malavoi@gm i] Bonjour,
250230 [robert.dober] Sorry folks, I'll just tell Bolo to take this OL or switch language!
+ 250285 [malavoi@gm i] Sorry I post my question in French
+ 250286 [malavoi@gm i] My problem is why i did something like
  + 250315 [robert.dober] You see things; and you say Why?
  + 250319 [robert.dober] Oops sorry wrong button
    250509 [malavoi@gm i] I would like to generate a hash for the condition in my finder

to the list admin (was: Re: The simplest ruby on rails webapp endorsed by DHH)
250225 [tpo2@so rc p] Would it be possible to let ruby-talk's spamassassin know that all posts

10 Giga free web hosting Egyptian host
250232 [ahmed_sy2004] [SIZE="6"][CENTER]10 Giga free hosting

modules and class methods.
250245 [phelan@tt ec] Why does this not work!
+ 250251 [logancapaldo] ...
+ 250255 [phelan@tt ec] The below code obviously work the way I wish
  250330 [dblack@wo bl] Basically, yes: mixing in a module inserts the module in only one
  250549 [phelan@tt ec] Now that is the sneaky little hook I was looking for.

[ANN/Request for eyes] Constructing a Partial Order Planner in Ruby
250247 [sam@po er ou] partial order planning and implemented a simple partial order planner in

Using RubyInline and RubyToC in windows?
250249 [kyleaschmitt] Is anyone out here using RubyInline and RubyToC in windows?
250253 [ara.t.howard] did you compile ruby yourself under mingw?
250259 [kyleaschmitt] No, I used the one click installer...
250360 [swistak@ma l] in zenspider blog there's something about problems running ruby2c on windows -

Gem-only releases
250250 [shevegen@li ] just love gems, which seem to be an increasingly number
+ 250273 [lyle.johnson] I read through your post a couple of times and I still haven't found
| + 250397 [glen@th pf i] This may not be the OP's reason, but it does point out reasons
| | 250650 [jameskilton@] ...
| | + 250652 [dangerwillro] Gems isn't perfect. It's pretty good, but not perfect. It could offer
| | + 250653 [gdonald@gm i] Me neither.
| | + 250658 [rick.denatal] I suspect that the key concept which the debian maintainers have is
| + 250671 [bulliver@ba ] Well, personally, I like choice so I provide my libs in gems, and also in
|   + 250715 [botp@de mo t] # begin
|   + 250801 [pbrannan@at ] export RUBYOPT=rubygems
+ 250639 [chneukirchen] +1, full ACK.

mapping
250257 [y_rami@ho ma] I wanna transform my relation between
250263 [ivorpaul@gm ] ...

address family for hostname not supported
250260 [dax.huiberts] I tried to do a capistrano deployment yesterday when it suddenly didn't
+ 250264 [djberg96@gm ] Are you using the one click installer? Perhaps this issue (# 9438) is
| 250270 [dax.huiberts] I'm not sure if that is the case, it worked all fine before, and I
+ 250266 [gthiesfeld@g] You need to specify ssh in the %systemroot%\system32\drivers\etc
  250274 [dax.huiberts] Cool!
  250284 [djberg96@gm ] I found the problem (and it wasn't a Windows problem). It's the host-
threads.html
top