« Back to channel list

#ruby - 01 July 2016

« Back 1 day Forward 1 day »
[00:03:35] al2o3-cr: and i thought i talked nonsense
[00:03:35] crystal77: has joined #ruby
[00:07:29] jhack: has joined #ruby
[00:08:23] al2o3-cr: it'd prolly warrant a hack, just to justify shit
[00:10:37] ElFerna: has joined #ruby
[00:10:37] xall: has joined #ruby
[00:16:59] r_rios_: has joined #ruby
[00:17:58] GodFather: has joined #ruby
[00:23:11] ur5us: has joined #ruby
[00:27:19] freerobby: has joined #ruby
[00:30:21] GodFather: has joined #ruby
[00:30:35] pontiki: has joined #ruby
[00:31:40] dc4: has joined #ruby
[00:33:13] solocshaw: has joined #ruby
[00:34:44] GodFather: has joined #ruby
[00:34:51] mtkd: has joined #ruby
[00:37:39] GodFather: has joined #ruby
[00:39:32] shakes: has joined #ruby
[00:39:37] agentmeerkat: has joined #ruby
[00:39:43] jenrzzz: has joined #ruby
[00:40:09] nankyokusei: has joined #ruby
[00:45:35] karapetyan: could you help me understand problem with recursive function?
[00:45:36] ledestin: has joined #ruby
[00:46:30] charliesome: has joined #ruby
[00:48:04] GodFather: has joined #ruby
[00:48:27] eichenwald: has joined #ruby
[00:49:01] shevy: put the code on a pastie?
[00:49:55] karapetyan: https://repl.it/C7ob
[00:50:19] karapetyan: puts shows correct value. but why 4th string return nil?
[00:51:09] Mon_Ouie: has joined #ruby
[00:51:21] karapetyan: oh, actually i don't need increment on 6.th line
[00:51:33] harfangk: has joined #ruby
[00:53:03] swills: has joined #ruby
[00:53:16] aaeron: has joined #ruby
[00:57:40] jhack: has joined #ruby
[01:00:38] blackmes1: has joined #ruby
[01:00:40] nadir: has joined #ruby
[01:01:52] LoneHerm_: has joined #ruby
[01:02:05] ekinmur: has joined #ruby
[01:03:02] ThatsNotJack: has joined #ruby
[01:10:56] GodFather: has joined #ruby
[01:11:45] hahuang61: has joined #ruby
[01:12:13] pilne: has left #ruby: ("Leaving!")
[01:15:03] whathapp_: has joined #ruby
[01:15:56] whathappens: has joined #ruby
[01:16:41] daniel: has joined #ruby
[01:16:52] shevy: I am not sure what you want to do
[01:16:56] shevy: can you do it simpler
[01:17:01] shevy: input -> desired output
[01:17:06] dennisvennink: has joined #ruby
[01:18:34] neo_: has joined #ruby
[01:19:19] neo_: has joined #ruby
[01:22:53] gato: has joined #ruby
[01:24:01] LuckyABA: has joined #ruby
[01:25:49] rkazak: has joined #ruby
[01:25:51] solocshaw: has joined #ruby
[01:26:37] agentmeerkat: has joined #ruby
[01:28:14] rapha: good morning
[01:28:42] rapha: (well at least here it's 4 in the morning and the neighbours are fighting too loudly for me to be able to sleep)
[01:28:54] rapha: and since it's also the time for cronjobs to run...
[01:30:30] rapha: i'm trying to usw a couple of rake tasks with cronic (http://habilis.net/cronic/) but as stuff like "Loading application" is written to STDERR, an email still gets sent. Is there any way to have it output things to stdout instead?"
[01:31:46] adam12: cronic command 2>&1
[01:32:02] Xiti: has joined #ruby
[01:35:17] FastJack: has joined #ruby
[01:36:45] dennisvennink: has joined #ruby
[01:37:00] amcoder: has joined #ruby
[01:37:00] Jello_Raptor: has joined #ruby
[01:37:00] cb-: has joined #ruby
[01:37:00] wnd: has joined #ruby
[01:37:00] khelair: has joined #ruby
[01:37:00] DEac-: has joined #ruby
[01:37:00] JeanCarloMachado: has joined #ruby
[01:37:00] KillerFox: has joined #ruby
[01:37:00] lucas: has joined #ruby
[01:37:00] DanKnox_: has joined #ruby
[01:37:00] thoraxe: has joined #ruby
[01:37:00] joast: has joined #ruby
[01:37:00] callumacrae: has joined #ruby
[01:37:00] Antiarc: has joined #ruby
[01:37:01] kith: has joined #ruby
[01:37:01] webhat: has joined #ruby
[01:37:01] tw1sted: has joined #ruby
[01:37:01] hypnosb: has joined #ruby
[01:37:01] forgot: has joined #ruby
[01:37:01] mame3: has joined #ruby
[01:37:45] `tim`: has joined #ruby
[01:39:01] JesseH: has joined #ruby
[01:40:37] harfangk: has joined #ruby
[01:41:13] ulluh: has joined #ruby
[01:41:45] callumacrae: has joined #ruby
[01:45:24] ur5us: has joined #ruby
[01:47:22] d0nn1e: has joined #ruby
[01:47:43] AndrewIsHere: has joined #ruby
[01:50:33] solocshaw: has joined #ruby
[01:55:00] ekinmur: has joined #ruby
[01:55:05] jaguarmagenta: has joined #ruby
[01:55:54] mattwashere: has joined #ruby
[01:57:31] weaksauce: has joined #ruby
[01:57:48] rbennacer: has joined #ruby
[01:58:50] cd-rum: has joined #ruby
[01:59:53] neo_: has joined #ruby
[02:01:23] blackmes1: has joined #ruby
[02:02:23] Robtop__: has joined #ruby
[02:02:23] ramfjord: has joined #ruby
[02:05:19] solocshaw: has joined #ruby
[02:12:51] roamingdog: has joined #ruby
[02:13:03] chouhoulis: has joined #ruby
[02:15:09] Axsuul: has joined #ruby
[02:15:39] Yzguy: has joined #ruby
[02:16:18] whathappens: has joined #ruby
[02:18:48] User458764: has joined #ruby
[02:22:44] ramfjord: has joined #ruby
[02:24:27] kriskropd: has joined #ruby
[02:25:57] macsteps: has joined #ruby
[02:38:30] chouhoulis: has joined #ruby
[02:39:50] banjara: has joined #ruby
[02:41:05] nankyokusei: has joined #ruby
[02:42:11] banjara1: has joined #ruby
[02:43:05] LoneHermit: has joined #ruby
[02:43:08] arescorpio: has joined #ruby
[02:48:32] chouhoulis: has joined #ruby
[02:52:02] wsewolod: has joined #ruby
[02:52:46] tummy: has joined #ruby
[02:53:48] pwnd_nsfw`: has joined #ruby
[02:59:18] neo_: has joined #ruby
[03:02:26] blackmes1: has joined #ruby
[03:05:29] Rodya_: has joined #ruby
[03:07:42] Tempesta_: has joined #ruby
[03:07:54] cd-rum: has joined #ruby
[03:08:56] Cyrus: has joined #ruby
[03:09:15] `tim`: has joined #ruby
[03:10:25] chartractegg: has joined #ruby
[03:12:30] hahuang61: has joined #ruby
[03:14:45] Tempesta: has joined #ruby
[03:16:23] charliesome: has joined #ruby
[03:18:35] rbennacer: has joined #ruby
[03:19:16] braincrash: has joined #ruby
[03:22:58] gix: has joined #ruby
[03:23:37] dennisvennink: has joined #ruby
[03:26:27] mistermocha: has joined #ruby
[03:30:12] unshadow_: has joined #ruby
[03:30:56] karapetyan: has joined #ruby
[03:34:10] tummy: has joined #ruby
[03:44:56] nettoweb: has joined #ruby
[03:45:38] AndrewIsHere: has joined #ruby
[03:48:34] Devalo: has joined #ruby
[03:50:42] Yzguy: has joined #ruby
[03:55:17] ReK2: has joined #ruby
[03:55:50] jaguarmagenta: has joined #ruby
[03:59:35] skweek: has joined #ruby
[03:59:36] LoneHermit: has joined #ruby
[04:03:40] blackmes1: has joined #ruby
[04:07:33] ramfjord: has joined #ruby
[04:09:00] Rodya_: has joined #ruby
[04:09:43] kareeoleez: has joined #ruby
[04:12:12] mistermocha: has joined #ruby
[04:12:12] arnonhongklay: has joined #ruby
[04:13:11] jaguarmagenta: has joined #ruby
[04:13:14] alfiemax: has joined #ruby
[04:13:28] naftilos76: has joined #ruby
[04:14:38] naftilos76: has joined #ruby
[04:18:42] ramfjord: has joined #ruby
[04:18:43] minimalism: has joined #ruby
[04:19:08] duncannz: has joined #ruby
[04:19:47] duncannz: has joined #ruby
[04:24:59] leea: has joined #ruby
[04:25:40] rkazak: has joined #ruby
[04:26:05] pawnbox: has joined #ruby
[04:28:30] rikai: has joined #ruby
[04:28:45] roamingdog: has joined #ruby
[04:31:23] ICantCook: has joined #ruby
[04:31:28] roamingdog: has joined #ruby
[04:32:39] brg: has joined #ruby
[04:33:02] frustrum: has joined #ruby
[04:33:42] neo_: has joined #ruby
[04:34:46] rikai: has joined #ruby
[04:34:47] ICantCook: has joined #ruby
[04:36:58] neo_: has joined #ruby
[04:37:09] Devalo: has joined #ruby
[04:37:41] giz|work|2: has joined #ruby
[04:38:35] phrozen77: has joined #ruby
[04:41:10] cd-rum: has joined #ruby
[04:41:55] nankyokusei: has joined #ruby
[04:42:48] hahuang61: has joined #ruby
[04:43:54] mrodrigues: has joined #ruby
[04:46:56] ulluh: has joined #ruby
[04:48:20] queequeg2: has joined #ruby
[04:50:50] floatingpoint: has joined #ruby
[04:51:59] mrodrigues: has joined #ruby
[04:52:29] Axsuul: has joined #ruby
[04:54:42] Axsuul: has joined #ruby
[04:55:20] neo_: has joined #ruby
[04:57:21] jackjackdripper: has joined #ruby
[05:00:39] Skuzzy: has joined #ruby
[05:00:57] Skuzzy: Hey fellas how do I write an if statement in ruby?
[05:01:16] alfiemax: Skuzzy, heard of google ??
[05:01:36] Skuzzy: wow alfiemax please review the code of conduct before spewing your garbage here
[05:02:34] Skuzzy: how do I wriote an if statemnt?
[05:02:57] harfangk: has joined #ruby
[05:03:05] cd-rum: has joined #ruby
[05:03:16] SilverKey: has joined #ruby
[05:03:33] alfiemax: Skuzzy, did you?
[05:03:44] Skuzzy: I did, did you?
[05:03:56] alfiemax: so did you google?
[05:04:00] tummy: has joined #ruby
[05:04:01] GinoManWorks: has joined #ruby
[05:04:02] alfiemax: did you check rubydocs?
[05:04:12] Skuzzy: You are so unwelcoming to beginners
[05:04:13] alfiemax: what did you do that you finally had to come here
[05:04:18] alfiemax: nop i'm not
[05:04:19] Skuzzy: How am I supposed to learn in an environment like this
[05:04:38] blackmes1: has joined #ruby
[05:04:42] Nilium: He's also.. trying... to troll #go-nuts
[05:04:51] Nilium: So, just ignore them. Or ban them.
[05:04:57] alfiemax: i'm unwelcome to all who don't put in any effort to even do a google search and expect others to spoon feed you
[05:05:06] neo_: has joined #ruby
[05:05:25] Skuzzy: #go-nuts are a bunch of pansies, they would have answered a question like this, good onto the ruby folks for calling me on my shit
[05:06:11] dminuoso: has joined #ruby
[05:07:20] arnonhongklay: has joined #ruby
[05:08:17] alfiemax: Skuzzy, this is all i can do for any lazy bunch that comes in here and asks questions like this
[05:08:18] alfiemax: http://lmgtfy.com/?q=how+do+I+write+an+if+statement+in+ruby
[05:08:32] Nilium: alfiemax: No, they're a troll, it's OK.
[05:09:39] cd-rum_: has joined #ruby
[05:10:43] JohanTux: has joined #ruby
[05:11:40] Mon_Ouie: has joined #ruby
[05:13:16] ramfjord: has joined #ruby
[05:15:09] Rodya_: has joined #ruby
[05:16:55] elifoster: has joined #ruby
[05:17:02] rkazak: has joined #ruby
[05:19:26] shevy: he has too much time available
[05:19:50] Rodya_: has joined #ruby
[05:21:42] etehtsea: has joined #ruby
[05:22:20] solocshaw: has joined #ruby
[05:29:06] etehtsea: has joined #ruby
[05:31:07] GinoManWorks_: has joined #ruby
[05:31:49] davedev24: has joined #ruby
[05:32:05] LoneHerm_: has joined #ruby
[05:32:32] craigp: has joined #ruby
[05:32:50] n1x-nz: has joined #ruby
[05:34:12] duoi: has joined #ruby
[05:36:16] last_staff: has joined #ruby
[05:40:31] sauvin: has joined #ruby
[05:41:22] hadronzoo: has joined #ruby
[05:47:19] GinoManWorks: has joined #ruby
[05:47:50] jenrzzz: has joined #ruby
[05:47:51] jenrzzz: has joined #ruby
[05:48:20] aufi_: has joined #ruby
[05:49:44] kareeoleez: has joined #ruby
[05:51:04] GinoManWorks_: has joined #ruby
[05:51:47] dminuoso: has joined #ruby
[05:52:35] emiltin: has joined #ruby
[05:52:42] raeoks: has joined #ruby
[05:54:19] etehtsea: has joined #ruby
[05:55:51] charliesome: has joined #ruby
[05:56:55] Hyuk: has joined #ruby
[05:57:33] raeoks: has joined #ruby
[05:58:23] dc4: has joined #ruby
[05:58:49] User458764: has joined #ruby
[05:58:55] Madplatypus: has joined #ruby
[05:58:59] firstdayonthejob: has joined #ruby
[05:59:26] User458764: has joined #ruby
[06:02:48] nankyokusei: has joined #ruby
[06:05:26] blackmes1: has joined #ruby
[06:06:00] aaeron: has joined #ruby
[06:06:21] aaeron_: has joined #ruby
[06:11:09] Axsuul: has joined #ruby
[06:14:22] burgestrand: has joined #ruby
[06:15:56] aganov: has joined #ruby
[06:17:50] erlend: has joined #ruby
[06:18:05] jackjackdripper1: has joined #ruby
[06:19:43] xall: has joined #ruby
[06:21:20] conta: has joined #ruby
[06:22:04] nankyokusei: has joined #ruby
[06:22:23] nankyokusei: has joined #ruby
[06:22:40] User458764: has joined #ruby
[06:22:53] ur5us: has joined #ruby
[06:24:09] pawnbox: has joined #ruby
[06:24:37] xue: has joined #ruby
[06:27:20] dennisvennink: has joined #ruby
[06:27:29] mtkd: has joined #ruby
[06:27:43] ryez: has joined #ruby
[06:29:55] voodoofish4302: has joined #ruby
[06:31:12] djbkd: has joined #ruby
[06:31:52] dminuoso: has joined #ruby
[06:32:53] etehtsea: has joined #ruby
[06:32:56] dionysus69: has joined #ruby
[06:34:09] harfangk: has joined #ruby
[06:36:55] tvw: has joined #ruby
[06:39:40] blaxter: has joined #ruby
[06:40:10] postmodern: has joined #ruby
[06:40:16] emilkarl: has joined #ruby
[06:43:16] codecop: has joined #ruby
[06:43:35] hahuang61: has joined #ruby
[06:43:54] unshadow: has joined #ruby
[06:45:46] User458764: has joined #ruby
[06:46:33] vondruch: has joined #ruby
[06:47:22] Vile`: has joined #ruby
[06:48:20] jenrzzz: has joined #ruby
[06:48:20] jenrzzz: has joined #ruby
[06:49:04] DoubleMalt: has joined #ruby
[06:50:04] skweek: has joined #ruby
[06:50:50] _tpavel: has joined #ruby
[06:50:52] djbkd: has joined #ruby
[06:54:18] Coldblackice: has joined #ruby
[06:55:31] roamingdog: has joined #ruby
[06:58:48] anisha: has joined #ruby
[06:59:40] skweek: has joined #ruby
[07:00:36] cd-rum: has joined #ruby
[07:02:51] voodoofish4301: has joined #ruby
[07:02:51] dminuoso: has joined #ruby
[07:03:25] hahuang61: has joined #ruby
[07:06:08] pLaToOn: has joined #ruby
[07:06:32] agentmeerkat: has joined #ruby
[07:07:31] blackmes1: has joined #ruby
[07:07:37] Wildfyr: has joined #ruby
[07:08:30] shaman42: has joined #ruby
[07:08:36] Nahra: has joined #ruby
[07:08:45] skade: has joined #ruby
[07:10:06] Abonec: has joined #ruby
[07:11:42] nadir: has joined #ruby
[07:12:23] cd-rum_: has joined #ruby
[07:15:16] yfeldblum: has joined #ruby
[07:15:46] Xeago_: has joined #ruby
[07:15:46] mark_66: has joined #ruby
[07:16:54] zenspider: has joined #ruby
[07:17:18] zenspider: has joined #ruby
[07:20:14] craigp: has joined #ruby
[07:20:18] giz|work|2: has joined #ruby
[07:23:04] TheWhip: has joined #ruby
[07:23:41] solocshaw: has joined #ruby
[07:23:46] araujo_: has joined #ruby
[07:24:48] agit0: has joined #ruby
[07:26:16] emiltin: has joined #ruby
[07:27:52] Guest17731: has joined #ruby
[07:28:08] bkxd: has joined #ruby
[07:28:50] Silthias: has joined #ruby
[07:29:05] ciampix: has joined #ruby
[07:30:32] jolamb: has joined #ruby
[07:31:50] solars: has joined #ruby
[07:33:20] Dimik: has joined #ruby
[07:34:32] biberu: has joined #ruby
[07:39:10] jaguarmagenta: has joined #ruby
[07:39:19] dennisvennink: has joined #ruby
[07:42:35] jenrzzz: has joined #ruby
[07:46:52] AndrewIsHere: has joined #ruby
[07:48:22] multi_io: has joined #ruby
[07:48:54] rann: has joined #ruby
[07:49:52] ponga: has joined #ruby
[07:53:52] yeticry: has joined #ruby
[07:55:16] alfiemax: maybe someone here can help me with this
[07:55:18] alfiemax: https://gist.github.com/alfie-max/d96a1d93ad45f0ddc87563de11ac7c23
[07:55:59] roamingdog: has joined #ruby
[07:56:11] ur5us: has joined #ruby
[07:56:49] unshadow: has joined #ruby
[07:57:11] Carella: has joined #ruby
[07:57:35] Hanmac: alfiemax: what kind of class is e? Time or DateTime?
[07:58:45] Hanmac: hm an idea would be to port it to time first ... (i noticed that Time and DateTime has different outputs)
[08:00:22] alfiemax: hmm, let me try
[08:01:10] giz|work|2: has joined #ruby
[08:01:43] alfiemax: tried that,
[08:01:49] alfiemax: updateed the gist with the output
[08:02:31] jgt: has joined #ruby
[08:06:18] wuyin: has joined #ruby
[08:07:25] emilkarl: has joined #ruby
[08:08:11] joonty: has joined #ruby
[08:08:18] blackmes1: has joined #ruby
[08:08:35] rkazak: has joined #ruby
[08:09:14] n1x-nz: has joined #ruby
[08:10:09] Hanmac: alfiemax: it seems json has no love for Time/Date/DateTime objects and does simply use their to_s method :/
[08:10:12] zeroDi: has joined #ruby
[08:11:05] conta: has joined #ruby
[08:11:10] mikecmpbll: has joined #ruby
[08:11:46] colegatron: has joined #ruby
[08:12:48] ferr1: has joined #ruby
[08:13:37] j416: alfiemax: what is wrong with the first variant?
[08:16:34] dennisvennink: has joined #ruby
[08:16:47] snowy: has joined #ruby
[08:16:50] Couch: has joined #ruby
[08:18:47] maloik: has joined #ruby
[08:20:44] giz|work|2: has joined #ruby
[08:26:12] etehtsea: has joined #ruby
[08:26:30] pawnbox: has joined #ruby
[08:27:34] TheWhip: has joined #ruby
[08:28:30] skweek: has joined #ruby
[08:28:34] burgestrand: has joined #ruby
[08:31:19] marr: has joined #ruby
[08:31:49] ciampix: has joined #ruby
[08:33:50] dionysus69: has joined #ruby
[08:34:47] raeoks: has joined #ruby
[08:35:35] tomphp: has joined #ruby
[08:36:15] arnonhongklay: has joined #ruby
[08:37:11] blackmes1: has joined #ruby
[08:40:12] etehtsea: has joined #ruby
[08:40:55] chipotle: has joined #ruby
[08:41:30] TomyWork: has joined #ruby
[08:41:53] conta: has joined #ruby
[08:43:39] ahmetkapikiran: has joined #ruby
[08:44:11] jenrzzz: has joined #ruby
[08:45:54] craigp: has joined #ruby
[08:48:37] ulluh: has joined #ruby
[08:48:49] sdothum: has joined #ruby
[08:50:15] archio: has joined #ruby
[08:51:41] lxsameer: has joined #ruby
[08:51:55] yeticry: has joined #ruby
[08:53:23] AndrewIsHere: has joined #ruby
[08:54:05] Xeago_: has joined #ruby
[08:56:40] yitsushi: has joined #ruby
[08:58:30] psmmr: has joined #ruby
[09:02:41] Hyuk: has joined #ruby
[09:05:27] GodFather: has joined #ruby
[09:05:46] giz|work|2: has joined #ruby
[09:06:24] yitsushi: has joined #ruby
[09:07:10] etehtsea: has joined #ruby
[09:07:41] Xeago_: has joined #ruby
[09:08:51] agentmeerkat: has joined #ruby
[09:09:20] mdw: has joined #ruby
[09:10:57] conta1: has joined #ruby
[09:11:28] mdw7: has joined #ruby
[09:12:23] mdw7: has joined #ruby
[09:13:32] dangerousdave: has joined #ruby
[09:17:29] conta: has joined #ruby
[09:19:02] ahmetkapikiran: has joined #ruby
[09:19:14] charliesome: has joined #ruby
[09:19:39] User458764: has joined #ruby
[09:22:27] tvw: has joined #ruby
[09:23:06] conta: has joined #ruby
[09:24:28] skade: has joined #ruby
[09:26:44] jenrzzz: has joined #ruby
[09:28:27] Silthias: has joined #ruby
[09:30:02] cd-rum: has joined #ruby
[09:32:06] xcesariox: has joined #ruby
[09:36:50] alfiemax: has joined #ruby
[09:39:55] jaguarmagenta: has joined #ruby
[09:39:59] conta1: has joined #ruby
[09:41:29] charliesome: has joined #ruby
[09:47:01] Mon_Ouie: has joined #ruby
[09:48:24] sepp2k: has joined #ruby
[09:50:07] jokke: w...t...f...
[09:50:23] jokke: range = "70:B3:D5:FA:40:00".."70:B3:D5:FA:4F:FF"
[09:50:32] jokke: range.include? '70:B3:D5:FA:40:EA'
[09:50:45] jokke: range.begin <= '70:B3:D5:FA:40:EA' && range.end >= '70:B3:D5:FA:40:EA'
[09:52:17] siaw23: has joined #ruby
[09:53:09] Mon_Ouie: Use Range#cover?
[09:54:16] Mon_Ouie: Range#include? works by iterating, not by simply comparing the beginning and the end
[09:54:25] Mon_Ouie: &ri Range#cover?
[09:54:25] `derpy: http://ruby-doc.org/core-2.3.1/Range.html#method-i-cover-3F
[09:54:27] jokke: that's super inefficient
[09:54:31] siaw23: i have a module like this in another file in another folder: https://gist.github.com/siaw23/599fee7f56c59c6cd5af7d9b43829634 how do i use the “open_recent_notice” in another file in another folder? do i require the file with the method with it’s path and also “include” something?
[09:54:33] jokke: good to know
[09:54:55] Mon_Ouie: I believe it's only special cased for Numeric
[09:57:54] jaruga___: has joined #ruby
[09:58:25] User458764: has joined #ruby
[09:59:36] ljarvis: siaw23: require the file and then include the module, then you'll be able to use the method
[09:59:54] siaw23: yup did that and all’s fine. thanks :)
[10:08:07] nhhc: has joined #ruby
[10:08:29] platzhirsch: has joined #ruby
[10:08:38] pandaant: has joined #ruby
[10:09:14] mdw: has joined #ruby
[10:09:59] agentmeerkat: has joined #ruby
[10:10:59] haxrbyte: has joined #ruby
[10:11:58] User458764: has joined #ruby
[10:14:21] jgt: has joined #ruby
[10:17:48] Wildfyr: Uh, what is wrong with my program
[10:17:49] Wildfyr: http://paste.ofcode.org/323GKsG8KHzPZDS3QpkAHJX
[10:18:13] dminuoso: Wildfyr: I don't know.
[10:18:20] Wildfyr: It is a RPN calculator, and all of the operators except division work
[10:18:43] dminuoso: Wildfyr: Can you be more specific than "it does not work" ?
[10:19:00] latemus: has joined #ruby
[10:19:23] Wildfyr: from my understanding it should output 2.5 but gives out a 0.4
[10:20:48] latemus: has left #ruby: ()
[10:20:54] ccooke: Wildfyr: because the order of operations matters for division when it doesn't for addition or multiplication, and you have the operands the wrong way round everywhere
[10:21:09] ccooke: 5 / 2 would be 2.5, as expected. 2 / 5 is 0.4
[10:21:15] DenSchub: has joined #ruby
[10:21:28] Wildfyr: ccooke: oh ...
[10:21:33] Wildfyr: didn't notice ir
[10:22:01] ccooke: (also, consider replacing the repeated if/end blocks with a single case/when/end
[10:22:41] Wildfyr: ccooke: okay
[10:23:04] dminuoso: Wildfyr: Another minor thing, if you use "rescue" inside a method without a begin, indent the rescue on the same column as "def" and its "end"
[10:23:12] dminuoso: Looks much nicer. :)
[10:23:30] yfeldblum: has joined #ruby
[10:23:39] Mon_Ouie: And instead of using shift and insert(0, x) (a.k.a unshift), use push and pop to implement a stack --- inserting/removing at the beginning of an array is going to be more expensive than doing so at the end of the array
[10:23:47] anisha_: has joined #ruby
[10:24:41] Wildfyr: Mon_Ouie: okay
[10:25:59] Wildfyr: ccooke: noob question, how would i get the correct order
[10:26:43] dminuoso: Wildfyr: a / b - change the order of the operands.
[10:27:22] ccooke: Wildfyr: you're using shifts to pull the operands off the stack. If you do those into variables before you process the operand, you can control the order
[10:27:31] Wildfyr: ccooke: okay
[10:27:44] ccooke: as it is, you're always using the top of the stack - the most recent number - first
[10:27:55] chip_: has joined #ruby
[10:28:29] ccooke: so if the stack is [2 3 + 2 /], then the + will see [2 3] as the stack, pull off the 3 first, then the 2, and run 3 + 2.
[10:28:58] ccooke: the / sees a stack like [5 2], pulls off the 2 first, then pulls off the 5
[10:29:37] Wildfyr: ccooke: thanks for the explanation
[10:35:09] toretore: has joined #ruby
[10:35:14] karapetyan: has joined #ruby
[10:36:56] dminuoso: Anyone here speak Japanese? Got a ruby related paragraph that I would like an accurate translation for.
[10:37:57] dennisvennink: has joined #ruby
[10:38:50] ramfjord: has joined #ruby
[10:39:21] allcentury: has joined #ruby
[10:41:00] yitsushi: has joined #ruby
[10:41:40] complex5852: has joined #ruby
[10:43:14] User458764: has joined #ruby
[10:43:54] User458764: has joined #ruby
[10:44:12] complex5852: Got a question about passing a hash to a method (kinda new to language). So let's say I have two strings "a" and "b" and I wanna pass it as foo(a: b), I know there is a .to_sym function but how would you make this as elegant as possible? I tried foo("#{a}: #{b}") but it didn't seem to like that.
[10:45:15] GodFather: has joined #ruby
[10:45:16] dminuoso: complex5852: What prevents you from passing them as foo(a: b) ?
[10:45:30] complex5852: They are in string form natively and a and b are variable
[10:45:35] complex5852: a wont always be the same
[10:46:22] complex5852: (to give you some context, this is in rails where I'm reading a and b from controller params)
[10:46:50] dminuoso: complex5852: { a.to_sym => b }
[10:47:05] dminuoso: Is plain and I do not think it can get more elegant than that.
[10:47:32] complex5852: Okay, ill go with that, thanks!
[10:47:49] dminuoso: complex5852: There are some other trickery functions especially in Rails, but they are simply oversized for what you are describing.
[10:49:37] charliesome: has joined #ruby
[10:50:26] the_drow: has joined #ruby
[10:52:33] mikecmpb_: has joined #ruby
[10:55:33] troulouliou_div2: has joined #ruby
[10:56:45] roamingdog: has joined #ruby
[10:56:50] jgt1: has joined #ruby
[11:01:44] agit0: has joined #ruby
[11:02:16] gregf_: >> class Foo; def bar(**kwargs); p kwargs;end;end; Foo.new.bar(a: 100); # complex5852 is this what you're trying?
[11:02:17] ruby[bot]: gregf_: # => {:a=>100} ...check link for more (https://eval.in/599021)
[11:03:02] complex5852: Well as part of a method but yea basically
[11:03:56] gregf_: >> class Foo; def bar **kwargs; p kwargs;end;end; a = "foo"; Foo.new.bar(a.to_sym => 100); #oh, prolly this or else
[11:03:57] ruby[bot]: gregf_: # => {:foo=>100} ...check link for more (https://eval.in/599026)
[11:05:41] Macaveli: has joined #ruby
[11:05:48] AnoHito: has joined #ruby
[11:06:41] DenSchub: has joined #ruby
[11:08:33] Vingador: has joined #ruby
[11:09:38] senayar: has joined #ruby
[11:09:38] senayar: has joined #ruby
[11:10:17] binaryplease1: has joined #ruby
[11:12:11] kobain: has joined #ruby
[11:13:28] dminuoso: has joined #ruby
[11:14:59] jgt1: has joined #ruby
[11:15:08] DenSchub: has joined #ruby
[11:17:38] Piredez: has joined #ruby
[11:17:52] dionysus69: has joined #ruby
[11:19:21] emilkarl: has joined #ruby
[11:20:43] johnmilton: has joined #ruby
[11:21:21] Piredez: has joined #ruby
[11:25:49] soulisson: has joined #ruby
[11:26:06] soulisson: In ruby, can a library be on multiple files?
[11:26:54] solocshaw: has joined #ruby
[11:29:23] stoopidmunkey: has joined #ruby
[11:30:39] dminuoso: soulisson: It is usually a great idea to limit a file to a single module or class.
[11:31:03] ldnunes: has joined #ruby
[11:31:03] dminuoso: (You don't have to force this, but use this as a general pointer)
[11:31:31] alfiemax: has joined #ruby
[11:32:10] soulisson: dminuoso, ok, so if my library has multiple classes best to put each class in its own file?
[11:33:17] shevy: yesterday I had a strange thought
[11:33:34] shevy: I had an old directory actions/ with lots of individual .rb files
[11:33:41] freerobby: has joined #ruby
[11:33:46] ulluh: has joined #ruby
[11:33:52] shevy: all of these started with like "class Bla"
[11:34:23] shevy: in my rewrite, the toplevel was a module, and the name was different so I had to manually change all of it
[11:34:50] shevy: so then I was wondering... (a) what if we could write module and class agnostic code... and (b) designate the main namespace at a later point
[11:35:05] shevy: like container { }
[11:35:30] shevy: then designate the name and the type of the main container lateron
[11:35:58] giz|work|2: has joined #ruby
[11:36:56] Xeago_: has joined #ruby
[11:37:17] ahmetkapikiran: has joined #ruby
[11:38:30] dminuoso: has joined #ruby
[11:40:43] jaguarmagenta: has joined #ruby
[11:41:03] conta: has joined #ruby
[11:41:38] Xeago_: has joined #ruby
[11:43:27] hk238: has joined #ruby
[11:43:42] rodfersou: has joined #ruby
[11:45:34] blur3d: has joined #ruby
[11:47:22] Hanmac: has joined #ruby
[11:48:55] joonty: has joined #ruby
[11:50:45] ldnunes: has joined #ruby
[11:52:32] jrafanie: has joined #ruby
[11:53:05] nettoweb: has joined #ruby
[11:59:02] eatsfoobars: has joined #ruby
[12:00:07] eatsfoobars: has joined #ruby
[12:02:48] last_staff: has joined #ruby
[12:04:33] charliesome: has joined #ruby
[12:06:16] soulisson: In OOP, calling a method is the same as sending a message to the target object?
[12:06:22] yardenbar: has joined #ruby
[12:08:50] toretore: soulisson: basically, yes
[12:09:08] itguru: has joined #ruby
[12:09:12] soulisson: toretore, thanks
[12:11:08] agentmeerkat: has joined #ruby
[12:12:27] freerobby1: has joined #ruby
[12:13:37] User458764: has joined #ruby
[12:13:37] Vile`: has joined #ruby
[12:21:09] User458764: has joined #ruby
[12:22:20] tknz: has joined #ruby
[12:24:38] bmaland: has joined #ruby
[12:28:07] Xeago_: has joined #ruby
[12:28:58] fmcgeough: has joined #ruby
[12:31:01] giz|work|2: has joined #ruby
[12:32:51] Xeago_: has joined #ruby
[12:35:13] roamingdog: has joined #ruby
[12:35:27] craigp: has joined #ruby
[12:39:27] mikecmpbll: has joined #ruby
[12:39:34] ramfjord: has joined #ruby
[12:42:28] sergio_101: has joined #ruby
[12:42:31] ahmetkapikiran: has joined #ruby
[12:43:11] joonty: has joined #ruby
[12:43:24] SirOliver: has joined #ruby
[12:43:42] DenSchub: has joined #ruby
[12:46:03] allcentury: has joined #ruby
[12:46:07] chipotle: has joined #ruby
[12:50:18] Xeago_: has joined #ruby
[12:52:31] mark_66: has joined #ruby
[12:53:17] freerobby: has joined #ruby
[12:54:41] mdw: has joined #ruby
[12:55:32] Silthias: has joined #ruby
[12:58:23] minimalism: has joined #ruby
[12:58:38] ChiefAlexander: has joined #ruby
[12:59:06] mdw7: has joined #ruby
[12:59:15] aegis3121: has joined #ruby
[12:59:17] crystal77: has joined #ruby
[13:02:40] aupadhye: has joined #ruby
[13:03:21] dminuoso: has joined #ruby
[13:03:48] SirOliver: has joined #ruby
[13:03:54] mrodrigues: has joined #ruby
[13:05:23] mtkd: has joined #ruby
[13:07:32] malconis: has joined #ruby
[13:07:59] mdw: has joined #ruby
[13:08:37] malconis: has joined #ruby
[13:09:11] zapata: has joined #ruby
[13:09:44] giz|work: has joined #ruby
[13:10:51] swills: has joined #ruby
[13:12:08] c0mrad3: has joined #ruby
[13:12:22] agentmeerkat: has joined #ruby
[13:14:25] ekinmur: has joined #ruby
[13:15:20] marsjaninzmarsa: has joined #ruby
[13:15:24] kareeole_: has joined #ruby
[13:15:39] SirOliver: has joined #ruby
[13:16:04] `tim`: has joined #ruby
[13:17:06] ncthom91: has joined #ruby
[13:18:42] Xeago_: has joined #ruby
[13:20:32] agentmeerkat: has joined #ruby
[13:21:50] blackmes1: has joined #ruby
[13:22:00] Xeago_: has joined #ruby
[13:22:26] chouhoulis: has joined #ruby
[13:23:46] jgt1: has joined #ruby
[13:26:29] ChiefAlexander: has joined #ruby
[13:26:35] loocash: has joined #ruby
[13:29:57] psmmr: has joined #ruby
[13:32:38] chouhoulis: has joined #ruby
[13:32:42] davedev24: has joined #ruby
[13:36:18] soulisson: Do hashes store key value pairs?
[13:36:25] dminuoso: soulisson: Yes.
[13:36:53] soulisson: dminuoso, thanks
[13:39:36] SirOliver: has joined #ruby
[13:39:36] prestorium: has joined #ruby
[13:40:14] fujinuma: I've read "Well Grounded Rubyist" book what do you suggest next?
[13:40:25] fujinuma: also Rails 4 in Action
[13:41:24] fujinuma: my knowledge lacking at Database, Testing, Design Patterns
[13:41:27] jaguarmagenta: has joined #ruby
[13:41:42] deecross: has joined #ruby
[13:42:07] davedev24: has joined #ruby
[13:42:18] charliesome: has joined #ruby
[13:42:19] dminuoso: fujinuma: Eloquent Ruby is probably one of the better books out there.
[13:42:30] SirOliver: has joined #ruby
[13:43:54] fujinuma: dminuoso: I'm currently work on Ruby on Rails projects what's next suggestion?
[13:44:08] User458764: has joined #ruby
[13:44:15] dminuoso: fujinuma: Writing code.
[13:44:40] dminuoso: If those two books don't give you enough to work with Ruby, then nothing else will.
[13:44:53] Xeago_: has joined #ruby
[13:44:58] MrBusiness2: has joined #ruby
[13:45:05] blaxter: has joined #ruby
[13:46:36] ramfjord: has joined #ruby
[13:47:37] DaniG2k: has joined #ruby
[13:47:59] DaniG2k: jeez I just tried getting up and running with Sensu :S it's a massive pain
[13:48:58] aryaching: has joined #ruby
[13:50:20] shinnya: has joined #ruby
[13:51:18] mattwashere: has joined #ruby
[13:53:05] Silthias1: has joined #ruby
[13:53:39] TomyLobo: has joined #ruby
[13:54:45] dumdedum: has joined #ruby
[13:55:08] Xeago_: has joined #ruby
[13:55:22] chip_: has joined #ruby
[13:58:44] deecross: has joined #ruby
[13:59:20] tvw: has joined #ruby
[13:59:31] jaguarmagenta: has joined #ruby
[14:01:19] User458764: has joined #ruby
[14:03:18] JeremyM_: has joined #ruby
[14:04:02] deecross: has joined #ruby
[14:04:43] SirOliver: has joined #ruby
[14:05:35] GodFather: has joined #ruby
[14:07:25] ChiefAlexander: has joined #ruby
[14:08:33] tvon: has joined #ruby
[14:09:02] deecross: has left #ruby: ()
[14:09:43] arnonhon_: has joined #ruby
[14:12:46] SirOliver: has joined #ruby
[14:14:31] last_staff: has joined #ruby
[14:14:45] SirOliver: has joined #ruby
[14:15:07] xall: has joined #ruby
[14:18:12] rbennacer: has joined #ruby
[14:20:02] SirOliver: has joined #ruby
[14:22:21] dopamean_: has joined #ruby
[14:22:48] Robtop__: has joined #ruby
[14:23:43] crdpink: has joined #ruby
[14:23:45] Fridtjof: has joined #ruby
[14:24:03] deecross: has joined #ruby
[14:24:05] MrBusiness3: has joined #ruby
[14:25:15] SilverKey: has joined #ruby
[14:25:27] nando293921: has joined #ruby
[14:25:48] blackmes1: has joined #ruby
[14:25:51] Asher: has joined #ruby
[14:26:13] alfiemax: has joined #ruby
[14:26:23] dumdedum: has joined #ruby
[14:27:38] ulluh: has joined #ruby
[14:27:56] dminuoso: asm>> get :index, { term: 'foo' }, format: :json
[14:27:58] ruby[bot]: dminuoso: I have disassembled your code, the result is at https://eval.in/599187
[14:29:06] Es0teric: has joined #ruby
[14:29:18] matp: has joined #ruby
[14:30:35] ChiefAlexander: has joined #ruby
[14:31:11] floatingpoint: has joined #ruby
[14:31:47] lele: has joined #ruby
[14:33:22] TheWhip: has joined #ruby
[14:35:14] Xeago_: has joined #ruby
[14:36:27] SilverKey: has joined #ruby
[14:37:21] ciampix: has joined #ruby
[14:40:07] dminuoso: dminuoso> asm>> get :index, term: 'foo' , format: :json
[14:40:11] dminuoso: asm>> get :index, term: 'foo' , format: :json
[14:40:12] ruby[bot]: dminuoso: I have disassembled your code, the result is at https://eval.in/599196
[14:40:14] blackmes1: has joined #ruby
[14:43:41] DarthGandalf: has joined #ruby
[14:45:56] ybart: has joined #ruby
[14:46:11] ybart: When I do 'example'.hash, what hashing algorithm is actually used to create the 32 bit hash?
[14:47:07] dminuoso: _bart: http://rxr.whitequark.org/mri/source/hash.c?v=2.1.1#126
[14:47:23] dminuoso: (By default its fed with the object ID)
[14:47:41] dminuoso: http://rxr.whitequark.org/mri/source/hash.c?v=2.1.1#150
[14:47:43] dminuoso: Sorry my bad, misclick.
[14:47:44] psmmr: has joined #ruby
[14:49:04] ybart: dminuoso: thanks
[14:50:05] dminuoso: _bart: also that happens to be 2.1.1, you might want to switch the version (not sure if that bit has been touched)
[14:51:18] loocash: has joined #ruby
[14:51:56] aryaching: has joined #ruby
[14:52:27] burgestrand: has joined #ruby
[14:52:37] senayar^: has joined #ruby
[14:54:12] Mon_Ouie: It uses SipHash (https://en.wikipedia.org/wiki/SipHash)
[14:54:39] dminuoso: Thanks Mon_Ouie. :)
[14:55:01] dminuoso: ACTION does not know much about Ruby, but he knows how to find where things are
[14:55:33] ThatsNotJack: has joined #ruby
[14:56:27] Infra-Red: has joined #ruby
[14:56:30] Silthias: has joined #ruby
[14:56:48] terlar: has joined #ruby
[14:57:16] ybart: Mon_Ouie: thanks
[14:58:05] rabbite_: has joined #ruby
[14:59:40] LuckyABA: has joined #ruby
[15:01:48] ChiefAlexander: has joined #ruby
[15:02:08] zeroDi: has joined #ruby
[15:02:42] deecross: has left #ruby: ()
[15:02:45] Hyuk: has joined #ruby
[15:03:00] rbennacer: has joined #ruby
[15:03:02] tvw: has joined #ruby
[15:03:30] voodoofish4301: has joined #ruby
[15:03:33] leea: has joined #ruby
[15:04:16] symm-: has joined #ruby
[15:04:21] axl_: has joined #ruby
[15:04:36] dionyziz: has left #ruby: ()
[15:04:49] neo_: has joined #ruby
[15:05:29] roamingdog: has joined #ruby
[15:09:01] SilverKey: has joined #ruby
[15:12:27] skarlso: has joined #ruby
[15:13:09] Devalo: has joined #ruby
[15:14:05] eatsfoobars: has joined #ruby
[15:14:08] TheWhip: has joined #ruby
[15:14:44] ramfjord: has joined #ruby
[15:16:11] skarlso: has joined #ruby
[15:16:43] klaas: has joined #ruby
[15:17:28] flopsec: has joined #ruby
[15:17:29] descript: has joined #ruby
[15:18:32] pawnbox: has joined #ruby
[15:19:31] mark_66: has left #ruby: ("PART #RubyOnRails :PART #elixir-lang :PART #crystal-lang :PONG :card.freenode.net")
[15:22:55] crankharder: having some trouble getting nokogiri 1.6.8 installed on OSX. the nokogiri help says it's supposed to "just work" with vendored libxml2, but that's saying it cant find libxml2. specifically speciying a path to homebrew installed libxml2 also fails to find it. any ideas? https://gist.github.com/anonymous/3717250e8502697950d1e23bf219fa44
[15:23:04] Devalo: has joined #ruby
[15:24:39] rkazak: has joined #ruby
[15:25:00] Devalo: has joined #ruby
[15:25:08] dminuoso: crankharder: https://github.com/sparklemotion/nokogiri/issues/1445
[15:26:47] skarlso: has joined #ruby
[15:27:00] dminuoso: crankharder: Also homebrew installs things into /usr/local/Cellar by default, are you sure the path is correct?
[15:29:00] crankharder: dminuoso: yea, that path is a symlink
[15:29:22] crankharder: the path in my --with* cmds came from the output of homebrew post-install
[15:29:45] smathy: has joined #ruby
[15:30:07] karapetyan: has joined #ruby
[15:30:29] psftlc: has joined #ruby
[15:31:10] macsteps: has joined #ruby
[15:32:43] crankharder: dminuoso: xcode-select --install did the trick
[15:33:05] dminuoso: crankharder: include/libxml2 is the correct include directory btw.
[15:33:15] shinnya: has joined #ruby
[15:36:17] blackmes1: has joined #ruby
[15:36:53] rkazak: has joined #ruby
[15:37:54] ncthom91: has joined #ruby
[15:41:10] pawnbox: has joined #ruby
[15:41:17] smathy: has joined #ruby
[15:41:40] User458764: has joined #ruby
[15:43:22] conta: has joined #ruby
[15:45:13] nettoweb: has joined #ruby
[15:46:07] tokynet: has joined #ruby
[15:48:35] Vingador: has joined #ruby
[15:49:04] karapetyan: has joined #ruby
[15:51:19] xaxisx: has joined #ruby
[15:53:17] Xeago_: has joined #ruby
[15:54:24] Ishido: has joined #ruby
[15:55:30] polishdub: has joined #ruby
[15:55:44] amclain: has joined #ruby
[15:57:06] loocash: has joined #ruby
[15:58:14] skade: has joined #ruby
[15:59:25] karapetyan: has joined #ruby
[15:59:39] rbennacer: has joined #ruby
[16:00:52] LuckyABA: has joined #ruby
[16:00:58] Carella: has joined #ruby
[16:01:18] Devalo: has joined #ruby
[16:01:22] agentmeerkat: has joined #ruby
[16:01:53] Carella: has joined #ruby
[16:03:22] darkdreamingdan: has joined #ruby
[16:04:09] araujo: has joined #ruby
[16:04:47] darkdreamingdan: hey guys, can anyone help me understand what happens here? http://pastebin.com/2pxxwYCi
[16:04:48] ruby[bot]: darkdreamingdan: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/9f9de33bfef5fbaba111a8ba997d2611
[16:04:48] ruby[bot]: darkdreamingdan: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[16:05:39] darkdreamingdan: where frequencies is a hash
[16:05:45] darkdreamingdan: sort_by method returns a 2d array, as i understand
[16:05:50] darkdreamingdan: but what's the count statement actually doing?
[16:05:59] darkdreamingdan: is it returning count to the sort_by function? im confused
[16:06:09] darkdreamingdan: i've just never seen a variable as an isolated statement before in other langs
[16:07:28] rbennacer: has joined #ruby
[16:08:28] rbennacer: has joined #ruby
[16:09:11] karapetyan: has joined #ruby
[16:09:22] toretore: darkdreamingdan: the part between { and } is an anonymous function, which is run by sort_by to determine the value to sort by; in your case, it returns the valye of `count`
[16:09:47] darkdreamingdan: so in ruby, an isolated statement is deduced as a 'return' if it's not a method?
[16:10:08] toretore: the last expression in a function is returned implicitly
[16:10:24] toretore: the value of your last expression is whatever's in count
[16:10:26] elomatreb: the last evaluated expression, to be exact
[16:10:34] darkdreamingdan: right, does that mean that ruby /always/ returns something in a method
[16:10:39] darkdreamingdan: assuming the method isn't empty
[16:10:40] dminuoso: The last evaluated expression outside ensure blocks, to be even more exact.
[16:10:49] toretore: an "empty" method returns nil
[16:10:54] darkdreamingdan: but i guess i can also use 'return' to force it earlier, if i wish
[16:11:10] elomatreb: yes, but it's not used often
[16:11:23] toretore: explicit return is somewhat of a code smell
[16:12:02] gigidell: has joined #ruby
[16:12:03] KensoDev: has joined #ruby
[16:12:21] smathy: darkdreamingdan, the starting array must have been an array of tuples, not a hash.
[16:12:22] darkdreamingdan: well i mean something like "if somethingbad return false end"
[16:12:35] Ishido: has joined #ruby
[16:12:45] jaguarmagenta: has joined #ruby
[16:12:49] diegoviola: has joined #ruby
[16:12:52] toretore: then it should probably be `if something bad; false; else; ...; end`
[16:12:54] smathy: darkdreamingdan, >> [ [ :foo, 3 ], [ :bar, 2 ]].sort_by { |word, count| count }
[16:13:05] elomatreb: You are free to do so, but most codestyle guides tell you to avoid to where possible
[16:13:30] smathy: >> [ [ :foo, 3 ], [ :bar, 2 ]].sort_by { |word, count| count }
[16:13:31] ruby[bot]: smathy: # => [[:bar, 2], [:foo, 3]] (https://eval.in/599265)
[16:14:40] darkdreamingdan: https://gist.github.com/anonymous/70f2560fa508e65524ffc6296190feee
[16:14:48] darkdreamingdan: that's a hash, no?
[16:15:27] elomatreb: Yes, but the value passed to your block is a array of the form [key, value] iirc
[16:16:26] elomatreb: if you want to have key and value of a hash in a block as separate values, you can specify two block parameters (like {key:"value"}.each {|key, value| ... }
[16:17:05] darkdreamingdan: toretore: i see
[16:17:45] toretore: darkdreamingdan: insert `p(value)` at various points in your code to inspect values, this will help you understand how things work and how values change
[16:18:04] elomatreb: I'm an idiot btw, misread your code
[16:18:08] SilverKey: has joined #ruby
[16:18:11] nando293921: has joined #ruby
[16:18:37] darkdreamingdan: yeah, i figure the code is doing exactly as you just described
[16:19:15] darkdreamingdan: i'll bear hat in mind, thanks tore
[16:19:29] Hobogrammer: has joined #ruby
[16:19:29] smathy: darkdreamingdan, count won't be being set to anything.
[16:19:40] darkdreamingdan: what's confusing me now is this
[16:19:46] darkdreamingdan: <smathy> darkdreamingdan, the starting array must have been an array of tuples, not a hash.
[16:20:10] darkdreamingdan: surely it's a hash that i call .sort_by on
[16:20:16] toretore: darkdreamingdan: it's not a strict ban, purr say, i use early return sometimes, but i've also gotten myself in trouble more than once by using it and then keep adding more of them until it's a mess
[16:20:16] smathy: darkdreamingdan, yes, I was assuming the sort_by was actually working. You're right, it's a hash, but it's not working.
[16:20:21] smathy: >> [ { foo: 4 }, { bar: 1 }].sort_by { |word, count| count }
[16:20:22] ruby[bot]: smathy: # => [{:foo=>4}, {:bar=>1}] (https://eval.in/599266)
[16:22:31] mattwashere: has joined #ruby
[16:22:31] darkdreamingdan: if text is "test a a a a", the code returns [["a", 4], ["test", 1]] for me
[16:23:31] mikecmpbll: has joined #ruby
[16:23:34] smathy: Umm, OMG, I'm embarrassing myself. I had an extra array in there. Sorry.
[16:23:53] smathy: >> { foo: 4, bar: 1 }.sort_by { |word, count| count }
[16:23:54] ruby[bot]: smathy: # => [[:bar, 1], [:foo, 4]] (https://eval.in/599267)
[16:24:01] darkdreamingdan: ok, i get it now
[16:24:27] User458764: has joined #ruby
[16:24:33] smathy: So yeah, Ruby is doing what you think and destructuring each hash element into the local `word` and `count` vars, and then using the `count` for the sort.
[16:25:39] Hanmac: darkdreamingdan: in your case you dont need the word variable in the second {} and you might replace it with a "_"
[16:26:04] darkdreamingdan: right, does that still have the same space complexity or does _ have a significance
[16:27:47] toretore: you should think of it as a throw-away variable name; ruby does treat it somewhat differently but that's not something you should assume
[16:28:01] darkdreamingdan: i.e. are you suggesting that to keep code tidy, or because it has a performance advantage too
[16:28:16] kavanagh: has joined #ruby
[16:28:56] Hanmac: darkdreamingdan: as for the sort_by thing you might do: sort_by(&:last)
[16:29:32] darkdreamingdan: that's an argument to construct backwards, i guess?
[16:30:30] TheWhip: has joined #ruby
[16:31:01] karapetyan: has joined #ruby
[16:31:38] Hanmac: darkdreamingdan: &:symbol means a block parameter ... ruby does treat &:last like {|o| o.last} and because o is an array of [word, count] it does return count
[16:32:31] bradland: has joined #ruby
[16:32:56] Hanmac: darkdreamingdan: also for the first {} you might use each_with_object for counting ... its a few less lines, imo like that better : each_with_object(Hash.new(0)) {|o,h| h[o] +=1 }
[16:33:28] zarubin: has joined #ruby
[16:35:00] macsteps: has joined #ruby
[16:35:47] darkdreamingdan: do rubyists dislike calling methods with no arguments with empty paranthises?
[16:36:15] ljarvis: darkdreamingdan: firstly, camelCase method names are already bad
[16:36:16] tomphp: has joined #ruby
[16:36:23] ljarvis: and yeah generally you would avoid the parentheses
[16:37:48] Axsuul: has joined #ruby
[16:38:11] User458764: has joined #ruby
[16:38:21] [Butch]: has joined #ruby
[16:39:55] davedev24: has joined #ruby
[16:43:21] davedev24: has joined #ruby
[16:43:32] aep-shoutlet: has joined #ruby
[16:45:14] SilverKey: has joined #ruby
[16:46:01] nogic: has joined #ruby
[16:46:16] wjimenez5271: has joined #ruby
[16:47:08] LoneHerm_: has joined #ruby
[16:47:09] deecross: has joined #ruby
[16:49:17] agit0: has joined #ruby
[16:49:33] dikaio: has joined #ruby
[16:49:54] wrkrcoop: has joined #ruby
[16:51:12] wrkrcoop: my team is trying to put together a weekly ruby meeting where we discuss anything related to ruby. anyone have any suggestions on what would be a good topic?
[16:51:21] AndrewIsHere: has joined #ruby
[16:54:23] Devalo: has joined #ruby
[16:54:29] darkdreamingdan: >> f = { "test" => 1, "test" => 2 } p(f)
[16:54:49] darkdreamingdan: >> { "test" => 1, "test" => 2 }
[16:54:53] smathy: wrkrcoop, if there are no pressing topics, I'd be asking whether this meeting is going to be that valuable.
[16:54:55] darkdreamingdan: how do i use the bot?
[16:54:57] miqlas-H: has joined #ruby
[16:55:23] wjimenez5271: has joined #ruby
[16:56:18] yqt: has joined #ruby
[16:56:59] darkdreamingdan: i'm a bit confused over symbols. why should i use symbol keys in a hash instead of strings
[16:57:15] darkdreamingdan: my assumption is that it doesnt waste memory on big strings, and internalizes it
[16:57:31] replay: has joined #ruby
[16:58:47] wrkrcoop: smathy: what would define a pressing topic?
[16:59:10] bitemyapp: has left #ruby: ()
[16:59:15] wrkrcoop: we all suck at tests
[16:59:47] soulisson: has left #ruby: ("Quitte")
[17:00:13] deecross: has joined #ruby
[17:00:16] smathy: wrkrcoop, there you go :)
[17:00:33] SCHAAP137: has joined #ruby
[17:00:54] wrkrcoop: smathy: but would that be pressing?
[17:01:43] smathy: If it's something your team would benefit from improving, or something they're passionate about learning more about then I'd say it qualifies.
[17:02:23] Xeago_: has joined #ruby
[17:03:22] aegis3121: has joined #ruby
[17:08:05] djbkd: has joined #ruby
[17:08:09] shevy: wrkrcoop discuss writing style!
[17:08:22] shevy: like "def foo bar" versus "def foo(bar)"
[17:08:22] wrkrcoop: shevy: got any good links?
[17:08:42] wrkrcoop: shevy: what is your opnion on def foo bar vs def foo(bar)
[17:08:43] shevy: well you can align it towards https://github.com/bbatsov/ruby-style-guide
[17:08:48] shevy: but that style guide is very CONTROVERSIAL too
[17:09:13] shevy: wrkrcoop always parens if there are arguments, in def!
[17:09:16] toretore: `def foo bar` is the donald trump of ruby style
[17:09:34] shevy: wrkrcoop the best is - there are ruby people who use BOTH at the same time :)
[17:09:38] shevy: let me find an example
[17:10:08] shevy: wrkrcoop there! https://github.com/jhass/configurate/blob/master/lib/configurate/provider.rb
[17:10:36] djbkd: has joined #ruby
[17:10:37] shevy: but anyway there are many more style differences between ruby people
[17:11:09] shevy: wrkrcoop I lately was curious about https://rubygems.org/gems/bioinform
[17:11:25] shevy: but I did not understand the code... style was only partially responsible, it was quite math-heavy, with different matrices
[17:13:20] pawnbox: has joined #ruby
[17:13:30] rcvalle: has joined #ruby
[17:14:08] shevy: wrkrcoop some style advice makes sense IMO like https://github.com/bbatsov/ruby-style-guide#spaces-around-equals
[17:14:32] aaeron: has joined #ruby
[17:14:35] skarlso: has joined #ruby
[17:15:16] rippa: has joined #ruby
[17:15:40] firstdayonthejob: has joined #ruby
[17:16:02] bb010g: has joined #ruby
[17:16:14] SilverKey: has joined #ruby
[17:16:47] snath: has joined #ruby
[17:19:40] SilverKey: has joined #ruby
[17:20:03] Xeago_: has joined #ruby
[17:20:37] floatingpoint: has joined #ruby
[17:20:56] SilverKey: has joined #ruby
[17:22:21] tristanp_: has joined #ruby
[17:24:55] snath: has left #ruby: ("Leaving")
[17:27:55] karapety_: has joined #ruby
[17:29:29] GodFather_: has joined #ruby
[17:31:57] theRoUS: has joined #ruby
[17:34:23] neo_: has joined #ruby
[17:35:33] postmodern: has joined #ruby
[17:36:37] _djbkd: has joined #ruby
[17:36:50] AndroidLoverInSF: has joined #ruby
[17:38:27] karapetyan: has joined #ruby
[17:38:58] ascarter: has joined #ruby
[17:39:28] dminuoso: has joined #ruby
[17:39:36] banisterfiend: has joined #ruby
[17:39:49] jrafanie: has joined #ruby
[17:40:40] sneakers: has joined #ruby
[17:41:53] theRoUS: has joined #ruby
[17:43:34] karapetyan: has joined #ruby
[17:44:30] djbkd: has joined #ruby
[17:45:23] kavanagh: has joined #ruby
[17:45:59] blackmes1: has joined #ruby
[17:46:02] Madplatypus: has joined #ruby
[17:47:43] User458764: has joined #ruby
[17:48:10] PlasmaStar: has joined #ruby
[17:48:11] LoneHermit: has joined #ruby
[17:48:14] dionysus69: has joined #ruby
[17:49:36] ChiefAlexander: has joined #ruby
[17:51:26] watersoul: has joined #ruby
[17:51:40] RegulationD: has joined #ruby
[17:53:09] jenrzzz: has joined #ruby
[17:53:09] jenrzzz: has joined #ruby
[17:55:40] Dreamer3: has joined #ruby
[17:56:50] centrx: has joined #ruby
[17:57:42] wrkrcoop: has joined #ruby
[17:57:58] jackhill: has joined #ruby
[17:58:50] jackhill: Hi all, I've inherited some ruby scripts that I would like to clean up and make a gem. Thougths on bundler versus straight gem? This is my first Ruby experience.
[17:59:52] djbkd: has joined #ruby
[18:00:32] swills: has joined #ruby
[18:01:24] shevy: straight gem
[18:02:09] shevy: in both cases first clean it up anyway; I am still trying to clean up https://rubygems.org/gems/rubywebdialogs and it's quite awful
[18:02:12] _djbkd: has joined #ruby
[18:02:29] shevy: old code written by other people in an alien style is really hard to keep updated :(
[18:04:38] dennisvennink: has joined #ruby
[18:06:06] floatingpoint: has joined #ruby
[18:07:39] nando294021: has joined #ruby
[18:10:37] AndroidLoverInSF: has joined #ruby
[18:10:43] chip_: has joined #ruby
[18:11:19] aegis3121: has joined #ruby
[18:12:02] jackhill: shevy: okay, makes sense, thanks!
[18:12:45] Devalo: has joined #ruby
[18:12:57] ramfjord: has joined #ruby
[18:12:58] shinnya: has joined #ruby
[18:13:22] macsteps: has joined #ruby
[18:13:29] jaguarmagenta: has joined #ruby
[18:13:32] havenwood: jackhill: Here's a gem dev's guidbook: http://yukimotopress.github.io/gem-dev
[18:14:20] havenwood: http://guides.rubygems.org/make-your-own-gem/
[18:15:22] AndroidLoverInSF: has joined #ruby
[18:15:40] jackhill: havenwood: thanks
[18:15:53] leea: has joined #ruby
[18:15:55] whathappens: has joined #ruby
[18:16:07] mattwashere: has joined #ruby
[18:19:05] ChiefAlexander: has joined #ruby
[18:19:34] alfiemax: has joined #ruby
[18:20:04] armatechnicos: has joined #ruby
[18:20:16] shevy: the more gems you write the easier this will be :)
[18:20:40] shevy: you can fill out the Gem::Specification.new do |s| part to describe your gem
[18:21:20] kirun: has joined #ruby
[18:21:22] shevy: ruby version, gem version, you can add via
[18:21:33] shevy: s.required_ruby_version = '>= 2.3.1' s.required_rubygems_version = '>= 2.6.6' s.rubygems_version = '>= 2.6.6' - or something like that
[18:22:01] shevy: and dependencies via s.add_dependency 'foobar', '>= 0.0.6'
[18:22:36] armatechnicos: has left #ruby: ("Leaving")
[18:23:35] roamingdog: has joined #ruby
[18:24:50] Coldblackice: has joined #ruby
[18:25:25] kraken: has joined #ruby
[18:25:46] hk238: has joined #ruby
[18:26:21] vuoto: has joined #ruby
[18:26:31] krakenr: Alright, I'm creating a chess game, and I have classes for each piece. How do I require_relative all of these classes in one of my other classes without having to write it out for each piece?
[18:28:03] shevy: hmm I solve that differently
[18:28:20] shevy: I create a gem, then have some class method that batch-requires all .rb files in a certain directory
[18:28:27] shevy: e. g. my_gem/pieces/
[18:28:46] shevy: via Dir[path_to_the_gem+'*.rb'] or the "#{}" variant
[18:29:14] Dimik: has joined #ruby
[18:33:19] smathy: has joined #ruby
[18:34:18] nettoweb: has joined #ruby
[18:35:13] Devalo: has joined #ruby
[18:35:21] pawnbox: has joined #ruby
[18:35:59] Neo--: has joined #ruby
[18:38:51] karapety_: has joined #ruby
[18:39:26] allcentury: has joined #ruby
[18:40:06] mesamoo: has joined #ruby
[18:41:22] Neo--: has joined #ruby
[18:41:28] dminuoso: has joined #ruby
[18:41:31] SilverKey: has joined #ruby
[18:46:45] AndrewIsHere: has joined #ruby
[18:47:16] cyphase: has joined #ruby
[18:48:17] blackmes1: has joined #ruby
[18:49:17] gizmore: has joined #ruby
[18:52:36] User458764: has joined #ruby
[18:53:29] giz|work: has joined #ruby
[18:54:05] DarthGandalf: has joined #ruby
[18:55:54] psmmr: has joined #ruby
[18:57:10] jhack: has joined #ruby
[19:00:27] jhack: has joined #ruby
[19:03:29] shiinko: has joined #ruby
[19:03:34] floatingpoint: has joined #ruby
[19:03:44] shiinko: hey, I'm trying to install ruby-sass from AUR but its dependency ruby-maruku won't install: http://pastie.org/private/jzj0hgsqv7mlnl8rfv7a I've checked AUR comments and nobody else has reported this issue what can I do?
[19:05:56] smathy: has joined #ruby
[19:05:57] jenrzzz: has joined #ruby
[19:06:58] adaedra: Don't use the AUR to install gems and use rubygems
[19:07:25] shiinko: so, install gems directly with gem command?
[19:08:06] aagdbl: has joined #ruby
[19:08:30] shiinko: Arch bible teaches us to install everything through pacman, using third party package managers is a sin /s :-)
[19:10:48] aagdbl: i have an integer n. how can I dynamically define a method with arity n?
[19:11:27] chip_: has joined #ruby
[19:11:34] havenwood: shiinko: Here's a nice example of a Ruby setup on Archlinux: https://gist.github.com/jhass/8839655bb038e829fba1
[19:11:54] blaxter: has joined #ruby
[19:12:29] shiinko: havenwood, I have RVM installed
[19:13:04] alfiemax: shiinko, then why not use the gem command?/
[19:13:10] fujinuma: is it true that ruby core code discussion in in Japanese?
[19:13:34] alfiemax: fujinuma, doubt that
[19:13:41] braincrash: has joined #ruby
[19:13:52] havenwood: fujinuma: Some discussion is in Japanese and some is in English.
[19:14:02] adaedra: shiinko: if you have rvm installed, this is another reason to install gems yourself and not by AUR
[19:14:06] alfiemax: i think i've wandered into some discussions sommetime back and it was in english
[19:14:20] havenwood: fujinuma: Other languages too, but those are the primary ones.
[19:14:28] adaedra: shiinko: as much as I like the AUR, gem are responsibility of rubygems
[19:14:41] leea: has joined #ruby
[19:14:44] fujinuma: havenwood: what matz writes in?
[19:14:48] ChiefAlexander: has joined #ruby
[19:15:03] havenwood: fujinuma: Matz's native tongue is Japanese but he speaks English as well.
[19:15:56] alfiemax: actually he speaks real good english than i expected. it was really nice talking to him too
[19:15:57] adaedra: native tongue?
[19:16:20] havenwood: fujinuma: Check his RubyKaigi keynotes for Japanese or RubyConf keynotes for English.
[19:16:22] bradland: adaedra: that means it's his first language.
[19:16:44] adaedra: bradland: yeah, I guessed, but I didn't know english used the word "tongue" with this meaning too.
[19:17:11] fujinuma: havenwood: an idiot said that matz changed the ruby core code without noting in English :?
[19:17:36] fujinuma: havenwood: I was curious about that :|
[19:19:11] bradland: you're curious about matz changing the ruby core code and not noting it in english?
[19:20:26] patrick_star_2: has joined #ruby
[19:21:18] blackmesa: has joined #ruby
[19:21:28] bradland: fujinuma: Ruby is open source. It has many, many contributors, and you can watch its development openly on Github. https://github.com/ruby/ruby
[19:21:50] ur5us: has joined #ruby
[19:22:01] karapetyan: has joined #ruby
[19:22:13] bradland: If you click on the "commits" link near the top of that page, you can see all of the changes that are happening to Ruby on a daily basis. https://github.com/ruby/ruby/commits/trunk
[19:22:39] fujinuma: bradland: I don't remember the version he said it's been changed without.
[19:22:54] shevy: fujinuma matz mostly works on mruby since several years, he is not extremely active on core MRI anymore, save for a few assignments on the issue-tracker or some central decisions to be made, such as frozen strings
[19:23:28] bradland: fujinuma: i'm curious why you're asking?
[19:23:35] shevy: some of the discussion happens in japanese, I don't think this can be easily avoided
[19:24:05] fujinuma: bradland: to ensure he said bullshit ;D
[19:24:25] wrkrcoop: when i run rackup it says it can’t find bundler …
[19:24:28] shevy: the official ruby changelog is strictly in english as far as I can see: https://github.com/ruby/ruby/blob/trunk/ChangeLog
[19:24:35] wrkrcoop: but bundler is def installed
[19:24:45] bradland: ok, that's what i thought. i have no interest in helping anyone disparage matz. good day.
[19:24:57] wrkrcoop: getting a ‘NameError: uninitialized constant Bundler’
[19:25:04] shevy: eh that won't work anyway, matz is awesome
[19:25:38] kavanagh: has joined #ruby
[19:26:00] fujinuma: bradland: who's going to do that? Matz is great
[19:29:48] aagdbl: has joined #ruby
[19:31:47] floatingpoint: has joined #ruby
[19:31:57] karapetyan: has joined #ruby
[19:32:49] braincrash: has joined #ruby
[19:33:20] havenwood: aagdbl: I'll cheat and say: def define_method_with_arity_of n; define_method "arity_of_#{n}", method(methods.find { |meth| method(meth).arity == n }) end
[19:34:34] weaksauce: has joined #ruby
[19:35:35] coyo: has joined #ruby
[19:35:47] wrkrcoop: anyone know why i’d be getting a ‘NameError: uninitialized constant Bundler’ when i run rackup
[19:36:50] agit0: has joined #ruby
[19:37:47] anisha: has joined #ruby
[19:39:39] AndrewIs_: has joined #ruby
[19:39:40] p0p0pr37_: has joined #ruby
[19:40:07] deecross_: has joined #ruby
[19:40:09] mattp__: has joined #ruby
[19:40:12] pawnbox_: has joined #ruby
[19:40:33] Abonec: has joined #ruby
[19:41:07] eboaz_: has joined #ruby
[19:41:19] cajone: has joined #ruby
[19:41:57] mdw: has joined #ruby
[19:42:06] freerobby: has joined #ruby
[19:42:13] dminuoso: has joined #ruby
[19:42:24] aibot: has joined #ruby
[19:42:48] ahuman: has joined #ruby
[19:43:21] ex0ns: has joined #ruby
[19:43:36] Gnubie_: has joined #ruby
[19:43:37] slash_nick: has joined #ruby
[19:43:39] SebastianThorn: has joined #ruby
[19:43:39] twodayslate: has joined #ruby
[19:43:46] pabs: has joined #ruby
[19:43:52] bnjf: has joined #ruby
[19:43:53] ltp: has joined #ruby
[19:43:54] bratchley: has joined #ruby
[19:43:58] sethetter: has joined #ruby
[19:43:59] JackMc: has joined #ruby
[19:44:04] shaman42: has joined #ruby
[19:44:11] pfg: has joined #ruby
[19:44:12] jackhill: has joined #ruby
[19:44:12] rabbite_: has joined #ruby
[19:44:13] awk: has joined #ruby
[19:44:14] guacamole: has joined #ruby
[19:44:14] danzilio: has joined #ruby
[19:44:15] jamo: has joined #ruby
[19:44:18] genpaku: has joined #ruby
[19:44:27] nexace: has joined #ruby
[19:44:28] zenlot: has joined #ruby
[19:44:45] Expanse: has joined #ruby
[19:45:45] AdamMeghji__: has joined #ruby
[19:46:18] GodFather_: has joined #ruby
[19:46:24] havenwood: wrkrcoop: Is Bundler installed on the Ruby you're using? Sanity check `command -v bundler` and `gem which bundler`?
[19:46:51] havenwood: wrkrcoop: Same issue with?: bundle exec rackup
[19:47:06] M-shine: has joined #ruby
[19:47:18] webnanners: has joined #ruby
[19:47:22] chridal: has joined #ruby
[19:47:26] okdas: has joined #ruby
[19:47:26] okdas: has joined #ruby
[19:47:28] brainslug: has joined #ruby
[19:47:30] crank1988: has joined #ruby
[19:47:31] Papierkorb: has joined #ruby
[19:47:34] jyaworski: has joined #ruby
[19:47:35] icedp: has joined #ruby
[19:47:38] segy: has joined #ruby
[19:47:40] nug: has joined #ruby
[19:47:43] tvsutton: has joined #ruby
[19:47:44] maxmanders: has joined #ruby
[19:47:46] jolamb: has joined #ruby
[19:47:49] theRoUS: has joined #ruby
[19:47:55] bmn: has joined #ruby
[19:48:00] mattwashere: has joined #ruby
[19:48:01] kitallis: has joined #ruby
[19:48:02] jenrzzz: has joined #ruby
[19:48:02] jenrzzz: has joined #ruby
[19:48:02] kbni: has joined #ruby
[19:48:07] M-mistake: has joined #ruby
[19:48:10] [reed]: has joined #ruby
[19:48:10] [reed]: has joined #ruby
[19:48:12] FifthWall: has joined #ruby
[19:48:28] KramerC: has joined #ruby
[19:48:35] majuscule: has joined #ruby
[19:48:40] davidcelis: has joined #ruby
[19:48:40] davidcelis: has joined #ruby
[19:48:44] g3funk: has joined #ruby
[19:49:01] alnewkirk: has joined #ruby
[19:49:22] Tristan-Speccy: has joined #ruby
[19:49:45] NightMonkey: has joined #ruby
[19:49:46] nevynxxx: has joined #ruby
[19:50:09] mgorbach: has joined #ruby
[19:50:14] kappy: has joined #ruby
[19:50:30] duracrisis: has joined #ruby
[19:50:51] ianconnolly: has joined #ruby
[19:51:49] mattwashere: has joined #ruby
[19:51:51] TheMoonMaster: has joined #ruby
[19:53:52] woodruffw: has joined #ruby
[19:54:22] woodruffw: has joined #ruby
[19:54:28] elementaru: has joined #ruby
[19:55:10] JesseH: has joined #ruby
[19:55:13] hightower2: has joined #ruby
[19:55:26] akkad: has joined #ruby
[19:55:33] jidar: has joined #ruby
[19:56:00] YaknotiS: has joined #ruby
[19:56:23] michael_mbp: has joined #ruby
[19:56:30] duffy_duck: has joined #ruby
[19:57:22] kriskropd: has joined #ruby
[19:57:49] SilverKey: has joined #ruby
[20:04:51] SilverKey: has joined #ruby
[20:04:54] jenrzzz: has joined #ruby
[20:07:38] aaeron: has joined #ruby
[20:07:55] Mathias__: has joined #ruby
[20:08:41] Mathias__: has left #ruby: ()
[20:10:19] skade: has joined #ruby
[20:11:41] hutch34: has joined #ruby
[20:13:19] slackbotgz: has joined #ruby
[20:14:12] jaguarmagenta: has joined #ruby
[20:18:10] yardenbar: has joined #ruby
[20:19:45] allcentury: has joined #ruby
[20:20:58] ChiefAlexander: has joined #ruby
[20:21:19] Axsuul: has joined #ruby
[20:22:04] GodFather_: has joined #ruby
[20:24:19] hahuang61: has joined #ruby
[20:25:09] mattwashere: has joined #ruby
[20:31:08] crised: has joined #ruby
[20:31:43] rbennacer: has joined #ruby
[20:31:51] Silthias: has joined #ruby
[20:33:19] lxsameer: has joined #ruby
[20:33:41] symm-: has joined #ruby
[20:36:23] floatingpoint: has joined #ruby
[20:37:20] blackmesa: has joined #ruby
[20:39:00] coyo: has joined #ruby
[20:41:06] kareeoleez: has joined #ruby
[20:42:51] kareeole_: has joined #ruby
[20:42:58] dminuoso: has joined #ruby
[20:43:01] mtkd: has joined #ruby
[20:43:36] wrkrcoop: has joined #ruby
[20:46:33] yfeldblum: has joined #ruby
[20:46:56] nankyokusei: has joined #ruby
[20:47:21] A124: has joined #ruby
[20:47:32] karapetyan: has joined #ruby
[20:49:53] blackmes1: has joined #ruby
[20:50:15] LoneHerm_: has joined #ruby
[20:50:26] elifoster: has joined #ruby
[20:51:25] yqt: has joined #ruby
[20:51:31] [Butch]_: has joined #ruby
[20:53:25] aagdbl: has joined #ruby
[20:53:28] rbennacer: has joined #ruby
[20:55:20] nando293921: has joined #ruby
[20:56:41] isberg: has joined #ruby
[21:00:42] Abonec: has joined #ruby
[21:01:06] spider-mario: has joined #ruby
[21:01:33] coyo: has joined #ruby
[21:03:22] wigust: has joined #ruby
[21:05:40] Devalo: has joined #ruby
[21:06:09] wigust: has joined #ruby
[21:06:23] shinnya: has joined #ruby
[21:06:55] SirOliver: has joined #ruby
[21:07:12] ramfjord_: has joined #ruby
[21:09:27] jetpack_joe: has joined #ruby
[21:09:28] anisha_: has joined #ruby
[21:21:45] centrx: has joined #ruby
[21:21:58] Stazer: has joined #ruby
[21:23:41] SirOliver: has joined #ruby
[21:24:04] wigust: has joined #ruby
[21:26:15] karapetyan: has joined #ruby
[21:28:35] GodFather_: has joined #ruby
[21:29:47] jenrzzz: has joined #ruby
[21:36:31] djbkd: has joined #ruby
[21:39:45] Contigi: has joined #ruby
[21:41:05] wlos: has joined #ruby
[21:42:10] blackgoat: has joined #ruby
[21:42:18] mistermocha: has joined #ruby
[21:46:56] watersoul_: has joined #ruby
[21:47:13] RegulationD: has joined #ruby
[21:50:47] abort: has joined #ruby
[21:50:52] jgw: has joined #ruby
[21:51:00] pabst: has joined #ruby
[21:51:15] LoneHermit: has joined #ruby
[21:51:17] bhaak_: has joined #ruby
[21:51:23] ljarvis_: has joined #ruby
[21:51:24] TvL: has joined #ruby
[21:51:29] lnx_: has joined #ruby
[21:51:35] hirvi_: has joined #ruby
[21:51:35] mc_fail_: has joined #ruby
[21:51:43] jsaak_: has joined #ruby
[21:53:12] KrzaQ: has joined #ruby
[21:53:13] Phanes: has joined #ruby
[21:53:13] Phanes: has joined #ruby
[21:53:18] electrostat: has joined #ruby
[21:53:18] ohcibi: has joined #ruby
[21:53:19] gigidell: has joined #ruby
[21:53:22] Nanuq: has joined #ruby
[21:53:22] ltp: has joined #ruby
[21:53:24] darix: has joined #ruby
[21:53:26] Sthebig: has joined #ruby
[21:53:26] Sthebig: has joined #ruby
[21:53:29] demophoon: has joined #ruby
[21:53:44] hahuang61: has joined #ruby
[21:55:46] cgfbee: has joined #ruby
[21:57:25] roamingdog: has joined #ruby
[21:57:36] joevandyk: has joined #ruby
[21:57:50] jamo: has joined #ruby
[22:00:10] nettoweb: has joined #ruby
[22:00:28] last_staff: has joined #ruby
[22:01:10] ahuman: has joined #ruby
[22:01:27] whathappens: has joined #ruby
[22:01:53] mdw7: has joined #ruby
[22:02:57] djbkd: has joined #ruby
[22:03:32] Devalo: has joined #ruby
[22:03:43] Adam_FrVancouver: has joined #ruby
[22:03:55] jenrzzz: has joined #ruby
[22:03:55] jenrzzz: has joined #ruby
[22:04:44] freerobby: has joined #ruby
[22:06:15] DenSchub: has joined #ruby
[22:08:43] darix: has joined #ruby
[22:09:26] jetpack_joe: has joined #ruby
[22:11:31] Xeago_: has joined #ruby
[22:14:05] djbkd: has joined #ruby
[22:14:58] jaguarmagenta: has joined #ruby
[22:15:10] macsteps: has joined #ruby
[22:15:19] macsteps: has joined #ruby
[22:15:36] DenSchub: has joined #ruby
[22:24:45] roamingdog: has joined #ruby
[22:25:42] Carella: has joined #ruby
[22:28:30] B1n4r10: has joined #ruby
[22:28:54] kavanagh: has joined #ruby
[22:29:12] cd-rum: has joined #ruby
[22:29:31] ramfjord: has joined #ruby
[22:32:14] cd-rum: has joined #ruby
[22:32:40] aaeron: has joined #ruby
[22:34:11] zenlot6: has joined #ruby
[22:35:01] skade: has joined #ruby
[22:35:03] kareeole_: has joined #ruby
[22:36:57] whathappens: has joined #ruby
[22:40:11] mistermocha: has joined #ruby
[22:41:05] anna`: has left #ruby: ("-")
[22:41:17] cd-rum: has joined #ruby
[22:43:43] whathappens: has joined #ruby
[22:47:17] kareeoleez: has joined #ruby
[22:47:19] [gmi]: has joined #ruby
[22:47:50] nankyokusei: has joined #ruby
[22:49:41] craigp: has joined #ruby
[22:53:06] LoneHermit: has joined #ruby
[22:55:06] jetpack_joe: has joined #ruby
[22:55:49] panpainter: has joined #ruby
[22:56:32] kraken: has joined #ruby
[22:56:56] jenrzzz: has joined #ruby
[22:57:12] krakenr: if I ahve an array arr = [3,2,1,43,4], and I want to assign arr[0] and arr[3] the same variable, is there any way to do this in one line?
[22:58:42] elomatreb: kraken_: Not sure if this is what you mean, but: https://eval.in/599413
[22:58:58] swills: has joined #ruby
[22:59:02] psmmr: has joined #ruby
[22:59:14] krakenr: looks great to me
[22:59:37] krakenr: I guess they would both point to the exact same object though wouldn't they
[23:00:26] matp: has joined #ruby
[23:01:12] elomatreb: kraken_: Yes: https://eval.in/599414
[23:01:30] dennisvennink: has joined #ruby
[23:01:32] havenwood: kraken_: Is that what you want?
[23:02:47] whathappens: has joined #ruby
[23:03:43] nankyokusei: has joined #ruby
[23:05:09] isberg: has joined #ruby
[23:07:34] chouhoul_: has joined #ruby
[23:08:27] chouhoul_: has joined #ruby
[23:10:49] preyalone: has joined #ruby
[23:12:29] bhaak: has joined #ruby
[23:12:34] krakenr: is there any way anyone would recommend cleaning up this extremely long method? https://gist.github.com/KrakenHH/9eb28fba3a6afadd19081e5c32c015a4
[23:15:06] Regulati_: has joined #ruby
[23:19:28] elomatreb: kraken_: I guess you could store the order of the pieces in a variable beforehand, and then iterate over it, placing the figures. Do again for black/white
[23:20:16] krakenr: makes sense
[23:22:00] wigust: has joined #ruby
[23:22:35] smathy: has joined #ruby
[23:25:26] SilverKey: has joined #ruby
[23:27:24] agentmeerkat: has joined #ruby
[23:30:18] hutch34: has joined #ruby
[23:30:32] kareeoleez: has joined #ruby
[23:30:58] wrkrcoop: has joined #ruby
[23:33:45] gizless: has joined #ruby
[23:35:47] hahuang61: has joined #ruby
[23:36:46] blur3d: has joined #ruby
[23:45:18] mattwashere: has joined #ruby
[23:50:42] KindOne: has joined #ruby
[23:51:00] KindOne: has left #ruby: (".")
[23:52:41] skweek: has joined #ruby
[23:54:12] mtkd: has joined #ruby
[23:55:47] rbennacer: has joined #ruby
[23:56:51] solocshaw: has joined #ruby
[23:57:26] B1n4r10: has joined #ruby
[23:58:55] SilverKey: has joined #ruby
[23:59:18] TheCoffee: has joined #ruby