264242-265820

264094-266981 subjects 264424-265027

^ ri problem
264242 [bad_good_lio] in ruby 1.8.4 (2006-04-14) [i386-mswin32]
264300 [dejan.dimic ] It works chez moi

^ Re: launchy 0.1.2 Released
264243 [transfire gm] On Aug 11, 11:51 pm, Jeremy Hinegardner <jer...@hinegardner.org>
+ 264244 [sepp2k googl] APP_LIST = { :windows => %w[ firefox iexplore ], :darwin => %w[ open ],
| + 264246 [o.renaud lap] Le dimanche 12 aoû¹ 2007 11:53, Sebastian Hungerecker a ñÄrit
| | + 264247 [detlef.reich] Under GNOME the gconf key /desktop/gnome/url-handlers/http/command
| | | 264258 [daniel.schie] in a
| | + 264256 [o.renaud lap] DESKTOP_SESSION doesn't seem to be reliable, since its values are not standard
| | | + 264261 [transfire gm] Interesting, but xdg-open opens Kate on my system.
| | | + 264297 [jeremy hineg] Thanks for the tip, xdg-open looks like a good thing, I'll incorporate
| | + 264274 [Joerg.Mittag] No need.  Windows has had an equivalent to MacOS's 'open' since
| |   264292 [jeremy hineg] Thanks for the info, I personally don't have a windows machine to test
| + 264249 [logancapaldo] For windows at least you can use the same trick you use on OS X, that is use
| + 264281 [ara.t.howard] but no patch?  ;-)
|   264282 [logancapaldo] I think this kind of defeats the purpose of  Launchy though no?  I thought
|   264284 [ara.t.howard] the point of the environment var is for those cases when it cannot be
|   264286 [logancapaldo] I agree mostly. However a lib with a method named "do_magic" should try very
|   264294 [jeremy hineg] Yes that is my goal, part of this release was to get feedback on other
+ 264299 [jeremy hineg] I'm not sure either, I would like to add email programs for sure, other

^ logger
264248 [shaiguitar g] may not be directly related to this forum, but all the big shots are
264264 [shaiguitar g] ** ignore post **

