217830-222823

217599-219844 subjects 218035-219064

Where to find RoR exceptions ?
217830 [user@do ai .] defined by Rails ?
217835 [pbattley@gm ] % script/console
217960 [user@do ai .] Thanks a lot !

sparse multi-dimensional arrays
217837 [wbirkett@do ] working with sparse three dimensional data. Here's an example in
+ 217840 [logancapaldo] It's pretty easy if you know the dimensions before hand, a bit more
+ 217873 [nospam@no it] The solution depends on what you are trying to accomplish. If your aim is to
+ 217884 [futago@gm il] I saw this on inquirylabs.com recently [1]
| 217889 [jason@ad pt ] irb(main):005:0> hsh[1]
+ 217888 [jason@ad pt ] a={}

How to Call a static method?
217839 [daniel@vo lk] how to call a class method on different classes.
+ 217841 [logancapaldo] Just do it
+ 217842 [toalett@gm i] class Test
  217844 [daniel@vo lk] Okay, misleading question.
  + 217846 [logancapaldo] send
  + 217847 [jan.svitok@g] Class.send(:method, *options) or
  | 217849 [daniel@vo lk] Great const_get('Classname').send is what I'm looking for. TIA!
  + 217848 [tanner.burso] ...

[ANN] Southeast Michigan Ruby Users Group. Meeting Oct 3rd at 7:00pm in 1200 EECS (UofM)
217850 [winstont@um ] ...

Finding the file version of a win32 dll in Ruby
217856 [canuckdba@gm] ...
217860 [jan.svitok@g] module Win
217861 [jan.svitok@g] ...
217876 [canuckdba@gm] Thanks, I'll take a look.

[ADV] Nw version of the TextMate book is available
217859 [dave@pr gp o] I've uploaded the B1.02 version of Jame Edward Gray II's TextMate
+ 217862 [leslieviljoe] I got to use Textmate over the weekend for the first time. I *wish*
+ 217869 [james@gr yp ] Tsk, Tsk, Dave.  The very first snippet I build in the book fixes

Using Each to Iterate
217870 [   no@no co ] Greetings all.
+ 217877 [mariano.kamp] Not sure what you are trying to accomplish here?
| 217880 [MonkeeSage@g] As Mariano said, you don't have a yield anywhere and are not calling
+ 217879 [nospam@no it] / ...
+ 217887 [jeffnyman_no] [Sending this from another account, so I'm sorry if this double-posts.]
  + 217894 [mariano.kamp] I have the feeling that you didn't figure it out completely yet.
  | 217895 [jeffnyman_no] You are correct, as it turns out. :)
  | 217898 [mariano.kamp] Actually you can't. You are just not calling this each method.
  | 217922 [jeffnyman_no] $stepList.append(Step.new(firstStep, thisStep, thisFilter))
  | 217947 [mariano.kamp] Then the information printed after the 2nd comma is the filter and
  + 217913 [emschwar@po ] I think you're doing yourself a disservice here.  Remember duck

apache upgrade in instant rails
217896 [rxv@ho ma l.] I have installed instant rails 1.1 which includes apache web server 1.3.33.
217897 [ml.chibbs@gm] No, this won't work because Instant Rails will try to update the

NET::HTTP behind a firewall?
217903 [kristapestry] I recently deployed an app to my production server that accesses other
+ 217904 [cdcarter@gm ] ...
+ 217907 [nospam@no it] What? Your firewall blocks outgoing port 80 requests? This is possible but
+ 217908 [garbagecat10] ...
  217909 [jtregunna@bl] Outgoing connections are almost always made on high ports. It doesn't
  + 217916 [garbagecat10] ...
  + 217917 [kristapestry] Jeremy, thanks for the help. I knew the outgoing connections were made
    + 217918 [jtregunna@bl] I'm not familiar with iptables, so I cannot tell you. But considering
    + 217919 [kristapestry] Francis, I do not know much about iptables so I am using the KISS script
      217921 [garbagecat10] ...
      217933 [kristapestry] Yes, eth1 is the public nic. I can not ping anything with the firewall
      217934 [kristapestry] and here is the output of iptables -L...
      + 217938 [garbagecat10] ...
      + 217940 [garbagecat10] ...
        217951 [kristapestry] Not sure what is going on with this thread but hopefully this post makes
        + 217955 [kristapestry] I tried removing the SYN rules and various other ones with no luck. I
        + 217963 [nospam@no it] In that case, look into how your system resolves names into IP addresses. Do
        + 217975 [garbagecat10] ...
          218025 [kristapestry] Thanks, it turns out that my previous fix was only temporary which made
          218033 [garbagecat10] ...
          218041 [kristapestry] I beleive this rule should enable me to reach the DNS servers from eth0
          218046 [kristapestry] In the output of kiss when it starts I noticed there appears to be an

