First  |  Prev |  Next  |  Last
Pages: 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189
How to use rb_enc_str_new() to create a String with UTF-8 encoding?
Hi, when I create a Ruby String from a C extension by using "rb_str_new(s, len)" I get a String with US-ASCII encoding. I don't want to call later String#force_encoding(:"UTF-8") but instead use the rb_enc_str_new() function in string.c: VALUE rb_enc_str_new(const char *ptr, long len, rb_encoding *enc)... 2 Dec 2009 10:57
Graphics mode
Hi all! I'm a beginner. I need to include graphics mode in my program, I dunno how. I can do it in C++, but I can't in Ruby. Example: a ball falls down. Da program calculates it's coordinates and it works. But I wanna see it. For now I can see just an array of (x,y) values. Help me to make a graphic view using t... 4 Dec 2009 13:59
[Link] Development of Ruby VMs
Hi, I had heard of most of the mentioned projects once but is impressive to see them all in a single list: it's longer than I would have guessed! Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rub... 2 Dec 2009 09:49
Simple http.get() script fails
Hi, Using a simple test script to get Google's start page HTML gives me the following error: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:560:in `initialize': getaddrinfo: nodename nor servname provided, or not known (SocketError) from /System/Library/Frameworks/Ruby.... 2 Dec 2009 18:56
How Do I Change a .gsub
I'm trying to make a Hangman game def guessed_word() word_letters = @word.split("") blank = @word.gsub(/[a-z]/, '_') return blank end the array for the correct guesses made by the user is @good_guesses and incorrect is @bad_guesses So, my game will print out the right number of blanks for ... 2 Dec 2009 12:05
Hangman Help
How do I print the dashes and letters to represent the word to be guessed. The letters guessed by the player are properly put into the respective arrays. Whatever I try to do I either get all dashes back or the whole word back _ _ _ _ or f i s h, never f _ _ h My arrays are @correct_guesses and @incorrec... 1 Dec 2009 23:57
Hello, Thank you for putting up this gem. I have tried to run the example program that has been provided with this gem, however, I get the following error, example.rb:15: [BUG] Segmentation fault ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux] This may be a very silly error, but any help with this wo... 3 Dec 2009 19:21
why_sandbox 1.9 support
Greetings, I have begun the process of taking why's freaky freaky sandbox code and updating the c extensions in it to compile for ruby 1.9.1. It appears, looking through Google cache that why apparently had started working on a 1.9.1 version of the freaky freaky sandbox. Does anyone have this code locally by a... 1 Dec 2009 16:07
ANN: Sequel 3.7.0 Released
Sequel is a lightweight database access toolkit for Ruby. * Sequel provides thread safety, connection pooling and a concise DSL for constructing database queries and table schemas. * Sequel also includes a lightweight but comprehensive ORM layer for mapping records to Ruby objects and handling associated reco... 1 Dec 2009 12:44
Ruby draft specification
Shugo Maeda wrote: The first version of the draft specification of Ruby has been released at the following site. | 13.4 Eigenclass Well, that's settled, then. jwm ... 1 Dec 2009 23:58
First  |  Prev |  Next  |  Last
Pages: 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189