355038-413190

354854-365124 subjects 355259-365129

Re: [QUIZ] Digits of e (#226) Late solution
355038 [wruyahoo05@c] After recovering some vaguely remembered math, and trying not to look to

using ruby for flash (newbie)
355041 [angel21ccs@h] stuff), where can I search more info how install and work with it?...I
+ 355042 [sophrinix@gm] Are you talking about flash remoting?
+ 355126 [kadelfek@ka ] I discovered HotRuby a few hours ago.

Gem build issues Ubuntu 9.10 64 bit
355044 [dale8458@gm ] dale@dale-desktop:~$ sudo gem install mysql
355061 [luislavena@g] No definition is not a bug, is a warning from ri when trying to
355086 [echristopher] Since people are talking about the mysql gem, I thought I'd ask how

rubygems: bad urls
355051 [marco-oweber] I patched ruby gems successfully so that it outputs ruby packages so
355053 [pg@th mi n. ] Gems are hosted on gemcutter.org by now, not RubyGems.
355062 [luislavena@g] gems.rubyforge.org =3D=3D gemcutter.org
355101 [marco-oweber] It can. However shouldn't I be able to download this gem by copy pasting

xrefresh server, rb-inotify and ioselect
355052 [marco-oweber] This is of interest for all Linux devs doing web development.
355063 [marco-oweber] This example
355193 [headius@he d] If you create an IO object to wrap an fd, when it GCs it will close

how change encoding?
355059 [marcelocavac] please help...
355064 [shortcutter@] I'd say you probably rather should open this file in text mode since

Public Key encryption
355066 [MrBanabas@go] I have to talk to a third party system in one of my applications.
355094 [marnen@ma ne] What does this have to do with Ruby?
355113 [MrBanabas@go] Well, I have nt thought about the fact that there might be a special
355114 [MrBanabas@go] forget about my question. Seems to be a totally proprietary system.
355147 [b.candler@po] If it's an RSA key you can construct it from its parameters.

Cucumber Scenario Outline
355071 [jonatasdp@gm] want to execute once before start steps with < >.
355072 [jacob.d.mitc] Do you have a concrete example?  That would make it easier to find a good
355082 [jonatasdp@gm] Thanks Jacob!

[ANN] os gem: initial release: easier platform management
355074 [rogerpack200] Initial release of the OS gem.
355077 [pg@th mi n. ] I'd alias this to #ruby_bin since that is more natural on non-Windows

hash /expecting tASSOC/
355076 [aidy.lewis@g] Can any tell me why I am getting the error: "syntax error, unexpected
355078 [pg@th mi n. ] The last key-value pair is "just" an "=", and not the expected "=>".
355079 [aidy.lewis@g] Apologies for being an idiot
355081 [pg@th mi n. ] Don't you worry. :)

Re: os gem: initial release: easier platform management
355083 [rogerpack200] Good idea.  I released a new version that only has ruby_bin :)

How to know the OS architecture (32 or 64 bits)?
355085 [ibc@al ax ne] bits)?
+ 355088 [Rob@Ag le on] You can use Fixnum#size to get number of bytes for a Fixnum and =20
| 355117 [ibc@al ax ne] It's really good!
+ 355096 [usenet-nospa] Probably not.
| 355116 [ibc@al ax ne] or
| 355149 [usenet-nospa] Ahh.
| 355150 [ibc@al ax ne] if
| 355158 [usenet-nospa] That seems like it should work.
+ 355136 [walton@vy er] I can't vouch for how accurate it is, but an OS gem was recently
  355138 [walton@vy er] Hmm.. it does not appear to deal with 32-bit ruby running on a 64 bit
  + 355139 [matt@ha ps a] ...
  + 355140 [ibc@al ax ne] Interesting, I'll take a look to its implementation. However in my case I will
  + 355142 [ibc@al ax ne] def self.bits
  | 355143 [ibc@al ax ne] Well, "rbconfig" is not a gem but a Ruby built in library.
  | 355159 [walton@vy er] submit a bug! http://github.com/rdp/os
  | + 355161 [pg@th mi n. ] No. If the OS isn't 64 bits itself, it'll run on an x86_64 architecture,
  | | 355165 [walton@vy er] Makes sense, but I don't know enough about low-level OS/hardware to be
  | + 355163 [pmckibbin@gm] Not on this machine
  | + 355167 [rogerpack200] At least within a 32-bit OS (in a VM) it appears to be i686-linux so I
  | | 355195 [headius@he d] If you really want to know if you're running on a 32 or 64-bit JVM (at
  | | 355198 [rogerpack200] ENV_JAVA['sun.arch.data.model']
  | | 355207 [headius@he d] Seems like it could easily be an rbconfig value...
  | + 355175 [ibc@al ax ne] 1.size => 4
  | | 355194 [rick.denatal] I think that the value of 1.size depends not on what platform Ruby is
  | + 355176 [ibc@al ax ne] I was to submit a report but Roger has already improved it :)
  + 355162 [luislavena@g] No matter how many bits the OS has, as long the compiled interpreter
    355164 [walton@vy er] Ah! But this tool doesn't claim to tell me about my address space or

