« Back to channel list

#ruby - 23 February 2016

« Back 1 day Forward 1 day »
[00:00:21] idefine: has joined #ruby
[00:03:13] tubulife-: has joined #ruby
[00:05:19] RTG`: has joined #ruby
[00:05:50] ur5us: has joined #ruby
[00:07:19] kies^: has joined #ruby
[00:07:50] stevemackinnon: has joined #ruby
[00:12:41] idefine: has joined #ruby
[00:14:40] alem0lars__: haylon, vanilla MinGW
[00:14:51] alem0lars__: I'd like to not use DevKit but MinGW instead
[00:15:14] haylon: are you includign the path to MinGW, and msys?
[00:15:35] haylon: I found that I had to add both bin locations to my PATH in order for certain thigns to work
[00:18:10] stevemackinnon: has joined #ruby
[00:22:00] alem0lars__: haylon, yes.. in fact that executable isn't in those paths
[00:22:04] stevemackinnon: has joined #ruby
[00:22:11] alem0lars__: I have gcc.exe installed in the bin directory of mingw
[00:22:26] alem0lars__: (I also have msys/bin in path but it doesn't have the compiler)
[00:22:51] alem0lars__: the problem is ruby tries to find x86_64-w64-mingw32-gcc.exe and not gcc.exe
[00:22:56] alem0lars__: as far as I understood
[00:23:28] Scripore: has joined #ruby
[00:23:47] haylon: how does DevKit point Ruby at its instance of mingw compilers? Could you possibly almost do the same, but for the MinGW path?
[00:23:49] tulak: has joined #ruby
[00:23:55] haylon: I'm out of ideas basically, lol
[00:25:10] haylon: has left #ruby: ("WeeChat 1.4")
[00:28:09] bronson: has joined #ruby
[00:32:59] centrx: has joined #ruby
[00:34:45] dfinninger: has joined #ruby
[00:34:50] Xeago: has joined #ruby
[00:35:34] TomPeed: has joined #ruby
[00:36:00] ElFerna: has joined #ruby
[00:36:51] Scripore: has joined #ruby
[00:36:58] jeanlinux: has joined #ruby
[00:37:10] jeanlinux: has joined #ruby
[00:39:00] jeanlinux: has joined #ruby
[00:39:11] idefine: has joined #ruby
[00:40:08] nettoweb: has joined #ruby
[00:43:35] charliesome: has joined #ruby
[00:44:10] zapata: has joined #ruby
[00:47:10] wolffles: has joined #ruby
[00:48:59] jfutbol: has joined #ruby
[00:49:06] ElFerna: has joined #ruby
[00:49:13] cabargas: has joined #ruby
[00:49:18] wolffles: how would you call multiple values from a hash
[00:49:26] aupadhye: has joined #ruby
[00:49:27] Scriptonaut: has joined #ruby
[00:50:27] nachoman: has joined #ruby
[00:50:38] Scriptonaut: I need some general advice. I'm writing a game with a ruby (Rack) backend, and a javascript frontend. I have Maps, that are made up of several layers, with each layer being composed of a bunch of images. I need to store each unique image, and I'm not sure the best way to store it. Should I store them as plain files? Should I store them in the database (postgresql)? Should I store them on some kind of cdn
[00:50:44] Scriptonaut: ? I need advice
[00:51:32] Scriptonaut: I would just store them as plain files, but I plan to let people upload their own textures and load their own images
[00:51:33] hahuang65: has joined #ruby
[00:53:16] nachoman: I think you should store that in plain files and store metadata in database
[00:53:32] Scriptonaut: which metadata in particular are you thinking about?
[00:54:22] Mojo_Nixon: has joined #ruby
[00:54:24] nachoman: name, date, I don't know, something that allows you to ensure uniqueness of files
[00:54:42] manveru: wolffles: values?
[00:54:44] nachoman: maybe checksum
[00:54:47] Scriptonaut: ah, good thinking nachoman
[00:55:34] neanderslob: has joined #ruby
[00:55:50] nettoweb: has joined #ruby
[00:56:18] Scriptonaut: nachoman: one last question, where would you store them? A public folder?
[00:56:51] nachoman: in the filesystem, where you want
[00:57:02] wolffles: mm so hash= {a=>1, b=>2 c=>3} and i want to get [1,2,3] using a,b,c with out doing hash[a] 3 times #manveru
[00:57:06] Scriptonaut: oh, forgot I'm not using rails for a minute, haha
[00:57:29] al2o3-cr: >> {a: 1, b: 2, c: 3, d: 4}.values_at(:b, :d) #wolffles
[00:57:40] Scriptonaut: wolffles: hash.map{|k,v| v}
[00:57:52] manveru: wolffles: #values_at
[00:58:44] al2o3-cr: or all values #values
[00:58:58] wolffles: no no values_at is what i needed
[00:59:42] wolffles: there isnt a way to do somehting like hash[:a,:b,:c] ?
[00:59:47] RTG`: has joined #ruby
[01:00:38] manveru: not without redefining Hash#[]
[01:01:24] kuntaminate: has joined #ruby
[01:01:28] kuntaminate: has left #ruby: ()
[01:02:02] BtcBen: has joined #ruby
[01:04:19] kuntaminate: has joined #ruby
[01:04:29] kuntaminate: is ruby a programming language for retards?
[01:04:49] kuntaminate: the people in ##python sent me here :(
[01:05:55] blandflakes: has joined #ruby
[01:09:41] bronson: has joined #ruby
[01:12:49] gaxar77: has joined #ruby
[01:13:17] Scripore: has joined #ruby
[01:18:21] idefine: has joined #ruby
[01:22:19] godzillaenlacasa: has joined #ruby
[01:22:56] Sammitch: has joined #ruby
[01:23:45] Sammitch: is there any friendlier documentation for the mysql gem than http://www.rubydoc.info/gems/mysql/2.9.1/Mysql ?
[01:25:30] elifoster: has joined #ruby
[01:28:14] eregi: has joined #ruby
[01:35:59] _djbkd: has joined #ruby
[01:40:58] sudoubuntu: has joined #ruby
[01:46:08] jfutbol: has joined #ruby
[01:49:35] nfk: has joined #ruby
[01:49:40] veloutin: has joined #ruby
[01:51:49] mrmargolis: has joined #ruby
[01:52:22] theRealAlexz: has joined #ruby
[01:54:05] rbennacer: has joined #ruby
[01:57:42] beanHolez: has joined #ruby
[01:58:59] sankaber: has joined #ruby
[01:59:28] aadam21: has joined #ruby
[02:03:42] beanHolez: has joined #ruby
[02:07:39] TomPeed: has joined #ruby
[02:09:06] Mdrz_92: has joined #ruby
[02:09:11] montyboy: has joined #ruby
[02:09:47] kirillzh: has joined #ruby
[02:10:07] baweaver: has joined #ruby
[02:13:55] coffeecupp: has joined #ruby
[02:14:29] dcunit3d: has joined #ruby
[02:15:09] drale2k: i want to send back to a GPS sensor via socket a "yes", via "01". The docs say "if yes server will reply to the module 01 if not 00. Note that confirmation should be sent as binary packet."
[02:16:00] drale2k: i have tried all possible combinations but i can't figure out what the right format is. It should be client.print "\x01" but this doesn't work
[02:16:25] dopamean_: has joined #ruby
[02:16:36] drale2k: any idea what i am doing wrong? I am doing this with a TCPServer
[02:17:05] toretore: drale2k: link to docs?
[02:18:09] drale2k: toretore: It's a PDF. I can copy the section into a gist if you prefer that http://bit.ly/1OrmI9P
[02:18:19] drale2k: it's a huge link so i shortened it
[02:18:20] bronson: has joined #ruby
[02:19:06] drale2k: On Page 7 -> Communication with server
[02:19:47] eregi: has joined #ruby
[02:20:47] mdih: has joined #ruby
[02:22:39] toretore: drale2k: try "\x00\x01"
[02:22:51] zapata: has joined #ruby
[02:23:08] RegulationD: has joined #ruby
[02:23:10] mdih: has joined #ruby
[02:23:36] drale2k: toretore: ok, will have to wait ~ min for the next GPS packet
[02:23:55] drale2k: so that would be 0001 instead of 01 right ?
[02:25:04] glacius: has joined #ruby
[02:25:38] terminalrecluse: has joined #ruby
[02:26:40] toretore: drale2k: it depends on what you mean by 00 and 01
[02:26:56] ljames: has joined #ruby
[02:27:18] toretore: >> "\x00\x01".to_i(2)
[02:27:55] toretore: >> "\x00\x01".bytes.map{|b| b.to_s(2) }
[02:28:02] drale2k: toretore: "\x00\x01".to_i(2) and "\x01".to_i(2) both output 0
[02:28:34] drale2k: hm k, so that outputs "0", and "1"
[02:29:03] al2o3-cr: why not just #bytes
[02:29:04] drale2k: so with \x01 i was sending just "1" instead of "01"
[02:29:16] bnagy: afaik the most foolproof way to do that is using binwrite
[02:29:22] bnagy: but print should work
[02:29:28] benlieb: has joined #ruby
[02:29:41] toretore: drale2k: the docs aren't terribly clear
[02:29:50] drale2k: i have never done anything like this, this confuses the shi** out of me
[02:29:57] toretore: it could expect you to respond with an avl packet too
[02:30:04] gizmore: has joined #ruby
[02:30:06] mdih: has joined #ruby
[02:30:53] preyalone: has joined #ruby
[02:31:20] drale2k: toretore: just got a GPS send and it doesn't work again. It keeps sending the IMEI again and again
[02:31:27] arlek: has joined #ruby
[02:31:31] drale2k: because it doesn't get the "yes" response it wants hm
[02:31:43] mdih: has joined #ruby
[02:32:05] bnagy: it looks like everything gets sent in this AVL packet format
[02:32:57] bnagy: and the data in that is a data array
[02:34:14] mdih: has joined #ruby
[02:34:20] drale2k: when i use the app "PacketSender" to test the server response, i get back 2 responses. Once time the "01" and then another response which is empty
[02:34:24] drale2k: is this expected?
[02:34:55] bnagy: that's probably an artifact of the way you're receiving
[02:35:14] MystBlu: has joined #ruby
[02:35:21] mdih: has joined #ruby
[02:35:35] bnagy: can you sniff the comms from the thing you're trying to impersonate?
[02:35:58] drale2k: this is what the resp looks like http://cl.ly/1u2x293L1p1w
[02:36:06] drale2k: it's jsut a test server so the IP doesn't bother me
[02:36:16] mdih: has joined #ruby
[02:36:18] drale2k: bnagy: i don't have the GPS with me, it is at a friends house
[02:36:26] MystBlu: has left #ruby: ("Leaving")
[02:36:34] sankaber: has joined #ruby
[02:36:47] bnagy: my guess is the data is \x08\x01\x01\x01
[02:37:20] bnagy: and you need to frame it in the TCP packet as described
[02:38:03] bnagy: \x00\x00\x00\x00\x04 [data above] [2 byte crc]
[02:38:54] astrobunny: has joined #ruby
[02:38:54] bnagy: I think the app you are looking at is parsing the raw
[02:39:09] drale2k: this is the code i use atm https://gist.github.com/drale2k/9c038a9472fcaee541bc
[02:39:16] bnagy: which is why you only see \x00\x01
[02:39:36] suffice: has joined #ruby
[02:40:39] duckpuppy: has joined #ruby
[02:41:24] bnagy: if you have this packetsender app maybe you can sniff the wire and see the raw response with tcpdump or wireshark or something
[02:42:39] ensyde_: has joined #ruby
[02:44:50] suffice: has joined #ruby
[02:45:48] aadam21: has joined #ruby
[02:46:18] drale2k: bnagy: the raw server response?
[02:46:43] arlek_: has joined #ruby
[02:46:43] bricker: has joined #ruby
[02:47:44] arlek__: has joined #ruby
[02:49:26] KensoDev: has joined #ruby
[02:50:16] bnagy: whichever side you're trying to impersonate
[02:51:09] DmitryBochkarev: has joined #ruby
[02:53:25] sucks: has joined #ruby
[02:53:33] rbennacer: has joined #ruby
[02:53:51] TomPeed: has joined #ruby
[02:56:25] griffindy: has joined #ruby
[02:59:31] al2o3-cr: drale2k: s.send ["01"].pack("H*"), 0 # this should work, god knows why its not doing :(
[03:00:26] goodcodeguy: has joined #ruby
[03:00:28] william3: has joined #ruby
[03:03:31] benlieb_: has joined #ruby
[03:04:13] aadam21: has joined #ruby
[03:04:43] devbug: has joined #ruby
[03:05:15] arlek_: has joined #ruby
[03:06:37] nisstyre: has joined #ruby
[03:07:21] arlek: has joined #ruby
[03:08:38] arlek__: has joined #ruby
[03:08:59] HalcyonicStorm: has joined #ruby
[03:09:55] LoneHerm_: has joined #ruby
[03:10:19] arlek_: has joined #ruby
[03:11:09] ur5us_: has joined #ruby
[03:14:19] recycle: has joined #ruby
[03:15:16] mattwildig: has joined #ruby
[03:15:39] recycle: has joined #ruby
[03:19:34] sudoubuntu: has joined #ruby
[03:19:59] elifoster: has joined #ruby
[03:20:40] benlieb: has joined #ruby
[03:24:47] sneakerhax: has joined #ruby
[03:25:18] charliesome: has joined #ruby
[03:25:49] arlek__: has joined #ruby
[03:26:08] ur5us: has joined #ruby
[03:29:29] bronson: has joined #ruby
[03:35:19] Icey: has joined #ruby
[03:38:41] codecop: has joined #ruby
[03:39:29] sankaber: has joined #ruby
[03:41:32] quazimodo: has joined #ruby
[03:43:01] jeanlinux: has joined #ruby
[03:44:10] Xeago: has joined #ruby
[03:44:21] sankaber: has joined #ruby
[03:45:51] drivvel: has joined #ruby
[03:49:07] howdoi: has joined #ruby
[03:49:51] beanHolez: has joined #ruby
[03:50:53] DmitryBochkarev: has joined #ruby
[03:51:24] blackgoat: has joined #ruby
[03:53:54] mattwildig: has joined #ruby
[03:55:05] rbennacer: has joined #ruby
[03:55:44] snath: has joined #ruby
[03:55:59] snath: has left #ruby: ()
[03:56:02] cabargas: has joined #ruby
[03:56:15] dcunit3d: has joined #ruby
[03:56:53] aadam21: has joined #ruby
[03:58:01] devbug: has joined #ruby
[04:02:15] Mio-chan: has joined #ruby
[04:03:17] eregi: has joined #ruby
[04:04:22] bb010g: has joined #ruby
[04:04:27] bricker: has joined #ruby
[04:05:38] jud: has joined #ruby
[04:05:38] jud: has joined #ruby
[04:07:15] zast: has joined #ruby
[04:07:16] krz: has joined #ruby
[04:07:28] ylluminarious: has joined #ruby
[04:11:11] rohit: has joined #ruby
[04:11:32] ylluminarious: has joined #ruby
[04:11:44] fedexo: has joined #ruby
[04:13:19] Flakes: has joined #ruby
[04:15:42] htmldrum: has joined #ruby
[04:16:45] sucks: has joined #ruby
[04:16:52] braincrash: has joined #ruby
[04:19:24] nando293921: has joined #ruby
[04:19:46] fedexo: has joined #ruby
[04:19:47] CloCkWeRX1: has joined #ruby
[04:22:02] elifoster: has joined #ruby
[04:23:51] gix: has joined #ruby
[04:26:38] RegulationD: has joined #ruby
[04:28:23] gaxar77: has joined #ruby
[04:28:55] pawnbox: has joined #ruby
[04:29:03] astrobunny: has joined #ruby
[04:33:31] rohit: has joined #ruby
[04:33:55] kies^: has joined #ruby
[04:38:05] swampfox: has joined #ruby
[04:40:09] ReK2: has joined #ruby
[04:40:09] ReK2: has joined #ruby
[04:40:32] pdoherty: has joined #ruby
[04:42:17] benlieb: has joined #ruby
[04:44:15] jeanlinux: has joined #ruby
[04:44:15] gizless: has joined #ruby
[04:44:50] RahulT: has joined #ruby
[04:48:23] benlieb: has joined #ruby
[04:49:49] beanHolez: has joined #ruby
[04:51:59] duncannz: has joined #ruby
[04:54:47] darkf_: has joined #ruby
[04:55:26] speaking1ode: has joined #ruby
[04:55:34] perturbation: has joined #ruby
[04:55:39] rbennacer: has joined #ruby
[04:58:08] benlieb: has joined #ruby
[04:58:16] uglybandersnatch: has joined #ruby
[04:59:13] hxegon: has joined #ruby
[05:00:09] motherfq: has joined #ruby
[05:01:54] _djbkd: has joined #ruby
[05:02:04] aadam21: has joined #ruby
[05:03:35] krzkrz: has joined #ruby
[05:04:11] htmldrum: has joined #ruby
[05:04:58] IrishGringo: has joined #ruby
[05:06:34] sgambino: has joined #ruby
[05:07:42] nando293921: has joined #ruby
[05:08:21] pawnbox: has joined #ruby
[05:08:48] Don_John_: has joined #ruby
[05:09:11] baweaver: has joined #ruby
[05:11:31] Coldblackice: has joined #ruby
[05:15:56] eregi: has joined #ruby
[05:18:33] adgtl: has joined #ruby
[05:19:57] postmodern: has joined #ruby
[05:21:03] benlieb: has joined #ruby
[05:21:34] davasaurous: has joined #ruby
[05:21:44] benlieb_: has joined #ruby
[05:23:07] icarus: has joined #ruby
[05:26:35] Scripore: has joined #ruby
[05:27:44] hxegon: has joined #ruby
[05:29:33] bronson: has joined #ruby
[05:32:26] ayonkhan: has joined #ruby
[05:34:21] arlek__: has joined #ruby
[05:36:54] postmodern: has joined #ruby
[05:37:57] beanHolez: has joined #ruby
[05:39:41] jfutbol: has joined #ruby
[05:40:33] phredus: has joined #ruby
[05:41:04] skade: has joined #ruby
[05:42:23] griffindy: has joined #ruby
[05:43:53] azure32: has joined #ruby
[05:50:14] phredus_: has joined #ruby
[05:51:51] postmodern: has joined #ruby
[05:52:54] postmodern: has joined #ruby
[05:53:36] postmodern: has joined #ruby
[05:58:18] znz_jp: has joined #ruby
[05:58:51] bricker: has joined #ruby
[05:58:56] tvw: has joined #ruby
[05:59:53] phredus: has joined #ruby
[06:00:59] sdwrage: has joined #ruby
[06:02:42] intrigueD: has joined #ruby
[06:05:14] _mak: has joined #ruby
[06:07:37] skweek: has joined #ruby
[06:08:33] phredus: has joined #ruby
[06:12:04] sauvin: has joined #ruby
[06:14:37] dcunit3d: has joined #ruby
[06:16:48] charlemagne: has joined #ruby
[06:23:33] jennye: has joined #ruby
[06:24:52] jennye: has joined #ruby
[06:26:55] jennye: has joined #ruby
[06:27:16] konsolebox: has joined #ruby
[06:27:55] jennye: has joined #ruby
[06:29:01] LoneHerm_: has joined #ruby
[06:29:31] jennye: has left #ruby: ()
[06:29:37] dopie: has joined #ruby
[06:29:56] aadam21: has joined #ruby
[06:30:02] benlieb: has joined #ruby
[06:30:25] jennye: has joined #ruby
[06:30:43] mattwildig: has joined #ruby
[06:31:09] bronson: has joined #ruby
[06:36:59] lxsameer: has joined #ruby
[06:37:00] baweaver: mi español es no bueno, comprende ingles? Alguien es más fácil en ingles
[06:38:53] sami: has joined #ruby
[06:40:40] ljames: has joined #ruby
[06:40:52] shevy: mi gato es un perro
[06:42:26] baweaver: mi pantalones es enfuego
[06:43:10] skweek: has joined #ruby
[06:44:39] mozzarella: yo llevo una falda roja
[06:45:20] millerman: has joined #ruby
[06:45:28] jeanlinux: has joined #ruby
[06:46:24] baweaver: eso es suficiente por ahora, si desea continuar, pase a #ruby-offtopic
[06:46:33] aganov: has joined #ruby
[06:48:56] shevy: a multilingual beaver
[06:49:41] baweaver: 私は言語学習を楽しみます
[06:52:16] Tempesta: has joined #ruby
[06:52:26] charliesome: has joined #ruby
[06:54:13] flughafen: you're multilingual eater of fish
[06:55:58] TheBrayn: beavers do not eat fish I think
[06:56:01] JDiPierro: has joined #ruby
[06:57:18] kmckelvin: has joined #ruby
[06:57:58] pdoherty: has joined #ruby
[06:58:10] baweaver: wir bevorzugen Holz
[07:00:20] Ox0dea: Watashi no supasuto wa doko desu ka.
[07:01:06] flughafen: where is my super suit
[07:01:19] Ox0dea: Well done.
[07:01:25] eam: atwhay'say upyay ubyray
[07:01:50] baweaver: oi, stop romanizing
[07:02:00] Ox0dea: Romanizer, romanizer.
[07:02:09] baweaver: you're a romanizer
[07:02:51] baweaver: oh, romanizer, oh
[07:03:04] baweaver: you;re a romanizer baby
[07:03:53] baweaver: and that's the last you'll ever hear me paraphrasing Britney Spears
[07:04:01] flughafen: lord baweaver won a hackathon, have you ever won a hackathon Ox0dea
[07:04:20] eam: ruby wasn't built in a day
[07:04:29] baweaver: Javascript was in a week
[07:04:31] lsmola: has joined #ruby
[07:04:35] eam: it shows
[07:04:51] baweaver: then again so was LISP
[07:05:20] eam: lots of insipid, stupid parenthesis
[07:05:47] baweaver: ACTION likes Clojure and LISP
[07:06:00] auzty: has joined #ruby
[07:06:06] baweaver: Then again I also like Haskell you with a grain of salt there
[07:08:34] Ox0dea: Brendan wanted Scheme! :/
[07:08:40] Ox0dea: And he secretly got it. :)
[07:08:44] lurch_: has joined #ruby
[07:08:50] Ox0dea: All you need is love, where love is defined to be first-class functions.
[07:09:15] baweaver: Ox0dea: it was his scheme all along
[07:09:22] Ox0dea: What a racket!
[07:09:25] baweaver: he just wanted a little clojure in the end though
[07:09:26] Lildirt: has joined #ruby
[07:09:51] Garo_: I'm having trouble setting up a really simple sinatra+puma+rack server: https://gist.github.com/garo/c5955445b849f79e18bc when I try to curl http://localhost:8080/hello it just responds an empty reply from the server. any ideas what I'm doing wrong?
[07:09:53] baweaver: You all are always first-class to me <3
[07:10:25] baweaver: ACTION reads back on Sinatra
[07:10:44] ur5us: has joined #ruby
[07:11:02] baweaver: you sure that Sinatra is running 8080?
[07:11:03] jfutbol: has joined #ruby
[07:11:13] baweaver: seems to default to 4567
[07:11:49] speaking1ode: has joined #ruby
[07:12:34] Ox0dea: But Puma defaults to 8080.
[07:12:43] baweaver: fair, skimming docs
[07:12:46] Ox0dea: Garo_: Maybe try listening on port 6323.5?
[07:12:48] baweaver: not immediately familiar
[07:13:02] eregi: has joined #ruby
[07:13:54] Ox0dea: Fractional ports would've been... interesting.
[07:14:30] baweaver: dibs on 9.75
[07:15:34] yfeldblum: has joined #ruby
[07:15:52] Garo_: pretty much all examples are based on using a rackup .ru file but as I'm going to embed the web server into my existing app I don't see why I should use a .ru file to start it
[07:17:09] e4xit_: has joined #ruby
[07:17:13] Garo_: ah. never mind. I had a dead port forwarding in the port 8080, which was the default what Puma wanted to use, but it didn't show any errors that the port would already be reserved
[07:17:19] Garo_: must be a morning :(
[07:19:04] baweaver: well off to bed and Fire Emblem for me, 'night
[07:19:54] xpt: Garo_: Can't reproduce your error
[07:20:23] Garo_: xpt: thanks for trying. It turned up to be my fault as I tried to used an already reserved port
[07:20:43] xpt: Garo_: try to get http://localhost:8080/ It should reply "Sinatra can't find any rule for / try to add get '/' 'Hello World' end"
[07:21:19] weemsledeux: has joined #ruby
[07:22:48] S1kx: has joined #ruby
[07:23:44] mark3: has joined #ruby
[07:23:53] Bugboy1028: has joined #ruby
[07:26:38] moeabdol: has joined #ruby
[07:26:54] jeanlinux: has joined #ruby
[07:27:16] jeanlinux: has joined #ruby
[07:35:18] mhoungbo: has joined #ruby
[07:35:39] charlemagne: has joined #ruby
[07:35:45] mondok: has joined #ruby
[07:38:44] Lildirt: has joined #ruby
[07:42:47] beanHolez: has joined #ruby
[07:43:20] firstdayonthejob: has joined #ruby
[07:43:53] mdih: has joined #ruby
[07:44:29] mdih: has joined #ruby
[07:45:11] Xeago: has joined #ruby
[07:45:16] mdih: has joined #ruby
[07:46:00] Mon_Ouie: has joined #ruby
[07:51:23] tAn: has joined #ruby
[07:51:46] yfeldblum: has joined #ruby
[07:51:52] blackgoat: has joined #ruby
[07:52:21] symm-: has joined #ruby
[07:52:48] flughafen: has joined #ruby
[07:53:50] quazimodo: has joined #ruby
[07:54:47] kirillzh: has joined #ruby
[07:55:43] pawnbox: has joined #ruby
[07:58:43] gce: has joined #ruby
[07:59:54] aadam21: has joined #ruby
[07:59:56] troulouliou_div2: has joined #ruby
[07:59:58] william3: has joined #ruby
[08:00:32] LoneHermit: has joined #ruby
[08:00:56] vondruch_: has joined #ruby
[08:02:28] gce: has joined #ruby
[08:03:25] shredding: has joined #ruby
[08:03:32] gce: has joined #ruby
[08:05:06] roscoeswetsuit: has joined #ruby
[08:07:55] roscoeswetsuit: has left #ruby: ()
[08:10:30] aufi: has joined #ruby
[08:10:30] skade: has joined #ruby
[08:10:50] jas02: has joined #ruby
[08:11:03] deathbynumb3rs: has joined #ruby
[08:11:10] Macaveli: has joined #ruby
[08:11:43] deathbynumb3rs: has left #ruby: ()
[08:12:50] steffkes: has joined #ruby
[08:13:21] atmosx: has joined #ruby
[08:13:34] gce: has joined #ruby
[08:14:10] rippa: has joined #ruby
[08:16:14] solars: has joined #ruby
[08:16:56] pawnbox: has joined #ruby
[08:17:18] ljames: has joined #ruby
[08:18:41] gce: has joined #ruby
[08:18:43] DmitryBochkarev: has joined #ruby
[08:21:40] araujo: has joined #ruby
[08:22:03] rdark: has joined #ruby
[08:22:38] baweaver: has joined #ruby
[08:26:29] flughafen: hey adaedra
[08:26:44] last_staff: has joined #ruby
[08:27:14] adaedra: Wie geht's, flughafen?
[08:28:57] anisha: has joined #ruby
[08:30:18] Xeago: has joined #ruby
[08:31:37] mattwildig: has joined #ruby
[08:31:52] adaedra: Gut, danke
[08:32:53] victorzimmer: has joined #ruby
[08:33:03] jeanlinux: has joined #ruby
[08:33:27] tAn: has joined #ruby
[08:34:28] bronson: has joined #ruby
[08:35:05] victorzimmer: has joined #ruby
[08:36:42] victorzimmer: has joined #ruby
[08:37:32] kmckelvin: has joined #ruby
[08:37:52] victorzimmer: has joined #ruby
[08:39:36] flughafen: was machst du jetzt
[08:41:28] adaedra: I'm at work, doing work things
[08:41:53] SCHAAP137: has joined #ruby
[08:42:19] xpt: What work things require idling on IRC? :)
[08:43:04] flughafen: ruby is so easy and effecient i code for 4 minutes a day!
[08:44:03] aweis: has joined #ruby
[08:44:34] xpt: flughafen: Do you have some copyrights on that sentence or can I use it at work aswell?
[08:45:04] mikecmpbll: has joined #ruby
[08:45:10] victorzimmer: has joined #ruby
[08:45:14] flughafen: xpt: I opensource all the things! viva le france!
[08:45:41] xpt: merci beaucoup :)
[08:46:11] adaedra: coucou xpt
[08:46:26] victorzimmer: has joined #ruby
[08:47:05] fontain: has joined #ruby
[08:47:33] victorzimmer: has joined #ruby
[08:48:25] Hounddog: has joined #ruby
[08:49:40] whiteline: has joined #ruby
[08:49:58] xpt: adaedra: Je suis Polonais. Mon francais est pas bon. (Woohoo, I've written 2 sentences in French without looking at dictionary!)
[08:53:22] edwinvdgraaf: has joined #ruby
[08:53:50] mlehrer: has joined #ruby
[08:53:58] DmitryBochkarev: has joined #ruby
[08:54:16] flughafen: bonjour! i've written one word of french without looking at a dictionary
[08:54:37] Hounddog: has joined #ruby
[08:54:55] yardenbar: has joined #ruby
[08:55:05] ljames: has joined #ruby
[08:55:38] adaedra: xpt: that looks rather correct, congrats.
[08:57:34] mikecmpbll: has joined #ruby
[08:59:05] laith: has joined #ruby
[09:00:00] lxsameer: has joined #ruby
[09:00:01] marr: has joined #ruby
[09:02:02] vondruch: has joined #ruby
[09:04:43] eregi: has joined #ruby
[09:06:29] jeanlinux: has joined #ruby
[09:08:02] sepp2k: has joined #ruby
[09:08:23] cyclonis: has joined #ruby
[09:08:34] xpt: adaedra: Thank you. I always find it tricky in french that you write something different than you say. It's same as english "ghoti" :)
[09:09:01] adaedra: Write something different than you say?
[09:10:25] aadam21: has joined #ruby
[09:10:46] xpt: yep. you use different writing rules and different speaking rules. In Polish you read exactly what you've written. You probably don't see it because you are native speaker
[09:11:34] adaedra: You have an example?
[09:11:39] tulak: has joined #ruby
[09:12:02] Ox0dea: I'm sorry, the silent Xs are silly.
[09:12:11] gigetoo: has joined #ruby
[09:12:17] adaedra: Ah, those.
[09:12:21] jfutbol: has joined #ruby
[09:12:34] adaedra: Ok, I see what you mean.
[09:13:00] vondruch: has joined #ruby
[09:13:14] chridal: has joined #ruby
[09:13:56] blaxter: has joined #ruby
[09:16:00] william3: has joined #ruby
[09:17:35] laith: has joined #ruby
[09:18:00] skade: has joined #ruby
[09:18:28] xpt: adaedra: You naver read "h" in the beginning and "r" "e" "x" on the end of words. You connect words skipping some letters. I still remember that i didn't understood when I've first heard someone read "Antoine de Saint-Exupéry" name in french
[09:18:31] skweek: has joined #ruby
[09:18:48] adaedra: Yeah, silent letters
[09:19:51] xpt: OK, I got another call from my work, I guess I'll have to go out and help them, cause those phone calls are getting disturbing...
[09:20:10] xpt: See you later (If I'll manage to connnect from work)
[09:20:17] Gnut: has joined #ruby
[09:21:42] william3: has joined #ruby
[09:30:27] LoneHerm_: has joined #ruby
[09:30:53] charlemagne: has joined #ruby
[09:31:15] aadam21: has joined #ruby
[09:31:31] coffeecupp: has joined #ruby
[09:34:32] kalopsian: has joined #ruby
[09:36:26] devbug: has joined #ruby
[09:37:45] sandstrom: has joined #ruby
[09:40:36] pandaant: has joined #ruby
[09:40:46] Pumukel: has joined #ruby
[09:44:04] Zai00: has joined #ruby
[09:44:14] snowy: has joined #ruby
[09:47:42] motherfq: has joined #ruby
[09:50:39] Pumukel: has joined #ruby
[09:51:57] aadam21: has joined #ruby
[09:52:04] f4cl3y: has joined #ruby
[09:53:45] platzhirsch: has joined #ruby
[09:58:31] aweis: has joined #ruby
[09:58:36] joonty: has joined #ruby
[09:58:36] bruce_lee: has joined #ruby
[09:58:36] bruce_lee: has joined #ruby
[09:59:20] charlemagne: has joined #ruby
[10:03:27] evidex: has joined #ruby
[10:05:34] RealMarc: has joined #ruby
[10:05:41] nettoweb: has joined #ruby
[10:06:51] feyruz: has joined #ruby
[10:08:49] brijesh: has joined #ruby
[10:13:08] dlitvak: has joined #ruby
[10:13:59] jfutbol: has joined #ruby
[10:14:16] blackms: has joined #ruby
[10:15:26] devbug: has joined #ruby
[10:17:09] ElFerna: has joined #ruby
[10:19:53] platzhirsch: has left #ruby: ()
[10:25:30] Xeago: has joined #ruby
[10:26:41] Anderson69s: has joined #ruby
[10:27:26] Gnut: has joined #ruby
[10:29:12] aufi: has joined #ruby
[10:29:16] pawnbox: has joined #ruby
[10:29:53] xfbs: has joined #ruby
[10:30:04] laith: has joined #ruby
[10:31:14] jeanlinux: has joined #ruby
[10:32:17] skweek: has joined #ruby
[10:32:28] mattwildig: has joined #ruby
[10:33:37] skweek: has joined #ruby
[10:33:42] aadam21: has joined #ruby
[10:33:50] lipoqil: has joined #ruby
[10:34:50] pawnbox: has joined #ruby
[10:36:45] bronson: has joined #ruby
[10:38:07] william3: has joined #ruby
[10:47:47] BaroMeter: has joined #ruby
[10:48:56] motherfq: has joined #ruby
[10:50:43] evidex: has joined #ruby
[10:54:52] codecop: has joined #ruby
[10:59:25] trinaldi: has joined #ruby
[11:00:51] Polysics: has joined #ruby
[11:01:30] alem0lars__: has joined #ruby
[11:04:05] MadWasp: has joined #ruby
[11:05:08] BaroMeter: has joined #ruby
[11:05:12] charlemagne: has joined #ruby
[11:05:17] MadWasp: Hey guys, I’m having some slight problems with Process.spawn, Process.spawn(‚EXAMPLE=b ./do_something >> some/log‘) actually spawns a wrapper process with ‚sh -c EXAMPLE=b ./do_something >> some/log‘ so Process.spawn returns the PID of that wrapper instead of the actual pid of ./do_something. How can i fix this behavior?
[11:07:39] adaedra: 'EXAMPLE=b exec ./do_something'
[11:07:58] adaedra: this way, your do_something process will replace the sh process
[11:08:06] wmdrossard: has joined #ruby
[11:08:43] MadWasp: it’s actually something like bundle exec xyz, so it would be Process.spawn(‚EXAMPLE=b exec bundle exec xyz >> some/log‘)?
[11:08:54] dlitvak: has joined #ruby
[11:09:05] adaedra: exec is a shell command that tells it to replace current process
[11:09:36] MadWasp: alright, gonna try that
[11:09:37] adaedra: since you're using one arg form of Process.spawn, it uses a shell to run your command (and you need it, for EXAMPLE=b and >> some/log to work)
[11:09:40] manveru: MadWasp: what kind of quotes are that?
[11:09:48] MadWasp: my irc client does that, dunno why
[11:09:52] terlar: has joined #ruby
[11:10:32] manveru: anyway, if you pass the executable path directly, you'll get the pid of the process, not the shell
[11:10:44] MadWasp: adaedra, so i could use the multi option variant of Process.spawn to get rid of this behavior, too?
[11:10:47] manveru: also, see Open3 in stdlib
[11:11:12] adaedra: MadWasp: yes, but you'll loose shell interpretation, so you would have to do the redirect and ENV change yourself.
[11:11:39] manveru: spawn takes an env hash and redirects
[11:11:46] manveru: it has a shitton of options :)
[11:11:53] adaedra: ah, maybe yes
[11:12:00] adaedra: I don't have the doc right now, let's see
[11:12:07] adaedra: &ri Process.spawn
[11:12:07] `derpy: http://ruby-doc.org/core-2.3.0/Process.html#method-c-spawn
[11:12:19] cyclonis: has joined #ruby
[11:12:26] MadWasp: Process.spawn({‚EXAMPLE‘ => ‚b‘}, ‚./do_something‘, :out => ‚/some/log‘) ?
[11:12:49] manveru: pretty much, yeah
[11:12:51] adaedra: Those quotes.
[11:12:54] MadWasp: haha, sorry
[11:13:12] MadWasp: i don’t have those in my source code, don’t worry :P
[11:13:17] adaedra: also, `:out => '/some/log'` => `out: '/some/log'`
[11:13:35] MadWasp: oh yeah, just copied that from the docs
[11:14:06] MadWasp: somehow ended up in the 1.9.3 docs
[11:14:11] adaedra: both are technically correct
[11:14:33] manveru: the last major change to spawn was around 1.9.2 i think
[11:14:53] cgfbee: has joined #ruby
[11:15:04] manveru: can't remember ^^;
[11:15:24] jfutbol: has joined #ruby
[11:16:18] Garo_: is it possible to use Sinatra in a such way that assuming I have an instance of a Sinatra::Base class that I would add routes dynamically to that instance? The normal Sinatra way is to use the get/post etc singleton class commands, but I want to do that dynamically outside from that class...
[11:16:39] platzhirsch: has joined #ruby
[11:17:39] moeabdol: has joined #ruby
[11:18:13] trosborn: has joined #ruby
[11:19:12] norc: has joined #ruby
[11:19:36] MadWasp: manveru, adaedra, thanks guys, that worked :)
[11:22:47] kalopsian: has joined #ruby
[11:24:15] Garo_: here's an example on what I want to do: https://gist.github.com/garo/e4f47ecfbf62ecedc066 This doesn't work because get-method isn't an instance of the SinatraApp (nor Sinatra::Base) but instead an instance of Sinatra::Base singleton class
[11:24:42] allcentury: has joined #ruby
[11:25:05] cpup: has joined #ruby
[11:26:26] Ox0dea: Garo_: app = Class.new(Sinatra::Base); app.get(...)
[11:28:43] Garo_: Ox0dea: thanks! that indeed did work :)
[11:28:53] Ox0dea: Garo_: Hooray! :)
[11:29:05] Ox0dea: It's kinda sketchy, though?
[11:29:19] Garo_: seems I still have some work to do before I fully understand Ruby metaprogramming =)
[11:29:31] Ox0dea: This is just bog-standard inheritance, really.
[11:29:32] Garo_: Ox0dea: it works for my case just fine =)
[11:29:46] quazimodo: has joined #ruby
[11:31:01] nachoman: has joined #ruby
[11:31:18] lxsameer: has joined #ruby
[11:32:41] ldnunes: has joined #ruby
[11:33:49] aadam21: has joined #ruby
[11:34:48] dlitvak: has joined #ruby
[11:36:38] denver: has joined #ruby
[11:36:54] Zai00_: has joined #ruby
[11:38:59] Ropeney: has joined #ruby
[11:39:08] rodfersou: has joined #ruby
[11:40:50] laith: has joined #ruby
[11:41:21] tulak: has joined #ruby
[11:42:22] trajing: has joined #ruby
[11:43:26] andikr: has joined #ruby
[11:43:42] dEPy: has joined #ruby
[11:44:23] ghoti: has joined #ruby
[11:44:43] sandstrom: has joined #ruby
[11:45:20] atom3: has joined #ruby
[11:49:32] norc: Ox0dea: People still use inheritance?
[11:49:38] motherfq: has joined #ruby
[11:49:40] norc: Sad news. :S
[11:49:49] beast: has joined #ruby
[11:50:41] pdoherty: has joined #ruby
[11:51:06] mdw: has joined #ruby
[11:51:12] Zai00: has joined #ruby
[11:52:11] dlitvak_: has joined #ruby
[11:52:13] norc: In all honesty though, inheritance in Ruby feels so lackluster if you have ever done any work in C++ for example.
[11:52:31] norc: Sometimes I really miss things like pure virtual base classes.
[11:52:46] yorickpeterse: There's nothing really lackluster about it
[11:53:07] norc: yorickpeterse: I think it's the lack of dynamic casting thats bothering.
[11:53:26] Scripore: has joined #ruby
[11:55:28] norc: yorickpeterse: I want to downcast objects.
[11:55:53] ferr: has joined #ruby
[11:56:10] ferr: Hey, how would I refactor this line of code? Trailer.human_attribute_name(:xtra_cdw_waiver).split("waiver").join.upcase
[11:56:41] adaedra: Why do you think it needs to be refactored?
[11:57:08] norc: ferr: Just add an additional i18n attribute Id say.
[11:57:38] Azulinho: has joined #ruby
[11:58:18] norc: yorickpeterse: For example I have this library which passes some Base object to me, but I really want to extend the functionality on this object, but I dont feel like monkey patching someone elses code.
[11:58:31] yorickpeterse: @norc then you just wrap it?
[11:58:38] gigetoo: has joined #ruby
[11:58:41] yorickpeterse: MyClass.new(that_base_thing)
[11:58:42] trajing: has joined #ruby
[11:59:15] Shaboum: has joined #ruby
[11:59:31] norc: yorickpeterse: I mean this can easily be done, as changing the class of an object just requires a simple Fiddle statement.
[11:59:47] jeanlinux: has joined #ruby
[12:00:00] yorickpeterse: Yeah there's absolutely nothing wrong with doing that
[12:00:09] yorickpeterse: Go ahead and change that class, what could go wrong
[12:01:02] norc: yorickpeterse: https://eval.in/512921
[12:01:04] norc: You are right. Nothing.
[12:02:16] yorickpeterse: Ah yes, because that's such an accurate representation of the real world
[12:02:25] yorickpeterse: where classes don't have instance variables and all that
[12:02:39] yorickpeterse: I really don't get the problem with just wrapping something in a custom object
[12:02:51] norc: yorickpeterse: The issue with your solution is that its difficult to keep state. Lets say you need to pass the object back to your library - since it no longer is_a? Base object, you would have to unwrap it again.
[12:03:02] atom3: has joined #ruby
[12:03:13] yorickpeterse: If it inherits from the same class and is compatible it's perfectly fine
[12:03:24] yorickpeterse: (or it just has the same behaviour)
[12:03:56] yorickpeterse: Good Ruby code doesn't give a damn about whether it's dealing with class A or B, it cares more about whether method X or Y does thing A or B
[12:04:01] Zai00_: has joined #ruby
[12:04:02] Azulinho: has joined #ruby
[12:04:21] adaedra: Duck typing.
[12:04:31] yorickpeterse: Downcasting/changing classes is just a lame excuse to not bother writing good OO code
[12:04:39] yorickpeterse: and what adaedra said
[12:04:44] adaedra: Stop trying to apply C++ principles to Ruby, they are not the same languages.
[12:05:16] norc: No reason to get all offensive on me here.
[12:05:22] joast: has joined #ruby
[12:07:23] norc: yorickpeterse: Simply passing the object in an initializer is not enough if my Derived class inherits from Base, because I need to set up the exact same state as the object (i.e. copy construction).
[12:07:33] norc: You basically wont get around to delegating everything to the object
[12:07:48] norc: Which does not really sound very elegant.
[12:08:10] dlitvak: has joined #ruby
[12:08:45] sandstrom: has joined #ruby
[12:09:03] IrishGringo: has joined #ruby
[12:10:00] norc: And just because Ruby has duck typing it does not mean that duck typing is the elegant solution to address all problems.
[12:10:59] eregi: has joined #ruby
[12:11:02] norc: And there is plenty of code that cares alot about classes. Even if its just a simple collection.grep(SomeClass)
[12:11:17] charliesome: has joined #ruby
[12:12:07] CloCkWeRX: has joined #ruby
[12:12:22] norc: Also, manually delegating all other method calls to the passed @object is just reimplementing what inheritance does anyway => "Look in superclasses for a matching method"
[12:12:36] norc: Which shows exactly why inheritance is lackluster.
[12:12:45] sandstrom: has joined #ruby
[12:14:39] eladmeidar: has joined #ruby
[12:15:11] motherfq: has joined #ruby
[12:15:18] pawnbox: has joined #ruby
[12:16:06] tulak: has joined #ruby
[12:16:14] voobscout: has joined #ruby
[12:16:17] dlitvak: has joined #ruby
[12:20:15] sdothum: has joined #ruby
[12:20:21] LoneHermit: has joined #ruby
[12:21:06] FooMunki: has joined #ruby
[12:21:29] aadam21: has joined #ruby
[12:21:49] Xeago: has joined #ruby
[12:22:23] Cohedrin: has joined #ruby
[12:22:48] mlehrer: has joined #ruby
[12:23:54] laith: has joined #ruby
[12:25:01] jschoolcraft: has joined #ruby
[12:25:25] baweaver: has joined #ruby
[12:27:15] alexherbo2: has joined #ruby
[12:27:38] platzhirsch: has left #ruby: ()
[12:32:17] jinie: has joined #ruby
[12:33:20] mattwildig: has joined #ruby
[12:34:37] Olipro: has joined #ruby
[12:35:22] gagrio: has joined #ruby
[12:36:37] voobscout: has joined #ruby
[12:37:11] sgambino: has joined #ruby
[12:38:39] Infra-Red: has joined #ruby
[12:38:49] bronson: has joined #ruby
[12:39:21] laith: has joined #ruby
[12:40:54] sudoubuntu: has joined #ruby
[12:41:26] krzkrz: has joined #ruby
[12:43:27] rbennacer: has joined #ruby
[12:43:58] Cohedrin: has joined #ruby
[12:46:15] pawnbox: has joined #ruby
[12:46:55] tulak: has joined #ruby
[12:46:56] motherfq: has joined #ruby
[12:49:01] icarus: has joined #ruby
[12:49:56] Scripore: has joined #ruby
[12:50:43] workmad3: has joined #ruby
[12:50:45] Azulinho: has joined #ruby
[12:51:51] ljames: has joined #ruby
[12:53:00] unl0ckd: has joined #ruby
[12:53:13] nachoman: has joined #ruby
[12:53:54] konsolebox: has joined #ruby
[12:54:02] pawnbox: has joined #ruby
[12:54:20] blandflakes: has joined #ruby
[12:54:44] william3: has joined #ruby
[12:56:46] dlitvak: has joined #ruby
[12:56:47] goodcodeguy: has joined #ruby
[12:58:39] goodcodeguy: has joined #ruby
[13:00:25] charliesome: has joined #ruby
[13:01:23] dionysus69: has joined #ruby
[13:01:55] htmldrum: has joined #ruby
[13:02:01] platzhirsch: has joined #ruby
[13:03:53] johnmilton: has joined #ruby
[13:04:19] BSaboia: has joined #ruby
[13:06:21] synthroid: has joined #ruby
[13:07:00] william3: has joined #ruby
[13:07:11] dfinninger: has joined #ruby
[13:07:45] voobscout: has joined #ruby
[13:09:35] victorzimmer: has joined #ruby
[13:10:51] kalopsian: has joined #ruby
[13:11:08] aadam21: has joined #ruby
[13:11:20] shevy: as linus once said about C++ people :)
[13:11:40] motherfq: I wonder what he says about Ruby people.
[13:11:50] rickmasta: has joined #ruby
[13:12:35] workmad3: motherfq: I don't think we even rate an insult in his view :(
[13:13:31] solars: has joined #ruby
[13:13:43] daivyk: has joined #ruby
[13:14:05] dlitvak_: has joined #ruby
[13:14:17] Xeago: has joined #ruby
[13:16:17] ziyadb: has joined #ruby
[13:16:43] jfutbol: has joined #ruby
[13:18:43] ton31337: has joined #ruby
[13:18:50] ton31337: what's the difference between << and + ?
[13:19:15] adaedra: << modifies the array, adding an element to it
[13:19:37] adaedra: + puts the array one after the other one and returns a new one
[13:19:58] davasaurous: has joined #ruby
[13:20:31] skade: has joined #ruby
[13:21:00] ton31337: Undefined node attribute or method `<<' on `node'. To set an attribute, use `<<=value' instead.
[13:21:09] ton31337: what's the best way to tackle with this?
[13:21:41] LoneHermit: has joined #ruby
[13:21:53] gagrio: has joined #ruby
[13:21:53] rbennacer: has joined #ruby
[13:22:06] shevy: motherfq heavy oldschool C hackers tend to be either really oldschool and use awk, perl (git uses perl right?) and stuff like that or not use any scripting language altogether
[13:22:34] joonty: has joined #ruby
[13:22:36] quazimodo: has joined #ruby
[13:22:43] shevy: ton31337 that is a weird suggestion... how does <<= work?
[13:23:06] ton31337: shevy: it doesn't work ;-)
[13:23:18] adaedra: ton31337: You may want to give more context: what is node? what gems are you using? maybe have some code.
[13:23:34] ton31337: actually it's Chef
[13:23:46] shevy: haha adaedra :)
[13:23:50] adaedra: apeiros: bot down!
[13:23:54] shevy: dinner! chef!
[13:24:01] adaedra: ton31337: see chef support channel for help with it.
[13:24:20] kobain: has joined #ruby
[13:24:31] last_staff: has joined #ruby
[13:25:58] charlemagne: has joined #ruby
[13:26:35] ton31337: has left #ruby: ()
[13:27:21] laith1: has joined #ruby
[13:27:59] rikkipitt: has joined #ruby
[13:28:30] malconis: has joined #ruby
[13:28:35] charlemagne: has joined #ruby
[13:28:41] laith: has joined #ruby
[13:28:49] skade: has joined #ruby
[13:29:11] jeanlinux: has joined #ruby
[13:29:27] linduxed: has joined #ruby
[13:31:04] Kedare: has joined #ruby
[13:32:04] malconis: has joined #ruby
[13:32:44] Xeago: has joined #ruby
[13:33:28] DmitryBochkarev: has joined #ruby
[13:33:29] voobscout: has joined #ruby
[13:35:17] charlemagne: has joined #ruby
[13:36:50] charlemagne: has joined #ruby
[13:37:08] platzhirsch: has left #ruby: ()
[13:39:00] kalopsian: has joined #ruby
[13:40:36] arlek__: has joined #ruby
[13:40:51] LeDiegue: has joined #ruby
[13:43:20] aryaching: has joined #ruby
[13:43:39] hxegon: has joined #ruby
[13:44:40] goodcodeguy: has joined #ruby
[13:46:01] ton31337: has joined #ruby
[13:46:22] last_staff: has joined #ruby
[13:46:35] ton31337: how to force to create hash if doesn't exist?
[13:46:35] ton31337: normal['iptables']['rules'] << firewall_by_port(grafana_port, 4)
[13:46:47] ton31337: I mean if normal['iptables']['rules'] doesn't exist
[13:49:02] skade: has joined #ruby
[13:49:08] swerter_: has joined #ruby
[13:49:44] Dbugger: has joined #ruby
[13:49:48] voobscout: has joined #ruby
[13:49:49] Dbugger: Hey everyone
[13:49:53] Dbugger: What does [*a] mean?
[13:50:06] ton31337: has left #ruby: ()
[13:50:06] adaedra: *a is a splat
[13:50:14] ramortegui: has joined #ruby
[13:50:24] Dbugger: What does that do?
[13:50:30] shevy: it splats stuff
[13:50:50] shevy: if you have a method like: def foo(*i)
[13:50:57] shevy: you can have variable arguments, as many as you like
[13:51:03] Dbugger: I saw it in this: [*oldval].to_a + [*newval].to_a
[13:51:08] Dbugger: And Im not sure what it does...
[13:51:28] charliesome: has joined #ruby
[13:51:35] adaedra: dbugger: well, "Ruby splat" gives lots of resources on what it is and what it does ;)
[13:51:44] shevy: dbugger that code looks weird indeed
[13:52:04] charlemagne: has joined #ruby
[13:52:07] shevy: http://jacopretorius.net/2012/01/splat-operator-in-ruby.html
[13:52:08] Dbugger: shevy, if I read that in this channel....
[13:52:54] shevy: look at the "We just lost the last 3 variables"
[13:53:03] shevy: first, *second = letters
[13:53:47] shevy: I don't think I have seen [*array].to_a before ... was the person who write that code drunk perhaps? :)
[13:54:28] Dbugger: I dont know. Im new here :P
[13:54:32] duckpuppy: has joined #ruby
[13:55:01] ljarvis: dbugger: [*x] is quite popular, but the .to_a after is moot since it's already always an array
[13:55:26] Dbugger: ljarvis, ok, lets ignore the to_a. What does it does, then?
[13:55:42] ljarvis: >> a = [1,2]; [*a, 3]
[13:55:57] ljarvis: thanks ruby bot
[13:56:16] adaedra: thanks obama^W apeiros
[13:56:30] Dbugger: so it is like "flatten"?
[13:56:52] ljarvis: dbugger: it can be used for array destructuring
[13:57:17] ljarvis: in this context, yes
[13:57:24] ljarvis: but it has multiple uses
[13:57:32] Dbugger: ljarvis, what other use could it have?
[13:57:46] recycle: has joined #ruby
[13:58:05] ljarvis: splat method arguments as shevy mentioned. You can also do it to turn stuff into an array. i.e. [*1..10] == (1..10).to_a
[13:58:11] hfp_work: has joined #ruby
[13:58:21] MadWasp: has left #ruby: ()
[13:58:36] Dbugger: [*1..10] == (1..10).to_a ??
[13:58:41] Dbugger: isnt the same as...?
[13:58:41] hfp: has joined #ruby
[13:58:45] Dbugger: [1..10] == (1..10).to_a
[13:58:45] platzhirsch: has joined #ruby
[13:58:52] ljarvis: but, that code you have seen it in is ridiculous and you were right to question it
[13:58:57] ljarvis: dbugger: no.. open irb and type it?
[13:59:02] Dbugger: ok, let me try
[13:59:07] ljarvis: [1..10] is an array with one Range inside it
[13:59:17] eregi: has joined #ruby
[13:59:41] ljarvis: but yeah, in generally you don't need the splat operator for this kind of stuff
[13:59:50] Dbugger: so the code is just weird, because it does not need .to_a ?
[13:59:54] ljarvis: it's more useful for variadic method arguments
[14:00:00] hxegon: has joined #ruby
[14:00:08] ljarvis: yeah, and [*a] + [*b] is a bit silly
[14:00:15] PedramT: has joined #ruby
[14:00:26] Dbugger: ljarvis, what would make more sense
[14:00:27] ljarvis: iirc it's the same as [*a, *b] or.. just a + b if they're already arrays
[14:01:02] Dbugger: could also be used as...?
[14:01:13] Dbugger: a.flatten + b.flatten
[14:01:19] ljarvis: no that's not the same
[14:01:24] Dbugger: or (a + b).flatten
[14:01:44] Dbugger: This is why I keep telling this guys that they need to do tests -_-
[14:01:58] Dbugger: now I feel unsure about what it does and how to use it, or even change it
[14:02:00] ljarvis: your examples mutate the original values, mine leave them in place and just concat them
[14:02:08] Abrin: has joined #ruby
[14:02:18] ljarvis: well, what values are in those variables?
[14:02:23] Dbugger: "flatten" mutates? I thought that was "flatten!"
[14:02:55] ljarvis: that's correct, I meant return :)
[14:03:06] djcp: has joined #ruby
[14:03:16] Dbugger: oh well, returning is what I wanted.. I think :P
[14:03:31] Dbugger: I have no idea what the variables have. Im new in the office and I am trying to understand the smallest pieces of code first :P
[14:03:41] ljarvis: puts debug them and find out
[14:03:50] Dbugger: But this method called "merge_options" called my attention
[14:03:54] jeanlinux: has joined #ruby
[14:03:54] adaedra: dbugger: how well do you know ruby?
[14:03:55] Dbugger: that has this one line:
[14:03:57] Dbugger: origin_options.merge(additional_options) { |_key, oldval, newval| [*oldval] + [*newval] }
[14:04:05] Dbugger: and I thought, it looked bizarre
[14:04:18] Dbugger: adaedra, I know better rails as ruby
[14:04:38] adaedra: that's hardly replying.
[14:04:51] Dbugger: adaedra, i dont know really how good i know it...
[14:05:16] Dbugger: adaedra, enough to defend myself. Bad enough to ask in the channel twice a week :P
[14:05:43] allcentury: has joined #ruby
[14:05:52] ljarvis: dbugger: basically, it seems like they want to concat the arrays. So you example is basically the same as oldval + newval
[14:05:52] sankaber: has joined #ruby
[14:05:58] victorzimmer: has joined #ruby
[14:06:03] ljarvis: and this method is quite simple, so it should be incredibly easy to unit test
[14:06:05] adaedra: I personally dislike the [*...] form
[14:06:21] ljarvis: >> {foo: ["bar"]}.merge(foo: ["baz"]) { |_k, old, new| old + new }
[14:06:25] ljarvis: apeiros: YO
[14:06:35] B3rg3lm1r: has joined #ruby
[14:06:39] ljarvis: basically that returns {:foo=>["bar", "baz"]}
[14:06:45] adaedra: There should be a rubybot fallback.
[14:06:50] Dbugger: yeah, that is what they want to do
[14:06:57] Dbugger: a office mate told me
[14:06:59] millerti: has joined #ruby
[14:07:00] ljarvis: then yeah their code is stupid
[14:07:04] Dbugger: I just didnt get why the complicated form
[14:07:04] ljarvis: tell them that for me
[14:07:14] Dbugger: I will not, as I am new... but thanks :D
[14:07:27] adaedra: it happens when you overthink things
[14:07:36] Dbugger: Yeah... this guys seem to do that a lot
[14:07:38] ljarvis: and don't have good unit tests
[14:07:48] Dbugger: they dont have ANY tests
[14:07:56] ljarvis: which would allow you to refactor this without having to ask
[14:08:01] Dbugger: I asked "how do you check your app didnt break when you change something?"
[14:08:08] Dbugger: and they told me "We click around, to make sure"
[14:08:09] voobscout: has joined #ruby
[14:08:09] manveru: who needs tests when you got testers :D
[14:08:16] Dbugger: *headblow*
[14:08:30] Dbugger: now I have a meeting in 20 minutes
[14:08:38] Dbugger: and I have to convince my boss to implement Continuous Integration
[14:08:45] Dbugger: which he is NEVER gonna buy
[14:08:53] Dbugger: but dont really have an option :P
[14:08:58] ljarvis: so, what attracted you to this job?
[14:09:03] Dbugger: Lack of money
[14:09:17] manveru: couple it with continuous deployment :)
[14:09:25] ljarvis: continuous development
[14:09:31] ljarvis: continuous employment
[14:09:33] adaedra: continuous full stack
[14:09:44] ddv: continuous everything
[14:10:08] flughafen: continious cloud
[14:10:13] ddv: dbugger: gitlab-ci is free tho?
[14:10:23] adaedra: continuous technical debt
[14:10:42] flughafen: continuous synergysm
[14:10:43] haylon: has joined #ruby
[14:10:50] manveru: ddv: for OSS?
[14:11:10] ddv: opensource software?
[14:11:21] rikkipitt: has joined #ruby
[14:11:41] manveru: not sure if there are any hosted CI's that have free plans for private repos
[14:11:50] shevy: havenwood make them stop ^^^
[14:11:57] ddv: no idea just host it yourself
[14:12:06] adaedra: problem, shevy?
[14:12:11] manveru: i'd just setup hydra or something
[14:12:11] Dbugger: ddv, I have been trying that for the week, to present it to my boss. Gitlab
[14:12:29] shevy: adaedra continuous!
[14:12:35] ddv: dbugger: I don't really understand why your boss needs to approve this
[14:12:41] Dbugger: i doubt they want to outsource it. They are germans and they seem to love everything IN HOUSE
[14:12:47] ddv: dbugger: He obviously doesn't know anything about development
[14:12:56] Dbugger: well, in my office there doesnt seem to be any "roles"
[14:13:00] Dbugger: everyone does a little of everything
[14:13:03] solocshaw: has joined #ruby
[14:13:08] Dbugger: there is no devops, sysadmin, and so on...
[14:13:34] shevy: a little bit of boss
[14:13:35] cdg: has joined #ruby
[14:13:40] Dbugger: yeah, boss we have :D
[14:13:46] Dbugger: and we do daily scrum.... once a week :D
[14:13:49] adaedra: sssh, no sysadmins, only failures now.
[14:14:23] Dbugger: well, they have some company who handles it for them, through TeamViewer
[14:14:28] Dbugger: so yey for me, for using Linux :P
[14:14:34] Dbugger: Im on my own
[14:14:52] Dbugger: but having someone in-house would seem like a good idea to me :P
[14:15:15] allcentury: has joined #ruby
[14:15:26] Jardayn: has joined #ruby
[14:15:38] adaedra: There are a lot of solutions to deploy yourself, starting with Jenkins, to GitLab CI or the Atlassian thing I don't remember the name
[14:16:00] flughafen: later everybody
[14:16:04] victorzimmer: has joined #ruby
[14:17:09] rbennacer: has joined #ruby
[14:17:16] voobscout: has joined #ruby
[14:17:26] Kang0: has joined #ruby
[14:18:00] Dbugger: Anyway, wish me luck. I have the meeting in 15 minutes
[14:20:55] hxegon: has joined #ruby
[14:20:57] duckduckgeek: has joined #ruby
[14:21:07] duckduckgeek: Hiya everyone!
[14:21:37] duckduckgeek: would anyone be willing to look at a code sample and help me figure out whats wrong with my program?
[14:21:48] Yzguy: has joined #ruby
[14:21:57] duckduckgeek: it seems to be a very simple problem but i just can't figure it out
[14:22:30] ljarvis: duckduckgeek: please just ask your question and provide code, everyone will see it and you'll increase the chances someone will be able to help
[14:22:41] ljarvis: basically, don't ask to ask
[14:22:47] Dbugger: I am due some karma points, so if I have time, I will try
[14:22:57] duckduckgeek: alright sounds good.
[14:23:02] duckduckgeek: ljarvis: sorry about that
[14:23:03] adaedra: code, backtrace, expected output, gems
[14:23:04] PedramT: has joined #ruby
[14:23:13] shevy: all the things for adaedra
[14:23:21] graffix: has joined #ruby
[14:23:30] adaedra: my crystal ball is broken
[14:23:34] ljarvis: address, cc, ssn
[14:23:45] PedramT_: has joined #ruby
[14:24:05] duckduckgeek: http://pastebin.com/YTU5i3jd that's the link to pastebin
[14:24:11] adaedra: don't forget to include the code behind the CC too
[14:24:24] ljarvis: https://gist.github.com/leejarvis/d0bda7a44ec4b4be9f81
[14:24:36] adaedra: thanks, ljarvis
[14:24:39] mrmargolis: has joined #ruby
[14:24:44] PedramT_: has joined #ruby
[14:24:52] dlitvak: has joined #ruby
[14:24:56] ljarvis: duckduckgeek: pastebin is full of awful ads, please use github instead (I reposted your code there)
[14:25:29] ljarvis: duckduckgeek: what's the problem with your code?
[14:25:47] adaedra: I see several ones, but let's see the main problem :p
[14:26:02] duckduckgeek: it seems to drop into the main() func but then it won't even ask for input
[14:26:09] duckduckgeek: and what problems do you see?
[14:26:22] PedramT__: has joined #ruby
[14:26:23] ljarvis: lets do this step by step or you'll be overwhelmed
[14:26:31] baweaver: has joined #ruby
[14:26:34] dlitvak_: has joined #ruby
[14:26:42] duckduckgeek: i'm not a beginner, i just don't know ruby that well
[14:26:49] duckduckgeek: nor do i know any debuggin tools for it
[14:26:50] cpruitt: has joined #ruby
[14:26:54] bmalum: has joined #ruby
[14:26:55] adaedra: It's 2016 and we can't comment a gist line-by-line
[14:27:01] adaedra: come on, GitHub.
[14:27:04] ljarvis: duckduckgeek: firstly, the syntax isn't valid
[14:27:09] PedramT__: has joined #ruby
[14:27:15] duckduckgeek: which part or the entire thing?
[14:27:20] ljarvis: so this code doesn't even run
[14:27:29] ljarvis: well, when you tried to run it you got an error, right?
[14:27:45] ljarvis: what was the error?
[14:27:51] duckduckgeek: on lines 29 & 30
[14:27:58] ljarvis: do they look ok to you?
[14:28:12] duckduckgeek: syntax error, unexpected '=', expecting keyword_end line(slot_two) = temp
[14:28:18] duckduckgeek: and yeah they look fine to me?
[14:28:24] ljarvis: does that line make sense? what's it trying to do?
[14:28:51] duckduckgeek: i'm trying to overwrite an element of the array line
[14:29:12] ljarvis: ok, but you're using parenthesis which isn't valid Ruby
[14:29:19] ljarvis: so you want Array#[]
[14:29:26] B3rg3lm1r: has joined #ruby
[14:29:34] aadam21: has joined #ruby
[14:29:50] duckduckgeek: so line#[slot_one]?
[14:30:01] ljarvis: does that look valid to you?
[14:30:02] duckduckgeek: or just line[slot_one]
[14:30:09] duckduckgeek: my guess is the second one
[14:30:17] ljarvis: don't guess, that's why Ruby ships with a REPL
[14:30:19] TomPeed: has joined #ruby
[14:30:33] duckduckgeek: one sec and ill double check
[14:30:54] FooMunki: has joined #ruby
[14:31:35] tjohnson: has joined #ruby
[14:32:10] duckduckgeek: it is indeed the second guess that i made
[14:32:28] duckduckgeek: lemme make that change in my fiel
[14:32:36] aadam21: has joined #ruby
[14:33:52] duckduckgeek: lol yes. life
[14:33:57] duckduckgeek: alright so new error
[14:34:21] mattwildig: has joined #ruby
[14:34:24] duckduckgeek: sigil.rb:1: syntax error, unexpected tSTRING_BEG, expecting ';' or '\n' def main puts "enter your sigil phrase or word"
[14:34:37] croberts: has joined #ruby
[14:34:51] duckduckgeek: nevermind that
[14:34:51] ljarvis: ACTION tags adaedra 
[14:35:04] duckduckgeek: that was due to me screwing up my formatting
[14:35:19] ElFerna: has joined #ruby
[14:35:29] duckduckgeek: okay no an actual error
[14:35:46] duckduckgeek: apparently i cannot call to_a on a string and have it pop out into an array
[14:35:58] duckduckgeek: lemme see if i can find a solution
[14:37:07] lbwski: has joined #ruby
[14:37:49] ddv: duckduckgeek: %w(mystring) ?
[14:38:03] ljarvis: keep looking
[14:38:11] ddv: no idea what you exactly want to do
[14:38:29] yorickpeterse: oh I can think of things ljarvis wants to do
[14:38:32] yorickpeterse: (͡° ͜ʖ ͡°)
[14:38:50] duckduckgeek: ljarvis: I have tried using a splat and iterating trough the character in the string and pushing them to an array
[14:38:52] mary5030: has joined #ruby
[14:38:58] ljarvis: duckduckgeek: you dont need a splat
[14:39:07] ljarvis: &ri String#chars
[14:39:07] `derpy: http://ruby-doc.org/core-2.3.0/String.html#method-i-chars
[14:39:10] ddv: ljarvis: you seem to know the answer?
[14:39:25] ljarvis: ddv: of course I do, I'm trying to help duckduckgeek (who said they wanted to try and look for themselves first)
[14:39:28] duckduckgeek: he is helping me
[14:40:06] jfutbol: has joined #ruby
[14:40:29] duckduckgeek: i'm not sure if i have ri's documentation installed. i am on windows and simply used the chocolatey installer to downloand the ruby package
[14:40:35] Yzguy: has joined #ruby
[14:40:36] duckduckgeek: lemme look for an online ri tool
[14:40:52] ljarvis: duckduckgeek: you can click the link above to view the rdoc
[14:41:06] ljarvis: duckduckgeek: and you can use &ri in this channel like I did above
[14:41:09] bronson: has joined #ruby
[14:41:22] nando293921: has joined #ruby
[14:41:37] ljarvis: your appreciation goes to adaedra
[14:42:35] sankaber: has joined #ruby
[14:42:59] ljarvis: yorickpeterse: get back to launching more gitlab
[14:43:12] yorickpeterse: actually I'm writing blog posts todya
[14:43:26] Shaboum: has joined #ruby
[14:43:36] yorickpeterse: One for Rails Girls Summer of Code, and one for some of the work I did for 8.5
[14:43:38] duckduckgeek: not working in irb with a few test vars that i created
[14:43:41] ljarvis: you're about to unlease your performance gainz secretz?
[14:43:56] yorickpeterse: well my secrets are basically "look at graph, write shitty benchmark script"
[14:44:05] yorickpeterse: and take lots of screenshots
[14:44:06] polishdub: has joined #ruby
[14:44:23] s00pcan: has joined #ruby
[14:44:30] yorickpeterse: case in point: https://gitlab.com/gitlab-org/gitlab-ce/issues/13457
[14:44:33] ljarvis: duckduckgeek: what did you try? "foo".chars
[14:44:43] ljarvis: yorickpeterse: noice
[14:44:47] adaedra: what did I do?
[14:44:52] duckduckgeek: nope. i tried the each_char method
[14:44:55] ljarvis: adaedra: you fucked up everything
[14:45:05] duckduckgeek: but i will certainly give a look to the .chars method
[14:46:25] krobzaur: has joined #ruby
[14:46:27] voobscout: has joined #ruby
[14:46:27] adaedra: duckduckgeek: otherwise, online documentation is available at ruby-doc.org, rubydoc.info or devdocs.io
[14:46:34] motherfq: has joined #ruby
[14:46:46] LeDiegue: has joined #ruby
[14:46:51] ljarvis: yorickpeterse: why is the gitlab sidebar so big when there are only icons?
[14:46:53] ESpiney: has joined #ruby
[14:47:11] ljarvis: yorickpeterse: ah right, the text isn't shown on safari..
[14:47:23] ljarvis: huh weird..
[14:47:26] the_drow: has joined #ruby
[14:47:27] yorickpeterse: You mean the one on the left?
[14:47:35] yorickpeterse: (we have 2 now)
[14:48:01] pdoherty: has joined #ruby
[14:48:10] yorickpeterse: Hm doesn't seem to be an issue for it
[14:48:16] adaedra: yorickpeterse: I started putting things on GitLab the other day
[14:48:32] adaedra: Also, you make me remember I have an open issue on rbx.
[14:48:35] ljarvis: yorickpeterse: this is what I see http://imgur.com/wRayMKK but it seems sporadic
[14:48:56] Icey: has joined #ruby
[14:48:57] yorickpeterse: ljarvis: huh, that's odd
[14:49:10] ljarvis: might just be safari being shit
[14:49:11] duckduckgeek: seems to be working very nicely so far!
[14:49:22] dlitvak: has joined #ruby
[14:49:54] adaedra: yorickpeterse: is it ok to come back to an issue with no news and ask what's up on rbx?
[14:50:08] yorickpeterse: adaedra: Yes, which issue is it?
[14:50:17] adaedra: https://github.com/rubinius/rubinius/issues/3538
[14:50:25] i8igmac: has joined #ruby
[14:51:13] yorickpeterse: IIRC the output is still borken
[14:51:32] yorickpeterse: Thinking of it, I'll see if I can fix that shit this Friday
[14:51:47] godzillaenlacasa: has joined #ruby
[14:51:48] yorickpeterse: getting tired of harassing people to reply about our license change any way
[14:51:54] mattwildig: has joined #ruby
[14:52:02] adaedra: Ok, thanks
[14:54:22] i8igmac: im trying to find a ruby-1.9.3.deb package for arm version of debian
[14:54:41] flaguy48: has left #ruby: ()
[14:54:46] i8igmac: i upgraided my system and now ruby 1.9 does not exist in my repo
[14:54:47] adaedra: Why go for unsupported versions?
[14:55:19] i8igmac: my projects from the last year was based on 1.9
[14:55:52] rohit: has joined #ruby
[14:55:55] i8igmac: there is something new about Open3, that causes the output to be silent
[14:56:18] duckduckgeek: ljarvis: alright. so i've, of course, screwed something else up
[14:56:30] duckduckgeek: should i post a new gist
[14:56:42] adaedra: update the previous one?
[14:56:46] adaedra: so we have the diff
[14:57:06] diegoviola: has joined #ruby
[14:57:55] duckduckgeek: okay. it's on ljarvis's gh account though
[14:58:02] decoponio: has joined #ruby
[14:58:05] duckduckgeek: not sure if updatable from my end
[14:58:06] adaedra: erf, I forgot
[14:58:14] adaedra: you may be able to fork it
[14:58:14] duckduckgeek: ill post the link in a sec
[14:58:48] duckduckgeek: https://gist.github.com/cerberusiscute/f6015ba61ef30e7a3e1b
[14:59:15] motherfq: has joined #ruby
[14:59:18] duckduckgeek: &ri String#gsub
[14:59:18] `derpy: http://ruby-doc.org/core-2.3.0/String.html#method-i-gsub
[14:59:30] adaedra: duckduckgeek: do you know the difference between bang and non-banged methods (i.e. gsub vs gsub!) ?
[14:59:59] duckduckgeek: yep. banged methods change variable in place so they must be mutable
[15:00:05] duckduckgeek: (the vars, that is)
[15:00:41] duckduckgeek: that means that they have to operate on a variable that already contains data
[15:00:41] LeDiegue: has joined #ruby
[15:00:46] duckduckgeek: shoot. lemme try again
[15:00:56] adaedra: that was not totally my point
[15:01:12] duckduckgeek: oh. well tried it anyway
[15:01:16] duckduckgeek: still didn't work
[15:01:49] duckduckgeek: got this (undefined method `gsub' for nil:NilClass (NoMethodError)) on line 4
[15:02:01] adaedra: l.2, you use squeeze!, which modifies a variable you don't use afterward
[15:02:23] canton7: bang methods may return nil, as well ;)
[15:02:28] adaedra: (technically, by the return, but you don't really need to do the edit in-place, as it is returned)
[15:02:48] forgot: how to list gems which are not dependencies of other gems, aka leaves?
[15:02:53] duckduckgeek: that makes sense
[15:03:27] workmad3: ! == 'this does something different from the method without a !, and probably has a different return type. Be careful and read the docs'
[15:04:10] duckduckgeek: it is working!!!
[15:04:18] duckduckgeek: ljarvis: thank you
[15:04:21] duckduckgeek: adaedra: thank you
[15:04:29] duckduckgeek: everyone i missed: thank you!
[15:05:00] bricker1: has joined #ruby
[15:05:27] LeDiegue_: has joined #ruby
[15:05:32] Gnut_: has joined #ruby
[15:05:44] stannard_: has joined #ruby
[15:05:52] duckduckgeek: see ya all later! thanks a million for the help!
[15:06:01] AccordsLTN: has joined #ruby
[15:06:11] duckduckgeek: has left #ruby: ()
[15:06:21] unsymbol_: has joined #ruby
[15:06:42] icarus__: has joined #ruby
[15:07:06] cabargas: has joined #ruby
[15:07:36] HalcyonicStorm: has joined #ruby
[15:07:39] IcyDragon: has joined #ruby
[15:07:51] queequeg2: has joined #ruby
[15:07:51] mosez: has joined #ruby
[15:07:51] euoia: has joined #ruby
[15:07:58] Emmanuel_Chanel: has joined #ruby
[15:08:02] adgtl: has joined #ruby
[15:08:03] Dfoolz: has joined #ruby
[15:08:14] floatingpoint: has joined #ruby
[15:08:25] millerti: has joined #ruby
[15:08:56] davidcelis: has joined #ruby
[15:08:56] davidcelis: has joined #ruby
[15:09:17] eregi: has joined #ruby
[15:09:30] william3: has joined #ruby
[15:10:20] the_drow: has joined #ruby
[15:10:22] Dbugger: I got back from my meeting. I survived.
[15:10:22] i8igmac: im trying to figure out why my scripts no longer work on a updated machine...
[15:10:23] cyphactor: has joined #ruby
[15:10:55] victorzimmer: has joined #ruby
[15:11:07] william3: has joined #ruby
[15:11:32] i8igmac: Open3.popen3("ping google.com"){|i,o,t,p| }
[15:11:40] treehug88: has joined #ruby
[15:12:34] ardian: has joined #ruby
[15:14:03] x77686d: has joined #ruby
[15:15:17] kalopsian: has joined #ruby
[15:16:45] william3: has joined #ruby
[15:17:37] voobscout: has joined #ruby
[15:19:06] jeanlinux: has joined #ruby
[15:19:28] nofacade: has joined #ruby
[15:20:15] mrmargolis: has joined #ruby
[15:20:29] xapak: has joined #ruby
[15:20:57] babblebre: has joined #ruby
[15:21:00] jas02: has joined #ruby
[15:21:30] tulak: has joined #ruby
[15:21:33] jfutbol: has joined #ruby
[15:23:15] VeryBewitching: has joined #ruby
[15:23:28] chouhoulis: has joined #ruby
[15:24:03] kies^: has joined #ruby
[15:24:35] dopamean_: has joined #ruby
[15:26:25] RegulationD: has joined #ruby
[15:27:55] Kang0: has joined #ruby
[15:28:49] Dbugger: hello VeryBewitching
[15:29:20] whippythellama: has joined #ruby
[15:29:26] B1n4r10: has joined #ruby
[15:31:28] ddv: dbugger: did you finish writing your own CI system?
[15:31:29] motherfq_: has joined #ruby
[15:32:49] Dbugger: ddv, please. I am already on my own CD
[15:32:58] voobscout: has joined #ruby
[15:33:03] Dbugger: give me 5 more mins
[15:33:18] Dbugger: and Ill start to CVS software
[15:33:34] Dbugger: *start my own CVS software
[15:34:24] ddv: dbugger: you work remote or something?
[15:34:30] ddv: or are you german too?
[15:34:35] Dbugger: im Spanish
[15:34:41] Dbugger: but I live in Germany
[15:34:48] Dbugger: Because, i like having a salary :D
[15:34:56] Dbugger: I wish I worked remotely
[15:35:15] Dbugger: With a UK company
[15:35:18] Dbugger: with an UK salary
[15:35:22] Dbugger: Id be rich in 3 months
[15:36:30] laith: has joined #ruby
[15:37:42] william3: has joined #ruby
[15:38:52] the_drow: has joined #ruby
[15:39:09] skade: has joined #ruby
[15:39:23] eregi: has joined #ruby
[15:39:38] centrx: has joined #ruby
[15:41:35] swills: has joined #ruby
[15:41:52] ElFerna: has joined #ruby
[15:42:20] centrx: What's up goys
[15:43:45] ardian: has joined #ruby
[15:44:36] bronson: has joined #ruby
[15:48:46] dlitvak_: has joined #ruby
[15:49:21] dopamean_: has joined #ruby
[15:50:46] mondok: has joined #ruby
[15:50:51] weemsledeux: has joined #ruby
[15:52:08] gregf_: *grass always looks greener on the other side*
[15:52:14] zotherstupidguy: has joined #ruby
[15:54:35] synthroid: has joined #ruby
[15:54:38] blt: has joined #ruby
[15:55:41] ardian: has joined #ruby
[15:55:50] bigkevmcd: has joined #ruby
[15:56:49] ljarvis: dbugger: I have a UK salary and it's been a lot longer than 3 months.. I'm still not rich
[15:57:00] jfutbol: has joined #ruby
[15:57:26] dfinninger: has joined #ruby
[15:57:29] apeiros: ljarvis: I think their point was UK salary working remotely from spain
[15:57:42] yorickpeterse: enjoy the double taxes
[15:57:45] ljarvis: ah I thought German
[15:58:00] evidex: has joined #ruby
[15:58:10] dlitvak: has joined #ruby
[15:59:04] spintronic: has joined #ruby
[16:02:13] eregi: has joined #ruby
[16:03:19] rickmasta: has joined #ruby
[16:03:36] marxarelli: has joined #ruby
[16:04:01] aufi: has joined #ruby
[16:05:05] Dbugger: ljarvis, if you live in the part of germany that I do, you would
[16:05:11] Dbugger: this is ridiculous cheap
[16:05:18] Dbugger: (but the salary goes accordingly, sadly)
[16:06:02] ready: has joined #ruby
[16:06:05] kmckelvi1: has joined #ruby
[16:06:12] sysanthrope: has joined #ruby
[16:06:17] blandflakes: has joined #ruby
[16:06:35] Gnut: has joined #ruby
[16:07:23] adaedra: yorickpeterse: you get double taxes for what, working remotely in another country?
[16:09:50] mdw: has joined #ruby
[16:09:51] Frem: has joined #ruby
[16:09:58] cschneid_: has joined #ruby
[16:10:06] rbennacer: has joined #ruby
[16:10:12] ljarvis: heh my house is pretty cheap for what i get
[16:10:51] tulak: has joined #ruby
[16:11:02] PlasmaStar: has joined #ruby
[16:11:23] sandstrom: has joined #ruby
[16:12:26] yorickpeterse: adaedra: Depending on the country you work in and the one you live in, yes that might be the case
[16:12:58] yorickpeterse: Not 100% sure how it works out within the EU, but if you work outside of the EU chances are you end up paying taxes in 2 countries
[16:13:08] yorickpeterse: though at least here in .nl you can apply for discounts
[16:13:19] adaedra: interesting
[16:13:25] yorickpeterse: The usual workaround is to basically set up a freelancing agency with a single client (= your actual employer)
[16:14:10] sucks: has joined #ruby
[16:16:16] yorickpeterse: also lol I put a rant in my GitLab blog post about benchmarks
[16:16:22] yorickpeterse: I really tried not to
[16:16:25] yorickpeterse: but it snuck in
[16:17:01] celly: has joined #ruby
[16:17:05] dextertzu: has joined #ruby
[16:18:36] FernandoBasso: has joined #ruby
[16:19:19] rcvalle: has joined #ruby
[16:19:55] spintronic: has joined #ruby
[16:21:44] spintronic: has joined #ruby
[16:22:17] william3_: has joined #ruby
[16:25:22] TomyWork: has joined #ruby
[16:26:14] ss_much: has joined #ruby
[16:26:25] Dimik: has joined #ruby
[16:26:31] evidex: has joined #ruby
[16:27:18] baweaver: has joined #ruby
[16:28:18] pawnbox: has joined #ruby
[16:29:16] bricker: has joined #ruby
[16:29:40] Yzguy: has joined #ruby
[16:30:00] alphaatom: has joined #ruby
[16:31:19] alphaatom: has joined #ruby
[16:34:08] genpaku: has joined #ruby
[16:34:26] laith: has joined #ruby
[16:35:06] baweaver: has joined #ruby
[16:35:31] dfinninger: has joined #ruby
[16:35:46] skade: has joined #ruby
[16:39:03] dlitvak: has joined #ruby
[16:39:30] chipotle: has joined #ruby
[16:40:59] ohaibbq: has joined #ruby
[16:42:31] aclearman037: has joined #ruby
[16:42:36] benlieb: has joined #ruby
[16:46:42] bronson: has joined #ruby
[16:49:33] ElFerna: has joined #ruby
[16:49:55] spintronic: has joined #ruby
[16:50:53] [Butch]: has joined #ruby
[16:51:37] moeabdol1: has joined #ruby
[16:52:04] jeanlinux: has joined #ruby
[16:52:17] chipotle: has joined #ruby
[16:53:04] voobscout: has joined #ruby
[16:53:30] ElFerna: has joined #ruby
[16:54:07] cyclonis: has joined #ruby
[16:55:04] mhoungbo: has joined #ruby
[16:55:25] rikkipitt: has joined #ruby
[16:57:09] chipotle: has joined #ruby
[16:57:44] LoneHermit: has joined #ruby
[16:57:45] Blaguvest: has joined #ruby
[16:58:01] Don_John: has joined #ruby
[16:59:56] cual09: has joined #ruby
[17:00:03] selfadhesivefilm: has joined #ruby
[17:00:05] cual09: has left #ruby: ()
[17:01:27] moeabdol2: has joined #ruby
[17:02:08] nando293921: has joined #ruby
[17:03:44] rht: has joined #ruby
[17:03:53] B1n4r10: has joined #ruby
[17:04:01] rakm: has joined #ruby
[17:04:29] shadeslayer: has joined #ruby
[17:04:54] skade: has joined #ruby
[17:05:03] moeabdol3: has joined #ruby
[17:07:04] htmldrum: has joined #ruby
[17:07:39] amclain: has joined #ruby
[17:08:52] braincrash: has joined #ruby
[17:09:15] gizmore: has joined #ruby
[17:09:51] spintronic: has joined #ruby
[17:10:07] ilyaman: has joined #ruby
[17:11:20] eregi: has joined #ruby
[17:12:09] symm-: has joined #ruby
[17:15:34] tubulife-: has joined #ruby
[17:17:04] pietr0: has joined #ruby
[17:18:04] dfinninger: has joined #ruby
[17:18:32] mhoungbo: has joined #ruby
[17:20:33] dlitvak: has joined #ruby
[17:21:13] dopamean_: has joined #ruby
[17:21:22] spintronic_: has joined #ruby
[17:22:59] chipotle: has joined #ruby
[17:23:48] verde: has joined #ruby
[17:25:43] i: has joined #ruby
[17:26:40] dionysus69: has joined #ruby
[17:27:06] dopamean1: has joined #ruby
[17:28:14] charliesome: has joined #ruby
[17:28:35] bronson: has joined #ruby
[17:30:02] allcentury: has joined #ruby
[17:30:40] baweaver: has joined #ruby
[17:31:12] yardenbar: has joined #ruby
[17:31:55] cajone: has joined #ruby
[17:32:32] william3: has joined #ruby
[17:33:22] verde: has joined #ruby
[17:33:39] rbennacer: has joined #ruby
[17:33:43] ruby-lang129: has joined #ruby
[17:35:15] ruby-lang947: has joined #ruby
[17:35:57] rbennacer: has joined #ruby
[17:36:24] victorzimmer: has joined #ruby
[17:37:16] rbennacer: has joined #ruby
[17:38:22] malcolmva: has joined #ruby
[17:38:47] william3: has joined #ruby
[17:39:07] sudoubuntu: has joined #ruby
[17:39:37] moos3: has joined #ruby
[17:40:08] Scripore: has joined #ruby
[17:40:17] Pumukel: has joined #ruby
[17:40:26] UtkarshRay: has joined #ruby
[17:42:04] jmignault: has joined #ruby
[17:42:43] Ishido: has joined #ruby
[17:44:29] flughafen_: has joined #ruby
[17:44:30] theunraveler: has joined #ruby
[17:44:47] benlieb: has joined #ruby
[17:45:04] learning: has joined #ruby
[17:45:13] sneakerhax: has joined #ruby
[17:45:49] terminalrecluse: has joined #ruby
[17:45:59] theunraveler: has joined #ruby
[17:46:13] Maletor: has joined #ruby
[17:47:08] al2o3-cr: has joined #ruby
[17:47:15] theunraveler: has joined #ruby
[17:49:41] Sammitch: which mysql gem should I be using if I *don't* want to lose my mind?
[17:49:56] chipotle: has joined #ruby
[17:50:25] codecop: has joined #ruby
[17:50:28] eam: that depends. does ORM drive you crazy? Or does it makes sense to you?
[17:51:22] Mon_Ouie: has joined #ruby
[17:51:30] rakm: has joined #ruby
[17:51:48] Sammitch: ORM drives me crazy, and I just need to run a couple queries in a chef recipe
[17:52:18] lemur: has joined #ruby
[17:52:50] Guest34101: has joined #ruby
[17:52:52] JohnBat26: has joined #ruby
[17:52:55] Alayde: has joined #ruby
[17:53:35] millerti: has joined #ruby
[17:53:47] VeryBewitching: mysql2 is the gem I would use
[17:53:48] tubulife-: has joined #ruby
[17:53:55] VeryBewitching: It's pretty simple.
[17:54:09] VeryBewitching: https://github.com/brianmario/mysql2
[17:54:31] Sammitch: oh my god there's actual documentation on it
[17:55:37] Sammitch: VeryBewitching: this looks promising, thanks
[17:55:45] VeryBewitching: It was also a single Google search (I don't use MySQL, Postgres guy)
[17:56:08] VeryBewitching: I'm pretty sure it's the gem you'd have to use with Rails/AR for modern MySQL, so it should do you fine.
[17:56:16] eam: mysql2 is the right one to use
[17:58:15] shadeslayer: has joined #ruby
[17:58:23] spintronic_: has joined #ruby
[17:58:53] hahuang65: has joined #ruby
[17:59:00] aegis3121: has joined #ruby
[18:01:37] polishdub_: has joined #ruby
[18:01:49] mikecmpbll: has joined #ruby
[18:04:35] tomchapin: has joined #ruby
[18:05:06] firstdayonthejob: has joined #ruby
[18:06:32] hahuang65: has joined #ruby
[18:08:40] azure32: has joined #ruby
[18:09:10] wet88: has joined #ruby
[18:09:14] chouhoulis: has joined #ruby
[18:11:51] ljarvis: postgresq is the right thing
[18:11:54] ljarvis: every. time.
[18:12:22] epochwolf: ljarvis: unless you're using php.
[18:12:36] ljarvis: in which case you have more problems
[18:12:41] VeryBewitching: No, it's still the right thing in PHP
[18:12:49] Sammitch: I'm not denying that postgres is the tits
[18:12:59] eam: does postgres have a reasonable replication strategy yet?
[18:13:00] ljarvis: Sammitch: are you british?
[18:13:04] Sammitch: VeryBewitching: actually with PDO postgres works quite well
[18:13:08] Sammitch: ljarvis: nope
[18:13:10] ljarvis: eam: sshhhhh
[18:13:26] VeryBewitching: Sammitch: That's what I'm saying. Postgres > MySQL
[18:13:33] eam: it's fantastic so long as you don't have to run it at scale in production
[18:13:49] eam: but we're all developers here so not our problem :D
[18:14:02] Sammitch: last I looked postgres had a profusion of replication options
[18:14:10] epochwolf: eam: at scale... you mean with 256gb of ram?
[18:14:21] VeryBewitching: MySQL is great for small to medium sized sites running Drupal, Joomla! or WordPress (Expression Engine maybe too); but I wouldn't rely on it for much more than that.
[18:14:32] eam: at scale, I mean with multiple read slaves and the ability to fail over to them without loss of redundancy
[18:14:39] Dragooon: has joined #ruby
[18:14:42] ljarvis: i do lots of pg ops too
[18:14:48] Sammitch: AWS x99.humongus
[18:14:51] eam: last I checked pg could only do that with synchronous replication which is ... quite slow
[18:15:16] shadoi: has joined #ruby
[18:15:59] VeryBewitching: ACTION is not a system administrator.
[18:16:10] VeryBewitching: That's "that guys" job :D
[18:16:37] VeryBewitching: My job is to write great queries and to ensure that my database design is effective.
[18:16:39] eam: see? Not our problem :D
[18:16:44] Sammitch: ACTION is "that guy". :I
[18:16:46] epochwolf: Sammitch: AWS? I meant a large, beefy colocated dell server.
[18:16:54] eam: the thing is, replication strategy is part of database design
[18:17:14] VeryBewitching: eam: It's a consideration, in my opinion, not an integral portion.
[18:17:17] epochwolf: Sammitch: running 8 SSDs in RAID0
[18:17:27] Sammitch: one of those 6U R9xx with a two-storey motherboard and like 8 CPU sockets :D
[18:17:31] VeryBewitching: epochwolf: hawt
[18:17:50] eam: VeryBewitching: one might reasonably take the position that if the data doesn't have an HA/failover strategy one might just not bother storing it in the first place
[18:17:51] kirillzh: has joined #ruby
[18:17:53] goodcodeguy: has joined #ruby
[18:18:17] Sammitch: needs more NGFS with tiered storage
[18:18:28] ElFerna: has joined #ruby
[18:18:45] VeryBewitching: eam: I don't disagree with that, but the "storage" and "safety" of the data is a work unit that's shared between myself and an administrator.
[18:19:00] epochwolf: Sammitch: I like my databases fast and unstable. :D
[18:19:01] eam: sure, sure
[18:19:26] Sammitch: epochwolf: like you like your women, right? :P
[18:19:53] epochwolf: Sammitch: I am forever alone. And I tell myself that's on purpose.
[18:20:30] epochwolf: That or there's some small sliver of sanity in my brain that's protecting anyone I might try to hook up with.
[18:21:05] joonty: has joined #ruby
[18:21:08] PedramT: has joined #ruby
[18:23:09] charlemagne: has joined #ruby
[18:24:36] yardenbar: has joined #ruby
[18:25:21] mhoungbo: has joined #ruby
[18:26:05] arlek: has joined #ruby
[18:26:23] B1n4r10: has joined #ruby
[18:29:33] TomyLobo: has joined #ruby
[18:29:45] platzhirsch: has left #ruby: ()
[18:31:03] cschneid_: Is there a quickcheck / generative testing lib that's any good in ruby? I have an algorithm that's very input->output and would like to automate test cases.
[18:31:13] krobzaur: has joined #ruby
[18:32:12] apeiros: cschneid_: there's a ton. minitest and rspec are the most popular.
[18:32:16] apeiros: ?toolbox cschneid_
[18:32:25] apeiros: oh, ruby[bot] is off?
[18:32:32] cschneid_: not testing, generative / quickcheck style testing
[18:33:07] apeiros: ok, in that case - I have no idea what you mean by generative/quickcheck-style
[18:33:19] cabargas: has joined #ruby
[18:33:22] adaedra: apeiros: you don't read your mentions? :o
[18:34:13] goodcodeguy: has joined #ruby
[18:34:25] cschneid_: give it a proposition, and a generator of random data, then validate that assumption. Stuff like: "Any string's length is the same as that string's length after being reversed". Encode the invariants
[18:34:53] cschneid_: common in functional programming-land, less so in OO, since it doesn't fit onto as many problem domains.
[18:34:59] apeiros: adaedra: I do, but due to my current znc setup I may miss some
[18:35:04] chipotle: has joined #ruby
[18:35:18] adaedra: apeiros: be like me, have a highlight buffer just for those
[18:35:27] spider-mario: has joined #ruby
[18:35:35] x77686d: has joined #ruby
[18:35:48] apeiros: adaedra: as said, it's an issue with my znc setup (1 znc, 2 clients)
[18:36:02] apeiros: I know how to change it, but I haven't yet done so :-/
[18:36:17] adaedra: BOT DOWN!!!1!
[18:36:28] ruby[bot]: has joined #ruby
[18:36:28] ChanServ: +o ruby[bot]
[18:36:33] apeiros: adaedra: what?
[18:36:36] apeiros: dunno what you mean.
[18:36:48] adaedra: I see what you did there.
[18:37:17] blandflakes: has joined #ruby
[18:37:17] ljarvis: 99.9% uptime not guaranteed
[18:37:17] apeiros: I really have to figure why the heck the reconnect fails to work. it worked when testing it :-(
[18:37:48] nfk|laptop: has joined #ruby
[18:39:03] jschoolcraft: has joined #ruby
[18:39:22] Gnut: has joined #ruby
[18:39:28] ur5us: has joined #ruby
[18:40:13] mattwildig: has joined #ruby
[18:40:45] _djbkd: has joined #ruby
[18:40:55] shevy: ruby[bot] will never be as good as ruboto was
[18:41:23] apeiros: it's already better - with the single exception of its reconnect failing
[18:41:27] aweis: has joined #ruby
[18:42:42] adaedra: wanna try it, shevy? :p
[18:43:10] postmodern: has joined #ruby
[18:43:47] PedramT: has joined #ruby
[18:44:14] rikkipitt: has joined #ruby
[18:44:58] cyclonis: has joined #ruby
[18:46:29] graffix: has joined #ruby
[18:47:12] Abrin: has joined #ruby
[18:47:16] nofacade: has joined #ruby
[18:48:49] eljimmy: has joined #ruby
[18:49:44] victorzimmer: has joined #ruby
[18:50:38] shevy: adaedra I have to be registered!
[18:51:01] adaedra: Not for all features ;)
[18:51:21] ziyadb: has joined #ruby
[18:51:42] intrigueD: has joined #ruby
[18:52:35] kmckelvi1: has joined #ruby
[18:53:06] lemur: has joined #ruby
[18:55:31] mdw: has joined #ruby
[18:57:50] tAn: has joined #ruby
[19:00:42] polishdub_: has joined #ruby
[19:01:21] Yzguy: has joined #ruby
[19:02:31] replay: has joined #ruby
[19:02:52] stannard: has joined #ruby
[19:03:22] celly: has joined #ruby
[19:03:36] yqt: has joined #ruby
[19:04:07] victorzimmer: has joined #ruby
[19:05:06] chihhsin: has joined #ruby
[19:05:43] victorzi_: has joined #ruby
[19:07:18] victorzi_: has joined #ruby
[19:07:30] tomchapin: has joined #ruby
[19:07:42] synthroid: has joined #ruby
[19:07:56] polishdub: has joined #ruby
[19:08:08] victorzi_: has joined #ruby
[19:09:12] dfinninger: has joined #ruby
[19:09:43] victorzimmer: has joined #ruby
[19:10:30] victorzimmer: has joined #ruby
[19:10:38] TeresaP: has joined #ruby
[19:10:43] flughafen_: is there any easy way to make all function in a module usable or do i have to do the module_function :foobar for every one?
[19:11:04] Otto_: has joined #ruby
[19:11:07] TeresaP: Is there a good utility for copying files while preserving directory structure without using a system call?
[19:11:19] TeresaP: (And I don't mean copying entire folders. I have a list of files)
[19:11:38] TeresaP: FileUtils.cp_r seems to flatten
[19:12:02] victorzimmer: has joined #ruby
[19:12:45] Mon_Ouie: You can just have 'module_function' at the beginning of the module body and all the methods defined below it will be affected by this
[19:13:15] flughafen_: thanks Mon_Ouie
[19:13:30] DexterLB: has joined #ruby
[19:14:15] malconis: has joined #ruby
[19:14:29] baweaver: has joined #ruby
[19:14:31] Gnut_: has joined #ruby
[19:15:34] aegis3121: has joined #ruby
[19:15:51] xapak: has left #ruby: ()
[19:16:09] TomPeed: has joined #ruby
[19:17:49] voobscout: has joined #ruby
[19:18:41] bronson: has joined #ruby
[19:20:34] Seich: has joined #ruby
[19:20:53] rikkipitt: has joined #ruby
[19:23:25] Otto_: has joined #ruby
[19:25:55] wilbert: has joined #ruby
[19:26:05] idefine: has joined #ruby
[19:27:39] pdoherty: has joined #ruby
[19:29:29] binaryplease: has joined #ruby
[19:32:38] troulouliou_div2: has joined #ruby
[19:33:20] voobscout: has joined #ruby
[19:35:07] codecop: has joined #ruby
[19:36:16] mattwildig: has joined #ruby
[19:38:59] shadoi: has joined #ruby
[19:39:13] mdw: has joined #ruby
[19:40:16] IrishGringo: has joined #ruby
[19:40:21] idefine: has joined #ruby
[19:41:25] treehug88: has joined #ruby
[19:42:08] shadowfirebird: has joined #ruby
[19:42:18] eregi: has joined #ruby
[19:43:39] moos3: has joined #ruby
[19:43:57] dlitvak: has joined #ruby
[19:43:58] rbennacer: has joined #ruby
[19:43:59] rcvalle: has joined #ruby
[19:45:55] trosborn: has joined #ruby
[19:46:16] Don_John: has joined #ruby
[19:47:11] kirillzh: has joined #ruby
[19:48:37] Guest34101: has joined #ruby
[19:51:11] victorzimmer: has joined #ruby
[19:52:47] B1n4r10: has joined #ruby
[19:52:59] tulak: has joined #ruby
[19:57:39] jgpawletko: has joined #ruby
[19:58:31] cyclonis: has joined #ruby
[20:02:52] trosborn: has joined #ruby
[20:04:20] allcentury: has joined #ruby
[20:05:19] blandflakes: has joined #ruby
[20:05:30] sondr3: has joined #ruby
[20:06:12] victorzimmer: has joined #ruby
[20:06:37] blackmesa: has joined #ruby
[20:06:49] nfk|laptop: has joined #ruby
[20:09:46] SCHAAP137: has joined #ruby
[20:10:45] borodin: has joined #ruby
[20:11:42] ferr: has joined #ruby
[20:13:29] mdw: has joined #ruby
[20:14:24] mdw: has joined #ruby
[20:15:19] nogic: has joined #ruby
[20:15:35] sankaber: has joined #ruby
[20:17:13] mattwildig: has joined #ruby
[20:18:35] blackgoat: has joined #ruby
[20:19:52] charliesome: has joined #ruby
[20:22:55] aegis3121: has joined #ruby
[20:24:02] sankaber: has joined #ruby
[20:24:28] openstruct: has joined #ruby
[20:24:30] Alayde: has joined #ruby
[20:25:39] Alayde: has left #ruby: ()
[20:27:04] shevy: TeresaP hmm sure? I always thought FileUtils.cp_r models linux/coreutils "cp -r" exactly
[20:27:08] alem0lars__: has joined #ruby
[20:28:05] renderful: has joined #ruby
[20:28:09] tAn: has joined #ruby
[20:28:21] wof: has joined #ruby
[20:28:28] ElFerna: has joined #ruby
[20:28:36] Coldblackice: has joined #ruby
[20:29:20] eam: cp_r does not flatten
[20:29:49] bronson: has joined #ruby
[20:29:54] jottr: has joined #ruby
[20:30:26] benlieb: has joined #ruby
[20:30:33] diegoviola: has joined #ruby
[20:31:04] yardenbar: has joined #ruby
[20:31:18] n_blownapart: has joined #ruby
[20:33:26] LoneHermit: has joined #ruby
[20:35:34] Monkey_: has joined #ruby
[20:35:35] rht: has joined #ruby
[20:36:56] ZerGabriel: has joined #ruby
[20:37:34] yqt: has joined #ruby
[20:38:42] TeresaP: shevy I'm on a mac
[20:39:08] TeresaP: I don't know if it matters
[20:39:10] sandstrom: has joined #ruby
[20:39:14] TeresaP: But it definitely flattened
[20:39:24] TeresaP: I ended up having to use rsync
[20:40:08] eam: TeresaP: can you share a use case? It doesn't flatten on osx for me
[20:42:18] baweaver: has joined #ruby
[20:43:29] learning: has joined #ruby
[20:43:35] TeresaP: gcno_files = Dir["{[!CodeCoverage/]**}/**/{[!ObjectiveC]*}.gcno"]
[20:43:44] marr: has joined #ruby
[20:43:45] TeresaP: FileUtils.cp_r(gcno_files, folder_name)
[20:43:50] eam: TeresaP: ah, that's the problem
[20:43:59] TeresaP: I also tried a loop
[20:44:07] eam: TeresaP: cp_r takes the form of dir1, dir2
[20:44:15] TeresaP: Yeah I'm copying individual files
[20:44:19] eam: if you pass it a list of files and a destination it will place those files in the destination
[20:44:26] TeresaP: [11:11] <TeresaP> (And I don't mean copying entire folders. I have a list of files)
[20:44:29] millerti: has joined #ruby
[20:44:30] dlitvak_: has joined #ruby
[20:44:36] eam: neither cp nor cp -r will have the behavior you're looking for
[20:45:00] eam: the reason is: the recursive path created at the target is only the portion which was recursed by cp
[20:45:01] haylon: has joined #ruby
[20:45:15] TeresaP: You'd think there'd be something available to do this
[20:45:31] TeresaP: I feel like the way I did it is going to be less than stellar performance-wise
[20:45:31] eam: given /foo/bar/baz/qux/file, cp -r /foo/bar/baz /stuff will create /stuff/qux/file
[20:46:06] eam: TeresaP: er, will create /stuff/baz/qux/file
[20:46:16] eam: you'll drop the /foo/bar prefix
[20:46:34] rbennacer: has joined #ruby
[20:47:12] eam: TeresaP: what you can do is use basename, mkdir it yourself, and individually cp
[20:47:18] eam: should be roughly the same performance
[20:47:27] x77686d: has joined #ruby
[20:50:31] Dimik: has joined #ruby
[20:50:36] celly: has joined #ruby
[20:50:43] dfinninger: has joined #ruby
[20:50:53] TeresaP: Sounds about the same as https://gist.github.com/TeresaP/d8a2ca9c2dfa26c4da69
[20:50:58] baweaver: has joined #ruby
[20:52:20] TeresaP: Thanks for the sanity check
[20:52:26] shadoi: has joined #ruby
[20:53:16] hxegon: has joined #ruby
[20:53:49] lemur: has joined #ruby
[20:53:54] pawnbox: has joined #ruby
[20:54:06] eam: sounds right
[20:54:42] stannard: has joined #ruby
[20:54:46] eam: TeresaP: you should be able to: rsync -R #{files.join " "} #{folder_name}
[20:54:57] eam: if you're concerned about fork/exec overhead
[20:55:11] eam: (and, you may want to shellquote
[20:56:22] mhib: has joined #ruby
[20:56:44] mattwildig: has joined #ruby
[20:56:59] intrigueD: has joined #ruby
[20:56:59] intrigueD: has joined #ruby
[20:57:40] skade: has joined #ruby
[20:57:44] mhib: has joined #ruby
[20:59:01] nando293921: has joined #ruby
[20:59:09] jfutbol: has joined #ruby
[20:59:27] kobain: has joined #ruby
[21:01:45] sdwrage: has joined #ruby
[21:02:04] TeresaP: That's a good idea eam
[21:02:05] Sheperson: has joined #ruby
[21:02:13] dfinninger: has joined #ruby
[21:02:54] Sheperson: is it possible (and safe) to use Ruby’s built in keywords as hash keys?
[21:03:44] Sheperson: for example hash = { true => 'something' }
[21:03:58] al2o3-cr: ?try sheperson
[21:04:11] al2o3-cr: not here either :(
[21:04:21] Sheperson: I can do that in IRB
[21:04:37] al2o3-cr: true is not a keyword
[21:04:40] Sheperson: and hash[true] returns ‘something'
[21:04:57] eam: al2o3-cr: yes it is
[21:05:05] al2o3-cr: eam: is it?
[21:05:08] Sheperson: and I am confused
[21:05:12] yqt: has joined #ruby
[21:05:25] eam: sheperson: the way to reason about this isn't whether something is a keyword or not - rather, think about what object it represents
[21:05:48] Sheperson: so it is possible eam
[21:05:50] mondok: what di you think , how fast will work ruby script, that initialize 5M array of rand(int)
[21:06:03] mondok: rand(20000)
[21:06:13] eam: sheperson: sure. "true" returns an instance of TrueClass, right?
[21:06:16] jenrzzz: has joined #ruby
[21:06:22] Cohedrin: has joined #ruby
[21:06:42] Sheperson: al2o3-cr: http://docs.ruby-lang.org/en/2.2.0/keywords_rdoc.html
[21:06:42] eam: I'd reword your question as: "Can an instance of trueclass be used as a hash key?" and I'd reply "yes almost all objects can be"
[21:06:54] Sheperson: eam: thanks
[21:07:00] eam: sheperson: Hash requires that objects used as key implement the #hash method
[21:07:10] al2o3-cr: eam: yep, you're right
[21:07:39] Sheperson: and true does implement #hash
[21:07:40] eam: true is the same value as, say (1 == 1)
[21:07:42] blackmes1: has joined #ruby
[21:07:49] eam: >> [(1 == 1).hash, true.hash]
[21:07:55] al2o3-cr: ACTION wtf was i thinking
[21:08:00] eam: well, bot's broken but you can run that to see
[21:08:12] mondok: >>Array.new(5_000_000) { |i| rand(20000) }
[21:08:33] Sheperson: eam: Thanks
[21:08:44] Sheperson: but is it safe?
[21:08:53] eam: booleans can be used as keys
[21:09:03] Sheperson: and nil too
[21:09:30] eam: note: not all keywords will return an object
[21:09:34] Sheperson: since nil implements #hash too
[21:09:37] eam: you can't say hash[if] for example
[21:09:45] Sheperson: yes, got your point
[21:09:47] idefine: has joined #ruby
[21:10:44] xfbs: has joined #ruby
[21:10:51] cajone: has joined #ruby
[21:11:58] al2o3-cr: sheperson: sorry, was having a dumb moment right there :(
[21:13:53] floatingpoint: has joined #ruby
[21:13:57] bkxd: has joined #ruby
[21:16:35] ruby[bot]: has joined #ruby
[21:16:35] ChanServ: +o ruby[bot]
[21:17:04] Xeago: has joined #ruby
[21:17:07] dlitvak: has joined #ruby
[21:17:16] brijesh: has joined #ruby
[21:18:05] dfockler: has joined #ruby
[21:18:13] yardenbar: has joined #ruby
[21:18:38] Radar: brijesh: it didn't work please try again later
[21:18:52] eregi: has joined #ruby
[21:19:33] Radar: brijesh: please don't PM me without asking first
[21:19:44] synthroid: has joined #ruby
[21:20:18] kirillzh: has joined #ruby
[21:20:56] lpvb: has joined #ruby
[21:21:22] kirillzh: has joined #ruby
[21:24:05] pawnbox: has joined #ruby
[21:27:25] doublemalt_: has joined #ruby
[21:27:54] vF3hNGxc47h8: has joined #ruby
[21:30:23] dlitvak: has joined #ruby
[21:30:39] idefine: has joined #ruby
[21:33:08] pdoherty: has joined #ruby
[21:33:10] cdg_: has joined #ruby
[21:33:21] cdg_: has joined #ruby
[21:35:09] victorzimmer: has joined #ruby
[21:36:08] jfutbol: has joined #ruby
[21:36:34] cabargas: has joined #ruby
[21:36:48] dfinninger: has joined #ruby
[21:37:03] william3: has joined #ruby
[21:37:09] rickmasta: has joined #ruby
[21:37:44] htmldrum: has joined #ruby
[21:37:58] rickmasta: has joined #ruby
[21:39:36] whiteline: has joined #ruby
[21:40:24] _djbkd: has joined #ruby
[21:40:40] finisherr: has joined #ruby
[21:41:39] bronson: has joined #ruby
[21:42:00] brijesh: has joined #ruby
[21:42:35] kirillzh: has joined #ruby
[21:43:02] diegoviola: has joined #ruby
[21:43:47] idefine: has joined #ruby
[21:44:16] pawnbox: has joined #ruby
[21:44:50] brijesh: has joined #ruby
[21:44:58] tulak: has joined #ruby
[21:47:10] thepicard: has joined #ruby
[21:47:51] thepicard: hey, what's the difference between post and request_post in net/http?
[21:48:23] Parko: has joined #ruby
[21:48:26] ZerGabriel: has joined #ruby
[21:48:39] thepicard: I glanced at the source, and post uses send_entity, whereas request_post constructs a new Post and send it
[21:48:48] thepicard: are they actually different in any way?
[21:48:50] kobain: has joined #ruby
[21:49:13] adaedra: Let me look
[21:49:31] Guest34101: has joined #ruby
[21:49:33] adaedra: &ri Net::HTTP#post Net::HTTP#request_post
[21:49:33] `derpy: http://ruby-doc.org/stdlib-2.3.0/libdoc/net/http/rdoc/Net/HTTP.html#method-i-post, http://ruby-doc.org/stdlib-2.3.0/libdoc/net/http/rdoc/Net/HTTP.html#method-i-request_post
[21:49:40] kobain: has joined #ruby
[21:50:33] steffkes: has joined #ruby
[21:51:47] adaedra: Second one may just be a newer one, as there is an alias as #get2 for the latter
[21:53:17] devbug: has joined #ruby
[21:53:37] thepicard: why would there be a newer one?
[21:53:46] thepicard: they appear to have the same behaviour
[21:54:57] despai: has joined #ruby
[21:55:16] babblebre: has joined #ruby
[21:56:34] sudoubuntu: has joined #ruby
[21:56:41] stannard: has joined #ruby
[21:56:45] adaedra: the second one seems to yield something more complex
[21:58:11] ramortegui_: has joined #ruby
[21:58:17] adaedra: yeah, that looks like it: #post yields bits by bits of response directly, while request_post yields an object to manage the response, something better
[22:00:37] jeanlinux: has joined #ruby
[22:00:57] icarus: has joined #ruby
[22:01:01] hahuang65: has joined #ruby
[22:01:12] borodin: how do I get the value from an array of structs with key, value where key == "Name"
[22:01:25] borodin: zees ees complexictated
[22:01:33] stannard: has joined #ruby
[22:01:57] borodin: g.tags.select{|t| t.key == "Name"} gives me the struct which has key Name
[22:02:29] borodin: (actually gives me an array of one struct where key = "Name")
[22:03:00] borodin: g.tags.select{|t
[22:03:16] thepicard: adaedra: oh yeah, you're right
[22:03:20] thepicard: it's a very minor difference
[22:03:23] ljarvis: borodin: .map
[22:03:31] borodin: g.tags.select{|t| t.key == "Name"}[0].value gives me the value but it's UGLY
[22:03:35] idefine: has joined #ruby
[22:03:36] adaedra: thepicard: I wouldn't say that. The second one looks way more practical.
[22:03:40] ljarvis: borodin: you only want the first one it finds?
[22:03:49] borodin: there can only be one
[22:03:55] borodin: unique keys
[22:04:02] ljarvis: borodin: g.tags.find { |t| t.key == "Name" }&.value
[22:04:11] mdw: has joined #ruby
[22:04:17] mhoungbo: has joined #ruby
[22:04:26] victorzimmer: has joined #ruby
[22:04:26] ljarvis: which returns nil if the tag can't be found (maybe you just want to raise)
[22:05:01] thepicard: adaedra: I guess I mean, the difference is relatively small, even though they are very different
[22:05:13] thepicard: I also find it interesting that the first (older) is implemented in terms of the newer
[22:05:27] Ox0dea: thepicard: Depends on the size of the response, really.
[22:05:41] thepicard: borodin: select{...}.first.value
[22:05:50] Ox0dea: thepicard: Stop that.
[22:05:50] RahulT: has joined #ruby
[22:05:52] ljarvis: dont do that
[22:06:04] ljarvis: use .find like I suggested above
[22:06:07] stannard: has joined #ruby
[22:06:11] Ox0dea: Because #find is objectively superior here.
[22:06:24] borodin: ljarvis find doesn't work for me
[22:06:30] borodin: ruby 1.9.3
[22:06:36] ljarvis: borodin: "doesn't work" isn't hugely descriptive
[22:06:44] ljarvis: also, upgrade your Ruby..
[22:06:44] Ox0dea: 18>> [1,2,3,4].find &:even?
[22:06:45] ruby[bot]: Ox0dea: # => 2 (https://eval.in/524202)
[22:06:49] Ox0dea: #find is old.
[22:06:52] borodin: but its superior because it returns nil and doesn't blow up so i want to figure it out
[22:07:06] Ox0dea: It's superior because it stops at the first match.
[22:07:18] dlitvak: has joined #ruby
[22:07:21] borodin: is there supposed to be a space before the & ?
[22:07:24] baweaver: has joined #ruby
[22:07:32] ljarvis: borodin: the & won't work, it's 2.3 syntax
[22:07:45] borodin: syntax error unexpected '.'
[22:07:49] ljarvis: borodin: so you can just use .find { ... } and then check if it's nil, then use .value
[22:08:19] ljarvis: >> [1,3].find(&:even?)&.odd?
[22:08:20] ruby[bot]: ljarvis: # => nil (https://eval.in/524203)
[22:08:32] Ox0dea: >> nil&.nil?
[22:08:33] ruby[bot]: Ox0dea: # => nil (https://eval.in/524204)
[22:08:53] Xeago: has joined #ruby
[22:09:37] thepicard: would g.tags.find { |t| t.value if t.key == 'Name' } work?
[22:09:39] baweaver: has joined #ruby
[22:09:54] ljarvis: it doesn't make much sense
[22:10:04] thepicard: it's ugly as balls and I wouldn't do it in really code, but it seems like it would in a very sideways way
[22:10:23] ljarvis: the t.value is used in void context
[22:10:36] Ox0dea: You could "return" it with `break`, but just don't.
[22:10:38] ljarvis: actually that's not entirely true, but still
[22:10:49] ljarvis: it's true enough for this argument
[22:10:58] Cohedrin: has joined #ruby
[22:11:06] Ox0dea: It's not being thrown away at all.
[22:11:32] trosborn: has joined #ruby
[22:11:45] thepicard: oh of course, you're right
[22:13:16] ekinmur: has joined #ruby
[22:13:58] Ox0dea: Is there any semantics for #bury that would be unsurprising?
[22:14:00] ekinmur: has joined #ruby
[22:14:28] shevy: still digging for corpses!
[22:16:00] Seich: has joined #ruby
[22:17:44] ZerGabriel: has left #ruby: ()
[22:18:37] ZerGabriel: has joined #ruby
[22:18:37] trinaldi: has joined #ruby
[22:19:26] victorzimmer: has joined #ruby
[22:19:48] ZerGabriel: has left #ruby: ()
[22:20:13] ZerGabriel: has joined #ruby
[22:21:26] stevemackinnon: has joined #ruby
[22:21:27] Azure: has joined #ruby
[22:21:59] quazimodo: has joined #ruby
[22:24:21] sudoubuntu: has joined #ruby
[22:25:15] arlek: has joined #ruby
[22:25:23] rikkipitt: has joined #ruby
[22:25:25] jgpawletko: has joined #ruby
[22:26:03] jottr: has joined #ruby
[22:29:21] uris: has joined #ruby
[22:30:38] Scripore: has joined #ruby
[22:31:51] yfeldblum: has joined #ruby
[22:32:23] volty: has joined #ruby
[22:33:22] bmalum: has joined #ruby
[22:33:50] pawnbox: has joined #ruby
[22:34:53] Azure: has joined #ruby
[22:35:37] thevaliantx: has joined #ruby
[22:37:13] zeroDivisible: has joined #ruby
[22:38:46] mdw: has joined #ruby
[22:40:29] x77686d: has joined #ruby
[22:40:51] zenlot1: has joined #ruby
[22:40:54] Azure: has joined #ruby
[22:41:59] ss_much: has joined #ruby
[22:42:05] Azure: has joined #ruby
[22:43:31] camilasan: has joined #ruby
[22:45:42] tomchapin: has joined #ruby
[22:49:01] victorzimmer: has joined #ruby
[22:52:27] darkf: has joined #ruby
[22:52:39] Pumukel: has joined #ruby
[22:54:38] baweaver: has joined #ruby
[22:55:25] crst: has joined #ruby
[22:55:31] stannard: has joined #ruby
[22:55:42] kirillzh: has joined #ruby
[22:56:49] kobain: has joined #ruby
[22:57:07] workmad3: has joined #ruby