137524-139134

137230-138174 subjects 137713-139257

^ Interfacing with C executable
137524 [joevandyk gm] I have a program in C that is a part of a very complex system.  When
+ 137526 [aredridel gm] You might try my ruby-packstruct (which lets you define
+ 137527 [sellberg goo] One way could be creating a socket and communicating through that.
| 137528 [joevandyk gm] I suppose that might work, but it's still the same concept of me
+ 137559 [lyndon.samso] Maybe another C program that dumps the first programs data to some

^ Automated Source Code Analysis for C++ Ruby Projects (free!?!?)
137529 [nospam nospa] It would be nice if Rubyforge or RAA would auto-analyze source code for
+ 137531 [ruby-ml magi] Le 9/4/2005, "Thursday" <nospam@nospam.nospam.nospam.nospam.org> a
+ 137533 [tom infoethe] Note that anyone who has a license to either product could do this use
  138449 [nakahiro sar] We have 194 projects in RAA;

^ [ot] A big thank you...
137545 [tom infoethe] ...to Evan Webb for providing a RubyForge file mirror.  There are three

^ Forcing FCGI headers
137548 [Tony.Targons] In my Rails application, I have this one function that reads a list of
137580 [david loudth] Basically, there's no way to do this that I know of. What you can do,

^ Installing sqlite-ruby when sqlite is in non-standard location
137552 [carlwork gma] I'm trying to install sqlite-ruby on my web hosting account.  I don't
137554 [carlwork gma] Never mind.  I was able to modify ext/extconf.rb and tell it where the

^ Help configuring apache2 + mod_ruby :) from a newbie
137553 [awbacker gma] Just getting started with apache, ruby, mod_ruby, and trying to do it
+ 137631 [paulha aracn] The key for me was turning on ExecCGI in the directory where the scripts
+ 137632 [discordantus] Options ExecCGI
  137676 [awbacker gma] I added the "Options ExecCGI" to my mod_ruby.conf, and am still not
  137800 [paulha aracn] I grabbed a file called "RubyForApache" and installed it.  There were
  137878 [awbacker gma] Thanks for the idea.  Check up on it and it's windows only tho :( Not
  137879 [aredridel gm] It's all a matter of which unix!

^ Array#last_index
137558 [jzakiya mail] array.last returns the value of the last array element.
+ 137600 [transfire gm] Jabari,
| 137603 [dblack wobbl] a.size-1 :-)
| 137656 [jzakiya mail] name to
| 137673 [transfire gm] Thanks Jabari!
| 137680 [ruby-ml magi] The abbreviation 'nth' is often used to indicate a certain
| + 137681 [martindemell] I agree. Array#bound, perhaps, since the other bound is always zero
| | 137735 [jzakiya mail] Following in the same spirit:  Array#max_i  Array#i_max
| + 137690 [transfire gm] Hmmm... perhaps. I was thinking of it along the lines of the phrase
|   137739 [ornil1 gmail] Please choose another name, it's very confusing. In Lisp there's a
|   138010 [transfire gm] Okay, I will. I have #last_index. I was just hoping to get a nice,
+ 137602 [florgro gmai] Can you not just use -1 as the index?
| + 137611 [dbatml gmx.d] irb(main):083:0> [1, 2, 3, 4, 5][-1]
| + 137618 [transfire gm] No. Because, it is not always simply a matter of getting to the last
|   137747 [bob.news gmx] "Trans" <transfire@gmail.com> schrieb im Newsbeitrag
|   137748 [martindemell] I've written C code that started with a pointer at either end of an
|   138026 [jzakiya mail] last
|   138030 [transfire gm] I'm not expert on these matters, to be sure, but if you look at the
+ 137604 [batkins57 gm] I don't think this should be all that slow. Ruby tracks the array's length=

^ [OT] Corega Tabs (was: Re: How should this really be coded in the Ruby style?)
137562 [bob.news gmx] "Bill Kelly" <billk@cts.com> schrieb im Newsbeitrag

^ Rails and Madeleine
137563 [ptkwt aracne] The latest announcement about Instiki being on Rails now got me to
137573 [samuel.kvarn] Well, to be accurate it is a Rails app without Active Record. Due to
+ 137579 [david loudth] Right. Most of Active Record is designed the way it is because of the
| + 137586 [alex verk.in] The biggest problem with Madeleine in the context of web applications is
| | 137587 [flori nixe.p] This describes the dictionary drb server example, that comes with
| | 137589 [alex verk.in] Thanks for pointing it out, I'll look there.
| + 137591 [horacio.lope] or a Madeleine that serialises to SQLite instead of the fs.
| + 137594 [jim weirichh] Yes!  I was just thinking this week how useful it would be to be able to do
| + 137595 [aredridel gm] I was thinking that a madeleine run that way could be a lot simpler,
| + 137760 [ndrsbngtssn ] If only I could win the lottery so I could spend my days adapting Rails
+ 137668 [demetriusnun] Yes, I successfully ported AR and kept the same API to work with a RDF

