nchambers

Activity Graph

« Prev | Page 2 of 5 | Next »

2018-12-03

[17:01:23] nchambers: Remote host closed the connection
[21:30:53] nchambers: has joined #ruby-offtopic
[21:30:53] nchambers: has joined #ruby
[22:03:15] nchambers: peirama: the tld?
[22:04:12] nchambers: do you mean data?
[22:06:12] nchambers: ah, wrong on 2 counts

2018-12-01

[00:46:55] nchambers: has joined #ruby
[00:46:56] nchambers: has joined #ruby-offtopic
[12:43:08] nchambers: Ping timeout: 250 seconds
[13:11:29] nchambers: has joined #ruby
[13:12:01] nchambers: has joined #ruby-offtopic
[13:18:40] nchambers: Ping timeout: 250 seconds
[13:19:59] nchambers: has joined #ruby
[13:20:31] nchambers: has joined #ruby-offtopic
[13:28:09] nchambers: Ping timeout: 246 seconds
[13:30:45] nchambers: has joined #ruby
[13:31:17] nchambers: has joined #ruby-offtopic
[13:44:38] nchambers: Ping timeout: 245 seconds
[13:59:09] nchambers: has joined #ruby
[13:59:41] nchambers: has joined #ruby-offtopic
[14:05:54] nchambers: Ping timeout: 250 seconds
[14:37:52] nchambers: has joined #ruby
[14:38:24] nchambers: has joined #ruby-offtopic
[14:50:59] nchambers: Ping timeout: 250 seconds
[14:52:25] nchambers: has joined #ruby
[14:52:57] nchambers: has joined #ruby-offtopic
[15:11:46] nchambers: Ping timeout: 250 seconds
[17:07:59] nchambers: has joined #ruby
[17:08:31] nchambers: has joined #ruby-offtopic
[17:24:22] nchambers: Ping timeout: 250 seconds
[17:25:58] nchambers: has joined #ruby
[17:26:30] nchambers: has joined #ruby-offtopic
[17:41:56] nchambers: Ping timeout: 268 seconds
[18:36:48] nchambers: has joined #ruby
[18:37:20] nchambers: has joined #ruby-offtopic
[18:41:55] nchambers: Quit: he was a sk8r boi, she said see you later boi
[20:25:15] nchambers: has joined #ruby
[20:25:16] nchambers: has joined #ruby-offtopic
[22:16:27] nchambers: Ping timeout: 250 seconds

2018-11-30

[00:47:42] nchambers: has joined #ruby-offtopic
[00:47:42] nchambers: has joined #ruby
[03:39:02] nchambers: Ping timeout: 268 seconds
[03:39:59] nchambers: has joined #ruby
[03:40:31] nchambers: has joined #ruby-offtopic
[06:46:25] nchambers: Quit: WeeChat 2.2

2018-11-29

[00:23:40] nchambers: has joined #ruby
[00:23:41] nchambers: has joined #ruby-offtopic
[01:16:22] nchambers: you shouldn't parse ls though :/
[01:35:47] nchambers: Ping timeout: 268 seconds
[01:42:35] nchambers: has joined #ruby
[01:43:07] nchambers: has joined #ruby-offtopic
[09:47:42] nchambers: Ping timeout: 250 seconds
[15:53:41] nchambers: has joined #ruby
[15:54:13] nchambers: has joined #ruby-offtopic
[16:08:28] nchambers: Quit: WeeChat 2.2

2018-11-28

[00:14:20] nchambers: has joined #ruby
[00:14:21] nchambers: has joined #ruby-offtopic
[01:00:56] nchambers: Quit: WeeChat 2.2
[02:06:59] nchambers: has joined #ruby-offtopic
[02:06:59] nchambers: has joined #ruby
[18:54:31] nchambers: has joined #ruby-offtopic
[18:54:31] nchambers: has joined #ruby
[18:58:27] nchambers: Client Quit

2018-11-27

[01:39:15] nchambers: Quit: WeeChat 2.2
[05:35:40] nchambers: has joined #ruby-offtopic
[05:35:40] nchambers: has joined #ruby
[08:28:02] nchambers: Ping timeout: 250 seconds
[15:23:49] nchambers: has joined #ruby
[15:23:50] nchambers: has joined #ruby-offtopic
[17:29:29] nchambers: Quit: WeeChat 2.2

2018-11-26

[04:55:41] nchambers: has joined #ruby-offtopic
[04:55:41] nchambers: has joined #ruby
[07:12:46] nchambers: Quit: MetaNova, why are you unplugging my ethernet ca
[14:42:22] nchambers: has joined #ruby-offtopic
[14:42:22] nchambers: has joined #ruby
[20:16:48] nchambers: Quit: WeeChat 2.2
[22:22:55] nchambers: has joined #ruby
[22:22:56] nchambers: has joined #ruby-offtopic

2018-11-25

