« Back to channel list

#ruby - 16 November 2015

« Back 1 day Forward 1 day »
[00:01:48] jsmith_: has joined #ruby
[00:02:27] dn5: has joined #ruby
[00:03:06] crankharder: has joined #ruby
[00:05:06] roxtrongo: has joined #ruby
[00:05:58] Success: jhass: rubygems is latest
[00:06:02] cjbischof_: has joined #ruby
[00:06:09] Success: havenwood: mingw-w64 windows :o
[00:07:42] dn5: has joined #ruby
[00:08:41] x-light: has joined #ruby
[00:10:08] slackbotgz: has joined #ruby
[00:10:56] leitz: One option would be to be able to change the career, but I'm off on it. https://github.com/LeamHall/CT_Character_Generator/blob/master/ideas/test_module.rb
[00:11:24] leitz: Line 21 fails because I don't know how to reference the current career.
[00:11:57] neonalpine: has joined #ruby
[00:14:42] rickmasta: has joined #ruby
[00:17:36] leitz: Hmm...just need a way to figure out how to load the attributes, I guess.
[00:17:41] platzhirsch: has joined #ruby
[00:18:18] northfurr: has joined #ruby
[00:20:08] zotherstupidguy: has joined #ruby
[00:20:41] SteveC: has joined #ruby
[00:20:55] northfurr: has joined #ruby
[00:21:18] Scripore: has joined #ruby
[00:22:13] Success: leitz: i gotcha
[00:22:39] Success: leitz: change career.show_rank to career:show_rank(), also try `puts career.instance_methods`
[00:22:55] zotherstupidguy: has joined #ruby
[00:23:03] jhass: Success: given you're on windows... are you sure?
[00:23:36] northfurr: has joined #ruby
[00:23:37] Success: jhass: is 2.5.0 not the latest?
[00:24:05] jhass: mmh, it is
[00:24:44] Success: leitz: also Fred.set_career(Marine) not Fred.set_career('Marine')
[00:24:58] tkuchiki: has joined #ruby
[00:25:54] Success: also mind you, i'm running the command ```ruby configure --disable-llvm -libc C:\ProgramData\msys64\usr\bin```
[00:26:02] Success: instead of ./configure
[00:27:47] rgrmatt: has joined #ruby
[00:28:25] leitz: Success, gotcha. I removed the quotes around Marine to make it not a string. 'puts career.instance_methods' gives 'show_rank, but calling it with and without () fails.
[00:30:21] leitz: https://github.com/LeamHall/CT_Character_Generator/blob/master/ideas/test_module.rb
[00:30:24] Success: leitz: https://gist.github.com/Announcement/0bc84cd657da3875e176 this works for me right now
[00:30:47] Success: leitz: also commenting out that one line works, but not without the "puts"
[00:31:12] AustinMatherne: has joined #ruby
[00:31:51] _stu_: has joined #ruby
[00:32:36] bruno-: has joined #ruby
[00:35:43] trosborn: has joined #ruby
[00:35:50] leitz: Success, it's not working for me. Mine chokes on the colon in career:show_rank.
[00:36:09] leitz: If i have it just show rank, it gives the Pirate response as that was the last module loaded.
[00:36:10] Success: leitz: what ruby version?
[00:36:32] Success: Oh, I'm on 2.2.3 or something i think, sorry that'll do it ;_;
[00:36:47] leitz: No worries! There are lots of reasons to upgrade, I just can't.
[00:36:53] IrishGringo: has joined #ruby
[00:39:51] Success: leitz: Hey, In your module definitions try changing show rank to etc. Marine.show_rank and Pirate.show_rank
[00:40:01] Success: afterwards you should be able to do career.show_rank
[00:40:12] vigintas: has joined #ruby
[00:41:18] darix: that code doesnt make sense
[00:41:23] _blizzy_: has joined #ruby
[00:41:28] dn5: has joined #ruby
[00:41:47] iBloodLust: has joined #ruby
[00:42:58] edward___: has joined #ruby
[00:43:01] iBloodLust: hello im backk
[00:43:21] edward___: is it possible to tweak the ratio at which ruby GC will malloc tombs away?
[00:44:12] edward___: I'm looking in ruby/gc.c and it's not looking that accessible.
[00:44:30] Success: edward___: use the source, luke.
[00:44:42] matcz: has joined #ruby
[00:45:58] atomical: has joined #ruby
[00:47:44] TheNet: has joined #ruby
[00:47:52] leitz: Success...gotta say it...Success!
[00:48:04] Rodya_: has joined #ruby
[00:48:08] leitz: Putting the Module name in fixed it.
[00:48:19] cashnguns: has joined #ruby
[00:48:32] neonalpine: has joined #ruby
[00:48:42] northfurr: has joined #ruby
[00:49:12] Success: leitz:sent you a pull request :)
[00:49:16] leitz: And running it again with Pirate works too. Yay!
[00:52:33] j4cknewt: has joined #ruby
[00:52:44] j4cknewt: has left #ruby: ()
[00:53:00] j4cknewt: has joined #ruby
[00:54:27] Xeago: has joined #ruby
[00:55:06] northfurr: has joined #ruby
[00:56:15] wilsonc91: has joined #ruby
[00:56:43] Success: havenwood: that appears to be working so far :)
[00:56:51] AnoHito: has joined #ruby
[00:57:33] northfurr: has joined #ruby
[00:57:39] leitz: Success, updated. https://github.com/LeamHall/CT_Character_Generator/blob/master/ideas/test_module.rb
[00:59:03] leitz: Okay, time to wander off and ponder the refactor.
[00:59:17] leitz: I need to work on my tests and figure out cucumber as well.
[00:59:26] Tref: has joined #ruby
[01:00:39] moeabdol: has joined #ruby
[01:00:42] aevitas: has joined #ruby
[01:02:04] dviola: has joined #ruby
[01:02:29] iBloodLust: 0x0dea im going to implement your idea now, thank you btw
[01:05:51] roxtrongo: has joined #ruby
[01:06:53] jdawgaz: has joined #ruby
[01:08:02] IrishGringo: has joined #ruby
[01:08:05] waka: has joined #ruby
[01:08:38] mloy: has joined #ruby
[01:09:04] iBloodLust: aw tick is a method
[01:15:16] djbkd: has joined #ruby
[01:18:15] zeroDivisible: has joined #ruby
[01:19:25] northfurr: has joined #ruby
[01:19:48] devoldmx: has joined #ruby
[01:19:55] _seanc_: has joined #ruby
[01:19:57] Musashi007: has joined #ruby
[01:23:05] neonalpine: has joined #ruby
[01:23:42] neonalpine: has joined #ruby
[01:26:01] Tref: has joined #ruby
[01:26:02] nertzy: has joined #ruby
[01:27:26] IrishGringo: has joined #ruby
[01:28:14] allcentu1: has joined #ruby
[01:30:19] anthony_: has joined #ruby
[01:30:27] Mon_Ouie: has joined #ruby
[01:31:36] tkuchiki: has joined #ruby
[01:31:41] anthony_: has joined #ruby
[01:31:48] hahuang65: has joined #ruby
[01:31:59] abbe: has joined #ruby
[01:33:41] marsjaninzmarsa: has joined #ruby
[01:34:06] iBloodLust: alright it works sort of
[01:34:07] bjmllr: has joined #ruby
[01:34:21] htmldrum: has joined #ruby
[01:34:27] crdpink: has joined #ruby
[01:34:35] iBloodLust: but the animation is played on the interval
[01:34:37] bruno-: has joined #ruby
[01:34:40] iBloodLust: instead of frame
[01:34:46] Ikri: has joined #ruby
[01:35:04] Liam`: has joined #ruby
[01:35:07] davedev24: has joined #ruby
[01:36:09] TvL: has joined #ruby
[01:36:09] iBloodLust: now it works! i wish 0x0 was online so i could thank him
[01:36:16] hostess: has joined #ruby
[01:37:27] quazimodo: has joined #ruby
[01:37:32] nchambers: has joined #ruby
[01:37:32] cashnguns: has joined #ruby
[01:37:33] jokke: has joined #ruby
[01:37:38] Billias: has joined #ruby
[01:37:42] drbrain: has joined #ruby
[01:37:45] twe4ked: has joined #ruby
[01:37:52] tris: has joined #ruby
[01:37:52] tylersmith: has joined #ruby
[01:37:54] Seich: has joined #ruby
[01:38:03] johnzorn: In rails form_for, when I add url: articles_path should it not change the form action to /articles/create> It changed it from /articles/new to just /articles what's the best way to debug this sort of thing?
[01:38:04] Laaw: has joined #ruby
[01:38:04] schaary: has joined #ruby
[01:38:05] nullwarp: has joined #ruby
[01:38:06] blackjid: has joined #ruby
[01:38:07] epochwolf: has joined #ruby
[01:38:08] djbender: has joined #ruby
[01:38:09] DanKnox[away]: has joined #ruby
[01:38:10] danneu: has joined #ruby
[01:38:13] bryancp: has joined #ruby
[01:38:15] manveru: has joined #ruby
[01:38:16] rideh: has joined #ruby
[01:38:16] catbusters: has joined #ruby
[01:38:19] charles81: has joined #ruby
[01:38:23] avdi: has joined #ruby
[01:38:23] jimeh: has joined #ruby
[01:38:24] melter: has joined #ruby
[01:38:25] constantinexvi: has joined #ruby
[01:38:25] segmond: has joined #ruby
[01:38:25] sparr: has joined #ruby
[01:38:26] DarkBushido: has joined #ruby
[01:38:27] null2: has joined #ruby
[01:38:34] alxndr: has joined #ruby
[01:38:35] ELCALOR: has joined #ruby
[01:38:41] korolyov: has joined #ruby
[01:38:42] bf4: has joined #ruby
[01:38:42] Nightmare: has joined #ruby
[01:38:49] cschneid: has joined #ruby
[01:38:51] ndrst: has joined #ruby
[01:38:55] adambeynon: has joined #ruby
[01:39:01] rfv: has joined #ruby
[01:39:03] n1ftyn8_: has joined #ruby
[01:39:10] jhass: has joined #ruby
[01:39:11] northfurr: has joined #ruby
[01:39:14] Diabolik: has joined #ruby
[01:39:15] jeregrine: has joined #ruby
[01:39:17] prasselpikachu: has joined #ruby
[01:39:18] musicmatze: has joined #ruby
[01:39:23] vcoinminer: has joined #ruby
[01:39:25] iooner: has joined #ruby
[01:39:36] havenwood: ?rails johnzorn
[01:39:36] ruboto: johnzorn, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[01:39:38] apipkin: has joined #ruby
[01:39:38] jevs: has joined #ruby
[01:39:44] jrhorn: has joined #ruby
[01:39:44] jmcc: has joined #ruby
[01:39:48] jlyndon: has joined #ruby
[01:40:03] hellschreiber_: has joined #ruby
[01:40:03] johnzorn: ahh sorry...
[01:40:04] thesheff17: has joined #ruby
[01:41:38] fowlduck: has joined #ruby
[01:41:48] northfurr: has joined #ruby
[01:42:42] frankS2: has joined #ruby
[01:43:09] shelling__: has joined #ruby
[01:43:22] jmhmccr: has joined #ruby
[01:43:23] joaomdmoura: has joined #ruby
[01:43:23] lacrosse: has joined #ruby
[01:43:23] boxrick1: has joined #ruby
[01:43:36] Guest85414______: has joined #ruby
[01:43:40] jabreity: has joined #ruby
[01:43:52] spastorino: has joined #ruby
[01:43:53] zemmihates: has joined #ruby
[01:43:53] colstrom: has joined #ruby
[01:43:53] rflot: has joined #ruby
[01:43:53] Iacobus: has joined #ruby
[01:43:57] troter____: has joined #ruby
[01:44:15] KnownSyntax: has joined #ruby
[01:44:29] mrsolo: has joined #ruby
[01:44:41] northfurr: has joined #ruby
[01:45:07] aps: has joined #ruby
[01:45:34] bove: has joined #ruby
[01:45:50] tpendragon: has joined #ruby
[01:46:07] elliottcable: has joined #ruby
[01:46:19] ggherdov: has joined #ruby
[01:46:40] skarn: has joined #ruby
[01:47:53] prosodyCagain: has joined #ruby
[01:48:41] TDJACR: has joined #ruby
[01:48:42] Rodya_: has joined #ruby
[01:48:54] iBloodLust: freepascal looks like a fun language
[01:49:05] amirpro: has joined #ruby
[01:49:11] havenwood: ibloodlust: better than paidpascal?
[01:49:46] machty: has joined #ruby
[01:49:53] iBloodLust: yeah paidpascal isnt even really all that crossplatform
[01:50:16] iBloodLust: *cough* *cough* delphi *cough* *cough"*
[01:50:54] haraoka: has joined #ruby
[01:51:14] iBloodLust: is freepascal really that underrated a language?
[01:51:22] iBloodLust: god it looks like a desert full of water
[01:51:44] chipotle: has joined #ruby
[01:55:35] aevitas: has joined #ruby
[02:00:49] roxtrongo: has joined #ruby
[02:04:58] malconis: has joined #ruby
[02:05:25] devl: has joined #ruby
[02:12:25] favadi: has joined #ruby
[02:12:47] mghaig: has joined #ruby
[02:13:56] Alayde: has joined #ruby
[02:13:59] jordanm: has joined #ruby
[02:14:03] Alayde: has left #ruby: ()
[02:14:32] cdg: has joined #ruby
[02:15:30] Azure: has joined #ruby
[02:15:33] shakes: has joined #ruby
[02:17:49] mghaig_: has joined #ruby
[02:18:03] longfeet: has joined #ruby
[02:24:15] rgrmatt: has joined #ruby
[02:25:42] dlitvak: has joined #ruby
[02:25:47] centrx: has joined #ruby
[02:26:11] nertzy: has joined #ruby
[02:26:26] neonalpine: has joined #ruby
[02:26:41] bb010g: has joined #ruby
[02:27:39] dn5: has joined #ruby
[02:28:20] devbug: has joined #ruby
[02:28:36] dn5: If I have json: { "list":[ "todo":"xxxx" ] } can I append data to the key "todo"?
[02:29:50] Ox0dea: dn5: Ruby implicitly freezes String keys.
[02:30:04] Ox0dea: >> h = {}; h['foo'] = 42; h.keys[0].frozen?
[02:30:05] ruboto: Ox0dea # => true (https://eval.in/469012)
[02:30:09] favadi: has joined #ruby
[02:30:26] Ox0dea: You'll have to use my Object#thaw if you really want to do this, but you probably don't.
[02:31:05] dn5: Ox0dea: .frozen? What does that method do?
[02:31:34] Ox0dea: dn5: It tells you whether or not the receiver is frozen. :P
[02:31:45] Ox0dea: "Freezing" an object means preventing its modification.
[02:32:02] dn5: Ox0dea: I don't want to freeze the key :p I want to append data to it.
[02:32:28] Ox0dea: dn5: You have no say in the matter; as demonstrated, String keys are frozen without your explicit consent.
[02:32:48] Ox0dea: And you can't modifying a frozen String without first thawing it.
[02:33:10] dn5: ahh so, is there a special method to unfreez the key?
[02:33:23] Ox0dea: dn5: Yes, but it's not available out of the box.
[02:33:34] Ox0dea: dn5: https://eval.in/468157
[02:33:46] Ox0dea: Whoops. That's the wrong one.
[02:34:17] Ox0dea: Here we go: https://eval.in/468965
[02:34:52] Ox0dea: You have to use the Fiddle standard library to muck about under the hood, but it's "safe".
[02:35:18] Ox0dea: You really should reconsider whether you actually want to mutate keys, though.
[02:35:34] bruno-: has joined #ruby
[02:35:36] neanderslob: has joined #ruby
[02:35:48] nertzy2: has joined #ruby
[02:35:52] dn5: Ox0dea: Thanks, I'll check that out. Also, why should I reconsider the option? Is there alternative?
[02:36:17] Ox0dea: dn5: Well, could you say why you think you need to?
[02:37:26] VeryBewitching: has joined #ruby
[02:39:59] ||KKK||Dartmouth: has joined #ruby
[02:40:16] dn5: Ox0dea: Well, I don't know is there alternative way of appending to key without adding a new one.
[02:40:22] ||KKK||Dartmouth: what is the most elite Ruby hackathon in the world?
[02:40:52] ruboto: +q ||KKK||Dartmouth!*@*
[02:40:52] ruboto: -o ruboto
[02:41:08] dlitvak_: has joined #ruby
[02:41:17] Ox0dea: dn5: No, not if it's a String.
[02:41:24] Ox0dea: Are you going to be transforming all of the keys?
[02:42:13] favadi: has joined #ruby
[02:43:37] cdg: has joined #ruby
[02:43:53] jrhorn: has joined #ruby
[02:44:02] dn5: Ox0dea: It is a string, and no, I want only one key for particular "todo".
[02:44:27] rickmasta: has joined #ruby
[02:44:27] dn5: key "todo" => key "list" => "list values"
[02:44:52] Ox0dea: I'm afraid you'll just have to add a new element and delete the old one.
[02:45:00] Ox0dea: Or use Object#thaw, of course.
[02:45:01] dn5: key "todo" => key "list" => "list values"
[02:45:17] dn5: Ox0dea: Yep, read the values and add new one to that.
[02:46:16] ChanServ: +o havenwood
[02:46:32] havenwood: +b *!*@172.56.41.184
[02:46:39] ChanServ: -o havenwood
[02:47:40] Ox0dea: >> h = {'foo' => [1, 2, 3]}; h['foobar'] = h.delete('foo'); h
[02:47:41] ruboto: Ox0dea # => {"foobar"=>[1, 2, 3]} (https://eval.in/469013)
[02:47:49] Ox0dea: dn5: That's probably the best way to go about it if it's really what you wanna do.
[02:48:18] dented42: has joined #ruby
[02:48:23] Ox0dea: Wanting to modify a single key is still a little weird, though.
[02:48:55] moeabdol: has joined #ruby
[02:49:27] Fire-Dragon-DoL: has joined #ruby
[02:50:03] dn5: Ox0dea: Thats excatly what I want. I'll show you later why I need it.
[02:50:36] Ox0dea: Well, all right.
[02:50:54] kiki_lamb: Request: Can someone please recomemnd me a parsing gem? I've done lots of parsing in other languages, just not in ruby, so i'm not sure what gem to look for.
[02:51:04] Ox0dea: kiki_lamb: whitequark/ruby_parser
[02:51:16] Ox0dea: Oh, you meant for parsing other languages.
[02:51:19] Ox0dea: Citrus is pretty good.
[02:51:38] Ox0dea: It's written by Michael Jackson! https://github.com/mjackson/citrus
[02:51:49] kiki_lamb: Yes, I want to parse a language of my own.
[02:51:53] Ox0dea: See above.
[02:52:02] kiki_lamb: kk, i'll look at that one.
[02:52:35] dented42: has left #ruby: ()
[02:53:38] kiki_lamb: My language is currently implemented as a ruby DSL with some preprocessing applied to the source file first, but that's becoming restrictive as it gets more complex, so i'd like to replace the preprocessing stages with a legit parser.
[02:55:05] Ox0dea: >> 0x900d1dea # kiki_lamb
[02:55:06] ruboto: Ox0dea # => 2416778730 (https://eval.in/469014)
[02:55:37] sankaber: has joined #ruby
[02:55:51] x-light: has joined #ruby
[02:56:21] dlitvak: has joined #ruby
[02:59:43] unknowns2k2: has joined #ruby
[03:02:00] kiki_lamb: Ox0dea: what's that number for? >_>
[03:02:06] diegoaguilar: has joined #ruby
[03:02:08] Ox0dea: kiki_lamb: It says "good idea" in hexadecimal.
[03:02:30] kiki_lamb: derp, lol, i didn't try to read it as leetspeak. okay.
[03:04:02] kiki_lamb: And yeah, gonna need it soon enough... for now, the input files are simple enough that I can get away with preprocesing the source to make valid Ruby out of it, but some of the features i've got planned will warrant more complex syntax that I'm dreading the idea of handling with the preprocessor
[03:04:16] kiki_lamb: example input file for the current syntax -> https://github.com/kiki-lamb/drumtool/blob/master/input/sample.dt
[03:04:21] mattwildig: has joined #ruby
[03:04:43] vptr: has joined #ruby
[03:05:13] A124: has joined #ruby
[03:06:29] mghaig: has joined #ruby
[03:08:55] kiki_lamb: Ox0dea: neat, citrus looks like it'll proabably do the trick.
[03:09:16] Ox0dea: kiki_lamb: Well, given the simplicity of your syntax, it might even be overkill.
[03:09:23] ValicekB_: has joined #ruby
[03:09:23] Ox0dea: This might be of some interest to you: https://eval.in/455629
[03:09:27] dain: has joined #ruby
[03:09:41] Ox0dea: If you were willing to make a few concessions, drumtool programs could probably be interpreted as pure Ruby.
[03:10:19] Ox0dea: You could redefine Fixnum#- and use `1-2-3` instead of `1 2 3` and you'd be able to capture the arguments.
[03:10:28] wilsonc91: has joined #ruby
[03:10:50] shevy: it's time to lose sanity again
[03:10:53] Ox0dea: Here it comes!
[03:11:14] karapetyan: has joined #ruby
[03:11:32] mary5030: has joined #ruby
[03:11:58] kiki_lamb: Ox0dea: i feel like i'm gonna push up the limits of that really quickly, though
[03:12:15] krz: has joined #ruby
[03:12:19] Ox0dea: kiki_lamb: You're probably right, but Ruby is remarkably malleable.
[03:12:58] Ox0dea: Here's Haskell's list comprehension syntax bolted onto Ruby with the single concession of having to prefix the Array with `+`: https://gist.github.com/andkerosine/3356675
[03:13:30] Ox0dea: (As shevy subtly hinted, I'm giving you terrible ideas that you should ignore completely.)
[03:13:37] kiki_lamb: Ox0dea: like, on should be able to (and currently) does accept any mixture of things that are valid arguments to it, not just if they're all the same type... like, 'on 8 %3 %x10 { t < 8 && some_arbitray_method }' needs to be valid
[03:14:37] DelDotB: has joined #ruby
[03:14:57] Ox0dea: I'm not sure I see how types should have anything to do with it?
[03:15:05] Ox0dea: You can redefine #- on everything! :P
[03:15:25] kiki_lamb: hahah, i suppose
[03:15:42] Ox0dea: And with refinements, you can even localize your changes to just the place where you're interpreting dt.
[03:16:09] Ox0dea: Again, you probably shouldn't, but it's probably entirely feasible.
[03:17:01] kiki_lamb: some of the arguments don't syntactically look like any valid ruby object in the raw source, though, so somewhere along the line, something needs to make them into something valid (currently, the preprocessor is what does this)
[03:17:15] kiki_lamb: like, '%x10' is kind of just nonsense in pure ruby
[03:17:21] VeryBewitching: has joined #ruby
[03:17:24] SumoBoy: has joined #ruby
[03:17:58] kiki_lamb: right now, the preprocessor will take that and transform it into 'Proc.new { |t| t % 0x10 == 0 }'
[03:18:49] rakm: has joined #ruby
[03:20:33] devoldmx: has joined #ruby
[03:20:33] MeMoc: has joined #ruby
[03:20:40] Ox0dea: kiki_lamb: I looked at the processor; you went all the way. :P
[03:20:44] Ox0dea: *preprocessor
[03:20:51] kiki_lamb: Ox0dea: hahah, I tried.
[03:21:20] kiki_lamb: example of preprocessor output, and some output as it spits out some MIDI -> https://gist.github.com/kiki-lamb/4e4eb27e0eea970feb09
[03:21:41] mghaig: has joined #ruby
[03:22:26] Ox0dea: It seems like most of the pain is coming from arguments being separated by whitespace?
[03:23:16] Ox0dea: I certainly won't stop you from writing your first parser, but this really feels like it should be a DSL.
[03:23:39] Ox0dea: Or, rather, that it *could* be a very nice DSL.
[03:24:58] kiki_lamb: well, the output of the preprocessor is run as a DSL inside ruby
[03:25:20] kiki_lamb: it's just a little ungainly for live manipulation
[03:26:17] kiki_lamb: most of the preprocessing is in the name of tersity, since this is intended for livecoding - i.e., the idea is to be able to perform music live by manipulating the source code in real time as it plays
[03:26:25] kiki_lamb: so every character saved, the better
[03:27:04] kiki_lamb: hence why the preprocessor implements stuff like indentation-defined blocks, abbreviations for all the keywords, shortcuts for trigger proc definitions, indentation-defined multiline comments, etc.
[03:27:15] neonalpine: has joined #ruby
[03:27:41] Alayde: has joined #ruby
[03:27:54] kiki_lamb: all those features are, basically, making the input code shorter so that you can change things more quickly while performing
[03:30:25] kiki_lamb: There are some things there I should move in each direction, though, probably
[03:30:46] kiki_lamb: like, the abbreviation handling could probably occur inside the DSL via method_missing instead of in the preprocessor
[03:31:39] malconis: has joined #ruby
[03:31:39] kiki_lamb: and there are parts of the block handling that should maybe move the other way
[03:32:08] Ox0dea: kiki_lamb: I think you'd like this very much: http://overtone.github.io/
[03:32:30] Ox0dea: They don't go at quite the pace you're looking for, I'm guessing, but there's likely much inspiration to be found there.
[03:34:26] Ox0dea: I'm having trouble finding the live demo that first exposed me to Overtone. :<
[03:34:48] kiki_lamb: cool, I'll take a look. I don't mind taking inspiration/ideas from other peoples stuff, but I still wanna build my own :)
[03:36:07] Ox0dea: kiki_lamb: Oh, certainly, it's just that Clojure has a way of showing you the power of simplicity. :)
[03:36:40] bruno-: has joined #ruby
[03:37:09] EminenceHC: has joined #ruby
[03:37:10] Ox0dea: The demo I'm thinking of felt very "dynamic" (and sounded quite good to boot) in spite of the minuscule amount of code used to create the experience.
[03:37:16] kiki_lamb: I'm one of those people that's kind of wary using tools that I don't feel like I understand well, and in the past when I've encountered other peoples livecoding tools, they're usually 'big' enough that I don't feel like I really know what's going on.
[03:37:40] kiki_lamb: Even if you tech me how to spit some notes out, I'm still gonna be wondering how doing (insert steps) actually results in notes coming out the other end
[03:38:24] kiki_lamb: Part of the enjoyment I've been getting from playiwng with my own tool (hah) comes from having a complete understanding of the entire process that's occuring
[03:38:47] kiki_lamb: It's nice to be able to, in my head, break down every single step that happens between me typing in an expression and a MIDI note being shot out the other side.
[03:38:54] devl: has joined #ruby
[03:39:36] Ox0dea: kiki_lamb: You're forgetting so much of the hidden complexity, but I take your point. :)
[03:40:05] Ox0dea: I certainly wasn't advising you to drop drumtool and pick up Overtone.
[03:40:45] kiki_lamb: sure, but a lot of the hidden complexity can be dismissed as 'implementation details of the surrounding programming environment', it's stuff that's kind of outside the actual high level problem domain
[03:41:03] yeticry: has joined #ruby
[03:41:19] colegatron: has joined #ruby
[03:43:06] chipotle: has joined #ruby
[03:43:21] adac: has joined #ruby
[03:43:30] htmldrum: has joined #ruby
[03:46:12] Oli`: has joined #ruby
[03:47:37] kiki_lamb: Ox0dea: ooh, but this item, also in overtone's github, I might steal or borrow from -> https://github.com/overtone/emacs-live
[03:48:13] kiki_lamb: Right now I'm just hammering the save keychord a lot >_>
[03:49:06] Ox0dea: Chording is for masochists. :P
[03:49:40] kiki_lamb: and mode-switching is for people with two much time on their hands :)
[03:50:41] SirFunk: IS there any way to, say delete contents of a directory when a process exits? I realize I can rescue SystemExit or Interrupt but I would have to scope the whole program in that, no?
[03:50:48] SirFunk: aka (can't do it from a gem)
[03:50:50] cmoneylulz: has joined #ruby
[03:51:01] mary5030: has joined #ruby
[03:51:03] Ox0dea: SirFunk: No, you can register an exit handler with Kernel#at_exit or the END keyword.
[03:51:26] Ox0dea: END is more for when you're using Ruby as a better awk, so go with #at_exit.
[03:51:51] chipotle: i know apple has a generous 15 day return policy but i don't want to spend ~2 dayac. how do i see how much memory each app is actually using in activity monitor?
[03:52:00] chipotle: free -m doesn't work
[03:52:05] Mon_Ouie: has joined #ruby
[03:52:17] chipotle: in activity monitor is it private memory or compressed memory?
[03:53:05] Ox0dea: http://searchengineland.com/guide/how-to-use-google-to-search
[03:59:55] adam_: Anybody know of a gem (or stdlib?) that would allow me to accept command line args similar to `rails`? Save me from ARGV+OptionParser maybe?
[04:00:47] adam_: Actually, looks like Thor might be possible... unless someone has an alternative.
[04:01:15] Ox0dea: adam_: Thor is great for subcommand CLIs.
[04:01:22] devoldmx: has joined #ruby
[04:02:08] mary5030: has joined #ruby
[04:04:57] devl: has joined #ruby
[04:07:26] wilsonc91: has joined #ruby
[04:07:36] jrhorn: has joined #ruby
[04:09:33] jdawgaz: has joined #ruby
[04:11:01] braincrash: has joined #ruby
[04:17:35] kp666: has joined #ruby
[04:19:59] vptr: Hmm. Rust is interesting.
[04:20:05] mary5030: has joined #ruby
[04:27:22] Ox0dea: vptr: Go on...
[04:27:25] peterhu: has joined #ruby
[04:29:34] neonalpine: has joined #ruby
[04:30:14] rickmasta: has joined #ruby
[04:30:25] z3uS: has joined #ruby
[04:32:06] NeverDie: Rust is going to overtake Ruby.
[04:32:10] slawrence00: has joined #ruby
[04:33:09] vptr: NeverDie: I doubt that's going to happen.
[04:33:16] vptr: C++ perhaps -- eventually.
[04:33:19] fedexo: has joined #ruby
[04:33:25] NeverDie: Yeah I'm just kidding.
[04:33:34] MichaelPorter_: has joined #ruby
[04:33:34] NeverDie: And I think it'll most probably just serve as a C++ replacement.
[04:33:39] NeverDie: Eventually....
[04:33:53] vptr: If it succeeds, it would probably sit alongside Ruby, and Python, but by that point, the ecosystem would've been built up enough around Rust not to lose much by switching from either Python or Ruby.
[04:34:09] Ox0dea: vptr: Wat.
[04:34:26] vptr: Well, people actively want that. A C++ replacement, and Rust seems to fit the desirabilities.
[04:34:46] vptr: A lot of the features of Rust are inherently specifically targets to the pain points of C++.
[04:35:00] shinnya: has joined #ruby
[04:35:21] vptr: Rust manages to sooth that enough for those forced to deal with C++ to desire investing in it. But, no one is really looking for a Ruby, or Python replacement.
[04:35:34] rgrmatt: has joined #ruby
[04:35:44] leafybasil: has joined #ruby
[04:35:46] Ox0dea: You sound as if you hold the belief that a language is its libraries.
[04:35:49] vptr: But we're looking at a decade, or possibly more.
[04:36:14] tmtwd: has joined #ruby
[04:36:55] moeabdol: has joined #ruby
[04:36:57] qiukun: has joined #ruby
[04:37:10] x-light: has joined #ruby
[04:37:14] vptr: 3652: What often counts is the ecosystem around the language, its availability of modules, frameworks, packages, librariess, et al. Ruby fortunately has an impressive set of nearly everything concievable with gems. JS has npm [and all that bower nonsense], meteor, webkit, phone-gap. Perl has CPAN, JVM.
[04:37:37] aevitas: has joined #ruby
[04:37:46] baweaver: has joined #ruby
[04:37:56] Ox0dea: You're the second person who's failed to properly un-hexadecimal my nick.
[04:38:07] bruno-: has joined #ruby
[04:38:08] vptr: Rust as-is has little more than a BETA release of a package management system. But it's gaining quiet albeit wide support and traction.
[04:38:21] vptr: Did the last person do it from memory?
[04:39:59] iateadonut: has joined #ruby
[04:41:28] Ox0dea: > I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
[04:41:36] Musashi007: has joined #ruby
[04:41:48] sp3: apprehend confusion?
[04:41:49] shevy: too many people want a C++ replacement... didn't we have that in Java already? Then C#? Then D? Now Rust? Hmmmmm....
[04:42:05] Ox0dea: sp_: Ol' Chucky Babbs lived way back when they talked funny.
[04:42:08] vptr: shevy: Well, C++ is a bit of a disaster.
[04:42:55] Ox0dea: People are advised to "use the good parts" of JavaScript and that's worked out well enough; the same could be (and is) largely true for quality C++ software.
[04:43:16] vptr: What do you do, with C++?
[04:43:21] Ox0dea: I don't write C++.
[04:43:26] vptr: And Javascript is an excellent language.
[04:43:35] vptr: Ah, so you're just speaking from hearsay.
[04:43:46] Ox0dea: This is getting ad hominem way too quickly.
[04:44:14] Ox0dea: I asked you to explain why you felt Rust to be interesting and you ignored me entirely; why?
[04:45:23] bucaran: has joined #ruby
[04:45:25] vptr: A mere glance at it blows away just how expressive it seems.
[04:45:32] Ox0dea: How very insightful.
[04:45:58] vptr: It's still fully type-checked, and statically dispatched. There aren't any slow reflection etchniques.
[04:46:16] vptr: I feel a certain way about static vs. dynamic language typing.
[04:46:32] bucaran: ui question, Im writing a tool that could have both a LIST and SEARCH option, like `tool list [OPTIONS]` and `tool search [OPTIONS]`
[04:46:38] vptr: I'm glad that you feel insighted :)
[04:46:42] Ox0dea: bucaran: Thor.
[04:46:43] bucaran: but I think I could very well merge those two, into only list
[04:47:04] bucaran: what do you think? do you think it is better to differentiate them both? list and search
[04:47:09] Ox0dea: bucaran: You could do `list` when `search` is invoked with no parameter?
[04:47:11] bucaran: or do you fancy the idea of only one ?
[04:47:23] Ox0dea: `gem search` is basically `gem list`, for instance.
[04:47:24] wilsonc91: has joined #ruby
[04:47:39] ChanServ: ChanServ kicked jimbow: is banned from this channel
[04:47:47] bucaran: there is a `gem list` though
[04:47:59] Ox0dea: Yeah, that's an unfortunate coincidence.
[04:48:02] bucaran: point is, to reduce cognitive load from users
[04:48:17] bucaran: there are already a lot of other "action verbs" in the tool
[04:48:26] Ox0dea: Then what's one more?
[04:48:26] sp3: I wish people would stick to `man` pages. Instead of optargs with 'h' fields.
[04:49:01] Ox0dea: bucaran: Making `list` == `search *` is pretty reasonable and intuitive.
[04:49:25] bucaran: I see, yes, that was the default behavior of calling search until now
[04:49:36] shevy: well it does not sound synonymous
[04:50:18] bucaran: imagine brew had only a list or search action, but not both
[04:50:23] bucaran: do you think that would make it less intuitive?
[04:50:29] bucaran: or less user friendly?
[04:50:38] shevy: how do you list something with search?
[04:50:41] bucaran: brew list --search=word
[04:50:50] shevy: so it has both again?
[04:51:00] Laaw: i dunno if ive ever used list
[04:51:01] Ox0dea: bucaran: `gem list -r` == `gem search -r`, and it makes perfect sense.
[04:51:20] terminalrecluse: has joined #ruby
[04:51:29] Tref: has joined #ruby
[04:52:29] Ox0dea: "You'd better be more specific, or I'm gonna give you everything I've got."
[04:52:31] bucaran: 0x0dea: since there is some good overlapping between search and list, are you suggesting to just have them as synonyms?
[04:52:50] Ox0dea: bucaran: No, rather that `search` without any additional specificity should behave like `list`.
[04:53:03] bucaran: so they would both be different commands then
[04:53:22] Ox0dea: But do you see how `search` can make `list` redundant?
[04:53:41] bucaran: yes, which is why I was trying to blow up list and keep only search
[04:53:59] bucaran: great, I was missunderstanding you
[04:54:15] Ox0dea: Yeah, we solved this seven minutes ago. :P
[04:54:22] shevy: nobody understands the Ox
[04:54:32] shevy: it's like an Oxacle
[04:55:08] vptr: I should have a bath, and in some way work toward fixing my sleeping pattern.
[04:55:10] shevy: none of this would be possible if the nick would be 0x0dea!
[04:55:39] bucaran: oh, it's an `O'
[04:55:51] Ox0dea: I didn't want it to be this way.
[04:55:53] bucaran: that explains why I couldnt quote it
[04:56:23] shevy: IRC is ancient
[04:56:29] vptr: Beats FB.
[04:56:32] Ox0dea: That's no justification.
[04:57:07] bucaran: email is ancient
[04:57:21] bucaran: IRC is not ancient, it's just old
[04:57:35] Ox0dea: Prohibiting nicks from beginning with a digit was at best an oversight, and more likely a fudge. :<
[04:58:20] shevy: or they knew that nicks starting with numbers are evil
[04:59:27] bucaran: or maybe they were already exhausted having to come up with the spec for all the feats they were going to implement, and having to validate numbers at the beggining of usernames would just slightly complicate everything a bit more and they say, fuck it!
[05:00:08] shevy: "nobody needs more than 640K"
[05:00:20] shevy: "nobody needs a nick like 123foo"
[05:00:54] wilsonc91: has joined #ruby
[05:01:26] Ox0dea: > There is no reason anyone would want a computer in their home.
[05:01:58] Ox0dea: Said the president of the company which manufactured the computers on which Unix was created.
[05:02:09] bucaran: Ox0dea: yeah, that's a gem
[05:02:41] gix: has joined #ruby
[05:02:48] bucaran: but to be fair, I wonder how many thought this guy was crazy-pants when he said that, I bet there were a lot of other people who shrugged at that and probably thought, why not, I want two!
[05:03:59] shevy: he thought they were just too big and expensive!!!
[05:05:57] Musashi007: has joined #ruby
[05:08:47] Ox0dea: shevy: I'd never seen this one before today: http://i.imgur.com/ouJMr2i.png
[05:09:32] Ox0dea: Equating Radar with _why was a little unbecoming, if you ask me.
[05:09:42] Radar: Who did such a thing.
[05:09:56] Radar: I am no _why.
[05:10:10] Ox0dea: > programming is rather thankless. u see your works become replaced by superior ones in a year. unable to run at all in a few more.
[05:10:20] Ox0dea: _why was jaded; Radar just wants to spend time on other projects.
[05:10:44] Radar: I feel like I'm missing some context here.
[05:10:54] Ox0dea: Are you no longer leaving FOSS?
[05:11:02] Radar: I am leaving FOSS.
[05:11:08] Radar: But who is equating me with _why?
[05:11:19] bucaran: I didnt know FOSS could be "left" lol
[05:11:27] Ox0dea: It's not my dirty laundry to air.
[05:12:11] Radar: Ox0dea: PM then?
[05:12:28] Radar: bucaran: I did it today http://ryanbigg.com/2015/11/open-source-work/
[05:13:04] vptr: Radar Detector.
[05:13:49] bucaran: Radar: congrats on your 2nd edition
[05:14:47] chipotle: has joined #ruby
[05:14:50] vptr: What does _why do now?
[05:16:05] Nahra: has joined #ruby
[05:16:36] edward___: has left #ruby: ()
[05:16:55] bucaran: vptr: nobody knows
[05:17:04] darkf: has joined #ruby
[05:17:09] tildes: has joined #ruby
[05:17:12] vptr: Maybe he's just apeiros in hiding.
[05:17:17] bucaran: maybe he turned to the dark side and he's making 200K somewhere
[05:18:24] qiukun: has joined #ruby
[05:21:45] DelDotB: has joined #ruby
[05:22:14] Ox0dea: whyday.org is dead and this year's passed almost entirely unmarked. :<
[05:23:20] vptr: Interesting, how many people of all the F/OSS communities eject themselves from the Ruby ones.
[05:23:54] Radar: It's happened in JS-land a few times too.
[05:24:02] Radar: There is just no support for it.
[05:24:15] Tref: has joined #ruby
[05:24:16] vptr: Radar: Yes, but yours is almost entirely financially driven.
[05:24:31] Radar: vptr: You mean personally, it's financial for me?
[05:24:42] vptr: Radar: Along with spending time with family, yes.
[05:24:56] bucaran: leaving FOSS does not make sense, because FOSS is not a distinctive place, I understand the sentiment and the message in the post, but this is too black and white
[05:24:57] vptr: You earn no money from this.
[05:25:10] Radar: vptr: It's much more the time than it is the money. I already make enough money to support myself AND my wife comfortably enough.
[05:25:19] vptr: Radar: From this?
[05:25:23] Radar: vptr: If I'm spending hours out of my weekends / spare time doing more work... well, it's not sustainable.
[05:25:34] Radar: vptr: I get paid from my full-time job.
[05:26:00] Radar: And from the books that I write too https://leanpub.com/multi-tenancy-rails-2 ... which covers the electricity bills when they come through and not much else.
[05:26:05] vptr: Radar: So this cuts into time that you'd rather spend elsewhere, given that it doesn't earn you any financial benefit, nor joy amongst those you ought to spend time with.
[05:26:21] Radar: vptr: Yup, that's a good ordering of it all.
[05:26:25] vptr: What is the audienceo of the book gueared at?
[05:26:52] vptr: geared, even.
[05:26:56] vptr: I shouldn't multitask.
[05:27:18] Radar: vptr: People who know Rails and would like to learn how to do multitenancy.
[05:27:35] Radar: It could even be used as a "next thing to read" for a junior dev who's done the Rails Tutorial or other books
[05:28:00] vptr: Fair enough.
[05:28:35] techsilo: has joined #ruby
[05:29:00] kiki_lamb: Is there a method for enumerables that's in between .any? and .all? Specifically, I want to know whether my condition applies to more than one of the things in the enumerable.
[05:29:09] asianMike: has joined #ruby
[05:29:25] kiki_lamb: So, something like .two? or .multiple?, i guess
[05:29:56] kiki_lamb: .select and .count seems like overkill, we don't really need to study the whole collection, i'd have my answer on the second match
[05:30:25] neonalpine: has joined #ruby
[05:32:41] shinenelson: has joined #ruby
[05:34:24] kiki_lamb: ah-hah, .any? and ! .ony?
[05:36:25] fowlduck: kiki_lamb: maybe: a = 0; enumerator.take_while{|b| a += 1 if b == "something"; a < 2 }
[05:36:30] fowlduck: then check the value of a after?
[05:36:47] leafybasil: has joined #ruby
[05:37:46] Ox0dea: kiki_lamb: http://git.io/v4nQ6
[05:38:19] bruno-: has joined #ruby
[05:38:51] fowlduck: pretty similar to my crappy one-liner, but way nicer
[05:38:52] baweaver: has joined #ruby
[05:39:04] Ox0dea: kiki_lamb's `any? + !one?` is nicest, in my opinion.
[05:39:26] fowlduck: that's going to iterate over it twice, though
[05:39:33] Ox0dea: It'll stop as early as it can.
[05:39:40] Ox0dea: Both times.
[05:39:51] fowlduck: sure, but it's still iterating twice
[05:40:00] Ox0dea: I'll phone the authorities.
[05:42:02] Oli`: has joined #ruby
[05:46:05] lubarch: has joined #ruby
[05:47:46] naftilos76: has joined #ruby
[05:48:04] krz: has joined #ruby
[05:51:50] crdpink2: has joined #ruby
[05:52:28] Ox0dea: I'm trading space for time in constructing this massive hash that maps words to distinct values, one letter at a time since that's how they arrive.
[05:52:29] Ox0dea: "cat" and "catch" are words, but "catc" is not, and I'm handling that by storing terminals; thus, `hash['c']['a']['t']['$'] == :unique_cat_value`. Lookup is O(1) and everybody's happy, except I need to be able to go the other direction too. :<
[05:53:14] Ox0dea: As it stands, I'm using two hashes, the "paths" and the actual mapping, and then I'm just `Hash#invert`ing the latter to get reverse-lookup. Is there some nifty data structure uniquely applicable to this scenario?
[05:55:08] Ox0dea: I need a tree with its roots in the sky.
[05:55:49] qiukun: has joined #ruby
[05:57:41] qiukun: has joined #ruby
[05:58:39] favadi: has joined #ruby
[06:03:12] mghaig: has joined #ruby
[06:03:42] Tref: has joined #ruby
[06:06:39] mary5030: has joined #ruby
[06:11:37] chrissonar: has joined #ruby
[06:12:22] towski_: has joined #ruby
[06:16:26] qiukun: has joined #ruby
[06:17:06] aibot: has joined #ruby
[06:19:06] User458764: has joined #ruby
[06:19:39] houhoulis: has joined #ruby
[06:23:51] waka: has joined #ruby
[06:25:03] moeabdol: has joined #ruby
[06:25:23] dhjondoh: has joined #ruby
[06:26:31] helpa-bot: has joined #ruby
[06:26:41] Fredrich010: has joined #ruby
[06:27:38] Karunamon: has joined #ruby
[06:28:14] redondos: has joined #ruby
[06:28:31] helpa: has joined #ruby
[06:28:38] pepperbreath: has left #ruby: ()
[06:28:46] ankhers: has joined #ruby
[06:29:22] funnel: has joined #ruby
[06:30:08] karapetyan: has joined #ruby
[06:30:43] rideh: has joined #ruby
[06:31:07] neonalpine: has joined #ruby
[06:31:56] riotjones: has joined #ruby
[06:32:25] djbkd: has joined #ruby
[06:33:00] martinbjeldbak: has joined #ruby
[06:33:04] JoshL: has joined #ruby
[06:33:12] Esya: has joined #ruby
[06:33:35] spider-mario: has joined #ruby
[06:33:42] mattwildig: has joined #ruby
[06:33:47] kiki_lamb: is there a smarter way of writing [*args].flatten(1)?
[06:34:53] djellemah: kiki_lamb: maybe a,b,*rest = args
[06:35:47] kiki_lamb: hm, maybe i shouldn't have called my example variable args, sorry
[06:35:57] kiki_lamb: this is actually being done to values in a **opts hash
[06:36:19] karapetyan: has joined #ruby
[06:36:58] rgrmatt: has joined #ruby
[06:37:01] kiki_lamb: like, i want myfunc(b: 1) and myfunc(b: [1]) to mean the same thing while also acccepting myfunc(b: [1,2,3]), so I'm doing this to the values.
[06:38:14] djellemah: >> Array(:one) # kiki_lamb
[06:38:15] ruboto: djellemah # => [:one] (https://eval.in/469175)
[06:38:23] djellemah: >> Array([:one, :two]) # kiki_lamb
[06:38:24] ruboto: djellemah # => [:one, :two] (https://eval.in/469176)
[06:38:27] djellemah: >> Array(nil) # kiki_lamb
[06:38:28] ruboto: djellemah # => [] (https://eval.in/469177)
[06:38:40] Contigi: has joined #ruby
[06:39:04] qiukun: has joined #ruby
[06:39:29] karapetyan: has joined #ruby
[06:39:40] baweaver: has joined #ruby
[06:39:46] bruno-: has joined #ruby
[06:41:07] sinkensabe: has joined #ruby
[06:41:22] devl: has joined #ruby
[06:42:18] kiki_lamb: >> def xx *a; Array(a); end; xx [1,2,3] # djellemah
[06:42:19] ruboto: kiki_lamb # => [[1, 2, 3]] (https://eval.in/469178)
[06:42:23] kiki_lamb: ^ shouldn't that work, then?
[06:44:41] Ox0dea: has joined #ruby
[06:46:00] Ox0dea: >> def foo *args; args; end; foo [1,2], [3,4] # kiki_lamb
[06:46:01] ruboto: Ox0dea # => [[1, 2], [3, 4]] (https://eval.in/469190)
[06:46:28] Ox0dea: A splat parameter permits any number of arguments, but it collects them into a new Array.
[06:46:46] DoubleMalt: has joined #ruby
[06:47:41] kiki_lamb: Ox0dea: yeah... the behaviour I want is 'foo 1 => [1]', 'foo 1, 2 => [1,2]', 'foo [1,2] => [1,2]', though..
[06:48:26] Ox0dea: kiki_lamb: Are you sure? :P
[06:49:25] kiki_lamb: Ox0dea: in this case, yes.
[06:49:25] Ox0dea: Array(foo).flatten(1) will get you there, but be careful what you wish for.
[06:49:57] kiki_lamb: Well... there's no scenario in which it makes sense to pass this method anything other than a 1 dimensional array of items.
[06:50:04] lxsameer: has joined #ruby
[06:50:21] Ox0dea: kiki_lamb: So take a single argument and expect a one-dimensional array?
[06:50:26] bmalum: has joined #ruby
[06:52:34] skweek: has joined #ruby
[06:52:46] toy: has joined #ruby
[06:53:34] mooe: has joined #ruby
[06:53:53] kiki_lamb: Ox0dea: why sholdn't the method's user be able to omit the array braces for single items, though? Like, what's the harm in providing this convenience?
[06:54:08] kiki_lamb: Rails does it all the time, why shouldn't I?
[06:55:07] kiki_lamb: for example, in a Rails app's routes file, 'match ':controller/:action/:id', via: [:get]' means the same things as match ':controller/:action/:id', via: :get'. That's what I want here.
[06:55:31] yardenbar: has joined #ruby
[06:55:54] Ox0dea: So just `args.flatten`, then?
[06:56:22] norc: has joined #ruby
[06:56:32] norc: https://twitter.com/yukihiro_matz/status/659913844861464576
[06:56:35] kiki_lamb: Well, you can't flatten :get, in that second example.
[06:56:39] norc: It has all become clear now.
[06:56:47] Ox0dea: kiki_lamb: But you're using a splat parameter, right?
[06:57:27] mghaig: has joined #ruby
[06:58:27] Ox0dea: norc: https://twitter.com/matz_translated/status/659914142481055744
[06:58:38] kiki_lamb: Ox0dea: I was attempting to, but I don't have to, if there's a better way of achieving that.
[06:58:56] norc: Ox0dea: Thank you. That is really helpful.
[06:59:34] Ox0dea: kiki_lamb: You seem to be saying that you want to treat `1`, `[1]`, and `[[1]]` all identically.
[06:59:51] Ox0dea: If that's the case, flattening a splat is the "sanest" approach. :P
[07:01:07] kiki_lamb: Ox0dea: just the first two, [[1]] would be an unsupported argument here.
[07:01:14] kiki_lamb: I guess this is what I want:
[07:01:19] kiki_lamb: >> def this **opts; Hash[opts.map { |k,v| [k, Array(v)] }]; end; this a: 1, b: [1,2]
[07:01:20] ruboto: kiki_lamb # => {:a=>[1], :b=>[1, 2]} (https://eval.in/469227)
[07:01:23] Xeago: has joined #ruby
[07:01:25] Pupp3tm4st3r: has joined #ruby
[07:02:45] Ox0dea: kiki_lamb: Isn't that what you had all along but with a redundant flatten?
[07:02:52] Ox0dea: Array(foo) == [*foo]
[07:04:15] jrhorn: has joined #ruby
[07:04:29] Ox0dea: s/redundant/superfluous/
[07:05:25] kiki_lamb: Ox0dea: i guess the problem was that I was trying to use a splat on the wrong argument, since I was initially trying a block like { |*v| [*v] }
[07:05:38] kiki_lamb: when it turns out I needed one like { |v| [*v] }
[07:05:46] Ox0dea: Ah, I see.
[07:08:06] dhjondoh1: has joined #ruby
[07:08:09] lenwood: has joined #ruby
[07:09:08] Rutix`away: has joined #ruby
[07:09:08] Rutix`away: has joined #ruby
[07:09:32] cubicme: has joined #ruby
[07:10:11] troulouliou_div2: has joined #ruby
[07:10:46] rflot_: has joined #ruby
[07:10:47] LoganG_: has joined #ruby
[07:10:50] Ray`_: has joined #ruby
[07:10:55] Averna: has joined #ruby
[07:11:07] lloyd_: has joined #ruby
[07:11:14] funnel_: has joined #ruby
[07:11:15] crankhar1er: has joined #ruby
[07:11:20] pabst: has joined #ruby
[07:11:24] hostess_: has joined #ruby
[07:11:41] ihme-TTilus: has joined #ruby
[07:12:37] glowcoil__: has joined #ruby
[07:12:43] greenbigfrog: has joined #ruby
[07:12:48] bluOxigen: has joined #ruby
[07:12:50] devl: has joined #ruby
[07:12:55] bluOxigen: has left #ruby: ()
[07:14:08] apipkin_: has joined #ruby
[07:14:26] darkf_: has joined #ruby
[07:14:36] Radar_: has joined #ruby
[07:14:39] teotwaki_: has joined #ruby
[07:14:39] redlegion_: has joined #ruby
[07:14:40] Apocalypse: has joined #ruby
[07:14:40] Apocalypse: has joined #ruby
[07:14:44] bf4_: has joined #ruby
[07:14:59] tcrypt: has joined #ruby
[07:15:06] Lorn_: has joined #ruby
[07:15:51] \13k_: has joined #ruby
[07:15:58] jaxxstorm: has joined #ruby
[07:15:59] Laaw: has joined #ruby
[07:16:13] andersh_: has joined #ruby
[07:16:33] duoi: has joined #ruby
[07:16:33] rickmasta: has joined #ruby
[07:16:44] Tref: has joined #ruby
[07:17:23] Coldblackice_: has joined #ruby
[07:17:31] martinbjeldbak: has joined #ruby
[07:17:34] xet7: has joined #ruby
[07:18:11] catbusters: has joined #ruby
[07:18:30] skarn: has joined #ruby
[07:19:18] rfv: has joined #ruby
[07:19:22] alxndr: has joined #ruby
[07:19:36] bb010g: has joined #ruby
[07:19:50] mooe: has joined #ruby
[07:19:57] knowtheory: has joined #ruby
[07:20:14] aevitas: has joined #ruby
[07:20:22] deimos: has joined #ruby
[07:20:40] ckrailo: has joined #ruby
[07:20:55] HashNuke: has joined #ruby
[07:21:14] mikolalysenko: has joined #ruby
[07:21:58] symm-: has joined #ruby
[07:22:32] frankS2: has joined #ruby
[07:22:35] User458764: has joined #ruby
[07:22:42] clauswitt: has joined #ruby
[07:22:59] beast: has joined #ruby
[07:23:40] cgfbee: has joined #ruby
[07:26:05] johnhamelink: has joined #ruby
[07:26:11] ggherdov: has joined #ruby
[07:27:59] cdg: has joined #ruby
[07:28:19] patdohere: has joined #ruby
[07:28:27] benlieb: has joined #ruby
[07:28:33] aevitas: has joined #ruby
[07:29:54] patdohere: has joined #ruby
[07:30:17] Averna: has joined #ruby
[07:30:27] Oog: has joined #ruby
[07:31:53] neonalpine: has joined #ruby
[07:35:49] k3asd`: has joined #ruby
[07:39:32] aganov: has joined #ruby
[07:40:17] bruno-: has joined #ruby
[07:40:30] baweaver: has joined #ruby
[07:41:19] dionysus69: has joined #ruby
[07:42:20] NGRH8: has joined #ruby
[07:43:04] NGRH8: what is the most powerful feature about ruby?
[07:44:48] rickmasta: has joined #ruby
[07:44:53] haxrbyte: has joined #ruby
[07:45:44] bascht: has joined #ruby
[07:50:17] jrhorn: has joined #ruby
[07:50:22] norc: NGRH8: I would say that its turing complete.
[07:50:26] norc: Makes it quite powerful.
[07:50:33] NGRH8: but css is turing complete
[07:50:38] NGRH8: and css is quite useless
[07:50:55] norc: Ask a silly question, get a silly answer.
[07:51:42] aevitas: has joined #ruby
[07:52:12] NGRH8: it's not a silly question
[07:52:15] NGRH8: why does ruby exist?
[07:52:22] NGRH8: why did the gook invent the language?
[07:52:24] norc: Because Matz wrote it.
[07:52:39] krz: has joined #ruby
[07:53:05] norc: NGRH8: http://ruby-doc.org/docs/ruby-doc-bundle/FAQ/FAQ.html
[07:53:08] norc: Covers that question. :p
[07:53:36] Tref: has joined #ruby
[07:55:01] adac: has joined #ruby
[07:55:28] lxsameer: has joined #ruby
[07:55:38] coderhut: has joined #ruby
[07:55:42] NGRH8: thanks i hate ruby but maybe i will love it after reading that norc
[07:55:59] norc: NGRH8: Best way to get to know Ruby is just just give it a try.
[07:56:17] NGRH8: i know basic ruby syntax
[07:56:31] NGRH8: i hate how expressive ruby is
[07:57:00] coderhut: has joined #ruby
[07:57:52] yoongkang: has joined #ruby
[07:59:50] ta: has joined #ruby
[08:03:16] ponga: has joined #ruby
[08:04:26] mark1: has joined #ruby
[08:07:54] lsmola: has joined #ruby
[08:11:22] benlieb_: has joined #ruby
[08:13:05] moeabdol: has joined #ruby
[08:13:21] tulak: has joined #ruby
[08:13:57] cpup: has joined #ruby
[08:14:14] SCHAAP137: has joined #ruby
[08:15:00] anaeem1: has joined #ruby
[08:15:25] solars: has joined #ruby
[08:15:37] TomyWork: has joined #ruby
[08:15:50] Stan: has joined #ruby
[08:17:17] blaxter: has joined #ruby
[08:25:22] vondruch: has joined #ruby
[08:29:53] lenwood: has joined #ruby
[08:30:19] andikr: has joined #ruby
[08:32:13] howdoi: has joined #ruby
[08:32:37] neonalpine: has joined #ruby
[08:33:41] vdamewood: has joined #ruby
[08:34:42] mattwildig: has joined #ruby
[08:34:55] codecop: has joined #ruby
[08:34:58] djbkd: has joined #ruby
[08:35:10] chipotle: has joined #ruby
[08:40:44] rgrmatt: has joined #ruby
[08:41:10] bruno-: has joined #ruby
[08:41:16] baweaver: has joined #ruby
[08:42:19] bmalum: has joined #ruby
[08:42:29] gregf: has joined #ruby
[08:43:10] djellemah: Ox0dea: Did you accidentally reinvent the Trie? This might help https://github.com/lotem/marisa-trie/
[08:43:36] zapata: has joined #ruby
[08:43:54] ruby-02: https://gist.githubusercontent.com/Edwardzyc/350197c1dcf70bcdb92a/raw/57ee2caf49d1bfeabc7d271f85692125aef14571/Postgres%2520Connection%2520Pool%2520-%2520Sinatra
[08:44:06] ruby-02: Is there any errors with this pool?
[08:44:12] ruby-02: With the use of the mutex
[08:44:19] Xeago: has joined #ruby
[08:44:23] ruby-02: Would like opinions if I made any error
[08:45:38] mghaig: has joined #ruby
[08:49:47] DEA7TH: has joined #ruby
[08:49:48] djellemah: ruby-02: in your exec method, if an exception is raised by connection.exec, the connection will never go back into the pool.
[08:50:00] TheHodge: has joined #ruby
[08:50:01] djellemah: ruby-02: You might want to take a look at http://sequel.jeremyevans.net/
[08:50:30] ruby-02: djellemah, is there a point in using another pool if a simple one is easy to craft?
[08:50:38] NGRH8: does Chinkyhiro Matsumoto ever come on this channel?
[08:50:48] ruby-02: I could capture the exception and create another connection, can't i?
[08:51:16] ruby-02: good catch though, djellemah - thank you very much
[08:51:44] djellemah: ruby-02: Usually talking to a db is more than just a connection pool ;-) You need an ensure block in the method.
[08:52:08] senayar: has joined #ruby
[08:52:08] senayar: has joined #ruby
[08:52:23] axsuul_: has joined #ruby
[08:52:44] leafybasil: has joined #ruby
[08:53:13] Musashi007: has joined #ruby
[08:53:27] ruby-02: djellemah, what is the difference between ensure for the lost connection and capturing the exception and doing it?
[08:53:37] Melpaws1: has joined #ruby
[08:54:54] apeiros: !kick NGRH8 racial slurs are not tolerated (chinky)
[08:54:55] ruboto: ruboto kicked NGRH8: slurs are not tolerated (chinky)
[08:54:55] ruboto: -o ruboto
[08:55:47] moei: has joined #ruby
[08:57:23] tesuji: has joined #ruby
[08:58:06] marr: has joined #ruby
[08:59:13] djellemah: ruby-02: you could make it work either way.
[09:00:33] apeiros: moin adaedra
[09:02:08] yoongkang: has joined #ruby
[09:02:22] sepp2k: has joined #ruby
[09:05:21] NGRH8: has joined #ruby
[09:06:26] pimpin: has joined #ruby
[09:07:09] unknowns2k2: has joined #ruby
[09:07:29] DEA7TH: has joined #ruby
[09:09:38] DEA7TH: has joined #ruby
[09:11:21] Pumukel: has joined #ruby
[09:11:41] Spami: has joined #ruby
[09:11:54] devbug_: has joined #ruby
[09:13:20] sammcd: has joined #ruby
[09:13:51] moeabdol: has joined #ruby
[09:14:01] sammcd: I have a question
[09:14:11] sammcd: I want to install redmine and I need jquery-rails
[09:14:23] sammcd: I install the version 4 from gem
[09:14:26] lkba_: has joined #ruby
[09:14:47] sammcd: but I have still that error:
[09:14:48] sammcd: Could not find gem 'jquery-rails (~> 3.1.1) ruby' in any of the gem sources
[09:15:59] adaedra: Use bundler to install gems from redmine
[09:16:06] adaedra: Don't do it by hand
[09:16:31] pimpin: has joined #ruby
[09:16:49] TTilus: sam___: either bundler or distribution packages, pretty much all linux distributions have redmine packaged for them
[09:17:03] adaedra: It's all explained here http://www.redmine.org/projects/redmine/wiki/RedmineInstall
[09:17:20] yardenbar: has joined #ruby
[09:18:26] TTilus: sam___: debian stable seems to offer redmine 3 on rails 4.2
[09:19:56] Musashi007: has joined #ruby
[09:20:30] sammcd: it's strange
[09:20:46] pimpin: has joined #ruby
[09:20:48] sammcd: because I can see redmine installed
[09:20:53] sammcd: but I have this error
[09:21:12] sammcd: Please configure your config/database.yml first Could not find gem 'jquery-rails (~> 3.1.1) ruby' in any of the gem sources listed in your Gemfile or available on this machine.
[09:22:01] moeabdol: has joined #ruby
[09:22:06] karapetyan: has joined #ruby
[09:22:32] _0mega: has joined #ruby
[09:24:40] NGRH8: can we stop being racist?
[09:24:46] sinkensabe: has joined #ruby
[09:28:16] _0mega: has left #ruby: ()
[09:29:39] c0m0: has joined #ruby
[09:30:27] joonty: has joined #ruby
[09:30:37] kostadinss: has joined #ruby
[09:31:39] htmldrum: has joined #ruby
[09:33:32] sammcd: I have a problem
[09:33:36] neonalpine: has joined #ruby
[09:33:45] sammcd: I already installed the gem jquery-rails
[09:33:57] sammcd: but when I install some softwares
[09:34:01] sammcd: I have this error:
[09:34:02] sammcd: ruby' in any of the gem sources listed in your Gemfile or available on this machine.
[09:34:08] simplyianm: has joined #ruby
[09:34:10] sammcd: umm sorry:
[09:34:10] sanjayu: has joined #ruby
[09:34:26] sammcd: Could not find gem 'jquery-rails (~> 3.1.1) ruby' in any of the gem sources listed in your Gemfile or available on this machine.
[09:34:46] tulak: has joined #ruby
[09:35:35] teclator: has joined #ruby
[09:35:50] karapetyan: has joined #ruby
[09:36:16] Oog: has joined #ruby
[09:37:08] kimegede: has joined #ruby
[09:37:19] vigintas: has joined #ruby
[09:39:17] sammcd: I check my gems
[09:39:26] sammcd: and jquery-rails is already installed
[09:39:29] sammcd: jquery-rails (4.0.5, 4.0.4)
[09:39:33] aevitas: has joined #ruby
[09:41:28] colegatron: has joined #ruby
[09:42:11] rgrmatt: has joined #ruby
[09:42:12] bruno-: has joined #ruby
[09:42:13] baweaver: has joined #ruby
[09:46:49] jschmid: has joined #ruby
[09:47:52] nowhereFast: has joined #ruby
[09:50:01] pimpin: has joined #ruby
[09:50:27] Z00t: has joined #ruby
[09:50:43] nowhereFast: how best would I manage adding channels to my redis subscribe dynamically?
[09:50:49] platzhirsch: has joined #ruby
[09:51:23] aevitas_: has joined #ruby
[09:51:25] Xzanron: has joined #ruby
[09:51:50] allcentu1: has joined #ruby
[09:52:41] subscope: has joined #ruby
[09:52:51] nfk|laptop: has joined #ruby
[09:53:35] Xeago: has joined #ruby
[09:54:36] xcesariox: has joined #ruby
[09:57:03] krz: has joined #ruby
[09:57:06] lukaszes: has joined #ruby
[09:57:54] Peg-leg: has joined #ruby
[09:59:17] trosborn: has joined #ruby
[10:03:52] bigkevmcd: has joined #ruby
[10:08:23] UtkarshRay: has joined #ruby
[10:10:43] Melpaws1: anyone have an example of returning a mongo find sans bson object id? everything i've tried via suggestions online have not been successful
[10:10:53] Tref: has joined #ruby
[10:11:39] yorickpeterse: collection.find({ criteria }, {_id: false}) IIRC
[10:13:12] sabram: has joined #ruby
[10:14:38] timonv: has joined #ruby
[10:15:17] sepp2k: has joined #ruby
[10:15:41] sabram: has joined #ruby
[10:16:12] suchness_: has joined #ruby
[10:16:14] suchness_: has left #ruby: ()
[10:16:16] suchness_: has joined #ruby
[10:16:25] rodfersou: has joined #ruby
[10:16:27] Melpaws1: ya, tried that but it returns the following each time :(
[10:16:29] Melpaws1: syntax error, unexpected ':', expecting =>
[10:16:39] DEA7TH: has joined #ruby
[10:16:50] ayonkhan: has joined #ruby
[10:19:44] Kero: Melpaws1: older ruby syntax would be {:_id => false} (if i'm not messing up string/symbol here)
[10:23:18] leafybasil: has joined #ruby
[10:27:28] Hounddog: has joined #ruby
[10:27:34] simplyianm: has joined #ruby
[10:29:05] ldnunes: has joined #ruby
[10:29:41] Melpaws1: still no no luck :(
[10:30:01] Melpaws1: @@coll.find({"title" => 'Drax'},{":_id"=> 0})
[10:31:47] Kero: should be symbol, I did not mess it up ;)
[10:32:12] vigintas: has joined #ruby
[10:32:17] norc: has joined #ruby
[10:32:35] Kero: beyond that, I don't know mongo
[10:33:14] Melpaws1: no worries . i will keep stabbing away at it
[10:33:21] Melpaws1: ty for suggestion
[10:33:41] sabram_: has joined #ruby
[10:34:11] sabram_: has joined #ruby
[10:34:14] neonalpine: has joined #ruby
[10:34:59] bruno-: has joined #ruby
[10:35:23] mattwildig: has joined #ruby
[10:39:16] vigintas: has joined #ruby
[10:39:30] yorickpeterse: Melpaws1: that should be either :_id => 0 or "_id" => 0
[10:42:45] rgrmatt: has joined #ruby
[10:43:56] baweaver: has joined #ruby
[10:44:10] Melpaws1: tried both . stll returns the BSON ObjectID
[10:44:27] Melpaws1: {"_id"=>BSON::ObjectId('56496bd7e85dd9c110de76ba'), "title"=>"Drax", "issueNumber"=>1}
[10:44:40] Melpaws1: @@coll.find({"title" => 'Drax'},{"_id" => 0}).to_a
[10:47:04] norc: Ox0dea: That book is absolutely amazing, albeit somewhat outdated in parts. :)
[10:47:28] norc: Ox0dea: Like it describes that keyword arguments are implemented with a Hash internally, but that no longer applies in 2.2 it seems.
[10:47:47] norc: The way class variables are implemented is a monsterous hack though at first glance.
[10:48:29] akem: has joined #ruby
[10:49:40] emrox: has joined #ruby
[10:52:43] tulak: has joined #ruby
[10:52:44] emrox: has joined #ruby
[10:53:36] subscope: has joined #ruby
[10:54:00] emrox: has joined #ruby
[10:54:27] tulak: has joined #ruby
[10:54:41] FooMunki: has joined #ruby
[10:54:43] Kero: Melpaws1: false and 0 are not interchangeable, btw. 0 evaluates to true in conditionals.
[10:55:29] fgo: has joined #ruby
[10:55:59] CloCkWeRX: has joined #ruby
[10:56:06] Kero: another approach would be to remove the ID afterwards
[10:56:37] krz: has joined #ruby
[10:57:07] Melpaws1: ya, was thinking of doing that . Was hoping there was way of "_id":0 like in mongo translates to ruby .
[10:57:53] antgel: has joined #ruby
[11:01:04] karapetyan: has joined #ruby
[11:01:27] yorickpeterse: _id: 0 should work fine in Mongo
[11:01:32] yorickpeterse: since mongo itself evaluates 0 to false
[11:01:43] yorickpeterse: Melpaws: what Mongo driver are you using?
[11:02:12] bruce_lee: has joined #ruby
[11:03:10] gregf_: has joined #ruby
[11:04:27] emrox: has joined #ruby
[11:04:57] Melpaws: I think :mongo (2.1.2)
[11:05:30] emrox: has joined #ruby
[11:07:27] nfk|laptop: has joined #ruby
[11:08:09] prestorium: has joined #ruby
[11:08:19] zoras: has joined #ruby
[11:08:30] yorickpeterse: http://stackoverflow.com/questions/6129298/retrieving-a-subset-of-fields-from-mongodb-in-ruby
[11:09:33] Melpaws: ya , gave that a go and tried the updated .projection too :/
[11:10:25] tulak_: has joined #ruby
[11:11:26] Melpaws: returns : #<Mongo::Collection::View:0x007ff20d875a30>
[11:11:34] iateadonut: has joined #ruby
[11:11:37] Melpaws: coll.find({"title" => 'Drax'},{:fields =>{ "_id" => 0, "title" => 1, "issueNumber" => 1}})
[11:11:52] nowhereFast: has joined #ruby
[11:16:20] last_staff: has joined #ruby
[11:17:06] nowhereFast: has left #ruby: ()
[11:18:28] spacemud: has joined #ruby
[11:19:06] stamina: has joined #ruby
[11:20:23] rickmasta: has joined #ruby
[11:23:01] nertzy2: has joined #ruby
[11:23:06] Tref: has joined #ruby
[11:26:46] sameerynho: has joined #ruby
[11:28:02] mghaig: has joined #ruby
[11:33:53] CodingWolf: has joined #ruby
[11:34:56] dlitvak: has joined #ruby
[11:34:56] neonalpine: has joined #ruby
[11:37:26] tulak: has joined #ruby
[11:39:57] jrhorn: has joined #ruby
[11:44:43] baweaver: has joined #ruby
[11:45:49] shashin: has joined #ruby
[11:46:31] davedev24: has joined #ruby
[11:47:54] Z00t: has joined #ruby
[11:49:40] platzhirsch: has left #ruby: ()
[11:50:03] _blizzy_: has joined #ruby
[11:52:52] Hounddog: has joined #ruby
[11:53:35] davedev24: has joined #ruby
[11:55:05] leafybasil: has joined #ruby
[11:55:20] lukaszes: has joined #ruby
[11:56:28] sepp2k: has joined #ruby
[12:01:44] Hounddog: has joined #ruby
[12:02:16] Tref: has joined #ruby
[12:02:45] ayonkhan_: has joined #ruby
[12:03:21] suchness: has joined #ruby
[12:05:02] waxjar: has joined #ruby
[12:05:31] TomyWork: has joined #ruby
[12:05:49] davedev24: has joined #ruby
[12:05:52] favadi: has joined #ruby
[12:07:57] alienaut: has joined #ruby
[12:07:58] Hounddog: has joined #ruby
[12:10:01] millerti: has joined #ruby
[12:12:23] DEA7TH: has joined #ruby
[12:12:59] chipotle: has joined #ruby
[12:13:00] moeabdol: has joined #ruby
[12:13:23] Hounddog: has joined #ruby
[12:14:36] ismaelga: has joined #ruby
[12:14:43] Hounddog: has joined #ruby
[12:14:50] |ifei5good: has joined #ruby
[12:18:16] banister: has joined #ruby
[12:18:23] haxrbyte: has joined #ruby
[12:19:28] Hounddog: has joined #ruby
[12:21:11] |ifei5good: has joined #ruby
[12:21:43] daivyk: has joined #ruby
[12:21:45] Scripore: has joined #ruby
[12:22:01] platzhirsch: has joined #ruby
[12:22:31] hs366: has joined #ruby
[12:22:32] platzhirsch: Slightly confused, wasn't there a way to reference all arguments with one keyword which gives you the result as array or so? I want to pass the parameteres of a method directly to the calling method
[12:22:42] |ifei5g0_: has joined #ruby
[12:22:54] TPBallbag: has joined #ruby
[12:24:05] |ifei5g__: has joined #ruby
[12:24:13] workmad3: has joined #ruby
[12:24:47] clauswitt: has joined #ruby
[12:25:24] Mia: has joined #ruby
[12:25:24] Mia: has joined #ruby
[12:26:35] Hounddog: has joined #ruby
[12:27:12] kirun: has joined #ruby
[12:27:30] favadi: has joined #ruby
[12:28:14] Xeago: has joined #ruby
[12:28:18] leafybas_: has joined #ruby
[12:28:47] leafybasil: has joined #ruby
[12:29:07] |ifei5g00d: has joined #ruby
[12:29:21] Hounddog: has joined #ruby
[12:29:31] norc: platzhirsch: You can use the splat operator in the argument list like this:
[12:29:40] norc: >> def foo(*args); p args; end; foo(1,2,3,4)
[12:29:41] ruboto: norc # => [1, 2, 3, 4] ...check link for more (https://eval.in/469531)
[12:29:50] zotherstupidguy: is there somthing like asciinema written in ruby?
[12:30:13] platzhirsch: norc: right, but I cannot specify them as concrete parameters in the first method, foo here
[12:30:28] platzhirsch: which makes it a bit harder to understand when reading interface methods for instance, but yeah,...
[12:30:33] sinkensabe: has joined #ruby
[12:30:48] norc: platzhirsch: Well there is another hack if you want.
[12:31:51] norc: platzhirsch: method(__method__).parameters
[12:31:56] |ifei5good: has joined #ruby
[12:31:58] norc: platzhirsch: You can take it from there.
[12:32:48] sdothum: has joined #ruby
[12:33:01] platzhirsch: ah right, yeah reflect them out
[12:33:21] |ifei5g0_: has joined #ruby
[12:33:28] norc: That is anything but pretty though.
[12:34:06] suchness: Can anyone help me with this active record relationship: http://pastie.org/private/7ln7rey7umalbkhxfx779g I am trying to define a scope or a has many relationship that combines two other has_many relationships
[12:34:08] Mon_Ouie: has joined #ruby
[12:34:11] norc: platzhirsch: Otherwise passing Hashes is a common thing, especially since it makes it more readable from the caller perspective which arguments are passed.
[12:34:30] platzhirsch: and can still be nicely written with curly-brace-less syntax
[12:34:40] platzhirsch: As pseudo-named parameters
[12:34:45] |ifei5g00d: has joined #ruby
[12:35:08] sinkensabe: has joined #ruby
[12:35:31] jrhorn: has joined #ruby
[12:35:38] kerunaru: has joined #ruby
[12:35:41] norc: platzhirsch: Used to be that named params were implemented as a Hash too, though I think this has changed in some recent Ruby version.
[12:35:46] neonalpine: has joined #ruby
[12:36:24] mattwildig: has joined #ruby
[12:37:51] tkuchiki: has joined #ruby
[12:38:33] tkuchiki: has joined #ruby
[12:39:48] st1gma: has joined #ruby
[12:39:50] |ifei5g00d: has joined #ruby
[12:42:35] ismaelga: has joined #ruby
[12:43:15] Hounddog: has joined #ruby
[12:43:37] SylarRuby: has joined #ruby
[12:44:12] rgrmatt: has joined #ruby
[12:44:13] decoponio: has joined #ruby
[12:44:46] waxjar: has joined #ruby
[12:44:50] |ifei5g00d: has joined #ruby
[12:45:05] jrhorn: has joined #ruby
[12:45:18] waxjar_: has joined #ruby
[12:45:32] baweaver: has joined #ruby
[12:46:38] senayar: has joined #ruby
[12:48:46] akem: has joined #ruby
[12:49:46] karapetyan: has joined #ruby
[12:50:34] jhass: ?crosspost suchness
[12:50:34] ruboto: suchness, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
[12:50:48] pwnd_nsfw: has joined #ruby
[12:51:26] sdfgsdfg: has joined #ruby
[12:51:28] senayar: has joined #ruby
[12:51:41] jrhorn: has joined #ruby
[12:51:49] suchness: jhass: I did say I crossposted
[12:52:08] centrx: has joined #ruby
[12:52:10] norc: suchness: Could have let us know in the process too.
[12:52:31] suchness: Sorry for being busy at work
[12:52:59] norc: Most people here have other things to do. Trying to not waste their time is a polite thing to do. :-P
[12:53:03] suchness: I guess I assumed that anyone who cared about crossposting would have seen it there and realised it applied here as well.
[12:53:13] Icey: has joined #ruby
[12:53:18] norc: suchness: Not everybody here is on #rubyonrails
[12:53:20] suchness: But that's me clealy giving people too much credit
[12:53:25] norc: That is the point.
[12:53:31] suchness: But the people that are would have seen that!
[12:53:39] suchness: And the people that didn't wouldn't care!
[12:53:54] norc: Except those that are not on #rubyonrails but are trying to help you regardless.
[12:54:00] jhass: suchness: you're missing the point entirely
[12:54:35] Hounddog: has joined #ruby
[12:54:37] suchness: jhass: I think you are.
[12:54:38] jhass: it's not about "people who care about crossposting", it's about not wasting people's time
[12:55:04] jhass: and that actually only applies to people who don't notice the crosspost
[12:55:37] suchness: jhass: Well, when I start wasting people time let me know.
[12:55:46] jhass: I did above
[12:56:22] nocturn: has joined #ruby
[12:56:25] User458764: has joined #ruby
[12:57:41] nocturn: Hi, I'm trying to post a json string to a form field using curb, but it does not work (getting a 500 from Jetty). Is what I am doing possible?
[12:58:02] norc: nocturn: Show us your code please.
[12:58:13] Vitor: has joined #ruby
[12:58:38] krz: has joined #ruby
[12:58:51] jhass: nocturn: if you have access, the underlying error message of the 500 might be helpful too
[13:00:58] A124: has joined #ruby
[13:03:07] ismaelga: has joined #ruby
[13:03:23] synthroid: has joined #ruby
[13:03:26] apeiros: suchness: you just did waste people's time and you have a horrible attitude about it too. it'd be very welcome if you fixed both.
[13:04:50] tulak: has joined #ruby
[13:06:53] allcentu1: has joined #ruby
[13:07:05] suchness: I have a horrible attitude on this irc being more focuses on police work that actually helping people
[13:08:13] apeiros: suchness: if you don't like it, I can show you the door too. saves us some time.
[13:09:04] suchness: Especially when I clearly was considering the rules, and still had someone playing police.
[13:09:58] SylarRuby: Is there a rubyonrails channel? How to redirect a user, with devise, after they are registered but need to confirm? ie: user registers then a message saying they need to confirm their email address. I have added the :confirmable option.
[13:10:06] adaedra: ?rails SylarRuby
[13:10:06] ruboto: SylarRuby, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[13:11:58] tkuchiki: has joined #ruby
[13:12:46] clauswitt: has joined #ruby
[13:12:58] Hounddog: has joined #ruby
[13:15:00] suchness: has left #ruby: ()
[13:15:11] Hounddog: has joined #ruby
[13:16:12] mghaig: has joined #ruby
[13:16:28] nocturn: norc: it is used in a chef resource: http://hastebin.com/wezayuculi.hs
[13:17:18] solenoids: has joined #ruby
[13:19:21] gagrio: has joined #ruby
[13:19:25] wprice: has joined #ruby
[13:19:44] kobain: has joined #ruby
[13:19:58] jhass: nocturn: so no access to the actual error?
[13:20:01] doddok: has joined #ruby
[13:21:51] nocturn: jhass, debug gives: < HTTP/1.1 100 Continue
[13:21:51] nocturn: < HTTP/1.1 500 Server Error
[13:22:11] jhass: nocturn: yeah, that's just "something went wrong"
[13:22:17] jhass: nocturn: nothing in the response body?
[13:22:33] jhass: and no access to the server log?
[13:25:41] quazimodo: has joined #ruby
[13:28:15] yeticry: has joined #ruby
[13:28:31] nocturn: jhass: there is nothing in the server log about this (but that could be normal). It works if I do the same on the CLI with CURL but only when I inlcude a file for contentFile
[13:28:39] sgambino: has joined #ruby
[13:29:37] tmtwd: has joined #ruby
[13:30:00] jhass: nocturn: seriously? a server that isn't logging 500s? how shitty, seriously
[13:30:30] jhass: nocturn: but if you have a request to compare to, I'd get wireshark or mitmproxy and compare them
[13:30:40] yardenbar: has joined #ruby
[13:30:49] yoongkang: has joined #ruby
[13:30:59] red_horned_rihno: has joined #ruby
[13:33:34] neonalpine: has joined #ruby
[13:34:15] moeabdol: has joined #ruby
[13:35:27] zoras: has joined #ruby
[13:36:41] red_horned_rihno: has joined #ruby
[13:37:30] joonty: has joined #ruby
[13:37:32] griffindy: has joined #ruby
[13:38:20] red_horned_rihno: has joined #ruby
[13:39:23] prasselpikachu: has joined #ruby
[13:40:11] djcp: has joined #ruby
[13:40:30] heyimwill: has joined #ruby
[13:41:01] favadi: has joined #ruby
[13:41:29] Tref: has joined #ruby
[13:46:18] baweaver: has joined #ruby
[13:46:50] subscope: has joined #ruby
[13:48:36] Justin_: has joined #ruby
[13:49:23] bruno-: has joined #ruby
[13:49:46] Justin_: has left #ruby: ()
[13:50:33] hahuang65: has joined #ruby
[13:50:34] gusTester: has joined #ruby
[13:51:38] goodcodeguy: has joined #ruby
[13:53:42] gusTester: has left #ruby: ()
[13:54:35] skade: has joined #ruby
[13:54:44] amirpro: has joined #ruby
[13:54:52] avdi: has joined #ruby
[13:54:56] skmp_: has joined #ruby
[13:54:58] bestie: has joined #ruby
[13:55:01] pizzaops: has joined #ruby
[13:55:02] MiracleBlue: has joined #ruby
[13:55:08] danzilio: has joined #ruby
[13:55:12] n1ftyn8_: has joined #ruby
[13:55:15] mjc_: has joined #ruby
[13:55:24] nyandoge: has joined #ruby
[13:55:29] tvw: has joined #ruby
[13:55:30] PlasmaStar: has joined #ruby
[13:55:30] bb010g: has joined #ruby
[13:55:32] countryHick: has joined #ruby
[13:55:35] charles81: has joined #ruby
[13:55:36] ELCALOR: has joined #ruby
[13:55:36] FooMunki: has joined #ruby
[13:56:28] zeljkof: has joined #ruby
[13:56:43] knowtheory: has joined #ruby
[13:56:54] pmarreck: has joined #ruby
[13:57:32] Olipro: has joined #ruby
[13:58:20] bttf: has joined #ruby
[13:59:00] bluOxigen: has joined #ruby
[14:00:25] jrhorn: has joined #ruby
[14:01:04] yeticry: has joined #ruby
[14:01:09] machty: has joined #ruby
[14:01:58] howdoi: has joined #ruby
[14:02:03] mattwildig: has joined #ruby
[14:02:30] dmitch: has joined #ruby
[14:03:46] haxrbyte_: has joined #ruby
[14:04:24] sepp2k: has joined #ruby
[14:04:37] dmitch: has joined #ruby
[14:05:08] B1n4r10: has joined #ruby
[14:07:32] favadi: has joined #ruby
[14:08:31] griffindy: has joined #ruby
[14:08:31] Tref: has joined #ruby
[14:10:37] malconis: has joined #ruby
[14:10:41] centrx: has joined #ruby
[14:10:57] mghaig: has joined #ruby
[14:11:50] favadi: has joined #ruby
[14:14:29] roxtrongo: has joined #ruby
[14:14:49] Jardayn: has joined #ruby
[14:15:00] roxtrongo: has joined #ruby
[14:15:22] joonty: has joined #ruby
[14:15:41] TomPeed: has joined #ruby
[14:15:47] Xeago_: has joined #ruby
[14:16:44] roxtrongo: has joined #ruby
[14:16:50] sankaber: has joined #ruby
[14:16:56] ekinmur: has joined #ruby
[14:17:21] diegoaguilar: has joined #ruby
[14:17:51] mbeasley_: has left #ruby: ("WeeChat 0.4.2")
[14:19:07] arup_r: has joined #ruby
[14:19:09] allcentu1: has joined #ruby
[14:20:56] sankaber: has joined #ruby
[14:21:13] TTilus: nocturn: it might be logging errors to someplace else
[14:21:40] TTilus: that kinda behavior isnt all that rare
[14:22:50] tyler-king: has joined #ruby
[14:23:47] nertzy2: has joined #ruby
[14:23:51] uri: has joined #ruby
[14:25:07] atomical: has joined #ruby
[14:25:19] gagrio-mtg: has joined #ruby
[14:26:49] allcentu1: has joined #ruby
[14:28:44] solocshaw: has joined #ruby
[14:30:24] atomical: has joined #ruby
[14:31:19] yoongkang: has joined #ruby
[14:31:40] babblebre: has joined #ruby
[14:34:37] atomical: has joined #ruby
[14:34:45] SylarRuby: has joined #ruby
[14:34:53] whippythellama: has joined #ruby
[14:36:18] cdg: has joined #ruby
[14:37:15] duckpuppy: has joined #ruby
[14:38:19] simplyianm: has joined #ruby
[14:38:36] SylarRuby: has joined #ruby
[14:38:52] neonalpine: has joined #ruby
[14:39:28] roxtrongo: has joined #ruby
[14:41:02] Blaguvest: has joined #ruby
[14:42:19] system64: has joined #ruby
[14:42:48] kobain: has joined #ruby
[14:44:46] lukaszes: has joined #ruby
[14:45:08] PsychoBoB: has joined #ruby
[14:45:15] PsychoBoB: hello rubbers
[14:45:25] mistermocha: has joined #ruby
[14:45:33] PsychoBoB: How I can to start a learn Ruby ?
[14:46:47] Jtk-Lexus: has joined #ruby
[14:46:53] kaspergrubbe: has joined #ruby
[14:47:06] baweaver: has joined #ruby
[14:47:20] norc: So I was trying to rebase, and blindly typed git rebase --skip - it seems that my changes in my branch are lost.
[14:47:37] monthy: has joined #ruby
[14:47:43] rdavila: has joined #ruby
[14:47:59] norc: Can I simply rewind my HEAD back to a commit that I can see in git reflog?
[14:48:21] umgrosscol: has joined #ruby
[14:48:44] ayonkhan: has joined #ruby
[14:48:50] Jtk-Lexus: norc you are a part of the Isis group ?
[14:48:59] lurch_: has joined #ruby
[14:49:05] norc: Oh sweet. Simply git reset did it in fact.
[14:49:14] norc: git is beginning to be fun
[14:49:26] karapetyan: has joined #ruby
[14:49:34] j416: Jtk-Lexus: not sure what you're getting at but if it's a joke it doesn't feel appropriate
[14:49:36] northfurr: has joined #ruby
[14:50:07] Jtk-Lexus: isis the terrorist group
[14:50:41] j416: norc: search man git-config for missingCommitsCheck -- I have that set to warn, it's a good thing to avoid shooting yourself in the foot by accidentally removing lines in the todo editor (rebase list)
[14:50:50] Spami: has joined #ruby
[14:50:54] j416: norc: (somewhat unrelated)
[14:51:10] pestle: has joined #ruby
[14:51:16] j416: norc: ORIG_HEAD is where you were before you did the rebase so you can reset to that
[14:51:31] j416: norc: (git saves to ORIG_HEAD before starting rebase)
[14:51:32] jhass: !kick Jtk-Lexus troll elsewhere
[14:51:33] ruboto: ruboto kicked Jtk-Lexus: elsewhere
[14:51:33] ruboto: -o ruboto
[14:51:44] jhass: ?links PsychoBoB
[14:51:44] ruboto: PsychoBoB, http://ruby-community.com/pages/links
[14:51:47] j416: thanks jhass
[14:51:58] norc: jhass: Gotcha. I just manually reset --hard to the right commit.
[14:52:40] jhass: norc: http://sethrobertson.github.io/GitFixUm/fixup.html might be worth a bookmark ;)
[14:53:22] rippa: has joined #ruby
[14:53:28] j416: norc knows git from the core now so he doesn't need that guide.
[14:53:40] yqt: has joined #ruby
[14:54:09] norc: j416: Heh. Funny enough I just had to google to figure out about reflog -- the git reset --hard just came natural then.
[14:54:20] j416: norc: :)
[14:54:29] j416: point proven
[14:54:37] gizmore: has joined #ruby
[14:55:40] pandaant: has joined #ruby
[14:55:54] arthurix: has joined #ruby
[14:56:28] ESpiney: has joined #ruby
[14:57:09] norc: jhass: Thank you, reading it now. :)
[14:58:40] Xeago: has joined #ruby
[14:58:58] ismaelga: has joined #ruby
[15:00:42] Z00t: has joined #ruby
[15:05:31] avril14th: has joined #ruby
[15:07:01] be_erik: has joined #ruby
[15:08:47] Jardayn: has joined #ruby
[15:09:37] stannard: has joined #ruby
[15:09:56] Jardayn: has joined #ruby
[15:10:57] haxrbyte: has joined #ruby
[15:11:41] fxhound: has joined #ruby
[15:12:49] blue_deref: has joined #ruby
[15:15:38] dhollinger: has joined #ruby
[15:17:52] User458764: has joined #ruby
[15:18:00] grepwood: has joined #ruby
[15:18:04] grepwood: hello everyone
[15:18:26] cjbischof_: has joined #ruby
[15:18:59] rickmasta: has joined #ruby
[15:19:12] grepwood: how does one concatenate a file on the internet with ruby, when you are behind a firewall?
[15:19:15] mistermocha: has joined #ruby
[15:19:21] grepwood: derp, not firewall, I meant proxy
[15:19:46] arthurix_: has joined #ruby
[15:19:52] banister: has joined #ruby
[15:20:43] alienaut: has joined #ruby
[15:22:31] grill: has joined #ruby
[15:22:51] lukaszes: has joined #ruby
[15:24:46] DelDotB: has joined #ruby
[15:24:53] stannard_: has joined #ruby
[15:27:32] mghaig: has joined #ruby
[15:30:30] centrx: grepwood, "Concatenate a file on the Internet"? What does that mean?
[15:31:25] grepwood: centrx, the same as $(curl http://somesite.com/file 2>/dev/null) means in bash
[15:31:52] centrx: grepwood, You mean retrieve a file?
[15:31:59] dmitch: has joined #ruby
[15:32:00] grepwood: sort of, I don't want to save it
[15:32:02] grepwood: I'd like to read an online file that contains sha1 and md5 sums of another file
[15:32:38] grepwood: the contents of said online file should be stored in memory such that they would not pollute the local storage
[15:32:50] tubbo: grepwood: you can just run `curl http://example.com`
[15:32:54] tubbo: it will output the contents to stdout
[15:33:00] tubbo: oh you mean with Ruby?
[15:33:05] grepwood: yes, of course with Ruby
[15:33:06] SylarRuby: has joined #ruby
[15:33:20] tubbo: grepwood: `system 'curl http://example.com'` hahaha just kidding :D
[15:33:32] grepwood: yeah, I don't have a guarantee that each system has curl :)
[15:33:41] polishdub: has joined #ruby
[15:33:46] tubbo: grepwood: check out the Net::HTTP module, part of the stdlib...or there are a few other libraries like Faraday or Typhoeus you can use as an HTTP client
[15:33:48] centrx: grepwood, http://ruby-doc.org/stdlib-2.1.0/libdoc/open-uri/rdoc/OpenURI.html
[15:33:58] yoongkang: has joined #ruby
[15:34:01] centrx: Yeah you can get more complicated too with HTTP clients
[15:34:42] dopie: has joined #ruby
[15:34:44] grepwood: centrx, I've googled for this last week and found out that open-uri is significantly slower than HTTP from stdlib, but loads easier to use
[15:34:50] Channel6: has joined #ruby
[15:35:26] centrx: grepwood, So you're downloading many files at a time?
[15:35:34] mattwildig: has joined #ruby
[15:35:34] axl_: has joined #ruby
[15:36:58] be_erik: has joined #ruby
[15:38:21] ruurd: has joined #ruby
[15:39:34] ejimz: has joined #ruby
[15:40:06] SylarRuby: has joined #ruby
[15:40:08] grepwood: centrx, nope, just 2
[15:40:18] grepwood: one for md5 sum, one for sha1
[15:40:28] havenwood: The RubyConf stream is back up for today: http://confreaks.tv/videos/rubyconf2015-live-stream
[15:40:36] jhass: grepwood: did it prove to be too slow for your usecase, how did you benchmark that?
[15:40:51] centrx: grepwood, Okay then I highly doubt it's slower
[15:41:02] darkxploit: has joined #ruby
[15:41:16] guillaume-rb: has joined #ruby
[15:41:25] grepwood: I can't even get it up and running, I'm behind a corporate proxy which is quite painful, let me see if I got the benchmark (done by someone else) in my browsing history
[15:41:44] havenwood: grepwood: "OpenURI is an easy-to-use wrapper for net/http, net/https and net/ftp."
[15:41:52] jhass: grepwood: benchmark done by somebody else on some arbitrary problem is irrelevant to your problem
[15:43:22] jhass: grepwood: net/http and thus by induction open-uri should respect the http_proxy environment variable if set properly
[15:43:28] _seanc_: has joined #ruby
[15:43:46] jhass: note it's lowercase http_proxy, a bit untypical for environment variables
[15:43:49] Salehi: has joined #ruby
[15:43:58] grepwood: yeah, I know that
[15:44:15] jhass: how about you state your actual problem with it then?
[15:44:28] grepwood: right, here's the full story
[15:44:40] grepwood: we're using cookbooks to do automated setups
[15:44:57] treehug88: has joined #ruby
[15:45:02] pglombardo: has joined #ruby
[15:45:45] grepwood: one setup for installing prestodb is very silly, it downloads the main tarball even though it might not be needed, it doesn't create symlinks to the current supported version of prestodb, nothing smart about the cookbook really
[15:45:58] kies: has joined #ruby
[15:46:00] grepwood: so I've decided to change it
[15:46:21] grepwood: first, the tarball should not be downloaded if it's already in chef's cache and it passes sha1 and md5 checks
[15:46:41] SteveC: has joined #ruby
[15:47:10] grepwood: for that, I need the answers to sha1 and md5 checks provided by the prestodb download site, I'm already hashing the tarball locally to compare it against "true" values
[15:47:36] be_erik: has joined #ruby
[15:47:51] baweaver: has joined #ruby
[15:47:52] CustosLimen: so I have ruby running with passenger
[15:48:05] SteveC: has left #ruby: ()
[15:48:06] CustosLimen: sorry I mean gollum running with passenger
[15:48:11] CustosLimen: I want to add oauth2 in front of it
[15:48:16] grepwood: secondly, no installation should be made if there is a symlink to a supported version of prestodb and it works
[15:48:49] grepwood: you can imagine how a lot of time can be wasted if you download a 400MB tarball over a 100KB/s link and then extract it
[15:49:05] patdohere: has joined #ruby
[15:49:14] maikowblue: has joined #ruby
[15:49:32] jhass: CustosLimen: what do you mean with you want to add oauth2 in front of it
[15:49:44] grepwood: the third thing the cookbook does is it provides prestodb with credentials to other databases, this is fine and updating said credentials is the most common reason to run the cookbook
[15:49:49] uri: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[15:49:54] CustosLimen: jhass, I want only people who has oauth credentials with slack to be able to access gollum
[15:49:55] freerobby: has joined #ruby
[15:50:20] jhass: CustosLimen: so you want to do third party authentication via slacks API
[15:50:35] CustosLimen: jhass, well with oauth2 from slack
[15:50:51] CustosLimen: jhass, https://api.slack.com/docs/oauth
[15:50:54] lurch_: has joined #ruby
[15:51:12] jhass: CustosLimen: gollumn looks like a sinatra app, google omniauth + sinatra and then omniauth + slack
[15:51:25] CustosLimen: jhass, ok let me try that
[15:51:26] kp666: has joined #ruby
[15:51:31] mustmodify: has joined #ruby
[15:52:18] CustosLimen: jhass, thanks
[15:52:29] grepwood: also, this is the link to the benchmark http://stackoverflow.com/questions/3193538/ruby-retrieve-contents-of-url-as-string/30343104#30343104
[15:52:30] jhass: CustosLimen: note that'll require quite some modification to gollumn, it doesn't look like it's build for doing much authentication
[15:52:59] bougyman: anyone @rubyconf?
[15:53:04] jhass: grepwood: thanks for the background story, but what's your actual issue?
[15:53:20] mustmodify: I'm writing a presenter class whose purpose is to receive an array of labels, the width available for each one, and will return the appropriate font size and, if needed, how to wrap those lines. It will take something like the link below and make sure all the text is the same size and wrapped attractively.
[15:53:22] mustmodify: http://artisan.physioagereporting.com/spectrum.svg?ranges=lbl:Stiff%20Arteries%20or%20Dehydration,cls:B,rng:%3C65|lbl:Optimal,cls:O,rng:65-75|lbl:Healthy,cls:H,rng:75-85|lbl:Borderline%20Hypertension,cls:B,rng:85-90|lbl:Hypertension,cls:D,rng:90-120|lbl:Severe%20Hypertension,cls:C,rng:120-130&style=narrow
[15:54:10] cyb3rspy: has joined #ruby
[15:54:11] mustmodify: So the interface I'm looking at is LabelPresenter.new(labels: [], range_width: <in px>)
[15:54:18] grepwood: jhass, I would like to download 2 files (containing those hash sums) with Net:HTTP and store their contents as variables, rather than store them in storage
[15:54:30] grepwood: also my bias towards Net::HTTP stems from this particular benchmark
[15:54:47] mustmodify: and the deliverables would be font size and how to wrap each line.
[15:55:06] jhass: grepwood: I'll be blunt: the bias is stupid for your usecase. But anyway, I imagine you tried something and it doesn't work. What did you try and how does it fail?
[15:55:41] krak3n: has joined #ruby
[15:55:48] mustmodify: Question: does it make more sense to have presenter.wrap(original_label) return a single label or presenter.wrapped_labels return an array of arrays... that is, an array of wrapped lines?
[15:55:59] mustmodify: or does it not matter and I'm overthinking again?
[15:56:13] grepwood: jhass, I tried to start a connection with repo1.maven.org (which is where the files are located) with appropriate proxy settings put in place, the result was irb spewing errors at me because I wrote it wrong
[15:56:47] mary5030: has joined #ruby
[15:56:58] jhass: grepwood: do you want help?
[15:57:30] mary5030: has joined #ruby
[15:57:32] grepwood: jhass, yes please, I'm really clueless
[15:57:47] jhass: grepwood: then stop being so awfully vague
[15:57:53] dlitvak_: has joined #ruby
[15:58:06] jhass: I repeat, show what you tried and the error it gives
[15:58:22] ruboto: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[15:58:41] grepwood: I'll try to repeat the codes from friday and come back
[16:00:43] filipechagas: has joined #ruby
[16:00:44] araujo_: has joined #ruby
[16:01:19] naftilos76: has joined #ruby
[16:02:23] thbar: has joined #ruby
[16:02:45] arup_r: has joined #ruby
[16:03:14] naftilos76: has joined #ruby
[16:03:45] mistermocha: has joined #ruby
[16:04:46] dlitvak: has joined #ruby
[16:04:48] naftilos76: has joined #ruby
[16:04:53] grilled-cheese: has joined #ruby
[16:05:05] malconis: has joined #ruby
[16:05:33] yalue: has joined #ruby
[16:05:46] rdark: has joined #ruby
[16:05:46] rdark: has joined #ruby
[16:06:49] dlitvak__: has joined #ruby
[16:07:09] haxrbyte: has joined #ruby
[16:07:11] yalue: has joined #ruby
[16:07:11] Z00t: has joined #ruby
[16:07:43] naftilos76: has joined #ruby
[16:07:48] diegoaguilar: has joined #ruby
[16:08:34] dlitvak__: has joined #ruby
[16:09:24] _seanc_: has joined #ruby
[16:09:25] yalue: has joined #ruby
[16:09:43] Z00t: has joined #ruby
[16:09:50] diegoaguilar: has joined #ruby
[16:10:06] naftilos76: has joined #ruby
[16:10:14] mghaig: has joined #ruby
[16:10:29] dlitvak_: has joined #ruby
[16:10:55] ellisTAA: has joined #ruby
[16:11:04] yalue: has joined #ruby
[16:11:15] matcz: has joined #ruby
[16:11:49] diegoaguilar: has joined #ruby
[16:12:19] dlitvak: has joined #ruby
[16:12:42] malconis: has joined #ruby
[16:13:18] IrishGringo: has joined #ruby
[16:13:26] naftilos76: has joined #ruby
[16:13:28] yalue: has joined #ruby
[16:13:45] diegoaguilar: has joined #ruby
[16:13:53] sinkensabe: has joined #ruby
[16:14:53] yalue: has joined #ruby
[16:15:03] naftilos76_: has joined #ruby
[16:15:04] sinkensa_: has joined #ruby
[16:15:22] diegoaguilar: has joined #ruby
[16:15:24] malconis: has joined #ruby
[16:15:26] arthurix: has joined #ruby
[16:15:28] mustmodify: or am I dumb to be creating a presenter for this? :)
[16:15:39] RegulationD: has joined #ruby
[16:15:53] adaedra: presenter?
[16:16:10] yalue: has joined #ruby
[16:17:04] diegoaguilar: has joined #ruby
[16:17:39] yalue: has joined #ruby
[16:17:56] ytti: why does 'for' exist in ruby?
[16:18:03] ytti: when might you want to use it?
[16:18:22] centrx: ytti, It's an alternative for #each
[16:18:31] naftilos76: has joined #ruby
[16:18:37] ytti: centrx, not really
[16:18:40] ytti: i mean yeah, it's iterator
[16:18:51] ytti: but saying it's alternative to method is bit weird
[16:18:54] sinkensabe: has joined #ruby
[16:18:57] diegoaguilar: has joined #ruby
[16:18:57] yalue: has joined #ruby
[16:19:13] centrx: ytti, for x in y is rewritten by the interpreter to y.each { |x|
[16:19:35] centrx: ytti, My understanding is it's identical, just syntactic sugar
[16:19:37] mattwildig: has joined #ruby
[16:19:48] ytti: i'd say MGS
[16:19:55] ytti: syntactic MGS
[16:19:59] ytti: or maybe even worse
[16:21:24] centrx: ytti, Yeah it's generally not used
[16:21:29] apeiros: there's a difference - for has no separate lvar context
[16:21:54] naftilos76: has joined #ruby
[16:22:29] malconis_: has joined #ruby
[16:23:39] agentmeerkat: has joined #ruby
[16:23:54] dfockler: has joined #ruby
[16:27:30] theRoUS: has left #ruby: ("Off to another part of the maze of twisty little passages")
[16:29:47] grepwood: jhass, okay, I got some progress with open-uri
[16:30:20] grepwood: http://pastebin.com/raw.php?i=KCbwCYxr
[16:30:20] ruboto: grepwood, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[16:30:37] grepwood: b-but, raw view doesn't have ads
[16:30:48] jhass: the bot doesn't care :P
[16:30:54] mustmodify: adaedra: no. It's not rails. Actually it's running on a very very light-weight framework, almost just rack.
[16:30:58] adaedra: b-but, raw view doesn't have coloration.
[16:31:02] jhass: and few people will actually pay attention to whether you posted the raw view or not
[16:33:19] beauby: has joined #ruby
[16:33:39] adaedra: so many people writing their own web framework :p
[16:34:35] lxsameer: has joined #ruby
[16:34:57] jackjackdripper: has joined #ruby
[16:35:07] grepwood: adaedra, so does the actual paste
[16:35:31] adaedra: No colors at all? D:
[16:35:36] adaedra: This is madness.
[16:36:03] nrlad: has joined #ruby
[16:36:09] Xeago: has joined #ruby
[16:36:37] grepwood: it wouldn't make sense to apply ruby coloration to irb output
[16:36:53] grepwood: but rather to just ruby code and nothing else
[16:36:54] nrlad: has left #ruby: ()
[16:37:21] jhass: uh, scary, the proxy handling is all over the place
[16:37:29] jhass: half in open-uri, half in uri?
[16:37:42] grepwood: both done with open-uri
[16:37:56] grepwood: difference: https broken, http working
[16:38:04] adaedra: grepwood: note that i'm not 100% serious in these messages, text may not render that correctly.
[16:38:51] grepwood: you can tell I'm too tired to look out for that :)
[16:38:53] jhass: grepwood: so, from a brief glance at the code, open-uri doesn't support https proxies, for whatever silly reason (there's none really, basically just a missing check)
[16:39:45] jhass: grepwood: so apparently you want to do something like https://www.ruby-forum.com/topic/4404752#1071829 just please make sure to just drop the stupid verfiy_mode thingies
[16:40:42] grepwood: oh god, thanks
[16:41:21] jhass: well, or use a higher level curl interface, like typhoeus or faraday with the curb or typhoeus backend
[16:41:40] jhass: but that adds external gem dependencies
[16:43:18] adaedra: yorickpeterse: I'm going to use oga <3
[16:43:45] TeresaP: has joined #ruby
[16:44:05] jhass: welp, actually nvm, that probably won't work either
[16:44:18] mustmodify: has left #ruby: ()
[16:44:52] tkuchiki: has joined #ruby
[16:44:57] polishdub: has joined #ruby
[16:46:01] jhass: grepwood: actually I'm not sure there's any way to use an HTTPS proxy from looking at the code, it always wants to do the proxy handshake over plain http
[16:46:08] Xeago: has joined #ruby
[16:46:49] jhass: or does it? this code is confusing :/
[16:47:34] pdoherty: has joined #ruby
[16:47:50] ldnunes: has joined #ruby
[16:47:54] [Butch]: has joined #ruby
[16:47:58] grepwood: jhass, it is hella confusing
[16:48:05] haxrbyte: has joined #ruby
[16:48:11] Haradani: has joined #ruby
[16:48:24] jwaldrip: has joined #ruby
[16:48:30] jhass: mh, no actually it does try a TLS handshake when use_ssl is true on the proxy connection already
[16:48:41] baweaver: has joined #ruby
[16:48:47] _stu_: has joined #ruby
[16:48:51] jhass: https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L868-L870 takes the proxy address
[16:49:01] jhass: https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L879 opens a socket to that
[16:49:03] grepwood: http://pastebin.com/C9FLxgQ5
[16:49:03] ruboto: grepwood, as I told you already, please use https://gist.github.com
[16:49:11] jhass: https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L899 does the TLS handshake
[16:49:12] Haradani: has left #ruby: ()
[16:50:06] jhass: grepwood: yeah, actually it should even work when you pass the proxy & use_ssl options to the Net::HTTP.new directly
[16:50:39] thbar: has joined #ruby
[16:50:48] mistermocha: has joined #ruby
[16:51:38] grepwood: jhass, I shouldn't be passing proxy like this
[16:52:11] grepwood: we have a couple dozen proxies, this one sits in Finland, so it's going to produce poor results for datacenters further away from it
[16:52:19] marr: has joined #ruby
[16:52:36] treehug88: has joined #ruby
[16:52:45] jhass: grepwood: let me type up an untested thingy
[16:52:47] grepwood: the most optimal way is to inherit proxy settings from /etc/chef/client.rb
[16:52:58] rdavila: has joined #ruby
[16:53:28] grepwood: jhass, you helped a lot, thank you so much :)
[16:54:44] stephenh: has joined #ruby
[16:55:11] haylon: has joined #ruby
[16:55:50] haxrbyte: has joined #ruby
[16:55:58] ruurd: has joined #ruby
[16:56:38] stephenh: hello, random question :) it seems that ruby/pry can't read 'C:\Windows\System32\CertSrv', trying to glob that dir tells me it doesn't exist. Has anyone come across that or other directories that ruby can't seem to find? It doesn't seem to be a permissions things because when I do the same thing with cmd or powershell I can view the dir contents
[16:57:07] stephenh: Quite a random question for a Monday, but I am stumped at this point as to why I can't read it
[16:57:29] ruurd: stephenh rights?
[16:57:33] be_erik: has joined #ruby
[16:58:14] psye: has joined #ruby
[16:58:15] ruurd: what happens if you stat it?
[16:58:29] xcesariox: has joined #ruby
[16:58:31] Xeago: has joined #ruby
[16:58:39] jhass: grepwood: I think something simple like this should work too: http://p.jhass.eu/y.rb As said untested, and no idea how to read settings from Chef, but it should make clear on how to feed them to Net::HTTP
[16:59:03] stephenh: ruurd: same deal:
[16:59:12] stephenh: No such file or directory - /Windows/System32/CertSvc
[16:59:30] ramfjord: has joined #ruby
[16:59:38] ruurd: is it hidden or system or something other...
[16:59:39] stephenh: when I glob /Windows/System/Cert*, I can see a bunch of other files, no CertSvc dir
[16:59:48] stephenh: let me check that
[17:00:04] haylon: has left #ruby: ()
[17:00:20] rehat_: has joined #ruby
[17:00:26] eam: stephenh: I believe those are magic paths in windows
[17:00:35] stephenh: eam: that's what I was thinking
[17:00:36] eam: they change based on the architecture of the accessing binary
[17:00:47] stephenh: so I globbed /windows/** to a file and couldn't find it there either
[17:00:55] eam: try using a 32bit ruby
[17:01:23] Xeago_: has joined #ruby
[17:02:18] stephenh: eam: platform = i386-mingw32
[17:02:27] eam: then try using a 64bit ruby ;)
[17:02:45] stephenh: I'm using Chef's embedded ruby
[17:03:31] eam: if you dig around I think you'll find the actual paths that are reachable via any architecture, which these names map to
[17:03:32] thbar: has joined #ruby
[17:04:32] stephenh: was thinking the same - just not sure how to go about that
[17:04:48] ismaelga: has joined #ruby
[17:05:02] stephenh: spent some time googling about before asking
[17:05:29] be_erik: has joined #ruby
[17:06:48] eam: stephenh: look in Windows\SysWOW64
[17:08:17] arup_r: has joined #ruby
[17:08:59] Jardayn: has joined #ruby
[17:09:30] PsychoBoB: has left #ruby: ("Leaving")
[17:10:16] nietzschette: has joined #ruby
[17:11:28] govg: has joined #ruby
[17:12:34] synthroid: has joined #ruby
[17:12:39] EminenceHC: has joined #ruby
[17:12:50] CodingWolf: has joined #ruby
[17:13:33] SCHAAP137: has joined #ruby
[17:14:18] c_nick: has joined #ruby
[17:14:20] nietzschette: hi ya'll. I appear to have run into an issue when writing and reading binary data from files. my unpacked strings occationally omit values or have unexpectedly large values. packing and unpacking strings works fine, it's just if I pack, write to a file, read from a file, the resulting array appears corrupted
[17:14:27] c_nick: anyone heard of nc proxy?
[17:14:52] adaedra: code, nietzschette?
[17:15:10] roxtrongo: has joined #ruby
[17:15:22] nietzschette: . . . it's long an complicated . . . i'm using IO.binwrite and IO.binread
[17:15:54] adaedra: try to make a minimal example then
[17:16:07] nietzschette: mmmk, gimme moments
[17:16:09] adaedra: it's hard to tell what's wrong with nothing
[17:16:50] tjohnson: has joined #ruby
[17:18:18] jhn: has joined #ruby
[17:18:44] ruurd: has joined #ruby
[17:19:08] ytti: problem with minimal examples if that they work, then i hav to realise that my shitty code is broken
[17:19:30] mghaig: has joined #ruby
[17:19:31] djanatyn: has joined #ruby
[17:19:51] yoongkang: has joined #ruby
[17:19:56] eam: well, this is just the nature of debugging, right? Once you break everything into minimal examples of where you think the problem is, you'll find the problem
[17:20:13] eam: or you find the implementation has a bug, or unexpected behavior, which isn't that uncommon either
[17:20:29] nietzschette: yeah, i've already re-written the code once and the issue presists. it's wierd because i don't know if it's because of new machine or new code
[17:20:30] mesamoo: has joined #ruby
[17:20:57] grilled-cheese: howdy, eam I think you were the one the other day I talked with about using ruby to get local account SID
[17:21:08] grilled-cheese: just wanted to share back my solution for local user data
[17:21:09] ytti: eam, it was bad attempt at joke
[17:21:10] grilled-cheese: https://github.com/jhg03a/puppet-accountfacts/blob/master/lib/facter/accountfacts.rb
[17:21:14] eam: ytti: :)
[17:21:32] eam: grilled-cheese: cool!
[17:21:47] eam: net user eh
[17:22:29] hashpuppy: has joined #ruby
[17:22:33] grilled-cheese: not ideal, but it works
[17:23:12] eam: windows ??\_(???)_/??
[17:23:13] nettoweb: has joined #ruby
[17:23:20] sinkensabe: has joined #ruby
[17:23:37] grilled-cheese: the tricky part was getting the profile directories
[17:23:56] grilled-cheese: since you can only get that info from the registry referenced by SID
[17:24:11] eam: yeah that looks pretty obnoxious
[17:24:23] eam: is a profile directory the windows equiv of ~?
[17:24:42] blueOxigen: has joined #ruby
[17:25:04] grilled-cheese: net user has a place to provide an override, but it???s empty if using defaults
[17:25:24] grilled-cheese: this solution pulled the right place regardless
[17:25:28] towski_: has joined #ruby
[17:25:48] karapetyan: has joined #ruby
[17:26:22] grilled-cheese: yep, just wanted to share the solution in case somebody else came along needing something similar
[17:26:34] tkuchiki: has joined #ruby
[17:26:41] grilled-cheese: it???s the heart of a puppet module I put together
[17:27:12] eam: puppet and windows together; I don't envy your job :)
[17:27:14] be_erik: has joined #ruby
[17:27:43] tom_lowndes: has joined #ruby
[17:27:46] tulak: has joined #ruby
[17:28:34] h99h9h88: has joined #ruby
[17:29:24] h99h9h88: Is anyone else at rubyconf right now?
[17:29:49] dn5: has joined #ruby
[17:32:14] synthroid: has joined #ruby
[17:32:21] yardenbar: has joined #ruby
[17:32:49] pietr0: has joined #ruby
[17:33:35] grilled-cheese: eam: I wrote the windows part for general usage (not my own)
[17:34:35] grilled-cheese: I keep one windows box in my puppet test lab to be sure I don???t do something with hiera that???s going to cause an issue if we needed to add it for some reason
[17:35:19] atomical_: has joined #ruby
[17:36:29] atomical_: has joined #ruby
[17:37:36] jwaldrip_: has joined #ruby
[17:38:37] adaedra: ho ho ho ??? Santa Claus
[17:38:50] nietzschette: okay, i'm an idiot and was somehow typed 'write' and somehow thought i typed 'binwrite'
[17:39:12] adaedra: good thing with minimal examples: they can make you question your code.
[17:39:30] M-Kodo: has joined #ruby
[17:39:59] Kabaka: has joined #ruby
[17:40:00] nietzschette: yes. yes. thanks again freenode, may your guidance and wisdom ever illuminate mine path
[17:40:29] voker57: has joined #ruby
[17:40:43] eam: nietzschette: maybe IO.binmode your descriptors to prevent similar issues
[17:41:06] eam: easier to set such as an attribute on the handle rather than worrying over every method that does i/o
[17:42:30] nietzschette: that's good advice, thanks
[17:42:31] suchness: has joined #ruby
[17:42:51] cwong_on_irc: has joined #ruby
[17:43:04] amincd: has joined #ruby
[17:43:28] amincd: Can someone explain to me what this: "puts Inside_one::CONST.call" means in the following page: http://www.tutorialspoint.com/ruby/ruby_operators.htm\
[17:43:33] amincd: what is .call calling?
[17:44:14] ytti: [1] pry(main)> k = Proc.new { 1 +1 }
[17:44:14] ytti: => #<Proc:0x00000003c370c8@(pry):1>
[17:44:14] ytti: [2] pry(main)> k.call
[17:44:40] vigintas1: has joined #ruby
[17:45:22] amincd: ytti: I'm still confused. Is it the size of the array?
[17:45:41] ytti: amincd, it's a proc, which is stored in a variable and called upon later
[17:45:42] jhass: amincd: CONST = proc {' in there'}
[17:45:48] jhass: amincd: it calls that proc
[17:45:48] M-mistake: has joined #ruby
[17:45:49] M-prosodyContext: has joined #ruby
[17:46:38] bluOxigen: has joined #ruby
[17:46:40] speakingcode: has joined #ruby
[17:47:59] Ilyes512: has joined #ruby
[17:48:03] grill: has joined #ruby
[17:48:19] amincd: so .call calls the proc of a class?
[17:48:29] amincd: maybe I shouldn't be asking these newbie questions here
[17:48:40] jhass: no worries, they're fine
[17:48:49] jhass: a Proc is a regular object
[17:49:00] jhass: this one is assigned to a Constant
[17:49:17] jhass: the constant is called CONST and inside the namespace Inside_one
[17:49:21] baweaver: has joined #ruby
[17:49:48] FooMunki: has joined #ruby
[17:49:56] jhass: so "of a class" doesn't make too much sense, Proc's aren't associated to anything in particular, they just may or may not be assigned to things, since they're regular objects
[17:51:13] ruurd: has joined #ruby
[17:51:27] SenpaiSilver: has joined #ruby
[17:51:36] araujo: has joined #ruby
[17:51:36] araujo: has joined #ruby
[17:51:36] amincd: so {some constant}.call calls its value?
[17:52:47] mrtomme: has joined #ruby
[17:53:09] j4cknewt: has joined #ruby
[17:53:09] jhass: no, .call is a method on Proc which invokes it
[17:53:57] jhass: like in "foo".size and X = "foo"; X.size both call String#size, proc { 1+1 }.call and X = proc { 1+1 }; X.call both call Proc#call
[17:54:09] skweek: has joined #ruby
[17:54:10] djbkd: has joined #ruby
[17:54:20] ruurd: has joined #ruby
[17:54:45] eam: >> a_proc = ->{"this is " + "some code"}; [a_proc.inspect, a_proc.call]
[17:54:46] ruboto: eam # => ["#<Proc:0x411b3a8c@/tmp/execpad-a2614f2cf6e3/source-a2614f2cf6e3:2 (lambda)>", "this is some code"] ...check link for more (https://eval.in/469825)
[17:54:55] Encapsulation: has joined #ruby
[17:58:23] synthroid: has joined #ruby
[18:01:16] Z00t: has joined #ruby
[18:01:37] prestorium: has joined #ruby
[18:02:16] gregf_: >> proc { "this is " + "some code" }.call
[18:02:17] ruboto: gregf_ # => "this is some code" (https://eval.in/469830)
[18:04:01] alexherbo2: has joined #ruby
[18:04:16] htmldrum: has joined #ruby
[18:04:30] atomical: has joined #ruby
[18:05:19] mghaig: has joined #ruby
[18:05:26] leafybas_: has joined #ruby
[18:06:19] DelDotB: has joined #ruby
[18:06:26] TomPeed: has joined #ruby
[18:06:55] mary5030: has joined #ruby
[18:07:01] DelDotB: has left #ruby: ()
[18:07:12] ruurd: has joined #ruby
[18:07:41] terminalrecluse: has joined #ruby
[18:07:54] gregf_: amincd: have you used another language before?
[18:08:19] be_erik: has joined #ruby
[18:08:42] EminenceHC: has joined #ruby
[18:09:16] amincd: gregf_: yes, PHP, a little C++, some Java
[18:10:47] rakm: has joined #ruby
[18:13:56] bmalum: has joined #ruby
[18:14:19] tak1n: has joined #ruby
[18:15:13] umgrosscol: has joined #ruby
[18:15:45] karapetyan: has joined #ruby
[18:15:55] roxtrongo: has joined #ruby
[18:16:52] arup_r1: has joined #ruby
[18:17:31] baweaver: has joined #ruby
[18:17:39] trav408: has joined #ruby
[18:17:50] mistermo_: has joined #ruby
[18:18:52] amclain: has joined #ruby
[18:19:24] baweaver: has joined #ruby
[18:19:35] havenwood: Anything better to call them than "pretzel-tailed methods?"
[18:19:43] gregf_: amincd: PHP, ok. well JAVA/C++ would'nt have it i guess :/
[18:19:49] rgtk: has joined #ruby
[18:19:56] Axsuul: has joined #ruby
[18:20:18] gregf_: amincd: but yeah, in PHP its equivalent would be something like an anonymous function i guess :|
[18:20:19] unknowns2k2: has joined #ruby
[18:20:36] jhass: Java 7 has lambdas, sort of
[18:21:23] amincd: yeah I'm starting to get it now. I find I grasp things only when I use them, so that's what I'm trying to do
[18:21:34] gregf_: amincd: $a = function(array $foo = array()){ return array_map(function($v){ return $v * $v; }, $foo); }; var_dump($a(array(1,2,3))); <== in php
[18:22:05] gregf_: amincd: proc { |*arr| arr.map { |v| v * v } }.call(1,2,3) <== this is the ruby equivalent. *se, so less code*
[18:22:09] Musashi007: has joined #ruby
[18:22:31] jamesaxl: has joined #ruby
[18:22:36] thbar: has joined #ruby
[18:23:25] nettoweb: has joined #ruby
[18:23:27] mistermocha: has joined #ruby
[18:23:40] Ilyes512: has joined #ruby
[18:24:54] Azulinho: has joined #ruby
[18:26:33] mistermocha: has joined #ruby
[18:27:35] mesamoo: has joined #ruby
[18:27:57] gregf_: has joined #ruby
[18:28:12] amincd: gregf_: thanks
[18:28:13] strgbrew: has joined #ruby
[18:28:14] Guest97: has joined #ruby
[18:29:01] rakm: has joined #ruby
[18:29:05] zotherstupidguy: has joined #ruby
[18:30:08] c_nick: has left #ruby: ()
[18:31:34] DelDotB: has joined #ruby
[18:31:44] zotherstupidguy: has left #ruby: ()
[18:32:26] strgbrew: has joined #ruby
[18:32:43] Tref: has joined #ruby
[18:32:46] lukaszes: has joined #ruby
[18:32:47] yalue: has joined #ruby
[18:33:53] shevy: even less code if you use one character for variables :D
[18:35:34] havenwood: shevy: ->(*a){a.map &:abs2}[1,2,3]
[18:38:45] casadei: has joined #ruby
[18:40:56] asianMike: has joined #ruby
[18:41:04] strgbrew: has joined #ruby
[18:41:54] shevy: we got Struct#dig
[18:43:03] havenwood: shevy: I was glad to see OpenStruct and Struct dig'n!
[18:43:55] apeiros: diggediding!
[18:44:06] havenwood: shevy: Though it's not been merged, right?
[18:44:08] beanHolez: has joined #ruby
[18:44:43] darkxploit: has joined #ruby
[18:44:44] Coldblackice_: has joined #ruby
[18:44:48] kinduff: has joined #ruby
[18:44:49] amincd: gregf_: so in your ruby example, could I assign that proc to a variable (e.g. a = proc{...}), and then call it (e.g. a.call(1,2,3))?
[18:45:02] havenwood: amincd: Try it!
[18:45:32] havenwood: amincd: $ irb
[18:46:14] havenwood: amincd: Know about Ruby's REPLs?
[18:46:17] chipotle: has joined #ruby
[18:46:40] ruboto: Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.org/ or get it now with: gem install pry pry-doc
[18:47:41] shevy: havenwood dunno, I just read through the changelog https://github.com/ruby/ruby/blob/trunk/ChangeLog#L10
[18:47:46] shevy: I don't want to wait for xmas
[18:48:03] s2013: has joined #ruby
[18:48:06] asdfjkh: has joined #ruby
[18:48:07] havenwood: shevy: Ah, nice.
[18:48:23] ruby-lang155: has joined #ruby
[18:49:01] amincd: havenwood: I don't
[18:49:26] ta: has joined #ruby
[18:49:55] spider-mario: has joined #ruby
[18:50:12] lemur: has joined #ruby
[18:50:13] havenwood: amincd: A Read Eval Print Loop (REPL) lets you eval code and see the result then loop and do it again.
[18:50:19] be_erik: has joined #ruby
[18:50:27] havenwood: amincd: IRB ships with Ruby. You can run it from your console with `irb`.
[18:50:28] jwaldrip__: has joined #ruby
[18:50:50] havenwood: amincd: Pry is a gem that is a popular IRB alternative. You can install it with `gem install pry` then run it from your console with `pry`.
[18:51:21] chipotle: has joined #ruby
[18:51:35] havenwood: amincd: From the REPL you can try out code and get results quickly. Type `help` to learn more or `exit` to leave.
[18:52:23] havenwood: amincd: If you have Ruby installed, try: irb
[18:52:32] havenwood: amincd: Then for example: 1 + 1
[18:52:45] havenwood: amincd: Or the proc example you asked about.
[18:53:41] mattwildig: has joined #ruby
[18:54:06] havenwood: amincd: Know what a gem is?
[18:54:32] rgtk_: has joined #ruby
[18:55:15] havenwood: http://guides.rubygems.org/rubygems-basics/
[18:55:44] havenwood: Ruby ships with RubyGems, which provides the `gem` command to manage Ruby packages.
[18:55:53] momomomomo: has joined #ruby
[18:56:01] amclain: has joined #ruby
[18:56:49] amincd: havenwood: thanks
[18:57:02] havenwood: amincd: no prob, yell if you have questions
[18:57:16] jackjackdripper: has joined #ruby
[18:57:16] amincd: havenwood: cheers, will do
[18:57:46] be_erik: has joined #ruby
[18:57:48] azul1: has joined #ruby
[18:58:44] tejasmanohar: what kinda looop / iteration pattern does `x.step do |i|`create?
[18:58:52] tejasmanohar: where x is a #, say 1
[18:59:03] tejasmanohar: is this commonly used for array iteration?
[18:59:19] apeiros: &ri Integer#step @tejasmanohar
[18:59:19] `derpy: tejasmanohar: http://www.rubydoc.info/stdlib/core/Numeric#step-instance_method
[19:00:13] peppers: has joined #ruby
[19:00:22] tejasmanohar: gotcha, trying to figure out what happens when no limit is specified
[19:00:28] tejasmanohar: looking there...
[19:00:35] havenwood: >> 1.step.size
[19:00:36] ruboto: havenwood # => Infinity (https://eval.in/469852)
[19:00:39] amincd: irb is useful :)
[19:00:42] tejasmanohar: got it, and then just break out and whatnot
[19:00:50] ytti: who uses irb
[19:00:56] jackjackdripper: has joined #ruby
[19:01:02] havenwood: ytti: irb users
[19:01:02] apeiros: people who didn't install pry?
[19:01:11] mistermocha: has joined #ruby
[19:01:46] havenwood: One step unto infinity.
[19:01:59] Azulinho: has joined #ruby
[19:03:09] tvw: has joined #ruby
[19:03:20] Yzguy: has joined #ruby
[19:03:20] duckpupp1: has joined #ruby
[19:03:21] h99h9h88: has joined #ruby
[19:04:22] tyler-king: has joined #ruby
[19:04:23] dotix: has joined #ruby
[19:04:24] dotix: has joined #ruby
[19:04:25] leafybasil: has joined #ruby
[19:04:54] wilsonc91: has joined #ruby
[19:05:00] _djbkd: has joined #ruby
[19:07:14] grilled-cheese: has left #ruby: ()
[19:08:26] mary5030: has joined #ruby
[19:08:34] Xeago: has joined #ruby
[19:10:23] zeroDivisible: has joined #ruby
[19:10:24] karapetyan: has joined #ruby
[19:10:29] amincd: can I see the last program in IRB with a shortcut? Like the way you can see the last terminal command by pressing UP?
[19:10:46] apeiros: amincd: you can see the last line by pressing up
[19:10:52] kinduff: has joined #ruby
[19:11:09] apeiros: and you can access all lines stored in the history via Readline::HISTORY. how long that is depends on your config.
[19:11:30] neonalpine: has joined #ruby
[19:11:30] apeiros: and in pry there's the `hist` command
[19:11:42] dlitvak_: has joined #ruby
[19:11:42] amincd: apeiros: up doesn't work for me
[19:12:02] amincd: it shows ^[[A
[19:12:02] apeiros: then you've for whatever reason an irb without readline
[19:12:02] gusTester: has joined #ruby
[19:12:19] skweek: has joined #ruby
[19:12:24] apeiros: IMO just install pry
[19:12:33] apeiros: easier than figuring out why you don't have readline in your irb.
[19:12:47] amincd: I'll just use the old fashioned: ruby [filename]
[19:13:32] bruno-: has joined #ruby
[19:14:09] podman: has joined #ruby
[19:14:56] baweaver: has joined #ruby
[19:17:30] blueOxigen: has joined #ruby
[19:17:56] mattwildig: has joined #ruby
[19:18:19] djbkd: has joined #ruby
[19:18:53] djbkd: has joined #ruby
[19:20:29] yoongkang: has joined #ruby
[19:21:07] mary5030: has joined #ruby
[19:23:53] shevy: readline is great, you should install it amincd
[19:24:05] amincd: shevy: ok
[19:27:07] pdoherty: has joined #ruby
[19:27:57] dlitvak: has joined #ruby
[19:28:28] havenwood: amincd: You could install readline then rebuild Ruby, or install rlwrap and use irb with `rlwrap irb` or better yet `gem install pry pry-doc` and use `pry`.
[19:29:24] amincd: havenwood: I'm pretty wedded to irb
[19:29:33] symm-: has joined #ruby
[19:29:37] ekinmur: has joined #ruby
[19:29:47] havenwood: amincd: Why?
[19:29:47] tvw: has joined #ruby
[19:30:30] amincd: havenwood: I'm joking. But what's the advantage of pry? Does it use the same commands?
[19:30:36] rdavila: has joined #ruby
[19:30:49] amincd: same commands as irb I mean
[19:31:08] _seanc_: has joined #ruby
[19:31:09] havenwood: amincd: It's similar but has automatic indentation, syntax highlighting, code introspection, etc.
[19:31:18] havenwood: amincd: It's as easy to use as irb.
[19:31:24] havenwood: amincd: Just start with Pry.
[19:31:27] mghaig: has joined #ruby
[19:31:43] amincd: havenwood: ok
[19:31:55] shevy: well they have to be able to interprete the same instructions
[19:31:59] shevy: if it is valid ruby code :)
[19:32:09] amincd: shevy: that's true!
[19:32:46] shinnya: has joined #ruby
[19:33:06] OS-18137: has joined #ruby
[19:33:21] ekinmur: has joined #ruby
[19:33:26] OS-18137: has left #ruby: ()
[19:34:11] sepp2k: has joined #ruby
[19:35:08] DEA7TH: has joined #ruby
[19:35:13] beanHolez: has joined #ruby
[19:37:59] last_staff: has joined #ruby
[19:38:46] Tref: has joined #ruby
[19:39:31] opensource_ninja: has joined #ruby
[19:39:40] cesario: has joined #ruby
[19:40:39] unknowns2k2: has joined #ruby
[19:42:11] cesario: has joined #ruby
[19:42:28] platzhirsch: has left #ruby: ()
[19:42:40] momomomomo: has joined #ruby
[19:43:38] dfinninger: has joined #ruby
[19:45:06] YaknotiS: has joined #ruby
[19:45:48] tkuchiki: has joined #ruby
[19:45:56] B1n4r10: has joined #ruby
[19:48:06] RegulationD: has joined #ruby
[19:49:33] gusTester: has left #ruby: ()
[19:49:56] TDJACR: has joined #ruby
[19:50:53] baweaver: has joined #ruby
[19:53:58] decoponyo: has joined #ruby
[19:54:01] astrobunny: has joined #ruby
[19:55:35] rvchangue: has joined #ruby
[19:55:36] Ilyes512_: has joined #ruby
[19:55:42] asianMike: has joined #ruby
[19:56:03] Nilium: has joined #ruby
[19:56:22] vigintas: has joined #ruby
[19:57:18] djellemah_: has joined #ruby
[19:57:24] djbkd: has joined #ruby
[19:57:29] genpaku_: has joined #ruby
[19:57:55] PaulePan1er: has joined #ruby
[19:57:55] Emmanuel_Chanel_: has joined #ruby
[19:58:00] Ilyes512: has joined #ruby
[19:58:15] sross_work|2: has joined #ruby
[19:58:32] Guest30075: has joined #ruby
[19:58:42] davidcelis: has joined #ruby
[19:58:42] davidcelis: has joined #ruby
[19:59:38] [D]: has joined #ruby
[20:00:03] Coldblackice: has joined #ruby
[20:00:10] [D]: so, i never used Ruby, and i would like to try out this IRC game bot i found coded in Ruby, i am on windows 10. How would one attempt such thing for a first time?
[20:00:17] Affix: has joined #ruby
[20:00:30] linduxed: has joined #ruby
[20:00:41] [D]: i do have scripting experience, so i can read the code and edit it, i just don't know if i need a client for it, and if yes, what is your prefered one to use (easy for me)
[20:01:10] dfinning_: has joined #ruby
[20:01:42] jhass: [D]: http://rubyinstaller.org/
[20:01:52] [D]: ACTION clicks *
[20:02:48] gnarf: has joined #ruby
[20:07:14] skweek: has joined #ruby
[20:07:40] dhollinger: has joined #ruby
[20:08:03] jmonreal: has joined #ruby
[20:08:39] bb010g: has joined #ruby
[20:08:50] momomomomo_: has joined #ruby
[20:10:50] baweaver: has joined #ruby
[20:12:40] symm-: has joined #ruby
[20:13:19] codecop: has joined #ruby
[20:15:18] yoongkang: has joined #ruby
[20:15:19] DoubleMalt: has joined #ruby
[20:16:40] roxtrongo: has joined #ruby
[20:17:56] mattwildig: has joined #ruby
[20:18:26] nettoweb: has joined #ruby
[20:19:27] mwlang: has joined #ruby
[20:19:59] rdavila: has joined #ruby
[20:21:10] kies: has joined #ruby
[20:23:16] ekleog: has joined #ruby
[20:23:31] sinkensabe: has joined #ruby
[20:23:41] DelDotB: has joined #ruby
[20:24:11] Icey: has joined #ruby
[20:24:16] Tref: has joined #ruby
[20:24:38] TheSpectre: has joined #ruby
[20:25:05] jessemcgilallen: has joined #ruby
[20:25:51] tildes: has joined #ruby
[20:27:24] dlitvak: has joined #ruby
[20:28:31] ruurd: has joined #ruby
[20:28:35] Tref: has joined #ruby
[20:29:16] TheSpectre: has joined #ruby
[20:30:10] theRoUS: has joined #ruby
[20:30:50] dfinninger: has joined #ruby
[20:30:58] Tref: has joined #ruby
[20:31:11] ruby-lang184: has joined #ruby
[20:31:29] gusTester: has joined #ruby
[20:31:59] TheSpectre: has joined #ruby
[20:32:06] gusTester: has left #ruby: ()
[20:32:23] ruby-lang184: Hey! Can anyone help me set this channel up in HexChat? I'm very new to this whole IRC thing and can't seem to get it working
[20:32:44] ruby-lang184: I'm using the website to be able to use it here
[20:32:55] ayonkhan: has joined #ruby
[20:33:09] mattwildig: has joined #ruby
[20:34:06] northfurr: has joined #ruby
[20:34:29] jhass: ruby-lang184: well, what did you try and what error do you get?
[20:34:36] adaedra: You select FreeNode in the Server selection window, then /join #ruby
[20:34:41] jpfuentes2: has joined #ruby
[20:35:47] Xeago: has joined #ruby
[20:36:48] djbkd: has joined #ruby
[20:37:08] ModusPwnens: has joined #ruby
[20:37:21] djbkd: has joined #ruby
[20:37:34] karapetyan: has joined #ruby
[20:37:48] ModusPwnens: How can I modify the PATH for a shell command in a rake task? I can do it within the shell command, but there are several shell commands that I want to modify the path for and it does not seem DRY to duplicate it in each one.
[20:38:09] TheSpectre: has joined #ruby
[20:38:16] ModusPwnens: I've tried changing it with another shell command, only to find out each SH command has its own context and so changing the path in one will not affect others. I also tried setting ENV['PATH'], but that did not work either.
[20:39:25] bruno-: has joined #ruby
[20:39:31] jhass: mmh, I would've expected ENV["PATH"] to work, I guess your standard shell sources its own PATH then?
[20:39:34] TheSpectre: has joined #ruby
[20:41:46] TheSpectre: has joined #ruby
[20:41:49] marcosantonioca1: has joined #ruby
[20:45:05] powersurge: has joined #ruby
[20:45:28] powersurge: so DelayedJob is serializing classes and I"m not sure how to deserialize them for debugging purposes
[20:45:40] powersurge: anyone recognize the '!ruby/class' prefix before I dig through delayedjob?
[20:45:42] loincloth: has joined #ruby
[20:45:56] adaedra: looks like YAML
[20:46:09] jhass: ModusPwnens: well, sh has the same call semantics as Kernel#system etc, so you can easily write a wrapper that sets it
[20:46:23] jhass: &ri Kernel#spawn @ModusPwnens
[20:46:23] `derpy: ModusPwnens: http://www.rubydoc.info/stdlib/core/Kernel#spawn-instance_method
[20:47:55] momomomomo: has joined #ruby
[20:51:42] lemur: has joined #ruby
[20:52:39] neonalpine: has joined #ruby
[20:53:14] ekinmur: has joined #ruby
[20:53:17] dlitvak: has joined #ruby
[20:53:35] chipotle: has joined #ruby
[20:56:25] rattatmatt: has joined #ruby
[20:56:27] Jackneill: has joined #ruby
[20:56:59] solocshaw: has joined #ruby
[20:57:35] Archyme: has joined #ruby
[21:00:21] dfinninger: has joined #ruby
[21:00:55] solocshaw: has joined #ruby
[21:01:16] ruurd: has joined #ruby
[21:05:33] skade: has joined #ruby
[21:06:23] Melpaws: has joined #ruby
[21:06:30] dotix: has joined #ruby
[21:06:53] skweek: has joined #ruby
[21:07:22] djellemah__: has joined #ruby
[21:07:37] sniperhaxor: has joined #ruby
[21:08:01] norc: has joined #ruby
[21:08:14] norc: Hi. Are there any Ruby freelancers around?
[21:08:33] krak3n: has joined #ruby
[21:09:47] norc: I mean, Im interested in how freelancers do their pricing. What could a client expect to pay for a 2 day full time custom job?
[21:09:48] nettoweb: has joined #ruby
[21:10:06] norc: (Say a total of maybe 20 hours)
[21:10:26] norc: Is something about the $1,000-1,500 USD ballpark realistic?
[21:10:29] dmitch: has joined #ruby
[21:11:14] djellemah: has joined #ruby
[21:11:36] norc: think of it as 20 hours total rather.
[21:14:11] Ilyes512: has joined #ruby
[21:16:04] cdg: has joined #ruby
[21:16:43] beauby: has joined #ruby
[21:19:02] jhn: norc: that's like $50-$75/h, so, sure. entirely depends on your creds, the industry, etc.
[21:19:57] eam: and the location
[21:20:10] beanHolez: has joined #ruby
[21:20:59] trosborn: has joined #ruby
[21:22:10] baweaver: in central US, 80k is a programmer fulltime or about $40/hr approx
[21:22:34] baweaver: in SF, it's more like 120k, or $60/hr
[21:22:39] powersurge: yea, but you'd have to charge more as a freelancer
[21:22:42] baweaver: but you may not be working fulltime
[21:22:49] baweaver: was getting there ;)
[21:22:55] beanHolez: has joined #ruby
[21:22:58] powersurge: carry on then :>
[21:23:12] baweaver: depends on your skill level
[21:23:18] baweaver: more than anything
[21:23:37] baweaver: I'd almost consider a lower bar for starting just to get experience.
[21:23:55] adaedra: ACTION blinks
[21:24:06] baweaver: adaedra: careful
[21:24:11] baweaver: angels might get you
[21:24:18] cornerma1: has joined #ruby
[21:24:28] eam: baweaver: central US 80k is median for someone with 10y experience?
[21:24:28] allcentu1: has joined #ruby
[21:24:30] adaedra: That still looks like a gigantic difference with numbers I'm used to
[21:24:35] eam: or is that a starting salary
[21:24:41] baweaver: 65 is starting
[21:25:07] eam: I'd say 150k is median in silicon valley
[21:25:10] Scripore: has joined #ruby
[21:25:23] eam: maybe more, depending
[21:25:29] baweaver: I should find more median companies then :P
[21:25:46] eam: not uncommon to see 200k+ offers for the 10y experience range, if you're competend
[21:25:49] eam: competent, even
[21:26:20] kadoppe: has joined #ruby
[21:26:29] shevy: that dam beaver makes the big bucks!
[21:26:54] rgrmatt: has joined #ruby
[21:27:16] eam: In 2013, the average annual wage for high-tech workers in Silicon Valley was $195,815, according to a recent report from Jones Lang LaSalle (JLL), a commercial real estate firm.
[21:27:26] eam: that sounds about right
[21:27:36] eam: they're including benefits though
[21:27:37] zotherstupidguy: has joined #ruby
[21:27:38] gilmour: has joined #ruby
[21:27:53] eam: so subtract about $20k if you want to think in terms of what you'd consider comp after perks
[21:27:58] gilmour: has left #ruby: ()
[21:28:00] baweaver: how much does that account for, bonuses and such?
[21:28:10] eam: that's total comp, including bonus and stock
[21:28:32] eam: and is the average, so 50% are (often way) above that
[21:28:48] baweaver: a good year I have 20% bonus and 4.5% 401k match
[21:30:36] TTilus: in scandinavia you'd expect something starting from 30$/hr (55k/yr) but not extending much beyond 60$/hr
[21:31:56] eam: in silicon valley it's pretty common to put around 20% or so of comp into stock benefits, which can start to eclipse the base salary if the company does very well
[21:32:14] eam: the base salaries tend not to go above 200k
[21:32:28] eam: there are tax advantages of doing compensation in stock form
[21:32:56] adaedra: I don't want to go to the grown-ups world, everything sounds so complicated D:
[21:33:11] eam: netflix's model is interesting: They give a huge base salary and let you put as much or as little as you want into buying options
[21:33:21] eam: you can take a salary of $0 if you want
[21:33:22] baweaver: adaedra: come to SF and we can show you around some time :D
[21:34:23] TTilus: adaedra: things aren't complicated until you have family ;)
[21:34:31] uri: has joined #ruby
[21:34:34] eam: ain't that the truth
[21:35:36] dmitch: has joined #ruby
[21:35:52] Mon_Ouie: has joined #ruby
[21:37:52] alakra: has joined #ruby
[21:42:28] cirenyc: has joined #ruby
[21:42:39] Coldblackice: has joined #ruby
[21:43:22] skweek: has joined #ruby
[21:46:22] momomomomo: has joined #ruby
[21:46:58] shevy: which functional programming language has the nicest syntax akin to ruby?
[21:47:34] drig0r: has joined #ruby
[21:47:48] B1n4r10: has joined #ruby
[21:48:16] k3asd`: has joined #ruby
[21:49:02] Nahra: has joined #ruby
[21:49:08] lukaszes: has joined #ruby
[21:49:14] eam: shevy: ocaml is pretty nice
[21:49:25] baweaver: has joined #ruby
[21:50:16] TheHodge: has joined #ruby
[21:52:45] Pumukel: has joined #ruby
[21:54:25] adac: has joined #ruby
[21:54:28] sinkensabe: has joined #ruby
[21:54:43] Cellar: has joined #ruby
[21:56:22] Cellar: has left #ruby: ()
[21:56:51] mistermocha: has joined #ruby
[21:57:44] chipotle: has joined #ruby
[21:58:19] FooMunki: has joined #ruby
[21:58:41] yoongkang: has joined #ruby
[21:58:57] stannard: has joined #ruby
[22:02:26] workmad3: has joined #ruby
[22:03:41] mwlang: I???m having trouble installing and using rhodes gem. https://github.com/rhomobile/rhodes/issues/772 Almost everything I???m finding for troubleshooting seems to be iOS 6.x based (we???re at 8.2 nowadays) and Ruby 1.9.x ??? Every documentation page warns me I???m reading outdated docs. This project???s commit history otherwise seems to indicate it???s a pretty active project. Is it?
[22:04:15] mwlang: heh, ???trouble installing??? ??? let???s say ???trouble launching first app??? ??? it installed just fine.
[22:05:39] VeryBewitching: has joined #ruby
[22:06:31] tubbo: mwlang: "Every documentation page warns me I???m reading outdated docs. This project???s commit history otherwise seems to indicate it???s a pretty active project. Is it?"
[22:06:48] dorei: has joined #ruby
[22:07:19] devgiant: has joined #ruby
[22:07:46] htmldrum: has joined #ruby
[22:07:49] tubbo: mwlang: i haven't heard much about rhodes since 2011, that might give you idea on how much it's used. any reason you aren't going with RubyMotion?
[22:07:54] skweek: has joined #ruby
[22:08:01] tubbo: mwlang: also...iOS is at v9.0...are you literally in a time bubble?!
[22:08:25] rgrmatt: has joined #ruby
[22:08:39] eam: well, if he's looking for a super old and outdated gem it's not surprising all the hits he gets are for similarly outdated tech
[22:08:44] mwlang: tubbo: ah, yeah, I am on that one. I forgot about 9.0 recently releasing.
[22:09:10] tubbo: i tried RubyMotion recently now that i don't have to pay $200 just to use it
[22:09:16] tubbo: good stuff
[22:09:53] mwlang: eam: :-p I???m clueless on what???s going on in the mobile scene. Had some down time today and just thought I???d see what Ruby-based options were available for native mobile apps.
[22:11:05] ruurd: has joined #ruby
[22:11:31] mwlang: ACTION reading up on rubymotion
[22:11:58] yfeldblum: has joined #ruby
[22:13:34] diegoviola: has joined #ruby
[22:14:06] karapetyan: has joined #ruby
[22:14:25] karapetyan: has joined #ruby
[22:14:55] kies: has joined #ruby
[22:15:02] platzhirsch: has joined #ruby
[22:15:15] ICantCook: has joined #ruby
[22:17:02] shevy: they are chasing gorillas in the mobile scene
[22:17:37] howdoicomputer: has joined #ruby
[22:17:58] stannard_: has joined #ruby
[22:20:30] trosborn: has joined #ruby
[22:21:10] rdavila: has joined #ruby
[22:22:16] mistermocha: has joined #ruby
[22:23:40] exadeci: has joined #ruby
[22:25:00] Xeago: has joined #ruby
[22:26:23] dede__: has joined #ruby
[22:28:55] mwlang: love it. rubymotion also seems to be lagging in documentation space: docs: ???motion ???version??? => 3.0 me: ???motion ???version??? => 4.5
[22:29:32] mistermocha: has joined #ruby
[22:30:01] djbkd: has joined #ruby
[22:31:13] Ox0dea: has joined #ruby
[22:31:17] stannard: has joined #ruby
[22:32:58] dorei: has joined #ruby
[22:33:42] platzhirsch: In #rubyonrails it was suggested to name a method #call in order to make use of the call style syntax? Like ClassName.() to invoke methods? I remember this very shaded... what was that about again?
[22:34:09] x-light: has joined #ruby
[22:34:49] adaedra: >> module A; def self.call; "Hello"; end; end; A.()
[22:34:50] ruboto: adaedra # => "Hello" (https://eval.in/469917)
[22:34:57] adaedra: .() is another way of writing .call
[22:35:06] tlaxkit: has joined #ruby
[22:35:39] platzhirsch: What's the advantage? Being fancy?
[22:35:47] shevy: we can save characters!
[22:35:47] Ox0dea: djellemah: Using a trie instead of Ruby's native Hash would save some space, but that's nothing to do with reverse-lookup.
[22:35:50] stannard_: has joined #ruby
[22:36:27] shevy: the . is kinda weird
[22:36:29] platzhirsch: shevy: thank god, because someone was telling me about code readability as I was crying in agony about our memory bill
[22:36:43] shevy: Integer() ... Integer.()
[22:37:06] adaedra: Integer() is actually a method.
[22:37:12] adaedra: >> method(:Integer)
[22:37:13] ruboto: adaedra # => #<Method: Object(Kernel)#Integer> (https://eval.in/469919)
[22:37:15] CloCkWeRX: has joined #ruby
[22:38:07] stannard_: has joined #ruby
[22:39:09] psye: has joined #ruby
[22:39:31] eam: it's interesting that you can't send :"()"
[22:40:12] Ox0dea: It's syntax.
[22:40:18] quazimodo: has joined #ruby
[22:40:24] Ox0dea: >> ->{->{->{}}}::()[].()
[22:40:25] ruboto: Ox0dea # => nil (https://eval.in/469920)
[22:40:30] rgtk: has joined #ruby
[22:41:31] trosborn: has joined #ruby
[22:42:15] shevy: now that's a long way to get to nil
[22:42:31] sanjayu: has joined #ruby
[22:42:35] eam: >> def nil.call;'o_O';end; ().()
[22:42:36] ruboto: eam # => "o_O" (https://eval.in/469921)
[22:43:16] shevy: the boobs operator
[22:43:46] Ox0dea: >> def nil.call; self; end; ()::().().()::()
[22:43:47] ruboto: Ox0dea # => nil (https://eval.in/469922)
[22:43:59] Ox0dea: That's a double-edged sword of sorts.
[22:44:18] shevy: that's some large spaceship
[22:44:21] Ox0dea: shevy: Those are a cat's eyes, not boobs.
[22:44:34] adaedra: ACTION meows
[22:45:10] momomomomo_: has joined #ruby
[22:45:24] Musashi007: has joined #ruby
[22:45:45] shevy: looks like bird eyes
[22:46:54] dfinninger: has joined #ruby
[22:47:21] momomomomo: has joined #ruby
[22:48:08] roxtrongo: has joined #ruby
[22:49:55] gusTester: has joined #ruby
[22:50:06] Billias: has joined #ruby
[22:50:58] nertzy2: has joined #ruby
[22:51:01] AnoHito_: has joined #ruby
[22:51:14] WillAmes: has joined #ruby
[22:51:17] axl__: has joined #ruby
[22:51:27] gusTester: has left #ruby: ()
[22:51:30] workmad3_: has joined #ruby
[22:51:51] _djbkd: has joined #ruby
[22:52:33] astrobun_: has joined #ruby
[22:52:40] Nahra`: has joined #ruby
[22:54:06] eregon_: has joined #ruby
[22:54:40] Killerkeksdose_: has joined #ruby
[22:55:15] ajaiswal: has joined #ruby
[22:55:16] sgambino: has joined #ruby
[22:55:17] freedrull: has joined #ruby
[22:55:22] scpike: has joined #ruby
[22:55:23] ironcamel: has joined #ruby
[22:55:24] jericon: has joined #ruby
[22:55:27] Rennex: has joined #ruby
[22:55:38] zenspider: has joined #ruby
[22:55:45] ukd1: has joined #ruby
[22:55:49] lnx: has joined #ruby
[22:55:51] iDavid: has joined #ruby
[22:55:57] queequeg1: has joined #ruby
[22:56:06] Authenticator: has joined #ruby
[22:56:17] awk: has joined #ruby
[22:56:21] yokel: has joined #ruby
[22:56:23] baweaver: has joined #ruby
[22:56:35] sulky: has joined #ruby
[22:57:29] matled-: has joined #ruby
[22:57:31] simplyia_: has joined #ruby
[22:57:32] peteyg: has joined #ruby
[22:57:42] robbyoconnor: has joined #ruby
[22:57:46] Oli``: has joined #ruby
[22:57:55] yaewa: has joined #ruby
[22:57:57] vallen__: has joined #ruby
[22:58:09] |ifei5good: has joined #ruby
[22:58:31] Kruppe-: has joined #ruby
[22:58:33] axl__: has joined #ruby
[22:58:33] df-: has joined #ruby
[22:58:34] VeryBewitching: has joined #ruby
[22:58:39] NeverDie_: has joined #ruby
[22:58:40] malconis: has joined #ruby
[22:58:48] gbailey-: has joined #ruby
[22:58:53] terminal_: has joined #ruby
[22:59:10] cpup: has joined #ruby
[22:59:30] peitera: has joined #ruby
[22:59:31] C0deMaver1ck: has joined #ruby
[22:59:36] theRoUS: has joined #ruby
[22:59:41] M-Kodo: has joined #ruby
[22:59:42] demophoon: has joined #ruby
[22:59:42] scottymeuk: has joined #ruby
[22:59:50] derailed: has joined #ruby
[22:59:55] Scient: has joined #ruby
[23:00:00] shortdudey123: has joined #ruby
[23:00:03] jwaldrip___: has joined #ruby
[23:00:06] ekem: has joined #ruby
[23:00:26] Paradox: has joined #ruby
[23:00:36] thejoecarroll: has joined #ruby
[23:00:39] stannard: has joined #ruby
[23:00:48] NeverDie_: has joined #ruby
[23:01:17] purplexed-: has joined #ruby
[23:01:18] purplexed-: has joined #ruby
[23:01:19] Platini: has joined #ruby
[23:01:24] _fumk: has joined #ruby
[23:01:34] Mattix: has joined #ruby
[23:01:36] symm-: has joined #ruby
[23:01:46] Freeaqingme|: has joined #ruby
[23:01:52] tkuchiki: has joined #ruby
[23:01:52] justinmcp: has joined #ruby
[23:01:57] ccooke_: has joined #ruby
[23:02:01] Shapeshi1ter: has joined #ruby
[23:02:03] svkurowski_: has joined #ruby
[23:02:03] Pro|_: has joined #ruby
[23:02:04] deg__: has joined #ruby
[23:02:07] scpike_: has joined #ruby
[23:02:14] htmldrum: has joined #ruby
[23:02:23] robbyoconnor: has joined #ruby
[23:02:54] NeverDie_: has joined #ruby
[23:03:07] diego2: has joined #ruby
[23:03:09] sulky: has joined #ruby
[23:03:11] diego2: has joined #ruby
[23:03:12] _blizzy_: has joined #ruby
[23:03:29] nocturn: has joined #ruby
[23:03:35] nocturn: has joined #ruby
[23:03:55] ianfleeton: has joined #ruby
[23:05:49] Karunamon|2: has joined #ruby
[23:05:56] aredridel: has joined #ruby
[23:06:20] lubekpl: has joined #ruby
[23:06:34] trav408: has joined #ruby
[23:06:57] robbyoconnor: has joined #ruby
[23:07:06] Laaw: has joined #ruby
[23:07:08] M-prosodyContext: has joined #ruby
[23:07:09] csmb_: has joined #ruby
[23:07:11] st1gma: has joined #ruby
[23:07:15] woodruffw: has joined #ruby
[23:07:18] yalue: has joined #ruby
[23:07:26] passcod: has joined #ruby
[23:07:32] pdoherty: has joined #ruby
[23:07:32] Guest26770: has joined #ruby
[23:07:36] CodingWolf: has joined #ruby
[23:07:46] waka: has joined #ruby
[23:07:53] lorn: has joined #ruby
[23:07:58] voker57: has joined #ruby
[23:08:04] certainty: has joined #ruby
[23:08:11] Scroff: has joined #ruby
[23:08:12] yosafbridge: has joined #ruby
[23:08:26] oddmunds: has joined #ruby
[23:08:52] bodie_: has joined #ruby
[23:09:26] ankhers: has joined #ruby
[23:09:40] nisstyre: has joined #ruby
[23:09:45] sulky: has joined #ruby
[23:11:38] jessemcgilallen: has joined #ruby
[23:12:01] skade: has joined #ruby
[23:12:18] diego1: has joined #ruby
[23:12:22] diego1: has joined #ruby
[23:12:32] duncannz: has joined #ruby
[23:13:07] diegoaguilar: has joined #ruby
[23:13:08] papercode: has joined #ruby
[23:13:30] duncannz: has joined #ruby
[23:13:46] tlaxkit: has joined #ruby
[23:13:51] xet7: has joined #ruby
[23:13:55] Nahra``: has joined #ruby
[23:14:30] duncannz: has joined #ruby
[23:14:31] DEA7TH: has joined #ruby
[23:14:40] avelldiroll: has joined #ruby
[23:15:31] ricer2: has joined #ruby
[23:15:31] lkba: has joined #ruby
[23:16:50] riotjones: has joined #ruby
[23:18:45] Axsuul: has joined #ruby
[23:19:52] ledestin: has joined #ruby
[23:20:40] northfurr: has joined #ruby
[23:21:27] stannard_: has joined #ruby
[23:28:32] axsuul_: has joined #ruby
[23:29:17] zeroDivisible: has joined #ruby
[23:29:38] northfurr: has joined #ruby
[23:31:46] mary5030: has joined #ruby
[23:33:12] Ropeney: has joined #ruby
[23:34:10] B1n4r10: has joined #ruby
[23:34:23] jdawgaz: has joined #ruby
[23:34:54] Spami: has joined #ruby
[23:35:43] Ox0dea: I'm trading space for time in constructing this massive hash that maps words to distinct values, one letter at a time since that's how they arrive. "cat" and "catch" are words, but "catc" is not, and I'm handling that by storing terminals; thus, `hash['c']['a']['t']['$'] == :unique_cat_value`. Lookup is O(1) and everybody's happy, except I need to be able to go the other direction too. As it stands, I'm using
[23:35:44] Ox0dea: two hashes, the "paths" and the actual mapping, and then I'm just `Hash#invert`ing the latter to get reverse-lookup. Is there some nifty data structure uniquely applicable to this scenario?
[23:35:49] Xeago: has joined #ruby
[23:36:00] DrShoggoth: has joined #ruby
[23:36:04] Nahra``: has joined #ruby
[23:36:39] niftylettuce: has joined #ruby
[23:39:20] pkrnj: has joined #ruby
[23:43:03] IrishGringo: has joined #ruby
[23:43:16] juddey: has joined #ruby
[23:46:17] unclouded: has joined #ruby
[23:47:00] gambl0re: has joined #ruby
[23:48:56] roxtrongo: has joined #ruby
[23:50:35] amoeba: has joined #ruby
[23:50:43] dlitvak: has joined #ruby
[23:50:44] scottstamp: has joined #ruby
[23:50:48] Kharma: has joined #ruby
[23:51:51] TomPeed: has joined #ruby
[23:52:19] BraddPitt: has joined #ruby
[23:53:50] grung3r: has joined #ruby
[23:55:15] banister: has joined #ruby
[23:55:23] grung3r: has left #ruby: ()
[23:55:47] vigintas: has joined #ruby
[23:59:25] trosborn: has joined #ruby