Since 4/27/2012 7:39:55 AM, mike103 has written 4 articles and participated in 39 conversations. mike103 signature: mike103
mike103's articles:
Items(4) /1
[ANN] Toronto Ruby User Group meeting 2004 12 05020 (12/1/2004 4:03:10 AM) comp.lang.ruby See http://trug.stok.co.uk/wiki/ for more information. Sunday December 05, 2004 - 1pm - Sushi Rock Just north of Eglinton Station. * Followup on topics from last meeting. * Group projects * Disc... Mike
Toronto Ruby User Group meeting 7 Nov 2004025 (11/4/2004 11:41:47 AM) comp.lang.ruby Sorry for the late notice. The Toronto Ruby User Group is having another meeting. It is at 13:00 on Sunday 7 November at Shoeless Joe's on Eglinton West. See http://www.rubygarden.org/ruby?TorontoRug07Nov200... Mike
Ruby for Perl programmers presentation material123 (9/29/2003 6:14:42 PM) comp.lang.ruby I have volunteered to give a "Ruby for Perl programmers" presentation to the Toronto Perl Mongers (see http://to.pm.org) in November (after returning from the Ruby Conference.) I knwo that there are a number o... mike
String#split(' ') and whitespace (perl user's surprise)379 (6/26/2003 12:02:32 PM) comp.lang.ruby I have to confess that I use a lot of Perl, and some of its idioms are deeply embedded in my mind. Im the course of parsing some data in Ruby I used a fragment of code like rules.each_line do |rule| ... mike
an idea regarding map830 (5/24/2004 2:32:45 AM) comp.lang.ruby just some syntactic nitpicking: If I want to perform a map operation using a function... def somefunc(x) # ... perform some operation on x ... # ... and return a value ... end I have to do this: l = [1... segphault(82)
nasty regexp problem735 (5/13/2004 12:47:21 AM) comp.lang.ruby Hi all, I discovered a strange bug in Lafcadio which I'm trying to work out, but the regexp is getting really nasty. Basically, to commit text values to the database I need to double any apostrophe, except tho... sera(331)
Working in hex147 (5/6/2004 3:31:43 PM) comp.lang.ruby ------_=_NextPart_001_01C4337F.3888FC42 Content-Type: text/plain Hello, rubyists. I need to do the following: val = 0xe8b8 + (4 * 110).hex = 0xe8b8 + 1b8 = 0xea70 Is there an easy way in Ruby... probertm261(2)
String#unpack and null-terminated strings1450 (4/24/2004 10:12:25 PM) comp.lang.ruby Hi, How can I unpack two or more consecutive C-strings with the String#unpack method? Like this: "abc\000def\000".unpack("??") # => ["abc", "def"] Currently, this seems not to be possible. Any chance to ge... mneumann(589)
pushing hash326 (4/24/2004 1:49:58 AM) comp.lang.ruby Hi Ruby friends: I can push thru an array fine: irb(main):059:0> a => [["a", 2], ["b", 1], ["c", 3]] irb(main):060:0> a [["a", 2], ["b", 1], ["c", 3], ["d", 4]] cannot do it using hash. irb(main):061:0> ... botp(987)
faster integer arithmetics & arbitrary precision floating number2035 (1/12/2004 3:09:53 PM) comp.lang.ruby 1. Is there a way in Ruby to speed up 32bit integer arithmetics (only involving numbers & sums up to 2^32-1)? I want to use Ruby for summarizing network traffic logs, but it's pathetically slow compared to P... David
.unpack("B*")335 (12/13/2003 7:10:40 PM) comp.lang.ruby Hi, I have a problem with "unpack". When I try to unpack a string, I can easily adress the individual chars via the array. But when I try to extract the binary values of a string, this does not work anymore.... bxs(15)
YAML treatment of '#' character in middle of a string535 (12/12/2003 12:11:18 AM) comp.lang.ruby Hi -- I'm wondering whether the "#" and everything after it are really supposed to be taken out of the string in this example: irb(main):015:0> YAML.load("---\nstring: one # two") => {"string"=>"one"} I ... dblack6674(3021)
Dumb str.sub question439 (11/26/2003 6:08:17 PM) comp.lang.ruby I feel really dumb asking this, but I just can't seem to figure it out. I am trying to parse some text for use in a mysql insert statement. That being the case, I need to escape out quote characters. If str... orion2480(19)