Win a X_Box 360
217910 [gilles168@sy] Hey, click here and we can both get a free XBOX 360
+ 217923 [interfecus@g] Will it have Ruby installed?
+ 217986 [amos.l.king@] Wow, sending crap like that to a list.  thanks for wasting my space.

cannot connect to mongrel running  typo
217914 [bradphelan@g] I just installed Typo 4 on my Ubuntu box. I run
217915 [jan.svitok@g] 0.0.0.0 means 'any' or 'all' addresses, i.e. if your box has two
217952 [bradphelan@g] Active Internet connections (servers and established)
218048 [jan.svitok@g] Right. The output seems fine. I don't have a clue what could be the
+ 218114 [phelan@tt ec] I gave that a go but no joy
+ 218250 [bradphelan@g] Tried webbrick and that still doesn't work. I am puzzled!
  218259 [paradisaeida] Howsabout running ethereal to see if traffic is getting to the IP
  218329 [phelan@tt ec] Seems to be a bigger problem not just with mongrel. I tried in one

Re: Nw version of the TextMate book is available
217926 [madeonamac@g] Simplicity + Elegance = Power

Re: eval confusion
217927 [nobu@ru y- a] This block_given? sees the context where define_method is
217957 [hungrylist@g] Thank you for replying and for the note on 1.9 very interesting!

portable script deployment
217930 [eegreg@gm il] I am trying to deploy several ruby scripts in a unix environment.  My

Ruby/Opengl and RUDL
217931 [pinkmanonfir] I am using RUDL, to create a 2D engine in Opengl... I cant find anything
218021 [billk@ct .c ] Is the lag the same, no matter what size the polygons are?  I.e. if you
+ 218030 [jameskilton@] ...
+ 218051 [pinkmanonfir] I was thinking it was most obviously the polygons size, and how close it
  218138 [jameskilton@] ...
  218144 [pinkmanonfir] I do not have a graphics card.. but im not sure if that would explain

Re: Recommend a hosting company?
217935 [rubygrl@ru y] I was hosting with site5 but their support was terrible I finally had to
+ 217936 [dsledge@ap r] ...
| 217944 [rubygrl@ru y] Looks like they have the same problem as site5.  Will they allow me to run
+ 217984 [amos.l.king@] This site has a one free year deal that I used.  It works great and
  217988 [jcribbs@ne p] I highly recommend Rails Playground.  Joe Clarke has responded to every

Help with MS ActiveDirectory access
217937 [cparticle@gm] Hey All,
+ 217941 [garbagecat10] ...
+ 218014 [cparticle@gm] I've done some more searching
  222316 [cparticle@gm] OK After much pain and heartache I managed to finally get an account
  222329 [garbagecat10] ...
  222822 [cparticle@gm] Below is my attempt to create and account using the Net::LDAP#add

Using a Regexp to find a Hash Key?
217939 [ken@me as il] ...
217942 [nospam@no it] This is possible, but it is rather cumbersome and slow, since the regexp has
+ 217968 [ken@me as il] ...
| 217970 [pbattley@gm ] Very postmodern!
| 217971 [ken@me as il] I sent an new one out right after this.
| 217972 [MonkeeSage@g] def foobar(params)
| 217982 [MonkeeSage@g] Actually, make that #find rather than #select, so that iteration stops
| 218066 [ken@me as il] Actually, that was very good advice, THANK YOU!
+ 217969 [ken@me as il] I sure could...
  217974 [dblack@wo bl] I'm having trouble following this thread, because some message bodies

