Pure Ruby App that receives events339 (8/10/2008 1:53:42 PM) comp.lang.ruby Does anyone know if it is possible to have a Ruby application that receives Apple Events? I assume it would be in an event loop. Really, what I'm asking is if I can create a pure Ruby app that behaves like a ... Perry
uconv alternative to iconv019 (2/5/2008 1:34:39 PM) comp.lang.ruby There is a much more complete character set translation library available here: http://www.icu-project.org/userguide/intro.html The download to the files is on that page. But for convenience here it is: http... Perry
Ancestor paths233 (2/2/2008 12:52:26 AM) comp.lang.ruby ActiveRecord does this "trick". For a normal object, this dump routine: def dump(name, obj) puts "#{name}'s ancestors: #{obj.class.ancestors.inspect}" puts "#{name}'s funky ancestors: #{(class ActiveReco... Perry
weird binding error226 (1/31/2008 5:33:12 PM) comp.lang.ruby # Below is code that represents the code I am working on. The line # that reads temp.wrap_with_combined is the problem. I am not sure if # this is a bug in my brain, Rails, or Ruby. And, I'm stumped as to # ... Perry
gem server start via launchd043 (1/22/2008 5:10:53 PM) comp.lang.ruby I put this in /Library/LaunchDaemons It will start the Ruby Gem documentation server at boot. I don't know how to get it to start when the first request comes in. The gems that ships with 10.5 is too old. S... Perry
"with" statement1231 (10/21/2007 3:15:02 PM) comp.lang.ruby Pascal has a with statement. (I'm showing my age). It would be nice instead of: I could do: with(relationship) { ... Perry
Class instance variable idiom2624 (10/17/2007 8:10:47 PM) comp.lang.ruby I am using this technique for class instance variables: class << self def set_foo(s) @foo = s end alias :foo= :set_foo def foo @foo end end Then to reference foo from an instance of the cla... Perry
Class variables #3129 (9/22/2007 12:32:36 AM) comp.lang.ruby I must have a fundamental misunderstanding of Ruby. I am hoping someone here can help. This is the essence of what I am doing. I am doing this inside Ruby On Rails so it may be that Rails is doing something ... Perry
Bug in ri_formatter.rb222 (8/25/2007 4:22:30 AM) comp.lang.ruby If you do ri of Rail's option_groups_from_collection_for_select, whose complete name is ActionView::Helpers::FormOptionsHelper#option_groups_from_collection_for_select, then ri_formatter.rb throws an error at l... Perry
Looking for gram.y1106 (7/31/2007 2:44:17 PM) comp.lang.ruby I am looking for the Bison (or yacc) file used to create ext/syck/gram.c and gram.h It is not in the svn trunk. Thank you, Perry -- Posted via http://www.ruby-forum.com/. ... Perry
pedz's replies:
Items(7) /1
ssh without password between linux and AIX8118 (11/29/2006 3:47:38 PM) comp.unix.aix Hi, I'm trying to copy a file through "scp" from a RedHat Linux and an AIX 5.3 without beeing prompted for a password. First, I generate a key pair on my Linux as root: ssh-keygen -b 1024 -t dsa I just pre... javi_espi(5)
g++ 4.1.1 with pthread option on powerpc-ibm-aix5.3.0.0425 (12/1/2006 10:50:13 AM) comp.unix.aix hi, I'm porting a C++ multithread application from Solaris to IBM AIX 5.3 platform. The gcc configuration is : g++ -v Using built-in specs. Target: powerpc-ibm-aix5.3.0.0 Configured with: ./configure --prefix=/... albeporta(3)
Unexpected behavior with multidimensional arrays1449 (7/31/2007 3:18:19 PM) comp.lang.ruby Hi, I need a 3-dim array. The following attempt shows some unexpected results: irb(main):001:0> a = Array.new(3) => [nil, nil, nil] irb(main):002:0> a.map!{Array.new(3,[])} => [[[], [], []], [[], [], []], [[]... aarmbruster(14)
Class instance variable idiom2624 (10/17/2007 8:10:47 PM) comp.lang.ruby I am using this technique for class instance variables: class << self def set_foo(s) @foo = s end alias :foo= :set_foo def foo @foo end end Then to reference foo from an instance of the cla... pedz(19)
"with" statement1231 (10/21/2007 3:15:02 PM) comp.lang.ruby Pascal has a with statement. (I'm showing my age). It would be nice instead of: I could do: with(relationship) { ... pedz(19)
weird binding error226 (1/31/2008 5:33:12 PM) comp.lang.ruby # Below is code that represents the code I am working on. The line # that reads temp.wrap_with_combined is the problem. I am not sure if # this is a bug in my brain, Rails, or Ruby. And, I'm stumped as to # ... pedz(19)
Ancestor paths233 (2/2/2008 12:52:26 AM) comp.lang.ruby ActiveRecord does this "trick". For a normal object, this dump routine: def dump(name, obj) puts "#{name}'s ancestors: #{obj.class.ancestors.inspect}" puts "#{name}'s funky ancestors: #{(class ActiveReco... pedz(19)