graft

Activity Graph

Page 1 of 6 | Next »

2019-06-01

[01:01:27] graft: has joined #ruby
[01:01:27] graft: Changing host
[01:01:27] graft: has joined #ruby
[01:25:03] graft: Ping timeout: 252 seconds

2019-05-31

[00:22:21] graft: has joined #ruby
[00:44:46] graft: Ping timeout: 268 seconds
[01:28:56] graft: has joined #ruby
[01:28:56] graft: Changing host
[01:28:56] graft: has joined #ruby
[01:39:44] graft: Ping timeout: 248 seconds
[15:55:27] graft: has joined #ruby
[16:55:05] graft: Ping timeout: 258 seconds
[19:47:57] graft: has joined #ruby
[19:47:57] graft: Changing host
[19:47:57] graft: has joined #ruby
[22:20:22] graft: Ping timeout: 246 seconds

2019-05-30

[00:07:04] graft: Ping timeout: 272 seconds
[00:29:50] graft: has joined #ruby
[00:29:50] graft: Changing host
[00:29:50] graft: has joined #ruby
[00:37:25] graft: Ping timeout: 246 seconds
[01:41:41] graft: has joined #ruby
[01:41:41] graft: Changing host
[01:41:41] graft: has joined #ruby
[01:49:20] graft: Ping timeout: 248 seconds
[18:51:15] graft: has joined #ruby
[18:51:15] graft: Changing host
[18:51:15] graft: has joined #ruby
[21:10:33] graft: Mrgoose: you can require 'socket' and use TCPSocket#open
[21:59:38] graft: Ping timeout: 245 seconds
[22:41:31] graft: has joined #ruby
[22:41:31] graft: Changing host
[22:41:31] graft: has joined #ruby
[23:05:36] graft: Ping timeout: 248 seconds

2019-05-29

[03:14:55] graft: has joined #ruby
[03:26:34] graft: Ping timeout: 246 seconds
[19:31:12] graft: has joined #ruby
[19:31:12] graft: Changing host
[19:31:12] graft: has joined #ruby
[20:42:03] graft: Ping timeout: 248 seconds
[22:20:22] graft: has joined #ruby
[22:20:22] graft: Changing host
[22:20:22] graft: has joined #ruby
[22:35:14] graft: Ping timeout: 272 seconds
[23:26:31] graft: has joined #ruby
[23:26:40] graft: has joined #ruby
[23:26:40] graft: Changing host

2019-05-28

[02:41:49] graft: has joined #ruby
[02:56:59] graft: Ping timeout: 268 seconds
[03:27:24] graft: has joined #ruby
[03:27:25] graft: has joined #ruby
[03:27:25] graft: Changing host
[04:03:12] graft: Ping timeout: 248 seconds
[15:42:11] graft: has joined #ruby
[16:47:33] graft: Ping timeout: 245 seconds
[22:45:25] graft: has joined #ruby
[22:45:25] graft: Changing host
[22:45:25] graft: has joined #ruby
[23:13:03] graft: Ping timeout: 248 seconds

2019-05-27

[15:59:39] graft: has joined #ruby
[15:59:39] graft: Changing host
[15:59:39] graft: has joined #ruby
[16:06:24] graft: Ping timeout: 248 seconds
[17:21:24] graft: has joined #ruby
[17:21:25] graft: has joined #ruby
[17:21:25] graft: Changing host
[18:24:00] graft: Ping timeout: 248 seconds

2019-05-26

[02:14:06] graft: has joined #ruby
[02:14:06] graft: Changing host
[02:14:06] graft: has joined #ruby
[02:58:10] graft: Ping timeout: 246 seconds
[04:43:03] graft: has joined #ruby
[05:13:26] graft: Ping timeout: 268 seconds
[19:54:26] graft: has joined #ruby
[19:54:26] graft: Changing host
[19:54:26] graft: has joined #ruby
[20:41:54] graft: Ping timeout: 272 seconds

2019-05-25

[00:11:46] graft: Ping timeout: 272 seconds
[01:05:30] graft: has joined #ruby
[01:05:30] graft: Changing host
[01:05:30] graft: has joined #ruby
[02:14:17] graft: Ping timeout: 258 seconds
[02:37:36] graft: has joined #ruby
[02:37:36] graft: Changing host
[02:37:36] graft: has joined #ruby
[03:51:16] graft: Ping timeout: 257 seconds
[16:09:45] graft: has joined #ruby
[16:09:45] graft: Changing host
[16:09:45] graft: has joined #ruby
[16:31:18] graft: Ping timeout: 245 seconds
[17:02:59] graft: has joined #ruby
[17:02:59] graft: Changing host
[17:02:59] graft: has joined #ruby
[17:13:58] graft: Ping timeout: 272 seconds
[19:16:25] graft: has joined #ruby
[21:59:37] graft: Ping timeout: 246 seconds

