325207-334649

324936-328921 subjects 325400-326383

^ Dual boot system -- share installed gems
325207 [donn cmscms.] I have a dual boot computer -- Linux and XP.  There is a shared data
325216 [iwasinnamukn] It's probably possible, and it might seem easier at first but sooner or

^ Shoes Video Support on Linux
325214 [transfire gm] When downloading Shoes for Linux I did not see a binary package with
325293 [theyojimbo g] Considering this: http://help.shoooes.net/Video.html I would say the
+ 325398 [rick.chatter] You need to have libvlc (you didn't mention on which os you are on so
+ 325615 [transfire gm] It's a pre-compiled binary. When I tried the #video method it gave

^ 1.8.6 OCI binary extension question
325217 [TimHunter nc] I'm trying to build a new release of RMagick that is compatible with the
325225 [luislavena g] Well, could work, but is doom to failure.
+ 325226 [TimHunter nc] Thanks for your reply, Luis. Actually I was thinking about waiting for
| 325324 [luislavena g] he
+ 325466 [rmagick gmai] Luis,
  325474 [luislavena g] Is RMagick2 the name of the extension folder?
  325477 [rmagick gmai] Thanks for your prompt reply, Luis. With the exception of the .so
  325518 [luislavena g] rake-compiler is expecting that the name you supply to it is the
  + 325567 [rmagick gmai] Thanks, Luis. I'm eagerly awaiting the next release.
  + 325568 [rmagick gmai] (Oops. Forgot to answer your question.)

^ Re: reading file to list
325218 [xahlee gmail] comp.lang.lisp,comp.lang.scheme,comp.lang.functional,comp.lang.python,comp.=
+ 325219 [xahlee gmail] (defun read-lines (file)
| 325220 [xahlee gmail] (defun read-lines (file)
+ 325223 [address.good] *Of course* Xah is wrong, as always.
| + 325230 [xahlee gmail] On Jan 17, 12:30 pm, Andr=C3=A9 Thieme <address.good.until.
| | 325233 [address.good] IO.readlines("blob.txt").map{|line| line.split.map{|s| s.to_i }}
| | 325241 [xahlee gmail] the issue here, is not about whether Ruby has nested map or not. It is
| + 325292 [w_a_x_man ya] That fails when numbers are separated by more than one space.
| | + 325298 [address.good] I somehow don”Ēt believe you :-)
| | | 325314 [sepp2k googl] fibs =3D Hash.new {|h,k| h[k] =3D h[k-1] + h[k-2]}.merge(0=3D>0, 1=3D>1)
| | + 329419 [shortcutter ] File.readlines("blob.txt").map{|line| line.scan(/\d+/).map{|s| s.to_i }}
| + 329037 [w_a_x_man ya] java.lang.Exception: Unable to resolve symbol: reader in this context
+ 325251 [xahlee gmail] Nice (python code).
+ 329310 [nick_keighle] p.=ADlang.ruby
| 329411 [nick_keighle] rt) line)
+ 329415 [nick_keighle] p.=ADlang.ruby
  329486 [xahlee gmail] I think the following answers that.
  329551 [xahlee gmail] oblem of

^ TkText widget: state(:disabled)
325221 [tmcdowell gm] I have a TkText widget, and an input field. The text widget is disabled

^ [ANN][ADV] MountainWest RubyConf registration is open
325224 [james.britt ] Registration for MountainWest RubyConf is open.

^ Capturing the Ruby generated by Erb
325227 [weyus att.ne] How can one capture the Ruby source file that gets generated from an Erb
325229 [jftran rubyf] ERB#src
325281 [weyus att.ne] Many thanks.  That is quite handy.

^ C extensions in Vista
325228 [doug14 pacbe] I'm posting this to document this effort (for me, and any other poor
325375 [nobu ruby-la] Editing config.h is an autogenerated file and you must not edit

