NetBeans IDE for PHP/Ruby.
I just came across NetBeans site and found its PHP and Ruby IDEs. I want to know how popular is NetBeans and are the plugins for SVN really as good as the plugins for Eclipse? ...
I just came across NetBeans site and found its PHP and Ruby IDEs. I want to know how popular is NetBeans and are the plugins for SVN really as good as the plugins for Eclipse? ...
I'm not sure this is possible, but in ruby, you can dynamically call a method using send e.g. if I want to invoke the bar method for the object, foo, I can use foo.send("bar") Is there any way of doing something similar using objective-c? tks! ...
I have a program written in Ruby that uses multiple levels of inheritance. All of the parent classes have implemented methods that an object of a child class would use, but when I generate an rdoc for my program, the rdoc page for a child class only shows the methods for that specific class and no methods from the parent class. Does an...
I am a Ruby newbie. I am designing a web application and plan to use Ruby for coding. This project is for learning purpose but I want to host it live to see how it works. I plan to use PostgreSQL as back-end. I want to know how to host a Ruby website. Which hosting service providers provide support for it? And I also want to know whethe...
Sinatra makes it easy to access any particular incoming form field by name: post "/" do params['form_field_name'] end But how does one enumerate over all the form fields in a request? I found nothing in the documentation. I even tried request.body.split('&') but request.body is an instance of StringIO, and not a string. ...
I need to install mysql on the system. As usual I typed in gem install mysql. Instantly got an error message: "mysql requires Ruby version >= 1.8.6" Current version is at 1.8.4. Considering it's a company's server, it's not easy to upgrade Ruby in a short time (people are afraid their stuff will be broken and it needs a special approval ...
In our application we store multiple project fundings of different donors that they insert in their respective currency, e.g. EUR for Germany, SEK for Sweden etc. The idea is to provide reports for these projects in one currency.. We are currently storing the amount of funding together with it's currency in a table like this: developme...
can i send specific signals to USB ports using Ruby or C++, also the operating system is Windows, so this is like totally new 4 me (to program for windows), so i'm trying to do it as a DLL file, can this DLL contain Ruby code ?? by the way this is just a training project, so it dosn't matter that much, i'm just practicing on those stuff...
I am plannning to use whenever gem which among other things will also run minutely rake task. If my rake task takes more than a minute then based on the output from whenever gem it seems like the second instance of the rake task will kick-in even though the first one is not quite finished. Will whenever gem will wait for the miutely tas...
I'm trying to write a regular expression that matches all word inside a specific string, but skips words inside brackets. I currently have one regex that matches all words: /[a-z0-9]+(-[a-z0-9]+)*/i I also have a regex that matches all words inside brackets: /\[(.*)\]/i I basically want to match everything that the first regex matc...
I want to replace and insert escape character sequences with their escape character values, also taking into account that '\' nullifies the escape character. For example "This is a \n test. Here is a \\n which represents a newline" What is the easiest way to achieve this in Ruby? ...
So I need to access this service from my rails app. I'm using soap4r to read the WSDL and dynamically generate methods for accessing the service. From what I've read, I should be able to chain methods to access the nested XML nodes, but I can't get it to work. I tried using the wsdl2ruby command and read through the generated code. ...
I'm processing a record-based text file: so I'm looking for a starting string which constitutes the start of a record: there is no end-of-record marker, so I use the start of the next record to delimit the last record. So I have built a simple program to do this, but I see something which suprises me: it looks like Ruby is forgetting lo...
I've been developing Windows based applications for a long time and most of my present clients still desire a desktop or client/server Windows application. Is it possible to use Ruby for such applications as opposed to its primary purpose of being a Web-programming language? ...
More verbosely, I have a module Narf, which provides essential features to a range of classes. Specifically, I want to affect all classes that inherit Enumerable. So I include Narf in Enumerable. Array is a class that includes Enumerable by default. Yet, it is not affected by the late inclusion of Narf in the module. Interestingly, cla...
I am going to write a Ruby application that implements a video conversion workflow consisting of multiple audio and video encoding/processing steps. The application interface has two core features: queueing new videos monitoring the progress for each video The user can access these features using a website written in Ruby on Rails. ...
Sorry for the poor title, I don't really know what to call this. I have something like this in Ruby: class Test def initialize @my_array = [] end attr_accessor :my_array end test = Test.new test.my_array << "Hello, World!" For the @my_array instance variable, I want to override the << operator so that I can first process wh...
I am building a small rails app and I need a way to generate tracking numbers to give to customers to check up on their status. I want something similar to what the major shipping companies use, but not as long. Im thinking 12-16 characters long is fine, but I dont want something like 0000000001 where people can just type in incremente...
This is what I have so far ages = [20,19,21,17,31,33,34] names = [Bob, Bill, Jill, Aimee, Joe, Matt, Chris] How do I take ages and apply a method to it to extract the largest integer out of it and learn its indexed position. The reason being I want to know which person in names is the oldest. Parallel assignment is blocking my abil...
Hi, Here is an outline of my app: require 'sinatra' require 'active_record' ActiveRecord::Base.establish_connection( :adapter => "mysql", host => $DB_HOSTNAME, :database => $DB_NAME,:username => $DB_USERNAME,:password => $DB_PASSWORD) class Sometable < ActiveRecord::Base end get '/' do #stuff with Sometable end # a lot ...