^ [SOLUTION][QUIZ] Cellular Automata (#134)
264260 [jesse.d.merr] charset="utf-8"
264287 [james graypr] My solution does the required tasks and makes PPM graphics.  Here's

^ Ubuntu as a Ruby dev environment?
264270 [joviyach gma] Developing using things like MySQL, PHP, and Ruby has been an absolute
+ 264271 [alex blackke] Ubuntu's great, as long as you're aware of the gotchas (which pretty
| 264280 [robert.dober] That is because Ubuntu is not made for development platforms, so my
| 264283 [alex blackke] Debian makes the same choice.  Unless that's changed in unstable, of
| + 264290 [robert.dober] Hmm hopefully that is not OT, but if one choses Debian, unstable is a
| | 264291 [alex blackke] Hardly.  I've still got sarge boxes that I'm deploying to, and I'm
| | + 264293 [robert.dober] Good to learn some positive points about it, and I am happy to learn
| | | 264335 [alex blackke] apt-get update, generally...
| | + 264303 [alexey.verkh] Etch has 1.8.5 out of the box nowadays, and running anything with
| |   264334 [alex blackke] So it does.
| + 264318 [phlip2005 gm] So my colleague has super-modern wide-area WiFi (somewhere in Europe), and
|   + 264322 [jan.svitok g] I suppose it's not less possible with ubuntu that with any other linux
|   + 264326 [fwmailinglis] charset="US-ASCII"
|   + 264343 [mark.gallop ] If the laptop has a wifi card with linux drivers then Ubuntu will
+ 264272 [logancapaldo] Short answer, yes.
+ 264277 [transfire gm] Get Linux. Use Linux. Push yourself thru the initial learning curve.
| 264301 [alexey.verkh] Unless you start on Gentoo, as someone else suggested. Then in 2 to 4
+ 264285 [james.britt ] Install Ruby from source and skip the debs.  You'll get the most current
+ 264298 [znmeb cesmai] 1. Develop with portability in mind. That is, if you are building
| 264302 [dejan.dimic ] On Aug 12, 7:43 pm, "M. Edward (Ed) Borasky" <zn...@cesmail.net>
| + 264304 [alexey.verkh] That is a bold statement, but I disagree.
| + 264419 [mb thirdwave] I am using Ruby 1.8.4 on both Windows XP and Debian and both works fine.
|   264468 [dejan.dimic ] On Aug 13, 6:07 pm, "Morten Brodersen" <m...@thirdwavegames.com>
+ 264344 ["Ian Stephen] If you are willing to try persevering with Windows one more time before
  + 264346 [znmeb cesmai] Instant Rails has Scite bundled, right? I know it's in the One-Click
  + 264486 [joviyach gma] On Aug 12, 8:34 pm, "Ian Stephenson" <ian_stephenson@@hotmail.com>
    264506 [phlip2005 gm] I read that backwards, and thought you'd start with "With Linux..."

^ Chinese display
264288 [gyg22 163.co] I have built a project with Instant Rails.Now only a database and a
264289 [logancapaldo] Well as far as proper display of chinese, can't help you there, although you
264369 [dangerwillro] For language display, encoding is the first obvious part, but the

^ Can .rhtml files include text from .txt or .html file?
264305 [daniel senio] I have a header.html file that contains <h1>client name</h1>.
+ 264307 [dkarapetyan ] how about
+ 264308 [jan.svitok g] I'm not too much at home with rails, but try
+ 264310 [fwmailinglis] charset="US-ASCII"
  264311 [fwmailinglis] charset="US-ASCII"
  264324 [daniel senio] I'm actually not using Rails myself. Just using eruby interpreter on
  264327 [fwmailinglis] charset="US-ASCII"
  264331 [daniel senio] Thanks! I got this to work
  + 264345 [gregory.t.br] You can also do
  | 264371 [dangerwillro] One tip though, you don't have to use rhtml as the file extension to
  + 264490 [apeiros gmx.] That print is most likely introducing buggy behaviour into your thingy.

^ 24 seconds for FASTCGI process to startup??? Is this normal???
264312 [greg.hauptma] I'm on Dreamhost for hosting and have been finding that (noting Dreamhost
264368 [dangerwillro] Uh, yeah, often that can happen. It's shared hosting.

^ stdin stdout -ing my program
264313 [globyy3000 h] i need to be able to run my program fully from the command line, instead
264317 [jeremy hineg] I'm not quite sure if I know what your question is.  What do you want to
264452 [globyy3000 h] #!/usr/bin/ruby
264457 [jeremy hineg] My mistake, file_path contains the "\n"
264497 [globyy3000 h] Worked like a charm, but i have yet one more question for you :)
264501 [alexg kuicr.] [alexg@powerbook]/Users/alexg(7): cat hi.rb

^ Non Existent Method Dir.empty? Description via "ri"
264314 [ed.odanow wo] Moin, moin!
+ 264316 [TimHunter nc] Interesting. This is from Ruby 1.8.6 on OS X. I've got a pretty vanilla
+ 264560 [dangerwillro] I've got Ruby 1.8.4 on OSX with many gems installed.
| 264562 [lists bertra] What's this?
| + 264564 [chris.hulan ] snip
| + 264565 [dblack rubyp] def dir_empty?(path_to_dir)
|   264567 [lists bertra] I didn't mean it as harmful as it obviously sounds. Sorry,
|   264581 [dangerwillro] Then take your own advice about thinking first and then writing, friend.
|   264588 [lists bertra] I was really hurt by your code.
|   264591 [dangerwillro] Sorry Bertram!! I didn't mean to hurt you!
|   264796 [lists bertra] In the last days I had removed a bunch of memory leaks and
+ 264586 [djberg96 gma] On Aug 12, 3:01 pm, "Wolfgang NáÅasi-donner" <ed.oda...@wonado.de>
  + 264590 [dangerwillro] So it kind of exists?
  | 264603 [djberg96 gma] On Aug 14, 10:35 am, John Joyce <dangerwillrobinsondan...@gmail.com>
  + 264598 [ed.odanow wo] Booofff... - thank you for this information!
    264617 [renard nc.rr] On Aug 14, 1:33 pm, "Wolfgang NáÅasi-donner" <ed.oda...@wonado.de>
    264623 [djberg96 gma] irb(main):001:0> require 'win32/dir'
    264635 [renard nc.rr] I am using version 0.3.2

^ [ANN] launchy 0.2.0 Released
264320 [jeremy hineg] As promised, here's a new release of launchy.  For those of you who said
264704 [o.renaud lap] Le dimanche 12 aoû¹ 2007 23:33, Jeremy Hinegardner a ñÄrit
264738 [jeremy hineg] Perfect. Glad that it works for you.

^ Fwd: Prototype (the real thing from Ara) problem.
264321 [robert.dober] after my primitive research and my *very slow* implementation of

^ Removing file names with '.' in their names from list?
264328 [daniel senio] Currently I'm using this code to output a list of files to a .rhtml
+ 264332 [robert.dober] I would suggest
| 264336 [daniel senio] Beautiful. Thanks!
+ 264341 [kbloom gmail] Under UNIX, a * never matches a . at the beginning of a filename, and *.*
+ 264348 [nobu ruby-la] File.fnmatch('*.*', file, File::FNM_DOTMATCH)
+ 264349 [cmshea gmail] On Aug 12, 4:16 pm, Sfdesigner Sfdesigner

^ ' gem ' is not recongnized....
264340 [schmode93 ya] So, 1st things 1st, i have never tried to install any of these type of
264380 [ronald.fisch] I'm surprised that a gem is offered as "exe". I always first try
264512 [schmode93 ya] I'm sorry for not responding soon enough, i figured it out though.

^ Ruby debuggers?
264347 [JPxxxxx yaho] I am far enough into learning Ruby so that I need to track down problems
+ 264352 [wayneeseguin] Command line: http://rubyforge.org/projects/ruby-debug other than
| + 264467 [florgro gmai] And there's a GTK2 front end for ruby-debug available at
| + 264873 [rocky.bernst] I suppose apropos of nothing in particular I'll mention that the
+ 264370 [Pawel Stawic] I use netbeans for ruby, debugger included.
+ 264538 [martin.kraus] Some of them might be outdated and not maintained anymore (the page
| 264630 [rogerpack200] I think that radrails (eclipse) had plans on integrating ruby-debug, so
| 264678 [martin.kraus] RadRails is based on RDT. And RDT is developed by Chris Williams and
+ 264689 [aidy.lewis g] Use Netbeans with Ruby support: http://bits.netbeans.org/download/6.0/milestones/latest/
  264730 [jamesthepipe] Yes on NetBeans, but I think you want to get the ruby bits from here

^ TCPSocket Flushing
264350 [neko18 gmail] I have two programs, a server and a client. I want to send two messages
+ 264382 [shortcutter ] As far as I can see you read the whole stream in one go with
| 264405 [neko18 gmail] It worked perfectly, thank you.
+ 264406 [see signatur] If the format of your server "messages" is *always* lines, i.e.,
| 264673 [rogerpack200] Yeah try using socket.recv(1024) or what not.  I don't know what read
| 264674 [neko18 gmail] Ruby seems to be lacking in its documentation of sockets, unless I'm
| + 264677 [rogerpack200] I agree--I wish Ruby had a comprehensive documentation+wiki (or
| | 264760 [shortcutter ] The pickaxe is pretty comprehensive and has good examples IMHO.
| + 265694 [rogerpack200] My question is: what is the 'write' equivalent of 'recv' (i.e. write non
|   265755 [shortcutter ] I believe the pairing is read-write and send-recv.
|   265820 [rogerpack200] Thanks!
+ 264682 [garbagecat10] Did you try using IO#close_write?

^ extract a number from a line of HTML file
264351 [macro.peng g] I have a line of HTML file like this
264353 [has.sox gmai] Your going to need to give some more information here.  Using javascript?
264355 [macro.peng g] I got this line from the body of NET::HTTP.post_form. I want to extract
264356 [has.sox gmai] So server side...  If you use the Hpricot Gem you can do this pretty easy.
264357 [macro.peng g] Thanks! Great gem! It's exactly what I want, and so simply!

^ [ANN] RSpec-1.0.8
264358 [dchelimsky g] The RSpec Development Team is pleased to announce the release of RSpec-1.0.8.

^ Getting data from Expect
264360 [greg.johnsen] Can anyone tell me how I can get all the data produced by the command

^ ANN: Sequel 0.1.9.6 Released
264362 [ciconia gmai] Sequel version 0.1.9.6 has just been released. This release includes a

^ to_str behavior
264363 [rubylearner ] I have two related questions on to_str behavior. AFAIK to_str does automatic
+ 264366 [howardrobert] Greetings Nasir,
+ 264381 [robert.dober] not quite always, Nasir.
+ 264383 [dblack rubyp] You're making a strange assumption, namely that Ruby cares whether or
+ 264488 [apeiros gmx.] class StringLike
  264496 [rubylearner ] Thanks to all the respondents.
  264502 [dblack rubyp] I'm digging around in the source to figure out the == behavior. Here's
  264644 [steven lumos] Note the order of arguments.  It means str2#== will be used instead of
  264662 [dblack rubyp] Interesting. I'm not sure what the point of the to_str test is,

^ Re: Cellular Automata (#134)
264365 [rubyforum.20] I added another command-line switch to specify the output mapping
264390 [olsonas gmai] Here's my solution. Note: I saw no reason to make the output right
+ 264391 [olsonas gmai] # file: cell.rb
+ 264393 [james graypr] I don't think the rules should be justified in either direction.  The
  264395 [olsonas gmai] James -
  264396 [james graypr] The first row isn't padded.  It's that the later rows push it over.
  264398 [olsonas gmai] Ah yes, that makes perfect sense, thanks for the insight.
  264402 [olsonas gmai] drew$ ruby cell.rb 110 20 1
  264410 [alpha.chen g] #!/usr/bin/env ruby
  264474 [SimonKroeger] Sweet indeed, i like especialy the to_i(2), didn't thought about that.
  264478 [james graypr] I believe your code is correct and mine makes the same mistake as
  264483 [alpha.chen g] On Aug 13, 3:12 pm, James Edward Gray II <ja...@grayproductions.net>
  264489 [james graypr] For any rules with a 1 in the final bit position, the edges should
  264521 [SimonKroeger] Yep. Ok i borrowed some ideas from Alpha Chen and tried to

^ ENTER character
264372 [greg.johnsen] How can you encode a ENTER? In case of space: \s, what about ENTER?
+ 264373 [alex blackke] If you mean a newline, it's "\n".
+ 264378 [ronald.fisch] If you mean "carriage return", it is '\r'
+ 264412 [phrogz mac.c] On MacOS (before version X), pressing the 'return' key inserted a
  + 264414 [headspin gma] Actually, depending on what text editor you are using, on Mac OS X,
  | + 264416 [dangerwillro] To make a long story shorter, it depends, and you do need to check
  | + 264420 [fxn hashref.] And no matter what, most editors let the user configure the
  |   264421 [fxn hashref.] Let me add that the :crlf layer is a partial solution for this , it
  + 264443 [ed.odanow wo] If you are reading from a file in Windows, Ruby will convert the "\r\n"
  + 264480 [logancapaldo] Well, actually terminal drivers on unix are usually responsible for the \r

^ too slow in using Net::HTTP.post_form
264376 [macro.peng g] I am using Net::HTTP.post_form to post cgi request to a website and get
+ 264487 [macro.peng g] So bad, no one can give me some hint?
| 264491 [dangerwillro] You might post more of the code.
+ 264544 [lionel-subsc] Maybe the particular server you are testing reacts differently if you
  264668 [macro.peng g] require 'net/http'
  264669 [cdcarter gma] The same code takes less than a second for me.  Perhaps it is your connection?

^ [Re-ANN] RubyConf 2007: talk proposals being accepted
264387 [dblack rubyp] We're on a somewhat tight deadline (August 20), but there's definitely
264389 [fugalh ziane] What perks if any do presenters get? Free admission? Transportation? etc.
264392 [dblack rubyp] Free admission (including meals).

^ First JRuby App on GlassFish Screencast & Blog
264394 [arun.gupta g] This screencast shows how to develop and deploy your first JRuby app

^ Timeout::Error - catchable?
264397 [rikkus gmail] I'm having trouble catching the exception raised by Timeout.timeout
+ 264399 [fred lacave.] Why don't you simply rescue Timeout::Error ?
| + 264401 [rikkus gmail] I thought 'rescue' was a catch-all. Obviously not. Thanks!
| | 264404 [fred lacave.] Rescue catches everything under StandardError.  If you really want a
| | 264540 [logancapaldo] And don't do that, there are likely things you actually don't want to catch=
| + 264609 [drbrain segm] You really want to subclass Timeout::Error and rescue that.  If other
+ 264400 [yedingding g] You should handle the exception clearly, that is, rescue TimeoutError.

^ Debian notes for Ruby newbies (like me)
264403 [nogot nowher] This is probably a known issue by regulars, but I will post it for Ruby
264413 [fugalh ziane] This is so that you can run multiple versions. You need the ruby
264422 [nogot nowher] Yep.  I am putting together a submission to the package folks, but I want

^ attr_read, attr_writer, etc.
264407 [lolz.llolz g] are these keywords or are they methods which create get/set methods for
264409 [stefano.croc] class Module
264440 [lolz.llolz g] Thanks for your explanation, but how would you write a attr_writer
264444 [dblack rubyp] def my_attr_writer(*names)

^ Re: 24 seconds for FASTCGI process to startup??? Is this nor
264408 [chris.lowis ] As mentioned, you'll probably get better help on the rails or dreamhost
264680 [greg.hauptma] Thanks Chris - I'll try this.
264748 [chris.lowis ] I'm not sure where I got this tip from, but try adding this to your

^ Upgrading from 1.8.2 to 1.8.5
264415 [clemrock gma] I need to upgrade my local version of ruby from 1.8.2 to 1.8.5.
264417 [jan.svitok g] It depends partially on your platform. On windows just run the new
264433 [clemrock gma] I should have mentioned that I was on Mac Os 10.4
264672 [pete notahat] sudo port -v install ruby

^ Re: Prototype (the real thing from Ara) problem.
264423 [ara.t.howard] i've broken it with the latest attributes release - i'll fix soon...
264425 [gregory.t.br] gem locking a good idea? :)
264431 [ara.t.howard] obj = Object.new.instance_eval do
+ 264432 [wayneeseguin] charset=US-ASCII;
| + 264434 [sepp2k googl] It makes the block return the value of self (i.e. the newly created object).
| | 264437 [wayneeseguin] charset=US-ASCII;
| | 264439 [ara.t.howard] i wouldn't say that - i bloody forgot it the first time making the
| + 264435 [gregory.t.br] => 2
+ 264458 [robert.dober] That is hilarious, but it will put me back to where I was fleeing from,
threads.html
top