^ Re: Welcome to our (ruby-talk ML)         You are added automatically
137568 [g_sezhian th] This is GK.Sezhian working for BPL Telecom . If guys u can find some
+ 137582 [halostatue g] Dozens -- if not hundreds -- of people have done this. Check out the
+ 137583 [james_b neur] Yes.
+ 137585 [florgro gmai] Most of your question have already been answered better than I could so
  137654 [rcole itee.u] In my experience Ruby is pretty slow if you have to iterate through lots
  137655 [billk cts.co] Indeed, @mutex.synchronize { do; stuff; here }

^ method search rule in 2.0?
137571 [lists zara.6] and was feeling disturbed about this new Ruby2 behaviour.
+ 137574 [usenet2 nosp] I totally agree with you.
+ 137576 [dblack wobbl] I agree that the non-special case should be what it is now, and the
| + 137577 [csaba phony_] class C
| + 137592 [lthiryidontw] class C
| | 137601 [dblack wobbl] This message is in MIME format.  The first part should be readable text,
| | 137628 [lthiryidontw] In present ruby, yes, C::util is identical to C.util.
| | 137633 [dblack wobbl] I think it's much too big a change for something like this.  It would
| | 137651 [lthiryidontw] I use it for constants. Does anybody use it for something else?
| | 137652 [dblack wobbl] ruby/1.8$ grep "::[a-z_]" `find . -name "*.rb"` | wc -l
| + 137634 [paulha aracn] If I was writing class C, I would be surprised when CC#util got called,
|   137635 [dblack wobbl] I agree.  That's why I don't like the proposed change to "self".
|   + 137638 [transfire gm] call
|   + 137641 [paulha aracn] But if C#util is not defined as a with "def C.util ..." isn't it just a
|     137650 [dblack wobbl] C#util is actually the constant C plus a comment :-)  This is all
+ 137597 [transfire gm] Ah, this is interesting. In the AOP work I've been doing, something
+ 137798 [Avdi_B_Grimm] I would have to agree.  As an OO programmer, the current behaviour is
| 137829 [transfire gm] I have to agree with you. While making a distinction around the use of
| 137835 [dblack wobbl] They're written differently, but the whole self.x = y thing is just
| 137892 [transfire gm] which
+ 137894 [transfire gm] Silly me. I never read the orignal material. I just went back and did
+ 138575 [matju arteng] This message is in MIME format.  The first part should be readable text,

^ [ANN] Rake 0.5.3 Release
137578 [jim weirichh] = Rake 0.5.0 Released
138028 [nobu.nokada ] It doesn't run.
138067 [jim weirichh] (under ruby 1.9)
138073 [nobu.nokada ] What's trouble?
138091 [jim weirichh] Ahh ... I'm at work now and had the trouble at home, so the following is
138093 [nobu.nokada ] OK, fixed.

^ My threading concern.
137622 [arustad gmai] When two theads enter a method that can change a value of an instance
+ 137625 [khaines enig] Threading is no different in Ruby than it is in other languages, with regard
+ 137627 [nseckar gmai] [continuing] a new Controller instance is created, and the related instance

^ Ruby-doc.org is down
137636 [ruby.talk.li] I discovered about an hour ago that the machine hosting ruby-doc.org
137657 [james_b neur] The site was up about an hour or so after I discovered the problem.  THe

^ [ANN] Shallow Parser for t-SQL
137637 [sdate everes] Shallow Parser for t-SQL

^ Rails Scripts Slow?
137644 [hbtaylor gma] I have just started looking at Ruby and Ruby on Rails, and have run
+ 137648 [curt hibbs.c] I'm sorry I can't be much help, but its definitely something wrong with
| 137669 [hbtaylor gma] Curt,
| 137808 [ruby digital] Any luck determining the cause of this? I experience the same problem when
| 137817 [joevandyk gm] Can you profile it?  (might be able to pass -r profile ?)
| 137877 [ruby digital] Apologies to the group if multiple versions of this message came through.
+ 137703 [rampant gmai] And I was thinking that my computer's 2 second start time for any
  137704 [alex verk.in] ~/rforum : time ruby -e 'puts "aaa"'

^ [ANN] Chicago Area Ruby Group Meetup with DHH
137653 [ng johnwlong] The Chicago Area Ruby Group would like to extend a warm invitation to

