279015-296253

278827-282221 subjects 279241-280533

^ Beginner needs help...
279015 [caesarsalad ] Hey everyone!
279019 [alex blackke] What's the platform?  Windows?  I suspect the answer's no, but there may
279218 [caesarsalad ] Yes, the platform is Windows XP, but I intend to make it available to
279294 [alex blackke] Is offering a separate interface that launches the executable with the
279308 [caesarsalad ] The thing is: currently, for AOE2, you can launch a graphic modpack
279320 [alex blackke] In that case, you're probably going to want to just move the AOE2

^ Date.new('2007-09-01') not legal?
279020 [lists gregwi] Is that form of creating a new date object really not legal? If so, that
+ 279021 [donald.ball ] Try Date.parse('2007-09-01').
| 279023 [lists gregwi] Whew :-)
+ 279026 [drbrain segm] You want Date.parse.

^ rspec questions: same file? mocks objects as params?
279024 [dweldon gmai] 1) Should the rspec be in the same file as the production code? The
279028 [pergesu gmai] Specs should be separate.  In a Rails app there's a spec dir that
279055 [pergesu gmai] Well, not quite.  If you're retrofitting tests onto existing code,

^ Hpricot & mechanize fail to parse page after redirect
279027 [ehudros gmai] My quest with mechanize/Hpricot continues :)
279030 [Rob AgileCon] it's probably similar to the issue I had using HTTPClient.  The
279042 [ehudros gmai] That is probably the case when using Hpricot - but mechanize handles

^ Transfer content of  flat file to an array
279033 [surjit.meite] Scenario  ..
+ 279034 [alex blackke] File.readlines, map, to_i.
+ 279035 [eustaquioran] => ["23", "24", "56", "78", "90", "89"]
+ 279036 [phrogz mac.c] On Nov 14, 1:15 pm, Surjit Nameirakpam <surjit.mei...@gmail.com>
+ 279037 [Rob AgileCon] ruby -e 'p File.readlines("/tmp/numbers.txt").map{|line| line.to_i}'

^ seg faults with 1.8.6
279040 [aktxyz gmail] I recently upgraded from ruby 1.8.5 to 1.8.6.  At first I was using
279041 [aktxyz gmail] of course, reproducing this is difficult, it just does not happen

^ Recursion help.
279043 [JeremyWoerti] I suck at recursion, and I need some help understanding where I'm
+ 279044 [dblack rubyp] Do you want 'until' instead of 'unless'?
| 279046 [JeremyWoerti] Oh man, whoops! haha. Yes, I do want that. I must be tired or
| 279047 [JeremyWoerti] Done! Works great, but I am always interested in seeing how it can be
| 279156 [sepp2k googl] I'll do my very best.
+ 279157 [sepp2k googl] You're not using recursion at all in your code. Recursion is if a method
  279196 [JeremyWoerti] oh, I thought it was just where you have an iteration inside another
  + 279200 [alex blackke] Or alternatively,
  + 279249 [sepp2k googl] As I said, I didn't test the code, but I really can't see where it would go

^ test/unit question.   Accessing class variables?
279045 [weathercoach] This is my first attempt in trying to use the ruby library test/
+ 279051 [m_goldberg a] I don't know how to solve your problem under the constraints you =20
+ 279059 [alexg kuicr.] The class 'SimpleTest' has nothing to do with your class 'Simple'.
  279069 [phlip2005 gm] Next time, write the tests at the same time as you write the code. This

^ "&prock", not "&block"
279049 [greg.weeks a] In all of the code below, "prock" by itself is always a proc, while the
+ 279058 [transfire gm] &action
| 279168 [greg.weeks a] Certainly, in real-life code.
+ 279086 [drbrain segm] Class doesn't matter, methods do.  I'm (almost) always passing in a
  279173 [greg.weeks a] You're preaching to the choir :-)
  279262 [drbrain segm] You can't make a variable &foo.
  279269 [greg.weeks a] I take your point.  Thanks for the correction.
  279412 [drbrain segm] If by 'use the block argument in the method body' you mean 'call

^ Post about ThreadDump Stack Traces
279050 [bryan raplea] Hey all,

^ Linking to the tk directory
279052 [slimick came] I am new to ruby, so I need some help.
279075 [m_goldberg a] That directory only contains the Ruby library that acts as a bridge

^ adding an attribute to an object
279054 [r.mark.volkm] I know how to add new methods to an existing object, but is there a way to add an attribute?
+ 279056 [pergesu gmai] Not quite sure what you mean...but anyway, maybe this irb session will
+ 279060 [ara.t.howard] require 'attributes' ### gem install attributes
+ 279065 [phrogz mac.c] As Pat pointed out, there are no 'attributes' in Ruby, just methods.