^ cloning ruby's svn repo
325231 [jayeola gmai] from http://blog.emptyway.com/2008/06/19/full-git-clone-of-matz-ruby-subversion-repository/
325325 [jan.svitok g] Maybe you can just synchronize (however it's called in git-speak) with
325346 [jayeola gmai] git svn init --prefix=origin/ --stdlayout http://svn.ruby-lang.org/repos.ruby

^ Building Ruby with Visual Studio 2005
325232 [time.in.worl] I tried to build Ruby on Windows with Visual Studio 2005. I followed
325252 [time.in.worl] 2009/1/18 Time World <time.in.world@gmail.com>

^ If you use PDF::Writer, read this post!
325234 [gregory.t.br] I'm getting very few requests for features to add to Prawn that exist
+ 325235 [perfectly.no] Why rename it? Prawn is a nice name, while PDF::Document seems to
| 325236 [gregory.t.br] There are :)
| 325242 [transfire gm] module Prawn
| 325243 [gregory.t.br] Nah, it'd be mighty annoying to nest all my classes that way. I'm fine
| 325254 [reddvinylene] Does anybody use this stuff as an alternative to LaTeX?
| + 325256 [martindemell] I have a project that generates lout from ruby and then pdf from lout
| | + 325263 [reddvinylene] Too true, too true. LaTeX gives me a headache.
| | | 325275 [znmeb cesmai] While we're on the subject of PDFs, LaTeX, etc.
| | | 325280 [gregory.t.br] This wouldn't load in OS X Preview.  Interesting to see this stuff
| | | + 325283 [dave pragpro] Acrobat is the only one I know, which sucks. I've been wanting to
| | | + 325299 [znmeb cesmai] As far as I can tell, only Acrobat Reader on Linux. There may be others
| | |   325301 [gregory.t.br] If you're talking about the technical possibility, yes, since it's
| | + 325279 [gregory.t.br] Yes, the benefit of a pure-Ruby to PDF library is that there aren't
| + 325276 [gregory.t.br] That's certainly not the goal, but actually Jamis Buck's
|   325278 [gregory.t.br] Okay, I have done that, to help encourage discussion on the topic and
|   325345 [gregory.t.br] Ah, that's completely understandable.  Glad we cleared this up.
+ 325788 [jpshack gmai] Greg,
  325794 [gregory.t.br] But maybe instead, Prawn::Document#text_box should return the
  326217 [jpshack gmai] Greg,
  326219 [gregory.t.br] Technical Blaag at: http://blog.majesticseacreature.com

^ Ruby/tk slow threads?
325245 [tmcdowell gm] My code opens up a text window with an entry field. The text area gets
325574 [nagai ai.kyu] t.insert(:end, inp).see(:end) unless inp.empty?
325575 [tmcdowell gm] Hmm, thats possible...

^ [ANN] Rubytet-0.0.1 released!
325247 [WikipedianKi] RubyTet is a tetris clone. It is intended to be a reference

^ Re: Rubytet-0.0.1 released!
325248 [WikipedianKi] On Jan 17, 9:54=A0pm, "WikipedianK...@gmail.com"

^ string.tr bug?
325250 [borasque bor] Greetings,
325253 [sepp2k googl] It's not a bug. For tr ",-@" is the same as ",-./0123456789:;<=>?@". You have

^ [ANN] Sinatra 0.9.0 released!
325255 [rtomayko gma] Sinatra is a DSL for quickly creating web-applications in Ruby with

^ How can I format Time.now output
325257 [youhaodeyi g] I use Time.now to get the current date and time. How can I format its
325261 [shortcutter ] robert

^ installing weft-qda / sqlite-ruby on linpus
325259 [sebastiaanka] This is my first post here, and I'm not even sure it's in the right
325267 [alex deletem] Christophe Lejeune has provided some helpful instructions on setting
325521 [sebastiaanka] Thank you very much Alex,

^ What does "@@" mean?
325260 [youhaodeyi g] In a ruby class, what does a variable "@@name" mean? Does it mean static
+ 325262 [dblack rubyp] It's a class variable, which is actually a class-hierarchy variable
| 325264 [youhaodeyi g] Ok thanks. That's why I always got error when access to this variable
| 325266 [shortcutter ] Actually I would recommend against using this beast.  There are some
| 325284 [eustaquioran] 'Beast' was a fun name for them. :-)
+ 325285 [kbloom gmail] "static variable" means different things in different contexts in C and

^ Bug in ruby (1.8.7) hash: assignment executes code
325265 [kazaam oleco] Tested with: ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-linux]
325268 [jan.dvorak k] Yes.

^ Help getting file names from directorys on windows.
325269 [hjnash adist] I am new to code writting, have to learn Ruby (windows) so I am trying
325273 [david.mullet] puts Dir.glob('*.mp3').first

^ get not working
325277 [ratanpd gmai] I have a class Halt. If i type Halt, the output is
+ 325288 [ryand-ruby z] presumably Halt is both a method Halt() and a class... we can only
+ 325291 [b.candler po] Did you mean Halt.find(1) ?
  325304 [ratanpd gmai] I have one db entry:(/db/migrate)
  325307 [b.candler po] How sure are you? I also use activerecord-2.2.2, and 'get' just gives

