Requesting Japanese Translation849 (5/30/2009 12:36:53 AM) comp.lang.ruby I'm adding a little Japanese to a Ruby presentation I am giving. I need just one simple phrase translated at this time. (More will come later though, so let me know if you don't mind helping out.) If som... James
Block Style1545 (4/26/2009 10:48:10 PM) comp.lang.ruby I hate to be the guy to start another { =85 } vs. do =85 end thread, but = I =20 have some questions I would love to hear opinions on. I use to just use the rule of { =85 } for one-liners and do =85 end for =2... James
Shared Half-Secret248 (4/17/2009 5:48:32 PM) comp.lang.ruby I have a program A (totally private) that talks to a program B (open source). I would like to introduce some way to ensure B only listens to the real A to avoid things like man-in-the-middle attacks. Any ... James
SQLite as a Log?1154 (2/12/2009 10:59:53 PM) comp.lang.ruby In a current project we're discussing using SQLite for all application logging. This is a heavy multiprocessing environment, which was one of our reasons for considering it. We also love the idea of struc... James
GC and Threads442 (2/10/2009 10:51:20 PM) comp.lang.ruby I'm trying to prove two simple facts about how Ruby works: * Ruby can GC a Thread that has run to completion if you no longer have any references to it, even if the value() have never been collected * Ruby c... James
Super User Can't Change UID?1365 (1/27/2009 11:11:57 PM) comp.lang.ruby Why would the super user not be able to switch UID's? $ sudo ruby -r etc -e 'Process.uid = Etc.getpwnam("james").uid' Password: -e:1:in `uid=': Operation not permitted (Errno::EPERM) from -e:1 Ti... James
sigprocmask?070 (1/21/2009 9:25:28 PM) comp.lang.ruby Does Ruby provide access to the POSIX function sigprocmask()? I'm not sure how to safely handle signals when fork()ing without it. Suggestions are welcome. James Edward Gray II ... James
Threads After Fork347 (1/20/2009 3:55:30 PM) comp.lang.ruby Am I understanding this example right: #!/usr/bin/env ruby -wKU printer = Thread.new do 10.times do sleep 1 puts "Thread running in #{Process.pid}..." end end fork do p [Process.pid, print... James
Gateway In Danger045 (12/3/2008 4:01:00 PM) comp.lang.ruby List members, please take a moment to verify that you are not sending spam complaints to the server team that hosts the Ruby Talk mailing list. This includes automated complaints from spam monitoring sof... James
CSV Goes M17n139 (9/21/2008 5:06:42 PM) comp.lang.ruby I've just finished an extensive reworking of the standard CSV library =20= in Ruby 1.9 (formerly FasterCSV). CSV's parser and generator are now =20= m17n aware. This means they should work naturally with yo... James
1.9 inverse of String#ord273 (7/30/2009 5:19:28 PM) comp.lang.ruby Is there a simple inverse of String#ord in ruby 1.9? This is the best I can come up with: >> cp = "ł".ord => 322 >> [cp].pack("N").force_encoding("UTF-32BE").encode!("UTF-8") => "ł" Note that Integer#chr onl... b.candler(2627)
[OT] Good web design845 (8/3/2009 8:57:14 PM) comp.lang.ruby Sorry for the OT, but I figure there must be other people on this list who have been in the same boat as me. I'm looking for resources on good web *design* - by which I mean designing a website which is visual... b.candler(2627)
Kernel's module methods?1040 (8/6/2009 11:02:06 AM) comp.lang.ruby According to pickaxe2, p516: Module Kernel ------------ The Kernel module is included by class Object, so its [instance] methods are available in every Ruby object. The Kernel instance methods are documented ... bbxx789_05ss(1895)
[ANN] 1.9 String and M17N documentation1945 (8/6/2009 11:47:44 AM) comp.lang.ruby I have put together a document which tries to outline the M17N properties of ruby 1.9 in a logical sequence and demonstrate the important behaviours. The file is called string19.rb and you can find it at http:... b.candler(2627)
R1.9 mixed encoding in file1169 (8/7/2009 1:49:37 PM) comp.lang.ruby Hello I wonder if it is possible to enforce encoding of string in ruby 1.9. Let say I have following example: C:\enc>echo p 'test'.encoding > encoding.rb C:\enc>ruby encoding.rb # Thats fine. But what if I l... v.ondruch(7)
ActiveRecord to_json encoding444 (8/10/2009 6:36:21 PM) comp.lang.ruby Question: Hi, our company is using Ruby 1.8.6 with Rails 2.2.2. Does anyone know we can explicitly specify what encoding to use when calling Description: We have some multibyte characters in our database. Fo... calvin98115(5)
Readline not working with Ruby2370 (8/11/2009 3:00:33 PM) comp.lang.ruby Hey I compiled ruby with readline support. However when i go to IRB i just get jibbrish when i press the up arrow on my keyboard. Any suggestions? ... stewart.matheson(9)
Configuring Textmate for Ruby 1.9.1877 (8/12/2009 2:41:14 PM) comp.lang.ruby I had just installed Ruby 1.9.1 using MacPorts, but TextMate still interprets Ruby 1.8.6. I had gone into my Shell Variables under preferences and set the following: Variable: TM_RUBY Path: ./opt/local/bin/ru... mike.agres(9)
while !file.eof?949 (8/17/2009 2:03:08 AM) comp.lang.ruby How can I use a while loop in such as way where I want to process the file until EOF? thank you! Here is my code: mailog="/tmp/maillog" last_record="Jul 15 22:09:10" File.open(mailog, 'r+').each { |line| ... derekbellnersmith(51)
CSV import to hash to compare with database1079 (8/17/2009 3:54:03 PM) comp.lang.ruby Hello All, Is it practical to import data from a csv file, via FasteCSV to a temporary data structure, like a hash, for editing purposes? I'm looking to read a file, send the data to a temp location, then compa... john.mcleod1(15)