^ weird delay of UDP server (seems to be thread-scheduling issue)
137659 [chris_guenth] the UDP client/server progam below does not work as expected.

^ Test failurse on stable-snapshot
137663 [surrender_it] I was trying to compile the latest stable snapshot (9 april 20005) with

^ [ANN] Fico 0.1.0
137665 [urban betton] This is the announcement for the first version of Fico.
+ 137670 [ehames gmail] "Havannah is a pencil and paper game the rules of which can be
| 137672 [urban betton] Yes, I've read that. But I'm not sure I'll ever get that far ... But who
+ 137698 [florgro gmai] Writing an AI for that game would be a wonderful Quiz topic. You'd just
  137710 [james graypr] I was not familiar with Havannah, until I saw these posts, but I'm all
  + 137715 [glenn.parker] Uh, from what I can see, Havannah is definitely a non-trivial game, on
  | + 137750 [surrender_it] but we have to make AI vs AI matches so I don't think we would mind that
  | | 137794 [chneukirchen] Seen from the point of the rules, it's a lot easier.
  | | 137797 [surrender_it] yup, it seem the same to me..  yet another case of simple core allowing
  | + 137781 [james graypr] I think a minimax search, on a board that size is definitely not going
  | + 137783 [florgro gmai] True, but this would be an AI vs. AI challenge meaning that every small
  |   137789 [james graypr] I have been toying with the idea of a Lost Cities tournament quiz, for
  + 137770 [urban betton] Well, university started again today so I might not have that much time
    137826 [urban betton] I just released 0.1.1 which is mainly a fix for that. It now included a

^ [QUIZ][SOLUTION] Knight's Travails (#27)
137666 [angus quovad] [Ruby Quiz <james@grayproductions.net>, 2005-04-08 20.38 CEST]
+ 137687 [dbatml gmx.d] [QUIZ][SOLUTION] Knight's Travails (#27)
+ 137688 [sellberg goo] Here is my solution. It could use a fair bit of refactoring, but I'm too
| 137693 [sellberg goo] I wonder what I thought here, this should be an #each instead, I never
| 137696 [nospam lunac] Here's my first attempt to a ruby quiz :)
| 137699 [angus quovad] [Ghislain Mary <nospam@lunacymaze.org>, 2005-04-10 21.27 CEST]
+ 137705 [matthew.moss] Here's my solution... This actually turned out to be relatively easy

^ [ANN] fxirb 0.2.0 - Multiline Edit (and request for help)
137671 [martindemell] available at http://rubyforge.org/projects/fxirb/
+ 137677 [binkley alum] To use fxirb I need fox12 but am having difficulty using gem to install
| + 137679 [martindemell] Sorry, I've never tried this - I just use the one-click installer.
| + 137685 [peter.kwangj] Binkley,
| + 137686 [peter.kwangj] Drat, I didn't mean to send to that address!
+ 137726 [itsme213 hot] Thanks! I'm getting quite a nice flow between my editor and fxirb now!
| 137729 [martindemell] Can you paste in a sample session? Not seen this happen on Win2k.
+ 137730 [csaba phony_] That sounds cool. I wanted to give it a try under Linux, but with my
  + 137743 [martindemell] I've not tested this at all under linux - I based it off Marco Frailis's
  + 137745 [martindemell] The whole thing just hangs up (windows says 'this application is not
    137749 [csaba phony_] A line read by irb is evaluated in an IRB::Irb instance (that class is
    137755 [martindemell] I tried IRB::Irb#gets and IRB::Context#gets, but neither of them were
    137762 [csaba phony_] I'm sorry, I was wrong. A command read by irb is evaluated
    137765 [martindemell] irb.context.workspace.main actually
    137863 [csaba phony_] Uh-oh. Stupid me, again.
    137971 [martindemell] I'm a bit confused about lifecycle issues now. What I have at the moment
    138162 [csaba phony_] Well, this code look fine to me, but of course, just looking at the code
    138252 [martindemell] I was referring to the fact that I created the Irb.new instance within
    139134 [csaba phony_] OK, I see.

^ Re: Knight's Travails (#27)
137682 [byrd.timothy] Here's mine - still very C-like...
137968 [byrd.timothy] And here is an iterative, breadth-first search that can be used in

^ Symbols...
137683 [glenn.ruby g] Nope, still not entirely sure I *get* symbols.
+ 137684 [ruby-ml magi] Symbols are immutable, unlike Strings. The biggest difference,
| 137694 [glenn.ruby g] Perfect!  Thanks muchly
+ 137695 [billk cts.co] In the above usage, I'd guess the difference is "not much", or
  137697 [nseckar gmai] You are exactly correct. (The class is called HashWithIndifferentAccess..)
  137766 [glenn.ruby g] Every day I scratch a little bit more off the surface of Ruby!

^ net/http POSTING form data help
137689 [ay0305 qazi.] I've got one of them origo 4 port ADSL routers, and the only way of
138142 [from_google ] know

^ Translating A Pattern of Data Into Equation, and ultimately code
137691 [zdennis mkte] I have the following table of data, and I am looking to create an
+ 137716 [ptkwt aracne] I think the table got a bit shifted so I shifted it back...
| + 137725 [zdennis mkte] WebSTAR, is a Web/Email/Ftp/etc... server that runs on OSX. The Ftp
| + 138244 [B.Candler po] - 0   |1     2       3       4       5       6       <<<<<<< ADDED
+ 137718 [csaba phony_] OK I see how you turn "zach" into 027 003 000 012.
| 137727 [zdennis mkte] It is real life data pulled straight from a data file. See previous
+ 137736 [ehames gmail] First, I transposed the table since the text editor works best across lines not
| + 137742 [martindemell] Note that if you read down the columns, this gives you each number in
| + 137754 [csaba phony_] That's sort of cool! Congrats!
| + 137813 [zdennis mkte] Edgardo...
+ 137737 [sellberg goo] You might want to look into
+ 137756 [martindemell] Gotit! Try letter xor column :)
  + 137757 [martin.anker] Wow, very good! I could not figure this out myself. Here is the very
  | 137796 [glenn.parker] s.gsub(/./){|c|((c[0]-?`)^($`.size+1)).chr}
  | 137895 [martindemell] returns a string of \000 here
  | 137924 [glenn.parker] Well, that's pretty funny, but it's also correct.  This particular
  | 137935 [martindemell] LOL! Okay, I feel silly now  :)
  + 137773 [ehames gmail] Martin,
  + 137793 [zdennis mkte] Awesome!! Thank you very very very much Martin!!!!
    137814 [martindemell] Welcome :) It was Edgardo Hames's post that gave me the clue.

