First  |  Prev |  Next  |  Last
Pages: 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
How to pass a function as parameter?
I want to pass a reference to function as parameter to another function and execute the passed function. Somthing like this: def executer(func) func(1) end def test(x) p x end executer(test) How to write this correctly in ruby? -- Posted via http://www.ruby-forum.com/. ... 31 Dec 2009 01:16
How to avoid \ escaping when using "= <<-EOF" ?
Hi, the following code ---------------------- banner = <<-EOF /\/ EOF puts banner ---------------------- produces: ---------------------- // ---------------------- How could I avoid the "\" scaping so the text appears verbatim? Thanks a lot. -- Iñaki Baz Castillo <ibc(a)aliax.net> ... 30 Dec 2009 17:35
Ruby Float out of range warning?
I'm new to Ruby and I've been playing around with it abit. the following line of code produces a out of range warning. puts 3.14159 #outputting a simple float value It will output the value in console, however it will warn me with the following: C:/Users/Admin/IdeaProjects/RubyExampl… warning: Float 3.14159 ou... 29 Dec 2009 15:15
ERRORs trying to install ruby-ldap on CentOS
# gem install ruby-ldap Building native extensions. This could take a while... ERROR: Error installing ruby-ldap: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb --with-ldap-dir=/usr --with-openldap2 checking for ldap.h... yes checking for lber.h... yes checking for ldap_ssl.h... no ... 29 Dec 2009 17:29
Can't find libxml-ruby gem
I am unable to find a libxml-ruby gem. I've pasted some diagnostic info below. Could someone please point me in the right direction? Thank you. C:\>irb irb(main):001:0> require 'libxml-ruby' LoadError: no such file to load -- libxml-ruby from C:/Program Files/ruby/lib/ruby/site_ruby/1.8/rubygems/cus... 26 Jan 2010 16:38
[ANN] au3 0.1.1 released
au3 0.1.1 has been released. au3 is a library that allows you to automate and simulate (fake) user input to a Windows system by using the DLL interface of AutoIt behind the scenes. Abilities include: * Cursor movement * Key pressing * Window interaction * Clipboard access * ... Example: ---------------------... 28 Dec 2009 07:27
FileSet 0.1 Released
On 28.12.2009 11:39, nyarly(a)gmail.com wrote: FileSet version 0.1 has been released! FileSet provides an API for accessing configuration and data files for your application, including the population of default values, and managing search paths. Written to encourage a cross-platform approach to m... 29 Dec 2009 05:20
Installing Gems on Windows
I'm new to Ruby and I was wondering if every gem that works on Ruby for Linux works on Ruby for Windows. I'm trying to install both the rake (as a test) and the nfc gems on Windows, but with both I'm getting: c:\ruby>gem install nfc ERROR: While executing gem ... (Gem::GemNotFoundException) Could not find n... 30 Dec 2009 02:15
building ruby from source
I removed my older ruby package from my ubuntu, built ruby from source successfully. added the sym link from ruby1.8 -> ruby in /usr/bin/ however from the IRB I'm getting errors it can't find my gems? how do I fix this, I assume I need to define some environment variables? irb(main):003:0> require 'rubygems... 27 Dec 2009 10:50
How to parse this file
Hello guys, I have to parse a file of questions/answers for a quizbot in ruby. The file is structured in this way: "Question" "Answer"\r\n "Question2" "Answer2"\r\n "Questionn" "Answern"\r\n How to parse it efficacely? Thank you in advance. Simone D'Amico *nix powered sim(a)me.com ... 30 Dec 2009 15:21
First  |  Prev |  Next  |  Last
Pages: 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184