COMPGROUPS.NET | Post Question | About | Groups | Contact | Register | Login



comp soft-sys matlab (18494)

comp os linux advocacy (5156)

comp soft-sys sas (3803)

comp soft-sys math mathematica (2916)

comp lang python (2903)

comp lang ruby (2550)

comp text tex (1729)

comp sys mac advocacy (1658)

comp lang c++ (1416)

comp lang javascript (1219)

comp lang c (1196)

comp lang perl misc (1191)

comp lang java programmer (925)

comp dsp (909)

comp sys mac system (890)

comp lang tcl (872)

comp databases ms-access (760)

comp arch fpga (749)

comp lang idl-pvwave (726)

comp software shareware announce (702)

comp lang php (698)

comp lang lisp (682)

comp sys sun announce (659)

comp arch embedded (626)

comp sys mac apps (609)

comp sys ibm ps2 hardware (545)

comp lang c++ moderated (524)

comp lang fortran (524)

comp unix shell (521)

comp os plan9 (514)

comp os linux misc (513)

comp unix solaris (500)

comp databases oracle server (494)

comp sys ibm pc games war-historical (485)

comp lang python announce (483)

comp os ms-windows programmer win32 (476)

comp databases mysql (412)

comp sys cbm (408)

comp dcom sys cisco (407)

comp arch (306)

comp sys ibm pc games action (301)

comp databases informix (274)

comp lang clipper visual-objects (267)

comp os vms (263)

comp lang perl announce (238)

comp lang xharbour (229)

comp graphics apps gnuplot (224)

comp realtime (216)

comp soft-sys ace (215)

comp lang ada (213)

comp protocols nfs (207)

comp protocols snmp (204)

comp parallel (202)

comp sys acorn announce (196)

comp protocols tcp-ip domains (193)

comp sys ibm pc hardware systems (191)

comp unix internals (187)

comp infosystems www browsers misc (184)

comp misc (182)

comp publish cdrom software (182)

comp dcom cabling (174)

comp mail mime (169)

comp std announce (169)

comp ai fuzzy (168)

comp ai edu (166)

comp soft-sys stat spss (156)

comp protocols kerberos (155)

comp databases filemaker (155)

comp sys apple2 (153)

comp admin policy (151)

comp databases postgresql committers (150)

comp databases ibm-db2 (149)

comp databases ms-sqlserver (131)

comp protocols dicom (129)

comp unix programmer (128)

comp security misc (123)

comp unix bsd freebsd misc (120)

comp graphics visualization (117)

comp cad cadence (117)

comp databases olap (116)

comp apps spreadsheets (114)

comp databases postgresql general (114)

comp lang vhdl (113)

comp lang java help (113)

comp ai neural-nets (112)

comp ai (111)

comp ai games (110)

comp dcom telecom (109)

comp client-server (108)

comp os linux announce (105)

comp cad microstation (105)

comp databases oracle marketplace (105)

comp soft-sys math scilab (102)

comp databases progress (102)

comp os linux networking (101)

comp database oracle (100)

comp graphics api opengl (99)

comp ai genetic (98)

comp protocols dns bind (97)

comp compilers (97)


comp.lang.ruby Post New
Items(2511) /51 Next >> Last >|
Subject Posted Replies From
Round to two decimal place

Hi I have a variable say @price. It is either blank or has a value. If it is blank I have to show it like $ 0.00 . So I wrote helper like @price.blank? ? '$'+'0.00' : '$'+@price.to_s But the problem if @price has value 400.00 , after doing @price.to_s it changes to 400.0 What I want is exactly 400.00 .And if I remove to_s above it will throw an error can't convert BigDecimal into String Please help Thanks Tom -- Posted via http://www.ruby-forum.com/.

