First  |  Prev |  Next  |  Last
Pages: 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
What is the best exception to use for bad Data State?
I don't want to use "ArgumentError" as this is a matter of data that may be programmed in a daughter class, and is not necessarily an argument. Specifically, the state of some object variables in this case. -- "It's the preponderance, stupid!" - Professor Stephen Schneider, IPCC member ... 13 Feb 2010 19:24
Is there a way to get a method to always run at the end of anydescendent's initialize method?
I have an initialize method I want to run at the end of any daughter or granddaughter 'initialize' to make sure the state has been created properly, and I would rather specify the execution from the base class itself than count on those descendents to do it. xc -- "It's the preponderance, stupid!" - Profe... 12 Feb 2010 19:05
can you help me about this deal?
hi i saw this very cheap macbook pro 500$ here: (the 3rd from the left) i want to buy it, is it a good price? can i get a lower price? thanks ... 11 Feb 2010 11:39
Global rescue - DRY (don't repeat yourself)
Hi, lib_error.rb: class Library def self.error puts "Oops. something went wrong" end end original_code.rb: # require the file first line of code instead of calling in mid of programs require 'lib_error.rb' begin puts fg rescue Library.error end begin puts fdg resc... 15 Feb 2010 02:10
fastest readline method
I have a script that parses a bunch of data off the wire and pipes it into a fastercsv array. I want to read in a text file and check certain columns for matches from the data in the text file. There seems to be tons of different ways read in a file and "grep" match for something. I would like to do this in the ... 11 Feb 2010 06:05
Exit method?
Hello World, I am new to programming and am writing a program in ruby that serves as a tutorial for absolute beginners. It's heavily reliant on if & else. I was wondering if there is a method for exiting a program. Here is the Context; puts ' If you would like to begin, press enter.' confirm1 = gets.chomp if c... 21 Feb 2010 12:37
Can't install hpricot gem
On ubuntu 9.10 I had to install the ruby-dev package sudo apt-get install ruby1.8-dev -- Posted via ... 4 Mar 2010 01:15
Using Ruby /DL to invoke function in windows dll
Hi, I have a C++ code converted into a windows Dll.I want to use Ruby /DL to invoke the functions in the DLL. Here are the function prototypes: C++ code [code] // MathFuncsDll.h namespace MathFuncs { class MyMathFuncs { public: // Returns a + b static __declspec(dllexport)... 11 Feb 2010 03:54
Shared memory creation in ruby
Hi, I am new to ruby and I want to write code which makes shared memory and writes to it.Similar to the C code here: void main(int argc, char* argv[]) { HANDLE mappedFile = 0; int oneSecond = 1000; char* shared = NULL; HANDLE eventHnd; eventHnd = CreateEvent(NULL, FALSE, FALSE, "TestShare... 10 Feb 2010 04:28
Ray Tracing API.
Has any one written or used a RayTracing API in ruby? I was not able to find one using Google. -- Posted via ... 10 Feb 2010 13:23
First  |  Prev |  Next  |  Last
Pages: 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174