« Back to channel list

#ruby - 19 April 2016

« Back 1 day Forward 1 day »
[00:01:48] CloCkWeRX: has joined #ruby
[00:04:16] yfeldblum: has joined #ruby
[00:06:13] bronson: has joined #ruby
[00:13:59] poerror: has joined #ruby
[00:14:00] Asher: has joined #ruby
[00:17:21] Waqas: has joined #ruby
[00:23:46] nullwarp: has joined #ruby
[00:26:15] Ebok: has joined #ruby
[00:27:13] pawnbox: has joined #ruby
[00:28:01] shayan: has joined #ruby
[00:30:49] william3: has joined #ruby
[00:32:22] Devalo: has joined #ruby
[00:35:30] cdg: has joined #ruby
[00:37:08] Ebok: has joined #ruby
[00:39:24] lemur: has joined #ruby
[00:39:58] crdpink: has joined #ruby
[00:40:49] ReK2: has joined #ruby
[00:41:42] statelesscode: has joined #ruby
[00:43:20] hypercube32: has joined #ruby
[00:45:10] diegoaguilar: has joined #ruby
[00:46:05] KnownSyntax: has joined #ruby
[00:46:22] davedev24: has joined #ruby
[00:46:34] cdg_: has joined #ruby
[00:46:42] stannard: has joined #ruby
[00:48:49] jaguarmagenta: has joined #ruby
[00:49:31] freerobby: has joined #ruby
[00:50:57] machinewar: has joined #ruby
[00:51:20] machinewar: anyone know where to find in rails source how named route parameters are extracted?
[00:51:35] poerror: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[00:52:10] matp: has joined #ruby
[00:53:12] daivyk: has joined #ruby
[00:55:48] RegulationD: has joined #ruby
[00:58:22] d0lph1n98: has joined #ruby
[00:59:05] d0lph1n98: has joined #ruby
[01:02:05] GinoMan2440: has joined #ruby
[01:03:16] eatsfoobars: has joined #ruby
[01:03:41] pawnbox: has joined #ruby
[01:08:42] ur5us: has joined #ruby
[01:10:07] Ropeney: has joined #ruby
[01:10:20] Radar: machinewar: do you have an example of what you mean?
[01:11:35] machinewar: Radar: lol yes, sorry for asking such an open question. Do you have a reference to source code for rails or something similar to how you pass for example the get function in routes.rb get 'myroute/:some_param' and then have access to some_param in the params hash as a key pointing to its value
[01:11:39] machinewar: does that make sense?
[01:12:15] Radar: Yes. I don't know where that is in Rails, sorry.
[01:12:22] machinewar: no problemo, thanks
[01:13:38] silverdust: has joined #ruby
[01:14:14] IrishGringo: has joined #ruby
[01:15:04] d0lph1n98: has joined #ruby
[01:15:26] jaguarmagenta: has joined #ruby
[01:15:41] d0lph1n98: has joined #ruby
[01:22:08] machinewar: random thought. Do people use JSON schemas?
[01:22:13] machinewar: or is that just really an xml thing
[01:22:31] jenrzzz: has joined #ruby
[01:23:34] crdpink2: has joined #ruby
[01:25:54] joneshf-laptop: has joined #ruby
[01:26:39] theunraveler: has joined #ruby
[01:30:01] Cohedrin_: has joined #ruby
[01:30:36] ocmsRzr: has joined #ruby
[01:30:40] ensyde: has joined #ruby
[01:32:21] william3: has joined #ruby
[01:32:46] karapetyan: has joined #ruby
[01:33:07] Azure: has joined #ruby
[01:34:55] Yiota: has joined #ruby
[01:35:09] ocmsRzr: hi all, I'm working on settting up a simple socket server. This is purely educational, so don't yell at me about doing amateur crypto, but its a diffie-hellman echo bot. ie I do diffie hellman to create a shared key, then I echo back whatever the client says. I'm basing my example off of: http://rosettacode.org/wiki/Echo_server#Ruby My implementation is here:
[01:35:10] ocmsRzr: https://github.com/dbjergaard/cryptopals-solutions/blob/master/bin/diffie_hellman_server when I read the strings from the server using TCPSocket::gets most of the time it works, but some of the time I receive a fragment of the expected string causing the program to crash
[01:35:23] tjbiddle: has joined #ruby
[01:36:43] diegoaguilar: has joined #ruby
[01:39:16] Ropeney: ocmsRzr, I'm wondering if it's a bad idea to have the strip there.
[01:39:44] houhoulis: has joined #ruby
[01:40:07] aurum_infide: has joined #ruby
[01:40:08] ocmsRzr: ropeney: I thought (I'm a ruby newb) that strip would just remove the \n for me
[01:40:16] tubuliferous: has joined #ruby
[01:40:23] houhoulis: has joined #ruby
[01:40:29] Ropeney: but isn't the message coming in, encrypted?
[01:40:34] Ropeney: so \n is no longer... \n?
[01:40:50] kobain: has joined #ruby
[01:40:52] LoneHerm_: has joined #ruby
[01:41:01] Ropeney: I could be reading it all wrong btw
[01:42:41] ocmsRzr: let me try because maybe I'm doing something harebrained
[01:45:05] crdpink: has joined #ruby
[01:45:05] ocmsRzr: ok, so TCPServer::readline always appends a '\n' to the end
[01:45:38] ocmsRzr: and in the current incarnation of debugging, I send the plaintext, encrypt it, and send the encrypted text back
[01:46:34] ocmsRzr: I'm completely new to socket programming, could it have something to do with blocking? My client code looks like server.puts text; cipher_text=server.gets
[01:46:43] ocmsRzr: ie as soon as I send a line to the server, I ask for it back
[01:49:10] Azure: has joined #ruby
[01:49:15] blackgoat: has joined #ruby
[01:49:23] arescorpio: has joined #ruby
[01:49:54] Ropeney: ocmsRzr, just busy atm thought I'd skim over it to see anything obvious for you sorry. I do suggest trying wireshark and see if you can see the problem though. Or i can take a look in a bit again if you don't have it solved.
[01:50:49] ocmsRzr: ropeney: no problem! wireshark is a great idea, I'll check it out. I'm glad its not obvious since I've been stuck for a while, thanks for the help!
[01:51:21] Ropeney: goodluck :D
[01:52:19] Yiota: has joined #ruby
[01:54:45] william3: has joined #ruby
[01:54:47] newjersey: has joined #ruby
[01:57:15] Maletor: has joined #ruby
[02:00:17] IrishGringo: has joined #ruby
[02:00:34] hxegon: has joined #ruby
[02:01:44] yfeldblum: has joined #ruby
[02:04:53] smathy: ocmsRzr, the main difference between gets and readline is that readline raises the EOFError on EOF from a client.
[02:06:06] bruno-: has joined #ruby
[02:08:52] icarus: has joined #ruby
[02:09:38] zenspider: has joined #ruby
[02:09:49] zzach1: has joined #ruby
[02:09:58] zenspider: has joined #ruby
[02:10:07] nanoz: has joined #ruby
[02:10:29] william3: has joined #ruby
[02:10:47] rkazak: has joined #ruby
[02:17:27] Rixius: has joined #ruby
[02:18:57] elifoster: has joined #ruby
[02:19:32] LoneHermit: has joined #ruby
[02:21:44] Axy: has joined #ruby
[02:23:42] rbennacer: has joined #ruby
[02:27:10] chagel: has joined #ruby
[02:29:29] pawnbox: has joined #ruby
[02:29:57] baweaver: has joined #ruby
[02:34:05] Devalo: has joined #ruby
[02:34:19] karmatr0n: has joined #ruby
[02:38:43] william3: has joined #ruby
[02:39:33] solocshaw: has joined #ruby
[02:40:15] BtcBen: has joined #ruby
[02:43:29] Dimik: has joined #ruby
[02:45:01] nikger: has joined #ruby
[02:46:31] tjbiddle: has joined #ruby
[02:47:26] pawnbox: has joined #ruby
[02:47:59] Peleus: has joined #ruby
[02:48:54] Peleus: Hey all. I have RVM configuration for folder ~/foo. My program works fine in this folder. I want to be able to run it from folder "~/bar". How can I tell folder "~/bar" to use "~/foo"s configuration?
[02:50:25] Chagel_: has joined #ruby
[02:54:42] jobewan: has joined #ruby
[02:57:53] GinoMan2440_: has joined #ruby
[03:05:34] zast: has joined #ruby
[03:06:08] william3: has joined #ruby
[03:07:49] nando293921: has joined #ruby
[03:12:07] flashpoint9: has joined #ruby
[03:12:13] braincrash: has joined #ruby
[03:14:07] LoneHermit: has joined #ruby
[03:14:40] rbennacer: has joined #ruby
[03:20:31] icarus: has joined #ruby
[03:21:12] s00pcan: has joined #ruby
[03:22:05] sp4rrow: has joined #ruby
[03:22:36] GinoMan2440: has joined #ruby
[03:22:49] william3: has joined #ruby
[03:23:18] bigkevmcd: has joined #ruby
[03:25:12] Maletor: has joined #ruby
[03:25:24] CloCkWeRX: has joined #ruby
[03:26:56] pawnbox: has joined #ruby
[03:31:04] rkazak: has joined #ruby
[03:32:46] sp4rrow: has joined #ruby
[03:34:39] Devalo: has joined #ruby
[03:34:50] Phanes: has joined #ruby
[03:34:50] Phanes: has joined #ruby
[03:35:11] Jello_Raptor: has joined #ruby
[03:35:13] Yiota: has joined #ruby
[03:35:27] Drakx: has joined #ruby
[03:35:44] janelleb: has joined #ruby
[03:35:49] hoylemd: has joined #ruby
[03:36:01] monoprotic: has joined #ruby
[03:37:38] Jello_Raptor: has joined #ruby
[03:38:00] csaunders: has joined #ruby
[03:39:41] Jello_Raptor: has joined #ruby
[03:40:07] noService: has joined #ruby
[03:40:15] SirCmpwn: has joined #ruby
[03:40:57] Nightmare: has joined #ruby
[03:41:05] gnufied: has joined #ruby
[03:41:09] Jello_Raptor: has joined #ruby
[03:41:57] gregf: has joined #ruby
[03:42:15] Jello_Raptor: has joined #ruby
[03:43:17] Jello_Raptor: has joined #ruby
[03:44:38] Jello_Raptor: has joined #ruby
[03:45:16] Peleus: has joined #ruby
[03:45:49] gix: has joined #ruby
[03:47:44] snowy: has joined #ruby
[04:01:01] nando293921: has joined #ruby
[04:02:49] tildes: has joined #ruby
[04:03:16] Yiota: has joined #ruby
[04:03:21] hakunin: has joined #ruby
[04:03:24] tubuliferous: has joined #ruby
[04:06:23] hakunin: just saw this typo, and curious why it even works: you can add & to any object before method call, like this Foo&.bar, or user&.id, and ruby (2.3.0 here) won't complain
[04:06:57] karmatr0n: has joined #ruby
[04:07:17] hakunin: fun little parser quirk i guess
[04:07:49] tax: has joined #ruby
[04:08:08] bronson: has joined #ruby
[04:08:24] null__: has joined #ruby
[04:08:32] TheMoonMaster: has joined #ruby
[04:08:32] TheMoonMaster: has joined #ruby
[04:10:25] nisstyre: has joined #ruby
[04:10:52] GriffinHeart: has joined #ruby
[04:11:26] stunder: has joined #ruby
[04:13:04] kareeoleez: has joined #ruby
[04:13:35] jaguarmagenta: has joined #ruby
[04:16:59] chosen1_: has joined #ruby
[04:18:03] lxsameer: has joined #ruby
[04:18:09] Caelum: has joined #ruby
[04:19:58] SirCmpwn: has joined #ruby
[04:20:06] hk238: has joined #ruby
[04:21:08] bb010g: has joined #ruby
[04:23:40] SirCmpwn: has joined #ruby
[04:23:45] dionysus69: has joined #ruby
[04:25:08] Drakx: has joined #ruby
[04:25:11] ec\: has joined #ruby
[04:29:32] william3: has joined #ruby
[04:31:26] Drakx: has joined #ruby
[04:33:47] Maletor: has joined #ruby
[04:33:48] diegoaguilar: has joined #ruby
[04:34:29] null__: has joined #ruby
[04:36:21] TheMoonMaster: has joined #ruby
[04:37:48] Caelum: has joined #ruby
[04:43:57] blackgoat: has joined #ruby
[04:45:42] smathy: hakunin, no, an intentional addition that many were waiting for.
[04:45:55] AnoHito: has joined #ruby
[04:46:27] smathy: hakunin, safe navigation (aka lonely) operator.
[04:47:11] hakunin: smathy: geez
[04:47:13] hxegon: has joined #ruby
[04:47:16] hakunin: smathy: i know about lonely operator
[04:47:17] rbennacer: has joined #ruby
[04:47:33] hakunin: smathy: was sitting at rubyconf, watching matz describe it
[04:47:47] hakunin: and completely didn't realize that was it
[04:47:50] smathy: Heh :) And there it is ;)
[04:48:05] havenwood: hakunin: Lonely person staring at the dot, indeed!
[04:48:11] smathy: It's obviously a no-op when your objects are defined ;)
[04:48:15] stunder: has joined #ruby
[04:48:30] rbennacer: has joined #ruby
[04:48:44] hakunin: smathy: yep
[04:48:51] havenwood: >> nil&.nil?
[04:48:52] ruby[bot]: havenwood: # => nil (https://eval.in/555882)
[04:48:55] hakunin: but to an untrained eye looks like a typo
[04:49:15] havenwood: Just peppering the code with ampersands.
[04:49:33] rbennacer: has joined #ruby
[04:50:23] rbennacer: has joined #ruby
[04:50:26] rkazak: has joined #ruby
[04:50:26] SirCmpwn: has joined #ruby
[04:50:52] Drakx: has joined #ruby
[04:51:17] rbennacer: has joined #ruby
[04:52:16] rbennacer: has joined #ruby
[04:55:09] r0b3rt: has joined #ruby
[04:55:10] terminal_: has joined #ruby
[04:57:41] RegulationD: has joined #ruby
[04:57:46] krzkrz: has joined #ruby
[05:00:19] toretore: has joined #ruby
[05:04:26] ramfjord: has joined #ruby
[05:08:53] shevy: havenwood lol
[05:09:40] shevy: yeah... ruby syntax requires one to have good eyes
[05:10:06] shevy: I wonder if this is how perl evolved!
[05:10:19] zacts: hi rubyists
[05:11:09] smathy: No, Larry was a madman from day 1.
[05:13:12] navneet: has joined #ruby
[05:14:35] last_staff: has joined #ruby
[05:15:12] blackgoat: has joined #ruby
[05:21:30] poguez_: has joined #ruby
[05:22:01] A5101: has joined #ruby
[05:22:25] Devalo: has joined #ruby
[05:22:54] KensoDev: has joined #ruby
[05:26:10] navneet_: has joined #ruby
[05:27:53] Maletor: has joined #ruby
[05:28:53] PedramT: has joined #ruby
[05:29:07] icarus: has joined #ruby
[05:31:13] william3: has joined #ruby
[05:32:11] PedramT_: has joined #ruby
[05:34:07] icarus: has joined #ruby
[05:34:23] GriffinHeart: has joined #ruby
[05:34:33] marktwo: has joined #ruby
[05:35:10] marktwo: has joined #ruby
[05:35:59] PedramT: has joined #ruby
[05:36:41] yardenbar: has joined #ruby
[05:37:04] duncannz: has joined #ruby
[05:37:25] Synthbread: has joined #ruby
[05:37:26] ruby[bot]: -bb $a:auwooo$#ruby-banned xWindow-Free!*@*$#ruby-banned
[05:37:53] astrobunny: has joined #ruby
[05:38:40] astrobun_: has joined #ruby
[05:41:15] agent_white: has joined #ruby
[05:41:27] navneet: has joined #ruby
[05:42:00] chagel: has joined #ruby
[05:44:48] darkbulb: has joined #ruby
[05:45:36] crdpink: has joined #ruby
[05:45:52] darkbulb: I have an issue with a ruby run of a temperature conversion
[05:46:11] darkbulb: https://www.pastebin.ca/3523479
[05:46:31] Sperant: has joined #ruby
[05:46:34] darkbulb: why is puts not terminating
[05:46:56] sauvin: has joined #ruby
[05:47:02] segy: has joined #ruby
[05:47:20] shevy: that is not ruby
[05:47:22] william3: has joined #ruby
[05:47:42] jaguarma_: has joined #ruby
[05:47:59] raeoks: has joined #ruby
[05:48:14] chagel: has joined #ruby
[05:48:36] Ropeney: what is it then shevy ?
[05:48:45] al2o3-cr: has joined #ruby
[05:49:05] wasane: has joined #ruby
[05:49:13] shevy: ropeney did you look at it?
[05:49:43] Ropeney: oh he has left the room anyway
[05:49:55] shevy: cel = fahr (((9*Float(cel))/5) + 32)
[05:50:36] shevy: I can't even get to the thought process to produce code that is fairly complex
[05:50:49] karmatr0n: has joined #ruby
[05:51:13] Ropeney: i dont know whats complex about it, but I think he has mistaken some things; though its definitely ruby
[05:51:22] Ropeney: like fahr = puts
[05:51:34] Ropeney: ges cel after the calculator
[05:51:40] Ropeney: s/ges/gets/
[05:51:45] shevy: that does not look right in any way
[05:51:56] Ropeney: agreed its bad code
[05:53:08] zenlot6: has joined #ruby
[05:53:10] pawnbox: has joined #ruby
[05:54:03] toretore: they're just confused about how expressions work in ruby
[05:54:43] toretore: in some other languages you'd express the problem in this way, "get something from stdin and put it in this variable"
[05:55:50] lagweezle: has joined #ruby
[05:57:31] PedramT: has joined #ruby
[05:57:58] GinoMan2440: has joined #ruby
[05:59:13] BtcBen: has joined #ruby
[06:01:20] kareeoleez: has joined #ruby
[06:01:36] william3: has joined #ruby
[06:02:21] Infra-Red: has joined #ruby
[06:02:36] rrichardsr3: has joined #ruby
[06:03:07] icarus: has joined #ruby
[06:04:14] bluOxigen: has joined #ruby
[06:04:52] bluOxigen: has left #ruby: ()
[06:05:11] GriffinHeart: has joined #ruby
[06:12:14] flughafen: has joined #ruby
[06:12:19] hk238: has joined #ruby
[06:12:20] Infra-Red: has joined #ruby
[06:14:41] icarus: has joined #ruby
[06:15:33] pawnbox: has joined #ruby
[06:16:26] rodfersou: has joined #ruby
[06:17:20] bigkevmcd: has joined #ruby
[06:18:19] PedramT: has joined #ruby
[06:18:19] william3: has joined #ruby
[06:19:52] blt: has joined #ruby
[06:30:56] coyo: has joined #ruby
[06:31:04] firstdayonthejob: has joined #ruby
[06:32:04] nerium: has joined #ruby
[06:33:58] Infra-Red: has joined #ruby
[06:36:23] pawnbox: has joined #ruby
[06:36:23] pandaant: has joined #ruby
[06:37:31] krzkrz: has joined #ruby
[06:37:40] bigkevmcd: has joined #ruby
[06:37:41] CausaMortis: has joined #ruby
[06:41:22] PedramT: has joined #ruby
[06:42:43] PedramT: has joined #ruby
[06:43:11] pLaToOn: has joined #ruby
[06:46:51] pawnbox: has joined #ruby
[06:47:18] crdpink2: has joined #ruby
[06:48:53] tAn: has joined #ruby
[06:49:57] rippa: has joined #ruby
[06:54:00] Madplatypus: has joined #ruby
[06:54:28] william3: has joined #ruby
[06:55:00] NovapaX: has joined #ruby
[06:55:40] Spami: has joined #ruby
[06:56:34] atzorvas: has joined #ruby
[06:57:12] NovapaX_: has joined #ruby
[06:57:15] pawnbox: has joined #ruby
[06:57:38] nando293921: has joined #ruby
[06:59:34] marktwo: has joined #ruby
[06:59:55] tjvc: has joined #ruby
[06:59:55] tjvc: has joined #ruby
[07:00:47] lomex: has joined #ruby
[07:02:19] brunto: has joined #ruby
[07:02:57] waxxy: has joined #ruby
[07:05:00] Sammichmaker: has joined #ruby
[07:05:52] Pumukel: has joined #ruby
[07:07:19] yfeldblum: has joined #ruby
[07:08:21] the_drow: has joined #ruby
[07:10:07] blt: has joined #ruby
[07:10:33] andikr: has joined #ruby
[07:10:35] nando293921: has joined #ruby
[07:13:26] solars: has joined #ruby
[07:14:21] Xeago: has joined #ruby
[07:16:21] jaruga___: has joined #ruby
[07:16:32] anisha: has joined #ruby
[07:17:28] nfk: has joined #ruby
[07:17:31] jaguarmagenta: has joined #ruby
[07:19:05] codecop: has joined #ruby
[07:20:00] Devalo: has joined #ruby
[07:20:15] kenbi: has joined #ruby
[07:20:27] mark_66: has joined #ruby
[07:20:35] Shashikant86: has joined #ruby
[07:21:50] snowy: has joined #ruby
[07:23:14] madgen: has joined #ruby
[07:25:18] sepp2k: has joined #ruby
[07:25:31] antgel: has joined #ruby
[07:25:43] Shashikant86: has joined #ruby
[07:25:59] aufi: has joined #ruby
[07:26:12] brunto: has joined #ruby
[07:26:16] tildes: has joined #ruby
[07:30:20] aufi: has joined #ruby
[07:31:07] Infra-Red: has joined #ruby
[07:31:19] zenspider: toretore: no, that code is just wack
[07:31:39] mikecmpbll: has joined #ruby
[07:32:33] zenspider: absolute lack of clarity of thought
[07:33:07] anisha: has joined #ruby
[07:34:30] charlemagne: has joined #ruby
[07:35:32] ellimist747: has joined #ruby
[07:35:33] toretore: zenspider: "confused about how programming works" then :)
[07:35:49] adaedra: Hello everyone
[07:36:04] ellimist747: has left #ruby: ()
[07:36:58] edwinvdgraaf: has joined #ruby
[07:38:27] Adam_FrVancouver: has joined #ruby
[07:40:18] JohnBat26: has joined #ruby
[07:42:09] aganov: has joined #ruby
[07:42:16] manveru: anyone know a way to use refinements with methods you don't directly call?
[07:43:02] manveru: https://www.irccloud.com/pastebin/hka8AhGd/foo.rb
[07:43:03] ruby[bot]: manveru: we in #ruby do not like irccloud.com, I reposted your paste to gist for you: https://gist.github.com/036089b4571b7d7ac52b56b10237a6c6
[07:43:05] ruby[bot]: manveru: irccloud.com has no syntax highlighting, distracting formatting and loads slowly for most.
[07:43:26] manveru: oh shut up bot, you didn't even try irccloud
[07:43:28] xsdjoa: has joined #ruby
[07:43:38] Couch: has joined #ruby
[07:43:59] eatsfoobars: has joined #ruby
[07:44:58] manveru: anw, i'd like to do the above, but with refinements, it goes via Bundler.setup -> Bundler::Runtime.setup -> Bundler::Definition.specs_for -> Bundler::Definition.specs
[07:45:57] crdpink: has joined #ruby
[07:46:33] adaedra: tsssk tsssk tsssk.
[07:46:58] Jello_Raptor: has joined #ruby
[07:47:08] icarus: has joined #ruby
[07:47:45] manveru: the only thing i changed about the specs method is that i pass an empty array as second argument to resolve.materialize
[07:48:10] manveru: because otherwise bundler will fail when a gemspec is missing
[07:48:29] manveru: and i only bundle the gemspecs needed for the groups given to Bundler.setup
[07:48:31] krzkrz: has joined #ruby
[07:48:47] adaedra: I see no refinements in your code
[07:49:02] manveru: because it's not working with refinements :P
[07:49:14] manveru: https://www.irccloud.com/pastebin/6yVYCA82/foo_refined.rb
[07:49:14] ruby[bot]: manveru: as I told you already, please use https://gist.github.com
[07:49:22] adaedra: but refinements are local to file
[07:49:33] adaedra: so if your method is called from another file, it does not apply
[07:49:50] biberu: has joined #ruby
[07:49:52] manveru: so i'd have to copy all the method calls into my file and refine them all?
[07:50:16] manveru: well, lemme try that just for fun
[07:50:33] adaedra: I don't understand what you're trying to do
[07:51:12] manveru: passing the empty array to resolve.materialize when i call Bundler.setup
[07:51:25] manveru: it's a bug in bundler i want to fix for my deployment
[07:52:29] manveru: https://github.com/bundler/bundler/blob/master/lib/bundler/definition.rb#L138-L150 is the original method
[07:54:18] manveru: maybe i'm just silly, but i wanted to use refinements just once in my life... they're so cool in theory, but so useless in practice :|
[07:55:13] pawnbox: has joined #ruby
[07:55:50] TheHodge: has joined #ruby
[07:56:23] manveru: oh, i forgot i can't refine Bundler.setup because it's on a module...
[07:57:46] helpa-bot: has joined #ruby
[07:59:27] aufign: has joined #ruby
[07:59:36] RazorX: has joined #ruby
[07:59:51] helpa: has joined #ruby
[08:00:10] ponga: has joined #ruby
[08:01:43] mikecmpbll: has joined #ruby
[08:02:13] RegulationD: has joined #ruby
[08:02:19] charlemagne: has joined #ruby
[08:02:21] noService: has joined #ruby
[08:04:44] bruno-: has joined #ruby
[08:05:32] ocbtec: has joined #ruby
[08:06:00] kareeole_: has joined #ruby
[08:06:27] pawnbox: has joined #ruby
[08:07:14] tagaulap: has joined #ruby
[08:08:02] CausaMortis: has joined #ruby
[08:09:20] auzty: has joined #ruby
[08:09:33] unsymbol: has joined #ruby
[08:09:41] Xeago: has joined #ruby
[08:09:48] tubuliferous: has joined #ruby
[08:10:46] drptbl: has joined #ruby
[08:11:39] myntcake: has joined #ruby
[08:13:20] nobitanobi: has joined #ruby
[08:13:48] n008f4g_: has joined #ruby
[08:14:48] krandi: has joined #ruby
[08:15:32] maufart: has joined #ruby
[08:16:29] Xeago: has joined #ruby
[08:16:31] aufi_: has joined #ruby
[08:17:45] bigkevmcd: has joined #ruby
[08:18:47] GinoMan2440: has joined #ruby
[08:19:38] ur5us: has joined #ruby
[08:19:41] crdpink2: has joined #ruby
[08:20:38] jaguarmagenta: has joined #ruby
[08:21:06] william3: has joined #ruby
[08:22:20] evidex: has joined #ruby
[08:23:21] senayar: has joined #ruby
[08:23:21] senayar: has joined #ruby
[08:23:23] astrobunny: has joined #ruby
[08:24:48] william3: has joined #ruby
[08:26:09] crdpink: has joined #ruby
[08:28:23] bigkevmcd: has joined #ruby
[08:28:23] moeabdol: has joined #ruby
[08:28:36] poerror: has joined #ruby
[08:28:43] gh: has joined #ruby
[08:29:15] poerror: has left #ruby: ()
[08:32:12] Sperant: has joined #ruby
[08:32:56] pawnbox: has joined #ruby
[08:32:59] nfk|laptop: has joined #ruby
[08:34:29] gdp: has joined #ruby
[08:34:41] bigkevmcd: has joined #ruby
[08:35:37] x0F: has joined #ruby
[08:40:19] myntcake: has joined #ruby
[08:40:34] joonty: has joined #ruby
[08:41:06] aufi_: has joined #ruby
[08:43:10] chouhoulis: has joined #ruby
[08:46:42] crdpink2: has joined #ruby
[08:49:36] Gasher: has joined #ruby
[08:50:59] Chagel_: has joined #ruby
[08:55:11] crdpink: has joined #ruby
[08:55:14] edwinvdgraaf: has joined #ruby
[08:55:58] Xeago: has joined #ruby
[08:57:20] edwinvdgraaf: has joined #ruby
[08:57:29] skislak: has joined #ruby
[08:57:43] chagel: has joined #ruby
[08:58:49] tvw: has joined #ruby
[08:59:22] Xeago: has joined #ruby
[08:59:34] navneet: has joined #ruby
[09:01:05] rohit_: has joined #ruby
[09:03:37] nwndry: has joined #ruby
[09:03:39] symm-: has joined #ruby
[09:05:33] yfeldblum: has joined #ruby
[09:05:47] bruno-: has joined #ruby
[09:06:01] icarus_: has joined #ruby
[09:10:36] tubuliferous: has joined #ruby
[09:11:38] valeri_ufo: has joined #ruby
[09:12:14] n008f4g_: has joined #ruby
[09:12:35] stupidystupid: has joined #ruby
[09:15:09] rbennacer: has joined #ruby
[09:16:11] boomsie: has joined #ruby
[09:17:11] boomsie: I was using string.match(regex) to extract data from a string (line by line). Now I'm using string.scan(regex) to just get as many matches as I can. But I can't access the matches with labels any more... any idea how to get around that? Here's my code: https://gist.github.com/anonymous/b647cd091ab7d0a88a4fc14fc85e77b9
[09:17:30] boomsie: @extracted_names[0][0] works, but I can't use the labels as I'd like
[09:19:25] rkazak: has joined #ruby
[09:20:35] william3: has joined #ruby
[09:21:42] Weavel: has joined #ruby
[09:23:14] bigkevmcd: has joined #ruby
[09:23:48] crdpink2: has joined #ruby
[09:23:48] TomyWork: has joined #ruby
[09:23:48] forgot: has joined #ruby
[09:23:48] hypnosb: has joined #ruby
[09:23:48] mame3: has joined #ruby
[09:23:48] flopsec: has joined #ruby
[09:23:48] KillerFox: has joined #ruby
[09:23:49] flopsec: has joined #ruby
[09:24:23] forgot: has joined #ruby
[09:24:33] hypnosb: has joined #ruby
[09:24:51] platzhirsch: has joined #ruby
[09:24:53] flopsec: has joined #ruby
[09:26:24] ferr: has joined #ruby
[09:28:20] boomsie: Is it because scan doesn't return a MatchData?
[09:29:36] Xeago: has joined #ruby
[09:29:37] jhass: pretty much, yeah
[09:29:44] jhass: one thing I dislike about scan too
[09:31:11] jhass: boomsie: I guess you could #zip up with Regexp#named_captures (well, its #keys)
[09:31:12] apeiros: you can have MatchData via $~
[09:31:31] apeiros: gist coming up…
[09:31:36] jhass: but only in the block variant then
[09:32:06] apeiros: https://gist.github.com/apeiros/6094600
[09:32:59] apeiros: hm, not sure why I did enum_for in the else. .map will make it an array anyway.
[09:36:10] rohit_: has joined #ruby
[09:36:20] apeiros: ah, of course, because otherwise I get an array where I can't get $~ :)
[09:37:42] ocbtec: has joined #ruby
[09:38:47] platzhirsch: has left #ruby: ()
[09:39:27] boomsie: apeiros: thanks! I'll give that a whirl and get back to you
[09:41:16] crdpink: has joined #ruby
[09:41:53] terlar: has joined #ruby
[09:44:36] blackms: has joined #ruby
[09:45:17] boomsie: aperios: I know it's not as neat as your solution, but I might go for this: https://gist.github.com/anonymous/9a46aad54f41a0f1cef136c54187e910
[09:45:25] apeiros: ?tabnick boomsie
[09:45:25] ruby[bot]: boomsie: pro-tip - use tab completion for nicks. avoids typos in nicks.
[09:45:29] mnrmnaugh: has joined #ruby
[09:45:52] marr: has joined #ruby
[09:45:56] boomsie: apeiros: cheers!
[09:46:22] apeiros: boomsie: it's probably also slower. but hey, up to you :)
[09:46:29] boomsie: apeiros: the behaviour I want is to match as many of the data structures as I can in the string, and then access them later.
[09:46:35] tubuliferous: has joined #ruby
[09:46:36] sid_fules: has joined #ruby
[09:47:10] boomsie: apeiros: thanks for your help. I'll look into your solution more. Have a good day!
[09:47:13] pawnbox: has joined #ruby
[09:47:37] johnmilton: has joined #ruby
[09:47:50] bosnianboy: has joined #ruby
[09:48:09] pawnbox: has joined #ruby
[09:49:42] apeiros: it'd be: `@extracted_names = name_list.match_all(name_regex)`. if you want to compare performance, use benchmark/ips (a gem)
[09:49:52] apeiros: it'll help you not make basic mistakes in benchmarking :)
[09:50:06] Xeago: has joined #ruby
[09:52:04] colegatron: has joined #ruby
[09:53:13] krzkrz: has joined #ruby
[09:59:28] moeabdol: has joined #ruby
[09:59:52] sid_fules: has joined #ruby
[09:59:53] madgen: has joined #ruby
[09:59:59] Shashikant86: has joined #ruby
[10:00:04] BtcBen: has joined #ruby
[10:01:04] yfeldblum: has joined #ruby
[10:04:28] poerror: has joined #ruby
[10:06:43] Shashikant86: has joined #ruby
[10:08:28] noService: has joined #ruby
[10:10:54] bronson: has joined #ruby
[10:12:03] lkba: has joined #ruby
[10:14:32] charlemagne: has joined #ruby
[10:15:31] konsolebox: has joined #ruby
[10:17:12] Shashikant86: has joined #ruby
[10:20:56] poerror: has joined #ruby
[10:21:19] jaguarmagenta: has joined #ruby
[10:21:50] davedev24: has joined #ruby
[10:23:27] bigkevmcd: has joined #ruby
[10:25:40] GriffinHeart: has joined #ruby
[10:25:44] william3: has joined #ruby
[10:32:21] freerobby: has joined #ruby
[10:34:39] charlemagne: has joined #ruby
[10:38:53] charlemagne: has joined #ruby
[10:40:40] evidex: has joined #ruby
[10:44:52] rbennacer: has joined #ruby
[10:50:07] mikeiniowa: has joined #ruby
[10:50:23] Xeago: has joined #ruby
[10:52:50] noService: has joined #ruby
[10:53:41] csharper: has joined #ruby
[10:56:39] krzkrz: has joined #ruby
[10:57:24] nobitanobi: has joined #ruby
[10:59:31] freerobby: has joined #ruby
[10:59:48] johnmilton: has joined #ruby
[11:00:22] GinoMan2440_: has joined #ruby
[11:00:32] moeabdol: has joined #ruby
[11:00:53] charlema_: has joined #ruby
[11:00:59] evidex: has joined #ruby
[11:02:37] dn`: has joined #ruby
[11:03:00] pawnbox: has joined #ruby
[11:03:12] baweaver: has joined #ruby
[11:05:06] krzkrz: has joined #ruby
[11:05:48] GodFather: has joined #ruby
[11:08:56] neanderslob_: has joined #ruby
[11:09:20] Brackson: has joined #ruby
[11:09:42] poerror: has joined #ruby
[11:09:46] poerror: has left #ruby: ()
[11:13:45] dionysus69: has joined #ruby
[11:14:16] moeabdol: has joined #ruby
[11:14:57] kareeoleez: has joined #ruby
[11:15:40] r3v1x: has joined #ruby
[11:15:48] charlemagne: has joined #ruby
[11:15:52] r3v1x: hey guys, anyone knows a good complexity lint for ruby?
[11:16:36] bruno-: has joined #ruby
[11:18:08] shevy: <manveru> maybe i'm just silly, but i wanted to use refinements just once in my life... they're so cool in theory, but so useless in practice :|
[11:18:16] shevy: you are killing my hope to use refinements one day manveru! :(
[11:21:23] moeabdol: has joined #ruby
[11:23:05] sid_fules: has joined #ruby
[11:23:53] blaxter: has joined #ruby
[11:25:50] stunder: has joined #ruby
[11:27:03] trinaldi: has joined #ruby
[11:27:34] bigkevmcd: has joined #ruby
[11:28:29] trinaldi: has left #ruby: ()
[11:32:25] ldnunes: has joined #ruby
[11:33:44] william3: has joined #ruby
[11:39:27] charlemagne: has joined #ruby
[11:39:42] Xeago: has joined #ruby
[11:40:03] waxxy: has joined #ruby
[11:41:13] que: has joined #ruby
[11:41:59] kits: has joined #ruby
[11:45:40] shredding: has joined #ruby
[11:46:14] Xeago: has joined #ruby
[11:48:15] charlemagne: has joined #ruby
[11:49:23] tubuliferous: has joined #ruby
[11:50:53] freerobby: has joined #ruby
[11:51:30] bigkevmcd: has joined #ruby
[11:52:37] siaW: has joined #ruby
[11:52:52] madgen: has joined #ruby
[11:54:09] joonty: has joined #ruby
[11:56:17] sepp2k: has joined #ruby
[11:57:21] lsmola: has joined #ruby
[11:58:24] bigkevmcd: has joined #ruby
[11:59:46] Abhijit: has joined #ruby
[12:00:16] Abhijit: i have csv with column a,b,c,d. How can I sum all rows of column "d" where respective column "c" == value.
[12:00:34] sdothum: has joined #ruby
[12:02:24] sgambino: has joined #ruby
[12:02:34] william3: has joined #ruby
[12:02:44] krzkrz: has joined #ruby
[12:03:05] yeticry: has joined #ruby
[12:03:27] jhass: &ri Enumerable#select Enumerable#map Enumerable#reduce @Abhijit
[12:03:28] `derpy: Abhijit: http://ruby-doc.org/core-2.3.0/Enumerable.html#method-i-select, http://ruby-doc.org/core-2.3.0/Enumerable.html#method-i-map, http://ruby-doc.org/core-2.3.0/Enumerable.html#method-i-reduce
[12:03:43] RegulationD: has joined #ruby
[12:05:06] charlemagne: has joined #ruby
[12:08:14] ICantCook: has joined #ruby
[12:09:39] charlema_: has joined #ruby
[12:11:39] synthroid: has joined #ruby
[12:12:22] shayan: has joined #ruby
[12:12:56] newjersey: has joined #ruby
[12:13:52] bigkevmcd: has joined #ruby
[12:13:58] moeabdol: has joined #ruby
[12:14:00] rkoller: has joined #ruby
[12:14:30] Abhijit: `derpy, thanks.
[12:14:54] w1lson: has joined #ruby
[12:17:19] bruno-: has joined #ruby
[12:17:35] gnufied: has joined #ruby
[12:18:35] navneet: has joined #ruby
[12:19:12] Yiota: has joined #ruby
[12:19:51] shevy: derpy is such a nice guy
[12:20:11] crameth: has joined #ruby
[12:21:24] solars: has joined #ruby
[12:22:08] jaguarmagenta: has joined #ruby
[12:25:32] navneet: has joined #ruby
[12:25:33] Devalo: has joined #ruby
[12:25:57] Yiota: has joined #ruby
[12:25:59] Bloomer: has joined #ruby
[12:27:24] aeterne: has joined #ruby
[12:29:20] vishwa: has left #ruby: ()
[12:29:26] Xeago: has joined #ruby
[12:30:20] SporkWitch: has joined #ruby
[12:31:44] aupadhye: has joined #ruby
[12:31:45] nobitanobi: has joined #ruby
[12:32:21] IrishGringo: has joined #ruby
[12:32:37] SporkWitch: so, new to ruby and rails, i'm a bit lost. I'm used to more traditional stuff, you yum install your deps and then your web app lives in some folder to get called when someone browses to the URL pointing at it. I'm not understanding at all where I'm supposed to install the ruby and rails stuff, what user i should be doing it as (do i create a user to run redmine as?). Trying to figure out how to
[12:32:40] SporkWitch: install redmine
[12:33:40] TheBrayn: SporkWitch: you should ask in the redmine irc-channel
[12:33:51] madgen: has joined #ruby
[12:34:28] SporkWitch: apologies, this seemed more applicable, since it's more general ruby that i'm not understanding. i'll of course ask there as well
[12:34:55] Abhijit: SporkWitch, use rvm to install ruby and rails. assuming you are on linux just do this as regular non root user
[12:35:16] Abhijit: SporkWitch, it will live inside your /home/user/.rvm
[12:35:56] Abhijit: SporkWitch, if that redmine is a gem, you have to add it to your rails project Gemfile and run bundle
[12:37:09] SporkWitch: that's what it seemed like and that's why it was confusing me, since normally server applications have their own no-login users
[12:37:54] Abhijit: SporkWitch, when you put your rails in production the nginx / apache will be running as their standard user or your non root user whatever is standand to them
[12:37:57] stannard: has joined #ruby
[12:37:58] Xeago: has joined #ruby
[12:38:29] Abhijit: SporkWitch, my nginx run as my non root user. i have project dir as /var/www/proj which is user:root group and nginx runs as user "user" here
[12:38:39] Abhijit: nginx + passenger
[12:40:58] SporkWitch: ok, so really i'm just telling it WHERE to install, and then apache would just point to that location like anything else, such as owncloud or w/e. the user i do it as is just determining location and owner?
[12:41:10] SporkWitch: assuming i understood that right, that helps; thanks
[12:41:52] Abhijit: SporkWitch, no. "you" have to configure apache / nginx config file then it will know where is your rails. additionaly you have to do passenger / unicorn configuration also.
[12:42:07] SporkWitch: yeah, sorry, of course i have to point it at it still
[12:42:45] Abhijit: yeah, so basically put app in location, then configure, passenger/unicorn/whatever then configure apache/nginxl/whatever and you are live!! :-)
[12:43:25] Abhijit: SporkWitch, since you have to execute the command "bundle" as non root user (thats restriction from rails/ ruby) you have to chown the project dir to nonrootuser:root
[12:44:03] Yiota: has joined #ruby
[12:44:29] SporkWitch: yeah, that was the first thing that tipped me off that this was not like installing anything i was used to, heh. normally i just drop my web apps int /var/www, chown to apache:apache, and then create the vhost. done.
[12:45:01] SporkWitch: any "install" stuff just does the same, dropping stuff where it needs to go
[12:45:30] madgen: has joined #ruby
[12:45:45] someish: has joined #ruby
[12:45:52] sid_fules: has joined #ruby
[12:52:16] AlexJakeGreen: has joined #ruby
[12:53:35] avelldiroll: has joined #ruby
[12:54:23] jrafanie: has joined #ruby
[12:55:08] navneet: has joined #ruby
[12:57:53] isaiahp: has joined #ruby
[13:00:22] flashpoint9: has joined #ruby
[13:00:30] ChiefAlexander: has joined #ruby
[13:01:07] cdg: has joined #ruby
[13:01:15] someish: has joined #ruby
[13:01:30] Infra-Red: has joined #ruby
[13:01:41] nobitanobi: has joined #ruby
[13:02:11] JakFrist: has joined #ruby
[13:02:58] dn`: has joined #ruby
[13:03:30] GodFather: has joined #ruby
[13:03:55] ramortegui: has joined #ruby
[13:04:25] aegis3121: has joined #ruby
[13:06:48] Ebok: has joined #ruby
[13:07:02] marr: has joined #ruby
[13:09:52] nfk|laptop: i'm trying to use capistrano for deployment and i'm getting TypeError: no implicit conversion of Symbol into String
[13:10:01] nfk|laptop: is my ruby2.1 too old or what?
[13:10:18] djcp: has joined #ruby
[13:10:34] n008f4g_: has joined #ruby
[13:11:08] shevy: that error can happen on ruby 2.1.x just as it can on 2.3.x and on 1.9.x and 1.8.x
[13:11:42] nfk|laptop: so what is going on there?
[13:12:07] nfk|laptop: it's in vendor code so surely many would have hit it if it was a common issue
[13:13:10] nfk|laptop: set :deploy_to, :application
[13:13:14] nfk|laptop: that has to be this
[13:13:21] davedev24: has joined #ruby
[13:13:25] sgambino: has joined #ruby
[13:16:33] Xeago: has joined #ruby
[13:16:43] Xeago: has joined #ruby
[13:17:22] steve: has joined #ruby
[13:18:02] tvw: has joined #ruby
[13:18:48] bruno-: has joined #ruby
[13:20:32] moeabdol: has joined #ruby
[13:21:12] ChiefAlexander: has joined #ruby
[13:21:27] william3: has joined #ruby
[13:22:26] malconis: has joined #ruby
[13:22:42] godzillaenlacasa: has joined #ruby
[13:24:44] nfk|laptop: oh god, it requires an absolute path, i'm really starting to hate capistrano
[13:25:14] Shashikant86: has joined #ruby
[13:26:45] shevy: you just need a pat on the back
[13:27:36] ujjain: feature_branch_ci_deploys.feature: And I do not expect any HipChat messages to be sent < what are these kind of tests called?
[13:27:43] ujjain: or cucumber?
[13:28:19] OTORelic2: has joined #ruby
[13:28:57] jhass: ujjain: that kind of test is usually parsed with gherkin and glued to ruby code using cucumber
[13:29:02] ujjain: ACTION pats nfk|laptop on the back
[13:29:05] jhass: they're most often used for integration tests
[13:29:10] ujjain: ah thanks
[13:29:27] ujjain: yes, it looks like gherkin
[13:29:28] jhass: (that is cucumber uses gherkin to parse it)
[13:29:47] harryv: has joined #ruby
[13:29:48] ujjain: does log.warn("") come from the log4j library?
[13:29:57] jhass: impossible to tell
[13:30:08] nfk|laptop: ujjain, what?
[13:30:15] jhass: check log.class
[13:30:20] ujjain: nfk|laptop shevy said you needed a pat on the back
[13:30:26] ujjain: jhass thanks
[13:30:31] nfk|laptop: oh, right, he did
[13:30:57] kareeoleez: has joined #ruby
[13:31:31] terlar: has joined #ruby
[13:31:44] Gasher: has joined #ruby
[13:31:58] bkxd: has joined #ruby
[13:32:42] robbyoconnor: has joined #ruby
[13:32:44] yardenbar: has joined #ruby
[13:33:07] crazyphil: has joined #ruby
[13:33:12] eljimmy: has joined #ruby
[13:33:22] ujjain: I'd like to test if log.warn("hello") is executed in gherkin... any tips would be welcome. How can I check what was logged in the last line?
[13:33:44] statelesscode: has joined #ruby
[13:34:26] TheWhip: has joined #ruby
[13:34:28] sid_fules: has joined #ruby
[13:35:01] jobewan: has joined #ruby
[13:35:54] shevy: hmm... gherkin itself has means to log output?
[13:36:00] krzkrz: has joined #ruby
[13:36:01] mustmodify: has joined #ruby
[13:36:58] alienaut: has joined #ruby
[13:37:28] charlemagne: has joined #ruby
[13:38:14] bruno-: has joined #ruby
[13:38:18] mustmodify: Someone please tell me why this is a dumb idea. I'm trying to embrace "as simply as possible but not simpler." But my current plan almost seems too simple. I receive telemetry via UDP. I parse it, turn it into JSON, then append that and a comma ( so ... "{key: value, key: value},\n" to a file whose name is device_id/date.json ... then when I emit with sinatra I'll add [ + content + ]
[13:38:48] mustmodify: deliverables from this microservice are: all positions for a day and most recent position... so for most recent, obviously just tail -n 1
[13:38:49] AlexRussia: has joined #ruby
[13:38:57] mustmodify: (less the comma)
[13:39:46] ujjain: shevy: my code will print a custom error message for execution expired (http://pastebin.com/Uz80GbuF) - can you link me a gherkin docs that would help me to build a test that looks if the timeout message was correctly displayed
[13:39:47] ruby[bot]: ujjain: as I told you already, please use https://gist.github.com
[13:40:20] mustmodify: rubybot: You're stateful, how nice. :P
[13:40:32] mustmodify: rubybot: kind of snarky for this early in the morning, but funny.
[13:42:14] jhass: ujjain: throwing a require "pry"; binding.pry before it should be just fine
[13:42:18] SporkWitch: has left #ruby: ("Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is")
[13:42:19] WaqasA: has joined #ruby
[13:42:20] ruby[bot]: 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
[13:42:39] navneet: has joined #ruby
[13:42:56] rbennacer: has joined #ruby
[13:43:49] rbennacer: has joined #ruby
[13:44:58] jschoolcraft: has joined #ruby
[13:46:01] chouhoulis: has joined #ruby
[13:46:19] william3: has joined #ruby
[13:48:01] lsmola: has joined #ruby
[13:49:19] rohit: has joined #ruby
[13:50:49] jhass: ujjain: btw rescue Timeout::Error, never rescue Exception
[13:51:20] ujjain: ah thanks
[13:51:26] rickmasta: has joined #ruby
[13:51:37] jhass: https://github.com/bbatsov/ruby-style-guide#no-blind-rescues
[13:52:27] rickmasta: has joined #ruby
[13:52:39] ujjain: I might have broken my ruby. https://gist.github.com/ujjain/636d5e6b1e7291e155461281aa662e24
[13:52:40] jhass: ujjain: and just raise e to reraise
[13:52:44] karmatr0n: has joined #ruby
[13:52:58] jhass: ujjain: bundle exec cucumber ...
[13:53:29] william3: has joined #ruby
[13:53:32] ujjain: ah thanks
[13:53:43] rickmasta: has joined #ruby
[13:53:59] jhass: which the error message even mentions btw
[13:54:56] ujjain: ah you are right
[13:55:47] stannard: has joined #ruby
[13:55:49] joe1234567: has joined #ruby
[13:56:08] chris2: has joined #ruby
[13:56:15] agent_white: has joined #ruby
[13:56:40] Abhijit: ujjain, you are talking to whom?
[13:56:55] Abhijit: have I blocked someone or what?
[13:57:14] ujjain: jhass: thanks + you are right, the message did say "pretend bundle exec" was for him
[13:57:54] ElSif: has joined #ruby
[14:00:09] ujjain: https://gist.github.com/ujjain/b9a077dd30168f4c3179222915ed94d9 => cannot load such file -- pry (LoadError)
[14:00:22] ujjain: must I add pry to the gemfile?
[14:00:24] solars: has joined #ruby
[14:00:31] jhass: bundle help exec
[14:00:36] stannard: has joined #ruby
[14:01:21] stannard: has joined #ruby
[14:02:28] dhollinger: has joined #ruby
[14:04:17] sid_fules: has joined #ruby
[14:04:22] OTORelic2: has joined #ruby
[14:04:43] duracrisis: has joined #ruby
[14:05:07] idletask: has joined #ruby
[14:06:57] ujjain: binding.pry gives Caught ArgumentError: wrong number of arguments
[14:07:18] sid_fules: has joined #ruby
[14:09:06] szulak: has joined #ruby
[14:09:28] Infra-Red: has joined #ruby
[14:10:15] sid_fules: has joined #ruby
[14:14:47] icarus: has joined #ruby
[14:15:02] noService: has joined #ruby
[14:15:37] waxxy: mustmodify as long as the json you receive is guaranteed to be valid, that should work fine right?
[14:15:42] waxxy: big conditional, though
[14:16:47] gnufied: has joined #ruby
[14:17:10] sgambino: has joined #ruby
[14:17:49] BSaboia: has joined #ruby
[14:18:55] whippythellama: has joined #ruby
[14:19:30] Xeago: has joined #ruby
[14:20:18] jhack: has joined #ruby
[14:21:33] ujjain: how would the gherkin-step look for this feature? http://i.imgur.com/PFv41mH.png
[14:21:35] madgen: has joined #ruby
[14:21:49] ujjain: it's at http://docs.behat.org/en/v2.5/guides/1.gherkin.html, but it doesn't show theh step
[14:22:34] charlemagne: has joined #ruby
[14:22:55] jaguarmagenta: has joined #ruby
[14:23:29] noService: has joined #ruby
[14:26:22] aufi_: has joined #ruby
[14:26:51] Devalo: has joined #ruby
[14:27:04] aydintd: has joined #ruby
[14:28:22] aydintd: has left #ruby: ()
[14:28:36] Ebok: has joined #ruby
[14:29:30] Xeago: has joined #ruby
[14:29:31] aydintd: has joined #ruby
[14:30:12] xaxisx: has joined #ruby
[14:30:21] platzhirsch: has joined #ruby
[14:30:25] eatsfoobars: has joined #ruby
[14:31:41] freerobby: has joined #ruby
[14:32:02] Macaveli: has joined #ruby
[14:33:45] aegis3121: has joined #ruby
[14:35:00] Xeago: has joined #ruby
[14:35:09] drptbl_: has joined #ruby
[14:35:35] Shashikant86: has joined #ruby
[14:36:32] SilverKey: has joined #ruby
[14:36:43] infernix: has joined #ruby
[14:44:04] DoubleMalt: has joined #ruby
[14:44:16] ujjain: how to make gherkin look if an exception was raised?
[14:45:08] Shashikant86: has joined #ruby
[14:45:11] Macaveli_: has joined #ruby
[14:45:17] gregf: has joined #ruby
[14:45:44] the_drow: Hi, I'm invoking Time.now and it returns a string for some reason although the docs specify it should return a Time object
[14:46:39] jhass: the_drow: how do you assert it returns a string?
[14:46:56] toretore: >> Time.now
[14:46:56] the_drow: Time.now.class outputs String
[14:46:57] ruby[bot]: toretore: # => 2016-04-19 14:46:56 +0000 (https://eval.in/556387)
[14:47:07] the_drow: At least for me...
[14:47:12] jhass: >> Time.now.class
[14:47:13] ruby[bot]: jhass: # => Time (https://eval.in/556388)
[14:47:17] toretore: the_drow: gist your code
[14:47:26] jhass: the_drow: what's Time.method(:now).source_location for you?
[14:47:30] the_drow: It's a whole project... I don't know where to begin
[14:47:32] mustmodify: has left #ruby: ()
[14:47:37] the_drow: jhass, I'll check
[14:48:11] the_drow: Users/omer.katz/.rvm/gems/ruby-2.2.4@tracking_service/gems/rspec-mocks-3.4.1/lib/rspec/mocks/method_double.rb
[14:48:22] the_drow: Right so it's rspec's fault
[14:48:27] lkba_: has joined #ruby
[14:48:45] jhass: the_drow: not quite, more likely somebody did Time.stub(:now).and_return("foo") or alike
[14:48:48] harryv: has joined #ruby
[14:49:24] the_drow: Oh I see that now
[14:49:24] sid_fules: has joined #ruby
[14:49:53] jhass: check the timecop gem for some aid in Time stubbing
[14:50:14] Mekkis: has joined #ruby
[14:50:36] Infra-Red: has joined #ruby
[14:51:04] Infra-Red: has joined #ruby
[14:53:17] the_drow: jhass, thanks
[14:53:35] ruby-lang153: has joined #ruby
[14:53:42] phpwebdev: has joined #ruby
[14:56:11] icarus: has joined #ruby
[14:57:32] RegulationD: has joined #ruby
[14:57:35] Amnez777: has joined #ruby
[14:58:46] Alina-malina: has joined #ruby
[14:59:26] Alina-malina: has joined #ruby
[14:59:34] theunraveler: has joined #ruby
[14:59:36] Xeago: has joined #ruby
[15:00:41] aegis3121: has joined #ruby
[15:00:42] Xeago: has joined #ruby
[15:02:13] xaxisx: has joined #ruby
[15:02:36] Xeago: has joined #ruby
[15:04:35] tomatoes: has joined #ruby
[15:04:59] smathy: has joined #ruby
[15:05:23] tubbo: why is there both `alias` and `alias_method`?
[15:05:56] kam270: has joined #ruby
[15:06:05] tubbo: it's so confusing
[15:06:08] tubbo: for like no reason
[15:06:15] baweaver: has joined #ruby
[15:06:41] Balzrael: has joined #ruby
[15:08:23] stunder: has joined #ruby
[15:08:53] william3: has joined #ruby
[15:09:16] jhass: first of all alias is syntax, alias_method is a regular method call (Module#alias_method iirc?)
[15:09:18] smathy: Total reason.
[15:09:33] jhass: my guess is alias was first and not metaprogrammable
[15:09:43] aegis3121: They also scope differently, I believe.
[15:10:47] william3: has joined #ruby
[15:14:02] elifoster: has joined #ruby
[15:15:04] rkazak: has joined #ruby
[15:15:16] smathy: Yes, `alias` is lexically scoped, there's no way to make it work for subclasses.
[15:15:34] wldcordeiro: has joined #ruby
[15:15:47] polishdub: has joined #ruby
[15:16:07] sid_fules: has joined #ruby
[15:16:28] ayonkhan: has joined #ruby
[15:16:45] bruno-: has joined #ruby
[15:16:56] icarus: has joined #ruby
[15:17:44] TomyLobo: has joined #ruby
[15:18:44] marr: has joined #ruby
[15:20:59] thomasfedb: has joined #ruby
[15:20:59] thomasfedb: has joined #ruby
[15:22:20] sid_fules: has joined #ruby
[15:28:07] sid_fules: has joined #ruby
[15:30:15] kfpratt: has joined #ruby
[15:32:09] Computergeek01: has joined #ruby
[15:32:55] Computergeek01: Would it be inappropriate to post compilation questions here?
[15:33:48] igam: has joined #ruby
[15:33:48] shevy: compiling ruby?
[15:33:57] shevy: however give it a try anyway
[15:34:04] Computergeek01: Yes, well building it with rbenv
[15:34:41] igam: hi! How can I load and test a gem of which I have obtained the sources from github and that I have modified locally? $LOAD_PATH is read only, and gem install installs a new version from the network, not from the work directory,
[15:35:02] igam: require with an absolute pathname doesn't load it either…
[15:35:21] pawnbox: has joined #ruby
[15:36:39] ayonkhan: has joined #ruby
[15:36:43] Computergeek01: So my issue is that the command "rbenv install 2.X.X" fails with because 'libruby-static.a' is being built for the wrong arhictecture. But if I manually configure it for dynamic linking it works
[15:37:13] Sadin: has joined #ruby
[15:37:49] kareeoleez: has joined #ruby
[15:38:13] weckl: has joined #ruby
[15:38:20] jhass: igam: $LOAD_PATH is not read only
[15:38:48] jhass: igam: but ruby/irb -Ilib -rthe_gem might be the easiest
[15:38:53] cpruitt: has joined #ruby
[15:38:56] Carella: has joined #ruby
[15:39:00] jhass: (well it does modify $LOAD_PATH actually)
[15:39:10] northrup: has joined #ruby
[15:39:32] JakFrist: has joined #ruby
[15:39:50] igam: the_gem would be a path or a name?
[15:40:46] jhass: filename (without the .rb) of the entry point
[15:40:52] jhass: just for convenience too
[15:40:53] igam: Yep, it seems to work. Thanks.
[15:41:16] _tpavel: has joined #ruby
[15:42:08] openstruct: has joined #ruby
[15:42:33] sid_fules: has joined #ruby
[15:42:40] banister: has joined #ruby
[15:43:44] Computergeek01: Has anyone seen this error before? "ld: warning: ignoring file libruby-static.a, file was built for archive which is not the architecture being linked (x86_64): libruby-static.a"
[15:44:05] jhass: seems harmless
[15:44:14] pawnbox: has joined #ruby
[15:44:18] igam: make clean perhaps?
[15:44:21] Computergeek01: It's leading to undefined symbols
[15:44:31] Computergeek01: Undefined symbols for architecture x86_64: "_ruby_init", referenced from: _main in main.o "_ruby_init_stack", referenced from: _main in main.o "_ruby_options", referenced from: _main in main.o "_ruby_run_node", referenced from: _main in main.o "_ruby_sysinit", referenced from: _main in main.o ld: symbol(s) not found for architecture x86_64
[15:44:32] karapetyan: has joined #ruby
[15:44:37] kareeole_: has joined #ruby
[15:44:45] Computergeek01: I tried that too.
[15:44:57] Computergeek01: The only way I've been able to work around it is to build it for dynamic linking only
[15:45:12] Computergeek01: But I guess that breaks my groups build environment or some other crap.
[15:45:14] baweaver: has joined #ruby
[15:45:37] bosnianboy: has joined #ruby
[15:47:12] infernix: has joined #ruby
[15:47:36] nodejunkie: has joined #ruby
[15:48:23] WaqasA: I am a Java Web developer, working with Liferay. Also, I am starting to learn Ruby (and Rails), because I love Ruby. Do you guys think I should stick with learning Ruby or do PHP (Maybe Laravel)? I have experience with Laravel also.
[15:48:30] Maletor: has joined #ruby
[15:49:15] Xeago: has joined #ruby
[15:50:42] siaW: has joined #ruby
[15:52:07] M-Shrike1: has joined #ruby
[15:52:12] mfb2: has joined #ruby
[15:52:38] diegoaguilar: has joined #ruby
[15:54:06] charlemagne: has joined #ruby
[15:54:06] Devalo: has joined #ruby
[15:54:50] madgen: has joined #ruby
[15:55:03] bmf: has joined #ruby
[15:55:47] amclain: has joined #ruby
[15:56:17] apeiros: WaqasA: php IMO only if you've masochistic tendencies
[15:56:39] ramfjord: has joined #ruby
[15:57:54] M-Shrike1: PHP is a satanist cult.
[15:58:03] pawnbox: has joined #ruby
[15:58:52] apeiros: that would actually sound appealing
[16:01:13] Cohedrin: has joined #ruby
[16:02:12] dfockler: has joined #ruby
[16:03:01] smathy: WaqasA, I always respond to this question the same way, if you enjoy writing PHP then you should do that because if you can enjoy PHP then at some point you'll hate ruby.
[16:03:26] Computergeek01: OK, now I don't know what the heck to think. Here's my latest error: "bigdecimal.c:124:52: error: too few arguments to function call, expected at least 3, have 2"
[16:03:49] Computergeek01: I got past the build failure for 'libruby-static.a' by reindexing it with "ranlib"
[16:04:10] Computergeek01: This is an actual error in a stable source release? Or am I reading this wrong?
[16:04:44] smathy: Looks more like a build environment clusterfuck.
[16:04:45] bradleyprice: has joined #ruby
[16:04:53] apeiros: php still the only language from my not so small collection of known languages I never truly liked.
[16:05:03] sid_fules: has joined #ruby
[16:05:08] nando293921: has joined #ruby
[16:05:17] Computergeek01: smathy : Go on, I'll try anything at this point
[16:05:41] smathy: apeiros, same.
[16:05:43] Computergeek01: But "... too few arguments to function call ... " seems like a source code error to me
[16:05:45] Cohedrin_: has joined #ruby
[16:06:10] baweaver: has joined #ruby
[16:06:48] smathy: Computergeek01, that's easy to just be the wrong lib function being called, or wrong precompile branch.
[16:07:01] bruno-: has joined #ruby
[16:07:33] Computergeek01: OK, I think I follow. I'm cleaning and trying again now.
[16:07:52] WaqasA: Thanks guys!
[16:12:30] bradleyprice: has joined #ruby
[16:13:37] bronson: has joined #ruby
[16:14:43] dionysus69: has joined #ruby
[16:16:47] synthroid: has joined #ruby
[16:16:48] flashpoint9: has joined #ruby
[16:17:11] Computergeek01: OK, are there any scripts to santize a bash shell in order to compile Ruby?
[16:17:31] eam: Computergeek01: what's that mean?
[16:18:03] Computergeek01: Something that sets the environment variables to what they should be. Or at least runs a version control test on the dependencies.
[16:18:13] M-Shrike1: has left #ruby: ("User left")
[16:18:39] eam: you don't necessarily need any environment variables set in order to build. Dependencies will differ depending on your system/distro
[16:19:09] tubuliferous: has joined #ruby
[16:19:12] eam: I don't know of anything to set up the dependencies, but it should be a rather simple process (and you can then save what you did in a script)
[16:19:24] mfb2_: has joined #ruby
[16:19:29] Computergeek01: Good point, now that you say that I realize that rbenv is probably the closest to what I am looking for.
[16:19:38] eam: most likely, yeah
[16:20:01] rbennacer: has joined #ruby
[16:21:19] mfb2_: has joined #ruby
[16:22:26] baweaver: has joined #ruby
[16:23:34] SilverKey: has joined #ruby
[16:23:38] jaguarmagenta: has joined #ruby
[16:23:49] wldcordeiro: has joined #ruby
[16:23:53] noService: has joined #ruby
[16:25:19] Computergeek01: OK, looks like the nuclear option it is. Time to reformat the Mac
[16:25:35] Computergeek01: I really miss Windows SxS
[16:25:45] bmf: has joined #ruby
[16:26:06] mfb2: has joined #ruby
[16:26:26] shinnya: has joined #ruby
[16:26:40] eam: ruby shouldn't have any meaningful dependencies on system libraries on osx
[16:26:44] psf: has joined #ruby
[16:26:58] mfb2: has joined #ruby
[16:27:28] Computergeek01: Do you know what version of C it's supposed to compile against? I have to wait until this evening to format the machine anyway
[16:27:41] nofacade: has joined #ruby
[16:28:42] baweaver: has joined #ruby
[16:29:24] Spami: has joined #ruby
[16:30:09] eam: Computergeek01: it'll link against /usr/lib/libSystem.B.dylib, which is the osx libc
[16:30:21] eam: that's not something that's versioned in any meaningful way -- it will just work
[16:30:36] eam: are you running into a specific problem? Maybe describe the trouble?
[16:30:45] babblebre: has joined #ruby
[16:30:53] Computergeek01: Yeah, people keep telling me that. But it's either a package that I have is out of date or I have a default setting wrong
[16:31:08] eam: if you're encountering an error, can you describe it?
[16:31:31] eam: "when I do X, I see Y and I expect Z"
[16:32:03] Computergeek01: I just reinstalled brew to grab rbenv again, I'll have the error up agian in a minute if this doesn't work
[16:33:20] rbennacer: has joined #ruby
[16:33:51] gigetoo: has joined #ruby
[16:33:54] moeabdol: has joined #ruby
[16:34:58] steve: has joined #ruby
[16:35:13] pawnbox: has joined #ruby
[16:35:15] Yeomra: has joined #ruby
[16:35:54] symm-: has joined #ruby
[16:37:28] stupidystupid: has joined #ruby
[16:38:15] Guest38: has joined #ruby
[16:38:17] Computergeek01: The error is that there are undefined symbols for "_ruby_init", "_ruby_init_stack", "_ruby_options", "_ruby_run_node" and _ruby_sysinit
[16:38:24] JakFrist: has joined #ruby
[16:38:33] Regulati_: has joined #ruby
[16:39:59] Computergeek01: nm says that these functions are all defined in 'libruby-static.a' but that is giving me a warning that says: "ld: warning: ignoring file libruby-static.a, file was built for archive which is not the architecture being linked (x86_64): libruby-static.a"
[16:40:24] Computergeek01: Until I run 'ranlib' against it to reindex it. Then I'm getting a different error depending on what version of ruby I'm trying to build
[16:40:31] Sadin: has joined #ruby
[16:40:57] th0m: has joined #ruby
[16:42:20] crdpink2: has joined #ruby
[16:43:04] IrishGringo: has joined #ruby
[16:43:07] Computergeek01: And now I'm getting a missing header file for something that should be in the include path. So we're back to me having a hoarked build env eam
[16:43:16] eam: which header file?
[16:44:00] Computergeek01: it's there in ./include/ruby/backward
[16:45:17] Computergeek01: From 'tcltklib.c' by the way
[16:45:36] Computergeek01: In case that helps you find the problematic branch
[16:47:06] tubuliferous: has joined #ruby
[16:47:24] SilverKey: has joined #ruby
[16:47:51] lomex: has joined #ruby
[16:52:24] bruno-: has joined #ruby
[16:53:40] bluOxigen_: has joined #ruby
[16:54:19] icarus: has joined #ruby
[16:54:27] nobitanobi: has joined #ruby
[16:54:42] SCHAAP137: has joined #ruby
[16:54:52] Cohedrin: has joined #ruby
[16:55:22] JJM: has joined #ruby
[16:57:30] rbennacer: has joined #ruby
[16:57:36] phaza: has joined #ruby
[16:58:13] codecop: has joined #ruby
[16:59:32] flashpoint9: I started getting into Ruby because I was getting into Rails and wanted to get better at a lower level. I've been coding some gems, enjoying myself and learning quite a bit but what do Ruby coders spend most of their time doing? What kinds of projects use only Ruby?
[17:00:10] GriffinHeart: has joined #ruby
[17:01:12] poguez_: has joined #ruby
[17:01:37] shevy: flashpoint9 dunno, whatever I need to do, if it can be automated, I just write in ruby
[17:02:06] flashpoint9: shevy: so for your work you primarily code in ruby? or is it mostly rails and you automate things when needed using ruby?
[17:02:22] shevy: I never used ruby because of work
[17:02:32] shevy: I mean, I could ruby every now and then
[17:02:38] jhass: I'm not sure it's a useful line to draw, after all rails itself is written in "only ruby"
[17:02:50] shevy: but I use ruby because it is a very good language
[17:02:58] TheWhip: has joined #ruby
[17:03:08] jhass: and most stuff that isn't one off scripts will use at least some library, rails is just a fairly big one
[17:03:30] flashpoint9: jhass: true, but I certainly felt like I could eek my way through rails without having a deep undertsaning of ruby, at least to be a crud jockey if nothing else
[17:03:53] shevy: the overall ecosystem of rails is quite big
[17:03:59] aegis3121: has joined #ruby
[17:04:02] jhass: the same way you could eek through ruby without having a deep understanding of it
[17:04:04] malconis: has joined #ruby
[17:04:14] jhass: IMO to write good rails code you need to understand ruby after all
[17:04:15] nanoz: has joined #ruby
[17:04:37] flashpoint9: jhass: hmmm, it certainly feels like I cant cheat through Ruby
[17:04:46] Pumukel: has joined #ruby
[17:05:20] flashpoint9: thanks for the info people :)
[17:05:25] chouhoul_: has joined #ruby
[17:06:37] shevy: the two biggest hurdles I have in regards to writing ruby code is, when I lack some particular domain knowledge, or when I simply lack the time
[17:07:21] gigetoo: has joined #ruby
[17:07:39] mikecmpbll: has joined #ruby
[17:08:31] Amnez777: has joined #ruby
[17:08:51] Asher: has joined #ruby
[17:08:55] joonty: has joined #ruby
[17:09:02] Alina-malina: has joined #ruby
[17:09:34] shevy: there could perhaps be more smaller ruby gems out there
[17:10:33] rickmasta: has joined #ruby
[17:10:58] shevy: stuff like apeiros' literal parser https://github.com/apeiros/literal_parser
[17:11:10] pawnbox: has joined #ruby
[17:13:09] snockerton: has joined #ruby
[17:13:45] mleung: has joined #ruby
[17:14:14] Infra-Red: has joined #ruby
[17:15:18] icarus: has joined #ruby
[17:15:32] chouhoulis: has joined #ruby
[17:15:45] MagePsycho_: has joined #ruby
[17:15:53] ssiris: has joined #ruby
[17:16:16] n008f4g_: has joined #ruby
[17:16:55] sid_fules: has joined #ruby
[17:18:05] bluOxigen_: has left #ruby: ()
[17:18:18] nobitanobi: has joined #ruby
[17:20:10] nodejunkie: has left #ruby: ("Leaving")
[17:20:31] aegis3121: has joined #ruby
[17:20:54] skweek: has joined #ruby
[17:21:52] xuex: has joined #ruby
[17:21:52] jhack: has joined #ruby
[17:21:53] Infra-Red: has joined #ruby
[17:22:01] bruno-: has joined #ruby
[17:22:29] charlemagne: has joined #ruby
[17:22:30] skweek: has joined #ruby
[17:22:44] rcvalle: has joined #ruby
[17:23:59] jhack_: has joined #ruby
[17:24:10] skweek: has joined #ruby
[17:25:12] VeryBewitching: has joined #ruby
[17:25:18] dfockler: has joined #ruby
[17:25:38] Xeago: has joined #ruby
[17:26:14] Dimik: has joined #ruby
[17:27:19] Sperant: has joined #ruby
[17:27:27] jhack: has joined #ruby
[17:27:42] madgen: has joined #ruby
[17:29:51] Abhijit: has joined #ruby
[17:30:31] Abhijit: i am doing mycsvfileobj.each do |csfile| print("#{csfile}, Good) end . that " , Good " part is coming on newline. how to avoid that?
[17:30:51] mfb2: has joined #ruby
[17:31:11] tobiasvl: Abhijit: there's evidently a newline at the end of csfile
[17:31:38] jhass: &ri String#chomp
[17:31:38] `derpy: http://ruby-doc.org/core-2.3.0/String.html#method-i-chomp
[17:31:45] tobiasvl: chomp it I mean
[17:31:50] tobiasvl: I get language blind sometimes
[17:31:58] Abhijit: `derpy, is a bot?
[17:33:10] william3: has joined #ruby
[17:33:39] Alina-malina: has joined #ruby
[17:34:24] chosen1: has joined #ruby
[17:36:00] mfb2: has joined #ruby
[17:37:18] mfb2: has joined #ruby
[17:38:54] JakFrist: has joined #ruby
[17:39:08] Ebok: has joined #ruby
[17:39:25] SilverKey: has joined #ruby
[17:39:50] eatsfoobars: has joined #ruby
[17:41:42] rickmasta: has joined #ruby
[17:42:28] flashpoint9: has joined #ruby
[17:42:59] brent__: has joined #ruby
[17:43:57] highbass: has joined #ruby
[17:44:05] nhhc: has joined #ruby
[17:44:06] dome22xl: has joined #ruby
[17:45:36] baweaver: has joined #ruby
[17:45:49] jhack_: has joined #ruby
[17:46:11] william3: has joined #ruby
[17:48:27] highbass: not sure the best place to ask this but i got a puma process that i start in an init script (daemonized)... straight forward start bundle exec puma -c ./config/test.rb >> /var/log/x.log ... problem is that the app starts with init.d but the init holds the bash session ... it doesnt seem to run in the background and give proper exit codes... is there something i am missing?
[17:49:46] jhass: mmh, a /usr/bin/systemd
[17:49:54] jhass: ACTION crawls back into his troll cave
[17:50:07] miah: highbass: put a '&' after your puma command
[17:50:21] miah: or nohup it
[17:50:29] miah: ensure its put into the background, because it doesnt by default
[17:50:47] highbass: o think i also just read -d deamonizes a puma process
[17:50:48] miah: personally, i use chpst to manage startup of my apps
[17:50:51] highbass: going to give that a shit
[17:50:55] miah: cool, good lucks
[17:50:58] miah: its part of runit
[17:51:09] miah: http://smarden.org/runit/
[17:51:19] highbass: ah ok ... i was going to bundle it into monit
[17:51:26] miah: that will work too
[17:51:34] highbass: thanks miah
[17:51:40] miah: your welcome
[17:52:07] conta: has joined #ruby
[17:52:11] codecop: has joined #ruby
[17:52:25] tildes: has joined #ruby
[17:52:50] miah: i was referring to their welcome ;)
[17:54:48] jackjackdripper: has joined #ruby
[17:55:06] baweaver: has joined #ruby
[17:56:21] harryv: has joined #ruby
[17:58:11] rbennacer: has joined #ruby
[17:58:38] firstdayonthejob: has joined #ruby
[18:01:35] jhack: has joined #ruby
[18:02:33] baweaver: Has anyone played with hosting RDoc on GH Pages for an Enterprise (private) installation?
[18:02:54] baweaver: That, and I need to find their default stylesheet in git, it's cringeworthy
[18:03:13] smathy: ACTION makes obligatory crucifix sign - ENTERPRISE!
[18:03:29] baweaver: I do the same for Java smathy
[18:03:42] smathy: Oh I just stab Java where it stands.
[18:04:09] smathy: ...but no, sorry, never done that.
[18:04:30] Ispira: has joined #ruby
[18:05:23] Ispira: I'm picking up Ruby for web dev, I'm just a bit confused about the versioning system.
[18:05:45] baweaver: Hm, I'll have to write up on it later then or find something.
[18:05:51] baweaver: Ispira: which part?
[18:05:58] Ispira: current stable releases are... 2.3.0 2.2.4 and 2.1.9... RubyInstaller gives me the ioptions between 2.4.4 and 2.1.8
[18:06:07] Ispira: I'm not sure where I should start and why
[18:06:26] smathy: Why = because it's the latest stable.
[18:06:29] baweaver: Anything lower is patched for security bugs
[18:06:45] baweaver: The Windows installer will probably take a while to get up to date in any case.
[18:06:50] Ispira: Alright that's what I assumed, Is there any resource on getting it set up with rails on Windows?
[18:07:02] baweaver: If you can avoid it, I would
[18:07:11] smathy: Ispira, you'll find that most big/responsible software projects maintain several versions of their software so that people aren't forced to upgrade just to get important fixes.
[18:07:26] baweaver: ACTION has tried before, and still has nightmares
[18:07:38] Ispira: Alright sounds like I'm using Python instead then.
[18:07:47] baweaver: For the most part Ruby/Rails congregates on Mac and Linux
[18:08:03] smathy: Ispira, ok, have fun.
[18:08:05] baweaver: Too many odd bugs on Windows
[18:08:10] Ispira: I need something that'll work whether I'm on my mac mini, windows partition, or linux partition.
[18:08:19] Ispira: Thanks for the help baweaver and smathy
[18:08:30] Ispira: sorry for wasting your time tho.
[18:08:46] r0b3rt: has joined #ruby
[18:09:15] Ispira: has left #ruby: ("Bye guys!")
[18:09:41] joonty: has joined #ruby
[18:10:04] ramfjord: has joined #ruby
[18:12:17] moos3: has joined #ruby
[18:12:55] nfk|laptop: is it just me or is unicorn slower than rails default webrack?
[18:13:36] nfk|laptop: ACTION yawns
[18:14:23] nfk|laptop: i have been setting up this server for like 10 hours now, mkey?
[18:14:28] bradleyprice: has joined #ruby
[18:14:55] karapetyan: has joined #ruby
[18:15:14] nfk|laptop: why must every single piece of documentation ever be never complete and correct?
[18:15:57] mikecmpbll: has joined #ruby
[18:16:16] [Butch]: has joined #ruby
[18:17:10] tAn: has joined #ruby
[18:17:40] kareeoleez: has joined #ruby
[18:18:11] PedramT: has joined #ruby
[18:19:23] GinoMan2440: has joined #ruby
[18:20:08] Bloomer: has joined #ruby
[18:20:46] SilverKey: has joined #ruby
[18:21:01] ixti: has joined #ruby
[18:21:26] shevy: you don't even read the documentation
[18:21:39] pipework: shevy: That's my job.
[18:21:53] pipework: nfk|laptop: Read the professional level documentation.
[18:21:54] nfk|laptop: like capistrano documentation is hopeless
[18:22:00] nfk|laptop: and i'm not the only one saying that
[18:22:14] pipework: nfk|laptop: Open source, you get what you pay for, sometimes.
[18:22:41] BtcBen: has joined #ruby
[18:22:57] MagePsycho_: has joined #ruby
[18:23:16] nfk|laptop: now, if this passes pre-compilation, i might be out of the woods (and we all know what will happen now)
[18:24:00] nfk|laptop: also, i just noticed i'm slowly running out of free space on my 2 GB microSD card backed rasp
[18:24:31] Ebok: has joined #ruby
[18:24:46] pipework: Just remove your graphical server and all related packages.
[18:26:03] spider-mario: has joined #ruby
[18:27:28] nfk|laptop: pipework, i'm not sure there is one but let's see
[18:27:32] bruno-: has joined #ruby
[18:27:45] nfk|laptop: yep, i don't think this one has X installed
[18:27:58] pipework: Is the pi the server you're installing it onto?
[18:28:00] nfk|laptop: i mean, the bare minimum for a full raspbian is 4 GB
[18:28:10] nfk|laptop: it's raspbian-lite or something
[18:28:11] pipework: How much memory do you have?
[18:28:33] nfk|laptop: 2 GB microSD from my 10yo nokia and 512 MB RAM
[18:28:49] pipework: nfk|laptop: The app you're trying to get up, it's not a rails app, right?
[18:28:55] nfk|laptop: of course it is
[18:29:01] pipework: 512, you'll want a single worker with unicorn.
[18:29:08] pipework: Maybe, maybe two.
[18:29:09] nfk|laptop: i have 3 right now
[18:29:18] pipework: nfk|laptop: How's the memory usage on that?
[18:29:20] nfk|laptop: but, thanks, i'll keep that in mind
[18:29:27] pipework: Is it your app?
[18:29:32] s00pcan: has joined #ruby
[18:29:32] nfk|laptop: i'm still trying to get it deployed via capistrano
[18:29:58] sepp2k: has joined #ruby
[18:29:58] pipework: nfk|laptop: Ah, so then you'll probably be able to monitor as you go. Things can kinda get big and wieldy. What's going on with your capistrano stuff?
[18:30:03] pipework: Got some logs you can gist up?
[18:30:19] nfk|laptop: i'm waiting for it to stop doing stuff
[18:30:22] nfk|laptop: we'll see then
[18:30:56] nfk|laptop: it has printed some red text and some failed messages but it's going on
[18:30:56] baweaver: has joined #ruby
[18:31:01] nfk|laptop: ah, just failed
[18:31:14] nfk|laptop: Mysql2::Error: Access denied for user 'deploy'@'localhost' (using password: YES)
[18:31:21] nfk|laptop: should be working
[18:31:40] pipework: Do you have an environment variable set or the database.yml with a password?
[18:31:51] nfk|laptop: that is, the later
[18:32:06] nfk|laptop: ENV["DB_PASSWORD"]
[18:32:55] nfk|laptop: weird, why is it defined in bash but not irb?
[18:33:09] pipework: nfk|laptop: I think it's supposed to be PGPASSWORD if you're going for the postgres environment variables.
[18:33:13] konr: has joined #ruby
[18:33:19] pipework: http://www.postgresql.org/docs/current/static/libpq-envars.html
[18:33:43] nfk|laptop: i'm already using capistrano and nginx for the first time in my life (successfully, anyway) and unicorn, too
[18:33:46] postmodern: has joined #ruby
[18:33:55] nfk|laptop: i thought i should not push my luck with yet another new software
[18:34:09] JakFrist: has joined #ruby
[18:34:18] pipework: nfk|laptop: We have neat things that help get things all jumpstarted quite often.
[18:34:30] pipework: Like, I'd suggest you to use passenger with nginx.
[18:34:35] nfk|laptop: the issue seems to be that $DB_PASSWORD is set in bash but not irb
[18:34:36] pipework: It's pretty simple and works whale with capistrano.
[18:34:40] noService: has joined #ruby
[18:34:50] nfk|laptop: pipework, thanks, i'll try it a bit later
[18:34:52] pipework: nfk|laptop: How do you set the variable?
[18:35:03] nfk|laptop: in ~/.profile
[18:35:15] pipework: Yeah, that won't get sourced with capistrano, iirc.
[18:35:32] nfk|laptop: but it's the environment it runs in
[18:35:40] nfk|laptop: since it logs in via git as that user
[18:35:49] jackjackdripper: has joined #ruby
[18:35:49] nfk|laptop: and HOME is defined
[18:35:52] nfk|laptop: is there some whitelist?
[18:36:31] nfk|laptop: pipework, i would have used pam authentication but debian being debian obviously is a few years too old for that
[18:37:39] nfk|laptop: and postgres docs did not make much sense regarding use of pam authentication other than adding some worrisome warning even though i had heard that postgres has had that feature for years
[18:37:46] Madplatypus: has joined #ruby
[18:40:16] dionysus69: has joined #ruby
[18:41:53] malconis: has joined #ruby
[18:42:30] tenderlove: has joined #ruby
[18:44:14] Infra-Red: has joined #ruby
[18:47:41] lomex: has joined #ruby
[18:47:51] mfb2: has joined #ruby
[18:48:03] karapetyan: has joined #ruby
[18:49:25] Puffball: has joined #ruby
[18:49:46] mfb2: has joined #ruby
[18:50:45] yfeldblum: has joined #ruby
[18:51:04] CausaMortis: has joined #ruby
[18:51:27] mfb2: has joined #ruby
[18:52:23] nfk|laptop: wtf, the current folder on server contains old database.yml?!!
[18:53:00] bradleyprice: has joined #ruby
[18:54:04] wldcordeiro: has joined #ruby
[18:55:25] sid_fules: has joined #ruby
[18:56:25] ferr: has joined #ruby
[18:57:10] aegis3121: has joined #ruby
[18:57:21] skweek: has joined #ruby
[18:58:17] nfk|laptop: i guess if deployment fails, it does not update the symlink or something
[19:00:32] stupidystupid: has joined #ruby
[19:00:36] BtcBen: has joined #ruby
[19:01:25] bruno-: has joined #ruby
[19:01:27] DynamicMetaFlow: has joined #ruby
[19:02:21] staticfox: has joined #ruby
[19:02:41] malconis: has joined #ruby
[19:05:13] sid_fules: has joined #ruby
[19:06:21] nfk|laptop: pipework, how do i set up a persistent database.yml? stackexchange implied i can just make a shared/config/database.yml but it seems that's not enough
[19:06:36] pipework: nfk|laptop: That's how it works.
[19:07:51] nfk|laptop: i have app/shared/config/database.yml that i copied from the latest version yet it running cap production deploy errors out with no database.yml error message
[19:08:03] nfk|laptop: since i also git mv'ed it to database.yml.sample
[19:08:14] frem_: has joined #ruby
[19:08:59] ramfjord: has joined #ruby
[19:10:25] joonty: has joined #ruby
[19:10:36] mfb2: has joined #ruby
[19:10:57] lomex: has joined #ruby
[19:12:57] rgb-one: has joined #ruby
[19:13:43] Infra-Red: has joined #ruby
[19:14:06] nfk|laptop: okay, that's it, i'm simply committing the DB password, who cares, if anyone gets that deep that they can even attempt to authenticate against the DB server, they probably have extensive access and are probably a single local exploit away from escalation to full root
[19:15:04] bokayio: has joined #ruby
[19:15:09] rgb-one: I am using Middleman and running the server, but JQuery doesn't work. When I inspect a webpage in the browser the lines in the js file read //= require jquery etc. instead of actually requireing the jquery code
[19:15:14] william3: has joined #ruby
[19:15:36] rgb-one: Anyone know what's going on?
[19:15:54] mfb2: has joined #ruby
[19:16:09] karapetyan: has joined #ruby
[19:16:23] Synthead: has joined #ruby
[19:16:42] bradleyprice: has joined #ruby
[19:18:13] nfk|laptop: that's not jquery being broken, that's assets pipeline being broken
[19:18:18] nfk|laptop: why, no idea
[19:18:56] nfk|laptop: you are doing that in application.js, right?
[19:19:17] nfk|laptop: that's the entry point into JS pipeline as far as I know and the only one (afaik) where that magic works
[19:19:29] tubbo: nfk|laptop: #rubyonrails fwiw
[19:19:47] nfk|laptop: that channel is nearly as bad as #php
[19:19:55] tubbo: nfk|laptop: ask better questions
[19:20:05] mdw: has joined #ruby
[19:22:33] Ebok: has joined #ruby
[19:22:56] rgb-one: the name is app.js for my application nfk|laptop
[19:23:25] nfk|laptop: rgb-one, right, angular? you still need application.js where you do your //= require stuff
[19:23:38] nfk|laptop: that or you get to hack into rails assets pipeline
[19:23:55] rgb-one: so the name "application.js" is required?
[19:24:06] yardenbar: has joined #ruby
[19:24:09] rgb-one: Middleman initializes with app.js
[19:24:23] nfk|laptop: ah, no idea then
[19:25:33] rgb-one: maybe I should just include the jquery mobile file in a vendor directory
[19:26:53] baweaver: has joined #ruby
[19:26:53] mfb2: has joined #ruby
[19:27:40] hxegon: has joined #ruby
[19:29:02] Infra-Red: has joined #ruby
[19:29:21] stunder: has joined #ruby
[19:30:10] nobitanobi: has joined #ruby
[19:32:35] mfb2: has joined #ruby
[19:35:30] x77686d: has joined #ruby
[19:35:50] paultreny: has joined #ruby
[19:36:41] Guest21156: has joined #ruby
[19:37:02] mfb2: has joined #ruby
[19:37:18] ramfjord: has joined #ruby
[19:38:45] someish: has joined #ruby
[19:40:29] Brackson: has joined #ruby
[19:40:30] jhack: has joined #ruby
[19:41:48] madgen: has joined #ruby
[19:42:47] poerror: has joined #ruby
[19:43:21] mfb2: has joined #ruby
[19:43:56] gregf: has joined #ruby
[19:44:21] TheWhip: has joined #ruby
[19:44:40] Fabian: has joined #ruby
[19:44:54] stunder: has joined #ruby
[19:46:44] poerror: has left #ruby: ()
[19:47:00] shayan: has joined #ruby
[19:47:20] R\w\C: has joined #ruby
[19:47:33] minimalism: has joined #ruby
[19:48:43] newb123: has joined #ruby
[19:48:46] baweaver: has joined #ruby
[19:49:30] kirun: has joined #ruby
[19:49:48] GodFather: has joined #ruby
[19:50:19] R\w\C: has joined #ruby
[19:51:54] sid_fules: has joined #ruby
[19:51:59] bradleyprice: has joined #ruby
[19:52:05] northrup_: has joined #ruby
[19:53:01] newb123: Hi, I'm new to ruby but have experience in other languages. I'm trying to convert a string to a symbol and compare it, but it fails to match afterwards. https://gist.github.com/anonymous/05a58e30aeaad957bd99398704c2e7a6
[19:53:58] newb123: When I try it out in irb "providers.find" seems to be able to find the provider.. but within the code itself it can't seem to match the symbol. any suggestions?
[19:54:22] Zarthus: print out the output of providers?
[19:54:26] n008f4g_: has joined #ruby
[19:54:38] Zarthus: (and it wouldn't hurt to see box_provider either)
[19:55:23] Zarthus: you made a typo :bhvye != :bhyve
[19:55:43] Zarthus: (I totally missed you commenting the results of @logger.* statements)
[19:55:43] newb123: classic mistake
[19:55:57] dionysus69: has joined #ruby
[19:56:15] Zarthus: sometimes all it takes is an extra pair of eyes
[19:56:17] newb123: well i guess that's why I'm a "newb"
[19:56:31] newb123: thanks a lot
[19:57:51] bruno-: has joined #ruby
[19:59:44] pawnbox: has joined #ruby
[20:00:42] stunder: has joined #ruby
[20:02:58] Ebok: has joined #ruby
[20:05:19] baweaver: has joined #ruby
[20:06:31] tAn: has joined #ruby
[20:06:37] stannard: has joined #ruby
[20:07:03] northrup: has joined #ruby
[20:07:34] northrup: has joined #ruby
[20:07:43] karapetyan: has joined #ruby
[20:08:13] TheWhip: has joined #ruby
[20:08:43] moeabdol: has joined #ruby
[20:08:52] madgen: has joined #ruby
[20:09:17] DoubleMalt: has joined #ruby
[20:10:05] mikecmpbll: has joined #ruby
[20:11:19] mlakewood: has joined #ruby
[20:11:47] mlakewood: Hi all, Does anyone know if you can compose an SQL String literal into an Arel Query?
[20:12:26] joonty: has joined #ruby
[20:12:34] GinoMan2440_: has joined #ruby
[20:13:52] auxbuss: has joined #ruby
[20:14:17] r0b3rt: has joined #ruby
[20:15:36] bronson: has joined #ruby
[20:16:17] stunder: has joined #ruby
[20:16:35] nobitanobi: has joined #ruby
[20:17:07] Dogmabase: has joined #ruby
[20:18:51] loincloth: has joined #ruby
[20:20:49] jenrzzz: has joined #ruby
[20:20:55] MagePsycho_: has joined #ruby
[20:21:05] tAn: has joined #ruby
[20:21:12] stannard: has joined #ruby
[20:22:26] Brackson: has joined #ruby
[20:23:18] jhack: has joined #ruby
[20:23:36] rkoller_: has joined #ruby
[20:24:22] CausaMortis: has joined #ruby
[20:25:01] jaguarmagenta: has joined #ruby
[20:25:18] jhass: puzzle of the day https://eval.in/556513
[20:25:48] nando293921: has joined #ruby
[20:26:00] cdg: has joined #ruby
[20:27:44] smathy: Change to Time.now.to_s
[20:28:37] benzrf: jhass: works on MY end
[20:28:54] Gasher: has joined #ruby
[20:29:04] benzrf: it works if i paste into pry, but not if i paste into ruby -
[20:29:09] renderful: has joined #ruby
[20:29:58] karapetyan: has joined #ruby
[20:30:22] jhass: benzrf: well, let's add https://eval.in/556514 to the game
[20:30:36] smathy: pry forces the .to_s execution in order to display the value in your REPL.
[20:31:00] benzrf: is it fixed once you to_s or something?
[20:31:18] smathy: ACTION is talking to himself
[20:31:22] jhass: so Time delays fetching the local timezone until it's needed for something or what?
[20:31:43] smathy: Seems to be.
[20:31:52] stunder: has joined #ruby
[20:31:56] ramfjord: maybe memoizes the system timezone
[20:32:01] Xeago: has joined #ruby
[20:32:11] lemur: has joined #ruby
[20:32:14] jhass: rather unintuitive behavior IMO
[20:32:15] David27: has joined #ruby
[20:33:01] jhass: jruby gets it right
[20:33:15] smathy: jhass, agreed, stinks.
[20:33:56] smathy: I can't imagine it's intentional, I can't think of a desirable use case for that late execution.
[20:35:01] jhass: rbx shows MRI behavior
[20:35:02] sid_fules: has joined #ruby
[20:37:43] GinoMan2440: has joined #ruby
[20:38:12] Dogmabase: has left #ruby: ()
[20:38:14] neilnorthrop: has joined #ruby
[20:38:43] MagePsycho_: has joined #ruby
[20:39:05] rickmasta: has joined #ruby
[20:39:32] aegis3121: has joined #ruby
[20:47:52] stannard: has joined #ruby
[20:49:00] x77686d: has joined #ruby
[20:49:19] rkazak: has joined #ruby
[20:49:28] GriffinHeart: has joined #ruby
[20:50:18] Gasher: hello, I'm going to create a graph for parabola. can you recommend me a good library for easy graph creation?
[20:52:31] sid_fules: has joined #ruby
[20:52:47] bruno-: has joined #ruby
[20:54:57] bradleyprice: has joined #ruby
[20:55:59] mhoungbo: has joined #ruby
[20:56:45] crdpink: has joined #ruby
[20:56:56] BrunoSaboia: has joined #ruby
[20:57:52] R\w\C: has joined #ruby
[20:58:13] ur5us: has joined #ruby
[20:59:26] bkxd: has joined #ruby
[21:05:10] aufi: has joined #ruby
[21:06:06] MagePsycho_: has joined #ruby
[21:06:42] madgen: has joined #ruby
[21:07:04] sid_fules: has joined #ruby
[21:07:35] Xeago: has joined #ruby
[21:08:35] aegis3121: has joined #ruby
[21:10:02] BSab: has joined #ruby
[21:10:09] sid_fules: has joined #ruby
[21:12:47] stunder: has joined #ruby
[21:13:14] joonty: has joined #ruby
[21:13:27] BSab: has joined #ruby
[21:14:48] binaryplease1: has joined #ruby
[21:15:11] eljimmy: has joined #ruby
[21:15:58] diegoaguilar: has joined #ruby
[21:17:26] sid_fules: has joined #ruby
[21:17:47] al2o3-cr: has joined #ruby
[21:18:45] w1lson: has joined #ruby
[21:20:05] presidentbeef: has joined #ruby
[21:21:40] banister: has joined #ruby
[21:22:18] yfeldblum: has joined #ruby
[21:22:31] nfk|laptop: alright, now i'm annoyed to no end, i removed a foreign_key that was messing things up and now i'm hitting some weirdness that might be a bug
[21:25:23] DoubleMalt: has joined #ruby
[21:25:55] symm-_: has joined #ruby
[21:29:13] tekk: has joined #ruby
[21:32:03] nobitanobi: has joined #ruby
[21:33:08] presidentbeef: has left #ruby: ()
[21:35:45] bkxd: has joined #ruby
[21:38:20] thbounzer: has joined #ruby
[21:39:04] danielpclark: has joined #ruby
[21:39:26] MagePsycho_: has joined #ruby
[21:41:39] hxegon: How do I specify a contract with a nested array of strings? [[String]] doesn't seem to be working.
[21:41:41] geek876: has joined #ruby
[21:43:08] geek876: Hi, I have a string "2016-04-19 22:17:41,079000" I want to convert it into time using strftime. Any help please ? I am very new to ruby. Please note that I have 6 digits depicting Milliseconds, the last three can be ignored
[21:44:37] alexherbo2: has joined #ruby
[21:44:44] Sadin: has joined #ruby
[21:44:56] Puffball: has joined #ruby
[21:45:58] hxegon: geek876 what format do you want to convert it too?
[21:46:03] smathy: geek876, Time.parse
[21:46:40] geek876: hxegon, I want to convert it to date format
[21:46:44] blackgoat: has joined #ruby
[21:47:06] jhass: Time.strptime
[21:47:26] geek876: basically this is for elasticsearch. I am using fluentd and my log-file has got timestamp in this format so i want to convert it into time so i can sort it in elastic search
[21:47:29] swills: has joined #ruby
[21:47:30] smathy: >> Time.parse("2016-04-19 22:17:41,079000")
[21:47:32] ruby[bot]: smathy: # => undefined method `parse' for Time:Class (NoMethodError) ...check link for more (https://eval.in/556550)
[21:47:49] smathy: Heh, I forget !rails - sorry.
[21:48:45] auxbuss: has joined #ruby
[21:48:48] wldcordeiro: has joined #ruby
[21:49:19] jhass: >> require "time"; Time.strptime "2016-04-19 22:17:41,079000", "%F %T"
[21:49:20] ruby[bot]: jhass: # => 2016-04-19 22:17:41 +0000 (https://eval.in/556551)
[21:49:34] geek876: jhass: Thanks
[21:49:42] kareeole_: has joined #ruby
[21:50:01] geek876: jhass: I will have 2016-04-19 22:17:41,079000 in a variable
[21:51:03] jhass: fun part is, it's a T and a . away from being a valid ISO8601 date
[21:51:30] jhass: >> require "time"; Time.iso8601 "2016-04-19 22:17:41.079000"
[21:51:30] smathy: Does that strptime get the subsecs there?
[21:51:31] ruby[bot]: jhass: # => invalid date: "2016-04-19 22:17:41.079000" (ArgumentError) ...check link for more (https://eval.in/556559)
[21:51:45] jhass: smathy: no, that'd need to add a %n or %p, let's see
[21:51:59] nobitanobi: has joined #ruby
[21:52:02] jhass: >> require "time"; Time.strptime "2016-04-19 22:17:41,079000", "%F %T,%N"
[21:52:03] ruby[bot]: jhass: # => 2016-04-19 22:17:41 +0000 (https://eval.in/556560)
[21:52:08] smathy: ACTION is so spoilt with Time.parse - hangs head
[21:52:14] Guest_98762: has joined #ruby
[21:52:18] Guest_98762: Allah is doing
[21:52:22] jhass: thing is, it's a guess
[21:52:27] kareeole_: has joined #ruby
[21:52:30] jhass: strptime doesn't have to guess
[21:52:33] Guest_98762: sun is not doing Allah is doing
[21:52:37] smathy: Sure, but with such an iso-ish string.
[21:52:41] adaedra: !spam Guest_98762
[21:52:41] ruby[bot]: +bb Guest_98762!*@*$#ruby-banned *!*@gateway/web/cgi-irc/kiwiirc.com/x-pzddozpjgblnqjan$#ruby-banned
[21:52:41] ruby[bot]: ruby[bot] kicked Guest_98762: is a bannable offense, see http://ruby-community.com/pages/user_rules
[21:52:56] bruno-: has joined #ruby
[21:53:19] adaedra: Praise the sun.
[21:54:12] kareeoleez: has joined #ruby
[21:57:05] hxegon: 420 praise it. Maybe lord Gwyn will gift me some better contracts.ruby docs :)
[21:57:16] peterhu: has joined #ruby
[21:58:04] johnmilton: has joined #ruby
[21:58:07] sid_fules: has joined #ruby
[21:58:36] ChiefAlexander: has joined #ruby
[22:00:51] thbounzer: has joined #ruby
[22:01:17] hoylemd: has joined #ruby
[22:02:04] rgb-one: has left #ruby: ("Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is")
[22:03:11] geek876: jhass: If i use this https://eval.in/556560, the milliseconds bit will always be zero i guess ?
[22:03:18] Azure: has joined #ruby
[22:03:31] hxegon: alright, it's not [[TypeHere]], it's ArrayOf[ArrayOf[TypeHere]], which seems a bit verbose to me, but whatever.
[22:04:05] Radar: hxegon: what are you on about
[22:04:32] zeroDivisible: has joined #ruby
[22:04:43] jhass: >> require "time"; Time.strptime("2016-04-19 22:17:41,079000", "%F %T,%N").usec # geek876 nope
[22:04:44] ruby[bot]: jhass: # => 79000 (https://eval.in/556572)
[22:04:44] nfk|laptop: that's it, to hell with capistrano
[22:04:53] nfk|laptop: i have wasted like 10 hours on this
[22:04:57] jhass: >> require "time"; Time.strptime("2016-04-19 22:17:41,079000", "%F %T").usec # geek876 with this one however
[22:04:57] hxegon: Radar I realized what contracts are, and that they are probably better than just putting a psuedo code type annotation next to functions :P
[22:04:58] ruby[bot]: jhass: # => 0 (https://eval.in/556573)
[22:06:15] sid_fules: has joined #ruby
[22:07:30] troulouliou_dev: has joined #ruby
[22:10:01] Spami: has joined #ruby
[22:10:01] geek876: require "time"; Time.strptime("2016-04-19 22:17:41,079000", "%F %T,%N").usec sorry about my ignorance but the .usec gives microseconds. I want the complete time with date and time. Essentially converting string to time here really
[22:10:02] UserInneed: has joined #ruby
[22:11:05] Puffball: has joined #ruby
[22:12:00] jhass: >> require "time"; Time.strptime("2016-04-19 22:17:41,079000", "%F %T,%N").class
[22:12:01] ruby[bot]: jhass: # => Time (https://eval.in/556576)
[22:12:10] `derpy: http://ruby-doc.org/core-2.3.0/Time.html
[22:13:41] SilverKey: has joined #ruby
[22:13:54] joonty: has joined #ruby
[22:14:04] jackjackdripper1: has joined #ruby
[22:14:42] jhack: has joined #ruby
[22:18:04] callen92: has joined #ruby
[22:19:35] lomex: has joined #ruby
[22:23:01] geek876: jhass: Thanks. I am moving further with your help. Really appreciate. However, it trows this error now "failed to expand `%Q[#{ require 'time'; Time.strptime(time, "%F %T,%N") }]` error_class=TypeError error="no implicit conversion of Time into String""
[22:23:24] geek876: see my pastebin : pastebin.com/embed_js/DrUtQxAt, it is fluentd config but essentially doing ruby
[22:23:25] ruby[bot]: geek876: 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
[22:23:43] jhass: you shouldn't do require "time"; inline
[22:24:04] jhass: chances are it's already loaded in your environment anyway
[22:25:01] jhass: as for the error message, you pass a Time where a String is expected
[22:25:22] null__: has joined #ruby
[22:25:32] geek876: Let me check
[22:25:54] jaguarmagenta: has joined #ruby
[22:29:03] Caelum: has joined #ruby
[22:29:19] Oog: has joined #ruby
[22:30:22] TheMoonMaster: has joined #ruby
[22:31:21] geek876: sorry, still no joy. The error is gong now but " 2016-04-19 23:28:48,346000 " is getting converted to "2016-04-19 23:27:24 +0100"
[22:32:20] jhass: well, you embed it into a string using #{}, which calls Time#to_s
[22:32:24] jhass: so that's quite expected
[22:33:49] aegis3121: has joined #ruby
[22:34:01] Ebok: has joined #ruby
[22:34:53] s00pcan: has joined #ruby
[22:35:01] aegis3121: has joined #ruby
[22:38:15] Oog: i would like something like coffeescript foo?.bar?.blah()
[22:38:22] Oog: where it only calls if foo exists etc and doesnt crash
[22:38:27] Oog: is there something?
[22:38:35] Oog: instead of foo.bar.blah if foo && foo.bar etc
[22:39:10] yude: has joined #ruby
[22:39:16] Xiti: has joined #ruby
[22:40:24] zenlot6: has joined #ruby
[22:40:30] Oog: since when!?
[22:40:46] al2o3-cr: since man kind
[22:41:09] Oog: o&.asdfasd - SyntaxError: (irb):3: syntax error, unexpected '.'
[22:41:34] al2o3-cr: asdfasd isn't an object my friend
[22:41:35] Oog: oh wait
[22:42:21] Oog: foo=nil; foo&.blah - SyntaxError: (irb):7: syntax error, unexpected '.'
[22:42:39] Oog: i dont think this is it - in coffee script foo?.blah would only try to call blah if foo exists
[22:42:41] Oog: thats what i want
[22:43:02] al2o3-cr: blah isn't an object my friend
[22:43:20] Oog: yes i know...
[22:43:27] Oog: so &. is not what i want
[22:43:37] flashpoint9: has joined #ruby
[22:43:42] Oog: smathy ah.. im using 2.2.2
[22:43:51] smathy: Oog, yeah, is why it's a syntax error.
[22:44:05] Oog: ok so not since mankind :)
[22:44:11] smathy: &. is precisely what you want, but only 2.3
[22:44:22] ramfjord: has joined #ruby
[22:44:22] smathy: Yeah, no idea when al2o3-cr's mankind began.
[22:44:52] al2o3-cr: me neither :P, and i should of asked version :(
[22:45:10] al2o3-cr: ACTION is being silly
[22:46:52] rbennacer: has joined #ruby
[22:47:56] Oog: thanks!
[22:48:44] rbennacer: has joined #ruby
[22:49:21] aibot: has joined #ruby
[22:49:57] tubuliferous: has joined #ruby
[22:50:03] BTRE: has joined #ruby
[22:51:30] ensyde: has joined #ruby
[22:51:56] x77686d: has joined #ruby
[22:52:52] aibot: has joined #ruby
[22:53:38] baweaver: has joined #ruby
[22:54:35] sid_fules: has joined #ruby
[22:55:25] BtcBen: has joined #ruby
[22:56:39] hakunin: has joined #ruby
[22:57:24] dopie: has joined #ruby
[22:58:10] lomex: has joined #ruby
[22:58:34] sgambino: has joined #ruby
[22:58:35] bruno-: has joined #ruby
[22:59:42] idefine: has joined #ruby
[22:59:57] northrup_: has joined #ruby
[23:01:50] symm-: has joined #ruby
[23:04:05] Xiti: has joined #ruby
[23:06:14] ruby-lang578: has joined #ruby
[23:07:19] Weavel: has left #ruby: ()
[23:08:13] Weavel: has joined #ruby
[23:09:11] bkxd: has joined #ruby
[23:10:07] aibot: has joined #ruby
[23:13:26] davedev24: has joined #ruby
[23:14:42] joonty: has joined #ruby
[23:15:45] Xeago: has joined #ruby
[23:16:13] Spami: has joined #ruby
[23:16:28] Puffball: has joined #ruby
[23:17:06] nisstyre: has joined #ruby
[23:18:01] mlakewood: has joined #ruby
[23:18:46] johnmilton: has joined #ruby
[23:19:26] PedramT: has joined #ruby
[23:20:42] Spami: has joined #ruby
[23:20:56] huyderman: has joined #ruby
[23:26:23] idefine_: has joined #ruby
[23:29:15] idefine__: has joined #ruby
[23:30:00] zack6849: has joined #ruby
[23:30:00] zack6849: has joined #ruby
[23:33:21] idefine: has joined #ruby
[23:35:11] idefine_: has joined #ruby
[23:35:21] Puffball: has joined #ruby
[23:35:36] lemur: has joined #ruby
[23:38:28] cdg: has joined #ruby
[23:42:55] epochwolf: has joined #ruby
[23:42:58] rideh: has joined #ruby
[23:44:05] AustinMatherne: has joined #ruby
[23:44:46] staticfox`: has joined #ruby
[23:46:23] RegulationD: has joined #ruby
[23:46:57] Mendenhall: has joined #ruby
[23:47:08] ceej: has joined #ruby
[23:47:17] Edulix: has joined #ruby
[23:47:23] cybrside: has joined #ruby
[23:47:32] eregon: has joined #ruby
[23:47:32] DarkBushido: has joined #ruby
[23:47:32] DarkBushido: has joined #ruby
[23:52:19] rkazak: has joined #ruby
[23:53:52] elifoster: has joined #ruby
[23:59:35] Kamilion: has joined #ruby