9/7/2010 8:16:36 AM 0 Tom Mac <to.tom....@gmail.com>
Embedding several ruby interpreter instances in C?

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello list, the subject says it all: I know how to generally embed Ruby into a C program. However, since ruby_init() & co just return void, I guess there is no way to have more than one Ruby interpreter embedded into the same program at a given time. Am I correct with this assumption? TIA! Eric -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEUEARECAAYFAkyHnuMACgkQhS0drJ3goJJ/cgCVGzuL/A4Gl5kNLQW7/fJMdfL0 CQCfStrIS2GnJftLMb4ZYcB/PgmhtUM= =MQbR -----END PGP SIGNATURE-----

9/8/2010 2:35:37 PM 1 Eric MSP Veith <eve...@wwweb-library.net>
Connection with MS SQL Server

Hi, I'm looking for a library which enables me to execute SQL statements on a MS SQL database server. The libs I found until now on the Net seemed to allow only SELECT statements, I need to to the following operations: create table select count... drop table rename table Any hints appreciated very much! Thanx Jens

9/8/2010 1:01:25 PM 0 Jens Riedel <Jens...@gmx.de>
[ann] ruby-hackernews released!

Hello everyone, I've wrote a little library that allows to programmatically access the popular aggregator site Hacker News. You can find it here (http://github.com/bolthar/ruby-hackernews ), it's also available as a gem on RubyGems (gem install ruby-hackernews). On the Github page there's also some documentation and a short feature list. Comment/suggestions/bug reports are welcome! -- Andrea Dallera http://github.com/bolthar/freightrain http://usingimho.wordpress.com

9/8/2010 12:53:53 PM 0 Andrea Dallera <and...@andreadallera.com>
convert date

in my irb console: irb(main):001:0> require 'rubygems' => true irb(main):002:0> require 'date' => false irb(main):003:0> puts Date.parse("oct").to_s.split("-")[1] 10 => nil 1.why irb(main):002:0> require 'date' => false 2.is there more simple way to change "oct" into 10? -- Posted via http://www.ruby-forum.com/.

9/7/2010 3:21:46 AM 0 Pen Ttt <myocean...@yahoo.cn>
[ANN] IPAddress 0.7.0 released

Hi, I've released IPAddress 0.7.0. http://github.com/bluemonk/ipaddress This new release is focused on two points: * compatibilily with IPAddr almost all IPAddress methods are compatible with their IPAddr counterpart, with the exception of wrong and flawed methods * performances improvement IPAddress is now around 50% faster than IPAddr on all normal tasks. As an example, this is the speed improvement on initialize and to_s user system total real ipaddr 68.960000 20.930000 89.890000 ( 90.105755) ipaddress 44.410000 3.880000 48.290000 ( 4

9/8/2010 12:13:46 PM 2 Marco Ceresa <cer...@gmail.com>
Small improvements ideas ?

Hello, I would like to know how to shorten these two lines 1) doit() if my_string && my_string.downcase == 'hello' 2) doit() if one_var && (my_string =~ /this_regexp/) == nil Case 1) is a way to check for my_string beeing nil (would break on downcase call). But it's verbose, nothing better ?? Case 2) I want doit beeing call if regexp don't match. would I use ! (my_string =~ /this_regexp/) but I don't like using ! because it's not very readable and I can't use not keyword in this case Thanks

9/8/2010 11:33:10 AM 5 Chris <christophe.gime...@gmail.com>
ruby without framework

[Note: parts of this message were removed to make it a legal post.] Can I use ruby code running in web browser without any frameworks used? Also anyone please tell me how to make framework, Please give me some tips or spark to start with. I need to make a new framework because I need to re-use the ruby code (actually shares the code) for desktop version and the new framework. Is that possible? -- Rashad

9/7/2010 4:01:47 PM 0 Mohammed Rashad <mohammedrasha...@gmail.com>
Writing a domain specific macro processor in ruby

I'm thinking of something like the m4 processor ( of autotools fame or infamy ), but with only a few domain specific built-in macros. Can anyone offer some helpful hints?

