|
First
|
Prev |
Next
|
Last
Pages: 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289
GUI for a newbie Matthew Borgeson wrote: Hello All- I have taken up Ruby over the past year and have finally written 7 applications for various functions for my job as a clinical pharmacist. The problem I have here is that while my programs all work great, they are all CLI interface. In order to increase their pa... 14 Jul 2008 09:33
[ANN] threadify-0.0.3 NAME threadify.rb SYNOPSIS enumerable = %w( a b c d ) enumerable.threadify(2){ 'process this block using two worker threads' } DESCRIPTION threadify.rb makes it stupid easy to process a bunch of data using 'n' worker threads INSTALL gem install threadify URI http://rubyfo... 11 Jul 2008 22:17
Treetop positive lookahead problem Hi, I just started plyaing around with treetop and have probably barely touched the surface of possibilities with this great tool. Anyway I have a problem that I think should be quite trivial. My test rule is: rule test 'foo' &'bar' { def value text_value end } end This shoul... 14 Jul 2008 01:22
Working on a first plain Ruby script, need help with `jo عمر ملقب بالثانی wrote: Jesse Crockett wrote: n.split n.join(", ") # fails Do you want to do n.split.join(", ") ? Yes. How do I put them into a CSV file? Thank you. -- Posted via http://www.ruby-forum.com/. ... 11 Jul 2008 16:07
inject idiom Dear all, I am new to Ruby (coming right away from Perl). I've been playing with Hpricot for the sake of learning and wrote a simple script to hash link entries with their tags from del.icio.us front page. My first attempt is more or less Perl-inspired: require 'hpricot' require 'open-uri' doc = Hpricot(... 12 Jul 2008 20:44
Working on a first plain Ruby script, need help with `join' I need help in the block to create a csv file of these entries. the file, abridged: @verb_index = " aah v 1 1 @ 1 0 00865776 abacinate v 1 1 @ 1 0 02168378 abandon v 5 4 @ ~ $ + 5 5 02228031 02227741 02076676 00613393 00614057 abase v 1 3 @ ~ + 1 0 01799794 abash v 1 3 @ ~ + 1 0 01792097 ... 11 Jul 2008 15:05
block variable not working how I expect it to work Here is my ruby version: ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] Here is the block I wrote (this is actually a little test block for testing part of a larger block): ------------ def myblock testvar = ['cool', ' array'] yield testvar print testvar end ------------ Now here is a snippe... 11 Jul 2008 14:03
Symbolify (#169) On Jul 11, 2008, at 9:17 AM, Matthew Moss wrote: That is, the following test code should raise no exceptions: 1000.times do |i| s = symbolify(i) raise "Not a string!" unless s.is_a? String raise "Invalid chars!" unless s.delete("?*()-").empty? x = eval(s) rais... 17 Jul 2008 16:50
Regex to find urls in text? On our site, our resources have a description, which is often copied and pasted from somewhere else. Often these descriptions have urls in them, just as normal text, and i'd like to automatically make these into working links. I was thinking of using gsub as below: def description_with_links regex = ???? ... 11 Jul 2008 14:03
mail_fetcher socket error Hi, I am using the mail_fetcher from rubyforge.org/var/svn/slantwise/fetcher as described in Advanced Rails Recipes, Recipe 40. It works great, but every once in a while I get a SocketError and it dies with the error output: /script/../config/../vendor/plugins/fetcher/lib/fetcher/../vendor/secur... 11 Jul 2008 11:59 |