« Back to channel list

#ruby - 15 April 2016

« Back 1 day Forward 1 day »
[00:02:34] Graphettion: has joined #ruby
[00:02:37] Milos|Work: smathy, Ox0dea ok I updated rails from 4.1.4 to 4.2 which updated everything else to 4.2 but now I get
[00:02:37] Milos|Work: NoMethodError: undefined method `from_now' for 31255686:Fixnum
[00:02:56] baweaver: Say I'm making a Ruby Daemon and I want to inject an init.d script on gem install. Should I just create the file from a template into /etc/init.d?
[00:03:09] Milos|Work: due_at: rand(1.year).from_now
[00:04:58] Milos|Work: maybe it needs to be rand(1.year.from_now) ? even though it works on other versions
[00:05:17] pilne: has left #ruby: ("Leaving!")
[00:05:44] Milos|Work: but if I do that then I get TypeError: no implicit conversion of ActiveSupport::TimeWithZone into Integer
[00:06:20] Milos|Work: which makes sense
[00:07:11] baweaver: thinking of making an install argument for it to optionally make it into a service
[00:13:14] bkxd: has joined #ruby
[00:13:42] d0nn1e: has joined #ruby
[00:14:08] Jonah11_: has joined #ruby
[00:15:42] CloCkWeRX: has joined #ruby
[00:16:14] zacstewart: has joined #ruby
[00:16:50] Authenticator: has joined #ruby
[00:17:43] northrup: has joined #ruby
[00:19:26] xcesariox: has joined #ruby
[00:19:46] chagel: has joined #ruby
[00:20:21] Chunlea_: has joined #ruby
[00:23:25] charliesome: has joined #ruby
[00:23:33] Ox0dea: baweaver: What's an install argument?
[00:23:43] statelesscode: has joined #ruby
[00:23:48] baweaver: gem install my_daemon
[00:23:59] baweaver: sudo my_daemon install_service
[00:24:05] baweaver: something like that.
[00:24:15] DLSteve: has left #ruby: ("All rise, the honorable DLSteve has left the channel.")
[00:24:29] Ox0dea: I thought you knew of a way to determine the arguments with which `gem install` was invoked from within the Rakefile "extension".
[00:24:48] baweaver: running mostly blind here
[00:24:57] Ox0dea: That's how you'd stick something into /etc/ on install, at any rate.
[00:25:21] Ox0dea: The `spec.extensions = ['Rakefile']` trick, I mean.
[00:25:49] baweaver: I'll keep it in mind
[00:27:45] kadoppe: has joined #ruby
[00:28:09] abyx: has joined #ruby
[00:28:10] william3: has joined #ruby
[00:31:52] kirillzh: has joined #ruby
[00:32:16] jenrzzz: has joined #ruby
[00:32:17] jenrzzz: has joined #ruby
[00:34:17] KensoDev: has joined #ruby
[00:36:37] kadoppe: has joined #ruby
[00:38:29] Jonah11_: has joined #ruby
[00:38:59] JamesBrink: has joined #ruby
[00:39:13] Authenticator: I'm using bundler and trying to vendor my deps but it tries to vendor my own gemfiles, recursively. What's wrong?
[00:43:19] Jonah11_: has joined #ruby
[00:43:47] curses: has joined #ruby
[00:43:54] GinoMan2440: has joined #ruby
[00:46:54] BtcBen: has joined #ruby
[00:47:17] lkba_: has joined #ruby
[00:49:42] abyx: has joined #ruby
[00:50:37] chouhoulis: has joined #ruby
[00:53:12] bronson: has joined #ruby
[00:55:08] Jonah11_: has joined #ruby
[00:55:52] kirillzh_: has joined #ruby
[00:58:23] Trynemjoel: has joined #ruby
[01:00:52] curses: has joined #ruby
[01:01:01] nando293921: has joined #ruby
[01:01:09] scottschecter: has joined #ruby
[01:03:36] Trynemjoel: has joined #ruby
[01:06:28] marktwo: has joined #ruby
[01:07:08] ur5us: has joined #ruby
[01:07:41] kadoppe: has joined #ruby
[01:08:05] ur5us_: has joined #ruby
[01:11:27] ekinmur: has joined #ruby
[01:12:25] Jonah11__: has joined #ruby
[01:13:14] Jonah11_: has joined #ruby
[01:17:28] Yiota: has joined #ruby
[01:22:55] terminalrecluse: has joined #ruby
[01:23:41] Jonah11_: has joined #ruby
[01:24:09] swills: has joined #ruby
[01:24:10] kadoppe: has joined #ruby
[01:24:48] dcunit3d: has joined #ruby
[01:25:39] bokayio: has joined #ruby
[01:26:37] sp4rrow: has joined #ruby
[01:27:10] Denart_: has joined #ruby
[01:28:42] william3: has joined #ruby
[01:35:09] Ox0dea: baweaver: !
[01:35:18] baweaver: Ox0dea: ...
[01:35:34] Ox0dea: baweaver: ‽
[01:36:07] Denart_: has joined #ruby
[01:36:28] zacstewart: has joined #ruby
[01:36:42] Ox0dea: ACTION concedes before this gets outta hand.
[01:36:51] baweaver: yeah, was about to say the same
[01:45:22] baweaver: has joined #ruby
[01:46:24] lemur: has joined #ruby
[01:50:46] kadoppe: has joined #ruby
[01:51:55] william3: has joined #ruby
[01:54:38] marktwo: has joined #ruby
[01:56:07] marktwo: has joined #ruby
[01:59:28] nprorepti: has joined #ruby
[01:59:52] Digpig: has joined #ruby
[02:00:34] Waqas: has joined #ruby
[02:01:11] BtcBen: has joined #ruby
[02:02:28] Cohedrin: has joined #ruby
[02:04:02] aurum_infide: has joined #ruby
[02:05:12] A124: has joined #ruby
[02:06:30] william3: has joined #ruby
[02:10:53] LaT0rtue: has joined #ruby
[02:11:07] IrishGringo: has joined #ruby
[02:12:10] Jonah11_: has joined #ruby
[02:14:00] bkxd: has joined #ruby
[02:16:17] User458764: has joined #ruby
[02:18:09] cdg: has joined #ruby
[02:19:55] workmad3: has joined #ruby
[02:20:59] hxegon: has joined #ruby
[02:21:58] zzach: has joined #ruby
[02:23:01] arlek_: has joined #ruby
[02:23:21] mustmodify__: has joined #ruby
[02:24:25] smathy_: has joined #ruby
[02:24:32] tristanp: has joined #ruby
[02:25:12] Pupeno: has joined #ruby
[02:26:48] neanderslob: has joined #ruby
[02:27:43] skweek: has joined #ruby
[02:31:05] LoneHerm_: has joined #ruby
[02:32:35] william3: has joined #ruby
[02:32:48] cout: has joined #ruby
[02:34:51] ur5us: has joined #ruby
[02:35:03] swills: has joined #ruby
[02:35:42] woodruffw: has joined #ruby
[02:35:56] claw: has joined #ruby
[02:36:12] woodruffw: has joined #ruby
[02:37:03] hxegon: has joined #ruby
[02:39:01] fedexo: has joined #ruby
[02:39:08] kies: has joined #ruby
[02:39:56] chagel: has joined #ruby
[02:40:57] jolts: has joined #ruby
[02:41:15] malcolmva: has joined #ruby
[02:41:59] jolts: has joined #ruby
[02:42:42] diegoaguilar: has joined #ruby
[02:42:59] Eiam_: has joined #ruby
[02:43:28] RegulationD: has joined #ruby
[02:45:15] jolts: has joined #ruby
[02:45:30] P_R_Deltoid: has joined #ruby
[02:45:59] Channel6: has joined #ruby
[02:46:00] rrichardsr3: has joined #ruby
[02:46:18] jolts: has joined #ruby
[02:46:27] P_R_Deltoid: I am trying to use Scan to create an array of all repeating digits (ie 110000011 would give ['11', '00000', '11']. I tried the regex pattern \d\1+ but I get an invalid backreference error and I am not sure what that means
[02:46:38] Jonah11_: has joined #ruby
[02:46:46] cajone: has joined #ruby
[02:47:08] P_R_Deltoid: "invalid backref number/name: /\d\1+/"
[02:49:46] P_R_Deltoid: Trying with \d as a capture "/(\d)\1+/" prevents the error but the array basically compresses the results
[02:49:50] jolts: has joined #ruby
[02:50:08] sesquipedalian: has joined #ruby
[02:50:51] jolts: has joined #ruby
[02:52:04] Hobart: will rubygems.org pick up gem changes if the gem version hasn't been bumped? (re: https://bugs.ruby-lang.org/issues/12284 )
[02:53:16] Arcaire: if the gem changes the version gets bumped
[02:53:20] Arcaire: you can't push to the same version
[02:54:23] jolts: has joined #ruby
[02:54:26] djbkd: has joined #ruby
[02:55:35] bronson: has joined #ruby
[02:55:46] toretore: has joined #ruby
[02:56:17] noService: has joined #ruby
[02:58:41] eljimmy: has joined #ruby
[02:58:42] Ox0dea: P_R_Deltoid: The problem is that #scan returns all of the captures if its argument contains any.
[03:00:04] Ox0dea: You'll need to capture the \d (like you're doing) in order to refer to it, but then you've got to capture the run as well.
[03:00:15] Ox0dea: >> '11000011'.scan /((\d)\2*)/
[03:00:16] bruno-: has joined #ruby
[03:00:16] ruby[bot]: Ox0dea: # => [["11", "1"], ["0000", "0"], ["11", "1"]] (https://eval.in/553659)
[03:00:40] Ox0dea: Not quite what you want either, but there's no way to convince #scan to DWIM here.
[03:01:58] P_R_Deltoid: I actually found an SO with that exact solution, but maps for &first
[03:02:03] P_R_Deltoid: to remove the second values
[03:02:09] P_R_Deltoid: and turn it into a single dimension array
[03:02:13] P_R_Deltoid: so that works well enough
[03:02:25] Ox0dea: Yep, that'd do it.
[03:03:31] william3: has joined #ruby
[03:05:22] hxegon: has joined #ruby
[03:07:56] kadoppe: has joined #ruby
[03:08:07] Jonah11_: has joined #ruby
[03:08:50] andikr: has joined #ruby
[03:11:31] Ox0dea: Hobart: Not sure why Nobu didn't push the fix, but I imagine it's on his agenda.
[03:11:36] bruno-: has joined #ruby
[03:11:58] Ox0dea: Not sure if there's any special ceremony to do with gems that come bundled with Ruby itself.
[03:12:17] darkf: has joined #ruby
[03:14:38] Madplatypus: has joined #ruby
[03:16:15] braincras: has joined #ruby
[03:17:41] ramfjord: has joined #ruby
[03:22:38] Authenticator: has joined #ruby
[03:22:57] anthony: has joined #ruby
[03:23:12] tAn: has joined #ruby
[03:23:30] Synthead: has joined #ruby
[03:23:46] dopieee: has joined #ruby
[03:23:57] brainslug: has joined #ruby
[03:24:04] zacstewa_: has joined #ruby
[03:24:24] freerobby1: has joined #ruby
[03:24:33] Jonah11__: has joined #ruby
[03:25:24] knowtheory_: has joined #ruby
[03:25:32] tristanp_: has joined #ruby
[03:25:34] Kharma: has joined #ruby
[03:25:44] curses_: has joined #ruby
[03:25:45] arlek__: has joined #ruby
[03:25:52] Coldblackice: has joined #ruby
[03:26:25] yaewa: has joined #ruby
[03:26:45] nodejunkie: has joined #ruby
[03:26:58] Jonah11__: has joined #ruby
[03:26:58] err_ok_: has joined #ruby
[03:27:58] bry4n: has joined #ruby
[03:28:00] coyo: has joined #ruby
[03:28:08] Muz_: has joined #ruby
[03:28:19] sulky__: has joined #ruby
[03:29:48] chagel: has joined #ruby
[03:30:07] devbug: has joined #ruby
[03:30:19] charliesome: has joined #ruby
[03:30:25] fedexo_: has joined #ruby
[03:30:30] Chunlea_: has joined #ruby
[03:30:45] nando293921: has joined #ruby
[03:31:08] M-shine: has joined #ruby
[03:31:13] Spaceghost|work: has joined #ruby
[03:31:23] dopie2: has joined #ruby
[03:31:59] mighty_gorilla: has joined #ruby
[03:32:04] Trynemjoel: has joined #ruby
[03:32:05] Lightsword_: has joined #ruby
[03:32:19] nullwarp_: has joined #ruby
[03:32:33] coffeejunk: has joined #ruby
[03:33:09] tubuliferous: has joined #ruby
[03:33:24] martinbjeldbak: has joined #ruby
[03:33:44] ur5us: has joined #ruby
[03:33:51] P_R_Deltoid: has joined #ruby
[03:34:16] braincrash: has joined #ruby
[03:36:08] rrichardsr3: has joined #ruby
[03:36:09] samuelkadolph: has joined #ruby
[03:37:32] theery: has joined #ruby
[03:38:48] Jonah11_: has joined #ruby
[03:38:51] funnel: has joined #ruby
[03:38:57] siaW: has joined #ruby
[03:39:25] Madplatypus: has joined #ruby
[03:39:40] toretore: has joined #ruby
[03:39:44] patrick_star: has joined #ruby
[03:40:03] [spoiler]: has joined #ruby
[03:40:07] JamesBrink: has joined #ruby
[03:40:14] hightower3: has joined #ruby
[03:40:43] minimalism: has joined #ruby
[03:42:56] Caelum: has joined #ruby
[03:43:31] GinoMan2440: has joined #ruby
[03:45:12] barajasfab: has joined #ruby
[03:45:13] baweaver: has joined #ruby
[03:47:06] ssiris: has joined #ruby
[03:48:43] JoL1hAHN: has joined #ruby
[03:48:48] ssm_: has joined #ruby
[03:48:56] Guest83227: has joined #ruby
[03:50:04] gix: has joined #ruby
[03:51:01] yfeldblum: has joined #ruby
[03:51:10] SilverKey: has joined #ruby
[03:52:06] noService: has joined #ruby
[03:52:25] P_R_Deltoid: So now I am trying to make that scan function capture a variable amount of repeating characters, and I can't figure out how to use a variable inside of the expression
[03:52:40] jdm: has joined #ruby
[03:52:53] P_R_Deltoid: scan(/((\d)\#{timeunit}*)/)
[03:53:01] P_R_Deltoid: replacing the digit with my variable
[03:53:06] P_R_Deltoid: but that does not seem to work
[03:55:37] Ox0dea: P_R_Deltoid: \x is a backreference; the x refers to a capture group, not the number of times to match.
[03:56:11] garethrees: has joined #ruby
[03:56:16] Ox0dea: You want /\d{x}/ or so.
[03:56:28] P_R_Deltoid: it has to be a repeating number though
[03:56:31] P_R_Deltoid: not just a certain amount
[03:57:00] Ox0dea: Backreferences and repetition specifiers can be combined.
[03:57:13] P_R_Deltoid: Is * the repetition specifier?
[03:58:16] baweaver: Might be good to read through a regex tutorial or two
[03:58:25] baweaver: rubular.com will be handy for live testing them
[03:58:35] Ox0dea: P_R_Deltoid: + is "more than one", * is "any number", {x} is "exactly x", {m,} is "at least m", {,n} is "at most n", {m,n} is... have a guess.
[04:00:27] ledestin: has joined #ruby
[04:02:47] Yiota: has joined #ruby
[04:04:40] Ropeney: has joined #ruby
[04:05:05] P_R_Deltoid: so if \1 isn't referring to the number of digits to capture, but instead to the capture group, why doesn't /(\d)\1+/ capture everything up until the digit changes? (ie. 1100011 => [11, 000, 11]) ?
[04:05:36] Ox0dea: For #scan?
[04:05:44] garethrees: has joined #ruby
[04:05:52] Ox0dea: That's already been addressed.
[04:06:17] william3: has joined #ruby
[04:06:51] Ox0dea: http://archive.is/2aJ9z#selection-9831.2-9831.107
[04:07:11] Maletor: has joined #ruby
[04:09:22] shevy: cool, never saw that selection thingy before
[04:11:01] j2k: has joined #ruby
[04:11:37] kareeoleez: has joined #ruby
[04:11:38] SilverKey: has joined #ruby
[04:11:41] garethrees: has joined #ruby
[04:11:55] smalltalker: has joined #ruby
[04:13:17] Jonah11_: has joined #ruby
[04:13:20] toretore: has joined #ruby
[04:14:43] bkxd: has joined #ruby
[04:15:17] P_R_Deltoid: I'm an idiot and internally talked myself in a confusing circle which caused me to ask the same question twice
[04:15:36] Ox0dea: All good. It's easy enough to see the source of your confusion.
[04:15:57] Ox0dea: I think #scan does the right thing and this is just one of the cases where it's slightly inconvenient.
[04:17:02] Ox0dea: There are such things as non-capturing groups, but then you can't reference them.
[04:17:30] Ox0dea: >> '1foo23bar4'.scan /\d(?:foo|bar)\d/
[04:17:31] ruby[bot]: Ox0dea: # => ["1foo2", "3bar4"] (https://eval.in/553667)
[04:20:28] Guest69296: has joined #ruby
[04:23:40] garethrees: has joined #ruby
[04:24:44] ddv: has joined #ruby
[04:25:07] rickmasta: has joined #ruby
[04:25:17] ctrlrsf: has joined #ruby
[04:25:33] NikkGer: has joined #ruby
[04:26:03] baweaver: !ban NikkGer
[04:26:04] ruby[bot]: +bb NikkGer!*@*$#ruby-banned *!*@gateway/web/cgi-irc/kiwiirc.com/ip.108.185.212.222$#ruby-banned
[04:26:04] ruby[bot]: ruby[bot] kicked NikkGer: offense, see http://ruby-community.com/pages/user_rules
[04:27:02] IrishGringo: has joined #ruby
[04:28:50] astrobunny: has joined #ruby
[04:30:27] pawnbox: has joined #ruby
[04:33:56] CloCkWeRX: has joined #ruby
[04:34:40] tubuliferous: has joined #ruby
[04:35:02] Jonah11_: has joined #ruby
[04:36:02] LoneHermit: has joined #ruby
[04:36:57] ramfjord: has joined #ruby
[04:38:31] Radar: !unban NikkGer
[04:38:33] ruby[bot]: -bb NikkGer!*@*$#ruby-banned *!*@gateway/web/cgi-irc/kiwiirc.com/ip.108.185.212.222$#ruby-banned
[04:39:20] NG98: has joined #ruby
[04:39:41] bruno-: has joined #ruby
[04:39:44] NG98: what is a good book on ruby paradigms?
[04:40:50] baweaver: Eloquent Ruby for syntax and other items, Practical Object Oriented Ruby for learning OO paradigms
[04:40:58] ICantCook: has joined #ruby
[04:41:07] NG98: thank you
[04:41:59] NG98: baweaver: is it this book? http://www.poodr.com/
[04:42:04] NG98: the title is slightly different
[04:42:25] baweaver: Design in, forgot that part
[04:42:38] baweaver: but yeah, POODR
[04:43:15] NG98: lol Poo Dr.
[04:43:49] tjbiddle: has joined #ruby
[04:43:51] pawnbox: has joined #ruby
[04:45:31] shevy: poodles and beavers!
[04:46:08] shevy: huh ban evasion NG98?
[04:46:27] edwinvdgraaf: has joined #ruby
[04:46:39] Radar: shevy: neg. Mistaken identity.
[04:46:49] Ox0dea: It's not, though.
[04:47:04] NG98: thanks for all the help everyone :)
[04:47:20] NG98: has left #ruby: ()
[04:49:44] astrobun_: has joined #ruby
[04:54:38] wolffles: has joined #ruby
[04:55:08] Maletor: has joined #ruby
[04:55:10] pawnbox_: has joined #ruby
[04:56:55] hxegon: has joined #ruby
[04:57:07] agent_white: has joined #ruby
[04:57:22] bronson: has joined #ruby
[04:58:09] wolffles: :”+” => :+ how to x = “+” ; :+x => :+
[04:58:25] wolffles: idk if that makes sense
[04:58:58] Ox0dea: &ri #to_sym wolffles
[04:58:58] `derpy: wolffles: http://ruby-doc.org/core-2.3.0/String.html#method-i-to_sym
[04:59:50] Ox0dea: You can also use interpolation :"{in here}".
[05:02:00] Jonah11_: has joined #ruby
[05:02:15] benlieb: has joined #ruby
[05:02:33] Sammichmaker: has joined #ruby
[05:02:38] pawnbox: has joined #ruby
[05:03:05] jdm: has joined #ruby
[05:03:28] Devalo: has joined #ruby
[05:04:38] IrishGringo: has joined #ruby
[05:04:44] tAn: has joined #ruby
[05:05:16] P_R_Deltoid: >> ' '.split(' ')
[05:05:17] ruby[bot]: P_R_Deltoid: # => [] (https://eval.in/553690)
[05:05:26] curses: has joined #ruby
[05:05:28] pawnbox: has joined #ruby
[05:06:12] baweaver: >> ' '.scan(/ /)
[05:06:13] ruby[bot]: baweaver: # => [" ", " ", " "] (https://eval.in/553691)
[05:06:19] Ox0dea: P_R_Deltoid: http://i.imgur.com/i9Z4egW.gif
[05:06:46] P_R_Deltoid: I was seeing if it would give me two entries in an array with spaces in them
[05:06:59] P_R_Deltoid: Kinda like what baweaver did there
[05:07:19] baweaver: >> ' '.scan(/ /).size
[05:07:20] ruby[bot]: baweaver: # => 3 (https://eval.in/553692)
[05:07:23] P_R_Deltoid: >> '.. . ..'.scan(/ /)
[05:07:23] baweaver: >> ' '.scan(/ /).size == 2
[05:07:24] ruby[bot]: P_R_Deltoid: # => [" ", " ", " "] (https://eval.in/553693)
[05:07:36] P_R_Deltoid: yeah, can't do that. There are other values in there
[05:07:39] ruby[bot]: baweaver: # => false (https://eval.in/553694)
[05:07:42] william3: has joined #ruby
[05:09:24] free_beard: has joined #ruby
[05:09:51] noodle: has joined #ruby
[05:10:26] free_beard: hi guys, I'm trying to start a rails app through uwsgi. I installed uwsgi with gem install uwsgi, but when trying to use the binary, I get - No such file or directory - /usr/local/rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/uwsgi-2.0.12/ext/uwsgi/uwsgi.ruby
[05:10:33] pawnbox: has joined #ruby
[05:10:38] free_beard: I suppose needles to say I'm using 2.3.0 and rbenv
[05:11:36] free_beard: I can't tell why it's missing or why it would be needed. please be gentle, as I'm not actually fluent in ruby, I'm just trying to deploy an existing app
[05:12:22] Jonah11_: has joined #ruby
[05:13:30] Ox0dea: free_beard: https://github.com/unbit/uwsgi/blob/master/ext/uwsgi/extconf.rb
[05:13:43] Ox0dea: That's the script that seems to put that file in place; it must not've gotten run during installation.
[05:14:34] jtoy: has joined #ruby
[05:15:03] free_beard: Ox0dea: that makes sense, thanks. It's strange that running RBENV_VERSION=2.3.0 gem install uwsgi wouldn't put that file in place
[05:15:04] kadoppe: has joined #ruby
[05:15:15] pawnbox_: has joined #ruby
[05:15:57] sauvin: has joined #ruby
[05:16:28] Jonah11__: has joined #ruby
[05:17:02] Ox0dea: free_beard: Well, there's no associated gemspec, which is pretty weird. That's where you tend specify that extconf.rb should be run during installation.
[05:17:30] theery: has joined #ruby
[05:17:39] hakunin: has joined #ruby
[05:18:16] sp4rrow: has joined #ruby
[05:18:48] madgen: has joined #ruby
[05:19:31] Ox0dea: Er, scratch that. It's there in the root of the repo, they just didn't package it up with the gem.
[05:22:21] pawnbox: has joined #ruby
[05:23:08] devbug: has joined #ruby
[05:24:44] stannard_: has joined #ruby
[05:26:13] agentmee1kat: has joined #ruby
[05:26:30] pietr0_: has joined #ruby
[05:26:35] tristanp: has joined #ruby
[05:27:02] fckyoufreenode: has joined #ruby
[05:27:09] tubuliferous: has joined #ruby
[05:27:15] astrobunny: has joined #ruby
[05:27:18] zenlot6: has joined #ruby
[05:27:21] ereslibre: has joined #ruby
[05:27:21] ereslibre: has joined #ruby
[05:27:36] siaw_: has joined #ruby
[05:28:16] pawnbox: has joined #ruby
[05:28:18] elifoster|alt: has joined #ruby
[05:28:34] LaT0rtue: has joined #ruby
[05:28:56] merida: has joined #ruby
[05:29:09] beast: has joined #ruby
[05:29:16] iamvery: has joined #ruby
[05:29:27] A124: has joined #ruby
[05:29:30] SuperLag: has joined #ruby
[05:29:38] Muz: has joined #ruby
[05:29:44] funnel: has joined #ruby
[05:29:49] Jonah11_: has joined #ruby
[05:29:58] Yiota: has joined #ruby
[05:30:18] free_beard: Ox0dea: thanks for the insight, I'm going to look into running that exconf.rb
[05:30:37] webus: has joined #ruby
[05:30:43] blackgoat: has joined #ruby
[05:31:16] free_beard: Ox0dea: you mean this? https://github.com/unbit/uwsgi/blob/master/uwsgi.gemspec it seems the extension is there
[05:31:17] madgen: has joined #ruby
[05:31:29] hk238: has joined #ruby
[05:31:49] Ox0dea: free_beard: Yep, that'd be the one.
[05:31:51] Madplatypus: has joined #ruby
[05:32:01] noodle: has joined #ruby
[05:32:14] Ox0dea: Their extconf.rb hits the network for the install script, though; I guess something must've gone wonky with that.
[05:32:41] Helheim: has joined #ruby
[05:32:57] vqrs: has joined #ruby
[05:32:57] free_beard: Ox0dea: There's nothing letting me know that :))
[05:33:02] greenhat: has joined #ruby
[05:33:05] dcope: has joined #ruby
[05:33:05] martinbjeldbak: has joined #ruby
[05:33:12] Trynemjoel: has joined #ruby
[05:33:13] kadoppe: has joined #ruby
[05:33:21] abyx: has joined #ruby
[05:33:25] KervyN: has joined #ruby
[05:33:26] DanielI: has joined #ruby
[05:35:40] free_beard: Ox0dea: holy shit, it's using curl :D thanks, I feel stupid now
[05:35:52] joevandyk: has joined #ruby
[05:36:15] Ox0dea: free_beard: Er, was that the problem, then?
[05:36:30] pietr0_: has joined #ruby
[05:36:31] ur5us: has joined #ruby
[05:37:18] ruby[bot]: -b *!*@unaffiliated/skraito-0x71$#ruby-banned
[05:37:35] free_beard: Ox0dea: yep, the server I'm trying to deploy to didn't have curl installed and the docs for rbenv on saltstack didn't mention curl so I conveniently ignored adding it to deps
[05:37:36] chagel: has joined #ruby
[05:37:42] noService: has joined #ruby
[05:38:02] krz: has joined #ruby
[05:39:03] merida_: has joined #ruby
[05:40:07] matp: has joined #ruby
[05:40:30] Ox0dea: free_beard: In your defense, it's not the kind of thing most gems do.
[05:40:42] czerasz: has joined #ruby
[05:41:14] JoL1hAHN: has joined #ruby
[05:41:45] jtoy: has joined #ruby
[05:42:12] kies: has joined #ruby
[05:42:14] free_beard: Ox0dea: manually running extconf.rb tipped me off so thanks for the advice!
[05:42:42] Ox0dea: free_beard: Happy to help.
[05:43:09] ssm_: has joined #ruby
[05:44:33] moei: has joined #ruby
[05:44:46] cajone: has joined #ruby
[05:45:45] malcolmva: has joined #ruby
[05:48:20] Polysics: has joined #ruby
[05:54:43] LoneHerm_: has joined #ruby
[05:57:21] nixmaniack: has joined #ruby
[05:58:29] Jonah11_: has joined #ruby
[05:59:23] aurum_infide: has joined #ruby
[06:02:55] duncannz: has joined #ruby
[06:08:21] tax: has joined #ruby
[06:09:02] ramfjord: has joined #ruby
[06:09:07] brt: has joined #ruby
[06:09:12] william3: has joined #ruby
[06:12:06] auzty: has joined #ruby
[06:17:47] kareeoleez: has joined #ruby
[06:18:45] _blizzy_: has joined #ruby
[06:19:05] lomex: has joined #ruby
[06:19:29] aufi: has joined #ruby
[06:24:05] Tempesta_: has joined #ruby
[06:24:07] nhhc: has joined #ruby
[06:26:25] sp4rrow: has joined #ruby
[06:26:47] aganov: has joined #ruby
[06:26:51] Maletor: has joined #ruby
[06:27:08] modin: has joined #ruby
[06:27:14] johnny56: has joined #ruby
[06:27:56] Jonah11_: has joined #ruby
[06:28:06] kadoppe: has joined #ruby
[06:29:19] Es0teric: has joined #ruby
[06:29:37] solars: has joined #ruby
[06:30:34] jdm: has joined #ruby
[06:31:40] firstdayonthejob: has joined #ruby
[06:33:47] edwinvdgraaf: has joined #ruby
[06:34:32] rippa: has joined #ruby
[06:35:03] ur5us: has joined #ruby
[06:35:52] dionysus69: has joined #ruby
[06:36:50] kirillzh: has joined #ruby
[06:38:24] DoubleMalt: has joined #ruby
[06:39:29] kareeole_: has joined #ruby
[06:40:30] djbkd: has joined #ruby
[06:41:08] tildes: has joined #ruby
[06:41:21] bruno-: has joined #ruby
[06:41:54] tAn: has joined #ruby
[06:42:16] kareeoleez: has joined #ruby
[06:45:04] User458764: has joined #ruby
[06:45:58] j3r0: has joined #ruby
[06:47:41] Jonah11_: has joined #ruby
[06:48:10] william3: has joined #ruby
[06:48:27] djbkd: has joined #ruby
[06:49:15] agentmeerkat: has joined #ruby
[06:50:00] last_staff: has joined #ruby
[06:50:36] lxsameer: has joined #ruby
[06:51:37] kadoppe: has joined #ruby
[06:51:45] astrobun_: has joined #ruby
[06:54:49] stannard: has joined #ruby
[06:55:49] jtoy: has joined #ruby
[06:55:56] Infra-Red: has joined #ruby
[06:56:34] siaW: has joined #ruby
[06:56:44] last_staff1: has joined #ruby
[06:56:45] yaewa: has joined #ruby
[06:57:00] djbkd_: has joined #ruby
[06:57:37] kirillzh_: has joined #ruby
[06:58:32] biberu: has joined #ruby
[06:59:01] SuperLag_: has joined #ruby
[06:59:08] bronson: has joined #ruby
[06:59:17] A124: has joined #ruby
[06:59:38] Yiota_: has joined #ruby
[06:59:51] tjbiddle: has joined #ruby
[07:00:07] rickmasta: has joined #ruby
[07:00:18] bmf: has joined #ruby
[07:00:57] vdamewood: has joined #ruby
[07:02:20] Vile`: has joined #ruby
[07:03:04] BTRE: has joined #ruby
[07:03:09] Pupeno: has joined #ruby
[07:04:16] vqrs_: has joined #ruby
[07:04:42] noServic1: has joined #ruby
[07:05:40] Muz: has joined #ruby
[07:06:13] curses: has joined #ruby
[07:06:17] ghr: has joined #ruby
[07:06:24] brt: has joined #ruby
[07:06:58] ur5us: has joined #ruby
[07:09:25] mrknip: has joined #ruby
[07:10:05] mark2: has joined #ruby
[07:10:24] DoubleMalt: has joined #ruby
[07:10:35] ssm_: has joined #ruby
[07:10:41] auzty: has joined #ruby
[07:10:53] j3r0: has joined #ruby
[07:10:56] agent_white: has joined #ruby
[07:11:37] TomyWork: has joined #ruby
[07:12:50] Jonah11_: has joined #ruby
[07:13:08] JoL1hAHN: has joined #ruby
[07:13:44] agentmeerkat: has joined #ruby
[07:14:02] noodle: has joined #ruby
[07:14:20] madgen: has joined #ruby
[07:15:03] solars: quick question, is class Mod::Cls the same as module Mod; class Cls ?
[07:15:20] solars: nested of course
[07:15:32] vondruch: has joined #ruby
[07:15:34] Ox0dea: Not quite.
[07:15:48] ghr: has joined #ruby
[07:15:57] ruby[bot]: It's popcorn time! 🍿🍿🍿
[07:15:59] karmatr0n: has joined #ruby
[07:16:06] charlemagne: has joined #ruby
[07:16:15] Pupeno: has joined #ruby
[07:16:16] baweaver: Ox0dea is about to speak
[07:16:24] baweaver: that's always good for popcorn
[07:16:25] Ox0dea: Awkward. :/
[07:16:29] solars: Ox0dea, why not?
[07:16:31] kirillzh_: I don't have any
[07:16:53] Ox0dea: solars: For starters: https://eval.in/553741
[07:17:20] Ox0dea: That disparity comes into play for constant resolution.
[07:17:33] chagel: has joined #ruby
[07:17:43] malcolmva: has joined #ruby
[07:17:46] Couch: has joined #ruby
[07:17:58] baweaver: and likely other types as well
[07:18:04] aeterne: has joined #ruby
[07:18:05] baweaver: method_missing comes to mind
[07:18:20] solars: Ox0dea, hmm I see yeah, do you have an example for that? referring to the class works normally with M::C in both ways, right
[07:18:35] solars: I'm trying to see the difference
[07:18:42] Ox0dea: solars: Sure, `self` is the same in both cases.
[07:19:11] zenlot6: has joined #ruby
[07:19:56] yfeldblum: has joined #ruby
[07:20:31] Ox0dea: solars: Are you familiar with how method resolution works?
[07:20:57] rkazak: has joined #ruby
[07:21:14] solars: I don't think so, no - I'm just trying to make sense of the difference from a pragmatic point of view, I thought it's the same
[07:22:44] tjbiddle: has joined #ruby
[07:23:04] JohnBat26: has joined #ruby
[07:23:41] Ox0dea: solars: Here's a "pragmatic" example of when the difference might bite you: https://eval.in/553743
[07:24:18] artmann: has joined #ruby
[07:24:48] ghr: has joined #ruby
[07:25:27] LaT0rtue: has joined #ruby
[07:26:40] merida: has joined #ruby
[07:27:17] anisha: has joined #ruby
[07:27:26] merida: has joined #ruby
[07:28:12] solars: understood
[07:28:22] solars: Ox0dea, thanks for the clarification :)
[07:28:33] Ox0dea: solars: Sure thing. :)
[07:28:43] Ox0dea: Be advised that that second example *does* go back to the first.
[07:29:11] Ox0dea: Modules don't have "parent modules" in the same way that Classes have superclasses.
[07:29:44] norc: has joined #ruby
[07:30:39] Ox0dea: At the bottom there, `Module.nesting` is [M::C], so the interpreter looks for M::C::String; it doesn't find it, but the next link up the chain is Object, not M.
[07:31:13] Nanuq: has joined #ruby
[07:31:27] Ox0dea: >> Object::String # Tada!
[07:31:28] ruby[bot]: Ox0dea: # => String (https://eval.in/553750)
[07:32:01] vikas027: has joined #ruby
[07:32:06] vikas027: has left #ruby: ()
[07:32:07] kirillzh_: are you wizard?
[07:32:24] Ox0dea: I play one on TV.
[07:32:42] kirillzh_: I don't watch TV
[07:32:53] norc: You should. Ox0dea is great.
[07:32:55] solars: Ox0dea, ah, thanks for the hint
[07:33:03] kirillzh_: What am I missing?
[07:33:03] Ox0dea: No worries.
[07:33:26] baweaver: has joined #ruby
[07:33:44] Ox0dea: norc: What's the cleanest way to de-optimize?
[07:33:58] kirillzh_: Is your name Ben?
[07:34:04] norc: Ox0dea: Say what?
[07:34:14] Ox0dea: norc: https://eval.in/553614
[07:34:51] Pupeno: has joined #ruby
[07:34:56] Ox0dea: I'd hoped to find some secret command-line flag to disable optimization, but no such luck.
[07:35:15] norc: Are you talking about compiler "optimizations" ?
[07:35:16] kirillzh_: I don't get it. But I want to. What should I do?
[07:35:25] norc: (And I hate myself for calling them like that, because they are rather pitiful)
[07:35:38] Ox0dea: norc: I just want to be able to trace all method invocations.
[07:35:45] Scient: has joined #ruby
[07:35:55] Ox0dea: >> RubyVM::INSTRUCTION_NAMES.grep(/^opt_/).size
[07:35:56] ruby[bot]: Ox0dea: # => 27 (https://eval.in/553753)
[07:36:01] Ox0dea: That's a *lot* of missed calls.
[07:36:14] noodle: has joined #ruby
[07:37:02] aswen: has joined #ruby
[07:37:22] Ox0dea: There's gotta be something less heavy-handed than prepending some Module (to every class?!) that defines all those and just `super`s up.
[07:39:47] camilasan: has joined #ruby
[07:40:15] edwinvdgraaf: has joined #ruby
[07:40:34] nobitanobi: has joined #ruby
[07:41:15] charlemagne: has joined #ruby
[07:41:20] tAn: has joined #ruby
[07:42:18] ghr: has joined #ruby
[07:42:25] Vile`: has joined #ruby
[07:44:05] artmann: has joined #ruby
[07:46:48] CloCkWeRX: has joined #ruby
[07:46:56] Nanuq: has joined #ruby
[07:47:12] Yiota: has joined #ruby
[07:49:15] Xeago: has joined #ruby
[07:49:50] jaruga__: has joined #ruby
[07:50:22] diegoaguilar: has joined #ruby
[07:50:51] Guest36851: has joined #ruby
[07:51:17] norc: Ox0dea: Not without making modifications to the compiler.
[07:51:20] spk: has joined #ruby
[07:51:33] norc: (And partially the parser even I think)
[07:51:40] Ox0dea: norc: I am insufficiently Japanese.
[07:52:17] Ox0dea: Jokes aside, that sucks. :<
[07:52:19] pandaant: has joined #ruby
[07:53:11] norc: Ox0dea: Honestly the whole compiler is a mess. Got some big expectations for Ruby 3.0 however.
[07:53:19] edwinvdgraaf: has joined #ruby
[07:53:24] astrobunny: has joined #ruby
[07:53:37] Ox0dea: norc: I did find this one weird trick:
[07:53:40] Ox0dea: >> Fixnum.prepend Comparable; Fixnum.ancestors.count Comparable
[07:53:41] ruby[bot]: Ox0dea: # => 2 (https://eval.in/553757)
[07:53:56] Ox0dea: And that does de-optimize #<=> and friends, but that's only a handful of them.
[07:54:21] norc: Well, it still is the same thing.
[07:54:22] poerror: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[07:54:33] norc: It effectively wraps the <=> calls with another (from Comparable)
[07:55:00] Ox0dea: Well, sure, but it's slightly weird that the ancestor chain can contain duplicates.
[07:55:16] norc: Why is that weird?
[07:55:24] rob_: has left #ruby: ()
[07:55:34] norc: Resolution will stop at the first match anyway.
[07:56:11] mikecmpbll: has joined #ruby
[07:56:22] norc: asm>> 1 < 1
[07:56:23] ruby[bot]: norc: I have disassembled your code, the result is at https://eval.in/553758
[07:56:49] ddv: has joined #ruby
[07:57:38] ctrlrsf: has joined #ruby
[07:57:38] Ox0dea: >> module M; end; Fixnum.include M; Fixnum.prepend M; Fixnum.ancestors.count(M) # norc
[07:57:39] Outlastsheep: has joined #ruby
[07:57:40] ruby[bot]: Ox0dea: # => 1 (https://eval.in/553759)
[07:57:51] norc: asm>> 1.send(:<, 1)
[07:57:52] ruby[bot]: norc: I have disassembled your code, the result is at https://eval.in/553760
[07:58:03] norc: Ox0dea: That seems to be a way.
[07:58:51] norc: That should in fact be the cleanest way to prevent call optimisations.
[07:59:13] norc: Did not even think about this earlier.
[07:59:29] Ox0dea: norc: I'll be running ex post facto.
[08:00:34] guardian: has joined #ruby
[08:02:34] marr: has joined #ruby
[08:03:10] Ox0dea: Requiring all methods to be invoked like that is even worse than `(funcall ...)`.
[08:03:44] norc: Ox0dea: What is your goal if you dont mind my asking?
[08:04:30] bkxd: has joined #ruby
[08:04:32] MagePsycho_: has joined #ruby
[08:04:35] Ox0dea: norc: It's top-secret just now, but it's obviously magical in the bad way.
[08:04:49] kadoppe: has joined #ruby
[08:06:49] norc: Ox0dea: Actually... it looks like it can be turned off.
[08:06:52] norc: Just found it.
[08:07:14] Ox0dea: norc: I must be blind.
[08:07:30] LoneHermit: has joined #ruby
[08:07:55] ferr: has joined #ruby
[08:08:17] araujo: has joined #ruby
[08:08:21] User458764: has joined #ruby
[08:08:42] pawnbox: has joined #ruby
[08:08:45] norc: Ox0dea: Oh this is actually nice!
[08:08:47] norc: >> RubyVM::InstructionSequence.compile_option
[08:08:49] ruby[bot]: norc: # => {:inline_const_cache=>true, :peephole_optimization=>true, :tailcall_optimization=>false, :specialize ...check link for more (https://eval.in/553777)
[08:09:01] norc: From the looks of it you can directly control the compiler behaviour through that.
[08:09:27] ur5us: has joined #ruby
[08:09:30] norc: specialized_instruction is the option that is relevant to your case.
[08:10:00] Ox0dea: norc: Right, but they only apply after the fact for eval'd strings, no?
[08:10:19] inukshuk_: has joined #ruby
[08:10:33] Xeago: has joined #ruby
[08:10:37] araujo: has joined #ruby
[08:10:50] phredus: has joined #ruby
[08:11:25] norc: Ox0dea: Well, even if so, you can definitely fiddle the option of your internal iseq->option
[08:13:31] tylersmith: has joined #ruby
[08:15:10] kadoppe: has joined #ruby
[08:15:29] araujo: has joined #ruby
[08:15:32] Infra-Red: has joined #ruby
[08:17:05] karmatr0n: has joined #ruby
[08:17:22] sepp2k: has joined #ruby
[08:17:55] garethrees: has joined #ruby
[08:19:24] charliesome: has joined #ruby
[08:20:24] Ox0dea: norc: Thanks for the hints, but I don't see how to do it this way without user-level boilerplate, whose removal is the entire point. :P
[08:20:42] william3: has joined #ruby
[08:21:00] zipkid: Hello, could anybody help me find the cause of this 'ArgumentError: string contains null byte' error? https://gist.github.com/zipkid/1caafdcbca9ba72aea6affe7d8649f2b
[08:21:24] senayar: has joined #ruby
[08:21:24] senayar: has joined #ruby
[08:22:38] norc: zipkid: Is this your gem?
[08:22:46] zipkid: norc: yes.
[08:22:47] Yiota: has joined #ruby
[08:23:08] zipkid: the one i'm working on....
[08:24:08] raljvk: has joined #ruby
[08:24:33] norc: zipkid: Does it fail when using gem --install too?
[08:24:46] tildes: has joined #ruby
[08:24:54] norc: zipkid: If so, passing --backtrace to gem will give you the necessary debug information.
[08:25:03] shaman42: has joined #ruby
[08:25:26] Ox0dea: norc: `install` is a subcommand. :P
[08:25:27] zipkid: ACTION is looking for the correct command to try ...
[08:25:50] norc: Ox0dea: Shush!
[08:25:51] Ox0dea: zipkid: You have a gemspec, yeah?
[08:26:03] zipkid: How can i try that on my current code?
[08:26:04] Ox0dea: norc: Then don't go tellin' folks to run `gem --install`!
[08:26:06] zipkid: Ox0dea: yes
[08:26:13] mdw: has joined #ruby
[08:26:15] norc: Ox0dea: I cant even remember the last time I wrote Ruby.
[08:26:22] norc: Current Im debugging Apache
[08:26:28] Ox0dea: zipkid: `gem build foo.gemspec && gem install --backtrace foo.gem`
[08:26:43] norc: That. Listen to our TV wizard.
[08:26:46] zipkid: Ox0dea: Thx, going to try that
[08:26:51] Ox0dea: zipkid: Abracadabra.
[08:27:03] nano-: Ox0dea: Simsalabim
[08:27:09] Ox0dea: Avada Kedavra!
[08:27:28] Ox0dea: (jk lol dont die)
[08:29:00] dn`: has joined #ruby
[08:29:04] zipkid: Ox0dea: gem build gives me the error.... I'm going to investigate my gemspec file... :-)
[08:29:50] guardian: has joined #ruby
[08:31:26] pawnbox: has joined #ruby
[08:31:34] Ox0dea: zipkid: That's an uncommon error, but it's pretty easy to bump into if you're doing anything low-level.
[08:32:16] zipkid: ok, i found it.... i over-enthousiatically replaced "->' in the gemspec....
[08:32:23] zipkid: Thanks for your help
[08:32:30] Ox0dea: Well, all right.
[08:32:36] Ox0dea: Not how I expected that to go. :P
[08:32:39] zipkid: you too norc :-)
[08:33:04] zipkid: Ox0dea: i was sure it was something stupid on my side....
[08:33:26] jokester: has joined #ruby
[08:33:50] Ox0dea: zipkid: Aye, we were just trying to track down the specifics thereof. ^_^
[08:34:06] vqrs: has joined #ruby
[08:34:12] Ox0dea: That error indicates that you had a null byte in a Ruby string that needed to be converted to a C one.
[08:34:29] zipkid: Ox0dea: indeed, thanks for giving me the tools/hints to do so.
[08:34:34] mrgrieves: has joined #ruby
[08:35:13] zipkid: spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } <- replacing the " -> ' caused the error .... obviously...
[08:35:44] kareeoleez: has joined #ruby
[08:36:01] zipkid: now my bundle install succeeded!
[08:36:44] Ox0dea: zipkid: Er, which `->`?
[08:37:35] zipkid: no, i replaced the " (double quote) by (->) ' (single quote)
[08:37:52] Ox0dea: Ah, derp.
[08:38:11] Ox0dea: Well, glad you got it sorted. :)
[08:38:27] zipkid: if 'derp' means 'You idiot', you are completely correct :-D
[08:38:30] n008f4g_: has joined #ruby
[08:38:42] Ox0dea: Only I was using it for myself that time. :P
[08:38:54] Ox0dea: I kept reading "->' as a weirdly quoted string.
[08:38:58] zipkid: Birs of a feather...
[08:38:58] dgncn: has joined #ruby
[08:39:03] Ox0dea: Too many encounters with `foo', I guess.
[08:40:45] pawnbox: has joined #ruby
[08:40:56] guardian: has joined #ruby
[08:43:54] tuelz3: has joined #ruby
[08:44:15] P_R_Deltoid: has joined #ruby
[08:44:19] Xiti: has joined #ruby
[08:44:43] mozzarella: has joined #ruby
[08:45:45] Cohedrin: has joined #ruby
[08:46:04] noodle: has joined #ruby
[08:46:31] hays: has joined #ruby
[08:46:42] guardian: has joined #ruby
[08:47:28] vqrs: has joined #ruby
[08:48:01] Nuck: has joined #ruby
[08:48:34] mrmortondk: has joined #ruby
[08:49:04] sarbs: has joined #ruby
[08:50:09] SCHAAP137: has joined #ruby
[08:50:20] baweaver: has joined #ruby
[08:50:42] iamvery: has joined #ruby
[08:50:59] Vile`: has joined #ruby
[08:51:02] M-Kodo: has joined #ruby
[08:51:29] crameth: has joined #ruby
[08:51:31] M-shine: has joined #ruby
[08:52:02] danjack: has joined #ruby
[08:52:51] webus: has joined #ruby
[08:53:01] djellemah: Baz walks into a bar and says "the foo is strong with this one".
[08:53:46] krz: has joined #ruby
[08:53:47] poerror: has joined #ruby
[08:54:25] wedgwood: has joined #ruby
[08:54:51] ghr: has joined #ruby
[08:55:20] WebDevB: has joined #ruby
[08:55:26] ICantCook: has joined #ruby
[08:55:50] WebDevB: Hey guys, we've looking for a Ruby on rails dev to take on some ad hoc work... do you know of anyone?
[08:56:04] vdamewood: has joined #ruby
[08:56:06] Infra-Red: has joined #ruby
[08:56:21] Infra-Red: has joined #ruby
[08:59:07] linduxed: let's say that i get a response from a database driver
[08:59:14] agentmeerkat: has joined #ruby
[08:59:16] idletask: has joined #ruby
[08:59:27] linduxed: now i want to turn those rows into some data structure
[08:59:47] linduxed: would you guys call that procedure a "packaging procedure"?
[08:59:55] linduxed: "serialization"?
[09:00:01] linduxed: "transformation procedure"?
[09:00:22] djbkd: has joined #ruby
[09:00:37] malcolmva: has joined #ruby
[09:00:54] rrichardsr3: has joined #ruby
[09:00:56] bronson: has joined #ruby
[09:01:44] jackdaniel: demarshalling? deserialization?
[09:02:28] edwinvdg_: has joined #ruby
[09:02:37] jackdaniel: mapping would be also correct (mathematically) but very misleading for many programmers
[09:03:39] Ropeney: has joined #ruby
[09:04:43] nando293921: has joined #ruby
[09:05:27] noService: has joined #ruby
[09:05:34] MagePsycho_: has joined #ruby
[09:06:59] Xeago: has joined #ruby
[09:07:16] Pupeno: has joined #ruby
[09:08:15] codecop: has joined #ruby
[09:09:11] kexdsn: has joined #ruby
[09:10:20] ykishima: has joined #ruby
[09:11:32] kareeole_: has joined #ruby
[09:13:10] madgen: has joined #ruby
[09:14:13] nixmaniack: has joined #ruby
[09:15:32] johnny56_: has joined #ruby
[09:15:37] ocbtec: has joined #ruby
[09:18:08] karmatr0n: has joined #ruby
[09:18:49] norc: lucas: marshalling or serialization, take your pick.
[09:18:55] kareeole_: has joined #ruby
[09:18:56] poerror: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[09:19:08] norc: linduxed: ^-
[09:19:36] norc: But it really depends on what you are trying to do.
[09:19:54] norc: If you just transform from one representation to another for immediate use, then its just "transformation" or "mapping"
[09:20:10] jackdaniel: I'd say its DE-{marshalling,serialization}, if he takes it from the database into the living application
[09:21:06] norc: jackdaniel: serialization is only used to prepare data for transmission or storage really.
[09:21:16] norc: marshalling depends on the context
[09:21:46] SCHAAP137: has joined #ruby
[09:21:46] jackdaniel: hm, yes, and if you take something *from* storage, it's the reverse operation
[09:21:58] jackdaniel: s/storage/the storage/
[09:23:11] norc: jackdaniel: You are thinking in wrong terms.
[09:23:51] bmf: has joined #ruby
[09:24:05] jackdaniel: I believe this is not true, but I'll gladly learn if I'm really wrong
[09:28:26] snowy: has joined #ruby
[09:29:38] mozzarella: has joined #ruby
[09:30:09] BtcBen: has joined #ruby
[09:30:25] nando294021: has joined #ruby
[09:31:46] norc: jackdaniel: Thinking about it I guess it really depends. You are right, it can be de-serialization.
[09:33:13] evidex: has joined #ruby
[09:34:32] phredus_: has joined #ruby
[09:34:34] acosonic: has joined #ruby
[09:35:04] acosonic: Hi all, how can I extract @value from this data structure https://gist.github.com/acosonic/a366a70724ab153caaa1d7fd84a5e0d7
[09:35:19] workmad3: has joined #ruby
[09:36:39] noodle: has joined #ruby
[09:36:53] M-Kodo: has joined #ruby
[09:37:43] norc: acosonic: Add an attr_reader ?
[09:38:13] acosonic: norc: what’s attr_reader? Where can I see some examples with it?
[09:38:28] norc: acosonic: I recommend you use your great google skills to find out.
[09:38:45] norc: &ri Module::attr_reader
[09:38:45] `derpy: No results
[09:38:48] norc: &ri Module#attr_reader
[09:38:48] `derpy: http://ruby-doc.org/core-2.3.0/Module.html#method-i-attr_reader
[09:38:55] norc: But Ill spoon feed you anyhow..
[09:40:00] Amnez777: has joined #ruby
[09:40:01] tubuliferous: has joined #ruby
[09:40:08] forcer: I don't think there is any need to be this dismissive.
[09:40:30] norc: If the class does not belong to you you are kind of out of luck (while Ruby has all the tools to get it, it would just violate encapsulation, which I will not teach you if you are not even aware of attr_reader)
[09:40:36] adaedra: &ri attr_reader
[09:40:36] `derpy: http://ruby-doc.org/core-2.3.0/Module.html#method-i-attr_reader
[09:40:43] LaT0rtue: has joined #ruby
[09:40:49] Ox0dea: norc: # for instance methods.
[09:40:53] norc: adaedra: Oh wait. You mean I dont always have to know the class/module?
[09:41:07] adaedra: norc: this is kind of random sometimes tho.
[09:41:23] norc: adaedra: Thats great, I was looking for a good entropy source for my new encryption gem.
[09:41:31] bmf: has joined #ruby
[09:41:42] drPoggs: has joined #ruby
[09:41:46] Ox0dea: norc: Use the number of birds in flight over the surface of Earth.
[09:41:49] adaedra: It will get the first ri result always (One day I'll fix that. One day.)
[09:42:57] norc: Ox0dea: Anyone using IP over Avian Carriers can simply use maximum throughput information to gain an attack vector.
[09:43:00] norc: Not a great idea..
[09:43:10] Ox0dea: norc: Damn, that's good. :)
[09:43:46] Ox0dea: I mean, it's bad.
[09:43:49] Ox0dea: But that was really good.
[09:45:04] malcolmva: has joined #ruby
[09:48:19] c355E3B: has joined #ruby
[09:48:23] merida: has joined #ruby
[09:51:01] charlemagne: has joined #ruby
[09:52:02] Xeago: has joined #ruby
[09:53:55] terlar: has joined #ruby
[09:54:11] AlexJakeGreen: has joined #ruby
[09:55:34] wedgwood: has joined #ruby
[09:57:24] merida_: has joined #ruby
[09:57:53] flak: has joined #ruby
[09:58:08] Pupeno: has joined #ruby
[09:59:02] acosonic: I got that resolved…
[09:59:19] acosonic: norc: without attr_blah… just by struct.first.value FYI...
[09:59:43] tylersmith: has joined #ruby
[10:01:17] Xeago: has joined #ruby
[10:01:53] djbkd: has joined #ruby
[10:02:07] Pupeno: has joined #ruby
[10:02:29] ghr-: has joined #ruby
[10:02:59] krz: has joined #ruby
[10:04:30] adaedra: acosonic: tbf, with the information you gave here, norc's answer was actually not so "crazy".
[10:04:33] wedgwood: has joined #ruby
[10:04:42] duderonomy: has joined #ruby
[10:05:04] BtcBen: has joined #ruby
[10:05:07] shevy: acosonic structs are cool, aren't they?
[10:05:18] hays: has joined #ruby
[10:05:20] bkxd: has joined #ruby
[10:05:41] adaedra: Also, when asking something in multiple channels, common courtesy is to inform those people.
[10:05:49] acosonic: shevy: where can I learn about such advanced structs…?
[10:05:58] ctrlrsf: has joined #ruby
[10:05:59] ctrlrsf: has joined #ruby
[10:06:15] yfeldblum: has joined #ruby
[10:06:17] sapslaj: has joined #ruby
[10:06:41] Nuck: has joined #ruby
[10:06:46] ddv: has joined #ruby
[10:07:07] sarbs: has joined #ruby
[10:10:42] brunto: has joined #ruby
[10:18:20] skislak: has joined #ruby
[10:19:16] jtoy: has joined #ruby
[10:19:35] malcolmva: has joined #ruby
[10:20:25] rodfersou: has joined #ruby
[10:21:18] shevy: there are not so many structs
[10:21:29] shevy: struct... and openstruct/ostruct... that was it mostly I guess?
[10:22:07] adaedra: that's already enough, if not too much.
[10:22:35] adaedra: But in the case above, it looks like it was ultimately an ActiveRecord model.
[10:22:36] tvw: has joined #ruby
[10:22:38] kadoppe: has joined #ruby
[10:24:07] MagePsycho_: has joined #ruby
[10:26:56] MagePsycho_: has joined #ruby
[10:28:09] psav: has joined #ruby
[10:28:11] cibs_: has joined #ruby
[10:28:31] psav: if I have a ruby object - and it has a method, how do I find out where that method was defined.....ie...from which file?
[10:34:18] cibs: has joined #ruby
[10:37:53] johnmilton: has joined #ruby
[10:39:40] arup_r: has joined #ruby
[10:39:59] sgambino: has joined #ruby
[10:40:38] ule: has left #ruby: ()
[10:41:32] arup_r: So when I have a CSV object like, csv = CSV.open("/Users/arup/hjuhsd_ccm_db_dump.txt", 'r', headers: true). And suppose I want to read a specific row from it. One way is csv.readlines[5]. What is the other way to read the 5th row without reading rows from 6th to end rows?
[10:41:39] Hanmac: psav: object.method(:methname).source_location does not work for compiled methods
[10:42:48] norc: hanmac: Does it not return nil for compiled methods?
[10:43:20] Hanmac: norc: yeah that what i mean with "does not work for compiled methods"
[10:44:14] armatechnicos: has joined #ruby
[10:45:01] bruno-: has joined #ruby
[10:45:47] platzhirsch: has joined #ruby
[10:46:27] cibs_: has joined #ruby
[10:46:27] Hanmac: arup_r: you can do "csv.take(5).last" to get the 5th row
[10:46:41] arup_r: nice hanmac
[10:47:17] rippa: has joined #ruby
[10:47:35] n008f4g_: has joined #ruby
[10:47:38] Coldblackice_: has joined #ruby
[10:47:54] Hanmac: arup_r: instead of CSV::open you can also use CSV::foreach which does return an enumerator too (where you can call take directly)
[10:48:24] arup_r: hanmac: directly means?
[10:48:36] rippa: has joined #ruby
[10:49:14] Hanmac: arup_r: "CSV.foreach("/Users/arup/hjuhsd_ccm_db_dump.txt", 'r', headers: true).take(5).last" i don't know how much better foreach is instead of open in that case.
[10:49:29] User458764: has joined #ruby
[10:51:36] cibs: has joined #ruby
[10:52:00] Pupeno: has joined #ruby
[10:52:19] arup_r: has joined #ruby
[10:52:59] x0F: has joined #ruby
[10:54:08] jgt1: has joined #ruby
[10:54:28] william3: has joined #ruby
[10:56:34] cibs: has joined #ruby
[10:57:47] astrobunny: has joined #ruby
[10:57:53] Xeago: has joined #ruby
[10:58:38] madgen: has joined #ruby
[10:59:06] last_staff: has joined #ruby
[11:00:31] freerobby: has joined #ruby
[11:02:15] slackR: has joined #ruby
[11:02:19] Kimm: has joined #ruby
[11:02:25] merida: has joined #ruby
[11:02:40] djbkd: has joined #ruby
[11:03:12] Kimm: Hi, anybody knows where can i find the code in rbenv that adds the gems to the ruby enviroment at runtime
[11:03:31] Kimm: like loops on gems library and add each gem
[11:04:26] workmad3: Kimm: that's not something rbenv does
[11:05:10] workmad3: Kimm: rbenv will set up GEM_HOME and GEM_PATH (probably in their shim), and then rubygems is responsible for adding gem libraries to the load path in ruby as appropriate
[11:06:06] bkxd: has joined #ruby
[11:06:45] nando293921: has joined #ruby
[11:07:05] Kimm: ok so I have another question, how can I easily add some gems to my project without rbenv and rubygems
[11:07:52] lkba: has joined #ruby
[11:08:52] go|dfish: has joined #ruby
[11:09:04] toretore: Kimm: what is it you're trying to accomplish?
[11:10:32] Xeago: has joined #ruby
[11:10:35] Kimm: I'm using ruby c api with some ruby code, and this code requires some gems, i want to be able to integrate the gems to the code so it will work with the executable c, because if i won't do that, i'll get error loading the gems
[11:10:36] shevy: complete world domination
[11:11:16] norc: Kimm: Use a Gemfile...
[11:11:18] karmatr0n: has joined #ruby
[11:11:23] Kimm: hanmac suggested that few days ago, but he didn't mention how
[11:12:48] merida: has joined #ruby
[11:14:06] Kimm: I have a gem file, what should I do with it
[11:14:11] Tempesta: has joined #ruby
[11:14:42] Xeago: has joined #ruby
[11:20:39] gnufied: has joined #ruby
[11:20:40] qhp: has joined #ruby
[11:21:29] theery: has joined #ruby
[11:25:21] william3: has joined #ruby
[11:25:55] swills: has joined #ruby
[11:26:20] elvis4526: has joined #ruby
[11:26:29] bkxd: has joined #ruby
[11:26:56] blaxter: has joined #ruby
[11:27:19] elvis4526: Hey, I'm having trouble with a small curses app - getch() is returning 127 when I press Backspace, and Curses::Key::BACKSPACE is defined as 263
[11:27:24] trinaldi: has joined #ruby
[11:27:26] elvis4526: Anyone know why ?
[11:29:16] tagaulap: has joined #ruby
[11:30:34] mosez: has joined #ruby
[11:32:35] tuelz3: has joined #ruby
[11:33:21] IrishGringo: has joined #ruby
[11:33:32] senayar: has joined #ruby
[11:33:38] senayar: has joined #ruby
[11:34:14] cibs_: has joined #ruby
[11:37:45] william3: has joined #ruby
[11:38:36] freerobby: has joined #ruby
[11:41:19] callen92: has joined #ruby
[11:41:28] User458764: has joined #ruby
[11:42:56] senayar: has joined #ruby
[11:43:54] tuelz3: has joined #ruby
[11:45:58] bruno-: has joined #ruby
[11:46:11] ldnunes: has joined #ruby
[11:46:22] duderonomy: has joined #ruby
[11:46:54] msg31: has joined #ruby
[11:46:54] iamvery: has joined #ruby
[11:46:58] sapslaj: has joined #ruby
[11:47:06] hays: has joined #ruby
[11:47:15] theery: has joined #ruby
[11:47:41] callen92: has joined #ruby
[11:47:42] psmolen: has joined #ruby
[11:48:03] msg31: I have a regex that I need to print into a configuration file. x = '((\\w*?)(?:\\d+|-\\\\w+|_|)(?:\\.[^/]+|))$'
[11:48:19] Olipro: has joined #ruby
[11:48:25] romain_t: has joined #ruby
[11:48:26] msg31: unfortunately ruby is escaping '\\' to a single '\', is there anyways to get around this behavior?
[11:49:57] tobiasvl: msg31: \\\ ?
[11:52:09] M-Kodo: has joined #ruby
[11:52:24] msg31: tobiasvl, if I do '\\\\' it works but that is so ugly
[11:52:34] msg31: I was hoping I could tell ruby not to escape the string
[11:53:45] william3: has joined #ruby
[11:56:40] Xeago: has joined #ruby
[11:56:52] apeiros: msg31: no. \ is always the escape character, so a single backslash is \\, in all string representations.
[11:57:02] last_staff: has joined #ruby
[11:57:05] apeiros: or rather, in all string literals
[12:01:43] madgen: has joined #ruby
[12:01:50] tobiasvl: well, in a string literal surrounded by single quotes, a single backslash is \
[12:02:10] tobiasvl: I mean a double backslash is \. it's auto-escaped. so the literal becomes less ugly
[12:02:23] tobiasvl: of course the string REPRESENTATION is still ugly. also '\\' == "\\".
[12:02:41] MagePsycho_: has joined #ruby
[12:03:17] guardian: has joined #ruby
[12:03:28] tobiasvl: actually I apparently don't remember how '' works at all. '\' doesn't work, but '\t' works as expected (in irb)
[12:03:33] tobiasvl: perhaps I just need some coffee
[12:03:50] vdamewood: has joined #ruby
[12:04:35] tax: question: is javascript or ruby better to learn OOP for the first time?
[12:04:40] djbkd: has joined #ruby
[12:08:36] adaedra: I'd love to see this backed by arguments.
[12:08:50] sdothum: has joined #ruby
[12:08:59] shevy: adaedra yeah what are your arguments in favour of javascript?
[12:09:03] arup_r: tax: JS is not OOP, many people over internet tried to remove that notion, it is different. Learn Ruby, for OOP yes. it is sweet.
[12:09:30] adaedra: shevy: note that I'm not the one who gave an answer.
[12:09:36] Xeago: has joined #ruby
[12:09:36] tax: perhaps "object based"..?
[12:09:37] arup_r: I read a blog, where someone said JS is OP.
[12:09:53] shevy: adaedra so you have no arguments
[12:10:04] adaedra: shevy: you don't either.
[12:10:15] arup_r: boom boom!
[12:10:35] tax: to put it another way: for a beginner- would learning oop concept with js be painful like shooting myself in the crotch?
[12:10:57] Elysia: probably slightly worse
[12:11:11] apeiros: arup_r: um, that's nonsense. JS is oop
[12:11:21] merida_: has joined #ruby
[12:11:26] shevy: depends how you define it
[12:11:29] apeiros: it uses a different OOP model than ruby (prototypical instead of classical OOP), but it's still OOP
[12:11:38] shevy: is there a distinction between functions and methods?
[12:11:54] apeiros: shevy: on a different level than ruby, but yes, there is.
[12:12:04] Elysia: there's a lot of languages that imeplement OOP in some way or another, javascript's method is definitely one of the less.. verbose and "exact" ways.
[12:12:05] madgen: has joined #ruby
[12:12:06] apeiros: with js, function vs. method is defined by how you invoke it
[12:12:33] arup_r: No. after reading the book series of YDJ, I am convinced that JS is not OOP. delegation is all over JS. I forgot the sweet term though, that Kyle establish in his book with *arguments*
[12:12:40] apeiros: Elysia: um, it is exact. it just happened to be one of the lesser used models. classical OOP is much wider known.
[12:13:02] Elysia: yeah, "exact" is poor phrasing, I just don't have a better way to say it
[12:13:18] tax: well basically i want to learn programming for the sake of programming. not to design menus and popups for websites.
[12:13:18] apeiros: "less common" maybe?
[12:13:30] Elysia: yeah, that's a good way of saying it
[12:13:35] shevy: tax welcome to ruby! :)
[12:13:50] apeiros: if you want, you can btw. relatively easily implement classical OOP in JS.
[12:13:57] newjersey: has joined #ruby
[12:14:00] Elysia: if you told most people you are an "object oriented javascript programmer" chances are people will laugh at you in a similar fashion of of calling HTML coding
[12:14:09] Elysia: at least, that's what I'd imagine.
[12:14:12] synthroid: has joined #ruby
[12:14:27] arup_r: He said, people thinks it as classical inheritance.. then some says prototype inheritance.. WRONG! .. .. it is always object delegation which is in the heart of JS
[12:14:41] joseph: has joined #ruby
[12:14:49] arup_r: let me find the blog.. I hope it will take time
[12:14:55] shevy: yeah... ruby is the most prototypical among the classical OOP languages
[12:15:38] tax: i'm very conflicted between ruby,js,c++,objective-c. mainly because of popularity,reources/materials/source code out there. career.
[12:15:51] apeiros: arup_r: so he make up stuff? fun
[12:16:11] tax: if i had a favorite then it would probably be ruby.
[12:16:15] shevy: tax you can also have a look at Io for another prototype-based programming language - I am not sure how active they are but they had some nice things, like introspection at runtime (ruby did not have that in ... 1.8.x I think) http://iolanguage.org/about.html
[12:16:38] Hanmac: has joined #ruby
[12:16:40] shevy: I did not like some of the syntax choices like assignment :(
[12:16:52] shevy: they distinguish between setting a slot, and updating a slot
[12:16:52] arup_r: No idea, he has enough arguments about his sentences.. need to give this some time https://github.com/getify/You-Dont-Know-JS
[12:17:02] Vile`: has joined #ruby
[12:17:09] lxsameer: has joined #ruby
[12:17:39] arup_r: He went deeper as much as possible.. and very clear writing..
[12:18:03] tax: i'm coming from perl.
[12:18:17] arup_r: exactly same talks here https://frontendmasters.com/courses/ .. and awesome!
[12:18:21] shevy: tax like eam!
[12:18:44] adaedra: tax: so you're looking for what, another language to learn?
[12:18:45] shevy: tax look what a bushy moustache he has got https://github.com/eam
[12:18:56] arup_r: anyway, my JS learning still going on.. besides ruby.. and enjoying both. :D
[12:19:02] tax: a sustainable future
[12:19:27] adaedra: I don't think anyone can see what the future will be made of yet.
[12:19:47] apeiros: arup_r: and I'm supposed to read what of all that for that claim of JS not being OOP and not being prototypical?
[12:20:05] arup_r: shevy: deep learning what is function here ->> https://frontendmasters.com/courses/functional-js-lite/ if you have time to watch all those.
[12:20:12] apeiros: arup_r: even though, honestly, I see little point in reading it - JS is pretty much the text book definition of prototypical OOP
[12:20:36] arup_r: apeiros: I went through the book once.. I have to search the chapter and give the link.. I forgot in which part he said all that..
[12:20:39] shevy: arup_r ok... I can watch later probably
[12:20:44] apeiros: arup_r: ok
[12:20:45] arup_r: I will ping you the link.. apeiros
[12:21:09] n008f4g_: has joined #ruby
[12:21:42] shevy: tax why don't you stick to perl by the way? this question is mostly out of curiousity, I used perl before ruby but not anywhere near as much as I would use ruby lateron
[12:22:04] apeiros: arup_r: anyway, wrt the term "OOP" - look up what alan key has to say about it. and as far as I remember, all that is needed is objects accepting messages (by which definition C++ actually isn't OO) - the way classes or hierarchies work is irrelevant
[12:22:26] shevy: I concur there :)
[12:22:26] apeiros: and for note - alan key is the guy who coined the term "object oriented"
[12:22:42] adaedra: ACTION checks on his arguments pyramid
[12:22:50] vdamewood: has joined #ruby
[12:22:56] apeiros: adaedra: always check the tip first :D
[12:23:51] arup_r: I'll watch this soon~ https://www.youtube.com/watch?v=lKCCZTUx0sI :)
[12:24:33] duderonomy: has joined #ruby
[12:24:33] aspiers: has joined #ruby
[12:24:35] hays: has joined #ruby
[12:24:40] arup_r: manay many things to learn.. for me still... wow!.. apeiros thanks for saying the name who coined the term. never knew it
[12:24:43] norc: apeiros: And JS might even be the best candidate for OOP in general, since it is more object oriented than most languages out there.
[12:24:52] merida: has joined #ruby
[12:25:07] sapslaj: has joined #ruby
[12:25:08] arup_r: You think like that way.. it is not. :(
[12:26:34] arup_r: anyway, my skill in JS is not reached till that point, that I can keep arguing .. so I will be shut up now..
[12:26:42] norc: apeiros: Im not sure I agree with the statement about C++ though, since classes are the mechanism in C++ that allow an object to receive messages.
[12:26:58] apeiros: norc: it doesn't actually work by retrieving messages
[12:27:07] norc: What do you mean?
[12:27:40] norc: (Though we could simplify this discussion to C level with a struct containing a function pointer)
[12:28:04] Tempesta_: has joined #ruby
[12:28:09] M-Kodo: has joined #ruby
[12:28:13] apeiros: we should move it to #ot ;-)
[12:29:23] biberu\: has joined #ruby
[12:30:14] lxsameer: has joined #ruby
[12:30:46] Xeago: has joined #ruby
[12:31:34] zapata: has joined #ruby
[12:31:48] ocbtec: has joined #ruby
[12:32:39] rickmasta: has joined #ruby
[12:32:41] Coldblackice: has joined #ruby
[12:33:17] tagaulap: has joined #ruby
[12:33:47] c355E3B: has joined #ruby
[12:34:08] phredus: has joined #ruby
[12:35:12] BSaboia: has joined #ruby
[12:35:36] linduxed: norc: i think serialization makes the most sense
[12:35:55] x0F: has joined #ruby
[12:36:05] terlar: has joined #ruby
[12:37:53] tax: thanks for the insight
[12:38:32] sdothum: has joined #ruby
[12:38:58] dgncn: has joined #ruby
[12:39:51] Xeago: has joined #ruby
[12:40:21] Trieste: has joined #ruby
[12:40:57] lxsameer: has joined #ruby
[12:42:30] GodFather: has joined #ruby
[12:43:01] Es0teric: has joined #ruby
[12:43:04] ldnunes: has joined #ruby
[12:43:26] tildes: has joined #ruby
[12:43:36] DoubleMalt: has joined #ruby
[12:44:14] arup_r: has left #ruby: ()
[12:44:59] NC30: has joined #ruby
[12:45:33] solars: has joined #ruby
[12:45:44] jgt2: has joined #ruby
[12:47:00] bruno-: has joined #ruby
[12:47:17] Nanuq: has joined #ruby
[12:47:48] despai: has joined #ruby
[12:48:56] CloCkWeRX: has joined #ruby
[12:49:26] Xeago: has joined #ruby
[12:50:22] dionysus69: has joined #ruby
[12:51:00] chouhoulis: has joined #ruby
[12:52:46] Xeago: has joined #ruby
[12:52:47] Es0teric: has joined #ruby
[12:53:08] baweaver: has joined #ruby
[12:53:57] Ox0dea: has joined #ruby
[12:56:50] tuelz3: has joined #ruby
[12:58:25] moei: has joined #ruby
[12:58:30] boomsie: has joined #ruby
[12:58:52] Xeago: has joined #ruby
[12:59:12] kareeoleez: has joined #ruby
[12:59:15] ramortegui: has joined #ruby
[12:59:47] boomsie: Hi all. I want to retrieve the IP address that's on the first line of an output. I have some code that does that at the moment: https://gist.github.com/anonymous/f09cdcbfb7d574e45a490135649b5313. But it fails if the IP address is an IPv6 address (since it uses colon-delimiters). How do I grab the IP address, whether it's IPv4 or IPv6?
[13:00:27] boomsie: I imagine there's an easier way to do even the IPv4 case that generalises to IPv6. What I've done so far is fairly ugly..
[13:00:54] adaedra: Get the first line and split on the first : to get the right part?
[13:01:21] adaedra: output.lines.first.partition(': ').last
[13:01:58] PedramT: has joined #ruby
[13:02:15] adaedra: &ri String#lines String#partition boomsie
[13:02:15] `derpy: boomsie: http://ruby-doc.org/core-2.3.0/String.html#method-i-lines, http://ruby-doc.org/core-2.3.0/String.html#method-i-partition
[13:02:16] pawnbox: has joined #ruby
[13:02:18] adaedra: for reference
[13:02:46] boomsie: adaedra: thanks! I'll give that a try, hang on :-)
[13:02:52] Nanuq: has joined #ruby
[13:03:47] Es0teric: has joined #ruby
[13:03:57] darix: boomsie: maybe check how libraries like ohai/facter do it
[13:04:38] aegis3121: has joined #ruby
[13:04:39] ekinmur: has joined #ruby
[13:05:23] djbkd: has joined #ruby
[13:06:22] karmatr0n: has joined #ruby
[13:06:51] charliesome: has joined #ruby
[13:06:54] boomsie: adaedra: that worked a treat. Now I'll read your links. |Thanks very much!
[13:06:55] biberu: has joined #ruby
[13:10:35] armatechnicos: has joined #ruby
[13:10:48] Es0teric: has joined #ruby
[13:12:04] Es0teric_: has joined #ruby
[13:12:09] cdg: has joined #ruby
[13:14:20] Sammichmaker: has joined #ruby
[13:14:33] madgen: has joined #ruby
[13:14:39] Xeago: has joined #ruby
[13:15:02] j3r0: has joined #ruby
[13:15:08] cdg: has joined #ruby
[13:20:14] Vile`: has joined #ruby
[13:21:05] MagePsycho_: has joined #ruby
[13:21:37] krz: has joined #ruby
[13:22:58] kobain: has joined #ruby
[13:25:26] kam270: has joined #ruby
[13:26:59] malconis: has joined #ruby
[13:27:25] VeryBewitching: has joined #ruby
[13:28:12] malconis: has joined #ruby
[13:31:04] IrishGringo: has joined #ruby
[13:31:11] krobzaur: has joined #ruby
[13:31:58] timonv: has joined #ruby
[13:34:20] charlemagne: has joined #ruby
[13:36:58] despai: has joined #ruby
[13:37:18] terlar: has joined #ruby
[13:38:08] hxegon: has joined #ruby
[13:38:08] webus: has joined #ruby
[13:38:17] abyx: has joined #ruby
[13:38:33] chouhoulis: has joined #ruby
[13:38:57] lxsameer: has joined #ruby
[13:39:12] Waqas: has joined #ruby
[13:40:14] PedramT_: has joined #ruby
[13:41:18] rbennacer: has joined #ruby
[13:41:54] rbennacer: has joined #ruby
[13:42:21] nfk|laptop: has joined #ruby
[13:43:02] sdothum: has joined #ruby
[13:44:00] william3: has joined #ruby
[13:44:34] Waqas: has joined #ruby
[13:45:46] meraxes: has joined #ruby
[13:47:57] Pupeno: has joined #ruby
[13:50:52] bruno-: has joined #ruby
[13:51:42] sdothum: has joined #ruby
[13:52:29] Infra-Red: has joined #ruby
[13:52:50] PedramT: has joined #ruby
[13:54:05] SilverKey: has joined #ruby
[13:54:34] myntcake: has joined #ruby
[13:55:16] krobzaur: has joined #ruby
[14:01:32] Pupeno: has joined #ruby
[14:03:18] krz: has joined #ruby
[14:05:37] idle_task: has joined #ruby
[14:05:41] bronson: has joined #ruby
[14:06:07] djbkd: has joined #ruby
[14:07:19] Vile`: has joined #ruby
[14:07:44] iamvery: has joined #ruby
[14:08:13] Ox0dea: has joined #ruby
[14:09:02] madgen: has joined #ruby
[14:10:28] rickmasta: has joined #ruby
[14:12:07] jhack: has joined #ruby
[14:12:20] merida: has joined #ruby
[14:12:34] mustmodify__: has joined #ruby
[14:12:34] eljimmy: has joined #ruby
[14:13:03] mustmodify__: Did you ever have one of those days where you would swear things worked totally differently yesterday? And you wonder whether you were incompetent yesterday or today?
[14:13:37] apeiros: I was like "totally, yes" until "whether you were incompetent", there I went to "nope, totally not" :)
[14:14:07] shevy: not for me when it is about programming; however had I perform awful when tired so in these cases the only cure and hope for improvement is to get some sleep
[14:14:31] shevy: or sometimes typos like "def intialize"
[14:14:39] apeiros: I'm more like "who fucked with this stuff in the meantime?!?" (and more often than not, that's actually the case for stuff working differently)
[14:14:41] mustmodify__: I was working with this one file with encoding issues. And yesterday I would have sworn I just did "force_encoding('utf-8')" and it magically worked. But I'm doing that now and it totally isn't magically working.
[14:15:27] shevy: oh the evil of encoding
[14:15:41] mustmodify__: I mean, I have definitive proof that what is happening how is happening on multiple machines reproducibly... but ... I would have SWORN it was working differently.
[14:15:42] swills: has joined #ruby
[14:15:42] shevy: I think apeiros has like a 20.000 characters page about encodings somewhere on a gist :)
[14:16:00] Yiota: has joined #ruby
[14:16:00] newdan: has left #ruby: ()
[14:16:00] apeiros: and I should still publish it on ruby-community
[14:16:36] shevy: mustmodify__ some machines fail and how do they fail?
[14:17:02] Yiota: has joined #ruby
[14:18:13] Rasi: has joined #ruby
[14:18:20] sarbs: has joined #ruby
[14:18:20] shevy: mustmodify well you wrote that the magic is happening on multiple machines reproducibly!
[14:18:43] mustmodify: shevy: Sorry, didn't know if you were asking about my problem or something else.
[14:18:58] mustmodify: I have a file that is encoded in some windows encoding... Ubuntu guesses windows-1252
[14:19:05] barajasfab: has joined #ruby
[14:19:10] mustmodify: and there is a character that can't be read in UTF-8
[14:19:22] shevy: reminds me of some other problem... with some russian encoding
[14:19:23] treehug88: has joined #ruby
[14:19:23] modin: has joined #ruby
[14:19:37] mustmodify: yesterday I would have sworn that I did File.read(whatever).force_encoding('utf-8') and it magically got rid of all the magic characters.
[14:19:42] mustmodify: But apparently not.
[14:20:05] mustmodify: because today I have that file and, on multiple machines, tried that and it fails.
[14:20:12] apeiros: force_encoding on a single byte encoding will break if you have any character in the high-byte range (0x80-0xff)
[14:20:19] apeiros: so that's a horribly bad idea.
[14:20:22] mustmodify: at first I thought it was just happening on my machine because of some local OS config or something.
[14:20:56] psmolen: has joined #ruby
[14:21:01] apeiros: and no, it certainly wouldn't have made magic characters disappear (because those are in the high-byte range)
[14:21:25] mustmodify: right. Well I guess it was yesterday that I was being incompetent.
[14:22:00] CloCkWeRX: has joined #ruby
[14:22:17] SilverKey: has joined #ruby
[14:22:17] apeiros: if you know your encoding, the proper approach is setting it while reading the input (e.g. `File.read(path, encoding: 'windows-1252')`)
[14:22:36] apeiros: if you don't know the encoding - well, then you're fucked and you can just try to save as much skin as possible.
[14:22:48] Jonah11_: has joined #ruby
[14:23:10] kareeoleez: has joined #ruby
[14:23:49] ule: has joined #ruby
[14:24:14] mustmodify: apeiros: in this case, I'm receiving files from medical labs.
[14:24:19] webus: has joined #ruby
[14:24:20] ule: hey guys.. I tried almost everything that I found on google to solve this error:
[14:24:21] mustmodify: Medical labs DO NOT CARE ABOUT ANYTHING.
[14:24:21] apeiros: the approach I chose at work where a file is in 99.999+% of all cases in one of utf-16, utf-8, windows-1252 or macroman was to first test for BOM (-> utf-16), test for valid_encoding? with utf-8 (-> utf-8), and then I did a frequency analysis on special chars for windows-1252 vs. macroman and picked the more probable
[14:24:26] ule: An error occurred while installing therubyracer (0.12.2), and Bundler cannot continue.
[14:24:33] ule: Anyone knows how to solve?
[14:24:36] apeiros: mustmodify: hit them with a clue-stick
[14:24:43] apeiros: mustmodify: if the clue doesn't stick, seee ^
[14:25:02] apeiros: ule: do as bundler tells you - namely install the gem separately and check the error
[14:25:06] mustmodify: like, if you call and say, "Hey uh... these values are wrong." and you had evidence, they MIGHT look into it. But if you ask about median values or distributions for test results, they're like, "We don't support science."
[14:25:10] johnny56_: has joined #ruby
[14:25:21] mustmodify: ask about encoding and they look at me with a confused look.
[14:25:39] apeiros: mustmodify: well, obviously you have to explain it in a language they understand…
[14:25:45] ule: apeiros: that's the problem.. I tried to install the freaking bundle separatedly but didn't work.. not sure if it's related with MacOS 10.11.3
[14:25:47] Pupeno: has joined #ruby
[14:25:56] apeiros: ule: not the bundle. the gem.
[14:25:58] OTORelic: has joined #ruby
[14:26:00] ule: sudo gem install therubyracer -v '0.12.2'
[14:26:16] ule: creashes.. I'm using ruby 2.3
[14:26:25] apeiros: ule: aha. and you didn't tell us because you wanted to let us have the fun of riddling on that?
[14:26:27] mustmodify: ule: hint, if you're on a mac, you're going to experience pain with gems and stuff. Sorry. :(
[14:26:48] ule: dude.. I'm jumping on ruby since last week
[14:27:01] ule: all those incompatibilities with versions sucks
[14:27:02] apeiros: ule: anyway, if you want anybody to help, post the full error you get to a pastebin. likely you're using an old rubyracer with a new ruby.
[14:27:18] ule: apeiros: sorry.. I'm gonna do that..
[14:27:19] apeiros: mustmodify: that's just FUD. please refrain from that.
[14:27:24] abyx: has joined #ruby
[14:27:41] mustmodify: apeiros: Most labs seem to use windows. In fact, when I said I wanted to start receiving lab results, they suggested I download their windows client which "copies result files to your desktop."
[14:27:53] mustmodify: and I was like, "no."
[14:27:53] apeiros: the only gems I had issues so far were PITA almost regardless of the platform.
[14:28:42] apeiros: mustmodify: as long as the same lab keeps using the same export procedure, all you need to know is from which lab a file comes.
[14:28:46] IrishGringo: has joined #ruby
[14:28:47] apeiros: and figure the encoding once
[14:29:05] krobzaur: has joined #ruby
[14:29:13] malcolmva: has joined #ruby
[14:29:34] mustmodify: yep. I'm assuming 1252 since that seems to work and just hard-coding that this interfaces uses this encoding.
[14:29:40] hxegon: has joined #ruby
[14:29:44] ule: apeiros: mustmodify http://pastebin.com/raw/LKphCfWD
[14:29:45] ruby[bot]: ule: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[14:30:01] apeiros: hm, why's registing broken?
[14:30:10] mustmodify: apparently we don't like pastebin but if you whine enough we'll copy it to a gist for you. :S
[14:30:30] ule: soo.. I'll gist it..
[14:30:43] pawnbox: has joined #ruby
[14:30:59] weemsledeux: has joined #ruby
[14:30:59] mustmodify: just kidding.
[14:31:04] mustmodify: I don't think you should gist it.
[14:31:08] idefine: has joined #ruby
[14:31:15] mustmodify: yes you should gist it. I thought... nm.
[14:31:20] mustmodify: I'm having a bad day. Ignore me.
[14:31:22] ule: https://gist.github.com/anonymous/c5171725f04cdcaee8f5e42c49346a73
[14:31:23] mustmodify: Unless I ask a question.
[14:31:25] ule: here we go
[14:31:44] apeiros: hm, 0.12.2 seems to be the current version.
[14:31:58] Pupeno: has joined #ruby
[14:32:04] apeiros: ah, but the files which make problems are from /usr/local
[14:32:18] apeiros: which would not be files from the gem
[14:33:03] lxsameer: has joined #ruby
[14:33:43] ule: maybe if I clea all the freaking gems?
[14:33:51] ule: and install it again?
[14:33:55] ule: https://github.com/cowboyd/therubyracer/issues/398
[14:34:12] ule: gonna try upgrating gcc
[14:34:12] apeiros: not sure what the problem is. but it sounds like it is trying to use a system v8, which can't be compiled.
[14:34:20] chagel: has joined #ruby
[14:34:24] apeiros: but according to therubyracer, it uses the libv8 gem…
[14:34:30] apeiros: what happens when you install the libv8 gem?
[14:34:30] ule: I installed v8 from brew
[14:34:51] ule: ok.. I'll remove and install again using gem..
[14:35:07] ule: so.. I have a newba question...
[14:35:24] ule: We have gems, rbenv, rvm, bundle.. Why is ruby crazy like that
[14:35:33] ule: why too much packages managers
[14:35:42] apeiros: I guess that's why I was able to install it without problems - I don't have v8 via brew
[14:35:53] apeiros: ule: you're misunderstanding. those aren't all package managers.
[14:35:59] ule: apeiros: that makes sense
[14:36:00] apeiros: rubygems is the only package manager.
[14:36:14] stannard_: has joined #ruby
[14:36:16] ule: ok.. and looks like it comes with mac out-of-the-box
[14:36:27] apeiros: rbenv, rvm, chruby etc. are ruby version managers. they enable having multiple ruby versions along each other and switching
[14:36:33] havenwood: ule: RubyGems ships with Ruby. Bundler is itself a gem. Yeah, Ruby (along with RubyGems) ships with OS X.
[14:36:54] apeiros: bundler builds up on rubygems to handle gems on a per-project basis and isolating it from system-gems (to avoid version conflicts among multiple developers of the package)
[14:36:57] ule: I see..
[14:37:16] ule: in PHP we only have composer.. and that's it
[14:37:24] apeiros: i.e. bundler is there to ensure that everybody working on a project uses precisely the same version of all gems
[14:37:49] ule: gem uninstall libv8
[14:37:50] apeiros: bundler and rubygems will probably merge, though. rubygems already can handle a wide variety of bundlers tasks.
[14:37:55] ule: gem uninstall therubyracer
[14:37:58] jolts: has joined #ruby
[14:38:07] navneet: has joined #ruby
[14:38:12] mustmodify: It's UN-FREAKING-TESTABLE
[14:38:15] mustmodify: sorry just venting
[14:38:26] havenwood: ule: Packagist and PEAR and phppm and...
[14:38:26] apeiros: mustmodify: your encoding issue?
[14:38:27] adaedra: do: cat > /dev/null
[14:38:31] adaedra: and hop, a space to vent.
[14:38:44] mustmodify: adam12: Oh right, that's actually a good idea.
[14:38:48] havenwood: ule: You've kinda got it backwards.
[14:38:51] shevy: those poor cats
[14:39:07] apeiros: ACTION only remembers PEAR
[14:39:20] poerror: has joined #ruby
[14:39:21] adaedra: PEAR rhymes with FEAR. Coincidence?
[14:39:32] shevy: pear also rhymes with bear!
[14:39:32] ule: havenwood: you right..
[14:39:36] apeiros: and that was similar to CPAN iirc, and would play in the same league as rubygems - again iirc.
[14:39:42] mustmodify: I wrote an interface class that loads the files and then does some stuff. And the stuff is messing with my ability to test the encoding reproducably.
[14:39:48] msg31: has left #ruby: ("Leaving")
[14:39:54] mustmodify: because I suck.
[14:40:13] blandflakes: has joined #ruby
[14:40:21] apeiros: mustmodify: stop thinking of <food|sexual adventures> then and start coding :-p
[14:40:22] shevy: mustmodify that may be but - look at the apeiros explanation above, where he has to check a lot of stuff
[14:40:47] Pupeno: has joined #ruby
[14:40:53] ule: sudo gem install libv8 -v '3.16.14.3' -- --with-system-v8
[14:41:25] shevy: [Short summary] 1) test for BOM (-> utf-16) 2) test for valid_encoding? with utf-8 (-> utf-8) 3) frequency analysis on special chars for windows-1252 vs. macroman and pick the more probable
[14:41:31] ule: nothing
[14:41:34] shevy: ok it's not so short but still
[14:41:35] ule: both crashes
[14:41:50] ule: you know what.. fuck this shit.. I'm gonna run a docker with ubuntu or debian
[14:42:12] apeiros: ?encoding mustmodify
[14:42:12] ruby[bot]: mustmodify: check https://gist.github.com/apeiros/39acc5b486f932403638 - it might contain useful informations to solve your encoding problems
[14:42:24] shevy: what is the libv8 component again?
[14:42:46] fedexo: has joined #ruby
[14:42:47] shevy: ah "V8 JavaScript engine"
[14:42:52] apeiros: ule: do you need libv8 for anything besides your ruby project? if not, I'd try to uninstall the brewed libv8.
[14:44:58] ule: I think I'll need
[14:45:18] ule: ok.. so.. I'll try to install v8 again
[14:45:22] nanoz: has joined #ruby
[14:48:07] navneet_: has joined #ruby
[14:49:17] davidbug: has joined #ruby
[14:49:24] ule: sudo gem install libv8
[14:49:46] stannard: has joined #ruby
[14:50:04] ghr: has joined #ruby
[14:51:33] Pupeno: has joined #ruby
[14:51:53] Jonah11_: has joined #ruby
[14:53:06] jackjackdripper: has joined #ruby
[14:54:08] tubuliferous: has joined #ruby
[14:54:14] tuelz3: has joined #ruby
[14:55:16] codecop: has joined #ruby
[14:55:53] dfockler: has joined #ruby
[14:57:20] ule: this is so cool.. check this out:
[14:57:23] codecop: has joined #ruby
[14:57:31] ule: gem list | grep therubyracer
[14:57:35] ghr: has joined #ruby
[14:57:36] ule: therubyracer (0.12.2)
[14:57:38] Devalo: has joined #ruby
[14:57:41] ule: now.. check this
[14:57:52] ule: bundle install
[14:58:01] CloCkWeRX: has joined #ruby
[14:58:08] ule: An error occurred while installing therubyracer (0.12.2), and Bundler cannot continue.
[14:58:11] ule: Make sure that `gem install therubyracer -v '0.12.2'` succeeds before bundling.
[14:58:44] william3: has joined #ruby
[14:58:46] canton7: how long ago did you install therubyracer? could your build environment have changed?
[14:58:53] pawnbox: has joined #ruby
[14:58:59] ule: I installed like 2 minutes ago
[14:59:14] ule: brew install v8-315
[14:59:17] ule: gem install libv8 -v '3.16.14.13' -- --with-system-v8
[14:59:19] ule: gem install therubyracer -- --with-v8-dir=/usr/local/opt/v8-315
[14:59:22] ule: and that's it
[14:59:35] canton7: I'm guessing bundler isn't configured to pass --with-v8-dir?
[14:59:44] ule: maybe I have two versions of gem? one in system and another one in local env?
[15:00:00] ule: canton7: humm I'll try to set this
[15:00:09] Pupeno: has joined #ruby
[15:00:32] canton7: bundler's just telling you that it couldn't install therubyracer into a local gem bundle - since there's a lot of native stuff going on, that's probably because it's trying to use some incorrect configuration
[15:00:44] canton7: also, you might need to get bundler to install libv8? I'm guessing here
[15:01:09] idefine: has joined #ruby
[15:01:22] ekinmur: has joined #ruby
[15:01:24] ule: canton7: I forked a repository.. I was just running bundle especting that everything would work
[15:01:50] canton7: you've probably got v8 installed locally into a different place to the person who wrote the repository
[15:01:52] dionysus69: has joined #ruby
[15:02:07] ule: that makes sense..
[15:02:27] ule: so.. I'll do some research to understand why those multiple options of install.. system/local
[15:02:47] ule: maybe I need to figure out how to get rid of system installs/gems
[15:03:02] canton7: I don't think that will affect you?
[15:03:06] ule: or create a kind of symbolic link poinint to the folder I want
[15:03:56] pawnbox: has joined #ruby
[15:03:59] canton7: http://stackoverflow.com/questions/21141657/rails-how-to-use-options-correctly-for-bundle-install looks relevant
[15:04:27] ule: everything is more clear in my head now..
[15:04:44] ule: since I already have therubyracer installed.. I just commented it on my Gemfile
[15:05:02] ule: I'll read more about those things
[15:06:52] djbkd: has joined #ruby
[15:07:12] idefine: has joined #ruby
[15:08:15] davedev24: has joined #ruby
[15:08:54] goodroot: has joined #ruby
[15:10:04] pwnd_nsfw`: has joined #ruby
[15:11:08] stannard: has joined #ruby
[15:11:16] navneet: has joined #ruby
[15:11:51] Marsjan: has joined #ruby
[15:12:32] czerasz2: has joined #ruby
[15:12:37] pwnd_nsfw`: has left #ruby: ()
[15:13:49] pwnd_nsfw: has joined #ruby
[15:13:58] b|ackwolf: has joined #ruby
[15:14:17] idefine: has joined #ruby
[15:14:22] djbkd: has joined #ruby
[15:14:30] b|ackwolf: what is the alternative to do this? (class << self; self; end).module_exec { something }
[15:14:46] kareeoleez: has joined #ruby
[15:14:59] mustmodify: b|ackwolf: What are you trying to do?
[15:15:03] mustmodify: more broadly...
[15:16:31] helpa-bot: has joined #ruby
[15:16:44] Polysics_: has joined #ruby
[15:16:54] zacstewart: has joined #ruby
[15:17:19] nanoz]: has joined #ruby
[15:17:27] beawesomeinstead: has joined #ruby
[15:17:39] b|ackwolf: mustmodify, it defines a method inside eigenclass of in which class it's specified.
[15:17:54] cb: has joined #ruby
[15:17:54] flak: has joined #ruby
[15:18:01] Bilge: has joined #ruby
[15:18:03] RegulationD: has joined #ruby
[15:18:07] pawnbox: has joined #ruby
[15:18:09] navneet_: has joined #ruby
[15:18:10] zapata: has joined #ruby
[15:18:28] OTORelic1: has joined #ruby
[15:18:33] nyandoge: has joined #ruby
[15:18:37] jackjackdripper1: has joined #ruby
[15:18:50] alxndr: has joined #ruby
[15:18:54] BillSussman: has joined #ruby
[15:19:00] thomasfedb: has joined #ruby
[15:19:00] thomasfedb: has joined #ruby
[15:19:07] dellavg: has joined #ruby
[15:19:09] CloCkWeRX1: has joined #ruby
[15:19:10] mrfooo: has joined #ruby
[15:19:13] kalz: has joined #ruby
[15:19:27] RIK: has joined #ruby
[15:19:35] vcoinminer: has joined #ruby
[15:19:38] joaomdmoura__: has joined #ruby
[15:19:41] ELCALOR: has joined #ruby
[15:19:42] Phanes: has joined #ruby
[15:19:42] Phanes: has joined #ruby
[15:19:43] tedwards: has joined #ruby
[15:20:07] jazzonmymind: has joined #ruby
[15:20:21] zipkid: has joined #ruby
[15:20:31] ohcibi: has joined #ruby
[15:20:33] ljames: has joined #ruby
[15:20:35] MagePsycho_: has joined #ruby
[15:20:44] ByronJoh1son: has joined #ruby
[15:20:44] awk_: has joined #ruby
[15:20:45] Drakevr_: has joined #ruby
[15:20:48] PedramT: has joined #ruby
[15:20:51] tw1sted_: has joined #ruby
[15:20:53] reaVer_: has joined #ruby
[15:20:57] skmp: has joined #ruby
[15:21:13] joevandy1: has joined #ruby
[15:21:13] stannard: has joined #ruby
[15:21:14] GGMethos: has joined #ruby
[15:21:19] SuperLag: has joined #ruby
[15:21:25] frode15243: has joined #ruby
[15:21:26] Fire-Dragon-DoL: has joined #ruby
[15:21:29] ltp_: has joined #ruby
[15:21:30] cout_: has joined #ruby
[15:21:34] iamvery_: has joined #ruby
[15:21:35] funnel_: has joined #ruby
[15:21:51] deavid: has joined #ruby
[15:21:52] swills_: has joined #ruby
[15:21:53] speaking1ode: has joined #ruby
[15:21:58] ocbtec_: has joined #ruby
[15:22:03] twistedpixels: has joined #ruby
[15:22:07] twodayslate: has joined #ruby
[15:22:07] bruno-: has joined #ruby
[15:22:11] soraher: has joined #ruby
[15:22:15] chris22: has joined #ruby
[15:22:32] SilverKey: has joined #ruby
[15:22:43] ekinmur_: has joined #ruby
[15:22:49] phredus_: has joined #ruby
[15:23:19] navneet_: has joined #ruby
[15:23:20] bjmllr: has joined #ruby
[15:23:26] _whitelogger: has joined #ruby
[15:23:28] olivierjanss: has joined #ruby
[15:23:28] Apocalypse: has joined #ruby
[15:23:29] avdi: has joined #ruby
[15:23:31] eggoez: has joined #ruby
[15:23:33] shevy: has joined #ruby
[15:23:55] GinoMan2440: has joined #ruby
[15:23:57] Coldblackice_: has joined #ruby
[15:23:58] Mekkis: has joined #ruby
[15:23:58] kareeoleez: has joined #ruby
[15:24:04] podman: has joined #ruby
[15:24:08] LaT0rtue: has joined #ruby
[15:24:33] xleagd: has joined #ruby
[15:24:45] jmcc________: has joined #ruby
[15:25:05] idefine: has joined #ruby
[15:25:17] canton7_: has joined #ruby
[15:25:36] sgambino_: has joined #ruby
[15:25:54] Frem: has joined #ruby
[15:25:54] martinbjeldbak_: has joined #ruby
[15:25:54] vifino-: has joined #ruby
[15:25:59] william3: has joined #ruby
[15:26:03] manveru: has joined #ruby
[15:26:34] M-shine: has joined #ruby
[15:26:36] Waqas: has joined #ruby
[15:26:38] russt: has joined #ruby
[15:26:47] callen92: has joined #ruby
[15:27:09] camilasan: has joined #ruby
[15:27:16] Nuck: has joined #ruby
[15:27:40] tubuliferous: has joined #ruby
[15:27:53] flaf: has joined #ruby
[15:28:12] aegis3121: has joined #ruby
[15:28:13] jgrevich: has joined #ruby
[15:28:40] helpa: has joined #ruby
[15:28:52] yasu_: has joined #ruby
[15:28:53] agent_white: has joined #ruby
[15:28:58] siaW: has joined #ruby
[15:29:07] bnagy: has joined #ruby
[15:29:43] programmerq: has joined #ruby
[15:29:48] surrounder: has joined #ruby
[15:29:51] thesheff17: has joined #ruby
[15:30:09] Emmanuel_Chanel: has joined #ruby
[15:30:10] Tharbakim: has joined #ruby
[15:30:10] jidar: has joined #ruby
[15:30:12] Hobart: anyone familiar with native ext. gem building around? (getting an error msg, not sure if it indicates a bad configure script)
[15:30:15] d0nn1e: has joined #ruby
[15:30:19] free_beard: has joined #ruby
[15:30:24] gnufied: has joined #ruby
[15:30:26] al2o3-cr1: has joined #ruby
[15:30:28] whiteline: has joined #ruby
[15:30:28] nemesit|znc: has joined #ruby
[15:30:38] jaruga__: has joined #ruby
[15:30:44] MaienM: has joined #ruby
[15:30:50] sepp2k: has joined #ruby
[15:30:50] barajasfab: has joined #ruby
[15:30:50] hk238: has joined #ruby
[15:30:50] [ace]: has joined #ruby
[15:30:52] webus: has joined #ruby
[15:30:57] C0deMaver1ck: has joined #ruby
[15:31:00] funnel_: has joined #ruby
[15:31:05] Trieste: has joined #ruby
[15:31:21] marens: has joined #ruby
[15:31:34] Couch: has joined #ruby
[15:31:54] mburns: has joined #ruby
[15:31:56] tsunamie: has joined #ruby
[15:32:00] Zarthus: has joined #ruby
[15:32:07] agentmeerkat: has joined #ruby
[15:32:31] kapowaz: has joined #ruby
[15:32:37] nyuszika7h: has joined #ruby
[15:32:42] SilverKey: has joined #ruby
[15:33:09] daxroc: has joined #ruby
[15:33:09] AckZ: has joined #ruby
[15:33:22] troter_________: has joined #ruby
[15:33:32] psmolen: has joined #ruby
[15:33:39] raenk: has joined #ruby
[15:34:07] Maletor: has joined #ruby
[15:34:07] spastorino: has joined #ruby
[15:34:24] mroth: has joined #ruby
[15:34:28] lxsameer: has joined #ruby
[15:34:28] lxsameer: has joined #ruby
[15:35:05] Jonah11_: has joined #ruby
[15:35:21] ammar: has joined #ruby
[15:35:23] tonini: has joined #ruby
[15:35:56] pabs: has joined #ruby
[15:36:00] barajasfab: has joined #ruby
[15:36:24] Arcaire: has joined #ruby
[15:36:29] merida: has joined #ruby
[15:36:55] arup_r: has joined #ruby
[15:37:06] nyandoge: has joined #ruby
[15:37:11] stannard_: has joined #ruby
[15:37:11] bb010g: has joined #ruby
[15:37:21] banister: has joined #ruby
[15:37:25] Hanmac: has joined #ruby
[15:37:59] navneet: has joined #ruby
[15:38:07] C0deMaver1ck_: has joined #ruby
[15:38:29] borkdude: has joined #ruby
[15:38:37] optimaleatscout_: has joined #ruby
[15:38:38] bedouin: has joined #ruby
[15:38:38] MissionCritical: has joined #ruby
[15:38:38] dmnd: has joined #ruby
[15:38:51] navneet: has joined #ruby
[15:38:52] cbetta: has joined #ruby
[15:38:54] ruurd: has joined #ruby
[15:39:01] jabreity: has joined #ruby
[15:39:07] bauruine: has joined #ruby
[15:39:13] ramblinpeck: has joined #ruby
[15:40:23] tagaulap: has joined #ruby
[15:40:32] arup_r: has left #ruby: ()
[15:40:45] deeprave: has joined #ruby
[15:41:24] monod: has joined #ruby
[15:41:48] poguez_: has joined #ruby
[15:42:04] kareeoleez: has joined #ruby
[15:42:20] frode15243: has joined #ruby
[15:42:24] zrl: has joined #ruby
[15:42:32] nixmaniack: has joined #ruby
[15:43:04] acerna: has joined #ruby
[15:44:05] bcavileer: has joined #ruby
[15:44:20] agent_white: Mornin' folks
[15:44:40] flaf: Hi, I would like to use heredoc to put a string in a variable. I would like to be able to break long lines in the code but have a string without \n (just one line)in the variable. The only way I have found is https://gist.github.com/flaf/5be7d57b163b987dc4cef13656367693 . Is there simpler? Maybe I have missed a magic syntax with heredoc?
[15:45:28] cstrahan: has joined #ruby
[15:45:49] joaomdmoura__: has joined #ruby
[15:46:08] kexmex__: has joined #ruby
[15:46:08] soahccc: has joined #ruby
[15:46:10] phrozen77: has joined #ruby
[15:46:14] kexmex__: whats the diff between "" and :
[15:46:14] c355E3B: has joined #ruby
[15:46:37] bkxd: has joined #ruby
[15:46:56] pawnbox: has joined #ruby
[15:47:03] dfockler: In what context?
[15:47:19] im0b: has joined #ruby
[15:47:55] err_ok: has joined #ruby
[15:48:05] hk238: has joined #ruby
[15:48:16] deepak: has joined #ruby
[15:49:03] lkba: has joined #ruby
[15:49:14] jzigmund: has joined #ruby
[15:49:39] canton7: flaf, https://eval.in/554189? It doesn't create an intermediate array at least, although it will remove extra leading whitespace as well
[15:50:54] william3: has joined #ruby
[15:51:27] flaf: Ah thx canton7. It's better than my code. Impossible to have a way without gsub, correct?
[15:51:57] flaf: No magic heredoc syntax?
[15:52:06] mustmodify: kexmex__: One is composed of two double-quote characters. The other is composed of a colon character.
[15:52:07] canton7: not that I know of
[15:52:11] zipkid: has joined #ruby
[15:52:16] flaf: Ok, thx canton7.
[15:53:11] inukshuk_: has joined #ruby
[15:53:36] madgen: has joined #ruby
[15:54:25] al2o3-cr: flaf: https://eval.in/554190
[15:54:30] kexmex__: dfockler: in map keys i guess
[15:54:50] dopie: has joined #ruby
[15:54:55] yo61: has joined #ruby
[15:55:26] ssiris: has joined #ruby
[15:55:48] brent__: has joined #ruby
[15:56:27] bosnianboy: has joined #ruby
[15:57:28] merida: has joined #ruby
[15:57:44] brent__: i'm suppose to pick an algorithm and understand it and present it to a group, and wondering if anyone had any suggestions for a popular algorithm that would be useful to know
[15:58:29] flaf: al2o3-cr: thx but I would like to use heredoc to avoid questions concerning ", ' escaping etc.
[15:58:47] rickmasta: has joined #ruby
[15:58:56] al2o3-cr: flaf: fair enough :P
[15:59:36] heyimwill: has joined #ruby
[15:59:58] Regulati_: has joined #ruby
[16:00:04] kareeoleez: has joined #ruby
[16:01:02] synthroid: has joined #ruby
[16:01:08] amclain: has joined #ruby
[16:01:40] Nanuq: has joined #ruby
[16:02:14] lxsameer: has joined #ruby
[16:02:30] mustmodify: brent__: http://www.sorting-algorithms.com/ ?
[16:03:01] bluOxigen: has joined #ruby
[16:04:12] bosnianboy: has joined #ruby
[16:04:19] bosnianboy: got a noob question
[16:04:29] G: has joined #ruby
[16:04:48] bosnianboy: I'm building a docker image with ruby 2.3
[16:04:50] bosnianboy: based on alpine
[16:05:00] bosnianboy: it throws me these on some gems
[16:05:03] bosnianboy: "You have to install development tools first"
[16:05:06] krasnus: has joined #ruby
[16:05:08] Jonah11_: has joined #ruby
[16:05:13] tax: has joined #ruby
[16:05:14] bosnianboy: what needs to be installed for that part?
[16:05:40] newdan: has joined #ruby
[16:05:52] acidrainfall: has joined #ruby
[16:06:12] idefine: has joined #ruby
[16:06:15] Hobbyboy: has joined #ruby
[16:06:43] idefine: has joined #ruby
[16:06:52] adaedra: bosnianboy: a c compiler (gcc, usually), ruby development headers.
[16:07:23] acidrainfall: So I'm trying to figure out how to get the elasticsearch-api gem syntax for this command: /(index)/_stats/commit?level=shards. This is what my code looks like (just an out of context snippet for testing) http://fpaste.org/356287/07364231/ and here's the docs on the api: http://www.rubydoc.info/gems/elasticsearch-api/Elasticsearch/API/Indices
[16:07:29] bosnianboy: thanks adaedra
[16:07:35] newdan: Is there a way to do `def an_instance.method` but in a non-syntactic way? I want to use a block so I can access outer vars. (I'm writing a test and I want to set a flag if a method is called. So the body is something like `super.tap { got_called = true }`)
[16:07:38] djbkd: has joined #ruby
[16:07:43] acidrainfall: client.indices.stats.commit is not valid, nor is client.indices.stats commit: true.
[16:08:41] krobzaur: has joined #ruby
[16:08:48] brent__: mustmodify : any recommendations on which one may be most beneficial?
[16:09:23] shevy: newdan define_method does not work?
[16:09:51] baweaver: has joined #ruby
[16:10:19] newdan: shevy: It does that on the class, but I don't want to change the whole class, I just want this feature for this one test
[16:10:31] shinnya: has joined #ruby
[16:11:41] dangerousdave: has joined #ruby
[16:11:48] Timberwo|f: has joined #ruby
[16:12:42] smathy: has joined #ruby
[16:12:42] newdan: `an_instance.define_singleton_method(:some_method){|*args| super(*args).tap{ got_called = true }}` seems to do what I'm after... Does that look wrong to anyone? (Other than that it's all on one line, in my source it'll be expanded)
[16:13:33] shevy: it looks very complex
[16:13:51] davidbug: has joined #ruby
[16:14:07] Bilge: has joined #ruby
[16:14:21] brent__: has joined #ruby
[16:14:21] Xeago: has joined #ruby
[16:14:23] pawnbox: has joined #ruby
[16:14:24] synthroid: has joined #ruby
[16:14:24] newdan: Yeah, I am not gonna commit it looking like that. Just didn't wanna have a multiline paste into IRC
[16:15:27] deepak: has joined #ruby
[16:16:03] JesseH: has joined #ruby
[16:18:09] heyimwill: has joined #ruby
[16:18:45] kareeoleez: has joined #ruby
[16:18:45] SilverKey: has joined #ruby
[16:18:49] ramblinpeck: has joined #ruby
[16:18:52] err_ok: has joined #ruby
[16:20:05] optimaleatscout_: has joined #ruby
[16:20:10] tristanp_: has joined #ruby
[16:20:17] jpinnix_______: has joined #ruby
[16:20:25] hobodave: has joined #ruby
[16:20:41] dmnd: has joined #ruby
[16:21:17] audiodude: has joined #ruby
[16:21:48] shevy: will still be complex even if spaced out onto several lines :)
[16:22:35] Arcaire: has joined #ruby
[16:23:05] lkba: has joined #ruby
[16:23:52] newdan: I dunno. Doesn't seem *that* complex imo, and with a comment saying the whole point is to just set got_called if the method gets called, I think it's not too hard to puzzle out. My test makes no sense if some other part of the system results in that method not being called so I think the small complexity in this specific test is acceptable
[16:24:14] newdan: I mean I would be happy if I could do it in a simpler way
[16:24:59] toretore: i think it's fine
[16:25:03] n008f4g_: has joined #ruby
[16:25:04] benlieb: has joined #ruby
[16:25:07] toretore: it's basically a mock or spy
[16:26:01] zipkid: has joined #ruby
[16:26:19] marens: has joined #ruby
[16:27:27] smathy: Can just do super.tap no?
[16:27:48] kareeoleez: has joined #ruby
[16:28:10] newdan: smathy: Not in a block. If I declared with `def an_instance.some_method(*args)` then yes
[16:28:39] MagePsycho_: has joined #ruby
[16:28:43] bb010g: has joined #ruby
[16:28:51] bosnianboy: is there a way to install ruby-dev from source?
[16:29:06] ammar: has joined #ruby
[16:29:25] smathy: newdan, interesting, thanks. TIL
[16:29:45] Timberwo|f: has joined #ruby
[16:29:55] shtirlic: has joined #ruby
[16:30:08] PedramT: has joined #ruby
[16:30:14] spastorino: has joined #ruby
[16:30:16] phpwebdev: has joined #ruby
[16:32:10] shevy: bosnianboy isn't that some distribution package? and -dev would imply header files
[16:32:38] dopie: has joined #ruby
[16:32:55] bosnianboy: shevy, don't have distort package for alpine linux (docker) trying to build it and I need header files for gems that require compiling
[16:33:46] rrichardsr3: has joined #ruby
[16:33:53] C0deMaver1ck: has joined #ruby
[16:34:33] tsunamie: has joined #ruby
[16:35:09] nickjj: bosnianboy, why not use the official hub's ver of ruby?
[16:35:38] bosnianboy: nickjj, isn't that 2.2 ruby?
[16:35:40] nickjj: they have a lot of different 2.x versions (including an alpine release)
[16:35:47] nickjj: 2.1 to 2.3
[16:36:02] terminalrecluse: has joined #ruby
[16:36:08] webus: has joined #ruby
[16:36:40] nickjj: i just migrated an app to an alpine base and it went from 450mb to 112mb
[16:37:29] blackmesa: has joined #ruby
[16:38:02] bosnianboy: https://github.com/docker-library/ruby/blob/1f19e5d966aadfaac7ce4a9d4db8f982db2fe690/2.3/alpine/Dockerfile
[16:38:03] modin: has joined #ruby
[16:38:07] bosnianboy: this one, nickjj ?
[16:38:26] [ace]: has joined #ruby
[16:38:41] nickjj: bosnianboy, yeah
[16:38:48] jzigmund: has joined #ruby
[16:39:07] bosnianboy: yep, used that one initially, but some gems fail on compiling
[16:39:09] rbr: has joined #ruby
[16:39:30] nickjj: were you using jessie before?
[16:39:50] nickjj: you'll need to add in a few supporting packages so you can compile a couple of gems
[16:40:24] johnny56_: has joined #ruby
[16:40:45] nickjj: for instance with postgres, you would typically need libpq-dev installed on a debian based OS but with alpine that package is named postgresql-dev
[16:41:38] aufi: has joined #ruby
[16:41:39] nickjj: if you're interested, this blog post has a super optimized dockerfile for alpine http://nickjanetakis.com/blog/alpine-based-docker-images-make-a-difference-in-real-world-apps -- i use the same strategy for my rails apps and the savings in size are similar
[16:42:19] djbkd: has joined #ruby
[16:42:25] shtirlic: has joined #ruby
[16:45:04] acidrainfall: I'm having a hell of a time with this. I have a multi-level JSON hash from elasticsearch, and I want to .each on a particular set of keys. What would you do?
[16:45:32] acidrainfall: This is what the chain looks like: stats['indices'][index]['shards']
[16:45:41] atmosx: has joined #ruby
[16:45:43] acidrainfall: I want to .each on each shard.
[16:45:56] hk238: has joined #ruby
[16:46:04] kareeoleez: has joined #ruby
[16:46:04] pawnbox: has joined #ruby
[16:46:23] stannard: has joined #ruby
[16:46:56] pabs: has joined #ruby
[16:47:45] nando293921: has joined #ruby
[16:48:38] tildes: has joined #ruby
[16:48:46] dhollinger: has joined #ruby
[16:48:49] FifthWall: has joined #ruby
[16:49:01] curses: has joined #ruby
[16:49:02] mikecmpbll: has joined #ruby
[16:49:33] jhass: just .each?
[16:49:34] FooMunki: has joined #ruby
[16:49:47] acidrainfall: .each was pulling the entire dataset
[16:49:51] acidrainfall: .each_key gets me what I want.
[16:51:27] Shidash: so I'm having a problem that seems a bit stupid- I'm trying to generate html for a link and save it in a string variable so I can use it later. To do this, I'm doing- '<a href="'+url+'">'
[16:51:56] Shidash: the problem is, when this variable is saved in a JSON, all the double quotes are escaped with a \ before them, so the html does not work
[16:52:09] shaun__: has joined #ruby
[16:52:43] Shidash: I've tried many variations and can't seem to get a version without escaped double quotes. Printing the variable in irb shows the html correctly, but for some reason the json shows the escaped version
[16:52:43] nixmaniack: has joined #ruby
[16:52:43] nixmaniack: has joined #ruby
[16:53:02] ruby[bot]: We can't help you without your code, please post it to https://gist.github.com
[16:53:16] Shidash: that's literally the code
[16:53:24] Shidash: it's on a different computer, will retype here
[16:53:29] alexherbo2: has joined #ruby
[16:53:29] pawnbox: has joined #ruby
[16:53:43] jhass: >> require "json"; %(quotes " quotes " quotes).to_json
[16:53:45] ruby[bot]: jhass: # => "\"quotes \\\" quotes \\\" quotes\"" (https://eval.in/554202)
[16:53:51] jhass: is that what confuses you?
[16:54:02] jhass: >> require "json"; puts %(quotes " quotes " quotes).to_json
[16:54:03] ruby[bot]: jhass: # => "quotes \" quotes \" quotes" ...check link for more (https://eval.in/554203)
[16:54:51] Shidash: yes, I think that's the problem
[16:55:10] shaun__: I have a beginners question with Ruby that I'd like answered because it's confusing the heck out of me.
[16:55:23] Shidash: though when I show the value of the variable in irb, the quotes are also escaped before .to_json, so I'm not sure this is caused by to_json?
[16:55:56] jhass: Shidash: irb like the above uses .inspect
[16:56:16] jhass: Shidash: I think you have a non-issue and are just confused about representation and value of certain things
[16:57:24] Shidash: jhass: it's definitely a problem. That JSON is later being read by a separate rails app, which can't parse it correctly because of the escaping
[16:57:32] toretore: Shidash: it's impossible to help unless we know exactly what your code does
[16:57:40] jhass: both sides actually
[16:57:40] iamayam: has joined #ruby
[16:58:04] Shidash: yeah, it's split over enough things that I'm not sure how to convey it yet
[16:58:05] toretore: there are several layers of serialization here that will likely escape those quote marks
[16:58:55] Shidash: I was hesitant to post this hear because I still need to clean up one script before I put it on github
[16:59:02] Shidash: but I've been stuck on this for a full day now
[16:59:10] jhass: btw the general idea sounds dangerous too, some html in some json probably delivered to a user in the end without any escaping, I hope you have no user content in there and proper authentication on the transport
[16:59:34] Shidash: jhass: it's not user content. It's links to other pages on the same website
[16:59:42] Shidash: which is read only
[16:59:58] toretore: >> require 'json'; s = '<a href="'+'url'+'">'; j = JSON.generate({url: s}); puts JSON.parse(j))['url']
[17:00:00] ruby[bot]: toretore: # => /tmp/execpad-3cf16e7606d2/source-3cf16e7606d2:2: syntax error, unexpected ')', expecting keyword_end ...check link for more (https://eval.in/554205)
[17:00:35] toretore: >> require 'json'; s = '<a href="'+'url'+'">'; j = JSON.generate({url: s}); puts JSON.parse(j)['url']
[17:00:36] ruby[bot]: toretore: # => <a href="url"> ...check link for more (https://eval.in/554206)
[17:00:38] joast: has joined #ruby
[17:00:42] jhass: generating links for another component in one sounds at least weird / bad design to me, sorry :)
[17:00:43] merida_: has joined #ruby
[17:01:00] jhass: generating HTML even more so
[17:01:22] Shidash: jhass: rails app is a general case search tool that works with any dataset. other component is a preprocessing script for a specific dataset.
[17:02:03] alexherbo2: has joined #ruby
[17:02:14] toretore: why do you put html in the json and not generate the html from json data when it's read?
[17:02:28] chagel: has joined #ruby
[17:02:40] kfpratt: has joined #ruby
[17:02:50] Shidash: toretore: because the html is specific to a single field on a single dataset for a single instance of the software
[17:03:12] Shidash: normally it is generated as it is read
[17:03:25] noService: has joined #ruby
[17:04:12] kareeoleez: has joined #ruby
[17:06:47] tax: has joined #ruby
[17:07:02] firstdayonthejob: has joined #ruby
[17:07:12] KensoDev: has joined #ruby
[17:07:38] minimalism: has joined #ruby
[17:08:04] IrishGringo: has joined #ruby
[17:08:05] BTRE: has joined #ruby
[17:08:25] djbkd_: has joined #ruby
[17:08:32] bronson: has joined #ruby
[17:08:40] banister: has joined #ruby
[17:08:41] hk238: has joined #ruby
[17:08:43] stannard: has joined #ruby
[17:08:58] jhn: has joined #ruby
[17:09:13] Shidash: https://gist.github.com/anonymous/70293b11a691ecab417eb099f9c9fef0 is a simpler processing script with the same issue. https://github.com/TransparencyToolkit/LookingGlass/blob/master/app/views/docs/_text.html.erb is the view code on the rails side, https://github.com/TransparencyToolkit/LookingGlass/blob/master/app/helpers/doc_format.rb are the processing helpers
[17:09:20] Shidash: the original processing script is pure ruby
[17:09:42] pietr0: has joined #ruby
[17:10:06] Shidash: if I was generating the links on rails, I'd just use link_to, which avoids this issue.
[17:10:24] Cork: has joined #ruby
[17:10:30] jhn: has left #ruby: ()
[17:11:14] Elysia: has joined #ruby
[17:11:14] matthew0: has joined #ruby
[17:11:50] charlemagne: has joined #ruby
[17:12:04] PedramT: has joined #ruby
[17:12:21] last_staff: has joined #ruby
[17:13:01] rbr: has joined #ruby
[17:13:43] OTORelic1: has joined #ruby
[17:13:45] navneet: has joined #ruby
[17:13:55] devyn: has joined #ruby
[17:14:00] djbkd: has joined #ruby
[17:14:15] ramfjord: has joined #ruby
[17:15:36] Shidash: I think for now I'm just going to print the url and have the rails app handle it like it normally does arrays of links. not ideal, but probably fine and better than wasting more time on this
[17:17:16] bluOxigen_: has joined #ruby
[17:17:17] amclain_: has joined #ruby
[17:17:36] Asher: has joined #ruby
[17:17:54] arlek_: has joined #ruby
[17:17:55] GinoMan2440_: has joined #ruby
[17:17:57] merida: has joined #ruby
[17:17:58] RegulationD: has joined #ruby
[17:18:03] OTORelic2: has joined #ruby
[17:18:14] bruno-_: has joined #ruby
[17:18:22] curses_: has joined #ruby
[17:18:29] jackjackdripper: has joined #ruby
[17:18:38] mozzarel1: has joined #ruby
[17:18:39] klka: has joined #ruby
[17:18:43] ghr: has joined #ruby
[17:18:46] smathy_: has joined #ruby
[17:18:48] william3_: has joined #ruby
[17:19:38] BrunoSaboia: has joined #ruby
[17:19:40] MagePsycho__: has joined #ruby
[17:19:41] tristanp: has joined #ruby
[17:19:48] last_staff1: has joined #ruby
[17:19:49] iamvery: has joined #ruby
[17:20:02] jhass: Shidash: are you maybe just running into Rails escaping?
[17:20:32] ereslibre_laptop: has joined #ruby
[17:20:32] ereslibre_laptop: has joined #ruby
[17:20:37] _djbkd: has joined #ruby
[17:20:38] konr: has joined #ruby
[17:20:48] blackmes1: has joined #ruby
[17:20:50] IrishGringo_: has joined #ruby
[17:21:13] Shidash: jhass: I don't think so. It's escaped when I print it in irb, in the JSON file, and when the text from that field is printed in rails
[17:21:14] pwnd_nsfw`: has joined #ruby
[17:21:23] dumdedum: has joined #ruby
[17:21:28] Shidash: when it's printed in the rails console, that is.
[17:21:38] frem_: has joined #ruby
[17:21:40] jhass: try using puts in the rails console
[17:21:48] jhass: I bet you're just still confused by .inspect
[17:21:59] ammar_: has joined #ruby
[17:22:08] jhass: and it's not actually escaped
[17:22:13] jabreity_: has joined #ruby
[17:22:21] jhass: and Rails just reescapes it, as it's not a html safe string
[17:22:24] mosez_: has joined #ruby
[17:22:32] sapslaj_: has joined #ruby
[17:22:33] awk: has joined #ruby
[17:22:38] devyn_: has joined #ruby
[17:22:46] jidar: has joined #ruby
[17:22:47] tildes: has joined #ruby
[17:22:48] jhass: http://api.rubyonrails.org/classes/String.html#method-i-html_safe
[17:22:55] cbetta_: has joined #ruby
[17:23:03] phredus: has joined #ruby
[17:23:16] thesheff17: has joined #ruby
[17:23:26] Shidash: *it's possible it's that, though I've run into that in the past and normally pass things raw (or rather a sanitized version of the html allowing certain tags including a)
[17:23:44] jmcc_________: has joined #ruby
[17:23:46] benlieb_: has joined #ruby
[17:23:54] _jolts: has joined #ruby
[17:24:13] Marsjan: has joined #ruby
[17:24:31] ELCALOR: has joined #ruby
[17:24:41] troter__________: has joined #ruby
[17:24:45] daxroc: has joined #ruby
[17:24:55] _jolts: has joined #ruby
[17:24:56] Shidash: the sanitize method I'm using is here- https://github.com/TransparencyToolkit/LookingGlass/blob/master/app/helpers/doc_format.rb, which seems to be what the html_safe method description suggests using instead
[17:25:23] alxndr_: has joined #ruby
[17:25:43] K3rvyN: has joined #ruby
[17:25:43] nyuszika7h_: has joined #ruby
[17:25:46] Shidash: raw(text) run in the sanitize method there in the rails console also prints the escaped links
[17:25:51] FifthWall_: has joined #ruby
[17:25:58] RIK: has joined #ruby
[17:25:58] mroth: has joined #ruby
[17:26:05] Scientz: has joined #ruby
[17:26:11] Nuck: has joined #ruby
[17:26:20] braincra-: has joined #ruby
[17:26:20] samuelkadolph1: has joined #ruby
[17:26:29] d0nn1e_: has joined #ruby
[17:26:40] jhass: seriously, you need to spend some time on understanding .inspect and that irb uses it
[17:26:50] jhass: String#inspect in particular
[17:27:18] bkxd: has joined #ruby
[17:27:42] deavid: has joined #ruby
[17:27:44] Bilge: has joined #ruby
[17:28:17] tw1sted: has joined #ruby
[17:30:37] helpa: has joined #ruby
[17:31:12] tax: has joined #ruby
[17:31:18] C0deMaver1ck: has joined #ruby
[17:31:29] xue: has joined #ruby
[17:31:50] jhass: so somewhere it's escaped, I still bet it's well after being decoded from json but I'm not going to crawl through all that stuff which is not even following a consistent coding style or try to get it running locally to prove that, sorry
[17:32:39] chouhoulis: has joined #ruby
[17:32:46] Shidash: I know. I've spent the past 24 hours failing to debug that
[17:32:49] Shidash: thanks, no thanks, goodbye
[17:32:57] jhass: besides for a browser to render it as <a> the angle brackets need to be converted to &lt; etc or it would need to be inserted into a <pre> tag, none which any remotely sane json library would do to you string
[17:33:14] jhass: *your string
[17:33:32] bry4n: has joined #ruby
[17:33:32] danjack: has joined #ruby
[17:33:39] cdg: has joined #ruby
[17:33:54] minimalism: has joined #ruby
[17:34:09] dopieee: has joined #ruby
[17:34:18] solars: has joined #ruby
[17:34:18] vondruch: has joined #ruby
[17:34:18] Chunlea_: has joined #ruby
[17:34:30] ssiris: has joined #ruby
[17:34:31] matp: has joined #ruby
[17:34:31] zenlot6: has joined #ruby
[17:34:45] jazzonmymind: has joined #ruby
[17:35:04] jolts: has joined #ruby
[17:35:16] pietr0: has joined #ruby
[17:35:22] noService: has joined #ruby
[17:35:37] ocbtec: has joined #ruby
[17:36:06] jolts: has joined #ruby
[17:36:15] disconnekted: has joined #ruby
[17:36:19] Elysia: has joined #ruby
[17:36:22] romain_t: has joined #ruby
[17:36:23] nixmaniack: has joined #ruby
[17:36:23] nixmaniack: has joined #ruby
[17:36:40] Caelum: has joined #ruby
[17:37:00] agentmeerkat: has joined #ruby
[17:37:18] SilverKey: has joined #ruby
[17:37:47] Infra-Red: has joined #ruby
[17:38:15] spangler: has joined #ruby
[17:39:00] bnagy: has joined #ruby
[17:39:34] acidrainfall: has joined #ruby
[17:39:43] brent__: has joined #ruby
[17:39:43] sandelius: has joined #ruby
[17:39:59] Phanes: has joined #ruby
[17:40:00] Phanes: has joined #ruby
[17:40:03] MaienM: has joined #ruby
[17:40:24] jolts: has joined #ruby
[17:40:28] sauvin: has joined #ruby
[17:40:53] GGMethos: has joined #ruby
[17:40:55] Rixius: has joined #ruby
[17:41:17] diegok: has joined #ruby
[17:41:27] jolts: has joined #ruby
[17:41:53] CloCkWeRX: has joined #ruby
[17:42:19] eljimmy: has joined #ruby
[17:42:29] dopie: has joined #ruby
[17:42:33] kfpratt: has joined #ruby
[17:43:13] psmolen: has joined #ruby
[17:43:15] err_ok: has joined #ruby
[17:43:33] atmosx: has joined #ruby
[17:43:42] jpinnix_______: has joined #ruby
[17:44:07] gnufied: has joined #ruby
[17:44:11] deepak: has joined #ruby
[17:44:13] nullwarp: has joined #ruby
[17:45:03] duderonomy: has joined #ruby
[17:45:20] bb010g_: has joined #ruby
[17:45:41] canton7: has joined #ruby
[17:45:41] dangerousdave: has joined #ruby
[17:45:42] dmnd: has joined #ruby
[17:46:15] araujo: has joined #ruby
[17:46:27] rodfersou: has joined #ruby
[17:46:29] audiodude: has joined #ruby
[17:46:51] lucianosousa: has joined #ruby
[17:46:59] jolts: has joined #ruby
[17:47:08] timonv: has joined #ruby
[17:47:20] cbetta_: has joined #ruby
[17:47:56] zipkid: has joined #ruby
[17:47:57] optimaleatscout_: has joined #ruby
[17:48:01] jolts: has joined #ruby
[17:48:52] kadoppe: has joined #ruby
[17:49:11] baweaver: has joined #ruby
[17:49:31] podman: has joined #ruby
[17:49:43] kareeoleez: has joined #ruby
[17:50:36] ramblinpeck: has joined #ruby
[17:50:41] malcolmva: has joined #ruby
[17:50:43] monod: has joined #ruby
[17:50:44] Emmanuel_Chanel: has joined #ruby
[17:50:47] Cohedrin: has joined #ruby
[17:52:06] jolts: has joined #ruby
[17:52:08] joevandyk: has joined #ruby
[17:52:29] toretore: has joined #ruby
[17:53:07] jolts: has joined #ruby
[17:53:29] speakingcode: has joined #ruby
[17:53:42] FooMunki: has joined #ruby
[17:53:48] zrl_: has joined #ruby
[17:54:49] hk238: has joined #ruby
[17:55:07] troter__________: has joined #ruby
[17:55:38] v0n: has joined #ruby
[17:56:08] Arcaire: has joined #ruby
[17:56:41] merida: has joined #ruby
[17:56:44] Jonah11_: has joined #ruby
[17:56:50] frem_: has joined #ruby
[17:56:55] jolts: has joined #ruby
[17:57:00] Eiam_: has joined #ruby
[17:57:18] jgt2: has joined #ruby
[17:57:23] vondruch: has joined #ruby
[17:57:36] audiodude: has joined #ruby
[17:57:56] elifoster: has joined #ruby
[17:57:56] ankhers: has joined #ruby
[17:57:57] jolts: has joined #ruby
[17:57:58] [ace]: has joined #ruby
[17:58:07] hobodave: has joined #ruby
[17:58:35] mmasaki: has joined #ruby
[17:58:42] fumduq: has joined #ruby
[17:58:52] tagaulap: has joined #ruby
[17:58:52] baweaver: has joined #ruby
[17:58:54] PedramT: has joined #ruby
[17:58:59] jabreity_: has joined #ruby
[17:59:21] kies: has joined #ruby
[17:59:29] spastorino: has joined #ruby
[17:59:48] ixti: has joined #ruby
[17:59:54] ramfjord: has joined #ruby
[18:00:14] heyimwill: has joined #ruby
[18:00:25] spider-mario: has joined #ruby
[18:01:00] deepak: has joined #ruby
[18:01:01] jpinnix_______: has joined #ruby
[18:01:07] deeprave: has joined #ruby
[18:01:13] jolts: has joined #ruby
[18:01:15] aegis3121: has joined #ruby
[18:01:28] Thai_: has joined #ruby
[18:01:30] Hobbyboy: has joined #ruby
[18:01:32] soraher: has joined #ruby
[18:01:57] yo61: has joined #ruby
[18:02:15] jolts: has joined #ruby
[18:02:21] Vile`: has joined #ruby
[18:02:25] pipework: has joined #ruby
[18:02:29] tvsutton: has joined #ruby
[18:02:38] zenlot6: has joined #ruby
[18:02:45] Chunlea_: has joined #ruby
[18:03:22] raeoks: has joined #ruby
[18:03:55] Cohedrin: has joined #ruby
[18:04:55] jmcc_________: has joined #ruby
[18:05:14] programmerq: has joined #ruby
[18:05:17] daxroc: has joined #ruby
[18:05:17] jolts: has joined #ruby
[18:05:19] tonini: has joined #ruby
[18:05:38] kapowaz: has joined #ruby
[18:05:56] karmatr0n: has joined #ruby
[18:06:18] jolts: has joined #ruby
[18:06:37] firstdayonthejob: has joined #ruby
[18:06:44] apeiros: has joined #ruby
[18:06:50] Olipro: Given arrays A and B, is it possible to move the contents of B into A without making a copy
[18:07:08] Olipro: (for performance purposes)
[18:07:09] chagel: has joined #ruby
[18:07:39] kareeoleez: has joined #ruby
[18:08:45] apeiros: Olipro: a copy of what?
[18:09:02] apeiros: A.concat B # won't copy the elements of B, since ruby works with references to objects
[18:09:06] smathy: Olipro, what are you doing that's making a copy?
[18:09:08] djbkd: has joined #ruby
[18:09:13] apeiros: but it will create the space for those references in A
[18:09:49] jolts: has joined #ruby
[18:09:52] davedev24: has joined #ruby
[18:10:38] baweaver: has joined #ruby
[18:10:49] davedev24: has joined #ruby
[18:10:52] jolts: has joined #ruby
[18:11:15] twodayslate: has joined #ruby
[18:11:26] G: has joined #ruby
[18:11:56] madgen: has joined #ruby
[18:12:47] jgpawletko: has joined #ruby
[18:13:15] krasnus: has joined #ruby
[18:14:23] jolts: has joined #ruby
[18:14:37] manveru: has joined #ruby
[18:14:50] Synthead: has joined #ruby
[18:15:10] shadoi: has joined #ruby
[18:15:24] jolts: has joined #ruby
[18:15:45] Olipro: apeiros: is that true for simple objects like integers too?
[18:16:10] apeiros: it's not true for immediate objects, since they fit into the space of a reference
[18:16:35] curses: has joined #ruby
[18:16:39] apeiros: immediates are Fixnums, Flonums (a subset of floats iirc), true, false, nil and Symbols
[18:16:42] joseph: has joined #ruby
[18:16:55] baweaver: though if you're using Ruby, you have to be willing to trust the GC a bit more.
[18:18:42] ctrlrsf: has joined #ruby
[18:18:43] ctrlrsf: has joined #ruby
[18:18:53] mustmodify_: has joined #ruby
[18:19:30] ddv: has joined #ruby
[18:19:47] postmodern: has joined #ruby
[18:19:50] weemsledeux: has joined #ruby
[18:19:55] jolts: has joined #ruby
[18:20:55] jolts: has joined #ruby
[18:20:57] Kharma: has joined #ruby
[18:21:36] Waqas: has joined #ruby
[18:21:40] BtcBen: has joined #ruby
[18:21:58] jolts: has joined #ruby
[18:22:09] Authenticator: has joined #ruby
[18:22:48] someish: has joined #ruby
[18:23:34] someish: What’s going on when this is passed into a method: except: [:new, :edit]
[18:23:49] someish: I’m interested in the syntax.
[18:24:10] brainslug: has joined #ruby
[18:24:14] eam: someish: [:new, :edit] is an array with two Symbols in it
[18:24:22] eam: the except: is a keyword arg
[18:24:23] apeiros: someish: `foo except: [:new, :edit]` is `foo({except: [:new, :edit]})`
[18:24:46] apeiros: (or alternatively a keyword arg, which is mostly treated the same)
[18:25:10] soahccc: how do you reopen a stringio? When I do it's empty afterwards :/
[18:25:12] someish: And the angle brackets is short form for a block?
[18:25:21] someish: apeiros: ^
[18:25:22] apeiros: someish: no. that's an array
[18:25:26] apeiros: >> [:foo].class
[18:25:27] ruby[bot]: apeiros: # => Array (https://eval.in/554232)
[18:25:33] Karamet: has joined #ruby
[18:25:33] kareeoleez: has joined #ruby
[18:25:38] apeiros: ?pry someish
[18:25:39] ruby[bot]: someish: Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
[18:25:56] Karamet: Guys, do you know agar.io or slither.io ?
[18:26:09] someish: Installed.
[18:26:15] apeiros: oh well, I guess that doesn't explain what pry is - but try it out. it lets you answer such questions yourself.
[18:26:25] apeiros: Karamet: no
[18:26:25] Karamet: I want to make a game like they and what do you think to code their servers with Ruby?
[18:26:36] apeiros: (to the first question - I don't know them)
[18:26:37] bluOxigen: has joined #ruby
[18:27:04] apeiros: soahccc: what do you expect to happen when you reopen a stringio?
[18:27:27] zeroDivisible: has joined #ruby
[18:28:15] mrknip: has joined #ruby
[18:28:26] soahccc: apeiros: well I try to workaround something :) I use a library which wants a gzip IO and I have uncompressed input. So i do this: https://gist.github.com/2called-chaos/d7471189fc0f5abac3e14bd9b8acf4de
[18:28:38] soahccc: apeiros: maybe I have to use tempfiles
[18:29:22] someish: apeiros: So what’s going on with the curly braces in your example?
[18:29:49] someish: foo({except: [:new, :edit]})
[18:29:50] apeiros: someish: it seems to me like you're asking 101 questions. you should read a book.
[18:30:02] apeiros: soahccc: why do you rewind there?
[18:30:08] apeiros: soahccc: err, why do you reopen there?
[18:30:45] soahccc: apeiros: that's just try. I have to reopen because after gz.close when I try to read the stringio I get "not opened for reading"
[18:31:19] kareeoleez: has joined #ruby
[18:31:58] someish: That’s the thing, I have read a book. I’ve never seen curly braces wrap a parameter, which itself is an array definition.
[18:32:01] apeiros: soahccc: and you get that with just a rewind too?
[18:32:09] soahccc: apeiros: see it here step by step: https://gist.github.com/2called-chaos/d7471189fc0f5abac3e14bd9b8acf4de#file-gistfile1-txt
[18:32:36] apeiros: someish: go to the chapter which covers literals
[18:32:54] zeroDivisible: has joined #ruby
[18:33:44] apeiros: soahccc: btw., you do realize that the first arg is not mode?
[18:33:47] apeiros: the second one is
[18:33:53] apeiros: (in StringIO.new)
[18:34:42] codecop: has joined #ruby
[18:34:55] dcunit3d: has joined #ruby
[18:35:18] apeiros: soahccc: well, in the worst case: cstrio = StringIO.new(cstrio.string) # creates a new StringIO with pos=0 and cstrio.string as data
[18:35:49] apeiros: seems gzwriter calls .close or .close_read on the IO
[18:36:00] apeiros: otherwise .rewind would be sufficient
[18:36:17] agentmeerkat: has joined #ruby
[18:36:36] sthns: has joined #ruby
[18:37:49] tax: has joined #ruby
[18:38:23] soahccc: apeiros: yeah I figured that gz closes the IO. Your solution works and yeah I trusted stackoverflow with that .new("rw") :)
[18:38:41] apeiros: stackoverflow knows less than me :-p
[18:39:22] william3: has joined #ruby
[18:39:54] jtoy: has joined #ruby
[18:39:56] apeiros: heh, I was just kidding, but thanks ;-)
[18:40:06] Drakevr: has joined #ruby
[18:41:49] kristofferR: has joined #ruby
[18:42:30] last_staff1: has joined #ruby
[18:42:40] charlemagne: has joined #ruby
[18:43:22] dezull: has joined #ruby
[18:43:47] jhn: has joined #ruby
[18:44:06] someish: apeiros: Thanks. I’m good now.
[18:45:31] aegis3121: has joined #ruby
[18:45:34] someish: The thing that keeps getting me is how so much ruby syntax is optional.
[18:46:14] someish: I know something should be in that empty space, but I don’t know what sometimes.
[18:46:28] apeiros: there aren't too many things which are optional
[18:46:44] apeiros: and with a bit of getting used to it'll quickly be quite obvious
[18:47:08] someish: For sure. It’s just a newbie thing.
[18:48:03] last_staff: has joined #ruby
[18:48:04] Jonah11_: has joined #ruby
[18:49:48] stannard: has joined #ruby
[18:51:02] Xeago: has joined #ruby
[18:51:46] binaryplease1: has joined #ruby
[18:52:10] chouhoulis: has joined #ruby
[18:53:01] Authenticator: I'm using bundler and trying to vendor my deps but it tries to vendor my own gem's files, recursively. What's wrong?
[18:54:29] apeiros: Authenticator: while I probably won't be able to help, I doubt anybody can with that really sparse amount of information you've given.
[18:56:50] dmr8: has joined #ruby
[18:56:59] OTORelic2: has joined #ruby
[18:56:59] stannard: has joined #ruby
[18:57:19] FooMunki: has joined #ruby
[19:01:15] Authenticator: apeiros: You want I should paste in the novel I wrote about it? :P
[19:01:37] apeiros: if it's a novel, you probably better use gist.github.com
[19:01:38] Authenticator: I'm using the 'gemspec' declaration, which is new for me.
[19:02:26] Authenticator: It adds a local dependency, which I assume is the issue... But when it copies the gem to ./vendor it also copies the ./vendor directory...
[19:02:54] ctarx: has joined #ruby
[19:03:01] poerror: has joined #ruby
[19:03:23] Sammichmaker: has joined #ruby
[19:04:15] jhass: Authenticator: why is vendor part of your .files then?
[19:04:22] poerror: has left #ruby: ()
[19:04:23] ctarx: has left #ruby: ()
[19:04:34] SirFunk: has joined #ruby
[19:05:22] nobitanobi: has joined #ruby
[19:06:15] Authenticator: jhass: Because they're checked in. But that's not the issue - I started to filter 'vendor/' in the gemspec and the same behavior happens.
[19:06:21] \13k: has joined #ruby
[19:06:53] Dimik: has joined #ruby
[19:07:17] jhass: I cannot reproduce
[19:09:22] n1colas: has joined #ruby
[19:09:55] n1x: has joined #ruby
[19:10:02] Fire-Dragon-DoL: has joined #ruby
[19:10:07] djbkd: has joined #ruby
[19:10:18] bronson: has joined #ruby
[19:10:44] yfeldblum: has joined #ruby
[19:10:55] tubuliferous: has joined #ruby
[19:11:20] sindork: has joined #ruby
[19:11:25] Authenticator: jhass: Empty project, using gemspec, ./vendor checked into git? In the Gemfile.lock does the gem have itself as a dependency?
[19:11:37] Jonah11_: has joined #ruby
[19:13:15] Cohedrin: has joined #ruby
[19:13:30] jhass: no, project I had at hand, I don't use `git ls-files` stuff for .files as I think it's a stupid idea (for reasons like you're probably facing right now), the gem is of course listed in the .lock's dependencies section
[19:14:03] apeiros: +1 to `git ls-files` being a stupid idea.
[19:14:17] Authenticator: jhass: I'm pretty sure it's not an ls-files issue though, because even when I manually filtered out the vendor dir it still happened.
[19:15:51] Affix: has joined #ruby
[19:16:27] Cohedrin: has joined #ruby
[19:18:55] helpa: has joined #ruby
[19:18:59] Regulati_: has joined #ruby
[19:19:01] arlek__: has joined #ruby
[19:19:01] Robtop__: has joined #ruby
[19:19:12] chouhoul_: has joined #ruby
[19:19:26] pawnbox_: has joined #ruby
[19:19:28] BSab: has joined #ruby
[19:19:28] mr_knip: has joined #ruby
[19:19:35] smathy_: has joined #ruby
[19:19:40] mozzarella: has joined #ruby
[19:19:43] jjturner: has joined #ruby
[19:19:51] iamvery_: has joined #ruby
[19:19:58] elifoster|alt: has joined #ruby
[19:20:04] eggoez: has joined #ruby
[19:20:05] tristanp_: has joined #ruby
[19:20:06] i: has joined #ruby
[19:20:10] GinoMan2440: has joined #ruby
[19:20:31] RIK: has joined #ruby
[19:21:06] MagePsycho_: has joined #ruby
[19:21:15] atmosx_alt: has joined #ruby
[19:21:22] yasu__: has joined #ruby
[19:21:33] Outlastsheep: has joined #ruby
[19:21:57] MaienM_: has joined #ruby
[19:22:01] acerna_: has joined #ruby
[19:22:14] alexherb1: has joined #ruby
[19:22:17] Brent___: has joined #ruby
[19:22:17] diego_k: has joined #ruby
[19:22:19] stannard: has joined #ruby
[19:22:23] ELCALOR_: has joined #ruby
[19:22:31] bnagy_: has joined #ruby
[19:22:40] d0nn1e: has joined #ruby
[19:22:45] Emmanuel_Chanel_: has joined #ruby
[19:22:52] fumduq: has joined #ruby
[19:22:59] minimali1: has joined #ruby
[19:23:19] tsunamie: has joined #ruby
[19:23:22] deavid: has joined #ruby
[19:23:29] Chunlea_: has joined #ruby
[19:23:37] sauvin: has joined #ruby
[19:23:48] jackjackdripper: has joined #ruby
[19:23:48] klka: has joined #ruby
[19:23:57] baweaver: has joined #ruby
[19:24:00] Elysia: has joined #ruby
[19:24:33] Caelum: has joined #ruby
[19:24:43] optimaleatscout_: has joined #ruby
[19:26:45] gix: has joined #ruby
[19:27:34] mdw: has joined #ruby
[19:27:39] zipkid: has joined #ruby
[19:27:47] bkxd: has joined #ruby
[19:28:32] deepak: has joined #ruby
[19:28:52] err_ok: has joined #ruby
[19:29:42] ramblinpeck: has joined #ruby
[19:29:48] TvL: has joined #ruby
[19:30:37] M-shine: has joined #ruby
[19:30:37] M-Kodo: has joined #ruby
[19:31:48] konr: has joined #ruby
[19:33:05] sgambino: has joined #ruby
[19:35:16] yo61: has joined #ruby
[19:36:19] PedramT: has joined #ruby
[19:36:41] lxsameer: has joined #ruby
[19:36:50] Chunlea_: has joined #ruby
[19:37:02] kirillzh: has joined #ruby
[19:38:04] Jonah11_: has joined #ruby
[19:40:57] malconis: has joined #ruby
[19:41:14] joevandyk: has joined #ruby
[19:41:35] solars: has joined #ruby
[19:42:40] lomex: has joined #ruby
[19:44:39] sp4rrow: has joined #ruby
[19:45:40] Musashi007: has joined #ruby
[19:46:22] symm-: has joined #ruby
[19:48:00] JesseH: has joined #ruby
[19:49:53] gnufied__: has joined #ruby
[19:50:18] lemur: has joined #ruby
[19:50:40] chagel: has joined #ruby
[19:51:42] ramfjord: has joined #ruby
[19:51:53] SilverKey: has joined #ruby
[19:54:19] kfpratt: has joined #ruby
[19:54:35] pietr0: has joined #ruby
[19:54:59] al2o3-cr1: has joined #ruby
[19:55:44] charlemagne: has joined #ruby
[19:56:40] ramfjord_: has joined #ruby
[19:57:08] Nilium: has joined #ruby
[19:57:20] Devalo: has joined #ruby
[19:57:24] leftpad: has joined #ruby
[19:59:36] baweaver: has joined #ruby
[19:59:38] araujo: has joined #ruby
[19:59:38] araujo: has joined #ruby
[19:59:49] gmas: has joined #ruby
[20:00:18] last_staff1: has joined #ruby
[20:01:01] Lumio: has joined #ruby
[20:01:02] headius: has joined #ruby
[20:01:05] MuffinPimp: has joined #ruby
[20:01:25] ceej: has joined #ruby
[20:01:56] hobodave_: has joined #ruby
[20:01:58] Paradox: has joined #ruby
[20:02:53] nirix: has joined #ruby
[20:03:49] dionysus69: has joined #ruby
[20:06:29] moei: has joined #ruby
[20:07:37] jumbomax: has joined #ruby
[20:08:34] OTORelic2: has joined #ruby
[20:10:11] al2o3-cr: has joined #ruby
[20:10:35] djbkd: has joined #ruby
[20:12:08] rickmasta: has joined #ruby
[20:15:03] dunpeal: has joined #ruby
[20:15:14] hxegon: has joined #ruby
[20:15:43] dunpeal: I have a whole bunch of JSON data I get from a bunch of APIs. Are there any tools / libraries to help me load them to a structured relational database?
[20:16:48] smalltalker: has joined #ruby
[20:18:25] mustmodify_: well, there's ruby...
[20:19:29] helpa: has joined #ruby
[20:20:09] RegulationD: has joined #ruby
[20:20:14] hobodave: has joined #ruby
[20:20:19] sp4rrow_: has joined #ruby
[20:20:28] Devalo_: has joined #ruby
[20:20:39] mozzarel1: has joined #ruby
[20:20:40] malconis_: has joined #ruby
[20:20:41] nobitano_: has joined #ruby
[20:20:53] nettoweb: has joined #ruby
[20:21:21] djellemah: has joined #ruby
[20:21:27] rightpad: has joined #ruby
[20:21:41] FooMunki: has joined #ruby
[20:21:49] levifig: has joined #ruby
[20:22:02] jackjackdripper1: has joined #ruby
[20:22:05] nobitano_: has joined #ruby
[20:23:12] nobitano_: has joined #ruby
[20:24:11] Esya: has joined #ruby
[20:24:15] PedramT: has joined #ruby
[20:24:16] tonini: has joined #ruby
[20:24:17] greenhat: has joined #ruby
[20:24:54] jumbomax: has joined #ruby
[20:24:57] blackmes1: has joined #ruby
[20:25:01] deeprave: has joined #ruby
[20:25:01] jmcc_________: has joined #ruby
[20:25:47] kapowaz: has joined #ruby
[20:26:12] daxroc: has joined #ruby
[20:26:20] jabreity_: has joined #ruby
[20:26:46] jpinnix_______: has joined #ruby
[20:27:05] Vile`: has joined #ruby
[20:28:06] tvsutton: has joined #ruby
[20:28:09] M-shine: has joined #ruby
[20:28:58] Paradox: has joined #ruby
[20:29:26] kirun: has joined #ruby
[20:29:33] ankhers: has joined #ruby
[20:29:49] BtcBen: has joined #ruby
[20:30:15] sdothum: has joined #ruby
[20:30:27] nirix: has joined #ruby
[20:31:11] jidar: has joined #ruby
[20:31:22] curses: has joined #ruby
[20:32:33] acidrainfall: has left #ruby: ()
[20:34:13] jgpawletko: has joined #ruby
[20:35:08] postmodern: has joined #ruby
[20:36:08] dezull: has joined #ruby
[20:36:52] sauvin: has joined #ruby
[20:37:19] codecop: has joined #ruby
[20:37:28] programmerq: has joined #ruby
[20:37:40] vondruch: has joined #ruby
[20:38:19] techietrash: has joined #ruby
[20:40:02] diegoaguilar: has joined #ruby
[20:40:49] paultreny: has joined #ruby
[20:41:07] programmerq: has joined #ruby
[20:41:10] nettoweb: has joined #ruby
[20:41:23] IrishGringo: has joined #ruby
[20:42:43] programmerq: has joined #ruby
[20:43:55] newjersey: has joined #ruby
[20:44:00] th0m: has joined #ruby
[20:45:35] speakingcode: has joined #ruby
[20:47:44] Tempesta: has joined #ruby
[20:48:10] xaxisx: has joined #ruby
[20:50:06] poerror: has joined #ruby
[20:50:31] Nanuq: has joined #ruby
[20:52:22] sgambino: has joined #ruby
[20:53:32] aegis3121: has joined #ruby
[20:54:32] stannard: has joined #ruby
[20:55:32] vdamewood: has joined #ruby
[20:55:43] SCHAAP137: has joined #ruby
[20:57:13] ereslibre: has joined #ruby
[20:58:02] mrmist: has joined #ruby
[21:00:33] tAn: has joined #ruby
[21:00:42] mrmist: has left #ruby: ()
[21:00:42] vwbusguy: has joined #ruby
[21:01:52] lomex: has joined #ruby
[21:02:12] huyderman: has joined #ruby
[21:02:45] n008f4g_: has joined #ruby
[21:04:02] Lomex_: has joined #ruby
[21:04:21] ur5us: has joined #ruby
[21:05:49] noService: has joined #ruby
[21:06:17] jdm: has joined #ruby
[21:07:25] PedramT: has joined #ruby
[21:07:32] BtcBen: has joined #ruby
[21:11:23] djbkd: has joined #ruby
[21:12:01] bronson: has joined #ruby
[21:16:03] shadoi: https://www.p6r.com/articles/2008/05/06/xslt-and-xpath-for-json/
[21:16:11] poerror: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[21:16:18] ramfjord: has joined #ruby
[21:17:04] shadoi: also see JQ and JO
[21:17:41] nobitanobi: has joined #ruby
[21:17:59] shadoi: there's definitely nothing magical that will just do the conversions you want though, it'll require a fair amount of work.
[21:18:53] Alina-malina: has joined #ruby
[21:19:51] tubuliferous: has joined #ruby
[21:19:56] Amnez777: has joined #ruby
[21:20:14] Alina-malina: has joined #ruby
[21:21:42] zacstewart: has joined #ruby
[21:23:49] yfeldblum: has joined #ruby
[21:24:38] agentmeerkat: has joined #ruby
[21:25:27] lacrosse: has joined #ruby
[21:28:36] bkxd: has joined #ruby
[21:30:13] someish: has joined #ruby
[21:30:46] BTRE: has joined #ruby
[21:32:12] P_R_Delts: has joined #ruby
[21:32:33] P_R_Delts: How do I use peek inside of a map enumerator block?
[21:32:48] stannard: has joined #ruby
[21:33:02] stannard: has joined #ruby
[21:34:48] gf3: has joined #ruby
[21:35:14] Sirecote: has joined #ruby
[21:35:17] bronson: has joined #ruby
[21:35:23] Ox0dea: P_R_Delts: You'll have to have a reference to the Enumerator itself, which #map doesn't give you.
[21:35:38] Ox0dea: You could do the #map inside a #tap, but that's almost certainly the wrong approach.
[21:36:42] spangler: has left #ruby: ("Closing Window")
[21:36:44] P_R_Delts: So basically I have an array, and if a number x is greater than the next number, I want to subtract the next number from x and then drop the next number from the array
[21:37:45] P_R_Delts: to "reduce" the array, but not to 1 number, just to an array that is in order from smallest to largest, with all the out of order elements subtracted from the previous element, and then removed
[21:38:23] Ox0dea: Roman numerals?
[21:38:37] nobitanobi: has joined #ruby
[21:39:15] bronson: has joined #ruby
[21:40:31] P_R_Delts: my original idea was, when that condition was met, to make the smaller number a negative, and then run a reduce on the entire array and just add them all together
[21:40:56] modin: has joined #ruby
[21:41:59] karmatr0n: has joined #ruby
[21:42:12] P_R_Delts: so if XIV is 14 or 5 1 10, so I would compare 5 and 1, since 1 is less than 5, turn 1 into a negative, do the same comparison, since 10 is great, don't turn it into a negative, then reduce the now array [5, -1, 10] and get 14
[21:42:45] P_R_Delts: I was just going to run a "for each" on it, but I was curious if there was a better way
[21:47:00] Outlastsheep: has left #ruby: ()
[21:47:33] workmad3: has joined #ruby
[21:47:37] johnny56_: has joined #ruby
[21:47:37] banister: has joined #ruby
[21:48:36] Aviio: has joined #ruby
[21:49:00] jdm: has joined #ruby
[21:50:38] baweaver: "reduce" is a ruby function
[21:50:48] P_R_Delts: right, that is the one part I have
[21:50:57] P_R_Delts: if the roman numeral is straight forward, like XXI, I can do it
[21:51:03] P_R_Delts: because I just reduce the array [20, 1] to 21
[21:51:04] Azure|dc: has joined #ruby
[21:51:20] P_R_Delts: but with numerals that subtract values, I need to make them negative or subtract them and then remove them
[21:51:29] Ox0dea: Do you intend to handle weird things like XMX?
[21:51:32] P_R_Delts: like XIV being 14
[21:51:43] adaedra: Leave Louis alone.
[21:51:48] P_R_Delts: That would be.... 2000?
[21:51:53] P_R_Delts: 1990 + 10 ?
[21:51:54] kadoppe: has joined #ruby
[21:52:07] Ox0dea: Er, it'd be 1000, but that was a bad example.
[21:52:09] P_R_Delts: 1000, I mean
[21:52:13] adaedra: 1000, yeah
[21:52:26] P_R_Delts: I do not believe that is something I care about solving for
[21:52:28] adaedra: but that doesn't follow the rule of roman numerals
[21:52:47] P_R_Delts: Right, that seems like it wouldn't make sense anyways, but I think th eway I am doing this would still solve it correctly
[21:52:49] Ox0dea: Does it boil down to a single rule for that?
[21:53:17] Ox0dea: XL is valid while VL is not, right?
[21:53:30] adaedra: I'd say so.
[21:53:33] P_R_Delts: L is... 50?
[21:53:37] Ox0dea: But both CM and DM are valid?
[21:53:42] Ox0dea: What's the rule?
[21:53:52] adaedra: I have a doubt on D now, 500?
[21:54:02] P_R_Delts: Wait, why would VL not be valid
[21:54:07] Ox0dea: ¯\_(ツ)_/¯
[21:54:12] P_R_Delts: is 45 supposed to be XXXXV?
[21:54:18] Ox0dea: XLV, I think.
[21:54:25] Ox0dea: Kinda dumb.
[21:54:39] P_R_Delts: I think most cases are very straight forward, but the rule still stands
[21:54:40] Ox0dea: Romanes eunt domus.
[21:54:45] adaedra: I haven't done this in a while and usually stop counting them around 20 nowadays.
[21:55:01] P_R_Delts: if x[1] > x[2], then minus x[2] from x[1] and continue
[21:55:16] P_R_Delts: if a lower number is on the wrong side of a larger number, that means subtraction whatever the case
[21:55:31] aegis3121: If the Super Bowl taught me anything it's that XLV is 45.
[21:56:20] P_R_Delts: all repeating numerals are converted to their added amounts (ie XX is turned into 20 in the array, not [10, 10])
[21:56:56] adaedra: Ox0dea: If I follow things correctly, DM is not valid.
[21:57:27] edwinvdgraaf: has joined #ruby
[21:57:43] Ox0dea: adaedra: If only because it can be simplified to just D, I imagine.
[21:58:30] adaedra: Ox0dea: because for substracting, only power of ten are allowed.
[21:59:00] Ox0dea: Yeah, that sounds right.
[21:59:37] elifoster: has joined #ruby
[22:02:52] Madplatypus: has joined #ruby
[22:03:08] nb_bez___: has joined #ruby
[22:04:38] solars: has joined #ruby
[22:05:31] SilverKey: has joined #ruby
[22:06:05] GinoMan2440: has joined #ruby
[22:06:50] kam270: has joined #ruby
[22:08:06] yfeldblum: has joined #ruby
[22:11:17] P_R_Delts: I used an external variable to keep track of the last value for Map
[22:11:25] P_R_Delts: since I can't look at the last value while inside the block
[22:12:04] Ox0dea: &ri each_cons P_R_Delts
[22:12:04] `derpy: P_R_Delts: http://ruby-doc.org/core-2.3.0/Enumerable.html#method-i-each_cons
[22:12:06] djbkd: has joined #ruby
[22:12:42] P_R_Delts: But it replace the current value with the value I return, does it?
[22:12:44] P_R_Delts: Like Map does.
[22:12:59] P_R_Delts: So how do I affect the Array if I can't do that?
[22:13:02] P_R_Delts: Lemme show you what I got
[22:13:11] P_R_Delts: https://gist.github.com/anonymous/f83505a16919e8f35222f72c3fc98d69
[22:14:04] northrup: has joined #ruby
[22:14:31] aegis3121: fwiw: you can call it a `.rb` file and github will provide syntax highlight and, I believe, force you to ruby standards of two-space tabs.
[22:14:42] Don_John: has joined #ruby
[22:14:58] P_R_Delts: I didn't even notice a place to name the file :p
[22:15:04] P_R_Delts: Its anonymous too, so I can't edit it
[22:15:15] aegis3121: No worries, just for future reference :)
[22:15:20] baweaver: has joined #ruby
[22:16:58] siaw_: has joined #ruby
[22:17:26] P_R_Delts: Is there a more elegant solution than my map in the Gist above?
[22:19:33] P_R_Delts: lots of people seem to be using inject(0)
[22:20:46] Ox0dea: The explicit initializer there is only for handling the case where the input is empty.
[22:20:59] P_R_Delts: fair enough
[22:21:01] Ox0dea: #inject is an inferior alias for #reduce.
[22:21:05] P_R_Delts: honestly it looks like they are just doing
[22:21:08] P_R_Delts: a reduction
[22:21:14] P_R_Delts: which means half of them arn't taking any negatives into account
[22:21:33] Ox0dea: Well, negatives don't have to come into it.
[22:21:49] Ox0dea: But `inject(0, :+)` handles negatives just fine?
[22:22:02] ico: has joined #ruby
[22:22:03] P_R_Delts: okay, XIV is 14
[22:22:07] n1colas_: has joined #ruby
[22:22:08] P_R_Delts: but if you do it their method, it would be 16
[22:22:14] P_R_Delts: since it is literally just adding all those values up
[22:22:41] P_R_Delts: Some of the test cases have subtractions though, so I don't understand why these solutions work
[22:22:58] Elysia: has joined #ruby
[22:23:05] Gasher: has joined #ruby
[22:23:19] Ox0dea: Again, they don't necessarily need to be looked at as subtractions.
[22:23:20] P_R_Delts: their dictionary takes it into acount
[22:23:26] P_R_Delts: they have dictionary entries for IX and IV
[22:23:28] DenSchub: has joined #ruby
[22:23:33] Ox0dea: Easy mode.
[22:23:41] al2o3-cr: has joined #ruby
[22:23:50] crazyphil: has joined #ruby
[22:23:57] P_R_Delts: This makes sense now
[22:24:05] P_R_Delts: did roman numerals go above 1000?
[22:24:30] Ox0dea: They sometimes used an overline to indicate another order of magnitude or something.
[22:24:30] P_R_Delts: Besides saying MMMMMM a bunch
[22:24:39] Takumo: has joined #ruby
[22:24:39] Takumo: has joined #ruby
[22:24:49] tom39291: has joined #ruby
[22:24:53] codex: has joined #ruby
[22:25:09] P_R_Delts: well, finish that, I am heading home
[22:25:12] iNs: has joined #ruby
[22:25:15] crazyphil: ok, if I have a JSON array like so: { "key1":, ["a", "b", "c"] }, using ruby how would I create a loop to put those 3 values into 3 automatically created variables, because while my example has 3, I could have as few as 1, or as many as 5?
[22:25:15] unsymbol: has joined #ruby
[22:25:25] Drakevr: has joined #ruby
[22:25:26] Alina-malina: has joined #ruby
[22:25:37] funnel: has joined #ruby
[22:25:42] Morrolan: has joined #ruby
[22:25:45] Ox0dea: crazyphil: You can't dynamically introduce new local variables.
[22:25:48] Kim^J: has joined #ruby
[22:25:49] crazyphil: (basically I need to split that array into individual JSON keys)
[22:25:57] workmad3: has joined #ruby
[22:26:04] Ox0dea: And map them to what?
[22:26:24] crazyphil: into individual JSON keys
[22:26:27] diegoaguilar: has joined #ruby
[22:26:35] Ox0dea: Keys have values.
[22:27:09] crazyphil: ok, I need to create a key for every value in that array, then assign the value in the array to that new key
[22:27:47] Ox0dea: crazyphil: The keys are "a", "b", and "c" in this example; what values should they have?
[22:28:04] Ox0dea: {"a" => ?, "b" => ?, "c" => ?}
[22:28:04] crazyphil: let me make sure I've got my data right
[22:29:21] bkxd: has joined #ruby
[22:29:39] jtoy: has joined #ruby
[22:29:46] martinbjeldbak: has joined #ruby
[22:29:48] crazyphil: ok, my original key looks like this: { "upstream_req_time":"1.00, 2.50, 3.75" }
[22:30:27] crazyphil: I need to split each of those values into new kv pairs dynamically, with a base kay name of "urt-<number goes here>":
[22:31:23] Ox0dea: And what values?
[22:32:04] crazyphil: in the case of my example above, I'd need { "newkey1":"1.00", "newkey2":"2.50", "newkey3":"3.75" }
[22:32:36] curses: has joined #ruby
[22:32:57] smathy: >> h = { "upstream_req_time":"1.00, 2.50, 3.75" }; Hash[ h[:upstream_req_time].split(",").map {|v| [ "urt-#{v}", v ]}]
[22:32:58] ruby[bot]: smathy: # => {"urt-1.00"=>"1.00", "urt- 2.50"=>" 2.50", "urt- 3.75"=>" 3.75"} (https://eval.in/554259)
[22:33:18] smathy: Heh, d'oh.
[22:33:33] smathy: Split on /\s*,\s*/ instead.
[22:33:34] crazyphil: I had no idea it would be that simple, here I was thinking I'd need to make some sort of loop
[22:33:45] smathy: crazyphil, map is a loop.
[22:34:11] crazyphil: ok, I'm very new to ruby as logstash doesn't have everything I need built in, so I'm learning as I go
[22:34:33] crazyphil: but what you put there is very ideal, thank you
[22:35:32] smathy: You're welcome.
[22:37:12] Eiam_: has joined #ruby
[22:38:28] Emmanuel_Chanel: has joined #ruby
[22:38:33] crazyphil: hmm, the key names would have the raw value from the original key appended to their name? any way to make it simply numeric based on the number of values in that key like urt-1, urt-2 etc.?
[22:38:56] Emmanuel_Chanel: has joined #ruby
[22:39:24] zenlot: has joined #ruby
[22:39:34] Ox0dea: &ri with_index crazyphil
[22:39:34] `derpy: crazyphil: http://ruby-doc.org/core-2.3.0/Enumerator.html#method-i-with_index
[22:40:03] crazyphil: I actually came pretty close to that on my first search now that I'm understanding a little more about how ruby works
[22:40:18] smathy: >> h = { "upstream_req_time":"1.00, 2.50, 3.75" }; Hash[ h[:upstream_req_time].split("\s*,\s*").map.with_index {|v,i| [ "urt-#{i+1}", v ]}]
[22:40:19] ruby[bot]: smathy: # => {"urt-1"=>"1.00, 2.50, 3.75"} (https://eval.in/554267)
[22:40:33] smathy: Oops, wrong way :(
[22:40:39] pawnbox: has joined #ruby
[22:41:10] smathy: /s not ""s in the split
[22:41:33] crazyphil: I'm still thinking in I guess pythonic terms in that I thought there would be some .() type function I could call to get the count of the map iteration or something
[22:42:01] Ox0dea: crazyphil: It's called #with_index.
[22:42:06] crazyphil: h = { "upstream_req_time":"1.00, 2.50, 3.75" }; Hash[ h[:upstream_req_time].split("/s*,/s*").map.with_index {|v,i| [ "urt-#{i+1}", v ]}]
[22:42:20] crazyphil: >> h = { "upstream_req_time":"1.00, 2.50, 3.75" }; Hash[ h[:upstream_req_time].split("/s*,/s*").map.with_index {|v,i| [ "urt-#{i+1}", v ]}]
[22:42:21] ruby[bot]: crazyphil: # => {"urt-1"=>"1.00, 2.50, 3.75"} (https://eval.in/554271)
[22:43:08] smathy: crazyphil, you want /\s*,\s*/ instead of ""s, that was my error.
[22:43:29] BtcBen: has joined #ruby
[22:43:30] crazyphil: >> h = { "upstream_req_time":"1.00, 2.50, 3.75" }; Hash[ h[:upstream_req_time].split("/\s*,/\s*").map.with_index {|v,i| [ "urt-#{i+1}", v ]}]
[22:43:31] ruby[bot]: crazyphil: # => {"urt-1"=>"1.00, 2.50, 3.75"} (https://eval.in/554278)
[22:43:40] Ox0dea: Saints preserve us.
[22:43:51] bronson: has joined #ruby
[22:43:57] smathy: crazyphil, better to use your own irb for experimenting.
[22:44:00] smathy: (says me)
[22:45:49] Devalo: has joined #ruby
[22:45:56] eljimmy: has joined #ruby
[22:49:32] curses: has joined #ruby
[22:49:37] workmad3: has joined #ruby
[22:49:38] jdm: has joined #ruby
[22:50:40] vF3hNGxc47h8: has joined #ruby
[22:51:15] ahuman: has joined #ruby
[22:53:08] chagel: has joined #ruby
[22:54:54] sdothum: has joined #ruby
[22:57:29] KensoDev: has joined #ruby
[22:57:48] Alina-malina: has joined #ruby
[22:58:50] nobitanobi: has joined #ruby
[22:59:11] Amnez777: has joined #ruby
[22:59:48] nobitanobi: has joined #ruby
[22:59:51] swills: has joined #ruby
[23:03:31] P_R_Deltoid: has joined #ruby
[23:04:49] bronson: has joined #ruby
[23:04:57] n008f4g_: has joined #ruby
[23:09:25] GinoMan2440_: has joined #ruby
[23:10:12] ec\: has joined #ruby
[23:11:41] pawnbox: has joined #ruby
[23:12:54] djbkd: has joined #ruby
[23:12:58] KensoDev: has joined #ruby
[23:14:46] felltir: has joined #ruby
[23:17:41] shazaum_: has joined #ruby
[23:19:33] duncannz: has joined #ruby
[23:19:54] ereslibre: has joined #ruby
[23:20:38] SCHAAP137: has joined #ruby
[23:27:39] Dreamer3: has joined #ruby
[23:29:12] Ox0dea: crazyphil: Did you get it sorted?
[23:33:14] darkf: has joined #ruby
[23:33:59] dunpeal: has left #ruby: ()
[23:34:00] bkxd: has joined #ruby
[23:34:16] brent__: has joined #ruby
[23:34:40] Puffball: has joined #ruby
[23:37:14] lomex: has joined #ruby
[23:37:40] Puffball: has joined #ruby
[23:39:47] patrick_star: has joined #ruby
[23:40:47] cajone: has joined #ruby
[23:41:27] pawnbox: has joined #ruby
[23:41:27] shayan: has joined #ruby
[23:42:03] tubuliferous: has joined #ruby
[23:43:09] bkxd: has joined #ruby
[23:43:15] minimalism: has joined #ruby
[23:45:57] jackjackdripper: has joined #ruby
[23:47:17] raeoks: has joined #ruby
[23:47:25] spt0: has joined #ruby
[23:47:32] Devalo: has joined #ruby
[23:48:13] kam270: has joined #ruby
[23:51:20] n008f4g_: has joined #ruby
[23:51:25] Xeago: has joined #ruby
[23:51:49] lemur: has joined #ruby
[23:52:31] jackjackdripper1: has joined #ruby
[23:52:32] Alina-malina: has joined #ruby
[23:53:32] bronson: has joined #ruby
[23:54:26] Amnez777: has joined #ruby
[23:54:27] Puffball: has joined #ruby
[23:56:37] Graphettion: has joined #ruby
[23:58:44] felltir: has joined #ruby
[23:59:45] duoi: has joined #ruby