rb_funcall() Ruby code callback invoked from within a native thread?
217945 [serge.kruppa] Dear All,
217950 [garbagecat10] ...
218009 [serge.kruppa] Actually, the EventMachine library looks like a fantastic solution!
218013 [garbagecat10] ...
218130 [serge.kruppa] An issue we have is that all our code must run in an embedded Ruby
218156 [garbagecat10] ...
218395 [serge.kruppa] Please allow me to sidestep for a moment on our current thread of discussion
+ 218403 [garbagecat10] ...
+ 218555 [garbagecat10] ...

Multiple clinets on a TCPServer
217946 [unni.tallman] I want to have a single TCPServer (with a particulat IP and port
217956 [wuttke1@we .] - Good luck, Joachim
217962 [piet.haderma] I used this as introduction to ruby socket stuff when writing a VIP to ansi/vt100 gateway. (VIP is an ancient 70's or so form-based terminal protocol from Bull)

need help with narray: how to return an array from a C-extension
217953 [wuttke1@we .] I am writing my first C extension module to ruby, and I need a little
+ 217958 [max@ma id or] VALUE my_function(VALUE self, VALUE param) {
+ 217961 [masa16.tanak] I recommend not to manipulate the C structure of NArray

ruby and variable names
217964 [aidy.rutter@] I have noticed Ruby coders using 1 character variables names (e.g. t,d)
217965 [xennocide@ya] It's done mostly because of laziness, usually when you're just using the
217966 [pseudo.meta@] No. It's more an idiomatic aspect of good programming style. It's
217967 [MonkeeSage@g] Also note that code posted to newsgroups and mailing-lists is usually

How to DRY this?
217973 [peter@ru yr ] I have two very similar code snippets in two different methods, and I am
+ 217976 [benjohn@fy h] Pull out the loop logic in to another method...
| 217980 [jean.helou@g] great !! I like yours better, now I wish I hadn't tried :)
| 217983 [benjohn@fy h] Well, thanks, but don't let that put you off (or I'll wish I hadn't).
+ 217977 [jean.helou@g] interesting question ...
+ 217978 [ruby-talk@ba] how about (untested)...
+ 217981 [kbloom@gm il] Option 1: don't. It's a very small snippet of code.
+ 217985 [znmeb@ce ma ] 1. You are "pushing" elements and element names. Are you "pulling" or
+ 218026 [SimonKroeger] def ancestors element

Equvialent of Python slices?
217979 [peter@ru yr ] Sorry for the lame question again, but even after a lot of googling I
217987 [james@gr yp ] => "asdfghj"
217990 [djberg96@gm ] Interesting, though I'm surprised Python has explicit syntax for what
+ 217992 [MonkeeSage@g] In ruby you can extend built-in objects, so you can get the same
+ 217994 [logancapaldo] I can see it logically, test[start position, length]. A negative one
  217996 [djberg96@gm ] Ok, I just need to remember the second value is a length, not an index,

Context of an Error
217989 [transfire@gm] I feel like I should know how to do this already, but... How do I get
+ 217991 [ara.t.howard] but, imho, that's not the context.  the context would be 'dosomething' ?  can
+ 218067 [logancapaldo] class Object
  218147 [rick.denatal] Perhaps this should be
  218151 [logancapaldo] Well actually if I put it in Object and raise is defined in Kernel that

RubyConf hotel
217993 [matt@te hn r] I made my reservation yesterday and was told that the convention rate for
217995 [james@gr yp ] Well, if you don't mind changing locations Denver has no shortage of

Enterprise-Ruby Wish List by Francis Cianfrocca
217997 [enogrob@ho m] In all the recent talk (some would say hype) about the Ruby programming
218006 [vjoel@pa h. ] Why no mention of http://www.pragmaticprogrammer.com/titles/fr_eir/ ?
218007 [garbagecat10] ...
+ 218010 [vjoel@pa h. ] Francis, you make good points in your reply (snipped). I was asking why
| 218017 [garbagecat10] ...
+ 218012 [jtregunna@bl] Not necessarily. I mean, I have Ruby experience, but if I didn't, I
| 218019 [garbagecat10] ...
| 218208 [brianm@ap ch] How about one written in Java which supports Ruby (and C, Python,
| + 218213 [garbagecat10] ...
| | + 218219 [ara.t.howard] please release early!  i've been looking for such a beast to base a
| | + 218242 [brianm@ap ch] How is it difficult to use?
| | + 218519 [david@va ln ] of
| |   218529 [garbagecat10] ...
| + 218495 [snacktime@gm] Any plans on adding ssl connectivity to the ruby stomp gem?  And has
| | 218500 [brianm@ap ch] Certainly doable, I just have always used it on trusted networks :-)
| | 218543 [snacktime@gm] Well, after playing around for only an hour I managed to run into this
| | 218580 [brianm@ap ch] Did you use 4.0.1 or the upcoming 4.0.2 (in RC and being voted on
| | 219426 [snacktime@gm] I was using 4.0.1.  But 4.0.2 is even worse.  In addition to the bug
| + 218659 [timuckun@gm ] I took a brief look at activemessaging. Looks great. Then I take a
|   + 218662 [khaines@en g] I'm interested.  Give me a good DBD::ADO and I'll get it added to DBI.
|   + 218664 [ara.t.howard] google 'rpa' (ruby production archive).  for some reason, it didn't take off
|     222663 [timuckun@gm ] I googled RPA and all I got was a wiki filled with spam.
|     + 222773 [halostatue@g] Better yet: don't. Better to use a Wiki that does other proactive
|     | + 222778 [vjoel@pa h. ] What about quizzing the user on ruby?
|     | | 222781 [james@gr yp ] James Edward Gray II
|     | | 222783 [vjoel@pa h. ] That quiz must have been kicking around my subconscious....
|     | + 222823 [znmeb@ce ma ] Yeah ... it took me five tries to get by a captcha yesterday. The
|     + 222775 [ mfp@ac .o g] I have restored most of the wiki (http://rpa-base.rubyforge.org/) and disabled
+ 218027 [ara.t.howard] well, i heard you can catch java - that'd scare me off.
  + 218034 [garbagecat10] ...
  | 218045 [richard.conr] Well as one of those java programmers who is really seriously looking at
  + 218047 [robert.dober] ...

Better ruby way for caseing on class?
217998 [ecbearden@gm] [Kernel,String,Object].each do |klass|
+ 217999 [james@gr yp ] Sure.  Drop the call to to_s() and the ' .. 's around the class
| + 218000 [gavin.kistne] Er...not quite, because (in his example) he has class objects, not
| | + 218002 [james@gr yp ] Egad, very good point.  I apologize.
| | | 218003 [gavin.kistne] [Kernel,String,Object].each do |klass|
| | | 218220 [ecbearden@gm] yep that will work and looks like a reasonable alternative.
| | + 218217 [ecbearden@gm] I'm actually dealing with classes.  not instances thereof.
| + 218001 [jan.svitok@g] while yours will match any Object.
+ 218005 [shortcutter@] [Kernel,String,Object].each do |klass|
+ 218015 [ara.t.howard] well, the code you have above is exactly equivalent to this
  218221 [ecbearden@gm] Hmmm.  This is the most interesting approach.

export environment variable
218008 [mkhan@le tr ] I would like to accomplish something like this in a ruby script
218011 [Gennady.Byst] ENV['RUBYLIB'] = File.expand_path('~/MyLib/')
218018 [mkhan@le tr ] ...
218023 [jan.svitok@g] As far as I know, you can't do that even in bash (that = export
218028 [Gennady.Byst] It will be for this script and all processes it spawns. Exactly how

druby using just IP addresses
218016 [alex@de et m] I'd like to use druby, but with the client using just an IP address to contact the server, and vice versa. The initial connection works fine, but then it seems the server can't find the client to send a reply when a method is invoked.
+ 218020 [vjoel@pa h. ] Probably someone has suggested this before, but have you tried
+ 218024 [binary42@gm ] I'm not sure what isn't working for you with out some code. I do have
| + 218029 [shortcutter@] Adding to that: it might well be that you are trying to do things in
| + 218032 [alex@de et m] Thank you, that was it. Added an explicit IP address on the client side made it work fine.
+ 218200 [drbrain@se m] DRb uses Socket.gethostname to determine the hostname.  If you don't

[ANN] Hoe 1.1.0 released
218022 [ryand-ruby@z] hoe version 1.1.0 has been released!

What is the reason for this syntax?
218031 [darkintent@g] having a great time with the language but a few things bother me about
+ 218036 [rajeev.netwo] 1. That is how it works and for me syntax #2 looks more easier.
+ 218037 [vidar@ed ei ] In Ruby an expression continues on the next line if syntax
| 218436 [xennocide@ya] So why can't the parser continue a statement on to the next line if the
| 218466 [ruby-ml@ki t] =20
+ 218038 [lopx@ga et .] In ruby statements are terminated by newlines and block is a parameter
+ 218039 [gwtmp01@ma .] Blocks are part of the syntax of a method call (do/end or {})
| 218059 [ihatespam@ro] Just to add to a very good response to the original post...
| 218256 [darkintent@g] ...
| 218284 [david@va ln ] Not in a semicolon-free language, I'm afraid. And if nothing else, this
| + 218295 [Charles.O.Nu] Well let's not go too far down that path, now, or we might add something
| | + 218302 [david@va ln ] I like Python syntax, actually. It just takes a while for your brain to
| | + 218306 [louis.j.scor] Exactly what I was thinking.  On the other hand, although I don't care
| |   218339 [jean.helou@g] As far as I know nothing prevents you from using a semi-colon at the
| |   218397 [louis.j.scor] Sure you can, but that solves a different problem really.  If you want
| |   218430 [darkintent@g] People really should be able to write code in the way that they
| |   + 218435 [alex@bl ck e] Sorry for jumping in mid-thread, but...
| |   + 218439 [gwtmp01@ma .] I'm not sure where you are going with this but I think it is terribly
| |   + 218493 [david@va ln ] Let me introduce you to Real Life. This specific variant of that
| |   | 218501 [darkintent@g] I don't think of the blocks in the same way the real problem is that
| |   | + 218510 [louis.j.scor] I'm not sure what you are asking for in that case.  How is a language
| |   | | 218513 [darkintent@g] Thats why I keep sayind defacto (by default) in other words this style
| |   | | + 218517 [louis.j.scor] I know you didn't think it was a conspiracy or anything =)
| |   | | | 218518 [MonkeeSage@g] Coding conventions (like where you place your braces in C) are
| |   | | | + 218521 [darkintent@g] What you say is valid and gets right to what I am really trying to get
| |   | | | | 218941 [halostatue@g] It's not too strict. You're wanting something unreasonable. Most of us
| |   | | | + 218527 [louis.j.scor] Correct.  The issue is how the language decides to draw the line
| |   | | |   + 218533 [MonkeeSage@g] Me? I don't mind justified syntax rules; but I don't like the coding
| |   | | |   + 218534 [MonkeeSage@g] Me? I don't mind justified syntax rules; but I don't like the coding
| |   | | |   + 218535 [MonkeeSage@g] Me? I don't mind justified syntax rules; but I don't like the coding
| |   | | |     218537 [MonkeeSage@g] Ack...sorry. Google acting up again.
| |   | | + 219041 [tom.armitage] I want to go back to this.
| |   | |   + 219068 [znmeb@ce ma ] Yeah, but you don't *have* to write hideously obfuscated one-liners in
| |   | |   + 219299 [rick.denatal] Hear, hear!
| |   | |     219617 [darkintent@g] So I take it you all just assume that people know the same things you
| |   | |     + 219629 [rimantas@gm ] I think it is well within human capacity to accept some rules of the language -
| |   | |     + 219635 [tanner.burso] ...
| |   | |     | 219638 [darkintent@g] The Firefox developers have been busy for about five years telling
| |   | |     | + 219639 [darkintent@g] damn double post wierdness sorry. :)
| |   | |     | + 219663 [halostatue@g] It wasn't just said: it was explained. Why does Firefox need an
| |   | |     + 219644 [zedshaw@ze s] Damn, I wish all my programming problems were just how the source should be formatted.  I've gotta wrestle with arcane paragraphs inside weird parts of RFCs that are damn near impossible to implement without huge hacks.  Then there's the problem of how to keep Ruby from crashing when the very latest bug in 1.8.5's IO comes up.  Or, how to keep the memory consumption down without requiring people to patch Sync or array.c themselves.  Or even whether Ruby is worth using in my next projects considering two more versions are coming out and there will be incompatibilities.  I then worry about the cryptographic design of my latest project and whether allowing random channel identification in the AAD of ECC encrypted packet headers allows for client interaction leakage.
| |   | |     | 219648 [darkintent@g] Duh I never said it was did you read the starting post so exactly what
| |   | |     + 219662 [halostatue@g] Not at all. Speaking as someone who's been at the software development
| |   | + 218523 [david@va ln ] It's not about personal preference, it's about accepted conventions.
| |   | + 219149 [comp.lang.ru] _ It's NOT a formating convention. Newlines are end of statements
| |   + 218507 [hal9000@hy e] You're misunderstanding. It's not that anyone particularly was in love
| + 218337 [pseudo.meta@] So, use a '\' at the end of a line to indicate it continues on the
+ 219706 [rpardee@gm i] I confess I haven't really followed this thread carefully, but--I
  219708 [dblack@wo bl] When you're using Ruby, it's best just to come from Ruby.  Then you
  + 219713 [znmeb@ce ma ] Nor does the converged spoken language have to be called English. :)
  + 219738 [rpardee@gm i] But isn't almost everybody coming from *somewhere*?  This seems to me a
    + 219761 [halostatue@g] No change is cost free, and this is a lose-lose proposition.
    + 219763 [dblack@wo bl] But then if a Rubyist starts learning Java, Java has to change to make
      219779 [darkintent@g] Personally I don't think else if needs to be an actual reserved word.
      219780 [darkintent@g] I wanted to add that it may not be so advantageous to have so many
      + 219789 [shevegen@li ] I like ruby elsif.
      + 219886 [halostatue@g] Oh, please. Your thoughts here are na?ve, at best. Let's pick on one
        219897 [darkintent@g] All I said was that perhps there needs to be a movement to remove some
        219916 [halostatue@g] These two issues are completely unrelated; trying to relate them is a
        219919 [rick.denatal] What do you call someone who speaks two languages?
        + 219932 [matt@te hn r] You do realize that the standard for French is maintained by a committee.
        + 219934 [darkintent@g] Having ten dialects of the same language does not nessecarily improve
          219943 [halostatue@g] post on the topic. This isn't a matter of having to have the last
          219947 [darkintent@g] Just because creating commonality almost always requires supression
          + 219950 [darkintent@g] I would also suggest you actually read what I said about the
          + 219983 [david@va ln ] Well, this has sidetracked beyond all repair, but here's my two cents as
          + 220022 [tom.armitage] the old chestnut that is the (moderately controversial) Sapir-Whorf
            220023 [pseudo.meta@] Absolutely. Good programmers should ensure where possible that they
            220056 [darkintent@g] Who said you had to force anything?  Why do you assume that in all
            + 220067 [ljz@as as .c] Well, in general, I agree that it would be beneficial if some sort of
            + 220068 [xennocide@ya] While you can express most things in most languages, some are just
            + 220070 [louis.j.scor] Kevin;
            | 220083 [darkintent@g] If you read up a few posts you will see that someone other than myself
            | + 220086 [rimantas@gm ] <...>I actually responded to this person musing that
            | | 220093 [david@va ln ] XHTML1.0 served as text/html, or application/xhtml+xml? *ducks*
            | | 220122 [darkintent@g] If you can't understand what someone was responding to who are you to
            | | + 220124 [dblack@wo bl] if false
            | | | + 220125 [Fdavis@us an] If you can't understand what someone was responding to who are you to
            | | | + 220126 [wilsonb@gm i] ...
            | | + 220128 [jonathan.wal] ...
            | + 220092 [jonathan.wal] ...
            + 220085 [david@va ln ] You did?
threads.html
top