^ YAML and X < Hash
137692 [matt.mower g] Porting some Python code to Ruby I have come across an issue in the

^ [ANN] cmd 0.7.0: Library for Line-Oriented Command Interpreters (initial release)
137700 [marcel verni] = Cmd 0.7.0 (initial release)
+ 137712 [james graypr] I've only had a few short minutes to play around with this, but this is
+ 137787 [itsme213 hot] Cool!
| + 137795 [marcel verni] Thanks!
| | 137890 [itsme213 hot] only
| | 137972 [marcel verni] Perhaps the already existent precmd and postcmd methods could be extracted
| | 137990 [itsme213 hot] I think this could be (is, actually) a very useful tool.
| + 137865 [spoooq gmail] Wouldnt the best way to do this be to open another, specialised Cmd?
+ 137883 [itsme213 hot] [C:\ruby\lib\ruby\gems\1.8\gems\cmd-0.7.2\example]ruby phonebook.rb
  137888 [marcel verni] Windows.  The phonebook.rb example is meant to be simple and illustrative so
  137891 [itsme213 hot] thanks, i just declared a HOME env-var and it worked fine.

^ [ANN] RForum 0.1 released
137701 [usenet andre] Description

^ Is there any library that can easily manipulate Bitmap (bmp) file?
137706 [sinkanti gma] In my project, i wanna resize original bmp file to 60x40 and make them
+ 137707 [wjl icecaver] charset="iso-8859-1"
+ 137709 [cyclists nc.] RMagick

^ OSX Tiger comes with Ruby 1.8.2!
137711 [ezra yakima-] Hey there list-
+ 137717 [ptkwt aracne] That's great news... though by the time Tiger comes out (next month?)
| 137720 [rich infoeth] This is GREAT NEWS.
| + 137732 [ptkwt aracne] Apparently someone rescued the exception. ;-)
| | 137733 [damog damog.] Or using a 3rd party updater is a right choice. Fink coming to my mind.
| + 137741 [lucsky mac.c] Yeah well, irb is still compiled without readline support. :/
|   137758 [rasputnik he] Readline is problematic license-wise, I think?
|   137771 [brianm apach] BSD editline may be a viable alternative for them, if readline is a
+ 137752 [surrender_it] I'm not very much into OSX, but IIRC there are packages coming as
| 137776 [jannis harde] Frameworks (.framework) are Mac OS X Shared Libraries (not .dynlib (same
+ 137948 [tamc2 cam.ac] Ruby 1.8.2 in Tiger confirmed on this handy page
threads.html
top