« Back to channel list

#ruby - 24 March 2017

« Back 1 day Forward 1 day »
[00:00:48] GodFather: has joined #ruby
[00:02:26] swills_: has joined #ruby
[00:08:19] BabyMario: has joined #ruby
[00:10:51] cibs: has joined #ruby
[00:11:11] olivier__: has joined #ruby
[00:15:41] JoshS: has joined #ruby
[00:23:57] milardovich: has joined #ruby
[00:24:23] hutch34: has joined #ruby
[00:32:40] zeddan: has joined #ruby
[00:33:46] Limix: has joined #ruby
[00:34:40] cagomez: has joined #ruby
[00:36:02] rakm: has joined #ruby
[00:36:06] jdm: has joined #ruby
[00:42:58] raspado: has joined #ruby
[00:45:51] gnufied: has joined #ruby
[00:46:21] sam_d: has joined #ruby
[00:46:23] leitz: has joined #ruby
[00:47:20] olivier__: has joined #ruby
[00:48:01] leitz: Using regular tests in Ruby 2.4.0, I'm testing an error raised if the file does not exist. The response is "Errno::ENOENT" but assert_raise(StandardError) and (SystemCallError) fail.
[00:48:22] leitz: What should the assert_raise expect to see?
[00:49:15] leitz: Duh, nevermind. I thought I had tested Errno::ENOENT. Probably mistyped it.
[00:49:28] hutch34: has joined #ruby
[00:50:35] Verity: has joined #ruby
[00:51:19] roamingdog: has joined #ruby
[00:55:29] JeanCarloMachado: has joined #ruby
[00:56:10] hutch34_: has joined #ruby
[00:56:15] tAn: has joined #ruby
[00:56:26] qwertme: has joined #ruby
[00:57:27] halla: has joined #ruby
[00:58:46] d5sx43: has joined #ruby
[01:00:14] Verity: my program doesnt work the same now
[01:03:21] ahrs: has joined #ruby
[01:05:01] JeanCarloMachado: has joined #ruby
[01:05:34] arescorpio: has joined #ruby
[01:05:39] rhyselsmore: has joined #ruby
[01:06:23] dysfigured: has joined #ruby
[01:07:17] dysfigured: any linux users have any tips on parsing xprop? i want to make a script that will print _NET_DESKTOP_NAMES and highlight _NET_CURRENT_DESKTOP
[01:09:14] dysfigured: actually, http://ix.io/pdr here's the output i want to parse. so there's a line that starts _NET_DESKTOP_NAMES that has an "array" of strings with the desktop names, and _NET_CURRENT_DESKTOP contains the index of which is the current
[01:09:55] OO--OO: has joined #ruby
[01:10:16] dysfigured: this is day 0 of ruby things for me, i've only so far gotten a simple grasp on the syntax (i have a lot of experience with js though)
[01:10:48] OO--OO: i have one query on regular expressions who can help?
[01:11:28] elomatreb: dysfigured: You could read the file line-by-line, decide with a regex if it's the line you're interested in, then use another one to get the "array of strings"
[01:11:55] elomatreb: OO--OO: Ask ahead, if anyone wants to help they will respond
[01:12:07] dysfigured: OO--OO: i'm pretty decent with regex. you shouldn't ask to ask though. if you'd posted your actual question this message would be answer instead
[01:16:49] OO--OO_: has joined #ruby
[01:17:04] OO--OO_: has left #ruby: ()
[01:17:19] OO--OO_: has joined #ruby
[01:17:23] tAn: has joined #ruby
[01:17:58] alibby: has joined #ruby
[01:18:22] bmurt: has joined #ruby
[01:19:26] OO--OO: how to you get the last section of a url eg.ccc -> http:/ aaa/bbb/ccc
[01:19:45] Nilium: Wherefore?
[01:19:51] jshjsh: has joined #ruby
[01:20:40] OO--OO: how do you get the ccc part of the url
[01:20:46] cibs: has joined #ruby
[01:20:59] dysfigured: is there an eval bot in here?
[01:21:11] elomatreb: >> "yes, but you need to be authed
[01:21:12] ruby[bot]: elomatreb: # => /tmp/execpad-ee0f4210229d/source-ee0f4210229d:6:in `raise': exception object expected (TypeError) ...check link for more (https://eval.in/760191)
[01:21:29] elomatreb: And you need to know Ruby apparently
[01:21:57] dysfigured: >> s = 'http://aaa/bbb/ccc'; s.split('/').pop
[01:21:58] ruby[bot]: dysfigured: # => "ccc" (https://eval.in/760192)
[01:22:54] dysfigured: not bad for my first day? maybe?
[01:23:58] Jameser: has joined #ruby
[01:24:21] OO--OO: let me check it
[01:27:00] OO--OO: yeah it's ok thanks
[01:29:00] slackR: has joined #ruby
[01:31:22] eclecticjohny: has joined #ruby
[01:31:49] Radar: dysfigured: worth noting that File.basename("http://aaa/bbb/ccc") will also do the trick.
[01:31:52] Radar: >> File.basename("http://aaa/bbb/ccc")
[01:31:53] ruby[bot]: Radar: # => "ccc" (https://eval.in/760196)
[01:33:23] elifoster: has joined #ruby
[01:37:51] BabyMario: has joined #ruby
[01:44:11] planigan: has joined #ruby
[01:44:20] duckpupp1: has joined #ruby
[01:50:33] olivier__: has joined #ruby
[01:51:01] cibs: has joined #ruby
[01:53:02] thadtheman: has joined #ruby
[01:55:13] Verity: has joined #ruby
[01:55:21] Verity: can someone please tell me hwy my program doesnt work the same now
[01:55:29] allisio: Post code.
[01:56:46] dysfigured: how does basic irc etiquette escape so many people
[01:58:05] Verity: its the same code from before
[01:58:10] Verity: only now the packets are the sixe of the whole file
[01:58:14] Verity: instead of the size I needed
[01:58:19] alibby: has joined #ruby
[01:58:22] Verity: its so strange
[01:58:30] Verity: I thought switching to linux would be so great
[01:58:33] Verity: but its awful so far
[01:58:53] llua: surprise!
[01:59:27] znz_jp: has joined #ruby
[01:59:31] allisio: "Switching"?
[01:59:33] enterprisey: has joined #ruby
[02:00:02] allisio: http://logs.ryanbigg.com/ruby?date=2017-03-23#6109507
[02:01:24] planigan: has joined #ruby
[02:01:31] cajone: has joined #ruby
[02:01:59] cibs: has joined #ruby
[02:03:25] planigan: has joined #ruby
[02:04:08] Kallis: has joined #ruby
[02:04:23] Verity: which part
[02:05:15] Kallis: has joined #ruby
[02:05:16] allisio: Does your browser not support URL fragments?
[02:06:15] Verity: ill tyr it now?
[02:06:20] Verity: its so easy w/ ruby
[02:06:33] Verity: Verity: The other factor is that if you plan to use us as a source of counsel, then you're going to be better off using a platform that we use (and that you're likely to deploy on).
[02:06:35] Verity: that was the advice
[02:06:42] Verity: Disavowed, are you here
[02:06:44] Verity: its not going too well
[02:07:49] cibs: has joined #ruby
[02:08:09] alibby: has joined #ruby
[02:10:32] Trynemjoel: has joined #ruby
[02:14:10] cibs: has joined #ruby
[02:15:19] Channel6: has joined #ruby
[02:16:10] alibby: has joined #ruby
[02:18:25] d^sh: has joined #ruby
[02:18:59] duracrisis: has joined #ruby
[02:19:04] tAn: has joined #ruby
[02:20:47] cibs: has joined #ruby
[02:23:40] roflmyeggo: has joined #ruby
[02:27:25] cibs: has joined #ruby
[02:28:52] olivier__: has joined #ruby
[02:34:19] rhyselsmore: has joined #ruby
[02:34:52] mim1k: has joined #ruby
[02:35:34] weaksauce: has joined #ruby
[02:35:46] MTecknology: has left #ruby: ("You saw me, but now you don't.")
[02:35:51] NightMonkey: has joined #ruby
[02:36:32] mostlybadfly: has joined #ruby
[02:38:21] cibs: has joined #ruby
[02:38:48] alibby: has joined #ruby
[02:44:36] jenrzzz: has joined #ruby
[02:44:36] jenrzzz: has joined #ruby
[02:44:39] cibs: has joined #ruby
[02:50:03] euphoriaa: has joined #ruby
[02:50:49] cibs: has joined #ruby
[02:54:31] naprimer: has joined #ruby
[02:56:00] CloCkWeRX: has left #ruby: ()
[02:56:25] roamingdog: has joined #ruby
[02:59:39] IRCFrEAK: has joined #ruby
[03:00:17] GodFather: has joined #ruby
[03:01:27] cibs: has joined #ruby
[03:01:56] jenrzzz: has joined #ruby
[03:03:18] enterprisey: has joined #ruby
[03:03:51] marcdel: has joined #ruby
[03:05:55] libastral: has joined #ruby
[03:05:58] zeddan: has joined #ruby
[03:06:25] gusrub: has joined #ruby
[03:07:04] IRCFrEAK: has joined #ruby
[03:08:47] nofxxxx: has joined #ruby
[03:08:51] tAn: has joined #ruby
[03:14:53] dysfigured: code review of my first ruby? http://ix.io/pdv
[03:15:17] dysfigured: specifically, just the list function
[03:15:25] bougyman: well, you use backticks.
[03:15:32] bougyman: instead of popen3
[03:15:42] dysfigured: why would i use popen3?
[03:15:47] bougyman: you could do all of that in popen3 block.
[03:16:06] dysfigured: oh interesting
[03:16:53] IRCFrEAK: has joined #ruby
[03:17:16] jdm: has joined #ruby
[03:19:17] dysfigured: what i ideally want is to use xprop -spy which is a long running process that prints changes as they happen
[03:19:38] Davey: has joined #ruby
[03:19:38] Davey: has joined #ruby
[03:20:04] marcdel: has joined #ruby
[03:20:39] dysfigured: but then i'd have to figure out how to print when xprop changes, instead of polling every second
[03:21:17] TheMainFrame: has joined #ruby
[03:21:26] enterprisey: has joined #ruby
[03:22:34] allisio: dysfigured: https://eval.in/760248
[03:22:45] IRCFrEAK: has left #ruby: ()
[03:23:58] dysfigured: oh neat, thank you. can you explan the _, bit though?
[03:24:51] raspado: has joined #ruby
[03:25:14] Limix: has joined #ruby
[03:25:31] matthewd: dysfigured: That seems like an ideal use for popen
[03:26:07] matthewd: Oh, that's exactly what allisio showed. Ignore me being slow.
[03:27:02] matthewd: >> _, x = "a/b".split("/"); x
[03:27:04] ruby[bot]: matthewd: # => "b" (https://eval.in/760257)
[03:27:09] dysfigured: heh. i don't get the _ though. iinm, it's usually a throwaway variable.. which makes me think there's some destructuring going on?
[03:27:09] astrobunny: has joined #ruby
[03:27:12] allisio: dysfigured: Open3.popen2 gives you access to the subprocess's input stream, but you don't need that; Ruby specifically uses `_` to indicate a syntactically necessary but otherwise unused variable.
[03:27:16] adam12: Anybody experiment with https://github.com/boazsegev/iodine at all?
[03:27:33] matthewd: Yes, it's destructing the two-element array that popen2 returns
[03:27:42] matthewd: Err, destructuring :)
[03:27:56] alibby: has joined #ruby
[03:28:16] dysfigured: some of the 'magic' in ruby syntax makes those things a bit less obvious
[03:29:21] IRCFrEAK: has joined #ruby
[03:30:28] matthewd: adam12: I can tell you that the author is.. very confident in his design decisions
[03:30:36] matthewd: adam12: I haven't actually tried to use it, though
[03:30:43] adam12: matthewd: I think I saw you tagged in an issue in the repo
[03:30:57] dysfigured: ok, what about not using a giant block of "if line matches this regex then do this"? in clojure there's like cond and condp which i think would be ideal here..
[03:31:11] adam12: tbh, this is a tiny micro service that would be fine on webrick, but my curiosity has the best of me.
[03:31:57] dysfigured: actuall cond doesn't really make sense because i'm not assigning to the same var.. still, i can't help thinking there's something nicer than a big block of if/elsif
[03:32:08] matthewd: dysfigured: case line when /foo/; ..; when /bar/; ..; end ?
[03:32:24] dysfigured: :| yup, i suppose that'd do it
[03:34:30] nofxxx: has joined #ruby
[03:37:46] Allonphone: has joined #ruby
[03:37:47] Azure: has joined #ruby
[03:39:07] IRCFrEAK: has joined #ruby
[03:39:30] alibby: has joined #ruby
[03:40:08] dysfigured: man this is a lot tricker than i thought it would be.
[03:41:02] IRCFrEAK: has left #ruby: ()
[03:43:30] duderonomy: has joined #ruby
[03:46:12] larissa: has joined #ruby
[03:46:44] tw1sted: has joined #ruby
[03:48:21] duckpupp1: has joined #ruby
[03:52:52] jenrzzz: has joined #ruby
[03:52:52] jenrzzz: has joined #ruby
[03:54:31] bocaneri: has joined #ruby
[03:56:34] IRCFrEAK: has joined #ruby
[03:57:10] cibs: has joined #ruby
[03:57:46] bocaneri: has joined #ruby
[03:58:22] charliesome: has joined #ruby
[04:00:38] IRCFrEAK: has left #ruby: ()
[04:01:53] eclecticjohny: has joined #ruby
[04:02:14] cibs: has joined #ruby
[04:04:54] ascio: has joined #ruby
[04:05:50] _tk421_: has joined #ruby
[04:06:55] ascio: has left #ruby: ()
[04:12:09] __Yiota: has joined #ruby
[04:14:31] cibs: has joined #ruby
[04:20:18] gix: has joined #ruby
[04:21:19] blackwind_123: has joined #ruby
[04:22:36] NightMonkey: has joined #ruby
[04:24:20] enterprisey: has joined #ruby
[04:24:24] IRCFrEAK: has joined #ruby
[04:30:12] IRCFrEAK: has left #ruby: ()
[04:31:52] cajone: has joined #ruby
[04:35:24] mim1k: has joined #ruby
[04:46:47] agent_white: has joined #ruby
[04:48:21] dysfigured: is there anything like ramda.js for ruby?
[04:48:32] havenwood: dysfigured: what is ramda.js?
[04:49:19] dysfigured: it's like a general-purpose functional programming lib. it gives you curried versions of map reduce filter and dozens of others so you can compose them
[04:50:09] havenwood: dysfigured: Ruby has curry and lazy versions of enumerable methods. There are some good functionally-oriented gems though.
[04:50:40] havenwood: dysfigured: http://dry-rb.org/
[04:51:12] havenwood: dysfigured: https://github.com/ruby-concurrency # immutable datastructures
[04:51:26] dysfigured: http://dry-rb.org/gems/dry-monads/ this is nice
[04:51:53] havenwood: dysfigured: for fun: https://github.com/banister/funkify
[04:52:14] havenwood: dysfigured: https://github.com/hamstergem/hamster
[04:53:14] eboaz: has joined #ruby
[04:53:47] dysfigured: funkify looks great too
[04:55:05] davorb: has joined #ruby
[04:59:05] _tk421_: has joined #ruby
[04:59:40] dysfigured: thanks for the links
[04:59:49] havenwood: you're welcome
[05:03:34] agent_white: You look nice today.
[05:03:57] Tau: has joined #ruby
[05:04:47] jdm: has joined #ruby
[05:06:10] _djbkd: has joined #ruby
[05:06:23] agent_white: dysfigured: Well, I _did_ wear matching socks today. Thank you for noticing.
[05:09:59] hahuang61: has joined #ruby
[05:12:55] pulkit4tech: has joined #ruby
[05:16:13] IRCFrEAK: has joined #ruby
[05:18:08] charliesome: has joined #ruby
[05:23:40] montanonic: has joined #ruby
[05:27:29] _tk421_: has joined #ruby
[05:34:06] mim1k: has joined #ruby
[05:39:08] renchan: has joined #ruby
[05:45:48] minimalism: has joined #ruby
[05:49:04] duckpupp1: has joined #ruby
[06:00:28] mcantor: has joined #ruby
[06:01:24] kreantos: has joined #ruby
[06:02:14] igniting: has joined #ruby
[06:02:22] dionysus69: has joined #ruby
[06:11:36] sdwrage: has joined #ruby
[06:18:39] aufi: has joined #ruby
[06:20:28] govg: has joined #ruby
[06:22:43] patarr: has joined #ruby
[06:28:20] _djbkd: has joined #ruby
[06:31:10] certainty: has joined #ruby
[06:33:36] Ishido: has joined #ruby
[06:37:29] ahrs: has joined #ruby
[06:43:05] ledestin: has joined #ruby
[06:47:57] muelleme: has joined #ruby
[06:50:57] enterprisey_: has joined #ruby
[06:56:23] hahuang61: has joined #ruby
[06:56:31] cfec0b8d: has joined #ruby
[06:57:35] cfec0b8d: has joined #ruby
[07:00:02] pahnin2: has joined #ruby
[07:01:14] pahnin2: Hi guys, just have a quick question, we have about 1000 lines of unused code, just wondering, will there be any significant effect on RAM if we remove this code from our 5000 lines code base
[07:01:45] jenrzzz: has joined #ruby
[07:02:32] mcantor: has joined #ruby
[07:02:42] andikr: has joined #ruby
[07:03:25] dminuoso: pahnin2: No.
[07:04:16] pahnin2: ok, thanks for the quick answer
[07:04:21] dminuoso: pahnin2: Though it's hard to say without seeing the code. If those 1000 lines of code introduce a really freaking huge object..
[07:05:34] Tau: has joined #ruby
[07:05:48] pahnin2: it's a rails app, the code is spread across controllers models etc, I dont think they initiate any big objects
[07:06:21] pankaj_: has joined #ruby
[07:06:27] dminuoso: pahnin2: What I would do is move that code into an extra branch.
[07:06:31] lightheaded: has joined #ruby
[07:06:48] dminuoso: pahnin2: That way you get to keep the code intact but away from your production code where it could have impact on: being used accidentally and possible performance implications.
[07:07:05] dminuoso: And if you ever want to use that code, you just merge that branch into your current feature branch.
[07:07:45] pahnin2: we are not worried about loosing code, we are just wondering if it is worth the effort to clean up
[07:09:11] dminuoso: pahnin2: Just refactor the code a bit a time then. You can use fixup commits and once the final bit is removed (weeks or months from now) you can just git rebase -i --autosquash msater
[07:09:23] dminuoso: Leaving dead code is not pretty but you don't have to remove it all at once either.
[07:09:41] dminuoso: That will keep your log clean too.
[07:12:33] neuraload: has joined #ruby
[07:13:10] pahnin2: dminuoso: thanks for the help
[07:17:15] doublemalt_: has joined #ruby
[07:27:09] quest: has joined #ruby
[07:27:26] quest: Hello! anyone have some time to helpme out with something
[07:28:33] rippa: has joined #ruby
[07:33:34] quest: has joined #ruby
[07:34:01] jaruga: has joined #ruby
[07:35:37] jaruga: has joined #ruby
[07:37:16] jenrzzz: has joined #ruby
[07:37:16] jenrzzz: has joined #ruby
[07:38:06] charliesome: has joined #ruby
[07:41:53] spicerack: has joined #ruby
[07:43:23] mikecmpbll: has joined #ruby
[07:43:59] conta: has joined #ruby
[07:44:32] lightheaded: has joined #ruby
[07:49:46] certainty: has joined #ruby
[07:54:00] ddffg: has joined #ruby
[07:55:45] last_staff: has joined #ruby
[07:56:02] duckpupp1: has joined #ruby
[07:56:19] SuperLag: has joined #ruby
[07:57:23] charliesome: has joined #ruby
[07:58:57] nowhere_man: has joined #ruby
[07:59:57] olivier__: has joined #ruby
[08:01:06] hurricanehrndz: has joined #ruby
[08:03:18] mcantor: has joined #ruby
[08:05:58] jenrzzz: has joined #ruby
[08:05:58] jenrzzz: has joined #ruby
[08:08:12] last_staff1: has joined #ruby
[08:08:28] gusrub: has joined #ruby
[08:14:17] aganov: has joined #ruby
[08:14:29] Arpanet69: has joined #ruby
[08:16:40] workmad3: has joined #ruby
[08:17:37] luckyruby: has joined #ruby
[08:18:28] TomyWork: has joined #ruby
[08:20:08] govg: has joined #ruby
[08:23:31] patarr: has joined #ruby
[08:29:26] mark_66: has joined #ruby
[08:30:34] vondruch: has joined #ruby
[08:31:06] maattdd: has joined #ruby
[08:31:10] enterprisey: has joined #ruby
[08:33:20] snickers: has joined #ruby
[08:41:05] burgestrand: has joined #ruby
[08:44:06] crst_: has joined #ruby
[08:44:50] crst_: Hi, how can I gem install rails 4 latest version?
[08:46:35] xenops: has joined #ruby
[08:52:03] tk422: has joined #ruby
[08:54:51] burgestrand: has joined #ruby
[08:55:38] davorb: has joined #ruby
[08:56:17] A124: has joined #ruby
[08:57:28] hahuang61: has joined #ruby
[09:01:02] duckpupp1: has joined #ruby
[09:02:43] mim1k: has joined #ruby
[09:04:05] mcantor: has joined #ruby
[09:05:38] vali: has joined #ruby
[09:07:56] A124: has joined #ruby
[09:08:29] _tk421_: has joined #ruby
[09:08:31] Silthias: has joined #ruby
[09:10:43] Bish: has joined #ruby
[09:10:45] jgnagy: has joined #ruby
[09:11:41] mikecmpbll: has joined #ruby
[09:11:42] maattdd_: has joined #ruby
[09:13:26] toretore: has joined #ruby
[09:13:55] mim1k: has joined #ruby
[09:15:55] A124: has joined #ruby
[09:16:48] tao_: has joined #ruby
[09:18:52] gnufied: has joined #ruby
[09:20:09] olivier__: has joined #ruby
[09:21:19] jinie: has joined #ruby
[09:25:12] esObe_: has joined #ruby
[09:26:50] shncgo: has joined #ruby
[09:32:05] mhenrixon: has joined #ruby
[09:37:36] jesk: has left #ruby: ("WeeChat 1.5")
[09:40:03] pandaant: has joined #ruby
[09:40:38] mim1k: has joined #ruby
[09:41:32] marr: has joined #ruby
[09:44:32] flying: has joined #ruby
[09:45:09] lxsameer: has joined #ruby
[09:47:48] jenrzzz: has joined #ruby
[09:55:49] nOwz: has joined #ruby
[09:57:41] charliesome: has joined #ruby
[10:03:13] tvw: has joined #ruby
[10:03:24] Kug3lis: has joined #ruby
[10:04:51] mcantor: has joined #ruby
[10:05:29] dlitvak: has joined #ruby
[10:08:37] cfec0b8d: has joined #ruby
[10:09:23] naprimer: has joined #ruby
[10:09:46] Arpanet69: has joined #ruby
[10:10:29] jamesaxl: has joined #ruby
[10:11:24] CloCkWeRX: has joined #ruby
[10:13:08] Tau: has joined #ruby
[10:15:55] nocco: has joined #ruby
[10:15:56] thadtheman: has joined #ruby
[10:17:49] vedu: has joined #ruby
[10:18:44] vedu: Hello. I am trying to send a simple post request but I get this error: Errno::ECONNREFUSED: Connection refused - connect(2) for nil port 443. Full code and error: https://gist.github.com/vedant1811/3056891ae7b93cec0721a1f668ae83e7
[10:18:45] doublemalt__: has joined #ruby
[10:19:42] Kug3lis: has joined #ruby
[10:21:19] burgestrand: vedu You're missing a forward-slash after your URI scheme, i.e. https:// not https:/
[10:22:21] burgestrand: Might not be your actual problem, I don't know.
[10:23:06] nowhere_man: has joined #ruby
[10:23:36] burgestrand: >> URI("'https:/www.google-analytics.com/collect").host
[10:23:37] vedu: Burgestrand: thanks. that was my problem
[10:23:37] ruby[bot]: Burgestrand: # => undefined method `URI' for main:Object (NoMethodError) ...check link for more (https://eval.in/760667)
[10:24:29] patarr: has joined #ruby
[10:32:29] xenops: has joined #ruby
[10:34:21] tAn: has joined #ruby
[10:37:26] nOwz: has joined #ruby
[10:39:26] Fernando-Basso: has joined #ruby
[10:43:07] alibby: has joined #ruby
[10:45:25] tao_: has joined #ruby
[10:48:23] blackmesa: has joined #ruby
[10:52:16] nocco: has joined #ruby
[10:52:38] pulkit4tech: has joined #ruby
[10:55:28] tAn: has joined #ruby
[10:55:55] psychicist__: has joined #ruby
[10:58:06] ferr1: has joined #ruby
[10:58:11] hahuang61: has joined #ruby
[11:01:50] tomphp: has joined #ruby
[11:01:51] duckpupp1: has joined #ruby
[11:04:15] Kug3lis_: has joined #ruby
[11:05:36] mcantor: has joined #ruby
[11:05:44] Arpanet69: has joined #ruby
[11:06:43] rhyselsmore: has joined #ruby
[11:09:05] last_staff: has joined #ruby
[11:16:13] nocco: has joined #ruby
[11:19:20] AndroUser123: has joined #ruby
[11:19:28] gdonald: has joined #ruby
[11:20:12] AndroUser123: too slow code https://gist.github.com/anonymous/191907ceb0e665fcfa268943dd75bdf3
[11:23:10] raspado: has joined #ruby
[11:24:57] neuraload: has joined #ruby
[11:29:09] hutch34_: has joined #ruby
[11:31:05] cagomez: has joined #ruby
[11:34:09] Silthias: has left #ruby: ()
[11:35:07] biberu: has joined #ruby
[11:38:11] A124: has joined #ruby
[11:41:06] JeanCarloMachado: has joined #ruby
[11:43:04] HoierM: has joined #ruby
[11:44:07] ldnunes: has joined #ruby
[11:48:33] zeddan: has joined #ruby
[11:49:13] duckpupp1: has joined #ruby
[11:49:40] solocshaw: has joined #ruby
[11:52:32] jaiks: has joined #ruby
[11:55:19] nadir: has joined #ruby
[11:58:48] synthroid: has joined #ruby
[12:00:17] zeddan_: has joined #ruby
[12:02:04] blackmesa: has joined #ruby
[12:03:56] last_staff: has joined #ruby
[12:06:16] mcantor: has joined #ruby
[12:08:10] User458764: has joined #ruby
[12:10:36] synthroid: has joined #ruby
[12:11:13] olivier__: has joined #ruby
[12:11:24] Jameser: has joined #ruby
[12:11:34] olivier__: has joined #ruby
[12:13:18] A124: has joined #ruby
[12:14:06] sepp2k: has joined #ruby
[12:14:39] Kug3lis: has joined #ruby
[12:16:14] despai: has joined #ruby
[12:17:06] Jameser: has joined #ruby
[12:17:13] neuraload: has joined #ruby
[12:18:37] nocco: has joined #ruby
[12:25:26] patarr: has joined #ruby
[12:26:22] Jameser: has joined #ruby
[12:27:48] Kug3lis_: has joined #ruby
[12:29:20] olivier__: has joined #ruby
[12:29:33] Jameser: has joined #ruby
[12:33:19] eclecticjohny: has joined #ruby
[12:38:00] nOwz: has joined #ruby
[12:40:57] leito: has joined #ruby
[12:41:03] gdonald: has joined #ruby
[12:41:19] synthroid: has joined #ruby
[12:43:15] ddffg: has joined #ruby
[12:45:28] synthroid: has joined #ruby
[12:46:13] maloik: has joined #ruby
[12:51:26] User458764: has joined #ruby
[12:51:51] mooser: has joined #ruby
[12:58:55] hahuang61: has joined #ruby
[12:59:07] cajone: has joined #ruby
[12:59:27] harfangk: has joined #ruby
[13:01:40] ramortegui: has joined #ruby
[13:04:19] knight33: has joined #ruby
[13:07:01] olivier__: has joined #ruby
[13:07:05] mcantor: has joined #ruby
[13:08:40] kreantos: has joined #ruby
[13:10:45] Polysics: has joined #ruby
[13:12:15] neuraload: has joined #ruby
[13:12:25] jgnagy: has joined #ruby
[13:25:47] cajone: has joined #ruby
[13:26:32] last_staff1: has joined #ruby
[13:27:23] __Yiota: has joined #ruby
[13:29:10] lacrymology: has joined #ruby
[13:30:38] olivier__: has joined #ruby
[13:30:38] centrx: has joined #ruby
[13:30:38] centrx: has joined #ruby
[13:33:27] olivier__: has joined #ruby
[13:33:38] olivier__: has joined #ruby
[13:35:52] DLSteve: has joined #ruby
[13:35:53] olivier__: has joined #ruby
[13:36:08] olivier__: has joined #ruby
[13:36:09] hutch34_: has joined #ruby
[13:39:15] meshsmith: has joined #ruby
[13:41:17] gdonald: has left #ruby: ("ERC (IRC client for Emacs 24.5.1)")
[13:41:58] chagel: has joined #ruby
[13:43:08] cpruitt: has joined #ruby
[13:44:46] Polysics: has joined #ruby
[13:47:05] rikkipitt: has joined #ruby
[13:47:49] rikkipitt: has joined #ruby
[13:48:18] TvL2386: has joined #ruby
[13:49:08] rikkipitt: has joined #ruby
[13:49:41] gnufied: has joined #ruby
[13:53:53] iceden: has joined #ruby
[13:55:39] ozcanesen: has joined #ruby
[14:04:26] Pumukel: has joined #ruby
[14:05:53] Derperperd: has joined #ruby
[14:06:44] avrelaun: has joined #ruby
[14:06:53] Derperperd: has joined #ruby
[14:07:47] mcantor: has joined #ruby
[14:09:25] Derperperd: has joined #ruby
[14:10:14] ponzii: has joined #ruby
[14:10:44] despai: has joined #ruby
[14:10:59] roflmyeggo: has joined #ruby
[14:11:12] gusrub: has joined #ruby
[14:11:46] ponzii: Trying to install 2.4.1 on OS X Sierra via rbenv. Begins ok with "Installed openssl-1.1.0e to .... " but fails after installing everyting: "The Ruby openssl extension was not compiled."
[14:11:47] jrafanie: has joined #ruby
[14:12:50] burgestrand: has joined #ruby
[14:14:34] misthonk: has joined #ruby
[14:14:57] misthonk: Hi all! Total noob to ruby here but I'm trying to create something that can request reports to Amazon.
[14:15:05] Daneel: has joined #ruby
[14:15:10] centrx: ponzii: Sounds like you might need some build tools
[14:15:30] misthonk: Got it to get reports just fine, but requesting has been an issue! reports = client.request_report('_GET_AMAZON_FULFILLED_SHIPMENTS_DATA_',start_date:2017-03-23T12:15:48,end_date: 2017-03-22T12:15:48) throws an error
[14:15:33] ponzii: centrx: Like what? I installed 2.4.0 ok a couple of weeks ago.
[14:15:34] Daneel: i am absolutly newby, i would like to use a peace of rubu code to know ip from fqdn
[14:15:42] misthonk: Is there something obviously wrong with it? I'm suspecting the date format.
[14:15:46] Daneel: what is the good function to use ?
[14:16:06] rikkipitt: has joined #ruby
[14:16:18] centrx: misthonk: The dates should probably be in quotes
[14:16:19] ponzii: cetrx: If anything was missing wouldn't the build fail during configure?
[14:16:40] patarr: has joined #ruby
[14:16:56] rikkipitt: has joined #ruby
[14:17:10] centrx: ponzii: Is there an actual error message or other log output of the build?
[14:18:02] misthonk: centrx: Getting an excon error now, but that's correct, thanks! :)
[14:18:47] rikkipitt: has joined #ruby
[14:18:50] ponzii: centrx: Last 10 log lines:
[14:18:50] ponzii: installing rdoc: /Users/<me>/.rbenv/versions/2.4.1/share/ri/2.4.0/system
[14:18:50] ponzii: installing capi-docs: /Users/<me>/.rbenv/versions/2.4.1/share/doc/ruby
[14:18:50] ponzii: The Ruby openssl extension was not compiled.
[14:18:50] ponzii: ERROR: Ruby install aborted due to missing extensions
[14:18:50] ponzii: Configure options used:
[14:18:50] ponzii: --prefix=/Users/<me>/.rbenv/versions/2.4.1
[14:18:51] ponzii: --with-openssl-dir=/Users/<me>/.rbenv/versions/2.4.1/openssl
[14:18:52] ponzii: LDFLAGS=-L/Users/<me>/.rbenv/versions/2.4.1/lib
[14:18:52] ponzii: CPPFLAGS=-I/Users/<me>/.rbenv/versions/2.4.1/include
[14:19:11] ponzii: centrx: Nothing extra to go on.
[14:20:50] rikkipitt: has joined #ruby
[14:21:26] ponzii: centrx: Earlier there's this: ../.././ext/openssl/extconf.rb:64: Ignore OpenSSL broken by Apple.
[14:21:47] ponzii: .... and : ./.././ext/openssl/extconf.rb:64: Please use another openssl. (e.g. using `configure --with-openssl-dir=/path/to/openssl')
[14:22:00] burgestrand: Daneel Resolv in standard library https://ruby-doc.org/stdlib-2.4.0/libdoc/resolv/rdoc/Resolv.html
[14:22:09] charliesome: has joined #ruby
[14:22:12] centrx: ponzii: Sounds like it decided Apple's installed OpenSSL is broken and wants a custom installed one
[14:22:14] ponzii: cetrx: But it starts by downloading a fresh copy of openssl. WTF?
[14:22:18] misthonk: Hm, according to docs the format should be "request_report(report_type, opts = {})". I've set "client.request_report('_GET_AMAZON_FULFILLED_SHIPMENTS_DATA_',start_date:"2017-03-23T00:00:00",end_date:"2017-03-22T00:00:00")"
[14:22:36] Daneel: Burgestrand, yes i am reading this from a moment but like a chiken discovering a knif. i never coded in ruby
[14:22:41] misthonk: Now it does try it, but I'm getting InvalidParameterValue
[14:22:55] burgestrand: Daneel why do you want to do it in ruby?
[14:22:59] _tk421_: has joined #ruby
[14:23:09] Daneel: Burgestrand, because of pupper
[14:24:20] misthonk: Daneel: puppet and chef, that's how they get ya ;)
[14:24:53] Daneel: when i started with puppet i choosen to now know an evoluated language
[14:25:00] centrx: ponzii: Search for the error message(s) online for hints
[14:25:07] centrx: hints/solutions
[14:25:15] Daneel: s/now/not/
[14:25:23] byte512: has joined #ruby
[14:26:12] Daneel: Burgestrand, when i past the example from https://ruby-doc.org/stdlib-2.4.0/libdoc/resolv/rdoc/Resolv.html i get an error
[14:26:25] Daneel: <main>': uninitialized constant Resolv (NameError)
[14:26:40] __Yiota: has joined #ruby
[14:26:49] Daneel: this docuement it not done for discovering
[14:27:00] mcantor: has joined #ruby
[14:27:38] burgestrand: Daneel documentation typically assumes some basic level of knowledge, you'll need to do `require "resolv"` in your code
[14:27:48] burgestrand: Daneel there are no puppet plugins or similar to do what you want?
[14:28:11] ponzii: centrx: Ruby installs on OS X theses days are a ****ing joke. Each time a different variant of SSL ****-up.
[14:28:30] Daneel: i was near i tested require but without "" :D
[14:29:10] ponzii: centrx: Python, by comparison, is a breeze to install. What is it with Ruby?
[14:29:51] centrx: ponzii: I don't know, I've always used Ruby on Linux with no problems
[14:30:17] lacrymology: has joined #ruby
[14:30:21] misthonk: Scheit, it was the date format that was messed up!
[14:30:43] burgestrand: has joined #ruby
[14:32:22] houhoulis: has joined #ruby
[14:32:58] truenito: has joined #ruby
[14:33:31] wsewolod: has joined #ruby
[14:33:35] pulkit4tech: has joined #ruby
[14:35:35] cajone: has joined #ruby
[14:39:52] aganov: has joined #ruby
[14:40:09] antoniobeyah: has joined #ruby
[14:42:22] yeticry: has joined #ruby
[14:43:20] User458764: has joined #ruby
[14:43:26] patarr: has joined #ruby
[14:43:40] blackmesa: has joined #ruby
[14:45:01] waltair: has joined #ruby
[14:45:42] Pumukel: has joined #ruby
[14:46:54] bhaak: I use rvm on OSX and Linux and don't remember any problems
[14:47:22] ableto: has joined #ruby
[14:49:25] misthonk: In ruby, if I want to set a variable from the command line, what would be the easiest way? Just need one.
[14:51:59] ljarvis: misthonk: X=foo ruby example.rb # in example.rb `puts ENV["foo"]
[14:52:35] elomatreb: or ruby -e '$something = 'test'' script.rb I think
[14:52:48] jaiks: has joined #ruby
[14:53:47] mark_66: has joined #ruby
[14:53:53] nofxxx: yeah env vars... -e pretty confuse for this
[14:54:40] elomatreb: I agree, but they specifically asked for setting a variable, although that may be a bad idea
[14:55:33] workmad3: if you're on the command line, why not `ruby example.rb foo` and then grab it with ARGV.first?
[14:56:09] davorb: has joined #ruby
[14:58:04] lightheaded: has joined #ruby
[14:59:19] misthonk: ljarvis: That makes sense, thanks!
[14:59:37] olivier__: has joined #ruby
[15:00:45] hahuang61: has joined #ruby
[15:01:24] patarr: has joined #ruby
[15:02:15] misthonk: aaargh, the amazon mws API is nuts. I get to request a report, but the ID is totally different from the actual one :/
[15:07:12] misthonk: This thing with parsers, how does that work? I've added "parser = client.get_report_request_list" and "parser.parse" but no output.
[15:07:40] snickers: has joined #ruby
[15:07:50] wnjuwl: has joined #ruby
[15:07:53] hxegon: ?code misthonk
[15:07:53] ruby[bot]: misthonk: We can't help you without your code, please post it to https://gist.github.com
[15:09:34] misthonk: hxegon: https://gist.github.com/anonymous/90fbe357c857efa2713755fe29b9c418
[15:11:48] hxegon: misthonk: Before I dig into this more, I'd *highly* recommend making wrapper classes for anything related to AWS. Generally you are only going to need a tiny subset of API functionality for a given service, so it really helps a lot in my experience
[15:13:18] nobitanobi: has joined #ruby
[15:15:49] misthonk: hxegon: Makes a whole lot of sense, it's just that I'm trying to keep these tools as simple as possible and do the rest with bash. I just want a way of listing reports, requesting reports and getting them
[15:15:54] nobitanobi: I have a question, when implementing the method `==` on a class, do you usually check if the given object is of the same class? Or you just check that the state is the same?
[15:15:57] misthonk: I'll use awk to parse the results
[15:16:34] misthonk: hxegon: But it's a bit tricky now since I don't get any output :D
[15:16:50] cagomez: has joined #ruby
[15:17:38] hxegon: misthonk: I'd try inspecting the Peddler::XMLParser returned by #get_report_request_list
[15:17:55] hxegon: also left a comment for the gist
[15:18:28] hxegon: My thought is that #get_report_request_list isn't matching anything, but not sure why
[15:18:48] choke: has joined #ruby
[15:20:29] duckpupp1: has joined #ruby
[15:21:01] misthonk: hxegon: I'm running excon in debug mode and I'm seeing the information that I want there
[15:21:16] misthonk: checkign your response :)
[15:21:40] jamesaxl: has joined #ruby
[15:23:25] misthonk: hxegon: Hm, still nothing, odd
[15:24:07] elomatreb: nobitanobi: I haven't done it much but I'd say so, since you'd get obscure errors if you tried to get the state of the other objects if it doesn't have the necessary methods
[15:26:57] cdg: has joined #ruby
[15:28:44] misthonk: hxegon: It's not that I'm just lacking something like puts or so?
[15:28:48] renchan: has joined #ruby
[15:29:09] hxegon: misthonk: that might be it haha, thought you were saying it didn't return anything
[15:29:40] synthroid: has joined #ruby
[15:30:21] teddysmoker: has joined #ruby
[15:30:52] misthonk: hxegon: it doesn't! Bah, I'm such a total noob at this.
[15:31:08] brent__: has joined #ruby
[15:31:35] misthonk: Added puts client.get_report_request_list and now I get "#<Excon::Response:0x007fff3c9c1768>"
[15:31:41] synthroid: has joined #ruby
[15:31:59] Lord_of_Life: has joined #ruby
[15:33:26] montanonic: has joined #ruby
[15:34:44] Rodya_: has joined #ruby
[15:37:24] mnemon: misthonk: what info are you looking for?
[15:37:38] mnemon: (from the responses)
[15:38:24] Pumukel: has joined #ruby
[15:39:48] mnemon: nobitanobi: I'd check for the state of the significant data, so for something like a String the actual chararray match and so on ... == match on the same class regardless of state/data doesn't seem like a very good idea.
[15:40:10] nobitanobi: I wanted to check on state as well as class.
[15:40:42] mnemon: ah, right, nvm :)
[15:41:16] misthonk: mnemon: A list of reports
[15:41:38] etehtsea: has joined #ruby
[15:41:54] JeanCarloMachado: has joined #ruby
[15:44:52] mnemon: you probably want to puts the .body if the response or something like that then :P
[15:45:15] __Yiota: has joined #ruby
[15:46:05] misthonk: mnemon: .body?
[15:47:44] [Butch]: has joined #ruby
[15:48:59] KnownSyntax: has joined #ruby
[15:50:34] [Butch]: has joined #ruby
[15:50:42] amclain: has joined #ruby
[15:55:19] MrJoshua: has joined #ruby
[15:55:25] synthroid: has joined #ruby
[15:56:14] milardovich: has joined #ruby
[15:59:12] ElderFain: has joined #ruby
[15:59:35] ledestin: has joined #ruby
[16:02:44] __Yiota: has joined #ruby
[16:05:15] tercenya: has joined #ruby
[16:09:24] srl295: has joined #ruby
[16:11:26] blackmesa: has joined #ruby
[16:12:04] gusrub: has joined #ruby
[16:13:30] dopamean_: has joined #ruby
[16:15:42] bmurt: has joined #ruby
[16:18:29] Lord_of_Life: has joined #ruby
[16:26:51] olivier__: has joined #ruby
[16:27:38] gusrub: has joined #ruby
[16:28:20] Lord_of_Life: has joined #ruby
[16:28:20] Lord_of_Life: has joined #ruby
[16:28:58] __Yiota: has joined #ruby
[16:29:09] olivier__: has joined #ruby
[16:35:36] raspado: has joined #ruby
[16:35:56] TomyLobo2: has joined #ruby
[16:37:42] aredridel: has joined #ruby
[16:38:50] raspado_: has joined #ruby
[16:39:12] olivier__: has joined #ruby
[16:39:15] swills_: has joined #ruby
[16:41:13] cagomez: has joined #ruby
[16:44:57] cagomez: has joined #ruby
[16:46:10] User458764: has joined #ruby
[16:46:54] tercenya: has joined #ruby
[16:47:19] srl295: has left #ruby: ()
[16:49:15] etehtsea: has joined #ruby
[16:51:06] rakm: has joined #ruby
[16:53:14] noob: has joined #ruby
[16:53:36] nobitanobi: has joined #ruby
[16:56:24] brent__: has joined #ruby
[16:57:05] cagomez: has joined #ruby
[16:58:40] AnoHito: has joined #ruby
[16:59:59] cagomez: has joined #ruby
[17:01:27] hahuang61: has joined #ruby
[17:01:37] patarr1: has joined #ruby
[17:03:05] _djbkd: has joined #ruby
[17:04:31] lightheaded: has joined #ruby
[17:05:07] kies: has joined #ruby
[17:05:46] __Yiota: has joined #ruby
[17:06:01] milardovich: has joined #ruby
[17:06:50] HoierM: has joined #ruby
[17:11:09] adam12: Has anybody build a microservice (over http) gem and accompanying client? I'm trying to decide if I should keep the client inside the gem. Would make keeping it in sync a lot easier.. thoughts?
[17:11:54] centrx: has joined #ruby
[17:13:04] adam12: It's an internal library so it doesn't really matter from an OSS point of view.
[17:14:02] t-recx: has joined #ruby
[17:14:03] jgnagy: has joined #ruby
[17:14:30] Tau: has joined #ruby
[17:14:41] gusrub: has joined #ruby
[17:15:41] despai: has joined #ruby
[17:19:18] AnoHito: has joined #ruby
[17:21:04] dionysus69: has joined #ruby
[17:24:08] lacrymology: has joined #ruby
[17:29:46] cdg: has joined #ruby
[17:30:23] milardovich: has joined #ruby
[17:33:22] JeanCarloMachado: has joined #ruby
[17:36:34] waltair: has joined #ruby
[17:37:00] montanonic: has joined #ruby
[17:39:37] duckpupp1: has joined #ruby
[17:40:35] enterprisey: has joined #ruby
[17:41:04] houhoulis: has joined #ruby
[17:41:52] shinnya: has joined #ruby
[17:42:42] hahuang61: has joined #ruby
[17:44:07] yurikoles: has joined #ruby
[17:44:59] yurikoles: Hi there. I had updated ruby via homebrew to 2.4.1 and now gem binaries is in new place
[17:45:14] yurikoles: There were befor in /usr/local/bin
[17:46:07] yurikoles: and now there are in /usr/local/Cellar/ruby/2.4.1/bin
[17:46:38] hxegon: yurikoles: Is this causing an issue, or are you just curious about why?
[17:46:52] yurikoles: We have filed issue in Homebrew, but I wanted to ask is there any changes in ruby paths around 2.4.1?
[17:47:14] yurikoles: It causes an issue since this path is not in PATH env var
[17:47:25] yurikoles: Here is issue https://github.com/Homebrew/homebrew-core/issues/11539
[17:47:55] yurikoles: The workaroun is simple: gem: --bindir /usr/local/bin in ~/.gemr
[17:48:56] pLaTo0n: has joined #ruby
[17:49:44] pLaTo0n: has left #ruby: ()
[17:49:46] havenwood: yurikoles: https://github.com/Homebrew/homebrew-core/blob/master/Formula/ruby.rb#L104
[17:50:14] gusrub: has joined #ruby
[17:50:35] nowhere_man: has joined #ruby
[17:50:37] yurikoles: pLaTo0n: Hallo!
[17:51:31] yurikoles: echo `brew --prefix`
[17:51:42] yurikoles: it must be in /usr/local/bin
[17:52:40] Mon_Ouie: has joined #ruby
[17:52:45] dminuoso: adam12: I would keep them apart, but have the client introduce a group: :testing dependency on the API.
[17:53:08] dminuoso: adam12: That gives you the separation of concerns but keep them together for the part that matters: verifying things work.
[17:54:00] despai: has joined #ruby
[17:54:14] muelleme: has joined #ruby
[17:55:40] milardovich: has joined #ruby
[17:58:43] pabloh: has joined #ruby
[18:00:10] chagel: has joined #ruby
[18:00:15] jamesaxl: has joined #ruby
[18:00:41] havenwood: yurikoles: I don't see the path moved from brew's end in the 2.4.1 commit: https://github.com/Homebrew/homebrew-core/commit/a802eae778b2ca34c948d1ae0b8d0232352be89f
[18:01:33] D9: has joined #ruby
[18:01:47] gusrub: has joined #ruby
[18:01:55] yurikoles: havenwood: so I went here to ask maybe someone knows why it may be broken in recent release?
[18:02:24] yurikoles: I'm the commiter btw
[18:02:49] greenhat: has joined #ruby
[18:02:58] luckyruby: has joined #ruby
[18:05:05] adam12: dminuoso: Good idea - thanks.
[18:06:30] chagel: has joined #ruby
[18:06:47] matthewd: yurikoles: Hmm. Can you confirm (e.g. via `gem env`) that the default path has indeed changed between the versions?
[18:07:52] yurikoles: https://github.com/Homebrew/homebrew-core/pull/11474#issuecomment-289041747
[18:08:56] matthewd: Okay, I guess I'd next try installing rubygems 2.6.11 in 2.4.0
[18:09:19] matthewd: It's almost certainly a change on the rubygems side, but worth checking
[18:10:13] devster31: has joined #ruby
[18:12:06] Rodya_: has joined #ruby
[18:17:27] enterprisey: has joined #ruby
[18:17:35] _djbkd: has joined #ruby
[18:18:47] dopamean_: has joined #ruby
[18:19:48] olivier__: has joined #ruby
[18:20:16] RenatoSilva: has joined #ruby
[18:20:20] tercenya: has joined #ruby
[18:20:28] _djbkd: has joined #ruby
[18:22:27] nobitanobi: has joined #ruby
[18:23:34] yurikoles: It seems to be definetly in ruby-lang https://gist.github.com/yurikoles/2408cc683fd16fe6f842a057af104727
[18:24:19] olivier__: has joined #ruby
[18:24:32] olivier__: has joined #ruby
[18:25:22] matthewd: That's being set/overridden in GEM CONFIGURATION
[18:27:39] cdg: has joined #ruby
[18:34:07] renchan: has joined #ruby
[18:34:28] workmad3: has joined #ruby
[18:34:59] User458764: has joined #ruby
[18:38:27] olivier__: has joined #ruby
[18:42:26] muelleme_: has joined #ruby
[18:43:32] kons: has joined #ruby
[18:45:56] synthroid: has joined #ruby
[18:47:55] arup_r: has joined #ruby
[18:49:06] ldnunes: has joined #ruby
[18:50:23] hxegon: has joined #ruby
[18:50:38] gusrub: has joined #ruby
[18:54:12] enterprisey: has joined #ruby
[18:55:42] davorb: has joined #ruby
[18:56:21] Brak___________: has joined #ruby
[18:58:17] Batholith: has joined #ruby
[19:01:38] Yonk_: has joined #ruby
[19:02:49] olivier__: has joined #ruby
[19:05:19] charles81_: has joined #ruby
[19:05:56] cstrahan: has joined #ruby
[19:07:22] gusrub: has joined #ruby
[19:07:42] gusrub: has joined #ruby
[19:12:35] pLaTo0n: has joined #ruby
[19:16:37] nobitanobi: has joined #ruby
[19:17:23] jenrzzz: has joined #ruby
[19:19:41] _djbkd: has joined #ruby
[19:20:57] cagomez: has joined #ruby
[19:25:04] mikecmpbll: has joined #ruby
[19:26:24] cdg: has joined #ruby
[19:28:04] synthroid: has joined #ruby
[19:28:46] User458764: has joined #ruby
[19:36:05] jgnagy: has joined #ruby
[19:39:37] kirun: has joined #ruby
[19:40:21] cpruitt: has joined #ruby
[19:41:08] kitikonti: has joined #ruby
[19:45:01] lxsameer: has joined #ruby
[19:45:47] jenrzzz: has joined #ruby
[19:45:47] jenrzzz: has joined #ruby
[19:47:07] Pumukel: has joined #ruby
[19:52:19] patarr: has joined #ruby
[19:54:08] petems: has joined #ruby
[19:56:48] govg: has joined #ruby
[20:01:10] AndrewIsHere: has joined #ruby
[20:05:03] dlitvak: has joined #ruby
[20:08:42] nobitanobi: has joined #ruby
[20:11:02] oleingem_: has joined #ruby
[20:15:40] __Yiota: has joined #ruby
[20:16:05] tolerablyjake: has joined #ruby
[20:17:10] cagomez: has joined #ruby
[20:19:42] avrelaun: has joined #ruby
[20:24:49] avrelaun: has joined #ruby
[20:25:48] jobewan: has joined #ruby
[20:26:15] synthroid: has joined #ruby
[20:32:53] johnzorn: has joined #ruby
[20:33:17] centrx: has joined #ruby
[20:33:20] esObe_: has joined #ruby
[20:33:53] cdg: has joined #ruby
[20:36:25] __Yiota: has joined #ruby
[20:37:57] knight33: has joined #ruby
[20:38:10] blackmesa: has joined #ruby
[20:43:27] hutch34_: has joined #ruby
[20:45:47] sneakerhax: has joined #ruby
[20:48:56] cdg: has joined #ruby
[20:49:35] incomprehensibly: has joined #ruby
[20:49:56] Pumukel: has joined #ruby
[20:53:17] tvw: has joined #ruby
[20:55:54] ascio: has joined #ruby
[20:56:06] _djbkd: has joined #ruby
[20:56:16] davorb: has joined #ruby
[21:01:35] zeddan: has joined #ruby
[21:02:48] jenrzzz_: has joined #ruby
[21:08:22] zeddan: has joined #ruby
[21:12:11] loincloth: has joined #ruby
[21:12:34] synthroid: has joined #ruby
[21:16:21] SeepingN: has joined #ruby
[21:17:28] _djbkd: has joined #ruby
[21:17:41] lightheaded: has joined #ruby
[21:19:19] blackmesa: has joined #ruby
[21:20:04] lheaded: has joined #ruby
[21:21:47] cyphase: has joined #ruby
[21:23:30] montanonic: has joined #ruby
[21:27:42] dysfigured: would you say that ruby allows for a lot of functional programming ideas? or is it mainly for oop-like code?
[21:27:48] mooser: has joined #ruby
[21:30:03] hxegon: dysfigured: both
[21:30:14] catbusters: has joined #ruby
[21:30:53] hxegon: While it falls short of allowing natural functional programming 100%, it goes a lot farther than most other OO languages
[21:31:34] hxegon: OO and FP can somewhat coexist, and I think ruby has struck a pretty good balance.
[21:32:41] JoshS: has joined #ruby
[21:32:44] dysfigured: i'm coming from [mostly] javascript and i've learned a lot of FP from js, i guess i'm wondering how they compare
[21:33:33] hxegon: You can do 100% FP in js, but not ruby. You can however get a lot of milage out of FP ideas/techniques in ruby.
[21:33:34] allisio: The only thing Ruby lacks in that comparison is "first-class methods".
[21:34:00] allisio: You *could* use lambdas for all your Ruby FP, but you'd run into walls early and often.
[21:34:35] hxegon: As someone who has tried to do this, it get's confusing/ugly very quick. Would not recommend. Learned a lot about procs/lambdas though
[21:35:06] dysfigured: oh, there's no first class functions in ruby? dang that's a bummer
[21:35:32] hxegon: There is, sort of...
[21:35:57] hxegon: I don't think I can explain it super clearly, but for example
[21:36:07] dysfigured: i just learned about implicit blocks with yield and that almost seems to be the same..
[21:36:12] allisio: There's the Method and UnboundMethod classes, and you can receive and return Procs wherever you wish.
[21:36:22] hxegon: >> [1, 2, 3].map { |n| n * 2 }
[21:36:23] ruby[bot]: hxegon: # => [2, 4, 6] (https://eval.in/760990)
[21:37:36] dysfigured: ACTION wonders if you can make a curried version of map in ruby
[21:38:02] montanonic: has joined #ruby
[21:38:18] _djbkd: has joined #ruby
[21:38:26] allisio: dysfigured: How do you mean? #map takes one argument.
[21:38:53] dysfigured: right, a curried version should take two, the block, and then the array
[21:39:31] dysfigured: in js with ramda you can do map(fn)(array)
[21:40:03] dysfigured: which means you can then `compose(map(fn), filter(fn))(array)
[21:40:07] allisio: Sounds like you'd want Proc#apply, and I do think that method's absence is conspicuous.
[21:41:20] cagomez: has joined #ruby
[21:42:16] zeddan: has joined #ruby
[21:43:10] _djbkd: has joined #ruby
[21:43:50] ResidentBiscuit: has joined #ruby
[21:46:36] jenrzzz: has joined #ruby
[21:47:19] allisio: dysfigured: Like hxegon suggested, it's a little gruesome: https://eval.in/760993
[21:48:04] allisio: Er, "doubles" should obviously be "triples" there.
[21:48:15] Azure: has joined #ruby
[21:48:37] muelleme_: has joined #ruby
[21:50:05] dysfigured: implementation seems a bit ugly but the usage doesn't seem terrible (albeit completely alien coming from js)
[21:50:31] hxegon: It's for sure possible, but not something you'd want to do in any real code
[21:52:49] cagomez: has joined #ruby
[21:55:36] Pumukel: has joined #ruby
[22:15:06] paramourne: has joined #ruby
[22:19:06] davix: has joined #ruby
[22:19:20] elifoster: has joined #ruby
[22:19:43] emerson: has joined #ruby
[22:23:33] Verity: has joined #ruby
[22:23:59] Verity: Could someone please tell me how I managed to screw this up? It's supposed to build packets of size 10 bytes and it used to, I changed some variable naming schemes and it seems the behavior of the program maybe have changed?
[22:24:02] Verity: http://pastebin.com/5MjZVLcZ
[22:24:02] ruby[bot]: Verity: as I told you already, please use https://gist.github.com
[22:24:18] Verity: if possible, I hint would be even better.... I've been trying to get this myself but no luck
[22:26:35] cagomez: has joined #ruby
[22:27:03] jgnagy: has joined #ruby
[22:27:21] hutch34_: has joined #ruby
[22:28:26] spiette: omg, net/ssh is pita if you want it to accept the host key...
[22:28:32] ahrs: has joined #ruby
[22:29:19] spiette: when net/ssh think "key" it use the full pem format instead of the fingerprint format used in known_hosts
[22:29:40] cagomez: has joined #ruby
[22:29:49] olivier__: has joined #ruby
[22:35:04] _djbkd: has joined #ruby
[22:35:48] maattdd_: has joined #ruby
[22:37:40] matthewd: Verity: The problem is on line 24
[22:39:48] JeanCarloMachado: has joined #ruby
[22:40:18] matthewd: Verity: It's pretty subtle, so you might need the actual answer. But see if you can get there with the hint first.
[22:40:47] Verity: ok, I'm trying now =)
[22:41:10] matthewd: Verity: Bonus debugging suggestion: feed it a simple [predictable, non-repeating] input like the alphabet, and then look at what's coming out.
[22:48:43] Verity: is it an error in what I think ruby is doing, or my own logic?
[22:49:12] matthewd: Probably somewhere in between
[22:49:44] rhyselsmore: has joined #ruby
[22:51:40] matthewd: Use `p foo` to see the value of foo at a given place (it's a shortcut for `puts foo.inspect`)
[22:51:53] pLaTo0n: has left #ruby: ("Leaving")
[22:51:58] matthewd: Check what's happening to SOH
[22:54:44] brent__: has joined #ruby
[22:54:56] AndBobsYourUncle: has joined #ruby
[23:10:48] CloCkWeRX: has joined #ruby
[23:11:51] gusrub: has joined #ruby
[23:12:27] allisio: For reference, `p` is technically a shortcut for `(puts foo.inspect; foo)`, which makes it even more convenient.
[23:14:38] AndBobsYourUncle: has joined #ruby
[23:15:43] blackmesa: has joined #ruby
[23:16:34] jgnagy: has joined #ruby
[23:29:21] kons: has joined #ruby
[23:34:48] tercenya: has joined #ruby
[23:39:34] houhoulis: has joined #ruby
[23:39:41] CloCkWeRX: has joined #ruby
[23:40:40] workmad3: has joined #ruby
[23:41:31] zacts: has joined #ruby
[23:41:50] hutch34_: has joined #ruby
[23:42:45] ahrs: has joined #ruby
[23:44:51] __Yiota: has joined #ruby
[23:45:48] duckpupp1: has joined #ruby
[23:58:13] astrobunny: has joined #ruby
[23:59:25] Pumukel: has joined #ruby