^ "How Classes and Objects Interact" (Pickaxe)
279057 [greg.weeks a] I'm sorry about the bandwidth, but I just read "How Classes and Objects
279180 [greg.weeks a] Many people wonder: Why doesn't module inclusion include class methods?

^ how to get the WSDL of a ruby web service
279072 [thilinamb gm] i followed a article at the following URL and implemented both the

^ No grok the &block
279073 [lists gregwi] Trying to tackle Ruby bit by bit. Got many of the basic down, but I'm
279077 [raulparolari] The best explanation I know is the one given by D.Black in his "Ruby for

^ Webrick:Daemonize under Windows
279076 [christian.ke] Hey!
279090 [drbrain segm] You want to run as a service instead.  I think win32-service does this.
279151 [djberg96 gma] Yes. It's actually bundled up for you already in the 'ruby-services'
279246 [christian.ke] How is this service API working? Is this a wrapper around the windows
279296 [djberg96 gma] On Nov 16, 1:04 am, Christian Kerth <christian.ke...@dynamicmedia.at>
279299 [christian.ke] Where do i find this "start" command? Standard Ditro or do i need
279304 [djberg96 gma] On Nov 16, 6:25 am, Christian Kerth <christian.ke...@dynamicmedia.at>
280825 [christian.ke] The actual example is, i want to run an application that consists of
282182 [christian.ke] Still no satisfying solution......can somebody help?
282229 [luislavena g] On Dec 5, 10:42 am, Christian Kerth <christian.ke...@dynamicmedia.at>

