Since 5/7/2012 10:53:53 PM, decoux has written 4 articles and participated in 1347 conversations. decoux signature: decoux
decoux's articles:
Items(4) /1
OpenBSD / Sparc426 (4/8/2004 1:21:18 PM) comp.lang.ruby With this configuration obsd% ./ruby -v ruby 1.9.0 (2004-04-07) [sparc-openbsd3.4] obsd% it's normal that ruby use _setjmp()/_longjmp() rather than setjmp()/longjmp() ? Guy Decoux ... ts
Re: Struggling with variable arguments to block029 (10/24/2003 4:26:25 PM) comp.lang.ruby >>>>> "d" == dblack writes: d> I confess to confusion about the new arg/param semantics. For example: d> irb(main):005:0> *a = 1,2 d> => [1, 2] d> irb(main):006:0> *a = [1,2] d> => [1, 2] svg% ./r... ts
Re: case where regex range should raise036 (10/9/2003 11:14:40 AM) comp.lang.ruby >>>>> "d" == dblack writes: d> So apparently if a { is encountered, the algorithm is: d> 1. is there a previous pattern to apply it to? d> a. no: error d> b. yes: is it a plausible {} range? d> ... ts
Re: Enumerable#inject is surprising me... #2052 (10/9/2003 8:55:20 AM) comp.lang.ruby >>>>> "d" == dblack writes: d> $ ./ruby -e 'p ["a"].inject("start") {|x,y| break "b"}' d> "start" d> I'm still not understanding why these should be different, or how d> "start" gets into the first one ... ts
Big empty file creation650 (6/28/2008 8:57:10 AM) comp.lang.ruby I need to creat an empty file, over 10GB size. Which way is fastest in file creation? ------ file<<"0"*file_size_in_bytes ------- consme too much memory ------- for i in 1...x file<"0"file_size/x end ------... gelios(13)
variable corruption when using ioctl?225 (6/20/2008 2:18:05 PM) comp.lang.ruby I'm attempting to read the address assigned to an interface. After calling ioctl(SIOCGIFADDR) - which is 0x8915 on my system - I find that the destination buffer is corrupted and contains random garbage. Here I... asussex(2)
Object#select and method_missing1322 (5/17/2008 1:21:31 AM) comp.lang.ruby class SelectTest def method_missing(method, *params, &block) return "Expected Result" if method == :select super end def test_one self.select() end def test_two select() end end pu... bob3726(4)
Erasing text from a file622 (5/11/2008 10:56:48 AM) comp.lang.ruby To me it seems it should be a rather obvious thing, but no matter where I look, I can't find how to erase text from a file or clear a file. The only things I have found are moving the the cursor to the start an... lucaslevin(14)
to check for numericality1131 (5/8/2008 7:01:29 AM) comp.lang.ruby Hi I have @val=SomeValue #for example 00,02,aa How can I check @val contains only numeriacal(including zero) values..I have to avoid aa above (for example ) Sijo -- Posted via http://www.ruby-... sijo(73)
Ruby 1.9, OS X 10.5.2 Test Fail! After Build145 (5/6/2008 4:15:20 AM) comp.lang.ruby I bet someone knows how to fix this one! Help Please Thanks -L Source form ruby-1.9.0-1.tar.gz test_thread.rb ....................... #230 test_knownbug.rb:19:in `': class C define_method(:foo) {... lmcdougall(3)
String copy-on-write question437 (5/5/2008 3:37:02 PM) comp.lang.ruby Hello group, Ruby implements copy-on-write for strings, so you can do stuff like this very cheaply: str = 0.chr * (2**24) # 16MiB allocated str[100..-1] # this costs only a small amount of memory How... larsch(43)
something straange with cgi445 (5/2/2008 3:51:52 PM) comp.lang.ruby i have a cgi reading a post cgi['search'] the value is the name of file which might exists under "/path/to" because i'm a newbie with cgi, i want to print only if the file exist or not : file="/Users/yt/man/... unbewusst.sein859(184)
How to create "def method(item)= (value)" ?2216 (4/30/2008 12:22:30 PM) comp.lang.ruby SGksIGlzIGl0IG5vdCBwb3NzaWJsZSB0byBjcmVhdGUgYSBtZXRob2QgdG8gdXNlIGluIHRoaXMg d2F5PwoKICAgbXlfb2JqZWN0LnBhcmFtKCJ0YWciKSA9ICJuZXdfdmFsdWUiCgpIb3cgdG8gZGVm aW5lIHRoYXQgbWV0aG9kPyBJJ3ZlIHRyeWVkIHNvbWV0aGluZyBhczoK... ibc(607)
How to debug Ruby Programs1027 (4/29/2008 9:05:08 AM) comp.lang.ruby Hi, I'm a newbee to Ruby, can any one you please suggest me ways to debug a Ruby Program. Regards, Kittu. -- Posted via http://www.ruby-forum.com/. ... kittu_mohan21(3)