Building mysql extension/gem with MinGW (was Re: Gem build issues  Ubuntu 9.10 64 bit)
355087 [echristopher] Ugh, I top-posted AND forgot to change the subject line. Sorry!
355160 [luislavena@g] On Jan 14, 9:11=A0pm, Eric Christopherson <echristopher...@gmail.com>
355192 [echristopher] OK. Using the instructions below, just --with-mysql-dir doesn't quite
355211 [echristopher] I just discovered that building the gem actually works fine in MSYS

Notifying via Terminal in Linux
355089 [thinkwritemu] So I've got this idea for a linux CLI program, and one of the things I
+ 355090 [ibc@al ax ne] WALL command doesn't require reading from a file, it reads the STDIN.
| 355092 [jonathan@jm ] Yes, use popen3 to get a reference to stdin of the wall process and
| 355115 [ibc@al ax ne] With popen4 you also get the correct exit status code of the command :)
+ 355106 [albertschlef] I think this utility already exists: syslog. It can also output certain
+ 355123 [jeanjulien.f] If your program is intended to be run from the command-line, why a

Re: [ANN] os gem: initial release: easier platform managemen
355095 [marnen@ma ne] Does it do OS.mac? yet?  If not, that would be nice, particularly for
355133 [rogerpack200] Great idea.

Net:HTTP questions...
355098 [jbateman0769] I'm writing a script that will bootstrap a database with extensive data
355099 [pg@th mi n. ] How about this?
355100 [jbateman0769] Excellent thanks.

Float Points error
355102 [Prashant_Sin] ...
355105 [pg@th mi n. ] Floats aren't exact, they are approximations: IEEE 754-2008
+ 355111 [usenet-nospa] This is nowhere near as true as it used to be.  Some quickie tests on an x86
| 355112 [pg@th mi n. ] Possibly. If the multi-core nature of today's processors lends itself to
| 355209 [colinb2r@go ] I think it's worth reminding people that it's possible to use Java with JRuby.
| 355264 [headius@he d] You may as well remove MRI and JRuby from that and look at the many
| 355269 [headius@he d] {code}
| 355271 [headius@he d] fib_ruby(35)                    3.192000   0.000000   3.192000 (  3.192000)
+ 355173 [gwtmp01@ma .] <http://en.wikipedia.org/wiki/IEEE_754-2008>
  + 355178 [Ruby@Go gl M] Actually, I believe that the last two(!) threads are still running.
  + 355424 [rogerpack200] So currently ruby "doesn't show you the real floating point number"
    355442 [eregontp@gm ] 2010/1/19 Roger Pack <rogerpack2005@gmail.com>
    355444 [rogerpack200] But, more directly, the fact that people would like it that way is more

End of line problem with xmlrpc
355122 [hubert.marti] I try to transfer binary files between two (Redmine) servers. By the
355135 [shortcutter@] This one irritates me: by using base64 encoding you should be fine,
355141 [hubert.marti] I also agree with you, I can even say that I completly agree with you.
+ 355145 [shortcutter@] As far as I can see this works ok on 1.9.1
+ 355157 [pg@th mi n. ] That's probably the issue. CR and LF are line ending characters. And
  355206 [shortcutter@] That should not be the case since a) he is doing reading and writing

Please Help I'm new in Ruby -- Input Problem
355131 [nolly@in ox ] I'm interested to learn this language. I'm using Eclipse with Ruby
355132 [marnen@ma ne] Whatever site this code came from can be considered untrustworthy.
355134 [nolly@in ox ] Thank you for helping I really appreciate, but I still have the same
355137 [matt@ha ps a] ...
355154 [nolly@in ox ] GREAT! It works..thanks for helping me.=D
355155 [matt@ha ps a] Most welcome.  Hope you enjoy your exploration of Ruby!

