Since 5/8/2012 7:36:43 AM, martin9249 has written 4 articles and participated in 158 conversations. martin9249 signature: martin9249
martin9249's articles:
Items(4) /1
YAML and NArray129 (8/18/2007 2:58:08 PM) comp.lang.ruby In the past week, I've been exploring a little problem that by Wednesday I was ready to sit down and code. Now, the details of the problem aren't important, but for this problem I was going to need to have obj... Daniel
[SOLUTION] [QUIZ] Checking Credit Cards (#122) #2419 (4/29/2007 11:22:49 PM) comp.lang.ruby I was trying to go for "most compact and obfuscated version of the Luhn algorithm", but unfortunately the complications of the algorithm meant that I had to debug my implementation, which left it slightly more ... Daniel
A little diversion (probability fun in Ruby)123 (8/4/2006 3:27:04 PM) comp.lang.ruby So I can't sleep this morning, and I've got a big interview with $PRESTIGOUS_COMPANY that I need to get my mind off of, so I thought I'd share a little thing I did in Ruby a few months ago with the list. If yo... Daniel
Better profiling for ruby?824 (7/28/2006 1:44:28 PM) comp.lang.ruby So the recent performance threads have all repeated the wisdom "profile first" in various forms, and various ways. I have a problem with this. I can't read the output of the ruby profiler and get meaningful i... Daniel
Beautiful Code : Pity he didn't ask here...4921 (7/10/2007 12:15:24 AM) comp.lang.ruby Just got the O'Reilly announcement of the book "Beautiful Code"... here is the sample chapter by Tim Bray on Ruby! http://www.oreilly.com/catalog/9780596510046/chapter/ch04.pdf Pity he didn't run his examp... john.carter(343)
Loop over an array that changes the elements723 (7/13/2007 11:39:46 AM) comp.lang.ruby Hi, I have a rather simple question. I have an array and want to change the elements of the array in a loop. For example in Java, you would write: int[] numbers = {1, 2, 3} for(int i = 0; i < numbers.length;... djbearhand(5)
convert ASCII to byte an vice versa338 (7/13/2007 1:05:32 PM) comp.lang.ruby Hi all, I have a small script as follows. I wonder how I can change 65 66 67 back to ABC. Thanks, Li C:\Documents and Settings\chen73>irb irb(main):001:0> str="ABC" => "ABC" irb(main):002:0> str.each_byte{... chen_li3(387)
is it bug?321 (7/18/2007 2:02:19 PM) comp.lang.ruby Hi, all [root@home1 ~]# ruby -v ruby 1.9.0 (2007-06-30 patchlevel 0) [i686-linux] [root@home1 ~]# irb irb(main):001:0> class C irb(main):002:1> def C.hello irb(main):003:2> p "helloc" irb(main):004:2> end irb(m... bkeh12(6)
[QUIZ] Cellular Automata (#134)2525 (8/10/2007 12:53:52 PM) comp.lang.ruby The three rules of Ruby Quiz: 1. Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. 2. Support Ruby Quiz by submitting ideas as of... james8284(4404)
YAML and NArray129 (8/18/2007 2:58:08 PM) comp.lang.ruby In the past week, I've been exploring a little problem that by Wednesday I was ready to sit down and code. Now, the details of the problem aren't important, but for this problem I was going to need to have obj... martin9249(162)
Execute ruby commands in a program625 (8/18/2007 4:16:40 PM) comp.lang.ruby Ok so lets say i have a program, And within the program i call a command such as Ruby: Is there anyway to be able to run live ruby code and print the answers (i dont really know how to put it) so like.. Ruby... h4z3(15)
Is this the perfect regex for validating first & last names?1278 (8/18/2007 4:39:43 PM) comp.lang.ruby Perhaps a fairly bold statement, coming from a novice regex'er. :) I'm creating a form (php) and have conjoured up this regex. My objective with this regex is to be sure I get a valid person's name. With th... promos(102)
[QUIZ] Postfix to Infix (#148)4547 (11/30/2007 1:28:17 PM) comp.lang.ruby The three rules of Ruby Quiz: 1. Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. 2. Support Ruby Quiz by submitting ideas as of... james8284(4404)