^ Re: Vehicle Counters (#146) [SOLUTION]
279078 [rubytraining] I wanted to graph the data, so I ended up using the scruffy library to

^ Thread synchronization
279080 [m.tyman inte] stationStatsTr = Thread.new do

^ Array checking ????????????????????
279081 [neranjan125 ] i have written a array like this.
+ 279083 [jari.william] if my_array.include?("one")
+ 279084 [AEtzold gmx.] Dear Nadeesha,
| + 279085 [neranjan125 ] THANKS A LOT PAL
| + 279092 [dblack rubyp] No, you definitely don't want to do that, for many reasons. As Jari
|   279094 [AEtzold gmx.] Dear Nadeesha,
+ 279095 [botpena gmai] On Nov 15, 2007 5:59 PM, Nadeesha Meththananda > my_array =
+ 279133 [rick.denatal] Others have told you what works.  Let's talk about why this doesn't.

^ How to Create Tree View
279088 [anilbhat21 g] Does anybody know how to create the tree hierarchy of any text in Ruby?
279093 [peter rubyra] You mean something like this?

^ compile ruby under windows xp with MinGW
279091 [sputnik42 gm] dear rubyians,
279101 [nobu ruby-la] Just run ./configure *without* copying it.
279141 [sputnik42 gm] thank you for the quick reply! that's it, but now there is one problem
279227 [nobu ruby-la] I'm not sure about your environment.  cygpath is used only when
279301 [sputnik42 gm] that was the result log of make call.

^ design timelines
279098 [transfire gm] i'm doing a work on a large system and while i have no problems

^ [SUMMARY] Vehicle Counters (#146)
279103 [james graypr] This is a cool little data mining problem.  Unfortunately, it is a fair bit of

^ Unsubscribing
279104 [ecomba mac.c] Sorry for this mail (not related to Ruby directly, but to the list itself)...
279140 [m_goldberg a] Send your unsubscribe message not to this list, but to <ruby-talk-

^ Net::HTTP header issue
279111 [liu_edward e] I am trying to use custom headers, and I am having an issue with how
+ 279171 [keith audiob] """"4.2 Message Headers
| 279172 [liu_edward e] This doesn't help me at all.  I already know that field names are
+ 279220 [ara.t.howard] you can try something like

^ [ANN] shoes 0xFF
279114 [why ruby-lan] Shoes is a tiny, cross-platform windowing toolkit.  Think of it as a

^ [ANN] shoes 0xFF
279115 [why ruby-lan] Shoes is a tiny, cross-platform windowing toolkit.  Think of it as a
279117 [hiato3 gmail] Woohoo!! Some shoes news :P

^ Ruby & Flash
279118 [ruby tobyand] I need to generate a chart with graphic links, buttons etc for the web.

^ webrick alternative
279121 [list-ruby fr] I'am looking for a small webserver running some ruby classes/servlets.
+ 279122 [garbagecat10] Not sure what you mean by "small," since you'll need to load in the
| + 279128 [mailing.mr g] mongrel. do your googling next time
| | + 279142 [list-ruby fr] I have tried mongrel, but it is the same problem,
| | | 279150 [mailing.mr g] I didn't know memory was that important, unfortunatelly there's no other
| | | + 279161 [ezmobius gma] A simple mongrel handler uses about 6-7MB of ram for me on 32bit
| | | | 279166 [list-ruby fr] you are (nearly) right, after startup the mongrel uses about 7-8 MB non relocatable
| | | | 279170 [caleb aei-te] Are you using a staticly linked ruby or shared libraries?  ps aux isn't a great
| | | + 279297 [lojicdotcom ] Apparently in your rush to be rude, you didn't even bother to read the
| | + 279178 [drbrain segm] You forgot your manners.
| |   279289 [mailing.mr g] Yep, bad day ;) I apologise
| + 279143 [list-ruby fr] loading a ruby interpreter is no problem, I'am running other ruby software
|   279300 [andreicmaxim] Give Lighttpd a try. It might be a bit more "lightweight" than mongrel.
+ 279298 [mneumann nte] I'm currently embedding Ruby into nginx (www.nginx.net). It's not yet done as I
| + 279356 [ezmobius gma] Michael-
| | 279857 [mneumann nte] In the initial version a Ruby request handler would block the entire work
| + 279407 [ara.t.howard] i just started hacking on this too!  i'm leaning towards simply
| | 279631 [mneumann nte] Not yet. Maybe in a few days.
| + 279466 [aemadrid gma] I'd love to play with it!
+ 279408 [sean.ohalpin] Not sure how small in machine memory it is, but in terms of cognitive

^ Struct constructor
279123 [Wayne.Magor ] It isn't possible to define a class method [] (to make a constructor)
+ 279124 [stefano.croc] You can't instruct ruby to create a class different from Array for the [x,=
| 279135 [wemagor2 gma] I also missed the docs for this since I was looking in the old pick-axe
| + 279136 [mental rydia] It's just a singleton method on the class object; "[]" is a valid method name.
| + 279138 [sepp2k googl] obj[stuff] is syntactig sugar for obj.[](stuff) and obj[stuff]=otherstuff is
+ 279132 [shortcutter ] Of course you cannot change the semantics of the array constructor.

^ problem: ruby-fcgi on windows blocks other threads
279126 [zefei.xuan g] I'm working on a project that requires me to run a multi-thread script
279169 [ara.t.howard] certion io operations block all threads on windows because ruby uses
279208 [zefei.xuan g] Thank you. Does that mean Ruby 1.9 will solve this since it uses kernel
279385 [ara.t.howard] i dunno - i've barely looked at one nine.  sorry.

^ Module vs Class
279129 [himars gmail] I am new to ruby, and one question here: what object should I wrap as
+ 279131 [shortcutter ] I am not sure what you mean by "wrap".  You often use modules where
+ 279146 [coder68 yaho] Classes are extended from Modules with the added "functionality" that
+ 279162 [raulparolari] Besides the reference given above, another good source is D.Black's
| 279164 [dblack rubyp] It's "Ruby for Rails" (not "on"). But thanks for the nod :-)
+ 279209 [rubytraining] Modules in a certain sense are more than one thing, and that can make
  279216 [shevegen lin] In general I would recommend to use module if you ever want

^ xmlrpc problems
279134 [mcse palstek] I would like to call a method asynchron on a other pc with xmlrpc
279155 [james graypr] Could you possibly show a simple server and client script that don't
279163 [mcse palstek] sorry, here is my sourcecode. I hide the code for sending and sniffing
279192 [james graypr] I wasn't able to run this code=85
279194 [mcse palstek] Of course, because your network can be designed in an other ip
279215 [james graypr] You are exactly right, of course.  I'm sorry.  I didn't pay enough
+ 279242 [mcse palstek] I use the same ruby version as you. Examples and usable how to's are on
| 279302 [james graypr] Did you follow the download link at that page to get XML-RPC or are
+ 279306 [james graypr] I now understand this error and why I was getting it.  Your handler
  279309 [mcse palstek] Wow, thanks for your help!!!!! This mistake was the point of failure.

^ Do I need to use JRuby to access an remote oracle DB with JDBC ?
279139 [wbsurfver ya] When I try to connect to a remote oracle DB using activerecord oci8, I
+ 279147 [shortcutter ] Well, if you want to use JDBC you must be on a JVM.  As you probably
+ 279149 [fxn hashref.] Probably the Java application is using the thin driver.

^ use module or class with a container that holds only object  references?
279148 [aidy.rutter ] I have a number of object references that I need to use in most if not

^ Ruby to Python translator
279158 [aurelianocal] I'm thinking about implementing a ruby to python translator (this is a
+ 279160 [ryand-ruby z] None that I know of outside of ruby.
| 279651 [aurelianocal] Yeah! But it's a lot more important that seems like an entertaining project.
+ 279243 [m.liedl gmx.] You might have a look at the "Ruby top down Grammar" project. It is a
| 279643 [aurelianocal] That's what I was looking for, tanks.
+ 279305 [mneumann nte] I'm translating Ruby to Javascript and use ParseTree for that. Python is a
  279327 [rick.denatal] From what I've heard and seen of Javascript, I'm not sure that the
  279633 [mneumann nte] IMHO Python has a much better underlying model, just take Javascript "null"

^ Adding Post Data to IE.navigate method with Ruby
279159 [beefandbachl] I'm automating IE with Watir and Ruby and I have a slight problem that
279186 [pmr16366 gma] post data is usually hash like, so maybe this is what you need
279191 [beefandbachl] Thanks for getting back to me. Seems like IE won't do a POST unless

^ instance variables as class variable ?
279167 [wbsurfver ya] I'm trying to get a handle on why the following code works by printing
+ 279176 [rick.denatal] Well it is an instance variable, of the class.  This is commonly
+ 279195 [marick visib] @x is an instance variable belonging to the object-that-is-a-class,
  279222 [wbsurfver ya] Thanks for all the helpful comments, I will have a look at that site

^ (1..5) === 3 > true 3 === (1..5) > false
279175 [nanostuff ma] (1..5) === 3 > true
+ 279179 [caduceass gm] It's one of those "you have to read the docs" things.  The === method
| 279182 [nanostuff ma] I know it's a method, but why doesn't Fixnum's === work properly with
| + 279184 [phrogz mac.c] What do you think "===" means? Hint: it's not the same as "==", or
| | 279188 [alex blackke] Mentally, I parse "===" as "contains".  That requires a little mental
| + 296249 [fburton nyx.] Is there a construct like this in Ruby?
|   + 296250 [wieczo.yo go] You can use Enumerable#include?.
|   + 296252 [sepp2k googl] First of all: You usually wouldn't use ===, you'd use (1..5).include? x
|   + 296253 [lopx gazeta.] Use (1..5).include? x. Ruby tends to use methods instead of abusing
+ 279185 [vjoel path.b] It's normal for the #=== operator to be asymmetric, even though it looks

^ Using a variable with gsub & sub
279177 [bostonantifa] In the following statement, I'm replacing ,, with ,NULL,.
+ 279183 [yermej gmail] $inrec.gsub! ',,\\', ",#{$variable},"
| 279207 [bostonantifa] yermej,
| 279211 [justincollin] If you really want to use global variables ($var) then you can also do
+ 279187 [lists subver] $inrec =3D $inrec.sub(',,\\',','+$variable+',')

^ Genetic Algorithm and Ruby
279190 [notvalid nom] I am interested in Ruby libraries that could be of help in
279204 [AEtzold gmx.] As you have found some Ruby implementations of genetic algorithms from Google already, I'd just like to suggest the following technical report
279223 [notvalid nom] Axel,

^ [Ann] Google translate ruby client api 0.1
279198 [yedingding g] get the answer directly from the terminal, instead of the browser.
+ 279201 [konrad tyler] charset="utf-8"
| 279237 [yedingding g] a good idea. I'll do it tonight, :)
| 279264 [yedingding g] Comand line tool is ok.
| 279352 [konrad tyler] charset="utf-8"
+ 279725 [richard.conr] I have written similar tools using Watir, but one thing I noticed is that google
  279793 [yedingding g] sorry, personally i haven't met the problem. It has never asked me to input
  279923 [richard.conr] Yeah, it was pretty brutal alright, some java properties files with

^ Re: Using a variable with gsub & su
279206 [list.push gm] Try this.

^ From rails 1.x to rails 2.x : basic case not working
279214 [watchout-tra] I'm trying to make a new application using a legacy database.
279225 [watchout-tra] Ok people, got it working.

^ Stripping the extensions off of a file...
279217 [pood.forums ] I'm building a program that goes thru a file structure, and it will find
279224 [botp delmont] RnJvbTogRmVuZyBUaWVuIFttYWlsdG86cG9vZC5mb3J1bXNAZ21haWwuY29tXSANCiMgRmluZC5m
279228 [pood.forums ] great thanks! I didn't know the File library had that method.

^ ruby/pcap with threads
279231 [kenny.roytma] Can someone please explain why I don't see any output from the
279247 [botp delmont] # Hi Everyone,
279324 [kenny.roytma] arnings...
279415 [drbrain segm] I had to go with a fork model for OS X, something in pcap doesn't

^ sql managing
279233 [globyy3000 h] So i have postgres setup and the database is working all fine and
279260 [globyy3000 h] Well, i came up with a solution for myself, but i do have one

^ Anyway to make grep take a regular string?
279238 [pood.forums ] I know grep needs to take an regular expression.
279240 [alexg kuicr.] What grep are you referring to? Enumerable#grep doesn't need an RE. A
279248 [pood.forums ] Yah, I'm use the Enumerable#grep
279255 [alexg kuicr.] Perhaps there's a line ending "\n" you're missing. Your method works
threads.html
top