Browsing Questions About ruby (1)
How do I add existing comments to RDoc in Ruby?
I've got all these comments that I want to make into 'RDoc comments' so they can be formatted appropriately and viewed using 'Ri.' Can anyone get me started on understanding how to use RDoc?
.NET Migrations Engine
I was once under the belief that Microsoft was working on an official, ruby-like, Migration framework. However, I haven't been able to find any additional information (or even the original source of my belief).
Does anyone know any information about an official migration framework? or possibly …
Implementation of "Remember me" in a Rails application
My Rails-app has a sign in box with a "remember me" checkbox. Users who check that box should remain logged in even after closing their browser. I'm keeping track of whether users are logged in by storing their id in the user's session.
But sessions are implemented in Rails as session cookies…
Frequent SystemExit in Ruby when making HTTP calls
I have a Ruby on Rails Website that makes HTTP calls to an external Web Service.
About once a day I get a SystemExit (stacktrace below) error email where a call to the service has failed. If I then try the exact same query on my site moments later it works fine.
It's been happening since the si…
When to use lambda, when to use Proc.new?
In Ruby 1.8, there are subtle differences between proc/lambda on the one hand, and Proc.new on the other.
What are those differences?
Can you give guidelines on how to decide which one to choose?
In Ruby 1.9, proc and lambda are different. What's the deal?
Edit
@Mike Sto…
How do I fix 'Unprocessed view path found' error with ExceptionNotifier plugin in rails 2.1?
After upgrading a rails 1.2 website to 2.1, the ExceptionNotifier plugin no longer works, complaining about this error:
ActionView::TemplateFinder::InvalidViewPath:
Unprocessed view path found: "/path/to/appname/vendor/plugins/exception_notification/lib/../views". Set your view paths with #app…
Open Source Ruby Projects
I have just recently started to study Ruby, and in lieu of Jeff's advice over the weekend...
Stop theorizing.
Write lots of software.
Learn from your mistakes.
...I was interested in honing my skills while helping out the Open Source Community the process so I thought I'd ask…
How do I use (n)curses in Ruby?
I'd like to create a progress bar to indicate the status of an a batch job in Ruby. I've read some tutorials / libraries on using ncurses, none of which were particularly helpful in explaining how create an "animated" progress bar in the terminal or using curses with Ruby. I'm already aware of usi…
How can I modify .xfdl files? (Update #1)
The .XFDL file extension identifies XFDL Formatted Document files. These belong to the XML-based document and template formatting standard. This format is exactly like the XML file format however, contains a level of encryption for use in secure communications.
I know how to view XFDL files u…
Calling Bash Commands From Ruby
How do I call console/bash commands from inside of a Ruby Program? Also, how do I get output from these commands back into my program?
What is good forum software to add to an existing Rails application?
Should be easy to setup, and easy to couple application and forum users.
Text Editor For Linux (Besides Vi)?
Let me preface this question by saying I use TextMate on Mac OSX for my text needs and I am in love with it. Anything comparable on the Linux platform? I'll mostly use it for coding python/ruby.
Doing a google search yielded outdated answers.
Edit: Since there has been some concern about the…
Reverse DNS in Ruby?
I'm in an environment with a lot of computers that haven't been
properly inventoried. Basically, no one knows which IP goes with which
mac address and which hostname. So I wrote the following:
# This script goes down the entire IP range and attempts to # retrieve the Hostname and mac addres…
Mapping values from two array in Ruby
I'm wondering if there's a way to do what I can do below with Python, in Ruby:
sum = reduce(lambda x, y: x + y, map(lambda x, y: x * y, weights, data))
I have two arrays of equal sizes with the weights and data but I can't seem to find a function similar to map in Ruby, reduce I have wo…
Ruby On Rails with Windows Vista - Best Setup?
What do you think is the best set-up for RoR in a Win Vista environment? I've tried the radrails eclipse plug-in, and it just seemed too bulky for me, I've also started to just use Textpad and the command line, but I'm used to having somewhat of an IDE to work with.
Thanks for the help!
Next Page >