9/7/2010 4:12:07 PM 0 Handy Gandy <handigandy-...@yahoo.com>
Regex breaks when string contains binary data

Hi, I can't see why the following Regex isn't working as expected. Maybe a bug in ruby? puts "345HI".match(/HI|BYE/).inspect > HI puts "\345HI".match(/HI|BYE/).inspect > nil What I expected was the second regex to find "HI" in the string too. Why I need this, is that I'm printing data to stdout that will contain some binary characters, and I'm using a regex to escape the newline characters that it maybe contains. I'm using Ruby 1.8.7 Thanks, Aish -- Posted via http://www.ruby-forum.com/.

9/8/2010 8:42:07 AM 4 Aisha Fenton <aisha.fen...@visfleet.com>
[Newbie] What folder to upload to?

Hi all, I am reading all the tutorials and trying to dive into ruby here. I have a remote web server I want to test my programming on but I am used to just uploading a file (php or .net) and running it in the root folder for that page. Ruby seems different and I haven't really figured out this part of it. I am doing a sinatra tutorial and don't know where to put my files on the remote web server. Do I put them in the public_html (www) folder or somewhere else. I managed to get ruby installed on the server using some SSH. Can someone point me in the right direction? John -- Po

9/7/2010 1:07:01 PM 0 John Hamman <john.ham...@gmail.com>
Nokogiri and LibXML

Each time i launch a script using Nokogiri i get : WARNING: Nokogiri was built against LibXML version 2.7.7, but has dynamically loaded 2.7.3 despit this warning the script works as expected. what is the best way to get right libxml ? my libxml is installed using MacPorts Ruby 1.9 too. Nokogiri is installed rubygems of the ruby 1.9 installed by macports. -- � Pour ceux qui vont chercher midi � quatorze heures, la minute de v�rit� risque de se faire longtemps attendre. � (Pierre Dac)

9/8/2010 5:05:05 AM 4 unbewusst.s...@google.com.invalid (=?ISO-8859-1?Q?Une_B=E9vue?=)
Receiving array naturally?

As I learn Ruby, I find a lot of flexibility in the syntax. I was thinking there was a way to do something like so: Say I had a method that would receive an array. Is it possible to define the method so that it can take the array elements /either/ as an Array object, /or/ as a comma-separated (variable) list of elements (without the brackets)? Like, process_data(string1, string2, string3, ...) would be the same as string_array = [string1, string2, string3, ...] process_data(string_array) I thought something like so would work: def process_data(*strings) ...

9/8/2010 5:10:40 AM 2 Terry Michaels <sp...@frigidcode.com>
Angle Identifier

puts "Enter degree of angle:" measure = gets.chomp.to_i if measure == "180".to_i then puts "That's a straight angle." if measure == 181..359.to_i then puts "That's an obtuse angle." if measure == 91..179.to_i then puts "That's an obtuse angle." if measure == "90".to_i then puts "That's a right angle." if measure < 90.to_i then puts "That's an acute angle." if measure == "360".to_i then puts "That's a circle..." else puts "That's an invalid measurement." end end end end end end This seems like it should work, but sometimes it doesn't. Help? -- Posted via http://www.ruby-foru

9/8/2010 1:02:39 AM 2 Hd Pwnz0r <human.diction...@rocketmail.com>
defining self-reflexive operators in Ruby

In the same way that a += 1 means a = a+1 is it possible in Ruby to create an operator such as .! (or something like that) such that someObject.!someMethod gives the same result as someObject = someObject.someMethod -- Posted via http://www.ruby-forum.com/.

9/8/2010 1:16:50 AM 3 Harry Spier <harrysp...@hotmail.com>
rvm and macruby 0.6