^ Thread starvation
325282 [severus post] In my game freeVikings [http://freevikings.sf.net] I have code listed below.
325286 [shortcutter ] elow.
325310 [severus post] code in the block goes through a tree of directories and in each reads
325316 [shortcutter ] rs.

^ Why eval is not failing in the third case ( c3)
325289 [neeraj.jsr g] => "hello \#{hi}"
+ 325290 [time.in.worl] 2009/1/18 Raj Singh <neeraj.jsr@gmail.com>
+ 325297 [kbloom gmail] In the second and third cases, everything after (and including) the # is

^ how do i load ActiveSupport::Multibyte
325296 [indiehead gm] require 'active_support'

^ [ANN] amalgalite 0.7.1 Released
325300 [jeremy hineg] amalgalite version 0.7.1 has been released.

^ [ANN] crate 0.2.1 Released
325302 [jeremy hineg] crate version 0.2.1 has been released.

^ How to thanks for your beloved ?
325306 [maky19873 gm] Take the chance of the V'Day to show your love, appreciation, and

^ Re: A stream implementation for Ruby
325309 [b.candler po] (i.e. a traditional 'each' method which yields an infinite number of

^ Connecting to a running ruby process
325312 [piyush.pr gm] Is there any way you can connect to a running ruby process (for instance a
+ 325315 [severus post] (Maybe it isn't directly what you need, but it might help)
+ 325318 [b.candler po] Try the ruby-debug gem (which is what rails uses). Unfortunately, the

^ Installing rsruby gem on windows
325326 [glenn_ritz y] 'C:/Program' is not recognized as an external or external command, operable program or batch file.
325391 [simon1tan ya] Try putting quotation marks around the home like "C:\Program

^ [ANN] ERBook 6.0.0
325328 [ snk gna.org] ERBook 6.0.0

^ [ANN] Inochi 0.0.0
325329 [ snk gna.org] Inochi 0.0.0
+ 325331 [flo andersgr] Hey,
+ 325343 [flo andersgr] I now installed both Inochi and Erbook (by using --ignore-dependencies =20=

^ ip address of client from GServer#serve
325332 [julien.biard] I would like to know if there is a way to take the ip address of client
325333 [b.candler po] def serve(myClient)
325334 [julien.biard] thanks, it works.

^ how can we call a method without using . operator
325335 [bagam_venkat] This might sound a bit wierd but I would like to know if
+ 325338 [b.candler po] (or __send__ presumably). How about this one?
+ 325339 [jcoglan goog] 2009/1/19 ruby rails <bagam_venkat@hotmail.com>
| + 325341 [jcoglan goog] foo :bar_method
| + 325344 [bagam_venkat] I was asked this question by one of y interviewer...May be he is testing
|   325354 [shortcutter ] No meta programming needed
|   325367 [b.candler po] Foul ... you used a dot!
|   325377 [shortcutter ] Uh, oh!  I thought nobody would notice.  Cough cough.
|   325426 [simon.a.chia] a = [1,2]
+ 325376 [higgs.bozo g] Look Ma, no dots!

^ comparing date problem
325336 [ginkod gmail] I have a set of dates in my database and would like to only get the
325337 [b.candler po] SQL problem? Show the SQL you've written already. Consider using the
325342 [ginkod gmail] I'm using thinking sphinx search engine. an sql syntax in thinking
325373 [b.candler po] Sphinx is a new one on me - but looking at the project page, it looks
334560 [tanealbhanda] I'm having a similar issue, but can't seem to figure out what the
334565 [tanealbhanda] Actually, I just realized that I also have to take into consideration
334582 [Rob AgileCon] now.to_date, now.to_date, now.strftime("%H:%M:%S") ]
+ 334588 [tanealbhanda] Cool!  Thanks!  I'm actually home now so will give it a go in the
+ 334649 [tanealbhanda] Just tested this out and it worked like a charm!!!  Much thanks!

^ db class and connection problems
325347 [luismo00 gma] I am new in ruby and have a little problem.... I have the following code
325368 [b.candler po] Show the *exact* error - I mean copy-paste it, including the backtrace.

^ parsing List results
325348 [ramosbrazil ] =========================
+ 325350 [Rob AgileCon] require 'pp'
| 325351 [ramosbrazil ] You've got it !!! Thank you so much. It is working the way I want now !
+ 325358 [phlip2005 gm] puts outputs strings, so it calls .to_s on its argument.

^ Converting binary image file to bmp file using RMagick2.0
325353 [kamaljeet_si] We are trying to convert "image1.txt" file which is a binary file to
+ 325355 [kamaljeet_si] The source file "image1.txt" is 32 bit binary file and the file
| 325380 [jan.dvorak k] The source file you provided isn't really 32bit, but 16bit (probably in RGB565
| 325383 [kamaljeet_si] OK, if its 16 bit any way around to get it decoded and proper image out
| 325384 [TimHunter nc] img.write("bmp3:myimage.bmp")
| 325387 [kamaljeet_si] The file out still comes out incorrect. Please see attached file.
| 325442 [kamaljeet_si] Just to know and make sure that if its possible using Ruby + RMagick 2.0
+ 325495 [phasis gmail] require 'rmagick'
  325629 [kamaljeet_si] The above posting code worked fine for 704/480 binary to image file but
  325661 [phasis gmail] 2009/1/23 Kamaljeet Saini <kamaljeet_singh_saini@hotmail.com>
  326051 [kamaljeet_si] I was able to get 1 binary files from dev. and tried the following code
  326107 [phasis gmail] The binary input file is 16bit rgb565 format and upside-down image.
  326110 [kamaljeet_si] The code sent work prefectly fine. Thanks you so much for this help.
  + 326111 [kamaljeet_si] One more thing i forgot to ask please.
  + 326113 [phasis gmail] file.unpack('S*') is for converting byte array to 16bit integer array.
    326120 [kamaljeet_si] thanks for the reply.
    326127 [phasis gmail] 0xF800 is hexadecimal number ant equal to 63488 and 0b1111100000000000
    326917 [kamaljeet_si] The attached binary file is not displays image correctly and looks like

^ migration too slow?
325356 [yudora111 gm] I have a migration including a update_all statement to a big
325357 [denis haskin] - assuming the db is MySQL, I'd do a SHOW PROCESSLIST from a MySQL
325360 [yudora111 gm] Thanks
+ 325364 [shortcutter ] This can depend on a lot of factors.  Maybe too many SQL statements are
+ 325365 [yudora111 gm] I found I could not set it as a default. Because I have existing rows
  + 325372 [denis haskin] Not sure if postgresql is any different, but in MySQL when you add a
  + 325385 [albertschlef] Check out pgsql's ALTER TABLE documentation, perhaps you'll find hints

^ [ANN] Inochi 0.0.1
325361 [ snk gna.org] Inochi 0.0.1

^ Re: Inochi 0.0.0
325362 [ snk gna.org] Thanks!
325363 [ snk gna.org] Thanks for the tip.

^ Regular Expression {m,n}
325366 [mmc_collins ] File.open("patientrecords.txt", 'r') do |p|
325378 [shortcutter ] That output would be wrong, even if your matching would work the way you
325379 [mmc_collins ] Thanks for pointing me in the right direction. Its been a long day

^ [ANN] ERBook 6.0.1
325369 [ snk gna.org] ERBook 6.0.1

^ [ANN] Inochi 0.1.0
325370 [ snk gna.org] Inochi 0.1.0

^ 1.8.7p72 on HP-UX 11.x/IA64 with pthreads
325381 [china thewri] Anyone built 1.8.7p72 on HP-UX 11.23/IA64 or 11.31/IA64 with pthreads

^ AlterEgo Mailing List
325382 [avdi avdi.or] I've received sufficient interest in AlterEgo that I've started a

^ Soap4R - Question
325386 [balla mailin] I am trying to add a custom header to my outgoing SOAP4R messages.

^ Gsub!("\n","\n")
325388 [simon1tan ya] \n with line feeds or \r for carriage returns.
+ 325389 [Rob AgileCon] World
| 325390 [simon1tan ya] haha actually, the other way around :)  I have a string(I believe...I'm
| + 325392 [Rob AgileCon] => "here is a \" and I'll put a ' here, too"
| + 325450 [albertschlef] Perhaps there's a misunderstanding here. I doubt Hpricot adds anything.
|   325798 [simon1tan ya] Ok, I just realized I've been using p to print everything out!  "Puts"
|   325873 [list.rb gmai] LOL!
+ 325395 [lists bertra] str.gsub! "\\n", "\n"
+ 325403 [tammo tammo-] If you want to substitute
+ 325435 [sepp2k googl] "\n" *is* a line feed.

^ RubyForge downtime
325393 [tom infoethe] I'm taking RubyForge offline for a bit for a database upgrade.  svn/
325399 [tom infoethe] Done, and all seems well (crosses fingers)... if anyone notices

^ 10 numbers in between 2 numbers
325394 [jko170 gmail] How can I get an array of 10 numbers in between two numbers?
+ 325396 [james graypr] => [1, 51, 101, 151, 201, 251, 301, 351, 401, 451]
| + 325420 [james graypr] require "enumerator"
| + 325458 [jko170 gmail] Yeah, the end numbers need to be included in the array of 10.
|   325461 [TimHunter nc] the array.
|   325528 [jko170 gmail] Thank you very much Tim! Works perfectly.
|   325529 [dblack rubyp] This message is in MIME format.  The first part should be readable text,
+ 325397 [synfinatic g] I'm confused... aren't there a lot more then 10 numbers between 1 and
+ 325402 [tim burlyhos] 10 numbers randomly, or spread out evenly (ish), such as 1, 50, 100,
  + 325427 [jko170 gmail] Sorry everyone, yes 10 numbers and dates spread our evenly. Thanks for
  + 325428 [jko170 gmail] Sorry everyone, yes 10 numbers and dates spread our evenly. Thanks for
threads.html
top