2019-05-24

[15:58:49] graft: has joined #ruby
[15:58:49] graft: Changing host
[15:58:49] graft: has joined #ruby
[15:58:59] graft: what happened to Time#iso8601?
[15:59:10] graft: it's gone in 2.6.3
[16:01:50] graft: strange, I can do Time.now without require 'time'?
[16:04:48] graft: interesting... the docs are singularly unclear here
[16:05:30] graft: where are docs for require 'time' as opposed to the basic Time?
[16:07:05] graft: i'm looking at ruby-doc.org
[16:07:26] graft: there's no documentation for #iso8601 here: https://ruby-doc.org/core-2.6.3/Time.html, although it is referenced in #round as you say
[16:09:35] graft: those docs appear to be incorrect also, ::iso8601 is not #iso8601
[16:11:08] graft: no, never mind i figured it out
[16:13:08] graft: aha there is an 'additional notes' section noting the distinction on ruby-doc.org
[16:18:02] graft: Ping timeout: 272 seconds
[16:55:38] graft: has joined #ruby
[16:55:38] graft: Changing host
[16:55:38] graft: has joined #ruby
[19:11:39] graft: Ping timeout: 268 seconds
[19:24:56] graft: has joined #ruby
[19:24:57] graft: has joined #ruby
[19:24:57] graft: Changing host
[19:50:53] graft: Ping timeout: 258 seconds
[19:59:49] graft: has joined #ruby
[19:59:49] graft: Changing host
[19:59:49] graft: has joined #ruby

2019-05-21

[03:47:03] graft: has joined #ruby
[03:47:03] graft: Changing host
[03:47:03] graft: has joined #ruby
[04:06:57] graft: Ping timeout: 258 seconds
[15:43:36] graft: has joined #ruby
[15:43:36] graft: Changing host
[15:43:36] graft: has joined #ruby
[15:54:16] graft: Ping timeout: 246 seconds
[20:27:37] graft: has joined #ruby
[20:27:37] graft: Changing host
[20:27:37] graft: has joined #ruby
[20:33:55] graft: Ping timeout: 246 seconds
[21:05:46] graft: has joined #ruby
[21:05:47] graft: has joined #ruby
[21:05:47] graft: Changing host
[21:08:56] graft: Client Quit

2019-05-20

[20:53:40] graft: has joined #ruby
[20:53:40] graft: Changing host
[20:53:40] graft: has joined #ruby
[20:53:56] graft: anyone know how to render an svg and display it in an X11 window using ruby?
[21:07:55] graft: Ping timeout: 268 seconds

2019-04-14

[03:33:07] graft: Quit: leaving

2019-04-13

[16:49:36] graft: *.net *.split
[19:45:39] graft: >> x = { a: :b }; x&.[](:a)
[19:46:17] graft: ugly as hell though

2019-04-11

[23:21:43] graft: *.net *.split
[23:27:59] graft: has joined #ruby

2019-04-04

[20:42:29] graft: Ping timeout: 244 seconds
[20:49:58] graft: has joined #ruby

2019-03-29

[08:25:07] graft: Ping timeout: 268 seconds
[08:46:45] graft: has joined #ruby

2019-03-26

[18:20:28] graft: wc -l from ruby will almost definitely be faster than anything involving ruby reading and scanning strings
[18:20:54] graft: in fact i would place money on it without doing any research

2019-03-21

[20:44:06] graft: Ping timeout: 246 seconds
[20:51:17] graft: has joined #ruby

2019-03-19

[16:53:00] graft: has joined #ruby
[16:57:56] graft: anyone have any experience with rack.hijack?
[16:58:31] graft: i have a very, very strange issue that looks like it might have to do with thread re-use or something that i just can't understand
[17:00:07] graft: like rack is ending up in a method it just should not arrive at; as far as I can tell from logging it does what it ought to do, then suddenly arrives at this method (complete with caller_locations history) with no idea how it got there
[17:00:39] graft: i feel like i'm taking crazy pills

2019-01-03

[17:36:03] graft: Quit: leaving

2018-12-12

[17:41:42] graft: has joined #ruby
[17:43:37] graft: hey all, i often have trouble with the case statement when I'm trying to match a class, e.g., x = Float; case x; when Float;...;end
[17:44:03] graft: the behavior here is that the when Float does not match, because x is not a Float, it is a Class
[17:44:24] graft: is there any way to match this with case/when, or am i stuck with if/elsif?
[17:46:14] graft: &>> x = Float; case x; when Float then 'yay'; else 'no cigar'; end
[17:46:54] graft: sure, i understand what it's doing, i'm just wondering if there is a way around this behavior
[17:47:13] graft: i.e., some way to match Float == Float using when
[17:47:39] graft: i suspect not
[17:48:01] graft: that would surely have no negative repercussions

