octomancer

Activity Graph

Page 1 of 1

2019-03-25

[12:07:35] octomancer: has joined #ruby
[12:14:50] octomancer: has joined #ruby

2018-07-10

[02:19:23] octomancer: Ping timeout: 240 seconds

2018-05-29

[02:46:58] octomancer: *.net *.split
[02:48:00] octomancer: has joined #ruby
[02:50:11] octomancer: *.net *.split
[02:51:08] octomancer: has joined #ruby

2018-05-20

[18:44:00] octomancer: *.net *.split
[18:44:16] octomancer: has joined #ruby

2018-05-10

[22:45:53] octomancer: Ping timeout: 248 seconds
[22:51:52] octomancer: has joined #ruby

2018-04-30

[07:24:44] octomancer: has joined #ruby

2018-04-29

[22:32:33] octomancer: Quit: WeeChat 0.3.8

2018-04-25

[12:25:47] octomancer: *.net *.split
[12:27:23] octomancer: has joined #ruby
[15:01:18] octomancer: *.net *.split
[15:03:14] octomancer: has joined #ruby

2018-04-04

[10:09:25] octomancer: Ping timeout: 246 seconds
[10:48:05] octomancer: has joined #ruby

2018-03-26

[08:19:48] octomancer: has joined #ruby

2018-03-24

[13:20:45] octomancer: Ping timeout: 264 seconds

2018-03-15

[11:19:40] octomancer: Ping timeout: 246 seconds
[11:27:56] octomancer: has joined #ruby

2018-03-13

[21:35:10] octomancer: Ping timeout: 264 seconds
[21:41:53] octomancer: has joined #ruby

2018-03-10

[22:44:28] octomancer: Ping timeout: 240 seconds
[22:44:46] octomancer: has joined #ruby

2017-12-12

2017-12-01

[02:28:49] octomancer: has joined #ruby

2017-11-17

[10:05:04] octomancer: has joined #ruby

2017-11-16

[16:48:51] octomancer: Ping timeout: 268 seconds

2017-11-09

[02:51:17] octomancer: Ping timeout: 248 seconds
[03:04:44] octomancer: has joined #ruby
[16:07:45] octomancer: Ruby is prettier to look at. Actual objects, rather than a lexical hack, so you chain methods. Did I mention that it's prettier? ;-)
[16:11:06] octomancer: I use chef at work so ...

2017-10-16

[13:48:15] octomancer: Ping timeout: 246 seconds
[14:17:01] octomancer: has joined #ruby

2017-09-25

[09:30:26] octomancer: Quit: WeeChat 0.3.8
[09:36:06] octomancer: has joined #ruby

2017-09-22

[08:06:01] octomancer: Ping timeout: 240 seconds
[08:19:44] octomancer: has joined #ruby

2017-07-26

[12:51:34] octomancer: the perl guys are way better at passive-aggressive entitlement than you lot ;-)

2017-07-25

[13:33:44] octomancer: hi, i can't understand something, i'm hoping someone can help ... the following ruby works fine:
[13:33:47] octomancer: out << ("%s %s - %s %s %s") % (l.slice(:one, :two, :three, :four, :five).values)
[13:33:57] octomancer: but this gives an error:
[13:34:06] octomancer: puts ("loops %d %d") % (pass_count,loop_count)
[13:34:09] octomancer: i have to use:
[13:34:20] octomancer: puts "loops %d %d" % [pass_count,loop_count]
[13:34:26] octomancer: i don't understand why
[13:34:53] octomancer: the error is:
[13:35:29] octomancer: code.rb:<line>: syntax error, unexpected ')', expecting '='
[13:35:49] octomancer: %d") % (pass_count,loop_count)
[13:37:48] octomancer: btw, this doesn't work either:
[13:37:59] octomancer: out << ("loops %d %d") % (pass_count,loop_count)
[14:18:55] octomancer: ACTION rewrites % to sprintf calls
[14:18:58] octomancer: herwin: thanks again
[14:26:57] octomancer: herwin: now i remember why i wrote it with % ... i couldn't get sprintf to work! please tell me what's wrong with this:
[14:26:59] octomancer: out << sprintf("%s %s - %s %s %s", l.slice(:neigh, :asn, :asname, :time, :pfx).values)
[14:27:13] octomancer: i get "too few arguments (ArgumentError)"
[14:32:37] octomancer: dminuoso: idgi ... a) what does the * do and b) how does that apply to my line of code ;-)
[14:34:00] octomancer: i've written a lot of perl, where there is a subtle difference between a list and an array, am i falling foul of something similar in ruby?
[14:37:58] octomancer: Papierkorb: that sounds exactly like the Perlish difference between a list and an array which you denied i was falling foul of ;-)
[14:40:22] octomancer: well, stap me vitals, this worked: out << sprintf("%s %s - %s %s %s", *l.slice(:neigh, :asn, :asname, :time, :pfx).values)
[14:40:24] octomancer: thanks all :-)
[14:41:52] octomancer: i'm of the opinion that if you are coding for fun then the concept of cargo-culting does not even exist. not saying people should get paid for it though
[14:46:01] octomancer: i tend to agree. work should be as much fun as possible, but sometimes it's just work

2017-07-18

[02:13:58] octomancer: *.net *.split
[02:14:48] octomancer: has joined #ruby

2017-06-29

[10:46:43] octomancer: hi, i have an array, a1, and i want to append the values from another array, b1. the best i can come up with after looking at the docs for the Array Class is this: a1.push(b1).flatten!
[10:46:54] octomancer: but that seems inelegant
[10:47:12] octomancer: i think there is a more ruby way to do it, can anyone elighten me please?
[10:47:46] octomancer: how did i miss concat?! dur

2017-06-20

[00:17:31] octomancer: *.net *.split
[00:23:08] octomancer: has joined #ruby

2017-06-19

[13:16:15] octomancer: i'd say that the server is pushing it's luck to abuse the reason-phrase like that
[13:16:24] octomancer: much better to return it in an X- header

2017-06-07

[21:29:25] octomancer: Ping timeout: 240 seconds
[21:34:06] octomancer: has joined #ruby

2017-05-28

[10:15:15] octomancer: has joined #ruby