First  |  Prev |  Next  |  Last
Pages: 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
uninitialized constant error... trying to create a TCPsocket in amodule
Okay, forget about the editor thing.. (; Trying to convert the BBS to 1.9. I've run into a weird problem with some code I didn't write... basically, I'm getting an error trying to create a TCPsocket.. /home/mark/qbbs2/chat/common.rb:40:in `initialize': uninitialized constant Chat::Client::TCPsocket (NameErr... 30 May 2010 17:35
How to load code converters?
When I try to encode string in program I got Encoding::ConverterNotFoundError error "code converter not found (UTF-8 to KOI8-R)" (and other charsets) When I run script with encoding in ruby interpreter it work. What I have to call for loading converters? -- Posted via http://www.ruby-forum.com/. ... 30 May 2010 13:15
Square Root
Is there a way to get an accurate square root? This means that a negative number should return the appropriate complex number. I have been having some trouble with this in a program that solves quadratic equations recently. Ideally but not necessarily it should be able to get the square root of complex numbers a... 2 Jun 2010 13:07
Inject Loop Syntax
I wonder if any other languages have any sort of "multiplicative operation" operator. I was thinking about this today b/c sometimes one has to use a block where it would read better if it could be avoided. For example: [:a, :b, :c].each do |x| define_method("#{x}?") do instance_variable_get("@#{x}")... 31 May 2010 13:03
Another complete beginners question
Hi, i am in Osx and i had installed Ruby 1.8.7. I want to make a tutorial, i am a beginner in ruby. My problem is that when i want to execute a program on ruby, example: code.rb, with "ruby code.rb" on Terminal, like all tutorials sais, a error come back: "-bash: code.rb: command not found" Well, there is a ... 30 May 2010 16:29
"uninitialized constant Encoding::UTF_8" in rb_require
When load script with rb_require I got error about Encoding constants. Ruby 1.9.2 -- Posted via http://www.ruby-forum.com/. ... 30 May 2010 06:48
Reporting a bug how to ?
I got a "Segmentation fault" with open4.rb:65 (ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-darwin10]) the page given in the final note (after backtrace): [NOTE] You may encounter a bug of Ruby interpreter. Bug reports are welcome. For details: http://www.ruby-lang.org/bugreport.html gives a dead link. ... 29 May 2010 17:56
Date.today problem on linux with Ruby 1.8.6
Hello. I just installed Ruby 1.8.6 from source and then stumbled upon the following problem. Any ideas what might be causing this incorrect behaviour? jarmo(a)jarmo-laptop:~$ uname -a Linux jarmo-laptop 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:27:30 UTC 2010 i686 GNU/Linux jarmo(a)jarmo-laptop:~$ date Sat... 30 May 2010 10:00
1.9.3 Encoding Error w/ compressed data http request header
Hi -- it's possible that I'm getting all of this *entirely* wrong, so I thought I'd post what I'm trying to do here & see what comes back. Basically, I have a RoR web service that has bulk_create and bulk_update methods in one of its controllers. These take ActiveResource-style JSON hashes of potentially many objec... 29 May 2010 12:27
[ANN] Rainbows! 0.93.0 - MOAR!!!1
Rainbows! is an HTTP server for sleepy Rack applications. It is based on Unicorn, but designed to handle applications that expect long request/response times and/or slow clients. For Rack applications not heavily bound by slow external network dependencies, consider Unicorn instead as it simpler and easier to deb... 29 May 2010 03:52
First  |  Prev |  Next  |  Last
Pages: 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95