[11:02:33] nchambers: Ping timeout: 272 seconds
[11:03:40] nchambers: has joined #ruby
[11:04:12] nchambers: has joined #ruby-offtopic
[11:12:05] nchambers: Ping timeout: 268 seconds
[11:14:01] nchambers: has joined #ruby
[11:14:33] nchambers: has joined #ruby-offtopic
[11:24:58] nchambers: Ping timeout: 246 seconds
[11:26:10] nchambers: has joined #ruby
[11:26:42] nchambers: has joined #ruby-offtopic
[11:31:56] nchambers: Remote host closed the connection
[11:32:31] nchambers: has joined #ruby
[11:33:03] nchambers: has joined #ruby-offtopic
[11:52:33] nchambers: Ping timeout: 245 seconds
[11:53:57] nchambers: has joined #ruby
[11:54:29] nchambers: has joined #ruby-offtopic
[12:02:39] nchambers: Ping timeout: 268 seconds
[12:03:48] nchambers: has joined #ruby
[12:04:20] nchambers: has joined #ruby-offtopic
[18:32:04] nchambers: Ping timeout: 244 seconds
[20:40:18] nchambers: has joined #ruby
[20:40:50] nchambers: has joined #ruby-offtopic

2018-11-24

[00:08:11] nchambers: Quit: my mind is blown 5 ways til sunday right now
[00:10:34] nchambers: has joined #ruby-offtopic
[00:10:34] nchambers: has joined #ruby
[17:56:48] nchambers: is rake installed?
[18:44:16] nchambers: Quit: WeeChat 2.2
[19:49:43] nchambers: has joined #ruby
[19:49:44] nchambers: has joined #ruby-offtopic
[21:32:25] nchambers: why do you want to sort a hash?

2018-11-23

[03:15:37] nchambers: has joined #ruby
[03:15:38] nchambers: has joined #ruby-offtopic
[05:43:38] nchambers: Quit: WeeChat 2.2
[06:29:37] nchambers: has joined #ruby-offtopic
[06:29:37] nchambers: has joined #ruby
[06:32:18] nchambers: how did you call it?

2018-11-22

[05:22:41] nchambers: `rvm install ruby-specific-version`
[05:24:02] nchambers: ah, --ruby= i think
[05:24:04] nchambers: sorry, misread
[05:24:19] nchambers: ie --ruby can take an argument
[07:10:40] nchambers: Quit: WeeChat 2.2
[07:35:28] nchambers: has joined #ruby-offtopic
[07:35:28] nchambers: has joined #ruby
[12:45:27] nchambers: Ping timeout: 240 seconds
[17:39:18] nchambers: has joined #ruby
[17:39:54] nchambers: has joined #ruby-offtopic
[17:56:29] nchambers: Quit: WeeChat 2.2

2018-11-21

[02:28:24] nchambers: Quit: WeeChat 2.2
[02:52:21] nchambers: has joined #ruby-offtopic
[02:52:21] nchambers: has joined #ruby
[08:54:56] nchambers: Quit: WeeChat 2.2
[15:12:26] nchambers: has joined #ruby-offtopic
[15:12:26] nchambers: has joined #ruby
[16:02:08] nchambers: has joined #ruby
[16:02:09] nchambers: has joined #ruby-offtopic
[19:51:02] nchambers: Ping timeout: 268 seconds
[23:15:23] nchambers: has joined #ruby
[23:15:24] nchambers: has joined #ruby-offtopic

2018-11-20

