First  |  Prev |  Next  |  Last
Pages: 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
Changing registry values with Win32::Registry
How do we handle null value from opened HKEY instance. if (reg.read_i(name)!="") in below line I have tried but it doesn't work properly. Ex:,Win32::Registry::Constants::KEY_ALL_ACCESS) do |reg| if (reg.read_i(name)!="") return reg.read_... 9 Jul 2010 01:48
Extending OpenStruct to be lazy and recursive
I'm trying to extend OpenStruct for an application I'm building, where I'd like to access nested hashes as models. OpenStruct (in core) sounds perfect for this, but I ran into two problems: - Recursion My hashes have nested hashes, and I want to convert *those* to objects, too. I was able to solve this prob... 8 Jul 2010 00:28
[ANN] Win32::Screenshot 0.0.5
Hello! I've release version 0.0.5 of Win32::Screenshot - Capture Screenshots on Windows with Ruby! = 0.0.5 2010-07-07 * Added method window_area for capturing specified area of the window instead of full window (Jarmo Pertman) Usage: Win32::Screenshot.window_area(title, x1, y1, x2, y2) {|width, height, bmp... 7 Jul 2010 17:52
ri and perldoc?
Hi All, Will anyone kindly help? I want to get my ruby docs fully functional, meaning I can view any type of help on methods, keywords, etc. As in Perl I can type perldoc perlop or perldoc -f chomp. The latter give me a whole page dedicated to perl operators and the former gives me one page on what is chomp an... 9 Jul 2010 12:44
Mail issue
Hello! I need to get mails from a mail server using pop3, save to disk to later resend. The get part: pop = 'mail server' pop.start 'address', 'password' if pop.mails.empty? puts "No mail" else puts "Have mails" pop.mails.each_with_index do |m,i|"i... 7 Jul 2010 15:40
Symbols vs. variable
What is the main difference between using a symbol (begins with :), and a variable? When should we use one over another? Thanks. -- Posted via ... 7 Jul 2010 23:23
What is meant by those lines of code in this script?
I came across the following script from "Why's poignant guide to Ruby". And, I have included my questions as comments in the script. Please let me know what you think. Thanks. -- Posted via ... 13 Jul 2010 10:51
Ruby 1.9.1-p429
Hey, guys. Just wanted to try out ruby 1.9.1-p492 through rvm, but I've got nasty error message while compiling it. Any ideas ? [2010-07-03 15:43:45] make eval.c: In function 'ruby_cleanup': eval.c:139: warning: passing argument 1 of 'ruby_init_stack' discards qualifiers from pointer target type /include/rub... 7 Jul 2010 16:45
RubyGems on GitHub
All, As Nick recently announced at RailsConf, we've moved the RubyGems repo to GitHub ( If you've ever wanted to change (or fix) anything about RubyGems, it's time to put your money where your mouth is: Fork, fix, and open an issue on with your fork/patch. Extra speci... 7 Jul 2010 11:14
Ruby 1.9 Old School $LOAD_PATH
In Ruby 1.9+ is there a way to get the $LOAD_PATH without the gem entries? I need access to the old-school style load path. ... 7 Jul 2010 11:14
First  |  Prev |  Next  |  Last
Pages: 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60