Not able to create using rake
355146 [mnjagadeesh@] jagadeesh@jagadeesh-laptop ~/TODO/mysql $ rake db:create:all
355197 [mnjagadeesh@] $ sudo apt-get install ruby1.8-dev
355201 [jonathan@jm ] Did the mysql gem install properly?  Try installing the mysql client

Foolproof way of determining host platform
355166 [pmckibbin@gm] I am trying to work out a 'better' way of determing if my ruby code is
+ 355168 [pg@th mi n. ] You can give a binary any extension you like on *NIX, as long as you set
+ 355169 [luislavena@g] That is because is not the OS, but also the C Runtime used to link to
+ 355170 [aldric@tr vo] Man, one gem gets released and tons of people suddenly have a need for
+ 355180 [transfire@gm] require 'rubygems'
  355186 [aldric@tr vo] One word: Skynet.

Nested Function Confusion
355172 [josh.cheek@g] acknowledgment of their existence) in Programming Ruby or the Ruby
355174 [justincollin] Ruby doesn't support defining nested functions like this very well, so I

How to know if $stderr is reopened to /dev/null
355181 [ibc@al ax ne] $stderr.reopen "/dev/null"
+ 355182 [justincollin] You can use $stderr.tty? if you just need to know if a terminal is
| 355183 [ibc@al ax ne] Great! It also works in case $stderr is redirected to a file in which case
+ 355185 [smparkes@sm ] On anything sufficiently Unix-like, you could fstat the filehandle and =
| 355184 [ibc@al ax ne] at
+ 355187 [usenet-nospa] You couldn't.
  355190 [ibc@al ax ne] Thanks for the clarification. However it's enough for me using $stderr.tty?=
  355212 [shortcutter@] tty?.=20

[ANN] ListBrowser 0.1.0 released: Browse tree structures!
355188 [aldric@tr vo] ~~~~ ListBrowser README ~~~~
355189 [aldric@tr vo] Right. As I was saying..

Core Image, Where Art Thou?
355196 [spencerevanr] Lately, I've been developing some image editing functions for my rails

parsing js with ruby
355199 [globyy3000@h] What I'm trying to accomplish is to create a javascript information

How can I modify the xml file directly?
355200 [lxybhbh@gm i] <book>
+ 355204 [lxybhbh@gm i] I meant without string or tmp file, write to original file.
| 355213 [usenet-nospa] In general, on most systems, the only modifications you can make without
| + 355214 [gwtmp01@ma .] I often wondered if there is any OS floating around out there that goes
| + 355215 [ninja@sl ph ] Not true; you can append to the end of a file.
| | 355224 [lxybhbh@gm i] It seems that I can only truncate the original file to 0, then overwrite
| + 355222 [lxybhbh@gm i] Do you mean it's related with the file system API?
|   355223 [usenet-nospa] Yes.
|   355226 [lxybhbh@gm i] Oh, I got the meaning. It will overwrite later characters, data will
+ 355221 [paradisaeida] If you are looking for an efficient way of editing xml 'records' then
  355225 [lxybhbh@gm i] Oh, thanks Mark. I will try.