[Note: parts of this message were removed to make it a legal post.] Hi, I installed macruby 0.6 through rvm, but irb gave the following error message: $ irb No such file or directory - open() failed (Errno::ENOENT) In fact, this irb program is a bash script, which exec macirb in the end: $ cat irb #!/usr/bin/env bash export GEM_HOME="/Users/liruohao/.rvm/gems/macruby-0.6" export GEM_PATH="/Users/liruohao/.rvm/gems/macruby-0.6:/Users/liruohao/.rvm/gems/macruby-0.6@global " export MY_RUBY_HOME="/Users/liruohao/.rvm/rubies/macruby-0.6" export PATH="/Users/liruohao/.rvm/gem

9/7/2010 6:33:02 AM 0 Ruohao Li <liruo...@gmail.com>
A gem for web services load testing?

Hi Folks - I've been developing automated functional tests in ruby for our website for the last few months, and now need to expand my scope. Before I hit google, can anyone recommend a gem which can perform load testing on a REST API? I realize I could probably build my own w/ mechanize + threading of some kind, but that seems like it'd be a lot of work, and I don't want to solve a problem that's already been solved. Any suggestions are appreciated. Thanks, Alex

9/7/2010 10:13:57 PM 0 Alex Stahl <ast...@hi5.com>
Installed gem does not load

[Note: parts of this message were removed to make it a legal post.] I am attempting run, in 1.8.6, an fxruby sample called babelfish.rb babelfish.rb requires a gem called tranexp I installed the gem and gem list --local produces (in part) produces tranexp (1.0.1) I, of course, tried to run babelfish.rb. Of course, it wouldn't run ... - - - babelfish.rb:4:in `require': no such file to load -- tranexp (LoadError) from babelfish.rb:4 - - - What would prevent tranexp to load when all other gems load just fine?

9/7/2010 8:11:49 PM 1 Ralph Shnelvar <ral...@dos32.com>
Dynamic variables in blocks vs constants

Hi, I know that dynamic variables created in block it is not accessible from outside of that block but I noticed that dynamic constants can be accessed and I want to know why it is so. Sorry for my bad english. For better understanding of my problem I'm attaching code below. %w[magic MAGIC].each do |x| eval <<-RUBY #{x}_dynamic = 1 RUBY end And now you can try.. magic_dynamic MAGIC_dynamic You can observe it using 1.9 version of ruby. -- Posted via http://www.ruby-forum.com/.

9/7/2010 5:26:15 PM 1 Krzysztof Loch <jmu...@o2.pl>
Installing ActiveRecord gem

I'm trying to install the ActiveRecord gem, but getting the following: C:\Users\Abder-Rahman\Desktop\Research\dicom>gem install activerecord ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) too many connection resets (http://production.cf.rubygems.org/gems/tzinfo-0 3.23.gem) How can I get this gem installed? Thanks. -- Posted via http://www.ruby-forum.com/.

9/7/2010 3:07:28 PM 2 Abder-Rahman Ali <abder.rahman....@gmail.com>
Problem with 'chomp'

Simple program: while($_ != "q") puts "Running..." print "Enter q to quit: " gets chomp end However - getting the following in any progams in which I use 'chomp': 'undefined local variable or method 'chomp' for main: Object (NameError) -- Posted via http://www.ruby-forum.com/.

9/6/2010 10:11:28 PM 3 Barry O'gorman <barryjogor...@gmail.com>
issue with the devise

[Note: parts of this message were removed to make it a legal post.] Hi, I am using Devise and want to override a method from a controller also there is a different way for signup. I am using RAILS = 2.3.5 and DEVISE= 1.0.8 I tried using class Mycontroller < Devise::RegistrationsController end and also devise_for :users, :controllers => { :registrations => "some_diff_controller" } But still I am finding that the method is NOT getting overridden. Could you please suggest anything over here Thanks in advance -- Thanks and Regards Saurabh Purnaye +91-992207

9/7/2010 2:11:17 PM 0 saurabh purnaye <saurabh.purn...@gmail.com>
What OS do you use for Ruby development?

