BuildTheRobots

Activity Graph

Page 1 of 1

2019-05-25

[16:15:42] BuildTheRobots: Ping timeout: 272 seconds
[16:17:50] BuildTheRobots: has joined #ruby

2019-05-24

[07:33:28] BuildTheRobots: Ping timeout: 252 seconds
[07:42:08] BuildTheRobots: has joined #ruby
[07:42:53] BuildTheRobots: Max SendQ exceeded
[07:44:19] BuildTheRobots: has joined #ruby
[07:45:34] BuildTheRobots: has joined #ruby
[08:03:52] BuildTheRobots: Ping timeout: 252 seconds
[08:08:53] BuildTheRobots: has joined #ruby

2019-05-03

[02:10:15] BuildTheRobots: Ping timeout: 258 seconds
[02:12:29] BuildTheRobots: has joined #ruby

2019-04-22

[21:01:39] BuildTheRobots: Ping timeout: 252 seconds
[21:08:18] BuildTheRobots: has joined #ruby

2019-04-16

[06:33:40] BuildTheRobots: Ping timeout: 264 seconds
[06:43:41] BuildTheRobots: has joined #ruby
[06:45:44] BuildTheRobots: Max SendQ exceeded
[06:47:54] BuildTheRobots: has joined #ruby
[06:48:53] BuildTheRobots: Max SendQ exceeded
[06:52:42] BuildTheRobots: has joined #ruby
[08:04:52] BuildTheRobots: Ping timeout: 250 seconds
[08:06:06] BuildTheRobots: has joined #ruby
[15:09:33] BuildTheRobots: has joined #ruby

2019-04-13

2019-03-20

[18:31:10] BuildTheRobots: Ping timeout: 252 seconds
[18:33:32] BuildTheRobots: has joined #ruby

2018-08-22

[14:01:34] BuildTheRobots: has joined #ruby

2018-08-13

2018-07-20

[00:15:34] BuildTheRobots: has joined #ruby

2018-07-19

[05:29:11] BuildTheRobots: Ping timeout: 276 seconds
[05:31:29] BuildTheRobots: has joined #ruby
[05:32:28] BuildTheRobots: has joined #ruby
[05:32:28] BuildTheRobots: has joined #ruby

2018-07-18

[05:35:18] BuildTheRobots: has joined #ruby

2018-06-20

[03:50:30] BuildTheRobots: Ping timeout: 256 seconds
[05:31:29] BuildTheRobots: has joined #ruby
[05:58:33] BuildTheRobots: Ping timeout: 256 seconds
[06:21:59] BuildTheRobots: has joined #ruby
[06:22:02] BuildTheRobots: has joined #ruby
[06:22:46] BuildTheRobots: Max SendQ exceeded
[06:24:20] BuildTheRobots: has joined #ruby
[06:25:36] BuildTheRobots: Max SendQ exceeded
[06:26:23] BuildTheRobots: has joined #ruby

2018-05-29

[02:48:08] BuildTheRobots: has joined #ruby

2018-05-06

[16:07:25] BuildTheRobots: has joined #ruby

2018-04-25

[12:27:20] BuildTheRobots: has joined #ruby
[15:03:17] BuildTheRobots: has joined #ruby

2018-04-10

[13:53:06] BuildTheRobots: has joined #ruby

2018-03-12

[06:44:10] BuildTheRobots: has joined #ruby

2018-03-02

[04:50:51] BuildTheRobots: has joined #ruby

2018-02-09

[13:00:26] BuildTheRobots: has joined #ruby

2018-02-04

2018-01-28

[15:25:00] BuildTheRobots: has joined #ruby

2018-01-27

[03:34:52] BuildTheRobots: Quit: Connection closed for inactivity
[12:50:10] BuildTheRobots: has joined #ruby
[15:29:56] BuildTheRobots: Quit: Connection closed for inactivity
[16:50:41] BuildTheRobots: has joined #ruby
[19:10:27] BuildTheRobots: Quit: Connection closed for inactivity

2018-01-26

[05:38:50] BuildTheRobots: Quit: Connection closed for inactivity
[15:30:08] BuildTheRobots: has joined #ruby

