« Back to channel list

#ruby - 13 March 2016

« Back 1 day Forward 1 day »
[00:00:40] dikaio: has joined #ruby
[00:04:36] bry4n_: has joined #ruby
[00:05:36] ziyadb: has joined #ruby
[00:08:01] moos3: has joined #ruby
[00:08:19] Trynemjoel: has joined #ruby
[00:11:39] devbug_: has joined #ruby
[00:13:55] sandstrom: has joined #ruby
[00:15:57] swills: has joined #ruby
[00:16:59] ReK2: has joined #ruby
[00:17:45] freerobby: has joined #ruby
[00:18:57] marbles: has joined #ruby
[00:19:52] CloCkWeRX: has joined #ruby
[00:20:08] krz: has joined #ruby
[00:22:57] ReK2: has joined #ruby
[00:25:22] tvon: has joined #ruby
[00:25:25] rmulligan: has joined #ruby
[00:29:37] chagel: has joined #ruby
[00:30:38] sandstrom: has joined #ruby
[00:31:51] Trynemjoel: has joined #ruby
[00:38:17] djbkd: has joined #ruby
[00:38:36] bjpenn: has joined #ruby
[00:40:12] perturbation: has joined #ruby
[00:40:25] merqlove: has joined #ruby
[00:43:35] djbkd: has joined #ruby
[00:43:45] dikaio: has joined #ruby
[00:46:09] diegoviola: has joined #ruby
[00:46:23] poerror: has joined #ruby
[00:47:19] sandstrom: has joined #ruby
[00:47:34] Rubie: has joined #ruby
[00:50:47] bithon: has joined #ruby
[00:51:30] uglybandersnatch: has joined #ruby
[00:53:32] vdamewood: has joined #ruby
[00:55:15] dikaio: has joined #ruby
[00:55:55] bronson: has joined #ruby
[01:00:34] edwinvdgraaf: has joined #ruby
[01:00:48] Rubie: has joined #ruby
[01:02:03] pawnbox: has joined #ruby
[01:04:02] sandstrom: has joined #ruby
[01:06:01] dikaio: has joined #ruby
[01:06:16] davedev24: has joined #ruby
[01:08:56] duckpuppy: has joined #ruby
[01:10:34] _blizzy_: has joined #ruby
[01:15:49] Abrin_AWAY: has joined #ruby
[01:18:27] ur5us: has joined #ruby
[01:19:36] rmulligan: has joined #ruby
[01:20:22] sandstrom: has joined #ruby
[01:23:33] djbkd: has joined #ruby
[01:24:08] djbkd: has joined #ruby
[01:24:28] nando293921: has joined #ruby
[01:25:54] bronson: has joined #ruby
[01:28:32] mallu: has joined #ruby
[01:28:46] zotherstupidguy: has joined #ruby
[01:29:22] hnagamin: has joined #ruby
[01:30:10] kam270: has joined #ruby
[01:30:46] rmulligan: has joined #ruby
[01:32:25] pawnbox: has joined #ruby
[01:32:31] davee_: has joined #ruby
[01:37:03] triangles: has joined #ruby
[01:37:04] sandstrom: has joined #ruby
[01:38:27] rhg331: has joined #ruby
[01:40:18] al2o3-cr: has joined #ruby
[01:40:54] triangles: has joined #ruby
[01:42:26] triangles2: has joined #ruby
[01:43:45] CloCkWeRX: has joined #ruby
[01:45:58] rmulliga`: has joined #ruby
[01:46:08] moos3: has joined #ruby
[01:49:48] dikaio: has joined #ruby
[01:53:46] sandstrom: has joined #ruby
[01:53:55] interpelex: has joined #ruby
[01:54:32] chipotle: has joined #ruby
[01:55:37] poerror: has joined #ruby
[01:55:49] htmldrum: has joined #ruby
[01:57:56] Cohedrin: has joined #ruby
[01:59:58] nando293921: has joined #ruby
[02:00:00] rmulligan: has joined #ruby
[02:02:28] LoneHermit: has joined #ruby
[02:02:29] hinbody: has joined #ruby
[02:03:14] edwinvdgraaf: has joined #ruby
[02:05:05] Rubie: has joined #ruby
[02:05:20] bry4n_: has joined #ruby
[02:07:18] triangles: has joined #ruby
[02:08:35] ddd: has joined #ruby
[02:08:58] ddd: I just drank 5 liters of tea
[02:09:49] elifoster: has joined #ruby
[02:12:50] rmulligan: has joined #ruby
[02:15:08] Azure: has joined #ruby
[02:18:04] Azure: has joined #ruby
[02:19:05] i8igmac: has joined #ruby
[02:19:50] Azure: has joined #ruby
[02:20:02] fullofca_: has joined #ruby
[02:20:22] pwnd_nsfw: has joined #ruby
[02:20:55] ledestin: has joined #ruby
[02:21:28] davedev24: has joined #ruby
[02:22:02] pawnbox: has joined #ruby
[02:26:17] tvon: has joined #ruby
[02:29:28] jyaworski: has joined #ruby
[02:29:41] rmulligan: has joined #ruby
[02:30:51] jenrzzz: has joined #ruby
[02:33:24] retornam: has joined #ruby
[02:33:25] nanoz: has joined #ruby
[02:33:28] bricker: has joined #ruby
[02:33:57] Azure: has joined #ruby
[02:34:18] zotherstupidguy: has joined #ruby
[02:36:16] cdg: has joined #ruby
[02:37:24] sandstrom: has joined #ruby
[02:38:43] norc_: has joined #ruby
[02:38:49] johnmilton: has joined #ruby
[02:39:44] stardiviner: has joined #ruby
[02:39:49] LoneHerm_: has joined #ruby
[02:39:49] sucks: has joined #ruby
[02:42:23] pawnbox: has joined #ruby
[02:46:33] cpruitt: has joined #ruby
[02:51:10] DmitryBochkarev: has joined #ruby
[02:51:19] arescorpio: has joined #ruby
[02:54:06] sandstrom: has joined #ruby
[02:54:18] chipotle: has joined #ruby
[02:59:59] bry4n_: has joined #ruby
[03:05:38] blackmesa: has joined #ruby
[03:05:52] quazimodo: has joined #ruby
[03:06:52] systemsgotyou: has joined #ruby
[03:07:02] systemsgotyou: whats the most used ruby stack?
[03:09:17] moos3: has joined #ruby
[03:09:41] duckpuppy: has joined #ruby
[03:10:55] sandstrom: has joined #ruby
[03:20:57] pateussy: has joined #ruby
[03:21:03] pateussy: what is the best linux env to learn programming?
[03:21:47] nofxx: pateussy, archlinux, everything is up to date, less stumbling on version s**
[03:22:01] nofxx: up to date/bleeding edge heh
[03:22:01] zotherstupidguy: has joined #ruby
[03:22:05] Nilium: You probably won't see much difference for learning.
[03:22:10] nofxx: gentoo too, more compiling only
[03:22:28] pateussy: i just downloaded fedora and it's booting in emergency mode
[03:22:34] pateussy: keep in mind i only want to run a vm
[03:22:44] nofxx: Nilium, disagree... most (read deb* crap) you'll find ruby 1.8, or worst
[03:22:45] pateussy: i'd like to have my windows partition untouched
[03:22:56] nofxx: not that hard to update, but extra step
[03:23:00] pawnbox: has joined #ruby
[03:23:26] Nilium: nofxx: That's generally the case for most distros' package managers: they're outdated and they install things in weird places because nobody has a standard FS structure.
[03:24:37] nofxx: yup...other point I like about arch Nilium. KISS.
[03:24:48] Nilium: That's more or less why I use FreeBSD.
[03:25:15] Nilium: May not be bleeding edge, but it sure is consistent.
[03:25:59] pateussy: i just hate the system program problem detected error i get under ubuntu
[03:26:03] fullofcaffeine: has joined #ruby
[03:26:13] pateussy: i install a bunch of things and then i end up getting that error
[03:26:16] Nilium: Anyway, if it's in a VM, just a pick a bunch of them and see what sticks.
[03:26:30] pateussy: ubuntu sucks for me
[03:26:40] Nilium: Arch is a good option, Gentoo's good for getting more familiar with system setup, Slackware is for psychopaths like me, etc.
[03:27:19] pateussy: i would like to be able to program in ruby python javascript node etc
[03:27:20] Nilium: Could also try smaller distros like Alpine Linux.
[03:27:37] sandstrom: has joined #ruby
[03:28:04] nofxx: why do you need windows nowdays anyway? Some game not on steamos?
[03:28:36] pateussy: i love windowws
[03:28:50] Nilium: ACTION doesn't think this is really important.
[03:29:16] pateussy: for me it is as i might break my hdd
[03:29:23] Nilium: Not in a VM you won't.
[03:29:40] pateussy: not in a vm but in windows i will
[03:29:54] pateussy: in ubuntu i always get system program problem detected error
[03:29:54] Nilium: Probably not.
[03:30:25] hxegon: has joined #ruby
[03:30:29] Nilium: Either way, just run it in a VM for now and avoid telling people you use Windows 'cause everyone with their "you need to use X as your OS" will come out of the woodwork and it's just annoying after years of hearing it.
[03:30:47] Nilium: Well, hearing and reading it.
[03:30:58] Ox0dea: X is a windowing system.
[03:31:04] lessless: has joined #ruby
[03:31:09] Nilium: ACTION sets Ox0dea in a small hole
[03:31:16] Ox0dea: If I fits, I sits.
[03:31:42] sucks: has joined #ruby
[03:31:45] mallu: has joined #ruby
[03:32:29] User458764: has joined #ruby
[03:32:55] ensyde_: has joined #ruby
[03:36:19] _blizzy_: has joined #ruby
[03:38:00] moeabdol: has joined #ruby
[03:40:13] fedexo: has joined #ruby
[03:40:20] kval: has joined #ruby
[03:41:00] emaxi: has joined #ruby
[03:42:39] emaxi: So I'm trying to build an app where users can register, login, and then view/watch movies on the site. What would be a cost-effective hosting service to use for something like that?
[03:44:18] sandstrom: has joined #ruby
[03:44:18] _blizzy_: emax_, Heroku is free, but it only runs like 18(?) hours a day. it takes a while to load if the website is "sleeping". there's also DigitalOcean, which is like $5 a month.
[03:44:52] emaxi: Thanks _blizzy_. Is there a cap on data usage?
[03:45:10] _blizzy_: emax_, IDK really.
[03:46:21] mnrmnaugh: has joined #ruby
[03:49:00] aclearman037: has joined #ruby
[03:50:21] edwinvdgraaf: has joined #ruby
[03:50:52] fullofcaffeine: has joined #ruby
[03:52:14] bronson: has joined #ruby
[03:52:50] gerry__: has joined #ruby
[03:54:28] SenpaiSilver: has joined #ruby
[03:55:22] baweaver: has joined #ruby
[03:55:30] freerobby: has joined #ruby
[03:56:20] htmldrum: has joined #ruby
[04:00:09] elifoster: has joined #ruby
[04:01:00] sandstrom: has joined #ruby
[04:02:40] pawnbox: has joined #ruby
[04:02:41] s00pcan: has joined #ruby
[04:07:56] blackmesa: has joined #ruby
[04:09:18] houhoulis: has joined #ruby
[04:09:39] haraoka: has joined #ruby
[04:14:11] devbug_: has joined #ruby
[04:15:48] braincrash: has joined #ruby
[04:16:46] duncannz: has joined #ruby
[04:16:53] barajasfab: has joined #ruby
[04:18:03] sandstrom: has joined #ruby
[04:18:05] programmerq: has joined #ruby
[04:23:24] mallu: has left #ruby: ()
[04:23:34] mallu: has joined #ruby
[04:23:46] chagel: has joined #ruby
[04:25:07] mallu: count = ARGV[0]
[04:25:08] mallu: count_array = [*1..count]
[04:25:08] mallu: I am getting " bad value for range (ArgumentError)"
[04:25:52] mallu: but in irb irb(main):001:0> count = 10
[04:25:53] mallu: irb(main):002:0> array_new = [*1..count]
[04:25:53] mallu: => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
[04:26:05] mallu: so what am I doing wrong?
[04:26:08] poerror: has joined #ruby
[04:26:18] mozzarella: maybe count is actually a string? lol
[04:26:36] mozzarella: >> [*1..'2']
[04:26:37] ruby[bot]: mozzarella: # => bad value for range (ArgumentError) ...check link for more (https://eval.in/535595)
[04:27:33] jamil: has joined #ruby
[04:28:53] tvon: has joined #ruby
[04:29:43] mozzarella: mallu: [*1..count.to_i]
[04:30:01] LoneHermit: has joined #ruby
[04:32:46] Xiti: has joined #ruby
[04:33:05] pawnbox: has joined #ruby
[04:33:36] treaki_: has joined #ruby
[04:34:44] sandstrom: has joined #ruby
[04:37:40] rhg135: has joined #ruby
[04:40:10] woodruffw: has joined #ruby
[04:40:47] devbug: has joined #ruby
[04:40:50] rmulligan: has joined #ruby
[04:44:13] bjpenn: has joined #ruby
[04:44:58] cpup: has joined #ruby
[04:45:41] aspiers: has joined #ruby
[04:49:29] RegulationD: has joined #ruby
[04:50:10] woodruffw: has joined #ruby
[04:51:27] sandstrom: has joined #ruby
[04:53:24] uglybandersnatch: has joined #ruby
[04:53:47] Rubie: has joined #ruby
[04:55:33] armyriad: has joined #ruby
[04:55:36] `tim`: has joined #ruby
[04:57:35] moos3: has joined #ruby
[05:00:44] bry4n_: has joined #ruby
[05:01:34] gix: has joined #ruby
[05:03:00] pawnbox: has joined #ruby
[05:07:55] sandstrom: has joined #ruby
[05:10:27] duckpuppy: has joined #ruby
[05:10:53] blackmesa: has joined #ruby
[05:11:02] SenpaiSilver: has joined #ruby
[05:13:42] bronson: has joined #ruby
[05:17:04] basic: has joined #ruby
[05:21:34] edwinvdgraaf: has joined #ruby
[05:24:37] sandstrom: has joined #ruby
[05:25:27] TTilus: has joined #ruby
[05:26:27] moeabdol: has joined #ruby
[05:29:06] everchange: has joined #ruby
[05:29:46] barajasfab: has joined #ruby
[05:31:33] jyaworski: has joined #ruby
[05:33:04] pawnbox: has joined #ruby
[05:41:19] sandstrom: has joined #ruby
[05:44:11] jbrhbr: has joined #ruby
[05:47:17] baweaver: has joined #ruby
[05:51:59] intrigueD: has joined #ruby
[05:53:29] chagel: has joined #ruby
[05:53:57] jenrzzz: has joined #ruby
[05:55:25] slv33: has joined #ruby
[05:55:27] slv33: has left #ruby: ()
[05:56:12] eccentric: has joined #ruby
[05:57:07] devbug: has joined #ruby
[05:57:15] htmldrum: has joined #ruby
[05:58:00] sandstrom: has joined #ruby
[05:58:23] rlpowell: has left #ruby: ()
[05:59:33] CloCkWeRX: has joined #ruby
[05:59:48] amincd: has joined #ruby
[06:00:08] amincd: Could someone explain why the second element in the 'a' array is 'nil': http://ruby-doc.org/core-1.9.3/Hash.html#method-i-default_proc
[06:00:16] krz: has joined #ruby
[06:00:39] swein: has joined #ruby
[06:02:12] amincd: it evaluates to [nil, nil, 4]. I don't get where the a[1] comes from
[06:02:42] amincd: doesn't a.call(a, 2) just assign each param to the params in the block?
[06:03:02] blackgoat: has joined #ruby
[06:03:06] amincd: ah nevermind, i got it..
[06:03:06] intrigueD: has joined #ruby
[06:03:29] amincd: sometimes you just have to talk something out
[06:04:33] adgtl: has joined #ruby
[06:07:42] dikaio: has joined #ruby
[06:08:29] bjpenn: has joined #ruby
[06:11:45] User458764: has joined #ruby
[06:13:14] pawnbox: has joined #ruby
[06:13:56] blackmesa: has joined #ruby
[06:14:55] sandstrom: has joined #ruby
[06:15:19] jbrhbr: has joined #ruby
[06:18:52] CloCkWeRX: has joined #ruby
[06:19:53] Macaveli: has joined #ruby
[06:20:54] nando293921: has joined #ruby
[06:26:54] merida: has joined #ruby
[06:27:02] armyriad: has joined #ruby
[06:28:22] jamil: has joined #ruby
[06:28:39] stardiviner: has joined #ruby
[06:29:05] jbrhbr: has joined #ruby
[06:30:20] tvon: has joined #ruby
[06:31:37] sandstrom: has joined #ruby
[06:32:20] robbyoconnor: has joined #ruby
[06:33:00] davee_: has joined #ruby
[06:33:08] dikaio: has joined #ruby
[06:33:32] rippa: has joined #ruby
[06:39:32] elifoster: has joined #ruby
[06:42:30] govg: has joined #ruby
[06:42:48] jbrhbr: has joined #ruby
[06:43:03] pawnbox: has joined #ruby
[06:45:44] adgtl: has joined #ruby
[06:45:44] adgtl: has joined #ruby
[06:45:48] moos3: has joined #ruby
[06:48:18] LoneHerm_: has joined #ruby
[06:48:19] sandstrom: has joined #ruby
[06:56:22] adgtl_: has joined #ruby
[06:56:43] poerror: has joined #ruby
[06:57:59] Eccentric2: has joined #ruby
[06:59:39] adgtl: has joined #ruby
[07:01:15] tvw: has joined #ruby
[07:01:31] bry4n_: has joined #ruby
[07:02:49] quakephil: has joined #ruby
[07:05:01] sandstrom: has joined #ruby
[07:07:02] jbrhbr: has joined #ruby
[07:11:01] phatypus: has joined #ruby
[07:11:12] duckpuppy: has joined #ruby
[07:13:17] Mr0rris0: has joined #ruby
[07:14:27] shinnya: has joined #ruby
[07:14:42] moeabdol: has joined #ruby
[07:15:03] stien: has joined #ruby
[07:16:07] mallu: can someone please help me with this? https://gist.github.com/anonymous/f42470a7caf379f8c480
[07:16:24] pawnbox: has joined #ruby
[07:16:58] blackmesa: has joined #ruby
[07:18:22] clorisu: has joined #ruby
[07:18:29] clorisu: is there a rails chat?
[07:18:43] clorisu: has left #ruby: ("Leaving")
[07:19:34] hk238: has joined #ruby
[07:21:14] sandstrom: has joined #ruby
[07:21:33] hxegon: has joined #ruby
[07:21:37] opencard: has joined #ruby
[07:22:00] Ishido: has joined #ruby
[07:22:10] hk238: has joined #ruby
[07:24:09] hk238: has joined #ruby
[07:24:26] mallu: can someone please help me with this? https://gist.github.com/anonymous/f42470a7caf379f8c480
[07:24:32] Ox0dea: mallu: Give this a go: snaps.snapshots[0].tags.each_with_object({}) { |t, h| h[t.key] = t.value }
[07:24:46] mozzarella: mallu: snaps.snapshots[0].tags.find { |t| t.key == 'Environment' }.value
[07:25:48] mallu: mozzarella: thank you
[07:26:18] mallu: Ox0dea: thanks but that gives not just environment value
[07:26:26] ponga: has joined #ruby
[07:28:04] Ox0dea: mallu: Sure, but here's hoping you need a more general approach at some point. :)
[07:28:27] mallu: Ox0dea: yes I do and thank you very much
[07:28:39] Ox0dea: Happy to help.
[07:29:14] bjpenn: has joined #ruby
[07:29:18] adgtl: has joined #ruby
[07:33:58] guest19083: has joined #ruby
[07:34:15] guest19083: has left #ruby: ()
[07:34:57] LoneHerm_: has joined #ruby
[07:36:42] tvon: has joined #ruby
[07:37:56] sandstrom: has joined #ruby
[07:38:06] kirillzh: has joined #ruby
[07:38:11] sauvin: has joined #ruby
[07:39:20] User458764: has joined #ruby
[07:43:43] mallu: mozzarella: Ox0dea is there a better way to do this? https://gist.github.com/anonymous/6c8c32fbec082b99ddf6
[07:44:11] mallu: some of them doesn't have Environments
[07:44:18] Ox0dea: mallu: desc = n.tags.find { |t| t.key == 'Enviornment' }&.value
[07:44:26] Ox0dea: Assuming you're on 2.3+.
[07:44:36] mallu: im in 2.1
[07:45:26] j3r0: has joined #ruby
[07:45:37] Ox0dea: mallu: In that case, you'll have to say something like `if foo = n.tags.find { |t| t.key == 'Enviornment' }; desc = foo.value; end`.
[07:47:29] mallu: Ox0dea: the unless condition I have works too though.. how is this better than unless? Not arguing .. just trying to understand
[07:48:00] toretore: yours doesn't work
[07:48:20] Ox0dea: mallu: #each returns the receiver; your code isn't doing what you think it is.
[07:49:25] Ox0dea: A "fix" would be to s/each/find/, but then why repeat yourself? That's the question my suggestion answers with "you shouldn't".
[07:50:00] sauvin: has joined #ruby
[07:50:12] skade: has joined #ruby
[07:50:14] yardenbar: has joined #ruby
[07:50:50] Ox0dea: Not sure what to make of the "..", but I'd be happy to address any confusion.
[07:51:40] lxsameer: has joined #ruby
[07:52:05] toretore: desc = n.tags.inject(nil){|v,t| t.key == 'Environment' ? t.value : v }
[07:53:11] mallu: Ox0dea: .. was 'thinking' but I think I got it
[07:53:29] mallu: thank you both Ox0dea toretore
[07:53:34] Ox0dea: Sure thing.
[07:54:06] Ox0dea: Some folks advise against assignment in conditionals, but it's often a perfectly reasonable thing to do.
[07:54:38] sandstrom: has joined #ruby
[07:58:09] moeabdol: has joined #ruby
[07:58:09] htmldrum: has joined #ruby
[07:59:10] vikas027: has joined #ruby
[08:03:50] armyriad: has joined #ruby
[08:09:37] r3nrut: has joined #ruby
[08:10:16] Guest13710: has joined #ruby
[08:10:18] ohaibbq: has joined #ruby
[08:10:55] sandstrom: has joined #ruby
[08:15:00] dionysus69: has joined #ruby
[08:18:29] Norrin: has joined #ruby
[08:19:15] DmitryBochkarev: has joined #ruby
[08:19:58] blackmesa: has joined #ruby
[08:25:36] the_drow: has joined #ruby
[08:26:27] thevaliantx: has joined #ruby
[08:27:13] poerror: has joined #ruby
[08:27:37] sandstrom: has joined #ruby
[08:28:39] robbyoconnor: has joined #ruby
[08:29:08] jamil: has joined #ruby
[08:29:24] nettoweb: has joined #ruby
[08:29:31] ur5us: has joined #ruby
[08:29:56] bjpenn: im at http://ruby-doc.org/core-2.3.0/
[08:30:02] bjpenn: where can i figure out what "describe" does
[08:31:14] mistermo_: has joined #ruby
[08:31:57] Ox0dea: bjpenn: http://rspec.info/documentation/3.4/rspec-core/#Basic_Structure
[08:33:54] skade: has joined #ruby
[08:33:58] moos3: has joined #ruby
[08:35:53] flak: has joined #ruby
[08:36:20] bricker1: has joined #ruby
[08:36:44] Keltia_: has joined #ruby
[08:36:56] bjpenn_: has joined #ruby
[08:37:11] kedare1: has joined #ruby
[08:37:55] Fire-Dragon-DoL-: has joined #ruby
[08:38:09] skakri`: has joined #ruby
[08:38:28] danjack_: has joined #ruby
[08:38:28] ljarvis_: has joined #ruby
[08:38:30] mgorbach_: has joined #ruby
[08:38:40] jlyndon_: has joined #ruby
[08:38:50] jokke1: has joined #ruby
[08:38:54] bestie: has joined #ruby
[08:38:54] atom3: has joined #ruby
[08:38:55] shelling__: has joined #ruby
[08:38:58] bestie: has joined #ruby
[08:38:59] shelling__: has joined #ruby
[08:39:04] robbyoconnor: has joined #ruby
[08:39:10] ghormoon: has joined #ruby
[08:39:20] shevy: has joined #ruby
[08:39:35] jpinnix_______: has joined #ruby
[08:40:26] Asher: has joined #ruby
[08:40:31] artmann: has joined #ruby
[08:40:39] krz: has joined #ruby
[08:40:49] dellavg: has joined #ruby
[08:40:54] crameth: has joined #ruby
[08:41:14] linduxed: has joined #ruby
[08:41:31] red_horned_rihno: has joined #ruby
[08:44:19] sandstrom: has joined #ruby
[08:45:49] phatypus: has joined #ruby
[08:45:57] helper: has joined #ruby
[08:47:30] davee_: has joined #ruby
[08:50:59] RegulationD: has joined #ruby
[08:53:03] DmitryBochkarev: has joined #ruby
[08:54:05] firstdayonthejob: has joined #ruby
[08:55:12] uglybandersnatch: has joined #ruby
[08:56:41] DmitryBochkarev: has joined #ruby
[08:57:10] lessless: has joined #ruby
[08:57:50] edwinvdgraaf: has joined #ruby
[09:00:06] govg: has joined #ruby
[09:01:01] sandstrom: has joined #ruby
[09:02:07] hgl: has joined #ruby
[09:02:13] bry4n_: has joined #ruby
[09:04:20] govg_: has joined #ruby
[09:11:57] duckpuppy: has joined #ruby
[09:12:25] govg: has joined #ruby
[09:13:38] nanoz: has joined #ruby
[09:14:19] ziyadb: has joined #ruby
[09:17:23] DoubleMalt: has joined #ruby
[09:17:55] sandstrom: has joined #ruby
[09:19:15] ledestin: has joined #ruby
[09:19:55] devbug: has joined #ruby
[09:23:00] blackmesa: has joined #ruby
[09:24:43] intrigueD: has joined #ruby
[09:25:18] devbug: has joined #ruby
[09:25:32] govg_: has joined #ruby
[09:28:27] helper: has joined #ruby
[09:30:13] jenrzzz: has joined #ruby
[09:30:38] poerror: has joined #ruby
[09:33:16] roshanavand: has joined #ruby
[09:33:49] JohnBat26: has joined #ruby
[09:34:37] sandstrom: has joined #ruby
[09:34:52] devbug: has joined #ruby
[09:40:36] krz: has joined #ruby
[09:43:22] govg: has joined #ruby
[09:44:42] devbug: has joined #ruby
[09:47:19] Infra-Red: has joined #ruby
[09:47:32] mistermo_: has joined #ruby
[09:48:31] cpup: has joined #ruby
[09:50:15] govg: has joined #ruby
[09:50:28] n008f4g_: has joined #ruby
[09:51:20] sandstrom: has joined #ruby
[09:53:02] pawnbox: has joined #ruby
[09:54:12] chagel: has joined #ruby
[09:54:18] uglybandersnatch: has joined #ruby
[09:58:25] shunya: has joined #ruby
[09:58:37] moos3: has joined #ruby
[09:59:05] htmldrum: has joined #ruby
[09:59:19] devbug: has joined #ruby
[10:01:29] neo_: has joined #ruby
[10:01:52] User458764: has joined #ruby
[10:03:05] mdw: has joined #ruby
[10:06:51] Mia: has joined #ruby
[10:07:14] devbug: has joined #ruby
[10:07:27] DmitryBochkarev: has joined #ruby
[10:07:40] shunya: has joined #ruby
[10:07:55] sandstrom: has joined #ruby
[10:08:10] edwinvdgraaf: has joined #ruby
[10:09:54] ohaibbq: has joined #ruby
[10:11:21] hgl: has joined #ruby
[10:11:25] Cork: has joined #ruby
[10:12:52] Mon_Ouie: has joined #ruby
[10:18:23] zapata: has joined #ruby
[10:18:45] robbyoconnor: has joined #ruby
[10:21:58] thevaliantx: has joined #ruby
[10:24:37] sandstrom: has joined #ruby
[10:29:51] JamieD: has joined #ruby
[10:31:53] mdw: has joined #ruby
[10:36:01] dgncn: has joined #ruby
[10:39:52] kron4eg: has joined #ruby
[10:41:12] chagel: has joined #ruby
[10:41:26] achamian: has joined #ruby
[10:42:57] sandstrom: has joined #ruby
[10:46:58] bkxd: has joined #ruby
[10:47:26] bkxd: has joined #ruby
[10:47:53] n008f4g_: has joined #ruby
[10:49:57] Eaven: has joined #ruby
[10:52:59] bjpenn: has joined #ruby
[10:53:08] roshanavand: has joined #ruby
[10:53:55] Tempesta: has joined #ruby
[10:56:35] htmldrum: has joined #ruby
[10:56:36] sepp2k: has joined #ruby
[10:58:40] Tempesta: has joined #ruby
[10:59:59] hgl: has joined #ruby
[11:00:11] last_staff: has joined #ruby
[11:00:58] woodruffw: has joined #ruby
[11:06:51] hgl: has joined #ruby
[11:08:15] nerium: has joined #ruby
[11:10:17] the_drow: has joined #ruby
[11:11:31] julieeharshaw: has joined #ruby
[11:12:41] duckpuppy: has joined #ruby
[11:13:30] jbrhbr: has joined #ruby
[11:13:37] Xeago: has joined #ruby
[11:13:49] roshanavand: has joined #ruby
[11:15:50] baweaver: has joined #ruby
[11:16:56] spider-mario: has joined #ruby
[11:17:05] mistermocha: has joined #ruby
[11:21:49] poerror: has joined #ruby
[11:22:22] User458764: has joined #ruby
[11:23:13] abhiii5459_: has joined #ruby
[11:24:52] moeabdol: has joined #ruby
[11:30:53] poerror: has joined #ruby
[11:32:44] gregf: has joined #ruby
[11:34:04] j2k: has joined #ruby
[11:39:56] pawnbox_: has joined #ruby
[11:44:40] htmldrum: has joined #ruby
[11:45:21] n008f4g_: has joined #ruby
[11:46:46] moos3: has joined #ruby
[11:48:42] mary5030: has joined #ruby
[11:51:09] steffkes: has joined #ruby
[11:51:09] steffkes: has joined #ruby
[11:55:17] red_horned_rihno: has joined #ruby
[11:56:47] chagel: has joined #ruby
[11:57:59] nwhirschfeld: has joined #ruby
[11:58:36] pawnbox: has joined #ruby
[12:05:38] sonOfRa: has joined #ruby
[12:05:44] ruby-lang049: has joined #ruby
[12:07:56] ruby-lang796: has joined #ruby
[12:09:39] moeabdol1: has joined #ruby
[12:12:34] kirun: has joined #ruby
[12:15:05] rdark: has joined #ruby
[12:15:56] sonOfRa: has joined #ruby
[12:16:08] y2mq37: has joined #ruby
[12:19:28] mdw: has joined #ruby
[12:20:28] creat: has joined #ruby
[12:21:53] shevy: it is so quiet here on Sundays
[12:27:39] steffkes: has joined #ruby
[12:28:07] Xeago: has joined #ruby
[12:30:40] jamil: has joined #ruby
[12:32:53] sdothum: has joined #ruby
[12:33:12] Zarthus: shevy: irc in general tends to be dead on sundays
[12:34:01] jenrzzz: has joined #ruby
[12:36:48] yeticry: has joined #ruby
[12:39:30] skweek: has joined #ruby
[12:42:33] vikas027: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[12:45:38] Aviio: has joined #ruby
[12:47:16] Aviio: has left #ruby: ()
[12:50:40] rippa: has joined #ruby
[12:50:53] steffkes: has joined #ruby
[12:50:53] steffkes: has joined #ruby
[12:51:19] IrishGringo: has joined #ruby
[12:52:29] RegulationD: has joined #ruby
[12:53:52] DoubleMalt: has joined #ruby
[12:54:54] roshanavand: has joined #ruby
[12:54:59] biberu: has joined #ruby
[12:56:01] FooMunki: has joined #ruby
[12:56:17] martinb: has joined #ruby
[12:59:35] Narzew: has joined #ruby
[12:59:44] synthroid: has joined #ruby
[13:01:26] bronson: has joined #ruby
[13:02:47] gaf_: has joined #ruby
[13:03:01] `tim`: has joined #ruby
[13:03:40] bry4n_: has joined #ruby
[13:04:17] sesquipedalian: has joined #ruby
[13:05:00] Musashi007: has joined #ruby
[13:05:58] nerium: has joined #ruby
[13:06:13] ejdzes: has joined #ruby
[13:07:02] neversleepz: has joined #ruby
[13:08:33] User458764: has joined #ruby
[13:10:26] krz: has joined #ruby
[13:13:30] duckpuppy: has joined #ruby
[13:15:30] TomyLobo: has joined #ruby
[13:15:41] codecop: has joined #ruby
[13:16:53] baweaver: has joined #ruby
[13:17:21] agit0: has joined #ruby
[13:17:56] Prominent: has joined #ruby
[13:19:12] apeiros: it's all on slack now
[13:20:15] roshanavand: has joined #ruby
[13:21:46] Rinalds: has joined #ruby
[13:22:08] crameth_: has joined #ruby
[13:28:18] reaVer: has joined #ruby
[13:28:21] aryaching: has joined #ruby
[13:29:26] neversleepz: has joined #ruby
[13:29:31] Ropeney: has joined #ruby
[13:29:48] Prominent: has joined #ruby
[13:30:49] cpup: has joined #ruby
[13:30:51] lxsameer: has joined #ruby
[13:31:39] adgtl: has joined #ruby
[13:31:39] adgtl: has joined #ruby
[13:33:07] tomphp: has joined #ruby
[13:33:30] Prominent_: has joined #ruby
[13:33:41] adgtl: has joined #ruby
[13:34:57] moos3: has joined #ruby
[13:35:24] jenrzzz: has joined #ruby
[13:37:34] sandstrom: has joined #ruby
[13:38:22] snowy: has joined #ruby
[13:38:41] r3nrut: has joined #ruby
[13:42:30] moos3: has joined #ruby
[13:44:27] Faris: has joined #ruby
[13:45:07] LoneHermit: has joined #ruby
[13:45:24] tvon: has joined #ruby
[13:46:41] aryaching_: has joined #ruby
[13:46:45] tvon: has joined #ruby
[13:48:21] DmitryBochkarev: has joined #ruby
[13:49:12] roshanavand: has joined #ruby
[13:50:49] blackmesa: has joined #ruby
[13:53:05] fexilal: has joined #ruby
[13:54:17] sandstrom: has joined #ruby
[14:01:23] chipotle: has joined #ruby
[14:02:21] neversleepz: has joined #ruby
[14:02:30] IrishGringo: has joined #ruby
[14:04:20] aryaching: has joined #ruby
[14:07:14] idle_task: has joined #ruby
[14:10:52] sandstrom: has joined #ruby
[14:13:42] mdw: has joined #ruby
[14:14:01] snowy: has joined #ruby
[14:15:24] tvon: has joined #ruby
[14:18:21] freerobby: has joined #ruby
[14:19:10] srkkkadnn: has joined #ruby
[14:19:28] srkkkadnn: how this snippet could be written more elegantly? http://dpaste.com/0RXB57G
[14:20:30] chagel: has joined #ruby
[14:22:39] Mon_Ouie: &ri Array#map
[14:22:39] `derpy: http://ruby-doc.org/core-2.3.0/Array.html#method-i-map
[14:23:41] Mon_Ouie: Well, you don't have an array, but it's still Enumerable#map
[14:24:52] srkkkadnn: Mon_Ouie: what you mean by "&ri Array#map"
[14:25:13] Mon_Ouie: Look at the link that `derpy (which is a bot) posted after I said that
[14:26:15] aryaching_: has joined #ruby
[14:26:20] Papierkorb: Mon_Ouie, srkkkadnn, at least rubocop will complain when you do "10.times.map", and suggest you to use Array.new(10){} instead
[14:26:41] Papierkorb: >> Array.new(10){|i| i * 2}
[14:26:42] ruby[bot]: Papierkorb: # => [0, 2, 4, 6, 8, 10, 12, 14, 16, 18] (https://eval.in/535725)
[14:27:10] Papierkorb: But I like the x.times.map one more too.
[14:27:13] User458764: has joined #ruby
[14:27:38] srkkkadnn: Mon_Ouie: ok, I guess I got it, or correct me if I'm wrong.
[14:28:06] srkkkadnn: We should use map! and can change the looping-array(enum) itself ..
[14:29:18] srkkkadnn: but map conceptually should return same len(input) == len(output) .. so, if we want to use it differently then use reduce() ?
[14:29:18] Papierkorb: Prefer #map (non-bang version) over #map! (bang-version)
[14:29:21] Mon_Ouie: That doesn't right. Can you show what that would look like in actual code?
[14:29:36] Mon_Ouie: (You can't do 10.times.map! { … })
[14:30:00] srkkkadnn: hmm .. you right.
[14:30:49] srkkkadnn: but it could be done with Array.new(10){} .. 10.times was just meant to loop.
[14:31:13] srkkkadnn: Since most of the time, we write functions which does something(loop) and then return some result ..
[14:31:23] jamil: has joined #ruby
[14:31:31] srkkkadnn: I'm just looking, how this could be written elegantly.
[14:31:48] Mon_Ouie: Then see the example Papierkorb wrote above
[14:34:06] aryaching: has joined #ruby
[14:35:10] srkkkadnn: Papierkorb: thanks for the example.
[14:35:48] jenrzzz: has joined #ruby
[14:36:28] srkkkadnn: can you help me understanding this little further .. let say, how this snippet could be improved http://dpaste.com/151NXNJ
[14:36:42] srkkkadnn: At times, I've to return vars like task.
[14:36:52] Mon_Ouie: tasks = Array.new(10) { … }
[14:37:00] Mon_Ouie: The call to Array.new replaces the whole loop
[14:37:16] Mon_Ouie: Oh wait, misread that
[14:37:27] Papierkorb: Or "tasks += Array.new(...){..}" if you want to append.
[14:37:36] Mon_Ouie: I would use Array#flat_map
[14:37:49] Papierkorb: srkkkadnn: Also, prefer do .. end for multiline blocks and {...} for blocks which end on the same line
[14:37:56] poerror: has joined #ruby
[14:38:04] Papierkorb: Oh right Mon_Ouie, #flat_map is much better for this
[14:38:08] tvon: has joined #ruby
[14:38:15] srkkkadnn: Papierkorb: multiline point taken.
[14:38:25] srkkkadnn: and I'm reading about flat_map now.
[14:38:42] shevy: what's with this mat_flap here
[14:39:50] Papierkorb: srkkkadnn: Also, I'd actually refactor that method to have a (private?) method which processes only one rule, which I then call in the rules.each block. That forces you to only think about this single item, because most likely you don't actually care that there are other rules in that block
[14:40:10] bricker: has joined #ruby
[14:40:40] Papierkorb: Probably not for a one-liner, but likely for 3+ liners
[14:42:25] srkkkadnn: Papierkorb: certainly that would be better .. but as you said - not for 1-liner and it's 1-liner. Secondly .. this will placed at compute intensive-place, so want to optimize and putting a function call will add context switch(stack)
[14:43:06] srkkkadnn: how flat_map would be helpful .. we don't want to flatten anything here.
[14:43:14] Papierkorb: srkkkadnn: http://dpaste.com/0Y86BFE
[14:43:33] Papierkorb: Why not? Have you benchmarked it srkkkadnn?
[14:43:57] Papierkorb: srkkkadnn: And what is the "compute-intensive" part?
[14:44:15] srkkkadnn: Papierkorb: pardon, actually I've not benchmarked .. it's all theoretical.
[14:44:25] Papierkorb: The 'benchmark' library, part of the standard distribution, can help you
[14:44:56] srkkkadnn: and by compute-intensive I meant, this block will be called for every DB-transaction.
[14:45:03] Papierkorb: Most likely the #flat_map won't do any harm in terms of computation time
[14:45:23] r3nrut: has joined #ruby
[14:45:36] Papierkorb: srkkkadnn: That sounds really like a premature optimization
[14:46:07] Infra-Red: has joined #ruby
[14:46:18] Papierkorb: srkkkadnn: If things get slow, it won't be because of #flat_map, but most likely because of whatever else code you're running in there. In that case, consider offloading the task building somewhere else.
[14:46:18] srkkkadnn: Papierkorb: you could be right, it's a premature-optimization. :)
[14:46:58] Prominent_: has joined #ruby
[14:48:32] moos3: has joined #ruby
[14:49:29] shellie_: has joined #ruby
[14:50:27] r3nrut: has joined #ruby
[14:51:33] krz: has joined #ruby
[14:51:49] cdg: has joined #ruby
[14:52:51] aryaching_: has joined #ruby
[14:53:45] RegulationD: has joined #ruby
[14:55:33] htmldrum: has joined #ruby
[14:56:38] JohnBat26: has joined #ruby
[14:58:26] uglybandersnatch: has joined #ruby
[15:00:28] roshanavand: has joined #ruby
[15:02:12] JohnBat26: has joined #ruby
[15:04:28] bry4n_: has joined #ruby
[15:07:08] reaVer: has joined #ruby
[15:08:28] Timberwo|f: has joined #ruby
[15:09:23] Xiti: has joined #ruby
[15:11:58] srkkkadnn: Papierkorb: flat_map is slower, here is a snippet to test. http://dpaste.com/060KZ2P
[15:12:10] srkkkadnn: build_1: 1.260000 0.110000 1.370000 ( 1.392506)
[15:12:18] srkkkadnn: build_2: 1.240000 0.080000 1.320000 ( 1.330387)
[15:13:13] Papierkorb: srkkkadnn: Of course it's slower, it's moving arrays around more afterall, but on 500k calls it's only 60ms slower
[15:13:42] Papierkorb: >> (1 - (1.330387 / 1.392506)) * 100
[15:13:43] ruby[bot]: Papierkorb: # => 4.460950258024021 (https://eval.in/535729)
[15:13:56] Papierkorb: srkkkadnn: That's 4.5% slower.
[15:14:04] srkkkadnn: you are right, that's why I said .. theoretically it should be slower and hence should be avoided at compute-intensive place.
[15:14:17] duckpuppy: has joined #ruby
[15:14:50] Papierkorb: I'm just saying, be sure that it's actually "computationally intensive", or otherwise "time critical", before doing such optimizations
[15:15:09] JohnBat26: has joined #ruby
[15:15:16] srkkkadnn: Papierkorb: point taken. :)
[15:15:22] snowy: has joined #ruby
[15:16:13] srkkkadnn: Papierkorb: I started all this .. because I've seen .tap .. and thought, using tap you can send results back of same block.
[15:17:24] srkkkadnn: so I thought, if this could be done otherwise.
[15:17:45] pawnbox: has joined #ruby
[15:20:05] mistermocha: has joined #ruby
[15:23:56] skweek: has joined #ruby
[15:24:15] krz: has joined #ruby
[15:26:31] tomatoes: has joined #ruby
[15:27:26] rooose: has joined #ruby
[15:28:18] tvon: has joined #ruby
[15:30:44] r3nrut: has joined #ruby
[15:31:54] SCHAAP137: has joined #ruby
[15:32:04] LoneHermit: has joined #ruby
[15:32:56] liquid-silence: has joined #ruby
[15:33:06] liquid-silence: hi all, does anyone here understand JWT?
[15:33:22] poerror: has joined #ruby
[15:33:26] liquid-silence: I am at the end of my capacity with the signature for this
[15:33:41] Rubie: has joined #ruby
[15:33:43] liquid-silence: and cannot for the life of me figure out why the signature is not valid when hitting the 3rd part service
[15:33:43] bricker: has joined #ruby
[15:33:43] Mon_Ouie: has joined #ruby
[15:34:51] hahuang65: has joined #ruby
[15:35:05] shevy: is jwt not java
[15:35:46] liquid-silence: although I have a java lib that create the token correctly
[15:35:55] liquid-silence: the lib is encrypted so I cannot view the code
[15:37:58] hxegon: has joined #ruby
[15:38:50] blandflakes: has joined #ruby
[15:40:21] krz: has joined #ruby
[15:41:17] sepp2k1: has joined #ruby
[15:41:40] minimalism: has joined #ruby
[15:42:07] tvon: has joined #ruby
[15:46:12] pawnbox: has joined #ruby
[15:47:36] chipotle: has joined #ruby
[15:47:59] aryaching: has joined #ruby
[15:52:04] davedev24: has joined #ruby
[15:53:40] DiCablo: has joined #ruby
[15:53:40] Prominent_: has joined #ruby
[15:57:02] nettoweb: has joined #ruby
[16:00:04] pawnbox: has joined #ruby
[16:00:31] blackmesa: has joined #ruby
[16:01:54] ljames: has joined #ruby
[16:04:15] liquid-silence: has joined #ruby
[16:04:15] liquid-silence: has joined #ruby
[16:04:28] tomphp: has joined #ruby
[16:05:16] gbgdev: has joined #ruby
[16:06:53] darkf: has joined #ruby
[16:12:41] johnmilton: has joined #ruby
[16:15:02] liquid-silence: has joined #ruby
[16:15:02] liquid-silence: has joined #ruby
[16:18:24] StevenXL: has joined #ruby
[16:18:28] drptbl: has joined #ruby
[16:19:02] StevenXL: hello everyone. I am trying to send a string to an API that will use that string as the "from" field in an email. (I am using Mandrill).
[16:19:31] StevenXL: Unfortunately, The string I am trying to send has invalid characters. For example "bs, ms <support@example.com>"
[16:19:53] StevenXL: The "," after
[16:20:05] StevenXL: The "," after "bs" is invalid. How can I escape it so that it is valid?
[16:20:40] drptbl: has joined #ruby
[16:20:58] j2k: stevenxl Why is it invalid?
[16:21:28] StevenXL: j2k: I believe that the SMTP standards don't allow certain characters in that from field. One of those characters is the comma.
[16:23:10] StevenXL: My problem is that I want to turn "bs, ms, mba" into "bs\, ms\, mba", with the hope that the backslash characters will escape the comma and it can be used in the from field."
[16:23:16] StevenXL: I am having trouble achieving that.
[16:23:54] moeabdol: has joined #ruby
[16:24:41] User458764: has joined #ruby
[16:27:41] StevenXL: Ah I got it!
[16:27:45] StevenXL: Thanks folks!
[16:29:32] despai: has joined #ruby
[16:32:07] jamil: has joined #ruby
[16:32:41] Abrin_AWAY: has joined #ruby
[16:32:48] aufi: has joined #ruby
[16:32:50] LoneHerm_: has joined #ruby
[16:33:45] arquebus: has joined #ruby
[16:35:41] fedexo: has joined #ruby
[16:36:15] aclearman037: has joined #ruby
[16:36:59] finisherr_: has joined #ruby
[16:37:28] Rubie: has joined #ruby
[16:37:49] Rodya_: has joined #ruby
[16:37:50] jenrzzz: has joined #ruby
[16:43:52] skarn: has left #ruby: ("Leaving")
[16:49:06] drptbl: has joined #ruby
[16:50:45] nanoz: has joined #ruby
[16:51:12] d0nn1e: has joined #ruby
[16:56:08] JohnBat26: has joined #ruby
[17:02:03] al2o3-cr: has joined #ruby
[17:02:28] hxegon: has joined #ruby
[17:02:47] nettoweb: has joined #ruby
[17:03:07] adgtl: has joined #ruby
[17:03:50] bronson: has joined #ruby
[17:05:20] bry4n_: has joined #ruby
[17:08:13] Prominent_: has joined #ruby
[17:08:22] symm-: has joined #ruby
[17:09:59] adgtl: has joined #ruby
[17:10:34] ariel_17: has joined #ruby
[17:10:34] bronson: has joined #ruby
[17:13:17] yardenbar: has joined #ruby
[17:14:29] chipotle: has joined #ruby
[17:15:01] duckpuppy: has joined #ruby
[17:17:26] red_horned_rihno: has joined #ruby
[17:17:44] tvon: has joined #ruby
[17:17:54] Rodya_: has joined #ruby
[17:19:20] arlek: has joined #ruby
[17:19:30] baweaver: has joined #ruby
[17:20:14] binaryplease: has joined #ruby
[17:20:29] al2o3-cr1: has joined #ruby
[17:21:56] havenwood: 'hellooooo'.squeeze 'o'
[17:22:26] dikaio: has joined #ruby
[17:23:18] diegoviola: has joined #ruby
[17:24:43] gizmore: has joined #ruby
[17:27:35] johnmilton: has joined #ruby
[17:27:45] Zarthus: havenwood: that's neat.
[17:27:52] Zarthus: I wonder... what use it has.
[17:28:29] havenwood: >> require 'base64'; require 'json'; token = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJub25lIn0.eyJhaW0iOnRydWV9.'; header, payload, signature = token.split('.').map { |part| JSON.parse Base64.decode64 part }
[17:28:30] ruby[bot]: havenwood: # => [{"typ"=>"JWT", "alg"=>"none"}, {"aim"=>true}] (https://eval.in/535784)
[17:28:34] shevy: Zarthus for instance you have a path like this: "/tmp////foo.txt".squeeze '/' # => "/tmp/foo.txt"
[17:28:46] LuckyABA: has joined #ruby
[17:29:01] Zarthus: shevy: \o/
[17:29:15] havenwood: liquid-silence left, but NONE is an easy signature to reason about ;)
[17:29:17] tvon: has joined #ruby
[17:31:09] intrigueD: has joined #ruby
[17:31:13] arlek: has joined #ruby
[17:33:32] tildes: has joined #ruby
[17:34:30] dikaio_: has joined #ruby
[17:35:15] kellabyte: has left #ruby: ()
[17:37:28] yeticry: has joined #ruby
[17:39:12] mrgrieves: has joined #ruby
[17:39:40] barajasfab: has joined #ruby
[17:42:16] adgtl: has joined #ruby
[17:43:01] dikaio: has joined #ruby
[17:43:51] poerror: has joined #ruby
[17:45:22] dikaio: has joined #ruby
[17:46:37] jbrhbr: has joined #ruby
[17:47:03] yeticry: has joined #ruby
[17:48:11] dikaio: has joined #ruby
[17:50:36] dikaio: has joined #ruby
[17:50:41] hinbody: has joined #ruby
[17:50:44] DiCablo: has joined #ruby
[17:50:52] symm-: has joined #ruby
[17:51:08] jamil: has joined #ruby
[17:51:42] adgtl: has joined #ruby
[17:52:40] chouhoulis: has joined #ruby
[17:53:22] fullofcaffeine: has joined #ruby
[17:54:17] mwlang: has joined #ruby
[17:56:55] yeticry: has joined #ruby
[17:58:28] govg: has joined #ruby
[18:00:56] tvon: has joined #ruby
[18:02:22] yeticry: has joined #ruby
[18:05:02] adgtl: has joined #ruby
[18:05:17] User458764: has joined #ruby
[18:05:57] tvon: has joined #ruby
[18:06:08] Guest45: has joined #ruby
[18:09:45] aclearman037: has joined #ruby
[18:13:29] kirillzh: has joined #ruby
[18:14:57] dikaio: has joined #ruby
[18:15:45] aclearma_: has joined #ruby
[18:16:54] cpruitt: has joined #ruby
[18:17:14] LoneHermit: has joined #ruby
[18:18:00] Guest13710: has joined #ruby
[18:19:20] Spami: has joined #ruby
[18:19:22] mdw: has joined #ruby
[18:19:25] anisha: has joined #ruby
[18:22:54] davedev24: has joined #ruby
[18:24:27] niksrc: has joined #ruby
[18:25:31] bnagy: has joined #ruby
[18:26:59] crowell: has joined #ruby
[18:32:09] fostertheweb: has joined #ruby
[18:32:26] B4daBing73: has joined #ruby
[18:33:36] tvon: has joined #ruby
[18:34:17] tomphp: has joined #ruby
[18:35:34] chipotle: has joined #ruby
[18:37:44] shanemcd: has joined #ruby
[18:38:08] LoneHermit: has joined #ruby
[18:38:57] shanemcd: has left #ruby: ()
[18:39:36] jenrzzz: has joined #ruby
[18:40:29] RegulationD: has joined #ruby
[18:40:39] anisha: has joined #ruby
[18:42:52] dionysus69: has joined #ruby
[18:42:56] baweaver: has joined #ruby
[18:44:01] havenwood: https://gist.github.com/havenwood/3b98192d6122a4c9b1a4
[18:44:03] fullofcaffeine: has joined #ruby
[18:44:04] workmad3: has joined #ruby
[18:46:41] Puffball: has joined #ruby
[18:49:57] Xeago: has joined #ruby
[18:51:59] tvon: has joined #ruby
[18:52:30] symm-: has joined #ruby
[18:52:35] dikaio: has joined #ruby
[18:53:26] achamian: has joined #ruby
[18:56:41] Spami: has joined #ruby
[19:00:14] uglybandersnatch: has joined #ruby
[19:00:40] tristanp: has joined #ruby
[19:02:32] blackmesa: has joined #ruby
[19:04:04] haxrbyte: has joined #ruby
[19:04:28] mdw7: has joined #ruby
[19:04:44] shevy: when is the next ruby conference with matz in 2016
[19:05:24] mdw7_: has joined #ruby
[19:05:36] Omni: has joined #ruby
[19:06:00] Rodya_: has joined #ruby
[19:06:17] bry4n_: has joined #ruby
[19:07:52] n008f4g_: has joined #ruby
[19:09:21] `tim`: has joined #ruby
[19:09:27] _blizzy_: has joined #ruby
[19:09:51] `tim`: has joined #ruby
[19:10:24] dgncn: has joined #ruby
[19:12:16] `tim`: has joined #ruby
[19:13:26] chipotle: has joined #ruby
[19:14:38] jenrzzz: has joined #ruby
[19:15:48] duckpuppy: has joined #ruby
[19:16:53] Rubie: has joined #ruby
[19:18:30] gundoc: has joined #ruby
[19:19:21] skweek: has joined #ruby
[19:23:29] Blaguvest: has joined #ruby
[19:27:56] lxsameer: has joined #ruby
[19:30:01] mallu: has joined #ruby
[19:31:02] dikaio: has joined #ruby
[19:32:22] dikaio: has joined #ruby
[19:34:56] nofxx: has joined #ruby
[19:34:56] nofxx: has joined #ruby
[19:36:44] dionysus69: has joined #ruby
[19:38:11] finisherr: has joined #ruby
[19:38:47] despai: has joined #ruby
[19:39:42] crowell: has joined #ruby
[19:43:26] Abrin_AWAY: has joined #ruby
[19:43:31] fullofcaffeine: has joined #ruby
[19:45:17] mallu: can someone please tell me why count is not incrementing? https://gist.github.com/anonymous/9a751e030975f88c8fce
[19:45:20] poerror: has joined #ruby
[19:45:33] danjack_: >>> "HELLO"
[19:45:53] danjack_: Noat, may, fault
[19:47:29] mallu: never mind... +=
[19:48:01] dikaio: has joined #ruby
[19:48:46] bjpenn: has joined #ruby
[19:49:33] Rodya_: has joined #ruby
[19:52:41] Mon_Ouie: has joined #ruby
[19:53:09] Guest13710: has joined #ruby
[19:53:28] yqt: has joined #ruby
[19:54:13] achamian: has joined #ruby
[19:54:19] Rubie: has joined #ruby
[19:54:25] djbkd: has joined #ruby
[19:55:26] ziyadb: has joined #ruby
[19:55:44] Hanmac: shevy i noticed that in my ruby test "=+" works the same as "+=" but i am sure it should not ... or?
[19:56:25] danjack_: 1 =+ variable
[19:56:31] danjack_: you want to tell me that that works?
[19:57:40] shevy: hanmac what the
[19:57:49] shevy: what is happening
[19:57:54] shevy: is this madness year
[19:58:29] shevy: https://gist.github.com/anonymous/9a751e030975f88c8fce
[19:58:36] shevy: jedi such as yoda!!!!
[19:58:42] davedev24: has joined #ruby
[19:58:44] Hanmac: >> count = 0;count =+ 1; p count
[19:58:45] ruby[bot]: hanmac: # => 1 ...check link for more (https://eval.in/535834)
[19:58:51] Hanmac: count = 0;count += 1; p count
[19:58:53] shevy: "This is not the page you have been looking for" *hand wave*
[19:58:58] Hanmac: >> count = 0;count += 1; p count
[19:58:58] Mon_Ouie: >> count = 1; count =+ 1; count
[19:59:00] ruby[bot]: Mon_Ouie: # => 1 (https://eval.in/535835)
[19:59:01] ruby[bot]: hanmac: # => 1 ...check link for more (https://eval.in/535836)
[19:59:19] danjack_: count = (+(1))
[19:59:26] danjack_: =+ is not an operator
[19:59:34] danjack_: the + gets interpreted as a positive sign
[19:59:42] Hanmac: ahh good, i i used bad variables for test ing ;P
[19:59:57] danjack_: this just assigns a postive 1 to the variable
[19:59:58] Hanmac: for a moment i thought it did work
[20:00:09] shevy: I did not read the =+ from Mon_Ouie
[20:00:14] shevy: my brain replaced this automatically with a +=
[20:00:17] baweaver: >> count = 2; count =+ 1; count
[20:00:18] ruby[bot]: baweaver: # => 1 (https://eval.in/535837)
[20:00:31] danjack_: you silly boys
[20:00:37] danjack_: >> "shevy " * 10
[20:00:54] shevy: danjack_ you are jackcom right :)
[20:01:04] baweaver: have to be auth'd to the nickserv to do that.
[20:01:20] baweaver: are you now...
[20:01:26] shevy: ruboto was a much nicer but
[20:01:29] shevy: erm... *bot
[20:02:52] baweaver: because if you WERE jackcom, that'd be ban evasion
[20:03:25] anisha: has joined #ruby
[20:04:34] danjack_: i said yes o "have to be auth'd to the nickserv to do that."
[20:04:41] danjack_: i dont know who jackcom is
[20:04:48] poguez_: has joined #ruby
[20:05:59] Dimik: has joined #ruby
[20:06:13] icarus: has joined #ruby
[20:06:30] baweaver: ah, carry on then.
[20:07:13] adgtl: has joined #ruby
[20:07:13] adgtl: has joined #ruby
[20:09:30] pawnbox: has joined #ruby
[20:13:13] mallu: I'm new to ruby/programming trying to create multiple methods. If I remove methods this scripts work. I'm getting "aws_snapshot.rb:27:in `snapshot_description': undefined local variable or method `resp' for main:Object (NameError)"
[20:13:24] mallu: https://gist.github.com/anonymous/63cc4b73d4e8c35a2ff6
[20:14:04] mallu: how do I pass resp variable from one method to another?
[20:14:55] pawnbox: has joined #ruby
[20:14:57] TvL2386: has joined #ruby
[20:15:43] Hanmac: mallu checkout "local variable" vs "instance variable"
[20:15:55] bronson: IO.sysopen is blocking (!?). Anyone know how I can open an IO nonblocking?
[20:15:59] blackmesa: has joined #ruby
[20:16:14] bronson: mallu: either declare resp outside the methods or make it a global $resp
[20:16:56] haxrbyte: has joined #ruby
[20:17:06] elifoster: has joined #ruby
[20:17:31] haxrbyte: has joined #ruby
[20:20:10] symm-: has joined #ruby
[20:21:57] mrgrieves: has joined #ruby
[20:22:10] mdw: has joined #ruby
[20:22:22] danjack_: I just discovered Hash.new(default_value)
[20:22:26] govg: has joined #ruby
[20:24:11] Guest13710: has joined #ruby
[20:27:48] adaedra: there's the version with the block which is also good.
[20:31:21] fullofcaffeine: has joined #ruby
[20:31:30] LoneHerm_: has joined #ruby
[20:32:20] Don_John: has joined #ruby
[20:33:23] Prominent_: has joined #ruby
[20:34:24] snowy: has joined #ruby
[20:37:14] houhoulis: has joined #ruby
[20:40:28] davee_: has joined #ruby
[20:41:18] RegulationD: has joined #ruby
[20:42:56] rooose: has joined #ruby
[20:45:07] floatingpoint: has joined #ruby
[20:48:49] Rubie: has joined #ruby
[20:50:40] mallu: so I have 'counting' working but snapshot_list is not working. How do I return n.xxxx to snapshot_list? https://gist.github.com/anonymous/6af3eb7bf72798d15627
[20:51:03] Rodya_: has joined #ruby
[20:53:31] Hanmac: mallu: you need to call snapshot_list from inside the loop in snapshot_description with n as parameter
[20:55:28] htmldrum: has joined #ruby
[20:57:21] chipotle_: has joined #ruby
[20:57:21] mallu: hanmac: so in snapshot_description .. I call snapshot_list(n) ?
[20:58:25] jamil: has joined #ruby
[20:58:28] terlar: has joined #ruby
[20:59:06] Hanmac: yeah, inside the each loop
[20:59:11] skweek: has joined #ruby
[21:00:54] mallu: hanmac: sorry to bother.. something like this? https://gist.github.com/anonymous/01c382eb7c17f777feee
[21:02:29] Guest13710: has joined #ruby
[21:02:45] Hanmac: mallu: like that: https://gist.github.com/Hanmac/fbbe941c373f0cee1793
[21:03:49] ivanskie: has joined #ruby
[21:07:04] bry4n_: has joined #ruby
[21:07:53] finisherr: has joined #ruby
[21:09:06] jbrhbr: has joined #ruby
[21:09:11] mallu: hanmac: thank you but when I call snap = Snapshot.new
[21:09:11] mallu: snap.snapshot_list how do I pass arguments for snapshot_list?
[21:09:16] danjack_: is there a way to get the age of an object?
[21:14:17] Rubie: has joined #ruby
[21:16:21] n_blownapart: has joined #ruby
[21:16:32] duckpuppy: has joined #ruby
[21:18:38] rubie_: has joined #ruby
[21:18:46] hxegon: has joined #ruby
[21:19:26] mallu: hanmac: this is the error "`snapshot_list': wrong number of arguments (0 for 1) (ArgumentError)
[21:19:26] mallu: from aws_snapshot.rb:67:in `<main>"
[21:22:28] moeabdol1: has joined #ruby
[21:22:49] poerror: has joined #ruby
[21:23:24] freerobby: has joined #ruby
[21:25:52] mallu: can someone please tell me how I can fix this error `snapshot_list': undefined local variable or method `n' for #<Snapshot:0x007ffeebb5cc68> (NameError) https://gist.github.com/anonymous/a02ff5677b7f5aeb76c5
[21:25:54] pawnbox: has joined #ruby
[21:29:56] mrgrieves: has joined #ruby
[21:30:34] poerror: has joined #ruby
[21:30:41] adam|: mallu: `n` isn't in that method scope.
[21:30:54] krz: has joined #ruby
[21:30:57] adam|: mallu: What are you trying to achieve?
[21:31:21] mallu: adam|: correct.. how do I pass n from snapshot_description to snapshot_list?
[21:31:58] mallu: adam|: I want to be able to list snapshots from snapshot_description method
[21:32:31] jaruga: has joined #ruby
[21:33:27] deduped: has joined #ruby
[21:33:30] adam|: mallu: Hard to follow your code, but you likely want another block, where you iterate over @resp.snapshots again.
[21:34:15] despai: has joined #ruby
[21:35:48] mallu: adam|: Can you please tell me how do you make it better? I was hoping not to repeat the code
[21:37:52] ecksit: has joined #ruby
[21:37:59] intrigueD: has joined #ruby
[21:38:30] ecksit: has joined #ruby
[21:39:19] stannard: has joined #ruby
[21:40:30] tomphp: has joined #ruby
[21:46:22] ivanskie: has joined #ruby
[21:46:31] adam|: mallu: I have no idea if this will work, but you might want to do something like this: https://gist.github.com/adam12/722fae4b3dc4112cb8a6
[21:46:44] n008f4g_: has joined #ruby
[21:47:43] bjpenn: has joined #ruby
[21:48:50] mallu: adam|: thank you
[21:48:53] adam|: mallu: That said, you should likely have a class level method that fetches the snapshots and then maps them into Snapshot objects. During that initialization you could setup the description.
[21:50:35] achamian: has joined #ruby
[21:51:19] Rodya_: has joined #ruby
[21:51:54] Cohedrin: has joined #ruby
[21:54:51] A124: has joined #ruby
[21:56:26] ensyde_: has joined #ruby
[21:56:42] skade: has joined #ruby
[21:58:07] blandflakes: has joined #ruby
[21:58:41] poerror: has joined #ruby
[21:59:56] nibbo: has joined #ruby
[22:03:06] mostlybadfly: has joined #ruby
[22:05:00] tristanp: has joined #ruby
[22:07:26] dikaio: has joined #ruby
[22:07:30] fullofca_: has joined #ruby
[22:09:24] Spami: has joined #ruby
[22:10:21] adgtl: has joined #ruby
[22:12:11] blackmesa: has joined #ruby
[22:13:03] ecksit: has joined #ruby
[22:13:21] uglybandersnatch: has joined #ruby
[22:17:45] bjpenn_: has joined #ruby
[22:17:58] sepp2k: has joined #ruby
[22:19:26] last_staff1: has joined #ruby
[22:19:26] Tempesta_: has joined #ruby
[22:20:07] LoneHermit: has joined #ruby
[22:20:25] bronson: has joined #ruby
[22:20:53] crowell: has joined #ruby
[22:21:22] Puffball: has joined #ruby
[22:21:45] s00pcan: has joined #ruby
[22:23:28] Azure: has joined #ruby
[22:24:02] nettoweb: has joined #ruby
[22:24:18] htmldrum: has joined #ruby
[22:25:40] pawnbox: has joined #ruby
[22:25:55] _djbkd: has joined #ruby
[22:29:49] tristanp: has joined #ruby
[22:33:22] snowy: has joined #ruby
[22:33:27] marr: has joined #ruby
[22:33:41] tvw: has joined #ruby
[22:33:45] crystal77: has joined #ruby
[22:36:05] skydiver_: has joined #ruby
[22:37:01] devgiant: has joined #ruby
[22:37:31] terlar: has joined #ruby
[22:39:49] tristanp: has joined #ruby
[22:41:23] zenlot6: has joined #ruby
[22:41:30] terlar: has joined #ruby
[22:42:05] RegulationD: has joined #ruby
[22:42:23] jenrzzz: has joined #ruby
[22:44:03] Macaveli: has joined #ruby
[22:46:51] toretore: has joined #ruby
[22:48:28] robbyoconnor: has joined #ruby
[22:48:38] robbyoconnor: has joined #ruby
[22:54:32] quazimodo: has joined #ruby
[22:55:43] pawnbox: has joined #ruby
[22:56:23] Spami: has joined #ruby
[22:56:31] nando293921: has joined #ruby
[22:56:54] pabs: has joined #ruby
[23:00:54] B4daBing73: has joined #ruby
[23:03:24] Spami: has joined #ruby
[23:05:06] moos3: has joined #ruby
[23:05:58] mdw: has joined #ruby
[23:07:57] bry4n_: has joined #ruby
[23:08:16] Rodya_: has joined #ruby
[23:10:37] al2o3-cr1: has joined #ruby
[23:12:31] nando293921: has joined #ruby
[23:12:32] bricker: has joined #ruby
[23:12:42] al2o3-cr1: has joined #ruby
[23:13:12] vikas027: has joined #ruby
[23:13:46] chouhoulis: has joined #ruby
[23:16:44] jolts: has joined #ruby
[23:16:51] Synthead: has joined #ruby
[23:17:17] duckpuppy: has joined #ruby
[23:20:07] moeabdol2: has joined #ruby
[23:20:22] Authenticator: has joined #ruby
[23:21:09] fullofcaffeine: has joined #ruby
[23:21:22] Jet4Fire: has joined #ruby
[23:22:53] jbrhbr: has joined #ruby
[23:23:41] terlar: has joined #ruby
[23:24:00] kam270: has joined #ruby
[23:26:59] al2o3-cr1: has joined #ruby
[23:27:50] Tempesta: has joined #ruby
[23:27:54] chouhoulis: has joined #ruby
[23:31:31] ivanskie: has joined #ruby
[23:32:10] matp: has joined #ruby
[23:33:54] Rubie: has joined #ruby
[23:36:19] poerror: has joined #ruby
[23:36:45] hinbody: has joined #ruby
[23:39:56] Eaven: has joined #ruby
[23:42:21] pizzaops: Silly question maybe - RubyMine, when linting my code, is telling me that using Class variables (@@) is bad style. I'm not really clear on why though. I have things I need to store, and use several times throughout the class, that never change in a instance of the class. I just need them in variables so that I don't have to manually write that code over and
[23:42:29] pizzaops: Am I supposed to wrap them in a method instead or something? Why?
[23:42:51] Rodya_: has joined #ruby
[23:44:23] Ox0dea: pizzaops: Why not a constant?
[23:45:05] pizzaops: Hmm. Sure, I could use a constant. But I don't entirely get what's *wrong* with class variables, still.
[23:46:28] davee_: has joined #ruby
[23:47:30] mistermocha: has joined #ruby
[23:48:25] Ox0dea: pizzaops: https://eval.in/535860
[23:48:41] Ox0dea: I think that's surprising, and it's got pretty sharp teeth.
[23:49:07] Ox0dea: Class variables are usually "fine" if you don't intend to mess with them any, but then why not use a constant?
[23:49:16] jbrhbr: has joined #ruby
[23:50:52] pizzaops: Ox0dea: the behavior in your example makes perfect sense to me...isn't one of the main points of inheritance that you can also override parts the parent?
[23:51:21] Ox0dea: pizzaops: I would expect C and D to be able to have their own versions of @@v there.
[23:51:27] pizzaops: i misrea da bit
[23:52:15] Ox0dea: Honestly, Ruby gives us the power to look at everything in the system as globally mutable, but some constructs make it a little harder to do, and there's surely some value in that.
[23:53:32] Ox0dea: Class variables are not one of those constructs. :P
[23:55:20] tristanp: has joined #ruby
[23:56:47] pizzaops: Yeah that's a fair point.
[23:57:23] weemsledeux: has joined #ruby