[03:43:50] nchambers: Swyper: try map
[03:43:57] nchambers: erm, .chars.map
[03:45:01] nchambers: .chars returns an array of characters from the string, ie "hello" -> ["h", "e", "l", "l", "o"]
[03:45:33] nchambers: .map is like .each(_char), except it returns the changed values, instead of the original
[03:45:56] nchambers: &>> "abcd".chars.each { |char| char.upcase }
[03:46:03] nchambers: &>> "abcd".chars.map { |char| char.upcase }
[03:46:18] nchambers: sorry, slow typer
[03:46:31] nchambers: its returning the original values
[03:46:45] nchambers: &>> "abcd".each_char { |x| x.upcase }
[03:49:23] nchambers: is there one for String like #map?
[03:54:56] nchambers: ah, fair enough
[03:58:13] nchambers: i haven't seen a case where it does yet
[03:58:25] nchambers: since most constructs have an end-icator
[03:58:48] nchambers: still has the same problem
[03:59:05] nchambers: .each returns the original array, you want .map
[03:59:09] nchambers: your if is missing an end
[04:05:09] nchambers: so couple of notes
[04:05:23] nchambers: is there an end after the return x that you're not pasting?
[04:05:29] nchambers: if not, you need one there too
[04:05:48] nchambers: secondly, im pretty sure that condition should be [A..Z] === el
[04:06:06] nchambers: (i actually just read baweaver's medium post on ===, would recommend)
[04:06:18] nchambers: also, im pretty sure you mean x += el, not el += x
[04:07:49] nchambers: im pretty new myself tbh
[04:09:36] nchambers: can you update the gist?
[04:10:43] nchambers: return goes between those two end's
[04:10:57] nchambers: that second end is the end of the function
[04:13:51] nchambers: ["A".."Z"] == el
[04:13:54] nchambers: ["A".."Z"] === el
[04:13:56] nchambers: the second one
[04:14:05] nchambers: btw it needs to be that order, not the other way around
[04:14:34] nchambers: === performs blackmagic based on the left hand side
[04:16:01] nchambers: https://medium.com/rubyinside/triple-equals-black-magic-d934936a6379
[04:17:15] nchambers: missing quotes around the A and Z
[04:19:04] nchambers: i like sublime personally
[04:19:10] nchambers: theres also the rubocop linter
[04:28:57] nchambers: so like i said im new, so im not sure what the difference between ("A".."Z") and ["A".."Z"] is, but ("A".."Z") works for me: https://clbin.com/o90Og
[04:29:09] nchambers: but ["A".."Z"] doesn't work for me either
[04:29:55] nchambers: its because ["A".."Z"] is an array of one element (that range object)
[04:30:21] nchambers: ("A".."Z") is an actual range
[04:33:07] nchambers: mostly from reading my companie's developers code
[04:33:10] nchambers: and idling in here
[04:34:22] nchambers: i learned a lot reading articles from https://medium.com/@farsi_mehdi as well
[05:15:37] nchambers: thanks, i've been meaning to go through that one
[05:16:07] nchambers: i saw the lemur stickers on twitter
[05:16:15] nchambers: those looked really cool
[06:42:11] nchambers: Quit: WeeChat 2.2
[16:09:32] nchambers: has joined #ruby
[16:09:33] nchambers: has joined #ruby-offtopic
[22:28:08] nchambers: what does `echo "$PATH"` say?
[22:28:11] nchambers: without the `'s
[22:50:06] nchambers: fwiw, these are all the paths I have on my macbook: https://clbin.com/z3okA
[22:55:36] nchambers: are you sourcing the rvm file?
[22:56:07] nchambers: something involving ~/.rvm/scripts/rvm
[23:00:52] nchambers: oh wait, did you install it with homebrew?
[23:01:04] nchambers: if so, don't listen to me, i thought i was looking at rvm paths
[23:01:24] nchambers: (although i would recommend switching to rvm)
[23:35:04] nchambers: not sure who to poke about this, but the nick "ruby" expired. someone might want to log into the account to reset the last-seen time
[23:36:03] nchambers: you'll need to /nick to it too
[23:36:22] nchambers: im on it right now but was just holding it
[23:36:25] nchambers: ill hop off
[23:37:02] nchambers: thought i'd ask first and make sure
[23:37:26] nchambers: sometimes i go by uplime :)
[23:41:15] nchambers: im by no means a pickachu but i certainly have the means to look like one
[23:41:30] nchambers: that be great to watch
[23:57:35] nchambers: nice. im hoping i can attend next year

2018-11-19

[00:24:12] nchambers: Ping timeout: 272 seconds
[01:02:15] nchambers: has joined #ruby
[01:02:55] nchambers: has joined #ruby-offtopic
[07:04:03] nchambers: Quit: WeeChat 2.2
[17:03:28] nchambers: has joined #ruby
[17:03:29] nchambers: has joined #ruby-offtopic

2018-11-18

[01:50:01] nchambers: what about net/http?
[01:52:49] nchambers: fwiw, i cheat and use this: https://jhawthorn.github.io/curl-to-ruby/
[04:40:29] nchambers: So I wrote an each method for my class, but I'd like to return an enumerator if no block is given. Is there a good article or doc on how to define an enumerator for your class?
[04:51:17] nchambers: great thank you!
[04:51:25] nchambers: and no i don't :c
[04:52:09] nchambers: what is enum_for?
[17:40:13] nchambers: &>> nil.is_a? Object
[17:40:48] nchambers: its just trying to show you that nil is an object of (I think) NilClass
[17:41:21] nchambers: versus something like None in python, or NULL in C, which effectively means "no data" and is not an object
[17:53:16] nchambers: &>> is just to tell the bot to run the following code
[17:53:27] nchambers: what is the result of nil.is_a?(Object)
[17:53:33] nchambers: and what are you comparing against?
[18:01:20] nchambers: i should probably finish my ruby koans :/
[19:00:45] nchambers: Ping timeout: 252 seconds
[19:40:21] nchambers: has joined #ruby
[19:41:01] nchambers: has joined #ruby-offtopic
[21:19:02] nchambers: is there something like Object#class expcet it outputs the basename of the class? I've got a class named Raspberry::Type::Lambda and I'd like to just get Lambda
[21:19:44] nchambers: other than foo.class.name.split("::")[-1]
[21:29:01] nchambers: thanks phaul, I'll check those out
[21:37:38] nchambers: its just cosmetic anyways

2018-11-17

[22:18:38] nchambers: yeah, i like that trick