2018-01-25

[09:11:50] BuildTheRobots: has joined #ruby

2018-01-24

[02:53:41] BuildTheRobots: Quit: Connection closed for inactivity

2018-01-18

[01:56:29] BuildTheRobots: has joined #ruby

2018-01-06

2017-12-27

[19:14:58] BuildTheRobots: Ping timeout: 272 seconds
[19:46:41] BuildTheRobots: has joined #ruby

2017-12-21

2017-12-09

[03:21:46] BuildTheRobots: has joined #ruby
[03:23:00] BuildTheRobots: good evening people. If i have an array including a negative number, how can I have a.max do the sensible thing (in this case return +7, not -10 as the largest number)
[03:23:22] BuildTheRobots: a=[1,7,-10]; puts a.max
[03:25:25] BuildTheRobots: oh, ok, a.values.max, ok, i'm an idiot :)
[04:19:18] BuildTheRobots: baweaver, i might have messed up my example, in fact i did, these are values in a hash, not an array
[04:20:09] BuildTheRobots: though i think hash.values.max did do the "correct" thing
[04:20:18] BuildTheRobots: or did what I expected, rather....
[04:20:43] BuildTheRobots: hashes give two arguments? for max_by? apologies, i've only been using ruby for a few days o.0
[04:21:23] BuildTheRobots: stupid demogods ;)
[04:22:16] BuildTheRobots: ah ace, thanks you.
[04:22:25] BuildTheRobots: for contect, i got about 5 steps into a codeweavers learning ruby course and then got distracted actually tring to use it... so I'm kinda blundering forward solving adventofcode problems without yet understanding objects o.0
[04:58:24] BuildTheRobots: i do bits of ops, so previously have been hacking scripts in perl, but i'm the first to point out i'm not a dev. A friend is using RoR so it seemed like a good excuse to learn ruby. so far i'm quite enjoying it
[04:59:22] BuildTheRobots: not sure if you've seen http://adventofcode.com/2017 or not. last year I found it substantially harder compared to this year armed with nothing but a third of a ruby tutorial ;)
[05:12:03] BuildTheRobots: hmm, is there a fuzzy equivalent of include? eg so it returns true: a=["foobar"]; a.include? 'foo'
[05:13:53] BuildTheRobots: baweaver: i have, but only with strings
[05:23:02] BuildTheRobots: ah, grp would probably be easier
[05:23:32] BuildTheRobots: i'm using a regex or trying to, but having issues using a variable _between_ the slashes, so as part of the match condition
[05:24:08] BuildTheRobots: is that actually possible? values.find {|e| /VARIABLE/ =~ e}
[05:26:17] BuildTheRobots: i have the same problems using grep, can't use a vaeriable as the match term
[05:28:01] BuildTheRobots: hmm, same problem. so how do I use dynamic data as the match term in a regx?
[05:28:48] BuildTheRobots: how does that work?
[05:31:30] BuildTheRobots: f = 'foo'; b = 'boo'; print success if %w(foobar).grep(/#{f}/)
[05:31:48] BuildTheRobots: >> f = 'foo'; b = 'boo'; print success if %w(foobar).grep(/#{f}/)
[05:32:02] BuildTheRobots: >> f = 'foo'; b = 'boo'; print "success" if %w(foobar).grep(/#{f}/)
[05:32:10] BuildTheRobots: >> f = 'foo'; b = 'boo'; print "success" if %w(foobar).grep(/#{b}/)
[05:32:28] BuildTheRobots: b should not print success, (the second attempt) the string boo does not apear
[05:33:18] BuildTheRobots: >> f = 'foo'; b = 'boo'; print "success" if %w(foobar).grep(/foo/)
[05:33:23] BuildTheRobots: >> f = 'foo'; b = 'boo'; print "success" if %w(foobar).grep(/boo/)
[05:34:14] BuildTheRobots: ok, so at the end of all that, i think i learn that i can't use a regex match in an if statement
[05:34:52] BuildTheRobots: so going back to the start, how can i do an `if (fuzzymatch variable against array == success) do something