301135-304473
300930-318954 subjects 301330-314161
^ Writing a SQL Query in Active Record?
301135 [anukul.singh] I am using the following code snippet for connecting to SQL Server
301143 [cmdjackryan ] ar.rubyonrails.com
301151 [anukul.singh] Thanks for the reply.
+ 301166 [cmdjackryan ] Yes, that is what ActiveRecord's #find and #find_by_sql methods do.
+ 301169 [overlord gmx] What's ActiveRecord for if you just want to use SQL?
301171 [cmdjackryan ] - --
^ Re: Why can't I redefine "<<" method to allow two parameters
301138 [koflerjim ma] ruby -e 'p [1,2,3] << 4 << 5'
301144 [dblack rubyp] This message is in MIME format. The first part should be readable text,
301149 [cmdjackryan ] Nothing that works. ;P
^ Re: Reverse Divisible Numbers (#161)
301148 [matthew.moss] Forgot to send in my own solution: summary coming shortly.
301170 [marcelo.maga] Isn't that Numeric#step (ignoring exceptions)?
301199 [matthew.moss] Why, yes, it would appear to be so... Learn something every day, I do.
301248 [micathom gma] They may be incomplete (although I'm not so sure this is true for
^ Compilation error in cont.c
301152 [maurice.enci] with ruby 1.9.0-1, I get the following error during the
301155 [matz ruby-la] Could you try the trunk from the svn repo?
301163 [maurice.enci] Thank you very much for answering Matsumoto-sensei,
301215 [matz ruby-la] I just checked in the possible fix. Could you try the latest again?
301263 [maurice.enci] Could you try the latest again?
301266 [matz ruby-la] Sounds nice.
301280 [maurice.enci] collect2: ld returned 1 exit status
301328 [matz ruby-la] By "removing -lrt", I also meant removing HAVE_CLOCK_GETTIME from
301533 [maurice.enci] I should have read time.c. Indeed removing HAVE_CLOCK_GETTIME I'm able
^ QtRuby: get data from TableWidget
301157 [la.bizzz gma] I've started learning QtRuby few days ago so I've got newbie question
301182 [richard.j.da] require 'Qt4'
301184 [la.bizzz gma] Thank you, Richard, exactly what i needed!
^ Re: Error when starting the server
301160 [albertschlef] I'm not familiar with Rails, but it seems you're trying to start Ruby's
301198 [globyy3000 h] The default webrick server port is 5432 or 3000 from what I remember.
^ How call scripts in windows using something like 'nohup' in linux
301162 [paqs140482 g] I came from linux into windows, I was calling all scripts using 'nohup'
+ 301167 [djberg96 gma] On May 8, 11:01=A0am, "Pablo Q. - Ahora en: TicoWarez.com/TicoWarez.org/
+ 301234 [phasis gmail] In these cases, you'll want to use rubyw.exe. It is the same as ruby.exe
^ Re: checking connection to server:port [socket]
301165 [slan.dizier ] unsubscribe
^ [SUMMARY] Reverse Divisible Numbers (#161)
301173 [matthew.moss] about done with the first rev of a new (temporary) website. The new
^ [ANN] tagz-4.2.0 - giraffe slayer
301174 [ara.t.howard] NAME
+ 301183 [adam.shelly ] It appears Ara has been visited by _why's Muse.
| 301187 [ara.t.howard] more like a small 1 year old girl, awake at 1 am, depriving dad of
+ 301218 [matt tidbits] Has the gem been updated?
| + 301221 [ara.t.howard] hmm. it has, but didn't get pushed up. i'll do that now - should be
| + 301223 [ara.t.howard] <a href="/frs/download.php/36812/tagz-4.2.0.gem">tagz-4.2.0.gem</a></
+ 301241 [tim.pease gm] Love the version number, Ara! I fee like my life has meaning now.
+ 301245 [znmeb cesmai] Well ... if giraffes weren't endangered before, they are now. :)
301259 [cmdjackryan ] You obviously need its fork, WidowMaker. ;P
^ windows prompt, how to write [ ] ?
301178 [skanemupp ya] using the ruby prompt in windows, how do i write [ ]? altgr+8 doesnt
301179 [luislavena g] What keyboard distribution you have?
^ scramble sentence, how to better program?
301186 [skanemupp ya] i have written a program that takes a sentence as input and outputs
+ 301188 [dblack rubyp] def in_list?(aword, alist)
| + 301201 [ z q.w] cool, i did not look at your solution before posting mine, this is a lot
| + 301202 [ z q.w] but does this take into account that rand could generate the same numer two
| | + 301207 [dblack rubyp] I'm by no means a random number expert/theorist, but the above is a
| | | + 301210 [ z q.w] even if rand would generate 2 times the same number that would not be a
| | | + 301212 [Rob AgileCon] ...
| | + 301211 [bbxx789_05ss] So what?
| | 301213 [ z q.w] so nothing. i found that out 10 minutes ago :)
| + 301203 [skanemupp ya] rofl aamazing, ty very much :)
+ 301200 [ z q.w] sentence = "this is a sentence with the word sentence repeaed"
^ wired result
301189 [happy.go.luc] Hey, guys.
301190 [happy.go.luc] Sorry, I wasn't finish when I mistakely posted it.
+ 301194 [globyy3000 h] If I'm understanding you correctly, you have lets say an array of keys
| 301205 [happy.go.luc] My program is not that complex though.
+ 301195 [chekenan gma] This method actually .. works. Check the values of ftarget and fkey
^ Write Ruby code sentences
301192 [sandro.pagan] Have you ever tried to write phrases in ruby code ?
^ qt ruby gem install on windows xp
301196 [mail msryan.] I was looking forward to trying Ruby with qt - it seems a great
301224 [cmdjackryan ] What is the error you get, exactly?
^ Doing an AND in regexp char class
301204 [caduceass gm] This question arises out of a couple of recent threads and may or may
+ 301216 [ara.t.howard] class String
| + 301219 [caduceass gm] Cool :) #tr is one of those useful methods I somehow consistently forget about.
| | + 301222 [ara.t.howard] me too. just got lucky this time ;-)
| | | 301265 [robert.dober] Knowledge --> the art of getting lucky very often, right Ara ;)
| | + 301225 [vjoel path.b] But it can be done with regex, right? It's just more elegant with tr.
| | + 301226 [caduceass gm] I'm drawing a blank here with this one. Why doesn't this work then...
| | | + 301228 [vjoel path.b] Maybe I'm confused about was wanted originally. The above tests the
| | | | + 301231 [dblack rubyp] That depends on the order, though. To do the superset test, you could
| | | | | 301233 [vjoel path.b] irb(main):003:0> /(?=.*h)(?=.*o)/ === "o \nh"
| | | | | 301235 [dblack rubyp] Actually I think I was wrong about the order mattering (since they're
| | | | + 301240 [caduceass gm] Yep. The subject title is misleading, because the AND is already
| | | + 301230 [dblack rubyp] "hello, there" contains letters other than o and h, but your regex
| | + 301257 [bbxx789_05ss] strs = ["aaa", "bbb", "ccc"]
| | 301261 [dblack rubyp] if /\A[#{str}]*\z/ =~ chars
| | 301267 [bbxx789_05ss] Whoops.
| + 301440 [pit.capitain] s1 = "hello there"
+ 301220 [rick.denatal] REs can do this, but may not be the best way. The way that comes to
^ Hoe and multiple gems
301206 [damphyr free] I have a few plugins/extra features I'd like to offer as separate gems.
^ Ruby Quiz 2.0 new location
301208 [matthew.moss] I've moved the temporary Ruby Quiz 2.0 stuff to a new, less-temporary
^ [Challenge] Cookie Monster!
301209 [ljjarvis goo] Perhaps this isn't the correct place for this. Although I didn't feel
+ 301238 [ pm ubit.com] Seems like a comp sci homework problem to me, as it is a classic example
+ 301258 [jgabrielygal] I think it's a perfect quiz for Ruby Quiz.
^ RMagick 1.15.14
301214 [rmagick gmai] I've just uploaded RMagick 1.15.14 to RubyForge. This release adds
^ Principle of le,err i mean biggest surprise!!??
301227 [skanemupp ya] puts "Input sentence:"
+ 301229 [matthew.moss] Essentially, yes, though I believe they are more commonly called
+ 301274 [rick.denatal] Rick DeNatale
+ 301286 [fox nscl.msu] Well actually it makes perfect sense.. given what a Ruby variable
301371 [shevegen lin] I believe you might want to use .dup
^ How to re-replace Hash default value behaviour?
301232 [s.korteling ] Hash.new(0) and the block form of Hash.new{_smart_stuff_} come in
+ 301242 [matt tidbits] h = Hash.new.merge(h)
+ 301243 [cdemyanovich] Reset the default.
| 301329 [s.korteling ] Thanks all. When i'm stuck, the solution is almost always easier then I
+ 301262 [andrea.fazzi] a = Hash.new(0)
^ HI.How to install instal qtruby4-1.4.9-mswin32.gem with gem???
301239 [d4rkl0r0 gma] i want to use qtruby.how to install?i try type "gem insall
^ how to do this regex substitution?
301244 [skanemupp ya] i want to replaxe the pattrn consonant o consonant, ie hoh -> h, dad -
+ 301249 [botp delmont] # i want to replaxe the pattrn consonant o consonant, ie hoh -> h, dad -
+ 301400 [dev-null pma] consonant o consonant
^ Re: Bootstrapping Ruby with MinGW: selfhosted and test sandb
301246 [rogerpack200] downloading r15977 seems to still have the 100% readline problem. Is
^ Re: Bootstrapping Ruby with MinGW: selfhosted and test sandbox!
301247 [rogerpack200] I saw a post saying an rmagick mingw gem was available. Any word on how
+ 301273 [shevegen lin] /me hopes for mini-tutorial :-)
+ 301275 [luislavena g] Dunno if a gem is available, only they succeed building with it with
^ validation for file
301252 [sunny_bogawa] i am developing one application in which user uploaded one csv template
301254 [bbxx789_05ss] Does this forum say "ruby on rails" anywhere? Or is it your
301354 [shortcutter ] This is a rather weak check as it only tests the file name. Note, that
^ Re: Cookie Monster!
301260 [ljjarvis goo] ki/Dynamic_programming
301269 [hurikhan77 g] wiki/Dynamic_programming
301277 [shortcutter ] #<struct Path
301377 [quentin.saba] $ time ruby challenge.rb
^ Active Record: Query to find all the tables in a database?
301264 [anukul.singh] I am using the following code snippet to connect to a DB using Active
301270 [gprabhas gma] con = ActiveRecord::Base.establish
^ Using Derrick Pallas' ruby fcgi dispatcher
301268 [hurikhan77 g] Code looks fine, and first request looks fine. But subsequent requests
301300 [boesemar gmx] ...all over that dispatcher script to see where the problem starts (it will
301633 [hurikhan77 g] Thank you for the suggestions.
301917 [hurikhan77 g] ill
^ running a script through remote desktop
301272 [pranjal.jain] I am having a script which is on other computer. I want to connect it
^ Delete every other value in an array
301278 [crofty_james] What is the best way to delete every other value in a ruby array?
+ 301281 [list.push gm] Here is one way.
| 301430 [list.push gm] Oops. My code has a bug. It can fall down when there are duplicates.
| 301431 [list.push gm] Or not. :)
+ 301282 [yermej gmail] This will work, but I'm not sure if it's the best way.
| 301288 [ara.t.howard] a = %w(a b c d e f g h i j k)
| 301391 [yermej gmail] Oops...I really should have noticed that. In a hurry, I guess. I'll
+ 301284 [rgs rieder.n] v = %w(a b c d e f g h i j k)
| 301289 [ara.t.howard] are you sure? ;-)
+ 301285 [james graypr] => ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k"]
+ 301290 [ara.t.howard] # the list
+ 301297 [robert.dober] what about #values_at
| 301298 [robert.dober] oh I see this was part of Ara's paper on the theme ;)
+ 301388 [vjoel path.b] This solution is less elegant and rubylike than some of the others, but
+ 301401 [bbxx789_05ss] letters = ("a".."z").to_a
| 301404 [dblack rubyp] letters.values_at(*0.step(letters.size-1,2))
| 301419 [bbxx789_05ss] Thanks, but I prefer to break with Ruby tradition and not write one
+ 301412 [ z q.w] irb(main):001:0> a = ("a".."z").to_a
^ Download resume with NET::HTTP
301279 [djioev gmail] I'm wondering is there any way to do interrupt file download and then
301287 [marcelo.maga] req = Net::HTTP::Get.new(path)
301291 [djioev gmail] Thanks Marcelo,
^ Form_remote_tag and csv download?
301283 [ckujawa fair] Good morning! I have a case where I need to build a csv file from my
^ Which GUI library to use?
301292 [mohsinhijaze] Which GUI library you would recommend to use?
+ 301295 [shevegen lin] You gave only two choices :)
+ 301309 [dmanriqu cor] I've had very good results with WxRuby http://wxruby.rubyforge.org/; It
| 301318 [alec arlross] <dmanriqu@correo.fca.unam.mx> writes
+ 301335 [james.britt ] Neither.
+ 301337 [znmeb cesmai] I've never seen any statistics on this. I suspect that there aren't all
+ 301359 [vk dsl.pipex] Both are OK, but it depends on what application you want to write (e.g.
| 301389 [vjoel path.b] and Tk has a nice Canvas...
| 301395 [ruby-lang da] GTK does have a table.
| 304473 [vk dsl.pipex] Sorry for the late reply,
+ 301499 [uwe kubosch.] I've had some experience with JRuby + SWT and I must say it is the most
^ [QUIZ] The Turing Machine (#162)
301293 [matthew.moss] -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+ 301344 [pluskid gmai] Does it mean the tape head move action can only be [RL] ? Is there an
| 301346 [james graypr] Correct, the tape moves with each instruction.
| 301350 [juanger gmai] In fact, both representations are equivalent(the one that has the option to
+ 301473 [marcelo.maga] My solution is attached. I'm not satisfied with it, I have the
+ 301490 [jgabrielygal] This is what I did: the TuringMachine is made of a TuringTape, a
+ 301502 [mike stok.ca] # Turing machine tape.
+ 301506 [juanger gmai] I attached my solution.
+ 301513 [pluskid gmai] And here's mine.
+ 301583 [adam.shelly ] My first implementation is a fairly literal interpretation of the description.
+ 301595 [alpha.chen g] #!/usr/bin/env ruby
^ Re: The Turing Machine (#162)
301294 [matthew.moss] <http://www.splatbang.com/rubyquiz>
301314 [cmshea gmail] I created another program for our Turning machines that reverses a
+ 301323 [adam.shelly ] Here's a simple one.
+ 301347 [Glen.F.Panko] Below is a (very ugly) machine to convert binary to octal,
301423 [adam.shelly ] converter I took a fairly different approach. I think binary is
301437 [matthew.moss] Just so you guys know, I have no intentions of starting Turning
+ 301441 [cmshea gmail] Too bad. I've started on a DSL for creating Turing machine code. I
| 301444 [micathom gma] Yummy. Please share.
| 301471 [cmshea gmail] Unless it's going to be a follow-up quiz. I think it'd make a great
+ 301472 [cdcarter gma] I am surprised nobody has shared their Hello World!
301476 [cmshea gmail] I hope it's pretty straightforward.
+ 301478 [micathom gma] Already. Ok, so here is mine.
+ 301479 [cdcarter gma] It is pretty simple, and short.
+ 301481 [sandro.pagan] This is my solution, I tried to keep it clean (also if I found quite
+ 301482 [vagabond cat] I didn't really know what the hell a turing machine actually was until I
301597 [matthew.moss] Looks like a pretty nice solution, except I think (but didn't confirm)
301665 [alpha.chen g] That could be a problem, but I cheated: @tape is actually a hash. (I
301670 [matthew.moss] Ah, well played, sir. I concede the point. :)
^ verify installation
301301 [ ma rwdi.com] Is there a way to verify the installation of Ruby
301312 [justincollin] When you use gems, you have to require RubyGems somehow anytime you want
301313 [ ma rwdi.com] I did as suggested. See transcript below. Notice the return of "false"
301319 [justincollin] The false return value is typical for RubyGems and nothing to worry
301320 [ ma rwdi.com] b/
+ 301322 [justincollin] The Ruby source does come with tests, but I have no idea how they work
+ 301429 [luislavena g] I'll suggest you revisit the Watir dependencies.
^ in `include': wrong argument type Class ???
301303 [unbewusst.se] module ManPage
301307 [unbewusst.se] it was a caching problem, restarting the server did the trick...
^ [ANN] RubyKaigi2008 Tickets and News
301304 [l.g.chin gma] RubyKaigi is the main Ruby conference in the homeland of Ruby, Japan,
^ Bad file descriptor - connect(2) (Errno::EBADF)
301308 [valerieh myp] I am using Ruby to send files to an FTPS site. This was working
^ [ANN] Inviting Ruby Committers to RubyKaigi 2008
301317 [l.g.chin gma] To all Ruby Committers,
^ Persistent Hash
301321 [kyleaschmitt] I'm looking for some sort of persistent hash, or object store for ruby.
+ 301326 [cdemyanovich] DataMapper [ http://datamapper.org/ ] and Sequel [
| 301327 [evan tiggerp] DataMapper +1
+ 301334 [sean.ohalpin] I quite like fsdb - http://redshift.sourceforge.net/fsdb/. It persists
| 301394 [vjoel path.b] It's stable, AFAIK. It's running as part of a couple of my projects and
| 301428 [ara.t.howard] i think this project is one of the most under-rated out there - you
| 301435 [vjoel path.b] Er, you mean like making a gem out of it... yeah I guess so :)
+ 301355 [shortcutter ] Might be an option, depending on how long your transactions are. If
threads.html
top