[QUIZ] Solar System (#227)
355202 [yahivin@gm i] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=
355430 [Glen.F.Panko] ...
355441 [jontyjont@bt] Lovely maths! I found the Horizons web site too - I was hoping to

1.9.1's rubyw.exe can not read from pipe ?
355203 [usurffx@gm i] I found this problem when writing a GUI app with wxruby.
355205 [rogerpack200] I get the same thing here with 1.9.1 but not with 1.9.2, so I suppose

racc error on new 1.9 hash syntax
355210 [michel@de az] racc 1.4.6 does not understand when parsing " in: value "
355284 [aaron@te de ] Racc doesn't actually understand how to parse anything.  Someone must
355294 [michel@de az] Thanks for your answer.
355319 [ryand-ruby@z] ruby_parser doesn't parse 1.9 syntax.
355322 [michel@de az] @Ryan : OK, thanks. But what about flog ? Should we just forget it ?
355323 [ryand-ruby@z] Flog and flay both use ruby_parser to do their work.
355334 [michel@de az] The funny fact is that I changed the syntax in my project to please
355474 [michel@de az] A simple preliminary rake task passing files through

Strange Encoding Behavior
355218 [usurffx@gm i] The encoding of __FILE__ is always the same as Encoding.default_external
+ 355219 [luislavena@g] At 1.9.1, and some part of 1.9.2 still display certain issues with
| 355220 [usurffx@gm i] I think #1685 is a little bit different.
+ 355256 [shortcutter@] I believe the point you are missing is that String#encode does not
  355299 [usurffx@gm i] I know String#encode doesn't change the original string, but the result
  355313 [shortcutter@] Apparently I misread your posting, sorry.  Is UTF-8 capable of

Socket writing limit
355227 [phil.auriemm] Hey guys,
355251 [gwtmp01@ma .] The short answer is that it doesn't matter since the Ruby runtime,
355270 [phil.auriemm] Wow thanks, this is very helpful.

GPGME gem - cannot figure out how to decrypt data
355228 [ruby-talk-25] I'm pretty new to ruby and this is my first real program I'm writing.
355229 [ueno@un xu e] First of all, what version of GnuPG are you using?  Since GPGME (C
355230 [ruby-talk-25] $ gpg --version
355231 [ueno@un xu e] ...
355232 [ueno@un xu e] ...
355238 [ruby-talk-25] Results in the same problem, I had to interrupt the script and it was
355307 [ueno@un xu e] Unfortunately I can't reproduce your problem since I don't have any
355311 [ruby-talk-25] I'm using a real developing system, no real-world data on it ;)
355314 [ueno@un xu e] The web page seems not up to date.  I'm currently using GPGME 1.2.0 and
355375 [ruby-talk-25] That's strange then, I'd always expect the webpage to be current.
355476 [ueno@un xu e] I've reported it to the GnuPG team and asked them which is the current

Which source file?
355233 [ralphs@do 32] Windows development environment.
+ 355234 [marnen@ma ne] How is that relevant?
| 355242 [ralphs@do 32] I don't know!   How files are handled might be different on different
| 355245 [marnen@ma ne] I suppose.  But in this case, no.  So far as I know, there's no
| 355246 [ralphs@do 32] Ruby (Rails?) does so much that is different depending on case.
| 355247 [marnen@ma ne] Right.  The filesystem is case-preserving but not case-sensitive.
+ 355236 [liulantao@gm] i know only Device::Mapping, maybe there is someone misspell it.
| 355241 [ralphs@do 32] "devise" is a gem for doing user authentication that I am beginning to
+ 355386 [rogerpack200] If you're on 1.9, you can use Method#source_location to see where it's

Debugger not available
355235 [ralphs@do 32] => Booting WEBrick

capistrano: saving a result on var
355239 [botpena@gm i] sorry if this dumb and not pure ruby q, but i just hit a bump on capistrano.
+ 355240 [jeanjulien.f] =3D> nil
| 355248 [ninja@sl ph ] I don't know why you'd want to run 'date' instead of Time.now from within
+ 355243 [botpena@gm i] pls ignore.

What does ||= represent in this situation?
355249 [stoicism1@ao] Hey all, || is equal to Or. So what would ||= in this situation?
355250 [stoicism1@ao] I can't figure out how to edit a post. But I don't need anyone to
+ 355252 [stoicism1@ao] Something like this?
+ 355254 [josh.cheek@g] This code is (presumably) showing that it is expensive to calculate the
  + 355275 [anlerhp@ya o] so =20
  | 355333 [stoicism1@ao] So if a is true, it is returned. If a is false, c is returned. What if a
  | + 355351 [jgabrielygal] irb(main):002:0> defined? a
  | + 355366 [stephen.celi] The closest you'll get to an expansion of
  + 355337 [stoicism1@ao] From my understanding, you're saying since @expensive is undefined the
    355338 [aldric@tr vo] def expensive

net/smtp authorization exception
355253 [rovf_via_rub] I can't send email using net/smtp from my mac running OSX 10.4. The SMTP
355261 [jonathan@jm ] -Jonathan Nielsen

Can not install fxri
355255 [rovf_via_rub] $ gem install fxri
355257 [stefano.croc] gem install fxri works for me. However, if you want to install the gem you
355305 [rovf_via_rub] This fails too, since fxruby is needed. I think I'll have to figure out
355335 [luislavena@g] On Jan 18, 3:58=A0am, Ronald Fischer <rovf_via_ruby_fo...@fusshuhn.de>
355400 [rovf_via_rub] Not knowingly. I have (at home) a LAN with a router, which goes via DSL

image processing in ruby
355258 [hramrach@ce ] I was wondering if I could do image processing in Ruby or would have
+ 355262 [jonathan@jm ] RMagick has no useful functions?  I beg to differ.  What kind of image
| 355263 [jonathan@jm ] OK, after looking at Camellia, I think I see what you want... you want
+ 355274 [hramrach@ce ] image processing in ruby
+ 413190 [lists@ru y- ] Image processing component library developed by using web asp.net and
threads.html
top