2018-08-31

[20:12:23] graft: has joined #ruby
[20:12:51] graft: hey all, my sysadmin wants to know if there are built-in tests to validate a ruby installation after building from source
[20:13:00] graft: i'm not familiar with any such, does something like this exist?
[20:14:05] graft: rails is not ruby
[20:16:13] graft: apeiros: make test, makes sense
[20:16:26] graft: now i just need to figure out how ruby-build does such a thing
[20:16:30] graft: might do it automatically
[20:28:48] graft: Ping timeout: 245 seconds

2018-08-02

[16:18:59] graft: Ping timeout: 260 seconds

2018-08-01

[00:04:33] graft: has joined #ruby
[00:05:02] graft: okay so everyone knows ary.inject(Hash.new(0)) {|count,i| count[i] +=1; count}
[00:05:09] graft: is there a shorter way to do this in 2.5?

2018-06-01

[17:52:44] graft: Quit: leaving

2018-05-29

[02:47:07] graft: *.net *.split
[02:48:03] graft: has joined #ruby

2018-05-17

[17:01:10] graft: has joined #ruby
[17:17:27] graft: Ping timeout: 240 seconds
[17:24:57] graft: has joined #ruby

2018-05-16

[20:27:03] graft: Ping timeout: 255 seconds

2018-05-15

[18:34:12] graft: has joined #ruby
[18:34:12] graft: Changing host
[18:34:12] graft: has joined #ruby
[18:46:35] graft: Ping timeout: 240 seconds
[20:01:32] graft: has joined #ruby
[20:01:33] graft: has joined #ruby
[20:01:33] graft: Changing host
[20:39:57] graft: Ping timeout: 264 seconds
[20:47:31] graft: has joined #ruby

2018-05-14

[17:39:18] graft: Ping timeout: 268 seconds

2018-05-11

[02:43:59] graft: has joined #ruby

2018-05-08

[21:53:54] graft: Ping timeout: 260 seconds

2018-04-26

[16:16:21] graft: has joined #ruby
[17:01:05] graft: Ping timeout: 240 seconds
[17:03:18] graft: has joined #ruby
[17:03:18] graft: Changing host
[17:03:18] graft: has joined #ruby
[22:22:57] graft: Ping timeout: 240 seconds
[22:24:45] graft: has joined #ruby
[22:24:56] graft: has joined #ruby
[22:24:56] graft: Changing host

2018-04-24

[17:41:19] graft: Ping timeout: 260 seconds

2018-04-23

[22:44:21] graft: >> (0.0/0.0) == Float::NAN
[22:44:27] graft: >> (0.0/0.0).nan?
[22:44:48] graft: stupid nan
[22:47:04] graft: >> 1.nan?
[22:50:40] graft: yeah, just makes it harder to test if something is actually NaN
[22:50:49] graft: because I can't just do == Float::NAN
[22:51:03] graft: and i can't assume #nan? is defined
[22:51:30] graft: so i have to do something like x.respond_to?(:nan?) && x.nan?
[22:52:05] graft: hmm, amusingly:
[22:52:14] graft: >> [ Float::NAN ] == [ Float::NAN ]
[22:52:30] graft: err, still on ruby 2.2.2
[22:53:37] graft: i guess this means i can do [x] == [x]
[22:54:45] graft: >> (0.0/0.0).to_s == "NaN"
[22:55:24] graft: yeah .to_s might be expensive
[22:55:51] graft: i will migrate soon anyway i think

2018-04-20

[22:03:27] graft: Ping timeout: 276 seconds
[22:35:49] graft: has joined #ruby
[22:35:49] graft: Changing host
[22:35:49] graft: has joined #ruby

2018-04-16

[20:18:28] graft: Ping timeout: 240 seconds
[20:20:18] graft: has joined #ruby
[20:20:18] graft: Changing host
[20:20:18] graft: has joined #ruby

2018-04-09

[22:43:42] graft: has joined #ruby

2018-03-27

[16:32:26] graft: has joined #ruby
[17:10:05] graft: Ping timeout: 240 seconds
[18:57:19] graft: has joined #ruby
[18:58:27] graft: phaul: not sure if someone answered this, but it's not O(n), it's more like O(1)

2018-03-21

[00:41:43] graft: Ping timeout: 246 seconds
[00:42:32] graft: has joined #ruby
[00:42:32] graft: Changing host
[00:42:32] graft: has joined #ruby
[16:04:57] graft: Quit: Lost terminal

2018-03-20

[21:22:24] graft: Ping timeout: 260 seconds
[22:37:19] graft: has joined #ruby