First  |  Prev |  Next  |  Last
Pages: 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
Source Code for puts(..)
Dear all, I am writing a program that for some reason one of the options takes 20 seconds to run while the other two combined take 12 seconds. I have the problem narrowed down to one line of code that is always run. This line executes a shell command via puts(`...`). So, I am convinced the reason the program ... 29 May 2010 06:00
[QUIZ] Geometric Intersections (#233)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Quiz: 1. Please do not post any solutions or spoiler discussion for this quiz until 48 hours have elapsed from the time this message was sent. 2. Support Ruby Quiz by submitting ideas and responses as often as yo... 28 May 2010 20:21
.rb security
Hi All, Wondering if possible to compile a ruby script to byte code that can be executed in command line just as a .rb Similar to that of .pyc for a .py Is this possible in Ruby. Thanks, Ed -- Posted via ... 10 Jun 2010 02:21
simple GUI framework - nothing fancy
I'm looking for a very basic GUI framework that would be useful for beginners in the world of GUIs but not beginners to programming necessarily. Something that would be very easy and clean for setting up basic windows to run numeric programs. I keep hearing about Shoes. Would that be a good option? Thank you. ... 28 May 2010 20:21
Reusable Applications - Architecture Question
Some times i ask my self about reusable applications, ive build several rails/.net applications where it need a ticket system, forum and wiki. All the time i copy and paste the code. Now we have the Rails 3 with Pluggable Applications (well i could use Rails Engines later, but... nevermind :P ). Most of the ... 28 May 2010 15:57
Dynamic SVG with Ruby/Tk
The example I'm looking for in regards to ruby/SVG differs from the previous questions. I have an SVG document generated from Adobe Illustrator, and I'd like to not only display the SVG document using ruby, I'd like to modify it within the ruby program and re-display the image. As an example, say I have two node... 29 Jun 2010 22:53
A complete beginners question
Hi there, Sorry this is probably going to be a real easy question but I am totally new to programming. I was following some tutorial online and at the end of the first chapter it said 'Now create a program that asks the user for a number and then suggests a higher number as a better option. So what I wanted... 1 Jun 2010 13:04
Hash : TypeError: can't convert Symbol into Integer
here is my code : h = (same error with h = {} ) h[:path] = "/Users/yt/lib/ruby-i386/" puts "# -> h[:path] = #{h[:path]}" info_for(h[:path]).each {|k,v| puts "# -> #{k} (#{k.class}) => #{v} (#{v.class})"} with : def info_for(h) raise ArgumentError, "The file '#{h[:path]}' does not exist!" unles... 28 May 2010 14:51
ANN: guirb 0.02: The return of fxirb
What: IRB session in a GUI text widget, now with FXRuby and TkRuby support Where: Prerequisite: You need to build FXRuby from the source gem on ruby 1.9 Changes: * Application-configurable behaviour when IRB exits, so that it can be used as a widget * fxirb is back! ... 28 May 2010 12:38
A better way to write this function?
Here is my attempt at Newton's second law in Ruby: #c is the drag coefficent #m is mass #t is total time elapsed #dt is time increment #vi is the starting velocity G = 9.8 def velocity(c, m, t, dt, vi) vel = [] t += dt steps = t/dt steps.times do v = vi vi = v + ( G - c/m*v) * dt ... 8 Jun 2010 04:44
First  |  Prev |  Next  |  Last
Pages: 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96