I don't want to start any OS wars. I was just curious as to what OS you prefer to run/code ruby in. If you run *nix, what distro? Thanks, -Nick

9/7/2010 11:00:20 AM 11 Nick Hird <nrh...@gmail.com>
Setting encoding of pages in Capybara

[Note: parts of this message were removed to make it a legal post.] Hi all, Quick encoding question: say I'm trying to grab data from a Japanese page using Capybara and Rack::Test, and I get badly encoded text in the response. e.g. running this script: require 'rubygems' require 'capybara' require 'rack/test' require 'rack/proxy' Capybara.default_selector = :css class Japan < Rack::Proxy def rewrite_env(env) env['HTTP_HOST'] = 'l-tike.com' env end end session = Capybara::Session.new(:rack_test, Japan.new) session.visit '/pickup/concert_more.html' puts

9/7/2010 10:27:02 AM 0 James Coglan <jcog...@googlemail.com>
embedded ruby leaves $: empty

What's the best way, when embedding Ruby via ruby_init() and such in C, to give it all the same RUBYPATH style library paths as a ruby.exe shell call would see? Where "best" generally means portable to other people's computers, where they can be assumed to have a working ruby install of the same version? -- Phlip

9/6/2010 11:36:03 PM 0 Phlip <phlip2...@gmail.com>
How do I request a HTTPS page?

I would like to access a https page from irb "https://www.etsy.com/oauth/signin?oauth_consumer_key=aaa&oauth_token=bbb" I have been unable to find an example to do this that works. Is there a good resource on how to do this with Ruby Net::HTTP ? Does anyone what the general process of this is? Thank you, Sam -- Posted via http://www.ruby-forum.com/.

9/6/2010 8:40:54 PM 1 Samuel Sternhagen <samat...@gmail.com>
trouble with mkfifo and forks

# In a nutshell: 1) Create a pipe 2) Fork twice 3) Each for sends 10 strings over the pipe 4) See what comes out the other side So, why isn't what I send coming out? class WaitListTest < Test::Unit::TestCase NUMBER_OF_ORDERS = 2 PIPE = "test/wl_pipe" def setup `rm #{PIPE}` `mkfifo #{PIPE}` end def test_registering_last_race term_count = 0 responses = [] pids = [] NUMBER_OF_ORDERS.times do |i| pids << Process.fork do sleep 1 + (0.1 * i) 10.times do |a| File.open("#{RAILS_ROOT}/#{PIPE}", "w+") do |pi

9/6/2010 8:07:09 PM 2 Josh <josh.m.sha...@gmail.com>
Odd functional programming question

Ok this is probably not really functional programming but I was just noodling about with Ruby when I thought "it would be quite nice if I could do X". In this case X is as follows: def X(text, action) x.action end >> X("abcedf", size) => 6 >> X("abcdef", upcase) => "ABCDEF" >> X("abcdef", gsub(/[aeiouy]/, '_')) => "_bcd_f" Quite clearly this does not actually work, otherwise I wouldn't be asking. But is there some way in Ruby to do something like this?

9/6/2010 1:40:14 PM 8 Peter Hickman <peterhickman...@googlemail.com>
unable to open X server `' (Magick::ImageMagickError)

I have written a Ruby script "dicom_info.rb", and when I try running it, I get the following error. Why is that? And, how can it get solved? C:\Users\Abder-Rahman\Desktop\Research\dicom>ruby dicom_info.rb Fantomas is 070Y And, this is the DICOM image dicom_info.rb:22:in `display': unable to open X server `' (Magick::ImageMagickEr ror) from dicom_info.rb:22 from dicom_info.rb:10:in `each_index' from dicom_info.rb:10 This is the "dicom_info,rb" script: require "rubygems" require "dicom" require "RMagick" dicom_files = Array.new Dir["./dcm_files/*.dcm

9/6/2010 3:42:11 AM 12 Abder-Rahman Ali <abder.rahman....@gmail.com>
A better idiomatic way of doing this?!

Hi Im new at Ruby and been struggling with this lab I have for a course Im doing in Ruby. Im working on a program were you can register guests and unregister and so on. What I need to do now is to present a menu through a module which we can cal the main_menu. From there you should be able to navigate to two other menus and back again to the main menu this by user input. Until now Ive managed fine with the user input and displaying a menu, but now as I have three menus but only want the main to show I not really sure how to do this. Hopefully someone can help. I have pasted the code be

9/5/2010 9:12:39 PM 7 Tim Romberg <tim.jakobs...@gmail.com>
ruby for desktop and web

[Note: parts of this message were removed to make it a legal post.] I need to develop a application which can be used in desktop environment and web environment. The code/core classes written for desktop version must be reused for the web also. code REUSE is a must property. I had two option 1. To use C++ for desktop and ruby for web. Using a library/interface/extension to access the cpp code on web (dont know about the package needed) second option use ruby for web and desktop So will it be easier to use/reuse (inherit) the classes wrtitten for desktop version by the web

9/5/2010 1:29:36 PM 1 Mohammed Rashad <mohammedrasha...@gmail.com>
Urgent [ rake aborted ! ]

We are new in RoR : Can some one help on the below : rake aborted! can't activate, already activated prawn-0.8.4 <See full trace by running task with --trace> Q1 - how we resolve the rake aborted ... Q 2- How we see [ the See full trace by running task with --trace] , in RoR its urgent . Regards @ marksman

9/4/2010 5:06:40 PM 0 Vishal <vis...@marksmantech.com>
what are the best practices to handle local gem modification

hi there, i hope i'm posting at the right place. i have the feeling that what i'm asking is a very frequent issue, but somewhat i have not been ale to ask it to google in the right way so i'm posting it here instead basically, there's this classifier gem that i want to use. it depends on fast-stemmer it works, i like it. however, fast-stemmer may be fast, but it stems english words only. and basically i am trying to stem french text. So it is not really stemming it in the right way. instead there's this stemmer4r gem that actually supports french. The gem is aging, but it's

9/4/2010 3:59:23 PM 1 Fourchette Fourchette <alexis...@hotmail.com>
Using Nokogiri to scrape multiple websites

Hi everyone, I'm looking to use Nokogiri to scrape about 10 websites for their anchor texts and output them on screen. What would be the best way to achieve this? I have tried doing something like this without much luck... def index sites = Array.new("site1.com","site2.com","site3.com") sites.each do |site| @textlinks << scrape(site) end end def scrape(website) require 'open-uri' require 'nokogiri' doc = Nokogiri::HTML(open(website)) return doc.xpath('//a') end Thanks -- Posted via http://www.ruby-forum.com/.

9/4/2010 2:24:59 PM 2 Ryan Mckenzie <r...@souliss.com>
Slow Find.find - real problem

Hey, I have a real head ache and would really appreciate any advice. I have a folder with 100,000's of files within it and I need to run a rename process across these. def renameFile(oldID, newID) Find.find(@pdfDIR) do |curItem| if File.file?(curItem) and curItem[/.pdf$/i] and File.basename(curItem)[/^T/i] #If the file is valid, is a PDF and it has not been renamed with T on the front else if File.basename(curItem.to_s.strip) == oldID File.rename(curItem.to_s.strip, "#{@pdfDIR }\\T#{newID}.pdf") #rename the exprted PDF file

9/4/2010 11:24:23 AM 5 Stuart Clarke <stuart.clarke1...@gmail.com>
Ruby looping

Hey, I have a quick query regarding loops, I am reading a CSV file take the information from the first line of the CSV file and calling an object which does some stuff, then I want to move on to the next line in the CSV file and continue this process until I have done every line. My code is as follows: require 'csv' file = "H:\\13936 _ Project HS\\extra tiff work\\test\\rename.csv" #path to CSV file def renameFile(oldID, newID) DO SOME STUFF end d = CSV.open(FILE, "r") #Open the as CSV d.each do |setA, setB| #2 columns of data next oldID = setB.to_s.strip

9/4/2010 10:39:34 AM 3 Stuart Clarke <stuart.clarke1...@gmail.com>
Getting name of current method

[Note: parts of this message were removed to make it a legal post.] Ruby has __FILE__ and __LINE__ to give the file and line omber where we are currently at in the code. Consider Class X def my_method m = ??? # I want m to be assigned "my_method" end end How can I get m set properly? I guess I could use define_method to define my_method and then pass the name into the function .. but that is so ugly and also flattens scope that I may not want flattened.

9/4/2010 12:44:19 AM 3 Ralph Shnelvar <ral...@dos32.com>
encrypt passwords

hi i have a ruby script screenscraping my bank. how can i encypt the userid/password in the ruby so that even if someone steals my script, they will not have access to my passwords.

9/3/2010 11:17:07 PM 0 Junkone <junko...@gmail.com>
Constants lookup changes in 1.9.2?

Hi. I've had this code working in 1.9.1: module SomeModule module SayIt def self.included(x) puts "included" end end end class SomeAdapter def self.inherited(m) m.class_eval do include SomeModule include SayIt end end end class SimpleTest < SomeAdapter end but in 1.9.2 it throws error: uninitialized constant SomeAdapter::SayIt (NameError) to make it work i need to specify full constant Name: include SomeModule::SayIt what has changed? is it a bug or feature? -- Posted via http://www.ruby-forum.com/.

9/3/2010 9:39:19 PM 0 Daniel Fort <naq...@gmail.com>
[ANN] hoe-gemspec 1.0.0 Released

[Note: parts of this message were removed to make it a legal post.] hoe-gemspec version 1.0.0 has been released! * <http://github.com/flavorjones/hoe-gemspec> Generate a prerelease gemspec based on a Hoe spec. == FEATURES/PROBLEMS: Creates a rake task to generate a prerelease gemspec based on your Hoe.spec: * `gem:spec` Why would you want to do this? I mean, why would anyone want to generate a prerelease gemspec? * to allow users of your library to build their project off of master quickly, without having to clone or fork your repository, e.g., with Bundler. == S

9/3/2010 4:04:46 PM 0 Mike Dalessio <mike.dales...@gmail.com>
Getting notification that a subprocess is killed on Windows

[Note: parts of this message were removed to make it a legal post.] What is the proper way, under Windows, to detect that a process was killed? Crashed? Signal.list.each_key do |key| puts key Signal.trap(key, lambda {|signo| puts "#{key}: pid #{$$} with signo #{signo}"}) end @the_command_pipe = IO.popen(the_command) @the_command_pid = @the_command_pipe.pid Process.waitpid(@the_command_pid) @child_process_return_status = $? . . . Process.kill(:KILL, @the_command_pid) # Seems to properly kill my

9/3/2010 4:07:14 PM 0 Ralph Shnelvar <ral...@dos32.com>
Make Online Money

This is very good online dating site for earn extra income to all house wife and un employeed http://www.traceincome.com/

9/3/2010 3:16:21 PM 0 sunita patel <sunita.pate...@gmail.com>
Mountain.rb in Boulder Oct6-9 early bird closing Monday

Hi all, Just a quick note to anyone who doesn't know about this conf. I'm excited since it's up the way from me in Boulder and has a great speaker line up including Jim Weirich, Aaron Patterson and others on some really cool topics. Additional plus is that the country's largest Ignite - Boulder Ignite is happening one of the nights as well. There's more info on the site: http://mountainrb.com I just registered and realized the early bird ends on Monday for what looks to be a killer conference, figured I'd forward this on to the list. Look me up if you make it, I'm always up

9/3/2010 3:09:08 PM 0 Charley Baker <charley.ba...@gmail.com>
Matz's slides from Rubykaigi?

Hello, (I guess this is mostly directed at Matz but I thought of sending it here since it may interest other people too.) Would it be possible to have somewhere accessible online Matz's slides from this year Rubykaigi? Thank you Diego

9/3/2010 11:55:22 AM 1 Diego Virasoro <diego.viras...@gmail.com>
free ruby for you

http://123maza.com/25/flight472/

9/3/2010 10:52:37 AM 0 ponraj niz <nizpon...@gmail.com>
About check link is broken or not ? using watir

Hi, Can any one help me to check links are working or not in page? using watir? Let me know if any other good way for it i check it with header also but not get right response like 200. Thanks, Priyank Shah -- Posted via http://www.ruby-forum.com/.

9/3/2010 9:31:55 AM 0 Priyank Shah <shahpriyan...@gmail.com>
Failed to write unicode string to excel

[Note: parts of this message were removed to make it a legal post.] Hi, I am trying to do some converting from xml data and write the reports to Excel. it works very well for English, however, the Unicode data will be messing in the excel, how should I do it. the class I am using to write Excel: require 'win32ole' require "iconv" ### # class ExcelConst end class ExcelHelper def initialize() @excel_app = WIN32OLE.new("Excel.Application") puts "Excel failed to start" unless @excel_app @excel_app.Visible = false @workbook = @excel_app.Workbooks.Add

9/3/2010 5:24:01 AM 0 Author <aut...@zhang-liang.com>
Event Resolution Framework

Has anyone ever pursued creating a library/framework for the abstract management of event resolution models? I'm coding a game where character actions of all players are planned ahead of time, and then these actions are executed all at the same time. This, obviously, means that I will need to develop logic to resolve event conflicts. For example, character A decides to send a message to character B, at the same time that character C decides to shoot character A. So my game logic needs to decide which events take precedence (does character A get off his message before getting shot?)

9/3/2010 4:50:39 AM 6 Terry Michaels <sp...@frigidcode.com>
Uninstall conflicting versions of ImageMagick?

In irb when I enter "require 'RMagick'" I get: RuntimeError: This installation of RMagick was configured with ImageMagick 6.5.7 but ImageMagick 6.5.5-10 is in use. from /usr/lib/ruby/1.8/i486-linux/RMagick2.so from /usr/lib/ruby/1.8/RMagick.rb:11 from (irb):2:in `require' from (irb):2 from /usr/lib/ruby/1.8/RMagick.rb:1513 I have upgraded Ubuntu several times (even after formatting the main partition). I did keep my home partition intact. I also recently installed rvm. I can't seem to figure out how to uninstall the 6.5.5-10 conflicting version of ImageMagick.

9/3/2010 2:10:39 AM 0 "Mario T. Lanza" <mla...@comcast.net>
Enumerator#each return value is surprising

Generally in Ruby, if enum is an Enumerable, enum.each returns enum -- this seems to be the case for all enums. But for Enumerator, it seems to return...well, something else. For enumerators created with enum_for, it returns the return value of the underlying function, e.g.: irb(main):065:0> e = [1,2,3].enum_for(:each) => #<Enumerator: [1, 2, 3]:each> irb(main):066:0> e.each {} => [1, 2, 3] While the return value of each is usually not that important (its usually used as if it was a procedure rather than for its return value), shouldn't Enumerator#each return the receiver like A

9/3/2010 1:27:59 AM 7 Christopher Dicely <cmdic...@gmail.com>

Pages: 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51









Newest Articles

problems with markersize
23 min. 45 sec. ago

iTunes...
28 min. 6 sec. ago

STREL input error
37 min. 46 sec. ago

Color marker recognition
47 min. 43 sec. ago

Neural Network indentification - help
47 min. 44 sec. ago