« Back to channel list

#ruby - 23 June 2016

« Back 1 day Forward 1 day »
[00:00:33] ruby[bot]: -qq Box-Jellyfish!*@* *!*@gateway/web/freenode/ip.93.91.194.95
[00:01:49] swills: has joined #ruby
[00:01:50] shiver: has joined #ruby
[00:02:06] fmcgeough: has joined #ruby
[00:02:21] SCHAAP137: has joined #ruby
[00:05:09] lightt: has joined #ruby
[00:06:26] sesquipedalian: has joined #ruby
[00:07:45] karmatr0n: has joined #ruby
[00:09:56] pawnbox: has joined #ruby
[00:09:59] JakFrist: has joined #ruby
[00:11:07] solocshaw1: has joined #ruby
[00:11:57] rkazak: has joined #ruby
[00:14:59] macsteps: has joined #ruby
[00:19:07] n_blownapart: has joined #ruby
[00:21:04] hutch34_: has joined #ruby
[00:26:07] pawnbox: has joined #ruby
[00:27:57] jmignault: has joined #ruby
[00:29:14] toretore: has joined #ruby
[00:39:06] dcunit3d: has joined #ruby
[00:41:09] jetpackjoe: has joined #ruby
[00:42:35] jenrzzz: has joined #ruby
[00:42:53] GodFather: has joined #ruby
[00:45:14] lightt: has joined #ruby
[00:45:57] macsteps: has joined #ruby
[00:47:27] bkxd: has joined #ruby
[00:49:39] tAn: has joined #ruby
[00:55:41] SilverKey: has joined #ruby
[00:56:54] davedev24: has joined #ruby
[00:57:14] cyphase: has joined #ruby
[00:59:48] devster31: has joined #ruby
[01:01:17] AcidCrash0x00: has joined #ruby
[01:01:23] alexandernst: has joined #ruby
[01:02:31] CustosLimen: has joined #ruby
[01:02:48] Bilge: has joined #ruby
[01:02:54] llua: has joined #ruby
[01:03:58] ornerymoose: has joined #ruby
[01:04:18] teotwaki: has joined #ruby
[01:06:29] valagalen: has joined #ruby
[01:08:02] SilverKey: has joined #ruby
[01:09:10] cyphase: has joined #ruby
[01:10:16] Neo--: has joined #ruby
[01:10:44] eljimmy: has joined #ruby
[01:11:14] eljimador: has joined #ruby
[01:11:36] xall: has joined #ruby
[01:11:54] Spami: has joined #ruby
[01:12:41] Emmanuel_Chanel: has joined #ruby
[01:13:10] Emmanuel_Chanel: has joined #ruby
[01:15:43] Silthias1: has joined #ruby
[01:17:05] aryaching: has joined #ruby
[01:18:05] tAn: has joined #ruby
[01:18:57] Neo--: has joined #ruby
[01:19:05] sarbs: has joined #ruby
[01:21:26] CloCkWeRX: has joined #ruby
[01:28:26] Emmanuel_Chanel: has joined #ruby
[01:28:55] jmignault: has joined #ruby
[01:29:12] Ropeney: has joined #ruby
[01:33:22] karmatr0n: has joined #ruby
[01:36:08] rodfersou: has joined #ruby
[01:36:10] timanema: has joined #ruby
[01:36:22] roamingdog: has joined #ruby
[01:38:17] amincd: has joined #ruby
[01:38:57] aryaching: has joined #ruby
[01:40:03] jaguarmagenta: has joined #ruby
[01:40:34] amincd: Hi, any idea why io.read(100) returns an output that `wc -c` says is 121 bytes long?
[01:40:59] nankyokusei: has joined #ruby
[01:41:38] devbug: has joined #ruby
[01:42:48] safetypin: has joined #ruby
[01:46:47] malconis: has joined #ruby
[01:47:30] tAn: has joined #ruby
[01:49:55] mistermocha: has joined #ruby
[01:50:12] centrx: has joined #ruby
[01:51:55] ur5us: has joined #ruby
[01:52:13] snath: has joined #ruby
[01:53:30] pawnbox: has joined #ruby
[01:55:15] rkazak: has joined #ruby
[01:55:31] globalall0c_: has joined #ruby
[01:57:41] smathy: Does `wc -m` also give you 121?
[01:59:15] amincd: ok I figured it out. I was using 'puts io.read(100)', which was adding newlines that weren't being picked up by `wc`
[01:59:42] amincd: yes `wc -m` was giving me the same inflated count
[01:59:45] amincd: thanks for your help everyone
[02:00:08] amincd: *were being picked up
[02:01:24] timanema: has joined #ruby
[02:01:31] bkxd: has joined #ruby
[02:07:24] whathappens: has joined #ruby
[02:09:37] bkxd: has joined #ruby
[02:09:47] yfeldblum: has joined #ruby
[02:10:06] macsteps: has joined #ruby
[02:17:41] bklane: has joined #ruby
[02:17:49] tAn: has joined #ruby
[02:19:34] User458764: has joined #ruby
[02:21:31] lightt: has joined #ruby
[02:23:03] hutch34_: has joined #ruby
[02:23:44] xall: has joined #ruby
[02:24:00] dnewkerk: has joined #ruby
[02:24:35] shevy: naughty newlines
[02:26:46] adam12: Doin' it dirty on the \r\n
[02:29:33] hGlobalAll0c: has joined #ruby
[02:29:48] jmignault: has joined #ruby
[02:31:24] shevy: even a sneaky \r
[02:31:55] enterprisey: has joined #ruby
[02:32:17] northfurr: has joined #ruby
[02:32:45] SilverKey: has joined #ruby
[02:34:19] karmatr0n: has joined #ruby
[02:35:33] rueben: has joined #ruby
[02:42:12] ruby090: has joined #ruby
[02:42:12] ruby090: how do i execute multiple property changes against the same object, without repeating the object name over and over?
[02:42:16] ruby090: how do i execute multiple property changes against the same object, without repeating the object name over and over?
[02:42:23] ruby090: in .net i would use "with"
[02:43:46] Radar: ruby090: example please
[02:43:47] shevy: ruby090 I am not sure what you mean - do you mean method chaining? if so you can do so in ruby object.property_changing_methoda(args1).property_changing_methodb(args2) provided that these method exist and do what they should do on the target object
[02:43:51] Radar: in ruby code.
[02:46:59] ruby090: like, obj.prop1=1, obj.prop2=2, obj.prop3=3....i dont wanna repeat obj over and over
[02:47:02] tAn: has joined #ruby
[02:47:22] tmtwd: has joined #ruby
[02:49:00] arooni: has joined #ruby
[02:49:47] shevy: yes use non = method calls
[02:50:01] pawnbox: has joined #ruby
[02:50:59] DTZUBDUB: has joined #ruby
[02:51:01] ruby090: does what im describing make sense?
[02:51:08] ruby090: in .net i could use a with block
[02:51:24] ruby090: with obj <new line> .prop1=1, .prop2=2, etc
[02:51:30] valeri_ufo: has joined #ruby
[02:55:29] xall: has joined #ruby
[02:56:00] RegulationD: has joined #ruby
[02:56:39] quazimodo: has joined #ruby
[02:58:52] aryaching: has joined #ruby
[02:59:03] globalall0c_: has joined #ruby
[03:02:18] araujo: has joined #ruby
[03:06:04] pawnbox: has joined #ruby
[03:06:46] northfurr: has joined #ruby
[03:07:40] shevy: ruby090 are you interactive
[03:08:19] MrBusiness: has joined #ruby
[03:09:28] enterprisey: I'm trying to track down a Mutex that's preventing me from marshalling a class
[03:09:46] enterprisey: Can `HTTPClient`s be marshalled, in general?
[03:10:21] enterprisey: okay, never mind
[03:10:22] bkxd: has joined #ruby
[03:10:44] roamingdog: has joined #ruby
[03:11:43] DTZUBDUB: has joined #ruby
[03:12:05] arescorpio: has joined #ruby
[03:17:14] tAn: has joined #ruby
[03:18:01] braincrash: has joined #ruby
[03:18:23] CloCkWeRX: has joined #ruby
[03:21:25] k3rn31: has joined #ruby
[03:24:35] jackjackdripper: has joined #ruby
[03:25:10] dcunit3d: has joined #ruby
[03:28:25] sauvin: has joined #ruby
[03:30:37] gix: has joined #ruby
[03:31:59] jmignault: has joined #ruby
[03:32:20] ElFerna: has joined #ruby
[03:34:46] MrBusiness2: has joined #ruby
[03:35:13] karmatr0n: has joined #ruby
[03:35:52] roamingdog: has joined #ruby
[03:38:24] crdpink: has joined #ruby
[03:39:02] rbennacer: has joined #ruby
[03:39:28] crdpink2: has joined #ruby
[03:40:49] jaguarmagenta: has joined #ruby
[03:40:57] MrBusiness3: has joined #ruby
[03:41:53] nankyokusei: has joined #ruby
[03:41:54] pawnbox: has joined #ruby
[03:43:43] roamingdog: has joined #ruby
[03:44:45] tao_: has joined #ruby
[03:46:06] User458764: has joined #ruby
[03:50:05] elomatreb: has joined #ruby
[03:54:48] roamingdog: has joined #ruby
[03:55:12] jaguarmagenta: has joined #ruby
[03:56:40] RegulationD: has joined #ruby
[03:59:48] sdothum: has joined #ruby
[03:59:50] maloik: has joined #ruby
[04:00:12] SilverKey: has joined #ruby
[04:02:16] timanema: has joined #ruby
[04:05:26] djbkd: has joined #ruby
[04:05:34] roamingdog: has joined #ruby
[04:06:51] Hyuk: has joined #ruby
[04:08:10] rbennacer: has joined #ruby
[04:10:45] enterprisey: Is there an easy way to require a gem installed with --user-install?
[04:12:18] k3rn31: has joined #ruby
[04:12:44] elomatreb: enterprisey: The rubygems docs mention this: http://guides.rubygems.org/faqs/#user-install
[04:13:22] voodoofish430: has joined #ruby
[04:13:25] enterprisey: elomatreb: that'll work for requiring, too?
[04:13:52] elomatreb: I never had any problems with user-installed gems, so I don't really know. I was just googling
[04:13:55] speakingcode: has joined #ruby
[04:14:04] Omni_: has joined #ruby
[04:14:22] elomatreb: If you're having problems with gem availability I'd recommend looking into bundler (http://bundler.io/)
[04:14:27] shevy: enterprisey it should work as in any other require-statements just fine
[04:14:43] enterprisey: I keep getting LoadErrors everywhere
[04:14:53] shevy: I mean that is the whole point of --user-install in the first place, it is the single thing it should do well
[04:15:16] Neo--: has joined #ruby
[04:15:22] enterprisey: my situation is that I've installed two gems with --user-install - one depends on the other
[04:15:28] enterprisey: now the other refuses to require properly
[04:15:38] enterprisey: there must have been some configuration I missed
[04:17:22] elomatreb: Now I have a question: I have a Rakefile in my project. Should I add rake to my Gemfile? (and if so, as a regular or development dependency?)
[04:19:37] sandelius: has joined #ruby
[04:21:05] swills_: has joined #ruby
[04:22:52] roamingdog: has joined #ruby
[04:23:22] valkyr1e: has joined #ruby
[04:23:44] Silthias: has joined #ruby
[04:26:55] mistermocha: has joined #ruby
[04:30:20] hahuang61: has joined #ruby
[04:33:45] MrBusiness3: has joined #ruby
[04:34:29] ausum_possum: has joined #ruby
[04:34:35] ausum_possum: hello fellow rubyists
[04:34:47] ausum_possum: does anybody know if there's a way to get the signed bit of a number?
[04:36:07] ausum_possum: 1.to_s(2) => "1", so i can't grab the most significant bit which should be 0
[04:36:08] karmatr0n: has joined #ruby
[04:38:22] solocshaw: has joined #ruby
[04:39:55] kareeoleez: has joined #ruby
[04:40:19] aibot: has joined #ruby
[04:40:25] roamingd_: has joined #ruby
[04:42:06] roamingdog: has joined #ruby
[04:43:08] kareeoleez: has joined #ruby
[04:43:32] lightt: has joined #ruby
[04:45:03] aryaching: has joined #ruby
[04:46:28] howdoi: has joined #ruby
[04:48:05] MrBusiness2: has joined #ruby
[04:48:49] kareeoleez: has joined #ruby
[04:49:41] jmignault: has joined #ruby
[04:50:00] urbanmonk: has joined #ruby
[04:50:10] pawnbox: has joined #ruby
[04:51:12] whathappens: has joined #ruby
[04:53:13] pawnbox: has joined #ruby
[04:55:11] aryaching: has joined #ruby
[04:55:44] terminalrecluse: has joined #ruby
[04:57:18] jenrzzz: has joined #ruby
[04:57:36] RegulationD: has joined #ruby
[05:01:29] pawnbox: has joined #ruby
[05:01:53] rkazak: has joined #ruby
[05:02:38] Arcaire: anyone done work with FFI?
[05:02:48] roamingdog: has joined #ruby
[05:04:02] elifoster: has joined #ruby
[05:04:18] MrBusiness2: has joined #ruby
[05:04:19] roamingd_: has joined #ruby
[05:06:39] cyphase: has joined #ruby
[05:09:36] harfangk: has joined #ruby
[05:10:00] mistermocha: has joined #ruby
[05:11:05] bkxd: has joined #ruby
[05:15:23] diablerouge: has joined #ruby
[05:17:30] coffeecupp: has joined #ruby
[05:18:47] timanema: has joined #ruby
[05:19:06] sneakerhax: has joined #ruby
[05:20:26] sandelius: Arcaire yeah but I noticed it has a ton of overhead
[05:20:31] Arcaire: that's fine
[05:20:34] Arcaire: not using it for performance
[05:20:57] Arcaire: i just want to know how i should approach a C library that has nested custom structs
[05:22:30] pickandmix: has joined #ruby
[05:22:37] sandelius: Arcaire so you dont know the types?
[05:22:39] der-landgraf: has joined #ruby
[05:23:32] pickandmix: Hi guys, does anyone use Gentoo Linux here, and also uses Ruby 2.2.2?
[05:24:46] hutch34_: has joined #ruby
[05:28:21] pawnbox: has joined #ruby
[05:28:58] mistermocha: has joined #ruby
[05:32:22] roamingdog: has joined #ruby
[05:32:40] mistermo_: has joined #ruby
[05:34:31] vuoto: has joined #ruby
[05:34:37] mistermocha: has joined #ruby
[05:36:39] mistermo_: has joined #ruby
[05:37:05] karmatr0n: has joined #ruby
[05:37:14] MrBusiness2: has joined #ruby
[05:38:43] mistermo_: has joined #ruby
[05:39:55] timanema: has joined #ruby
[05:40:32] mistermocha: has joined #ruby
[05:40:51] roamingdog: has joined #ruby
[05:42:10] Hyuk: has joined #ruby
[05:42:30] mistermocha: has joined #ruby
[05:42:45] nankyokusei: has joined #ruby
[05:43:19] jsaak: has joined #ruby
[05:44:39] mistermo_: has joined #ruby
[05:45:18] User458764: has joined #ruby
[05:45:50] n1x-nz: has joined #ruby
[05:46:30] mistermo_: has joined #ruby
[05:46:55] emilkarl: has joined #ruby
[05:47:26] ngw: has joined #ruby
[05:47:26] d0lph1n98: has joined #ruby
[05:47:52] Phanes: has joined #ruby
[05:47:52] Phanes: has joined #ruby
[05:48:26] mistermocha: has joined #ruby
[05:48:57] yfeldblum: has joined #ruby
[05:50:22] sucks: has joined #ruby
[05:50:23] mistermo_: has joined #ruby
[05:50:24] last_staff: has joined #ruby
[05:50:43] jmignault: has joined #ruby
[05:51:28] ksmutthu: has joined #ruby
[05:52:44] Niham: has joined #ruby
[05:56:09] LoneHerm_: has joined #ruby
[05:56:15] craigp: has joined #ruby
[05:56:26] mistermocha: has joined #ruby
[05:58:26] RegulationD: has joined #ruby
[05:59:18] pawnbox: has joined #ruby
[06:01:00] timanema: has joined #ruby
[06:01:26] fenre: has joined #ruby
[06:05:44] djbkd: has joined #ruby
[06:06:49] whathappens: has joined #ruby
[06:09:54] MrBusiness3: has joined #ruby
[06:12:24] yfeldblum: has joined #ruby
[06:13:20] yfeldblum: has joined #ruby
[06:14:16] MrBusiness2: has joined #ruby
[06:17:56] tAn: has joined #ruby
[06:18:13] tAn: has joined #ruby
[06:20:11] User458764: has joined #ruby
[06:21:11] eGGshke: has joined #ruby
[06:21:51] timanema: has joined #ruby
[06:21:52] mistermocha: has joined #ruby
[06:22:53] colegatron: has joined #ruby
[06:23:31] mistermo_: has joined #ruby
[06:23:52] Hyuk: has joined #ruby
[06:29:43] agit0: has joined #ruby
[06:31:10] MrBusiness3: has joined #ruby
[06:33:10] SilverKey: has joined #ruby
[06:33:27] User458764: has joined #ruby
[06:34:08] cyphase: has joined #ruby
[06:34:40] mistermocha: has joined #ruby
[06:35:27] jeyraof: has joined #ruby
[06:36:29] mistermo_: has joined #ruby
[06:36:36] n1x-nz: has joined #ruby
[06:37:36] ur5us: has joined #ruby
[06:37:43] sauvin: has joined #ruby
[06:37:58] karmatr0n: has joined #ruby
[06:38:36] mistermo_: has joined #ruby
[06:38:43] firstdayonthejob: has joined #ruby
[06:39:43] tmtwd: has joined #ruby
[06:40:18] ishe_ua: has joined #ruby
[06:40:33] coffeecupp: has joined #ruby
[06:41:49] dh64: has joined #ruby
[06:41:54] bkxd: has joined #ruby
[06:42:22] conta: has joined #ruby
[06:42:40] mistermocha: has joined #ruby
[06:43:08] timanema: has joined #ruby
[06:43:33] sapslaj: has joined #ruby
[06:43:42] d0nn1e: has joined #ruby
[06:44:29] mistermo_: has joined #ruby
[06:46:26] MrBusiness2: has joined #ruby
[06:46:29] mistermo_: has joined #ruby
[06:49:57] n1xnz: has joined #ruby
[06:50:45] n1xnz: has joined #ruby
[06:51:44] jmignault: has joined #ruby
[06:54:13] LoneHerm_: has joined #ruby
[06:56:23] mistermocha: has joined #ruby
[06:58:26] mistermo_: has joined #ruby
[06:58:32] yfeldblum: has joined #ruby
[06:59:22] RegulationD: has joined #ruby
[07:01:44] biberu: has joined #ruby
[07:01:47] Hyuk: has joined #ruby
[07:02:00] Vile`: has joined #ruby
[07:03:57] pandaant: has joined #ruby
[07:06:30] duncannz: has joined #ruby
[07:07:48] andikr: has joined #ruby
[07:09:52] NivenHuH: has joined #ruby
[07:10:32] User458764: has joined #ruby
[07:16:55] zacstewart: has joined #ruby
[07:20:07] ausum_possum: has left #ruby: ()
[07:20:56] edwinvdgraaf: has joined #ruby
[07:22:44] jas02: has joined #ruby
[07:23:14] Hounddog: has joined #ruby
[07:23:43] binaryplease1: has joined #ruby
[07:24:52] roamingdog: has joined #ruby
[07:25:37] edwinvdgraaf: has joined #ruby
[07:27:36] aufi: has joined #ruby
[07:29:52] Kedare: has joined #ruby
[07:35:41] anisha: has joined #ruby
[07:39:00] karmatr0n: has joined #ruby
[07:39:28] joonty: has joined #ruby
[07:39:35] marr: has joined #ruby
[07:41:24] PaulCape_: has joined #ruby
[07:42:29] ferr1: has joined #ruby
[07:43:34] nankyokusei: has joined #ruby
[07:43:54] Xeago_: has joined #ruby
[07:44:48] Silthias: has joined #ruby
[07:46:00] norc: has joined #ruby
[07:47:13] User458764: has joined #ruby
[07:47:17] multi_io: has joined #ruby
[07:47:27] troulouliou_div2: has joined #ruby
[07:47:53] ngw: has joined #ruby
[07:48:44] ag4ve: has joined #ruby
[07:48:44] ponga: has joined #ruby
[07:49:55] yfeldblum: has joined #ruby
[07:50:35] duderonomy: has joined #ruby
[07:52:46] jmignault: has joined #ruby
[07:52:56] bmurt: has joined #ruby
[07:54:40] the_drow: has joined #ruby
[07:55:30] madgen: has joined #ruby
[07:57:39] harfangk: has joined #ruby
[07:58:09] antgel: has joined #ruby
[07:58:46] haxrbyte_: has joined #ruby
[08:00:10] RegulationD: has joined #ruby
[08:00:25] sdothum: has joined #ruby
[08:02:05] nocco: has joined #ruby
[08:02:17] fenre: has joined #ruby
[08:02:46] chipotle: has joined #ruby
[08:02:54] djbkd: has joined #ruby
[08:03:35] edwinvdgraaf: has joined #ruby
[08:05:34] matp: has joined #ruby
[08:07:05] Silthias1: has joined #ruby
[08:07:56] Silthias1: has joined #ruby
[08:09:54] DoubleMalt: has joined #ruby
[08:10:24] sandelius: has joined #ruby
[08:11:25] snowy: has joined #ruby
[08:12:02] minimalism: has joined #ruby
[08:12:42] sucks: has joined #ruby
[08:12:57] pawnbox: has joined #ruby
[08:13:48] sucks: has joined #ruby
[08:15:05] sucks: has joined #ruby
[08:16:06] mistermocha: has joined #ruby
[08:16:22] sucks: has joined #ruby
[08:17:40] sucks: has joined #ruby
[08:17:55] mistermo_: has joined #ruby
[08:17:58] zacstewart: has joined #ruby
[08:18:29] sucks: has joined #ruby
[08:19:32] voodoofish430: has joined #ruby
[08:19:48] nofxx: Is there some method for finding if any of one array matches another? Using: (ary & ary).empty?
[08:21:41] pawnbox: has joined #ruby
[08:21:44] jhass: you found it
[08:22:41] Ishido: has joined #ruby
[08:22:41] troulouliou_div2: has joined #ruby
[08:23:25] n1xnz: has joined #ruby
[08:23:36] mistermocha: has joined #ruby
[08:25:47] mistermo_: has joined #ruby
[08:27:44] djbkd: has joined #ruby
[08:29:08] platzhirsch: has joined #ruby
[08:29:24] Xeago_: has joined #ruby
[08:33:19] jenrzzz: has joined #ruby
[08:33:39] mistermocha: has joined #ruby
[08:34:09] TomyWork: has joined #ruby
[08:35:36] mistermo_: has joined #ruby
[08:37:25] mistermo_: has joined #ruby
[08:39:12] voodoofish430: has joined #ruby
[08:39:49] karmatr0n: has joined #ruby
[08:40:55] giz|work: has joined #ruby
[08:41:42] mistermocha: has joined #ruby
[08:42:45] bkxd: has joined #ruby
[08:43:33] LoneHerm_: has joined #ruby
[08:44:57] madgen: has joined #ruby
[08:46:12] blaxter: has joined #ruby
[08:47:17] mistermocha: has joined #ruby
[08:47:50] Es0teric: has joined #ruby
[08:48:03] Xeago_: has joined #ruby
[08:48:37] nocco: has joined #ruby
[08:48:57] ocbtec: has joined #ruby
[08:49:20] nhhc: has joined #ruby
[08:51:14] etehtsea: has joined #ruby
[08:51:19] mistermo_: has joined #ruby
[08:51:40] dionysus69: has joined #ruby
[08:53:17] mistermocha: has joined #ruby
[08:53:35] jmignault: has joined #ruby
[08:53:47] pawnbox: has joined #ruby
[08:55:22] skade: has joined #ruby
[08:56:47] KillerFox: has joined #ruby
[08:59:05] roamingdog: has joined #ruby
[08:59:15] fannymay: has joined #ruby
[08:59:17] mistermocha: has joined #ruby
[09:00:28] tulak: has joined #ruby
[09:01:09] RegulationD: has joined #ruby
[09:01:41] hutch34_: has joined #ruby
[09:02:43] harfangk: has joined #ruby
[09:03:17] mistermo_: has joined #ruby
[09:04:19] mikecmpbll: has joined #ruby
[09:04:37] timanema: has joined #ruby
[09:05:01] mistermocha: has joined #ruby
[09:06:40] Infra-Red: has joined #ruby
[09:09:02] mistermo_: has joined #ruby
[09:10:01] dionysus69: has joined #ruby
[09:12:31] Xeago_: has joined #ruby
[09:13:09] mistermocha: has joined #ruby
[09:14:56] mistermo_: has joined #ruby
[09:17:59] Moosashi: has joined #ruby
[09:18:26] zacstewart: has joined #ruby
[09:18:39] senayar: has joined #ruby
[09:18:39] senayar: has joined #ruby
[09:18:56] mistermocha: has joined #ruby
[09:20:00] ur5us: has joined #ruby
[09:22:50] mistermo_: has joined #ruby
[09:22:52] tildes: has joined #ruby
[09:24:01] cyphase: has joined #ruby
[09:24:56] mistermocha: has joined #ruby
[09:25:58] timanema: has joined #ruby
[09:26:48] Silthias: has joined #ruby
[09:26:56] mistermo_: has joined #ruby
[09:27:18] etehtsea: has joined #ruby
[09:30:43] mistermocha: has joined #ruby
[09:32:44] yfeldblum: has joined #ruby
[09:38:36] nocco: has joined #ruby
[09:40:18] mistermocha: has joined #ruby
[09:40:33] matp: has joined #ruby
[09:40:41] karmatr0n: has joined #ruby
[09:41:42] ksmutthu: has joined #ruby
[09:42:39] mistermo_: has joined #ruby
[09:44:25] nankyokusei: has joined #ruby
[09:44:28] mistermo_: has joined #ruby
[09:45:22] nofxx: jhass, heheh... you never know .... so many methods on enumerable...
[09:45:45] nofxx: actually I think I'm confused with #any? .... it's activesupport iirc.
[09:46:20] jhass: nofxx: it's not
[09:46:37] nofxx: I always mentally link it to something like array.any? {} , where it's like #empty? negated
[09:47:19] nofxx: jhass, it's ruby 2+ ?
[09:47:27] norc: &ri Enumerable#any?
[09:47:27] `derpy: http://ruby-doc.org/core-2.3.1/Enumerable.html#method-i-any-3F
[09:47:30] norc: nofxx: ^-
[09:47:42] Xeago_: has joined #ruby
[09:48:03] nofxx: won't confuse anymore hehe...
[09:48:06] jhass: http://ruby-doc.org/core-1.8.7/Enumerable.html#method-i-any-3F
[09:48:12] jhass: so quite no
[09:48:47] andromedian: has joined #ruby
[09:49:02] nofxx: bah, but not only my fault... pretty common to see !foo.empty?
[09:49:28] nofxx: hence why I tought it was activesupport...
[09:50:16] norc: &ri Array#empty?
[09:50:16] `derpy: http://ruby-doc.org/core-2.3.1/Array.html#method-i-empty-3F
[09:50:21] mistermocha: has joined #ruby
[09:50:23] norc: nofxx: That also is not an activesupport method.
[09:50:39] norc: nofxx: Contrary to popular belief, Ruby is not based on Rails.
[09:50:49] yeticry: has joined #ruby
[09:52:19] mistermo_: has joined #ruby
[09:52:58] edwinvdg_: has joined #ruby
[09:53:00] LoneHermit: has joined #ruby
[09:54:14] mistermo_: has joined #ruby
[09:54:19] jmignault: has joined #ruby
[09:54:27] tulak: has joined #ruby
[09:55:35] User458764: has joined #ruby
[09:56:24] mistermocha: has joined #ruby
[09:56:48] etehtsea: has joined #ruby
[09:57:49] weckl: has joined #ruby
[09:58:23] mistermo_: has joined #ruby
[09:59:17] leitz: has joined #ruby
[10:00:22] mistermo_: has joined #ruby
[10:01:56] RegulationD: has joined #ruby
[10:01:58] agit0: has joined #ruby
[10:02:07] mistermocha: has joined #ruby
[10:02:54] andromedian: do you know how I can display the value of the additional_sizes? https://gist.github.com/anonymous/8c1cf2dfc9fe72be23cbe03ad9793bc8 I'm getting right now #<Property::AdditionalSize:0x007f88148fc2c8> if I true to use an each loop on object.additional_sizes ?
[10:03:28] bnjf: has joined #ruby
[10:04:17] mistermo_: has joined #ruby
[10:04:21] norc: andromedian: Look at your libraries manual.
[10:04:32] andromedian: libraries manual?
[10:04:59] norc: andromedian: Ruby has no notion of Property and AdditionalSize
[10:05:20] andromedian: those are values that are coming from rails model
[10:05:27] norc: ?rails andromedian
[10:05:27] ruby[bot]: andromedian: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[10:05:43] andromedian: Thanks for pointing me in the right direction norc
[10:05:47] norc: You are welcome.
[10:06:05] mistermocha: has joined #ruby
[10:07:09] Xeago_: has joined #ruby
[10:07:32] lxsameer: has joined #ruby
[10:07:32] lxsameer: has joined #ruby
[10:07:34] codecodecode123: has joined #ruby
[10:08:49] bigkevmcd: has joined #ruby
[10:09:03] codecodecode123: has joined #ruby
[10:09:29] jhass: you seem to be!
[10:10:08] mistermo_: has joined #ruby
[10:10:22] codecodecode123: so, here is my problem. I am trying to make a tcp rock paper scissors server that you connect with telnet
[10:10:48] codecodecode123: but, after I get the input, it doesn't evaluate a simple if statement
[10:10:59] codecodecode123: http://pastie.org/private/jk7megcdpi1pbi8zzpyuw here is the code
[10:10:59] c355E3B: has joined #ruby
[10:11:07] codecodecode123: can you take a look at it?
[10:11:08] pawnbox: has joined #ruby
[10:11:18] norc: ACTION hands codecodecode123 a class and some methods to play with
[10:11:30] jhass: codecodecode123: what makes you say that?
[10:11:42] jhass: detail your assumptions and how you verified them
[10:11:46] codecodecode123: well, it SEEMS to not evaluate it
[10:11:55] norc: codecodecode123: what does it SEEM to do instead?
[10:12:06] mistermocha: has joined #ruby
[10:12:10] codecodecode123: it SEEMS to get stuck after getting the input
[10:12:36] jhass: where exactly do you assume it gets stuck on?
[10:12:38] jhass: which line?
[10:12:51] codecodecode123: the loop in 10-13
[10:12:56] jhass: not a range
[10:13:00] jhass: which line?
[10:13:01] Mon_Ouie: has joined #ruby
[10:13:25] edwinvdgraaf: has joined #ruby
[10:13:30] bkxd: has joined #ruby
[10:13:58] mistermo_: has joined #ruby
[10:14:09] sdothum: has joined #ruby
[10:14:51] ciampix: has joined #ruby
[10:15:10] codecodecode123: it doesnt pass there
[10:15:37] codecodecode123: i wrote 'puts "yay evaluated if"' on every branch of the if, and after
[10:15:54] codecodecode123: none of them wrote that
[10:15:55] mistermocha: has joined #ruby
[10:15:56] jhass: where does it go instead?
[10:16:18] codecodecode123: start of line 15
[10:16:20] jhass: on which line does it "just stop"?
[10:17:09] jhass: so if you add a puts "I'M HERE" between line 14 and 15, you see it printed?
[10:17:49] jhass: but you don't see the "yay" from line 24?
[10:17:58] xKillerFo: has joined #ruby
[10:18:02] mistermocha: has joined #ruby
[10:18:29] nocco: has joined #ruby
[10:18:49] roKin14: has joined #ruby
[10:18:58] jhass: and if you put a puts "a" between your original lines 15 and 16, a puts "b" between 17 and 18 and a puts "c" between 20 and 21 you see neither?
[10:19:24] zacstewart: has joined #ruby
[10:19:39] jhass: I don't believe you
[10:19:51] mistermo_: has joined #ruby
[10:19:55] jhass: mh, actually one more thing we can do first
[10:20:01] codecodecode123: i'll get more pastes
[10:20:12] jhass: add Thread.abort_on_exception = true as the first line of your program
[10:20:18] jaiks: has joined #ruby
[10:21:41] Hyuk: has joined #ruby
[10:21:51] mistermo_: has joined #ruby
[10:23:30] codecodecode123: this has all of the information you might need
[10:23:32] codecodecode123: http://pastie.org/private/2eppbrncytiqdmmcnibxq
[10:23:58] pwnd_nsfw: has joined #ruby
[10:24:37] c0mrad3: has joined #ruby
[10:24:51] jhass: comprpssrvr.rb:19:in `block (3 levels) in <main>': undefined local variable or method `a' for main:Object (NameError)
[10:24:55] KillerFox: has joined #ruby
[10:25:03] jhass: that looks like a magnificent error message to me
[10:25:18] k3rn31: has joined #ruby
[10:25:44] mistermocha: has joined #ruby
[10:26:04] jhass: codecodecode123: https://carc.in/#/r/12bf here's a smaller version of the issue
[10:26:19] Abhijit: has joined #ruby
[10:26:33] jhass: can you guess what it is? It has to do with "scoping" rules in case you heard that term before
[10:26:59] codecodecode123: i thought that was only in methods
[10:27:06] Abhijit: Compiling CoffeeScript with 'coffee' binary home/ubuntu/canvas-lms/gems/canvas_i18nliner/node_modules/jsdom/node_modules/contextify/node_modules/bindings/bindings.js:83 throw e Error: Module did not self-register. I am getting this error while trying to complie assets for Canvas LMS (rails app)
[10:27:09] codecodecode123: thanks for your help
[10:27:14] jhass: you're welcome
[10:27:19] Abhijit: it has something to do with coffeescript. any idea how can I fix it?
[10:27:28] jhass: ?rails Abhijit
[10:27:28] ruby[bot]: Abhijit: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[10:27:34] rkoller: has joined #ruby
[10:27:47] mistermo_: has joined #ruby
[10:28:11] edwinvdgraaf: has joined #ruby
[10:28:14] Abhijit: i am identified.
[10:28:31] Abhijit: this is not a rail questions. the app is rails. but error is in gem. gem in ruby.
[10:29:02] jhass: well the error message is javascript actually
[10:29:51] jmignault: has joined #ruby
[10:29:53] GodFather: has joined #ruby
[10:29:59] pawnbox: has joined #ruby
[10:31:39] mistermocha: has joined #ruby
[10:33:45] User458764: has joined #ruby
[10:33:48] mistermo_: has joined #ruby
[10:34:22] User458764: has joined #ruby
[10:34:23] ciampix: has joined #ruby
[10:35:37] mistermo_: has joined #ruby
[10:37:10] fenre: has joined #ruby
[10:37:29] mistermocha: has joined #ruby
[10:37:46] quakephil: has joined #ruby
[10:38:08] DoubleMalt: has joined #ruby
[10:39:40] mistermo_: has joined #ruby
[10:41:30] mistermo_: has joined #ruby
[10:41:38] karmatr0n: has joined #ruby
[10:42:02] craigp: has joined #ruby
[10:42:21] hk238: has joined #ruby
[10:42:32] DTZUBDUB: has joined #ruby
[10:43:28] mistermocha: has joined #ruby
[10:43:37] SilverKey: has joined #ruby
[10:45:35] mistermo_: has joined #ruby
[10:47:34] mistermo_: has joined #ruby
[10:49:17] mistermocha: has joined #ruby
[10:50:00] Pumukel: has joined #ruby
[10:51:17] mistermo_: has joined #ruby
[10:51:44] flopsec: has joined #ruby
[10:51:49] Satyajit: has joined #ruby
[10:53:17] mistermo_: has joined #ruby
[10:53:17] User458764: has joined #ruby
[10:54:03] LoneHermit: has joined #ruby
[10:54:20] chip_: has joined #ruby
[10:54:36] joonty: has joined #ruby
[10:55:13] moeabdol: has joined #ruby
[10:56:23] johnmilton: has joined #ruby
[10:57:13] mistermocha: has joined #ruby
[10:58:31] shevy: a leaver!
[10:58:38] pawnbox: has joined #ruby
[10:59:22] marahin: http://hastebin.com/nutusimaci.vbs - how should this be indented, in order to stop Rubocop throwing that err: Use 2 spaces for indentation in an array, relative to the start of the line where the left square bracket is.
[10:59:22] mistermo_: has joined #ruby
[11:00:38] roamingdog: has joined #ruby
[11:01:10] mistermo_: has joined #ruby
[11:02:56] RegulationD: has joined #ruby
[11:03:11] mistermocha: has joined #ruby
[11:03:17] DTZUBDUB: has joined #ruby
[11:03:28] jhass: korben: with one more space on each item?
[11:03:34] jhass: eh, marahin ^ sorry
[11:04:03] freerobby: has joined #ruby
[11:04:50] marahin: jhass, I actually got it working: http://hastebin.com/jeluperebu.vbs
[11:05:15] mistermo_: has joined #ruby
[11:05:18] norc: marahin: Don't fix code to please rubocop.
[11:05:32] norc: marahin: Configure rubocop to adhere whatever coding guidelines YOU want.
[11:05:43] rodfersou: has joined #ruby
[11:06:01] shevy: worship rubocop!
[11:06:14] norc: (About the only useful default setting rubocop has is to complain about double quoted strings without interpolation)
[11:06:57] jhass: norc: that's one of the ones I disagree most strongly with
[11:07:15] mistermo_: has joined #ruby
[11:07:34] norc: jhass: I think that is a brilliant example of why rubocop needs to be configured. ;-)
[11:07:57] jhass: ' vs " performance is only at parse time and even there the benchmarks that show it are debatable
[11:08:03] NightMonkey: has joined #ruby
[11:08:31] Xeago_: has joined #ruby
[11:08:49] jhass: so preferring ' just makes you more work in case you later do want to add an interpolation
[11:09:07] mistermocha: has joined #ruby
[11:09:09] Gasher: has joined #ruby
[11:09:15] dstarh: has joined #ruby
[11:09:31] norc: jhass: In my case it's just style.
[11:09:57] norc: If performance is relevant enough to justify subtle coding rules, then Ruby is by far a bad language pick.
[11:10:00] jhass: I had it too. I thought it's style. turns out it's habit
[11:10:07] norc: (Outside of writing stdlib/core functionality)
[11:10:57] mistermo_: has joined #ruby
[11:11:11] jhass: crystal forced me to use " for strings (' is char), since then I do so in Ruby and it feels better (for the mentioned reason largely, but also more uniform look)
[11:12:02] drptbl: has joined #ruby
[11:12:33] allcentury: has joined #ruby
[11:12:36] norc: Well that feels like a C influence.
[11:12:41] norc: Which is sensible.
[11:12:56] jhass: it's simply because we have a Char type and wanted a literal for it
[11:12:59] mistermo_: has joined #ruby
[11:13:40] jhass: (unlike C char is a unsigned 32 bit integer)
[11:14:27] norc: Is that to allow for up to utf32 code points?
[11:14:54] mistermocha: has joined #ruby
[11:15:19] jhass: String is also always UTF-8 (well unless unsafely constructed from external calls)
[11:16:03] nocco: has joined #ruby
[11:16:50] mistermo_: has joined #ruby
[11:18:49] mistermo_: has joined #ruby
[11:19:01] sepp2k: has joined #ruby
[11:20:17] camilasan: has joined #ruby
[11:20:35] zacstewart: has joined #ruby
[11:20:37] araujo_: has joined #ruby
[11:20:47] mistermocha: has joined #ruby
[11:21:11] gnufied: has joined #ruby
[11:23:07] araujo_: has joined #ruby
[11:24:35] mistermocha: has joined #ruby
[11:26:05] mtkd: has joined #ruby
[11:26:36] hutch34_: has joined #ruby
[11:26:53] mistermo_: has joined #ruby
[11:27:08] timanema: has joined #ruby
[11:27:26] norc: jhass: Perhaps Crystal will be my first language to be supported in a year from now when I have userspace support. :o)
[11:28:04] jhass: note it doesn't aim to be a systems language
[11:28:10] psmmr: has joined #ruby
[11:28:24] jhass: being garbage collected and all that
[11:29:06] norc: Great idea jhass! The biggest cost in kernel memory management is freeing pages.
[11:29:11] norc: I should simply use a garbage collector.
[11:30:01] norc: See, my operating system will be running on valgrind.
[11:30:08] nachoman: has joined #ruby
[11:30:15] norc: Whenever valgrind determines a program probably doesn't use some memory anymore, it gets taken from it.
[11:30:37] mistermocha: has joined #ruby
[11:30:41] norc: Gone are the days of buggy software stealing your memory.
[11:31:16] jhass: libvalmalloc
[11:32:14] norc: I would call it libnfaalloc though.
[11:32:26] norc: As in never free again alloc.
[11:32:33] mistermocha: has joined #ruby
[11:32:51] Mia: has joined #ruby
[11:32:52] Mia: has joined #ruby
[11:35:24] Arcaire: i think i made a really big mistake delving into ffi
[11:35:36] jhass: libmemoryischeap
[11:35:50] jhass: not related to you :P
[11:35:57] FernandoBasso: has joined #ruby
[11:35:58] nando293921: has joined #ruby
[11:36:35] mistermocha: has joined #ruby
[11:37:07] zel: has joined #ruby
[11:37:10] aupadhye: has joined #ruby
[11:38:23] giz|work: has joined #ruby
[11:38:32] mistermo_: has joined #ruby
[11:39:33] ldnunes: has joined #ruby
[11:40:32] mistermo_: has joined #ruby
[11:41:07] shevy: libmonkeynuts
[11:41:33] ngw: has joined #ruby
[11:41:34] shevy: malloc sounds kinda negative... like mal-align ... mal-thingy
[11:41:47] ljarvis: libmalware
[11:41:55] ljarvis: also known as Skype
[11:42:28] karmatr0n: has joined #ruby
[11:42:51] Xeago_: has joined #ruby
[11:43:51] pwnd_nsfw`: has joined #ruby
[11:43:56] nando294021: has joined #ruby
[11:44:24] mistermocha: has joined #ruby
[11:45:01] nando293921: has joined #ruby
[11:45:33] nankyokusei: has joined #ruby
[11:46:26] mistermo_: has joined #ruby
[11:47:19] araujo__: has joined #ruby
[11:48:25] blackgoat: has joined #ruby
[11:48:44] rodferso1: has joined #ruby
[11:48:51] zacstewart: has joined #ruby
[11:49:47] nando293921: has joined #ruby
[11:50:07] Hanmac: has joined #ruby
[11:51:34] pwnd_nsfw: has joined #ruby
[11:52:05] joonty: has joined #ruby
[11:52:44] eGGshke: has joined #ruby
[11:52:46] d0lph1n98: has joined #ruby
[11:54:04] Hyuk: has joined #ruby
[11:55:45] LoneHerm_: has joined #ruby
[11:57:16] drptbl: has joined #ruby
[12:03:42] binaryplease: I found https://github.com/guilhermesad/rspotify Is it possible to write a client that plays back music with that? I cant find that in the documentation
[12:03:47] RegulationD: has joined #ruby
[12:03:53] ElFerna: has joined #ruby
[12:05:14] norc: binaryplease: Did you bother to even look at the first line of the README?
[12:05:23] Hyuk: has joined #ruby
[12:06:01] binaryplease: norc: "Our Web API lets your applications fetch data from the Spotify music catalog and manage user’s playlists and saved music."
[12:06:16] binaryplease: fetch data meaning only metadata or audio data
[12:07:40] davedev24: has joined #ruby
[12:07:50] norc: binaryplease: Fair enough. Well Im fairly certain that it won't provide you with access to music.
[12:08:04] norc: binaryplease: https://developer.spotify.com/web-api/endpoint-reference/
[12:08:14] norc: binaryplease: there you can see the full extend of what the api offers.
[12:08:39] shevy: that looks more like retrieval only rather than playing music
[12:09:01] gnufied__: has joined #ruby
[12:09:10] synthroid: has joined #ruby
[12:09:40] norc: binaryplease: note if you click on for example "Get a track" you will get a full description of what that endpoint offers.
[12:09:43] sergio_101: has joined #ruby
[12:11:15] binaryplease: norc: shevy Thanks, i think its not possible that way then. I tought "retrieving data from cathalog" meant also getrting actual audio data. Seems like you only get metadata
[12:12:21] norc: binaryplease: Apologies for my harsh remark.
[12:12:32] ornerymoose: has joined #ruby
[12:12:59] binaryplease: norc: no problem :-)
[12:14:18] bkxd: has joined #ruby
[12:16:29] conta: has joined #ruby
[12:16:58] aryaching: has joined #ruby
[12:17:15] ornerymoose: has joined #ruby
[12:18:04] madgen: has joined #ruby
[12:19:57] Mon_Ouie: has joined #ruby
[12:21:52] rodferso1: has joined #ruby
[12:23:09] dstarh: has joined #ruby
[12:24:50] shevy: binaryplease you want to do some webbrowser ruby play thingy?
[12:26:27] mdw: has joined #ruby
[12:26:51] centrx: has joined #ruby
[12:28:44] tulak: has joined #ruby
[12:30:17] arlek_: has joined #ruby
[12:31:29] Bish: has joined #ruby
[12:31:41] Bish: hi folkies, how would u generate the last 12 month in format %Y-%m
[12:32:20] rbennacer: has joined #ruby
[12:35:45] vali: has joined #ruby
[12:36:32] vali: anyone have an idea on how to turn this timestamp (2016-06-21 13:07:35.344432+02) into ISO8601 ?
[12:36:42] flashpoint9: has joined #ruby
[12:37:19] ljarvis: >> require "time"; Time.parse("2016-06-21 13:07:35.344432+02").iso8601
[12:37:23] ruby[bot]: ljarvis: # => "2016-06-21T13:07:35+02:00" (https://eval.in/594390)
[12:37:57] vali: that looks perfect
[12:38:00] vali: love you
[12:38:42] Hyuk: has joined #ruby
[12:41:22] Bish: was this the most googlable question of #ruby ever?
[12:41:24] piotrj: has joined #ruby
[12:41:53] ljarvis: Bish: loop 12 times and just to a Date.new(year, month).strftime("%Y-%m") after you've amended the year/month with the offset?
[12:42:40] ljarvis: shouldn't be difficult with 12.times.map { |n| } n and Date.today.month
[12:43:08] Bish: well, yeah sure, but there will be january, where i need to get into negative :(
[12:43:29] karmatr0n: has joined #ruby
[12:43:32] pawnbox: has joined #ruby
[12:43:57] ljarvis: right, so you add 12 + 1 for the offset and you have the right month?
[12:44:04] madgen: has joined #ruby
[12:44:04] piotrj: has joined #ruby
[12:44:08] ljarvis: e.g. -2 + 12 + 1 == 11 / november
[12:44:41] mbologna2: has joined #ruby
[12:45:27] Bish: why aren't there functions do do that *whines*
[12:45:51] mbologna2: has joined #ruby
[12:46:20] arajakul: has joined #ruby
[12:46:21] ljarvis: I very much doubt it's a common thing. You could also load active support and just do a date.change(...) which may even handle the offsets for you
[12:46:37] fmcgeough: has joined #ruby
[12:47:20] Bish: how is making a statistic over month not a thing :/
[12:47:26] Bish: and yeah, rails :/
[12:49:07] mistermocha: has joined #ruby
[12:49:11] chip_: has joined #ruby
[12:50:06] Charles_CV: has joined #ruby
[12:50:10] the_drow: has joined #ruby
[12:50:17] mistermocha: has joined #ruby
[12:50:23] malconis: has joined #ruby
[12:50:33] mbolo__: has joined #ruby
[12:50:52] shevy: well if something is useful, it is useful!
[12:52:04] codecop: has joined #ruby
[12:52:08] mistermo_: has joined #ruby
[12:56:22] mistermocha: has joined #ruby
[12:56:30] pawnbox: has joined #ruby
[12:56:45] LoneHermit: has joined #ruby
[12:57:06] malconis: has joined #ruby
[12:57:10] Hyuk: has joined #ruby
[12:58:12] mistermo_: has joined #ruby
[13:00:15] cdg: has joined #ruby
[13:00:20] mistermo_: has joined #ruby
[13:00:58] k3rn31: has joined #ruby
[13:02:08] mistermocha: has joined #ruby
[13:02:46] Beverage: has joined #ruby
[13:03:24] roamingdog: has joined #ruby
[13:03:54] edwinvdgraaf: has joined #ruby
[13:04:37] RegulationD: has joined #ruby
[13:06:14] mistermo_: has joined #ruby
[13:07:22] conta: has joined #ruby
[13:08:01] mistermocha: has joined #ruby
[13:09:20] Hyuk: has joined #ruby
[13:09:43] ljarvis: it's not rails
[13:09:56] ljarvis: and statistic over a month doesn't really describe what you're doing
[13:09:59] Bish: >> (1..12).map { |n| calc = n-Time.now.month;if calc <= 0;12+calc;else calc;end; }
[13:10:03] ruby[bot]: Bish: # => [7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6] (https://eval.in/594426)
[13:10:08] mistermo_: has joined #ruby
[13:10:11] ChiefAlexander: has joined #ruby
[13:10:14] rbennacer: has joined #ruby
[13:10:43] Bish: ljarvis: im having a sql-select that gives me rows as in "{month:"2015-5",count:10023112}"
[13:10:57] Bish: problem is: sql doesn't output the months with count:0 because joins.
[13:11:11] futilegames: has joined #ruby
[13:11:40] Bish: so i started doing left joins, with weird generated sqls, resulting in uncacheable queries
[13:11:57] Bish: so i went to doing this, which is as ugly
[13:11:59] Bish: tl;dr im cursed
[13:12:01] ljarvis: ah right this is with SQL. Yeah i'd definitely be trying to keep it in SQL if possible
[13:12:04] timanema: has joined #ruby
[13:12:06] ljarvis: sounds like that's trouble, though
[13:12:12] mistermo_: has joined #ruby
[13:12:31] Bish: https://gist.github.com/anonymous/9bb66e835eea609265add51ae6daa64f
[13:12:35] Bish: look at this thing of beauty
[13:13:29] Bish: and because of "now()" it cannot be cached
[13:13:42] ljarvis: im a bit confused to be honest, but i haven't really been on the ball at all today so it's probably just me
[13:13:45] rueben: has joined #ruby
[13:13:52] ljarvis: doesn't the count relate to the total count per month?
[13:13:59] Bish: yes it does
[13:14:02] ljarvis: so you're going backwards and counting for a specific month, right?
[13:14:04] mistermocha: has joined #ruby
[13:14:20] ljarvis: so can't you just group by month desc and limit 12?
[13:14:30] Bish: SELECT date_format(`sent_at`, '%Y-%m') AS `month`, count(`job_mails`.`id`) AS `count` FROM `job_mails` WHERE (`sent_at` IS NOT NULL) GROUP BY `month`)
[13:14:54] Bish: ljarvis: yeah i could do that if count was not zero for one month
[13:15:06] Bish: because if i haven't send stuff in november, it will skip the month
[13:15:45] ljarvis: what about a nested select?
[13:15:46] mistermo_: has joined #ruby
[13:15:59] Bish: SELECT * FROM (select date_format(now() - INTERVAL 12 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 11 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 10 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 9 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 8 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 7 MONTH,'%Y-%m') as
[13:16:05] Bish: month UNION select date_format(now() - INTERVAL 6 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 5 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 4 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 3 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 2 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 1 MONTH,'%Y-%m') as month)
[13:16:11] Bish: AS `t1` NATURAL LEFT JOIN (SELECT * FROM (SELECT date_format(`sent_at`, '%Y-%m') AS `month`, count(`job_mails`.`id`) AS `count` FROM `job_mails` WHERE (`sent_at` IS NOT NULL) GROUP BY `month`) AS `t1`) AS `t2`
[13:16:18] Bish: didn't want to paste it, sorry
[13:16:20] Bish: but doesn't that look nested :D?
[13:16:28] ljarvis: nested like ass
[13:17:01] Bish: well, actually, if i replaced now() with a constant, the query would be fine
[13:17:10] Bish: cacheable and such
[13:17:52] mistermocha: has joined #ruby
[13:18:11] mdw: has joined #ruby
[13:18:19] aryaching: has joined #ruby
[13:19:03] ljarvis: I'm failing to see why a left join wouldn't work, but tbh with this kind of thing i'd usually faff around in psql until it worked
[13:19:30] Bish: left join is fine, but the now() prevents it from getting cached
[13:19:32] Bish: as i said
[13:19:34] ljarvis: there should be a service that allows you to do pg queries online with a dataset provided by someone who needs help
[13:19:43] ljarvis: right, but left join without the now()
[13:19:52] mistermo_: has joined #ruby
[13:19:54] Bish: well, implies i have a table with the last 12 month
[13:20:23] ljarvis: well, with all of your INTERVAL X months that implies the same
[13:20:25] ljarvis: as does the Ruby code
[13:20:45] Bish: i will just replace the now()
[13:20:54] Bish: and be happy with sql giving me stuff
[13:21:37] Xeago_: has joined #ruby
[13:21:49] piotrj: has joined #ruby
[13:21:49] mistermo_: has joined #ruby
[13:22:31] ljarvis: knowing that sql exists, you will never be happy
[13:22:42] ljarvis: and now neither will i
[13:23:41] mistermocha: has joined #ruby
[13:24:20] aupadhye: has joined #ruby
[13:24:32] GodFather: has joined #ruby
[13:24:33] swills_: has joined #ruby
[13:25:09] nando293921: has joined #ruby
[13:25:23] aupadhye_: has joined #ruby
[13:25:44] mistermo_: has joined #ruby
[13:26:45] edwinvdgraaf: has joined #ruby
[13:27:53] mistermocha: has joined #ruby
[13:30:49] mtkd: has joined #ruby
[13:31:36] mistermo_: has joined #ruby
[13:31:38] aegis3121: has joined #ruby
[13:32:29] Hyuk: has joined #ruby
[13:32:31] Vile`: has joined #ruby
[13:33:03] freerobby: has joined #ruby
[13:33:32] haxrbyte: has joined #ruby
[13:33:49] pawnbox: has joined #ruby
[13:35:32] mistermocha: has joined #ruby
[13:37:27] mistermo_: has joined #ruby
[13:39:32] mistermo_: has joined #ruby
[13:40:33] madgen: has joined #ruby
[13:40:55] Bish: ljarvis: you're welcome
[13:41:25] jrafanie: has joined #ruby
[13:41:27] mistermocha: has joined #ruby
[13:41:34] Xeago_: has joined #ruby
[13:43:26] mistermo_: has joined #ruby
[13:44:24] karmatr0n: has joined #ruby
[13:45:01] bkxd: has joined #ruby
[13:45:39] piotrj: has left #ruby: ()
[13:46:11] nankyokusei: has joined #ruby
[13:46:25] mistermocha: has joined #ruby
[13:48:35] mistermo_: has joined #ruby
[13:49:25] mattwashere: has joined #ruby
[13:49:53] Bish: just to torture you more:
[13:49:58] Bish: Database::CONNECTION[(1..12).to_a.reverse.map { |n| "select date_format('#{Time.now.strftime('%Y-%m-%d')}' - INTERVAL #{n} MONTH,'%Y-%m') `month`" }.join(" UNION ")]
[13:50:07] ChiefAlexander: has joined #ruby
[13:50:20] mistermo_: has joined #ruby
[13:50:27] etehtsea: has joined #ruby
[13:51:02] Xiti: has joined #ruby
[13:51:08] aupadhye: has joined #ruby
[13:52:17] mistermocha: has joined #ruby
[13:52:32] andromedian: has joined #ruby
[13:53:13] emilkarl: has joined #ruby
[13:56:09] hutch34_: has joined #ruby
[13:56:36] droidburgundy: has joined #ruby
[13:57:18] karmatr0n: has joined #ruby
[13:57:21] LoneHerm_: has joined #ruby
[13:58:21] mistermocha: has joined #ruby
[13:59:27] rkazak: has joined #ruby
[14:00:08] jgt: has joined #ruby
[14:02:27] the_drow: has joined #ruby
[14:03:57] mistermocha: has joined #ruby
[14:04:03] mattwashere: has joined #ruby
[14:04:08] roamingdog: has joined #ruby
[14:05:31] RegulationD: has joined #ruby
[14:06:24] Silthias: has joined #ruby
[14:07:38] DEac-: has joined #ruby
[14:09:02] flashpoint9: has joined #ruby
[14:09:49] rbennacer: has joined #ruby
[14:10:34] allcentury: has joined #ruby
[14:10:48] howdoi: has joined #ruby
[14:11:04] rbennacer: has joined #ruby
[14:12:16] VeryBewitching: has joined #ruby
[14:12:21] jrafanie_: has joined #ruby
[14:12:55] jbkc85: has joined #ruby
[14:12:57] mistermocha: has joined #ruby
[14:13:14] jbkc85: hi all, I'm trying to setup a development environment to work on a Gem locally using Docker. Was wondering if anyone had experience with it
[14:14:56] mistermo_: has joined #ruby
[14:15:52] harfangk: has joined #ruby
[14:16:37] afdafdafd: has joined #ruby
[14:16:54] mistermo_: has joined #ruby
[14:17:57] tish: has joined #ruby
[14:18:10] tish: /msg NickServ VERIFY REGISTER tish aauitlcdweju
[14:18:20] shevy: development environment sounds mighty complicated
[14:19:00] whiteline_: has joined #ruby
[14:19:00] mistermocha: has joined #ruby
[14:19:57] Neo--: has joined #ruby
[14:21:42] neoice: has joined #ruby
[14:21:52] bkxd: has joined #ruby
[14:21:54] timanema: has joined #ruby
[14:22:18] aryaching: has joined #ruby
[14:22:29] jbkc85: shevy: thats why I'm trying to make it easier :-P
[14:22:47] jbkc85: I'm reading up on all the ruby official repositories and would love to run all my development through these
[14:22:52] jbkc85: not having to install gems left and right
[14:22:58] mistermo_: has joined #ruby
[14:23:04] pawnbox: has joined #ruby
[14:23:16] macsteps: has joined #ruby
[14:23:48] shinnya: has joined #ruby
[14:24:00] spiette: has joined #ruby
[14:25:06] agentmeerkat: has joined #ruby
[14:25:38] tristanp: has joined #ruby
[14:25:40] piotrj: has joined #ruby
[14:28:27] eljimmy: has joined #ruby
[14:28:29] mistermocha: has joined #ruby
[14:29:04] ChiefAlexander: has joined #ruby
[14:29:37] kareeoleez: has joined #ruby
[14:30:47] mistermo_: has joined #ruby
[14:32:02] mattwashere: has joined #ruby
[14:34:47] toretore: jbkc85: what specifically are you having trouble with?
[14:35:10] jbkc85: toretore: anytime i go through the docs, for some reason I continue to get 'gem is missing'
[14:35:28] jbkc85: or, if i do the bundle package route (/vendor directory), its missing my local gem which is defined by a file system path
[14:35:32] jbkc85: rather than a remote
[14:36:09] mrgrieves: has joined #ruby
[14:36:12] jbkc85: and at the moment, I'm running a simple container to test my gem...i do a gem list --local, and get:
[14:36:20] rueben: has joined #ruby
[14:36:33] jbkc85: rest-client (1.8.0), yet...
[14:36:33] jbkc85: :1:in `require': cannot load such file -- rest-client (LoadError)
[14:36:46] toretore: how did you install ruby in the container?
[14:37:46] jbkc85: i used ruby:2.2.4 image
[14:37:51] jbkc85: official image that is
[14:38:46] jbkc85: i guess 2.2. I didn't use the '.4' :0-)
[14:39:16] kareeoleez: has joined #ruby
[14:40:32] skweek: has joined #ruby
[14:42:37] mistermocha: has joined #ruby
[14:42:41] aryaching: has joined #ruby
[14:43:46] karmatr0n: has joined #ruby
[14:43:52] SilverKey: has joined #ruby
[14:44:49] RenatoSilva: has joined #ruby
[14:46:31] mistermo_: has joined #ruby
[14:47:00] speakingcode: has joined #ruby
[14:48:03] edwinvdgraaf: has joined #ruby
[14:48:07] kareeoleez: has joined #ruby
[14:50:17] mistermocha: has joined #ruby
[14:50:49] CJKinni: has joined #ruby
[14:51:54] jhack: has joined #ruby
[14:52:25] mistermo_: has joined #ruby
[14:53:36] toretore: jbkc85: if it doesn't work with the official image just create your own
[14:53:37] safetypin: has joined #ruby
[14:53:44] deadnull_: has joined #ruby
[14:54:14] isberg: has joined #ruby
[14:54:23] rippa: has joined #ruby
[14:56:15] SilverKey: has joined #ruby
[14:56:16] jbkc85: I'm creating my own too, but i guess I'm trying to understand why its not working the way its documented
[14:56:24] jbkc85: I'm making a gist with the input, one sec
[14:56:59] jbkc85: like, here is the ruby2.2-onbuild
[14:57:09] jbkc85: https://gist.github.com/jbkc85/e37f132763fba8baeb827044ca889b37
[14:57:13] jhack: has joined #ruby
[14:57:57] kareeoleez: has joined #ruby
[14:58:10] jbkc85: and i do have a gemspec in the same directory labeled 'your_gem.gemspec'
[14:58:16] GodFather: has joined #ruby
[14:58:20] mistermocha: has joined #ruby
[14:59:28] mbolo__: has joined #ruby
[14:59:51] ngw: has joined #ruby
[15:01:58] jhack: has joined #ruby
[15:02:08] mistermo_: has joined #ruby
[15:04:00] aegis3121: has joined #ruby
[15:04:02] toretore: jbkc85: you have a gemspec in your ., but it's not in the container at build time
[15:04:06] aryaching: has joined #ruby
[15:04:17] jbkc85: yea, thanks for pointing that out....
[15:04:22] toretore: https://github.com/docker-library/ruby/blob/5d04363db6f7ae316ef7056063f020557db828e1/2.2/onbuild/Dockerfile
[15:04:27] jbkc85: I'm in the world of trying to remember Ruby little things like that kill me :(
[15:04:51] toretore: just write your own Dockerfile that does what you want
[15:04:52] imajes: hey- anyone got any good sources for ruby projects?
[15:04:54] skweek: has joined #ruby
[15:05:09] jbkc85: toretore: yea, I'm just trying to completely understand this first i guess
[15:05:14] roamingdog: has joined #ruby
[15:06:11] mistermocha: has joined #ruby
[15:06:27] RegulationD: has joined #ruby
[15:06:33] matp: has joined #ruby
[15:07:59] haxrbyte: has joined #ruby
[15:08:12] LoneHermit: has joined #ruby
[15:08:27] mistermo_: has joined #ruby
[15:09:34] toretore: jbkc85: it's as simple as i said, your Gemfile depends on a .gemspec which doesn't exist at the time it's run
[15:09:43] ItSANgo: has joined #ruby
[15:09:47] jher: has joined #ruby
[15:09:59] toretore: the onbuild version won't work with `gemspec`
[15:10:14] xaxisx: has joined #ruby
[15:10:38] aryaching: has joined #ruby
[15:11:05] diegoaguilar: has joined #ruby
[15:11:18] jbkc85: toretore: yea, I understand that....im trying to figure out the rest now with the whole 2.2 container (moved away from the onbuild)
[15:11:31] jbkc85: just in general, i want to figure out why this container development isn't working as their docs intended :-)
[15:12:03] toretore: it is working as intended, you're just not using it as intended
[15:12:41] toretore: just make your own Dockerfile, copy the necessary files into place and `RUN bundle`
[15:12:53] toretore: you don't need a magic onbuild to do this for you
[15:13:32] jbkc85: i understand. I am literally using the ruby:2.2 container, and while inside I am running a 'bundle install'. Gems are installing just fine. The problem is, once I run the ruby script, it still complains that its missing dependencies
[15:14:10] jbkc85: whether through `bundle exec ./ruby_script.rb`, which complains that bundler can't find the script, and if i run a straight `ruby ruby_script.rb`, it can't find my local gem which I reference using the PATH: ../your_gem command in the Gemfile
[15:14:33] jbkc85: I'm guessing it has to do with the PATH and not REMOTE Gemfile, but I'm trying to understand it
[15:14:56] roamingdog: has joined #ruby
[15:15:01] CloCkWeRX: has joined #ruby
[15:15:24] toretore: jbkc85: gist relevant files?
[15:15:32] kareeoleez: has joined #ruby
[15:15:33] jbkc85: certainly, one sec
[15:15:57] jbkc85: I'm basically picking up dev for another worker, and I don't use Ruby...so my first thought was container, but based on the approach I'm guessing it has a slightly different issue
[15:16:16] toretore: using a container should work fine
[15:18:18] Xeago_: has joined #ruby
[15:19:38] kareeoleez: has joined #ruby
[15:19:50] ornerymoose: has joined #ruby
[15:20:24] jbkc85: https://gist.github.com/jbkc85/7c29f3c30491401a53b9c033b8d0b8d7
[15:20:35] jbkc85: yea, thats what i thought. Thats why I'm digging deeper into how this guy was developing his gem locally
[15:20:48] jbkc85: and not sure if that way is considered 'best practice', but atm I'm not seeing why it wouldn't be either
[15:21:18] Gasher: has left #ruby: ("Leaving")
[15:26:05] toretore: `bundle exec` is for running executables that are installed as part of a gem
[15:26:42] toretore: what does your Gemfile look like?
[15:28:23] jbkc85: https://gist.github.com/jbkc85/7c29f3c30491401a53b9c033b8d0b8d7
[15:28:25] jbkc85: added in the gist
[15:28:52] jbkc85: in this case, the 'program' isn't a gem...its using a gem that we are developing on though
[15:29:29] pawnbox: has joined #ruby
[15:29:39] kareeoleez: has joined #ruby
[15:30:04] rueben: has joined #ruby
[15:30:06] toretore: what is the goal with this? do you want to build an image and then run it, or do you want to mount the lib into the container?
[15:31:18] toretore: there's a lot of weird stuff that makes assumptions about the environment it's run in
[15:32:05] toretore: `require '.anything' ` won't work unless . is in $PATH, which it's not by default
[15:32:17] toretore: it's bad practice anyway
[15:33:47] jbkc85: the goal is to create a container that could mount the users code and use as a dev environment for executing....nothing more
[15:34:02] jbkc85: i don't want to use Vagrant or Virtualbox, and frankly i don't want to install Ruby gems and manage it on my own computer
[15:34:05] snath: has joined #ruby
[15:34:08] jbkc85: id rather have an easily shippable 'this is the version...'
[15:34:57] smathy: has joined #ruby
[15:35:18] jbkc85: so what would i change the require to if its looking for a file local to the script being ran?
[15:35:32] jbkc85: require 'config/your_gemtools', or something different?
[15:36:34] toretore: yes, and make sure it's in $PATH
[15:36:53] urbanmonk: has joined #ruby
[15:36:57] ocbtec: has joined #ruby
[15:37:07] SilverKey: has joined #ruby
[15:37:18] jbkc85: so its never going to look in the local directory of the program?
[15:37:27] toretore: it's going to look in $PATH
[15:37:32] toretore: nothing more, nothing less
[15:37:38] jbkc85: interesting....
[15:37:42] toretore: you control what gets added to $PATH
[15:37:52] jbkc85: yea, absolutely
[15:38:03] Bish: tish: hi 4 letter bro
[15:38:05] Bish: nice password
[15:38:16] jbkc85: coming from a PHP development background, when you use things like 'include 'config/here.php', whatever...is there a similar way to do that then?
[15:38:23] jbkc85: I'm not sure why it was done this way...so I'm trying to understand is all
[15:38:27] jbkc85: the concept of 'require' that is
[15:38:38] Bish: jbkc85: yes.
[15:38:59] toretore: jbkc85: require will just look in $PATH for the file and load it if it exists
[15:39:20] Bish: and return true :3
[15:39:25] Bish: (or false if file is loaded already)
[15:39:31] toretore: if you want to load "config/something.rb" then "config" must be in $PATH
[15:39:31] Telecom: has joined #ruby
[15:39:47] Bish: unless you use require_relative
[15:40:04] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:05] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:05] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:06] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:07] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:07] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:08] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:08] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:09] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:09] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:10] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:10] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:11] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:11] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:12] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:12] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:12] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:13] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:19] ruby[bot]: to call for ops use the !ops command. You can find a list of channel staff on http://ruby-community.com/pages/irc_staff
[15:40:23] ruby[bot]: toretore: ops currently in #ruby: adaedra, aredridel, havenwood, Mon_Ouie, Radar, apeiros, baweaver, drbrain, jhass, ljarvis, miah, ruby[bot] and smathy
[15:40:24] Bish: what is wrong with people.
[15:40:26] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:26] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:27] shevy: webchatters should be rate-limited
[15:40:27] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:28] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:28] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:29] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:30] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:30] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:32] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:32] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:32] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:33] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:34] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:35] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:35] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:35] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:36] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:36] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:37] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:37] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:38] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:38] Telecom: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101010
[15:40:44] shevy: !kick Telecom
[15:40:47] Mon_Ouie: !spam Telecom
[15:40:47] ruby[bot]: +bb Telecom!*@*$#ruby-banned *!*@gateway/web/freenode/ip.93.91.194.103$#ruby-banned
[15:40:47] ruby[bot]: ruby[bot] kicked Telecom: is a bannable offense, see http://ruby-community.com/pages/user_rules
[15:42:27] Tim_Franco: has joined #ruby
[15:42:29] Tim_Franco: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101
[15:42:30] Tim_Franco: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101
[15:42:30] Tim_Franco: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101
[15:42:31] Tim_Franco: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101
[15:42:31] Tim_Franco: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101
[15:42:32] Tim_Franco: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101
[15:42:32] Tim_Franco: 0010101000011011010100010101010010001101010100101010110010110101000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010010001101010100101010110010110101001010101100110010110101010101000101101010010011010101001010101010100101010101010110001010100001101101010001010101010110011001011010101010100010110101001001101
[15:42:45] aryaching: has joined #ruby
[15:43:01] Mon_Ouie: !spam Tim_Franco
[15:43:01] ruby[bot]: +bb Tim_Franco!*@*$#ruby-banned *!*@gateway/web/freenode/ip.85.203.17.254$#ruby-banned
[15:43:08] vuoto: has joined #ruby
[15:43:16] ruby[bot]: ruby[bot] kicked Tim_Franco: is a bannable offense, see http://ruby-community.com/pages/user_rules
[15:43:44] shevy: the choice of the nicknames for the spamming is quite weird
[15:44:56] madgen: has joined #ruby
[15:46:12] jbkc85: toretore: thanks for the help by the way, I'm sorry if it took me a bit to understand some of the Gem concepts!
[15:46:54] Chair: has joined #ruby
[15:46:58] dionysus69: has joined #ruby
[15:46:58] nankyokusei: has joined #ruby
[15:47:13] RubyPlasma: has joined #ruby
[15:47:15] RubyPlasma: 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
[15:47:15] RubyPlasma: 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
[15:47:17] RubyPlasma: 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
[15:47:17] RubyPlasma: 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
[15:47:17] RubyPlasma: 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
[15:47:18] RubyPlasma: 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
[15:47:18] RubyPlasma: 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
[15:47:19] RubyPlasma: 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
[15:47:19] RubyPlasma: 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
[15:47:20] RubyPlasma: 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
[15:47:20] RubyPlasma: 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
[15:47:20] RubyPlasma: 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
[15:47:21] RubyPlasma: 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
[15:47:22] RubyPlasma: 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
[15:47:22] RubyPlasma: 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
[15:47:22] RubyPlasma: 00101010000110110101000101010100100011010101001010101100101101010001010100001101101010001010101001000110101010010101011001011010100101010110011001011010101010100010110101001001101010100101010101010010101010101011000101010000110110101000101010100100011010101001010101100101101010010101011001100101101010101010001011010100100110101010010101010101001010101010101100010101000011011010100010101010101100110010110101010101000101101010010011
[15:47:28] shevy: and the spammer is back
[15:47:28] synthroid: has joined #ruby
[15:47:29] Mon_Ouie: !spam RubyPlasma
[15:47:29] ruby[bot]: +bb RubyPlasma!*@*$#ruby-banned *!*@gateway/web/freenode/ip.208.123.223.254$#ruby-banned
[15:47:30] ruby[bot]: ruby[bot] kicked RubyPlasma: is a bannable offense, see http://ruby-community.com/pages/user_rules
[15:47:43] kareeoleez: has joined #ruby
[15:48:30] toretore: * ruby[bot] sets ban on *!*@gateway/web/freenode/*$#ruby-banned
[15:48:39] JackCook: has joined #ruby
[15:49:46] kareeole_: has joined #ruby
[15:49:48] Xeago_: has joined #ruby
[15:51:16] aegis3121: has joined #ruby
[15:56:15] Mack192: has joined #ruby
[15:57:19] SilverKey: has joined #ruby
[15:57:21] agent_white: has joined #ruby
[15:57:31] flashpoint9: has joined #ruby
[15:58:02] Neo--: has joined #ruby
[15:58:24] shevy: yo agent_white
[15:58:29] pawnbox: has joined #ruby
[15:58:30] shevy: you totally missed out on some spammer action here
[15:58:45] shevy: jbkc85 had so many questions before and now nobody is asking anything anymore :D
[15:58:50] kareeoleez: has joined #ruby
[15:58:57] ldnunes: has joined #ruby
[15:59:00] Xeago__: has joined #ruby
[15:59:25] Mack192: www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www
[15:59:28] jbkc85: yea, I'm just putting my head into the terminal at the moment...so instead of asking questions I'm just crossing things off :-P
[15:59:32] Mack192: www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www
[15:59:32] Mack192: www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www
[15:59:32] Mack192: www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www
[15:59:32] Mack192: www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www
[15:59:33] Mack192: www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www
[15:59:39] macsteps: has joined #ruby
[15:59:50] Mack192: www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www
[15:59:50] Mack192: www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www
[15:59:58] Mack192: www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www
[16:00:01] Mack192: www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www
[16:00:02] Mack192: www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www
[16:00:04] Mack192: www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www
[16:00:06] Mack192: www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www
[16:00:07] Mon_Ouie: !spam Mack192
[16:00:07] ruby[bot]: +bbb JackCook!*@*$#ruby-banned Mack192!*@*$#ruby-banned *!*@gateway/web/freenode/ip.191.101.30.254$#ruby-banned
[16:00:07] ruby[bot]: ruby[bot] kicked Mack192: is a bannable offense, see http://ruby-community.com/pages/user_rules
[16:01:52] raldu: what was that python spam about? why would anyone do that?
[16:02:57] jbkc85: cause they are a snake
[16:03:00] jbkc85: ha....hahaha
[16:03:19] amclain: has joined #ruby
[16:03:25] shevy: jhass - look, the snowman unicode is more useful than the half moon one, would you have thought so?! http://unicodepowersymbol.com/we-did-it-how-a-comment-on-hackernews-lead-to-4-%C2%BD-new-unicode-characters/
[16:03:33] diegoaguilar: has joined #ruby
[16:03:50] shevy: raldu dunno, I guess it says something about the mindset of the spammer
[16:05:44] Jenzo: has joined #ruby
[16:05:45] Charles_CV: Not even a snake cos Python is named after Monty Python. :D
[16:05:50] SilverKey: has joined #ruby
[16:06:39] shevy: the python logo looks like 2 snakes having sex https://www.python.org/static/community_logos/python-logo-master-v3-TM.png
[16:07:03] Charles_CV: Yes but the creator of the language hemself said that he was paying hommage to Monty Python
[16:07:07] macsteps: has joined #ruby
[16:07:16] Charles_CV: Yes but the creator of the language himself said that he was paying hommage to Monty Python
[16:07:17] RegulationD: has joined #ruby
[16:07:38] pawnbox: has joined #ruby
[16:07:40] imperator: has joined #ruby
[16:08:28] symm-: has joined #ruby
[16:08:50] VeryBewitching: If I pass an opts hash to #new, but the class does not have initialize defined, do the opts get stored anywhere?
[16:08:50] Charles_CV: https://docs.python.org/2.7/faq/general.html#id18
[16:09:13] Charles_CV: Anyone, let's not worry about snakes, shall we? :D
[16:09:27] RenatoSilva: has left #ruby: ("http://renatosilva.net - Renato Silva")
[16:10:55] shevy: VeryBewitching I think that every class has .new even if you dont define a method called initialize
[16:11:09] shevy: I doubt the hash will be stored anywhere if you don't save it on your own via initialize
[16:11:18] VeryBewitching: shevy: If I don't define initialize, but I do Foo.new name: 'Foo'
[16:11:39] Mon_Ouie: The default initialize method accepts no parameter
[16:11:39] Jayson_: has joined #ruby
[16:11:41] VeryBewitching: shevy: OK, that was my expectation, thank you :)
[16:11:43] Jayson_: www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.
[16:11:44] Jayson_: www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.
[16:11:45] Jayson_: www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.
[16:11:45] Jayson_: www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.
[16:11:45] Jayson_: www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.
[16:11:46] Jayson_: www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.
[16:11:46] Jayson_: www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.
[16:11:47] Jayson_: www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.python.org www.
[16:11:47] Mon_Ouie: !spam Jayson_
[16:11:47] ruby[bot]: +bb Jayson_!*@*$#ruby-banned *!*@gateway/web/freenode/ip.85.203.18.254$#ruby-banned
[16:11:49] ruby[bot]: ruby[bot] kicked Jayson_: is a bannable offense, see http://ruby-community.com/pages/user_rules
[16:12:04] VeryBewitching: ACTION prepares ICMP flood for www.python.org
[16:12:06] Mon_Ouie: >> class A; end; A.new(1, 2, 3)
[16:12:24] madgen: has joined #ruby
[16:12:25] ruby[bot]: Mon_Ouie: # => wrong number of arguments (given 3, expected 0) (ArgumentError) ...check link for more (https://eval.in/594552)
[16:14:01] [Butch]: has joined #ruby
[16:14:16] gregf: has joined #ruby
[16:14:32] hutch34_: has joined #ruby
[16:15:52] RegulationD: has joined #ruby
[16:15:53] [Butch]: has joined #ruby
[16:16:00] wigust: has joined #ruby
[16:16:10] Xeago_: has joined #ruby
[16:17:05] kareeoleez: has joined #ruby
[16:19:13] pawnbox: has joined #ruby
[16:19:19] jackjackdripper: has joined #ruby
[16:20:03] mistermocha: has joined #ruby
[16:21:18] pawnbox: has joined #ruby
[16:21:38] SCHAAP137: has joined #ruby
[16:24:43] centrx: has joined #ruby
[16:25:36] funrep: has joined #ruby
[16:25:50] centrx: has joined #ruby
[16:26:24] kareeoleez: has joined #ruby
[16:28:43] centrx: has joined #ruby
[16:30:52] funrep: is it possible to enable --simple-prompt by default in .irbrc?
[16:31:23] SilverKey: has joined #ruby
[16:31:28] flashpoint9: has joined #ruby
[16:31:42] funrep: IRB.conf[:PROMPT_MODE][:PROMPT_S] maybe does it..
[16:33:15] funrep: IRB.conf[:PROMPT_MODE] = :SIMPLE did it :)
[16:34:59] RegulationD: has joined #ruby
[16:35:41] kareeoleez: has joined #ruby
[16:36:30] ChiefAlexander: has joined #ruby
[16:36:37] diego1: has joined #ruby
[16:38:12] mistermocha: has joined #ruby
[16:39:49] SCHAAP137: has joined #ruby
[16:40:14] araujo: has joined #ruby
[16:42:43] arlek_: has joined #ruby
[16:43:07] speakingcode: has joined #ruby
[16:43:40] flashpoint9: has joined #ruby
[16:44:38] replay: has joined #ruby
[16:45:56] pawnbox: has joined #ruby
[16:46:19] pawnbox: has joined #ruby
[16:48:06] arlek: has joined #ruby
[16:48:33] shevy: "Detecting cats in images with OpenCV"
[16:48:40] shevy: I feel that we are solving the real problems of this world!
[16:49:38] joonty: has joined #ruby
[16:51:36] hahuang61: has joined #ruby
[16:52:06] centrx: has joined #ruby
[16:52:19] arlek_: has joined #ruby
[16:53:22] Silthias: has joined #ruby
[16:53:39] kareeoleez: has joined #ruby
[16:54:47] edub4rt: has joined #ruby
[16:54:58] Tonkers: has joined #ruby
[16:55:03] Tonkers: Hello #ruby
[16:55:16] Tonkers: I'm getting this error whenever I try to run anything with ruby in Cygwin. It's being insufferable, i've tried reinstalling multiple times. Any ideas?
[16:55:19] Tonkers: http://hastebin.com/onudaculeb.txt
[16:55:23] aegis3121: has joined #ruby
[16:55:27] Tonkers: also inb4 use a real OS
[16:55:53] mustmodify: has joined #ruby
[16:56:00] mustmodify: can someone explain why this is OK?
[16:56:02] mustmodify: >> a = ['a', 'b' 'v']
[16:56:06] ruby[bot]: mustmodify: # => ["a", "bv"] (https://eval.in/594570)
[16:56:11] xall: has joined #ruby
[16:56:27] mustmodify: seems like it should be a syntax error.
[16:56:31] jhass: mustmodify: inherited from C. So you can do "foo" \ [newline] "bar"
[16:56:48] smathy: >> 'x' 'y'
[16:56:51] ruby[bot]: smathy: # => "xy" (https://eval.in/594571)
[16:57:07] mustmodify: no newline required. Interesting.
[16:57:16] mustmodify: jhass, smathy: thanks
[16:57:23] centrx: Tonkers: https://www.google.com/search?q=gem+update+can't+load+kernel32 has some interesting results
[16:57:35] jhass: mustmodify: basically \[newline] makes the newline invisible (skipped) by the parser
[16:57:46] smathy: mustmodify, np, definitely annoying if you accidently miss a comma.
[16:57:51] mustmodify: Escapes it... hunh.
[16:58:04] jhass: mustmodify: so to the parser "foo" \[newline]"bar" is the same as "foo" "bar"
[16:58:15] mustmodify: jhass: interesting, thanks.
[16:59:51] rbennacer: has joined #ruby
[17:00:19] voodoofish4301: has joined #ruby
[17:00:26] freerobby: has joined #ruby
[17:01:02] bella_: has joined #ruby
[17:03:12] madgen: has joined #ruby
[17:04:35] Tonkers: centrx: nothing relevant it seems
[17:05:40] centrx: Tonkers: The first result looks like it explains the issue and has a possible workaround? https://sourceforge.net/p/msys2/tickets/10/
[17:06:11] cdg: has joined #ruby
[17:07:53] sauvin: has joined #ruby
[17:09:00] vuoto: has joined #ruby
[17:10:06] imperator: Tonkers, is running ruby without cygwin an option?
[17:10:44] Tonkers: imperator: that's probably the best solution at the moment
[17:11:07] imperator: ACTION recommends just grabbing the one-click installer and pressing on
[17:11:39] vuoto: has joined #ruby
[17:11:43] kareeoleez: has joined #ruby
[17:11:46] timanema: has joined #ruby
[17:12:14] vuoto: has joined #ruby
[17:12:43] vuoto: has joined #ruby
[17:13:30] Tonkers: imperator: yeah that seems to be the way to go :o working so far
[17:13:38] vuoto: has joined #ruby
[17:14:20] skweek: has joined #ruby
[17:15:03] weaksauce: has joined #ruby
[17:17:01] mwlang: has joined #ruby
[17:17:34] rcvalle: has joined #ruby
[17:18:00] agit0: has joined #ruby
[17:19:13] memorasus: has joined #ruby
[17:20:10] speakingcode: has joined #ruby
[17:20:19] matp: has joined #ruby
[17:21:02] Gadgetoid: has joined #ruby
[17:21:28] kareeoleez: has joined #ruby
[17:23:28] jmignault: has joined #ruby
[17:24:52] joonty: has joined #ruby
[17:25:36] tomchapin: has joined #ruby
[17:26:15] tomphp: has joined #ruby
[17:28:31] djbkd: has joined #ruby
[17:28:53] ornerymoose: has joined #ruby
[17:29:10] djbkd: has joined #ruby
[17:29:24] jmignault: has joined #ruby
[17:30:13] kareeoleez: has joined #ruby
[17:30:56] SilverKey: has joined #ruby
[17:32:23] Neo--: has joined #ruby
[17:33:36] drahosj: has joined #ruby
[17:33:46] drahosj: has left #ruby: ()
[17:35:06] jhack: has joined #ruby
[17:35:19] ChiefAlexander: has joined #ruby
[17:36:53] SilverKey: has joined #ruby
[17:38:46] whathappens: has joined #ruby
[17:39:02] mkinkles: has joined #ruby
[17:39:17] kareeoleez: has joined #ruby
[17:40:39] adam12: mkinkles: o\
[17:43:11] Moosashi: has joined #ruby
[17:43:38] Es0teric: has joined #ruby
[17:43:58] kareeoleez: has joined #ruby
[17:44:36] pilne: has joined #ruby
[17:46:01] mkinkles: Hi adam12, how're you?
[17:46:08] adam12: mkinkles: fine thanks. and you?
[17:46:52] polishdub: has joined #ruby
[17:47:01] mkinkles: adam12: Great!
[17:47:14] solocshaw: has joined #ruby
[17:47:52] nankyokusei: has joined #ruby
[17:48:12] macsteps: has joined #ruby
[17:48:14] wsewolod: has joined #ruby
[17:50:18] giz|work|2: has joined #ruby
[17:50:18] ishe_ua: has joined #ruby
[17:50:27] wsewolod: has joined #ruby
[17:51:08] ElFerna: has joined #ruby
[17:51:38] jgt: has joined #ruby
[17:52:06] mkinkles: adam12: I cannot decide what I want to develop... ha. Horrible, I know. I am brand new to development but I want to make this a career. I am currently doing windows sys admin work (don't like it) so I am in the works of getting a different job as a network engineer (better), so I am trying to figure out what to do. How did you find your thing?
[17:52:45] dfockler: has joined #ruby
[17:52:53] mkinkles: Web & Mobile sounds the best - not interested in desktop, games, or embdedded. I do love machine learning and have been reading tons about it. Whatever I build, I want to incorporate supervised model learning into it.
[17:53:34] solocshaw: has joined #ruby
[17:53:42] hahuang61: has joined #ruby
[17:54:41] matp: has joined #ruby
[17:55:10] ule: do you guys know a magic one line command to sort an array but fix one specific key to the first position?
[17:55:22] shevy: ule sounds like two operations
[17:55:37] shevy: most array methods do one thing only
[17:55:46] shevy: .sort .pop .push .unshift .neuterize
[17:56:01] ule: so I need to loop in all and create another array basically
[17:56:09] jhass: ule: .sort.tap {|a| a.unshift(a.delete(item)) } is probably indeed your best bet
[17:56:26] jhass: ule: the alternative is to pass a block to .sort
[17:56:47] ule: jhass: humm I'll do some research about this .tab, .unshift and .delete
[17:56:51] ule: thanks jhass
[17:56:53] jhass: .sort {|a, b| a == item ? -1 : b == item ? 1 : a <=> b } or so?
[17:57:18] ule: wtf.. I need to stop for a few minutes to understand what you just did
[17:57:52] dfockler: nested ternary ops
[17:58:53] neoice: has joined #ruby
[17:58:56] jenrzzz: has joined #ruby
[17:59:36] ule: x = ['ca', 'co', 'di', 'fe']
[17:59:42] ule: I need di in the first position
[17:59:45] ule: lemme try here
[18:00:25] jhass: .sort_by {|e| [e == item ? 0 : 1, e] } but that creates quite a few unnecessary arrays
[18:02:49] smathy: TIL, you can return the tuple array yourself.
[18:04:00] jhass: "tuple array"?
[18:05:07] sepp2k: has joined #ruby
[18:05:57] smathy: jhass, the sort_by examples I've seen have the block return just the "to be sorted on" value and it creates the [ to-be-sorted-on-value, original-value ] array itself. Oh, actually, maybe this is just because an array that starts with 0 will sort before one that starts with 1
[18:06:31] jhass: smathy: it is, sort_by internally builds a hash, not two element arrays
[18:06:31] craigp: has joined #ruby
[18:06:52] the_drow: has joined #ruby
[18:07:06] smathy: I see what you're doing now, never mind :)
[18:07:46] smathy: I thought you were building the tuple array for the Schwartzian transform itself.
[18:08:24] kirun: has joined #ruby
[18:08:30] pontiki: has joined #ruby
[18:09:01] dhruvasagar: has joined #ruby
[18:09:06] Madplatypus: has joined #ruby
[18:11:47] Moosashi: has joined #ruby
[18:12:32] roamingd_: has joined #ruby
[18:12:40] conta: has joined #ruby
[18:13:30] ruby-knss: has joined #ruby
[18:14:28] enterprisey: has joined #ruby
[18:21:06] zacstewart: has joined #ruby
[18:24:06] imperator: now there's a term i haven't heard in a while
[18:24:54] k3rn31: has joined #ruby
[18:25:10] Ruby0nRheyls: has joined #ruby
[18:25:21] LoneHerm_: has joined #ruby
[18:26:19] grekko: has joined #ruby
[18:26:42] ule: didn't work
[18:26:52] ule: maybe because it's not an array
[18:27:20] mostlybadfly: has joined #ruby
[18:27:28] jhass: I gave you three alternatives, what exactly did you try?
[18:27:38] SilverKey: has joined #ruby
[18:28:18] ule: it's something like this: [["car", {"foo" => 1, "foo2" => 2}, ["boat", {"foo3" => 3 .....
[18:28:31] ule: I need to order by "boat", "car"
[18:28:35] nankyokusei: has joined #ruby
[18:28:40] nadir: has joined #ruby
[18:29:33] xall: has joined #ruby
[18:29:54] apeiros: ule: I assume you're lacking an ] there…
[18:30:02] apeiros: (before ["boat", )
[18:30:20] ule: it was just an example to show the structure
[18:30:28] ule: is that a hash inside an array right?
[18:30:41] apeiros: sure, but it helps if the example structure actually reflects your structure :-p
[18:30:58] apeiros: it's a hash inside an array inside an array
[18:31:53] jher: has joined #ruby
[18:33:29] macsteps: has joined #ruby
[18:34:04] tAn: has joined #ruby
[18:35:11] smathy: ?code ule
[18:35:11] ruby[bot]: ule: We can't help you without your code, please post it to https://gist.github.com
[18:35:34] jenrzzz: has joined #ruby
[18:35:34] jenrzzz: has joined #ruby
[18:35:37] zeroDi: has joined #ruby
[18:36:00] mattwashere: has joined #ruby
[18:37:46] k3rn31: has joined #ruby
[18:37:46] giz|work: has joined #ruby
[18:39:00] daemoen: has joined #ruby
[18:39:10] imperator: has left #ruby: ("Leaving")
[18:40:05] Dimik: has joined #ruby
[18:42:10] aep-shoutlet: has joined #ruby
[18:42:32] omz__: has joined #ruby
[18:43:10] chip_: has joined #ruby
[18:43:47] bqscott: has joined #ruby
[18:44:44] Lildirt: has joined #ruby
[18:44:53] spudowiar: ?code ruby[bot]
[18:44:53] ruby[bot]: ruby[bot]: We can't help you without your code, please post it to https://gist.github.com
[18:45:12] ruby[bot]: spudowiar: I don't see no ?, whom should I tell about code?
[18:45:28] aegis3121: has joined #ruby
[18:45:33] rueben: has joined #ruby
[18:47:07] Ruby0nRheyls: Does anyone know how to deploy RubyOnRails on Heroku?
[18:47:13] ule: I'll create a code here
[18:47:17] Ruby0nRheyls: Could you help me on TeamViewer?
[18:47:31] ule: haahahhaah
[18:48:07] sp4rrow: has joined #ruby
[18:51:25] Authenticator: has joined #ruby
[18:53:26] Moosashi: has joined #ruby
[18:53:31] omz__: https://devcenter.heroku.com/articles/getting-started-with-rails4
[18:53:38] CJKinni: has joined #ruby
[18:54:27] hahuang61: has joined #ruby
[18:57:06] havenwood: Ruby0nRheyls: ^ +1 Heroku docs. The #RubyOnRails channel or Heroku support are good places to ask if you run into any trouble with the docs.
[18:57:10] smathy_: has joined #ruby
[18:57:48] pLaToOn: has joined #ruby
[18:59:33] replay: has joined #ruby
[18:59:43] shinnya: has joined #ruby
[19:01:12] miqlas-H: has joined #ruby
[19:01:14] xall: has joined #ruby
[19:01:21] craigp: has joined #ruby
[19:01:44] goodroot: has joined #ruby
[19:05:26] Xeago_: has joined #ruby
[19:06:29] pawnbox: has joined #ruby
[19:10:35] spiette: has joined #ruby
[19:11:22] vuoto: has joined #ruby
[19:11:34] ule: can I use array.delete('foo') ?
[19:11:46] vuoto: has joined #ruby
[19:11:51] ule: test.rb:4:in `[]': no implicit conversion of String into Integer (TypeError)
[19:11:56] aryaching: has joined #ruby
[19:12:04] shevy: %w( a b c ) - ['a'] # => ["b", "c"]
[19:12:12] freerobby: has joined #ruby
[19:12:28] SilverKey: has joined #ruby
[19:12:38] nankyokusei: has joined #ruby
[19:12:41] vuoto: has joined #ruby
[19:14:20] rindolf: has joined #ruby
[19:15:00] davedev24: has joined #ruby
[19:18:18] jenrzzz: has joined #ruby
[19:18:18] jenrzzz: has joined #ruby
[19:20:51] shevy: yo gandalf
[19:21:20] araujo_: has joined #ruby
[19:22:02] aryaching: has joined #ruby
[19:22:34] tape88: has joined #ruby
[19:24:30] pLaToOn: has joined #ruby
[19:25:17] TomyLobo: has joined #ruby
[19:25:19] djbkd: has joined #ruby
[19:27:29] synthroid: has joined #ruby
[19:27:47] roamingdog: has joined #ruby
[19:27:49] aryaching: has joined #ruby
[19:30:53] ule: http://pastebin.com/QUYHkrfg
[19:30:53] ruby[bot]: ule: as I told you already, please use https://gist.github.com
[19:31:27] Gasher: has joined #ruby
[19:31:34] ule: https://gist.github.com/anonymous/5cf5b337b2ee3e978d25928b73acb507
[19:31:53] sandelius: has joined #ruby
[19:32:05] ule: whats wrong here?
[19:32:09] shevy: it is ugly
[19:32:10] ule: looks infinite loop
[19:32:24] shevy: keep your data structures simple!
[19:32:35] ule: I don't know how, pls help me
[19:32:48] Neo--: has joined #ruby
[19:33:09] shevy: why do you use an array rather than a hash for instance
[19:33:37] ule: this structure I can't change.. it's comming from my db
[19:33:40] jackjackdripper: has joined #ruby
[19:33:41] karmatr0n: has joined #ruby
[19:33:47] spaceone: has joined #ruby
[19:33:49] ule: I just need to put "airplane" in the first position
[19:34:03] spaceone: is there a ruby on rails challenge?
[19:34:14] Moosashi: has joined #ruby
[19:34:52] ule: maybe I need to loop using .each and assign to another variable?
[19:35:10] macsteps: has joined #ruby
[19:36:13] spaceone: anyone knows how ruby on rails serializes cookies and sign them with a secret? or where i can read about it? i need code which unserializes it for me, i have the secret key and the value
[19:36:54] aryaching: has joined #ruby
[19:37:32] shevy: ule well one solution may be to delete the entry that has airplane but keep it assigned to a variable, then simply use .unshift to prepend to your Array again
[19:37:33] havenwood: ule: When you see an "airplane" what do you want to do? Replace that tuple with a new one or add a new "airplane" one?
[19:39:53] ule: havenwood: when I see airplane, I want to move to the first position in the array
[19:40:13] Neo--: has joined #ruby
[19:40:24] ule: but sometimes 'airplane' is not gonna be in the array, thats why I'm checking with that if
[19:40:51] ule: shevy: ok.. how can I assign to another array? b[] = content?
[19:41:52] ule: this is really simple in PHP
[19:42:06] ule: maybe I don't know ruby enough
[19:43:31] Hanmac: ule are you maybe looking for "sort_by" ?
[19:43:42] ule: !sort_by
[19:43:48] ule: !syntax sort_by
[19:44:47] Hanmac: &ri Enumerable#empty?
[19:44:47] `derpy: No results
[19:44:58] Hanmac: &ri Enumerable#sort_by
[19:44:58] `derpy: http://ruby-doc.org/core-2.3.1/Enumerable.html#method-i-sort_by
[19:44:59] ensyde__: has joined #ruby
[19:46:22] Neo--: has joined #ruby
[19:48:02] ule: jhass: :)
[19:49:48] mustmodify: has left #ruby: ()
[19:50:42] ule: airplane = [k => v]
[19:50:47] ule: search.delete(k)
[19:50:54] ule: search.insert(0, airplane)
[19:50:58] ule: that's it?
[19:51:14] sumobob: has joined #ruby
[19:51:34] ule: it goes to infinite loop again
[19:51:35] sp4rrow: has joined #ruby
[19:51:55] ruby-lang506: has joined #ruby
[19:52:55] ruby-lang506: a= [2016-06-08 01:23:45 -0700, 2016-06-08 04:14:23 -0700, 2016-06-08 04:18:27 -0700]---- timestamps
[19:53:10] ruby-lang506: how to sort the last updated time ?
[19:54:05] SilverKey: has joined #ruby
[19:54:15] vuoto: has joined #ruby
[19:54:37] shevy: use Time.parse then .sort
[19:55:12] hahuang61: has joined #ruby
[19:55:22] djbkd: has joined #ruby
[19:57:42] duderonomy: has joined #ruby
[19:58:40] codecop: has joined #ruby
[19:58:54] tAn: has joined #ruby
[19:59:01] DTZUBDUB: has joined #ruby
[20:00:24] jackjackdripper: has joined #ruby
[20:00:30] nankyokusei: has joined #ruby
[20:01:54] elifoster: has joined #ruby
[20:02:14] skade: has joined #ruby
[20:02:16] jhack: has joined #ruby
[20:02:59] last_staff: has joined #ruby
[20:03:25] jenrzzz: has joined #ruby
[20:03:50] aryaching: has joined #ruby
[20:04:12] tomchapin: has joined #ruby
[20:05:45] shtirlic: has joined #ruby
[20:06:08] finisherr: has joined #ruby
[20:06:45] shtirlic: has joined #ruby
[20:07:11] SilverKey: has joined #ruby
[20:07:30] vuoto: has joined #ruby
[20:07:51] Xeago_: has joined #ruby
[20:08:23] vuoto: has joined #ruby
[20:08:52] nando293921: has joined #ruby
[20:09:00] vuoto: has joined #ruby
[20:09:26] edub4rt: has joined #ruby
[20:09:50] c355E3B: has joined #ruby
[20:12:01] minimalism: has joined #ruby
[20:12:18] hackerdude: has joined #ruby
[20:12:23] ule: https://gist.github.com/anonymous/eaf9e66bbacefb0add9a3c9ed3c5a06c
[20:12:27] ule: this way works
[20:12:43] ule: what would you implove?
[20:12:52] ur5us: has joined #ruby
[20:13:10] diegoaguilar: has joined #ruby
[20:13:37] terrabl: has joined #ruby
[20:13:49] terrabl: When I do DateTime.parse(), how come it can't parse something like 06/23/2016 12:00 AM it's giving me an invalid date error
[20:14:08] jhass: ule: so you just want to put one at the front?
[20:14:14] ule: jhass: yes!
[20:14:32] havenwood: ule: airplane = search.assoc 'airplane'; search.unshift(search.delete(airplane)) if airplane
[20:14:52] ule: havenwood: wtffff
[20:14:56] ule: lemme test it
[20:16:03] jhass: terrabl: just don't use it, use strptime
[20:16:15] terrabl: ugh, i didnt want to lol
[20:16:32] jhass: it's bad for the reason you just discovered
[20:16:46] jhass: the domain is to complex and ambiguous to guess stuff correctly
[20:16:48] ule: jhass: that's what I was talking about!!
[20:16:50] jhass: it shouldn't exist
[20:16:55] ule: jhass: you rock!!!
[20:17:13] jhass: ule: get your reading skills checked, havenwood posted that solution
[20:17:16] blackgoat: has joined #ruby
[20:17:36] ule: thanks guys!!
[20:17:40] ule: havenwood: :*
[20:17:55] moeabdol: has joined #ruby
[20:19:40] hackerdude: has joined #ruby
[20:20:13] [Butch]: has joined #ruby
[20:20:20] maucar: has joined #ruby
[20:20:52] wrkrcoop: has joined #ruby
[20:21:31] wrkrcoop: anyone here familiar with the ruby elasticsearch gem?
[20:21:38] rodfersou: has joined #ruby
[20:22:08] jhass: ACTION sighs
[20:22:10] jhass: ?anyone wrkrcoop
[20:22:10] ruby[bot]: wrkrcoop: Just ask your question, if anyone has, is or can, they will respond.
[20:22:35] shevy: anyone here has a cat that can write ruby code?
[20:22:35] jhass: wrkrcoop: if I grep my logs for ?anyone wrkrcoop, how many times will it appear? 10? anyone wants to bet?
[20:23:09] edwinvdgraaf: has joined #ruby
[20:23:18] ciampix: has joined #ruby
[20:23:36] wrkrcoop: so i have to query ES for 10 ids, currently the API is querying for 1 document, it looks like this: https://gist.github.com/anonymous/06c78436609219918d65fac879effdb2
[20:24:22] wrkrcoop: im trying to figure out how to add multiple ids but the internet doesn’t seem to have info on it. dont see anything here https://github.com/elastic/elasticsearch-ruby/tree/master/elasticsearch-api or here https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-multi-get.html
[20:25:37] joonty: has joined #ruby
[20:25:41] Xiti: has joined #ruby
[20:26:30] wrkrcoop: mmm looking at search api … might be in here
[20:27:40] destructure: has joined #ruby
[20:27:41] pleiosaur: has joined #ruby
[20:27:42] LucasTT: has joined #ruby
[20:27:42] Nightmare: has joined #ruby
[20:27:42] IanMalcolm: has joined #ruby
[20:27:42] jvdev: has joined #ruby
[20:27:44] Seich: has joined #ruby
[20:27:45] thorgi: has joined #ruby
[20:27:45] ccooke: has joined #ruby
[20:27:45] klaas: has joined #ruby
[20:27:46] valeri_ufo: has joined #ruby
[20:27:46] jolamb: has joined #ruby
[20:27:46] G: has joined #ruby
[20:27:46] veloutin: has joined #ruby
[20:27:46] skade: has joined #ruby
[20:27:46] `derpy: has joined #ruby
[20:27:47] hostess: has joined #ruby
[20:27:47] Nilium: has joined #ruby
[20:27:48] Nahra: has joined #ruby
[20:27:48] Nuck: has joined #ruby
[20:27:48] bjmllr: has joined #ruby
[20:27:48] gigetoo: has joined #ruby
[20:27:49] Dimik: has joined #ruby
[20:27:49] MadWasp_: has joined #ruby
[20:27:49] Gasher: has joined #ruby
[20:27:49] ndrst: has joined #ruby
[20:27:50] joconcepts: has joined #ruby
[20:27:50] SegFaultAX: has joined #ruby
[20:27:51] cats: has joined #ruby
[20:27:51] FastJack: has joined #ruby
[20:27:52] marienz: has joined #ruby
[20:27:53] pocketprotector: has joined #ruby
[20:27:53] dionysus69: has joined #ruby
[20:27:53] Ishido: has joined #ruby
[20:27:54] Olipro: has joined #ruby
[20:27:58] dh64: has joined #ruby
[20:27:58] tekacs: has joined #ruby
[20:28:00] hahuang65: has joined #ruby
[20:28:00] j416: has joined #ruby
[20:28:01] lupine: has joined #ruby
[20:28:02] diegok: has joined #ruby
[20:28:03] cschneid: has joined #ruby
[20:28:05] moei: has joined #ruby
[20:28:07] funnel: has joined #ruby
[20:28:11] nickjj: has joined #ruby
[20:28:12] ged: has joined #ruby
[20:28:13] spacemud: has joined #ruby
[20:28:15] gypsydave5: has joined #ruby
[20:28:15] torandu: has joined #ruby
[20:28:16] timmow: has joined #ruby
[20:28:32] bastelfreak: has joined #ruby
[20:28:33] xxneolithicxx: has joined #ruby
[20:28:37] crank1988: has joined #ruby
[20:28:38] Y_Ichiro: has joined #ruby
[20:28:38] Y_Ichiro: has joined #ruby
[20:28:41] dopie: has joined #ruby
[20:28:43] dn`: has joined #ruby
[20:28:48] sapslaj: has joined #ruby
[20:28:49] jcp: has joined #ruby
[20:28:52] Caelum: has joined #ruby
[20:28:58] GGMethos: has joined #ruby
[20:28:59] kdisneur: has joined #ruby
[20:29:06] spaceone: has joined #ruby
[20:29:11] jord: has joined #ruby
[20:29:11] tfitts: has joined #ruby
[20:29:12] zacts: has joined #ruby
[20:29:14] iooner: has joined #ruby
[20:29:16] jmcc___________: has joined #ruby
[20:29:19] aeruder: has joined #ruby
[20:29:20] Eleeleth: has joined #ruby
[20:29:21] WebDawg: has joined #ruby
[20:29:23] c355E3B: has joined #ruby
[20:29:32] kireevco: has joined #ruby
[20:29:44] Liam`: has joined #ruby
[20:29:45] DenSchub: has joined #ruby
[20:29:46] angseus: has joined #ruby
[20:29:48] darix: has joined #ruby
[20:29:48] bttf: has joined #ruby
[20:29:50] charles81: has joined #ruby
[20:29:53] nyuszika7h: has joined #ruby
[20:29:54] tpendragon: has joined #ruby
[20:29:55] whathappens: has joined #ruby
[20:29:57] vali: has joined #ruby
[20:30:04] ec: has joined #ruby
[20:30:13] pipework: has joined #ruby
[20:30:16] mroth: has joined #ruby
[20:30:28] musl: has joined #ruby
[20:30:46] mostlybadfly: has joined #ruby
[20:30:54] cardoni: has joined #ruby
[20:30:56] jxf: has joined #ruby
[20:30:58] korben: has joined #ruby
[20:31:08] ule: havenwood: you gave me the right answer sorry.. I thought it was jhass
[20:31:17] CO2: has joined #ruby
[20:31:24] Hates_: has joined #ruby
[20:31:26] mrfooo: has joined #ruby
[20:31:37] meinside: has joined #ruby
[20:31:38] cyphase: has joined #ruby
[20:31:40] Radar: has joined #ruby
[20:31:56] Guest76648: Is Rupy the most object-oriented language?
[20:31:57] acerna: has joined #ruby
[20:32:14] Majost: has joined #ruby
[20:32:25] DukeDave: has joined #ruby
[20:32:34] Travis-42: has joined #ruby
[20:32:38] mrsolo: has joined #ruby
[20:32:49] freeze: has joined #ruby
[20:32:49] pmarreck: has joined #ruby
[20:32:54] jhass: mmh, I guess smalltalk still beats it
[20:32:56] Guest76648: Hi guys, I've only 1 question, Is Ruby the most object-oriented lang?
[20:33:04] rindolf: Guest76648: some people claim Smalltalk is.
[20:33:11] sandelius: yeah I would say Smalltalk
[20:33:31] havenwood: But isn't Ruby the Smalltalk dialect that survived?
[20:33:32] sandelius: and crystal?
[20:33:41] swgillespie: has joined #ruby
[20:33:56] jhass: nah crystal is probably below python even if we're honest
[20:33:59] Guest76648: Nah, Smalltalk is integrated with it's OS
[20:34:00] S01780: has joined #ruby
[20:34:04] dmnd: has joined #ruby
[20:34:12] saneax_AFK: has joined #ruby
[20:34:29] jhass: Guest76648: why are you wondering? it's a pretty useless semantic debate
[20:34:33] bove: has joined #ruby
[20:34:48] karmatr0n: has joined #ruby
[20:34:51] graft: has joined #ruby
[20:34:55] deeprave: has joined #ruby
[20:35:01] havenwood: Guest76648: What's the most romance language?
[20:35:22] andersh: has joined #ruby
[20:35:33] Guest76648: havenwood: I think it's your mother
[20:35:34] acalewin: has joined #ruby
[20:35:41] havenwood: Guest76648: Now now.
[20:35:42] braderhart: has joined #ruby
[20:36:03] HashNuke___: has joined #ruby
[20:36:05] macsteps: has joined #ruby
[20:36:26] Guest76648: havenwood: because that time I climaxed in her pussy, and she told me I love you
[20:36:33] havenwood: !troll Guest76648
[20:36:33] ruby[bot]: +bb Guest76648!*@*$#ruby-banned *!*@gateway/web/freenode/ip.93.91.194.245$#ruby-banned
[20:36:33] ruby[bot]: ruby[bot] kicked Guest76648: is a bannable offense, see http://ruby-community.com/pages/user_rules
[20:36:52] chandlerbing: has joined #ruby
[20:36:57] LoneHermit: has joined #ruby
[20:37:28] hackerdude: has joined #ruby
[20:37:41] Guest4184_______: has joined #ruby
[20:37:42] macsteps_: has joined #ruby
[20:37:58] ItSANgo: has joined #ruby
[20:38:07] angiebadillo: has joined #ruby
[20:38:10] shadowshell: has joined #ruby
[20:38:20] whathappens: has joined #ruby
[20:38:36] ggherdov: has joined #ruby
[20:39:07] imanc: has joined #ruby
[20:39:14] jhass: shevy: what's funny?
[20:39:16] machty: has joined #ruby
[20:39:21] rfv: has joined #ruby
[20:39:21] shevy: the conversation above
[20:39:26] jhass: what's funny about it?
[20:39:33] shevy: the conversation
[20:39:37] jhass: which part?
[20:39:40] pizzaops: has joined #ruby
[20:39:42] catbusters: has joined #ruby
[20:39:58] symm-: has joined #ruby
[20:40:03] spastorino: has joined #ruby
[20:40:05] jhass: so just don't
[20:40:20] jhill: has joined #ruby
[20:40:23] Bish: has joined #ruby
[20:40:26] Caerus|Away: has joined #ruby
[20:40:46] knowtheory: has joined #ruby
[20:40:46] xall: has joined #ruby
[20:40:57] eljimmy: has joined #ruby
[20:41:26] rubirc: has joined #ruby
[20:41:35] olivierjanss: has joined #ruby
[20:41:52] Radar: has joined #ruby
[20:42:08] unreal: has joined #ruby
[20:44:09] nyandoge: has joined #ruby
[20:44:27] parshap: has joined #ruby
[20:44:51] fedruantine: has joined #ruby
[20:45:22] ggherdov: has joined #ruby
[20:45:40] edwinvdgraaf: has joined #ruby
[20:45:47] kspencer: has joined #ruby
[20:46:02] [diecast]: has joined #ruby
[20:46:04] Lewix: has joined #ruby
[20:46:12] incomprehensibly: has joined #ruby
[20:46:21] acerna: has joined #ruby
[20:46:29] edwinvdgraaf: has joined #ruby
[20:46:30] parshap: Not super familiar with Ruby. Can someone review this for me? Usage is to determine how many cpu cores a virtual machine should use inside of a Vagrantfile https://gist.github.com/parshap/d523034a3d2768c2f9f07c75fd21d5f5
[20:47:11] caw: has joined #ruby
[20:47:35] ule: havenwood: How can I use that array.assoc in something like: {"foo" => {"a"=>1, "b"=>2}} ?
[20:48:01] havenwood: >> {"foo" => {"a"=>1, "b"=>2}}.assoc "foo"
[20:48:05] ruby[bot]: havenwood: # => ["foo", {"a"=>1, "b"=>2}] (https://eval.in/594627)
[20:48:22] elementaru: has joined #ruby
[20:48:22] jhass: that's... rather pointless
[20:48:32] jhass: isn't it?
[20:49:01] havenwood: ule: What are you trying to get at?
[20:49:13] yo61: has joined #ruby
[20:49:31] ule: havenwood: it's the same thing.. but instead of the previsious strucutre it's this one I just sent
[20:49:43] matp: has joined #ruby
[20:50:01] havenwood: parshap: There are gems that undertake the task or here's a gist that might be handy: https://gist.github.com/jimweirich/5813834
[20:50:07] ggherdov: has joined #ruby
[20:50:17] ule: havenwood: now I'm getting undefined method unshift
[20:50:31] havenwood: ule: With what data and what code?
[20:50:46] ule: havenwood: same code you sent me
[20:51:07] ule: division = search.assoc 'airplane'
[20:51:11] Jenzo: Uptime: 8h51m8s
[20:51:15] ule: airplane = search.assoc 'airplane'
[20:51:17] spaceone: has left #ruby: ("WeeChat 1.3")
[20:51:26] replay: has joined #ruby
[20:51:34] ule: search.unshift(search.delete(airplane)) if airplane
[20:52:03] pilne: holy poop! i just think i found my new bible for the next few weeks!
[20:52:19] roamingdog: has joined #ruby
[20:52:32] Xeago_: has joined #ruby
[20:52:38] rindolf: parshap: looks mostly fine - some duplicate code and missing underscores in identifiers.
[20:52:39] ruby[bot]: ule: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[20:52:48] rindolf: pilne: which one?
[20:53:16] parshap: rindolf: thanks! care to elaborate or fork the gist?
[20:53:42] jhass: ule: in this case your specific solution is "put something in front of the collection" while you're not even sure what your collection looks like. You should ask about how to solve the task that you think you need to put something in "front" for
[20:54:12] rindolf: parshap: well, numvcpus should be num_virtual_cpus or so.
[20:54:28] pilne: "thoughtful machine learning"
[20:54:35] rindolf: parshap: and you also have Integer(`...`) in two places.
[20:54:35] pilne: rindolf ^
[20:54:41] rindolf: pilne: ah.
[20:55:01] d0nn1e: has joined #ruby
[20:55:13] parshap: rindolf: got it. should I put the Integer(...) around the whole case expression? i.e,. Integer(case...)
[20:55:43] ule: havenwood: converging to to_a works.. I know just need to convert back to hash
[20:55:46] rindolf: parshap: or extract a function.
[20:55:56] parshap: right. ok, thanks
[20:55:57] hahuang61: has joined #ruby
[20:56:08] havenwood: ule: But it's a different question if you have a Hash to start with.
[20:56:26] ule: worked!
[20:56:28] rodfersou: has joined #ruby
[20:57:00] ule: so.. the question is.. what's the equivalent to unshift() if I want to use on a hash?
[20:57:11] jhass: ule: please don't ignore what I said
[20:57:21] ule: jhass: I won't
[20:57:27] jhass: you currently are
[20:57:44] UserInneed: has joined #ruby
[20:57:52] ule: jhass: sorry
[20:57:58] macsteps: has joined #ruby
[20:58:01] jher: has joined #ruby
[21:01:40] roamingdog: has joined #ruby
[21:01:51] karmatr0n: has joined #ruby
[21:02:21] jgt: has joined #ruby
[21:03:25] jenrzzz_: has joined #ruby
[21:03:36] douglascorrea: has joined #ruby
[21:03:38] hackerdude: has joined #ruby
[21:05:19] nrk: has joined #ruby
[21:08:07] Silthias1: has joined #ruby
[21:09:35] gnufied: has joined #ruby
[21:09:58] tokynet: has joined #ruby
[21:10:11] Moosashi: has joined #ruby
[21:16:21] jenrzzz: has joined #ruby
[21:16:36] nofxx: has joined #ruby
[21:16:36] nofxx: has joined #ruby
[21:17:18] tomphp: has joined #ruby
[21:18:10] andrelima: has joined #ruby
[21:18:18] hackerdude: has joined #ruby
[21:18:28] mattwashere: has joined #ruby
[21:19:06] andrelima: hello, I want to know why I'm keeping have the error "undefined local variable or method `calcularprejuizo' for GerenciadorDeRisco:Class (NameError)" in my code
[21:19:09] andrelima: here is the code
[21:19:49] andrelima: class GerenciadorDeRisco
[21:20:04] helpa: has joined #ruby
[21:20:08] andrelima: calcularprejuizo
[21:20:08] Moosashi: has joined #ruby
[21:20:21] diegoviola: I'm trying to find if a number is multiple of 5 in a array like this: numbers = (1..10).to_a
[21:20:32] chopin: has joined #ruby
[21:20:32] hxegon: andrelima: do not just paste you're code in here
[21:20:36] hxegon: !gist andrelima
[21:20:37] havenwood: andrelima: Please use gist.github.com to paste.
[21:20:40] ule: andrelima: tinha q ser brazuka mesmo
[21:20:55] nofxx: diegoviola, you want true/false or the number in return?
[21:21:26] baweaver: diegoviola: that's basic math
[21:21:31] diegoviola: nofxx: something like that
[21:22:10] madgen: has joined #ruby
[21:22:20] hxegon: >> (1..20).select { |n| n % 5 == 0 } # diegoviola
[21:22:28] nofxx: diegoviola, any for true/false, select to get the numbers... just check module ^
[21:22:47] baweaver: how can you tell if a number is divisible by 5?
[21:22:48] baweaver: or a multiple of, semantics really.
[21:23:15] Axy: has joined #ruby
[21:23:24] Neo--: has joined #ruby
[21:23:38] solocshaw1: has joined #ruby
[21:24:00] havenwood: diegoviola: another way to write `n % 5 == 0` is `modulo(5).zero?`
[21:24:17] neoice: has joined #ruby
[21:24:18] andrelima: https://gist.githubusercontent.com/anonymous/844768cb3940cf56f97a2903d29cb7bd/raw/c48795d57cafa4325a9ccb72e4c37a334a103d6e/gerenciador.rb
[21:24:30] nofxx: Any using couchdb/couchrest? don't get how to check for older revisions...
[21:24:31] havenwood: I mean: n.modulo(5).zero?
[21:24:44] isberg: has joined #ruby
[21:24:46] nofxx: havenwood, nice, didn't new that... something I do (x % y).zero?
[21:24:52] nofxx: sometimes*
[21:24:59] diegoviola: sorry for the basic math question :x
[21:26:05] andrelima: please, if anyone can help me
[21:26:37] nofxx: andrelima, whats the error? BR or PT?
[21:27:01] andrelima: "undefined local variable or method `calcularprejuizo' for GerenciadorDeRisco:Class (NameError)" in my code
[21:27:01] andrelima: <andrelima> here is the code
[21:27:29] nofxx: Brasiu siu siu aqui tb..... hehe andrelima that's a weird code....
[21:27:38] nofxx: andrelima, which tutorial are you following?
[21:28:16] andrelima: No tutorial at all.
[21:28:39] nofxx: andrelima, ok, you don't need class for that, that's not the idea
[21:29:21] nofxx: andrelima, please check 'chris pine learn to program'
[21:29:36] nofxx: andrelima, 1/2 hour there and your understand better what I mean
[21:29:39] andrelima: nofxx ok, I know that I don't have to have a structure for such a code, but it was just to training
[21:30:03] andrelima: noffx, I've declared the method correctly, didn't I?
[21:30:06] nofxx: andrelima, if you just remove the class it'll work... kinda complicated to explain to you the WHY now
[21:30:26] xaxisx: has left #ruby: ()
[21:30:29] yfeldblum: has joined #ruby
[21:30:37] nofxx: catch up with the book I told.. it's pretty small and succint andrelima
[21:32:58] ornerymoose: has joined #ruby
[21:33:31] wrkrcoop: man, a little bit of reading can solve any problem^^
[21:33:47] djbkd: has joined #ruby
[21:34:10] wrkrcoop: lmao at pasting the code in here
[21:34:19] giz|work: has joined #ruby
[21:34:28] andrelima: sorry, it was the first time I've consulted here
[21:34:50] Moosashi: has joined #ruby
[21:35:30] centrx: has joined #ruby
[21:36:46] `0ctayn: has joined #ruby
[21:37:21] memorasus1: has joined #ruby
[21:37:27] wrkrcoop: jp no biggie
[21:39:48] `0ctayn: has joined #ruby
[21:40:54] sp4rrow: has joined #ruby
[21:42:29] coffeecupp: has joined #ruby
[21:44:54] swills_: has joined #ruby
[21:45:48] jenrzzz: has joined #ruby
[21:53:28] djbkd: has joined #ruby
[21:56:12] Xeago_: has joined #ruby
[21:56:42] hahuang61: has joined #ruby
[21:57:25] allcentury: has joined #ruby
[21:57:39] wrkrcoop: has left #ruby: ()
[21:58:55] LoneHerm_: has joined #ruby
[22:00:32] diegoviola: is there a nicer way to do this? https://gist.github.com/1f081aa41a922074836d1f34697b70c6
[22:01:45] macsteps: has joined #ruby
[22:02:37] drbrain: diegoviola: visually nicer? I'm not sure
[22:03:24] urbanmonk: has joined #ruby
[22:03:30] drbrain: you could reduce the number of divisions in the worst case by `_, remainder_5 = n.divmod 5; _, remainder_7 = n.divmod 7`
[22:03:54] drbrain: then check for
[22:04:15] drbrain: then check if both are 0 for % 35, or if one or the other is divisible
[22:04:22] djbkd: has joined #ruby
[22:05:01] drbrain: I'm not sure if that would go faster or not, since you're trading one % for an extra == 0
[22:05:20] sumobob: has joined #ruby
[22:05:33] djbkd: has joined #ruby
[22:06:05] moeabdol: has joined #ruby
[22:06:17] nankyokusei: has joined #ruby
[22:06:44] robot: has joined #ruby
[22:07:23] drbrain: or maybe div_5 = n.divmod(5).last.zero?
[22:08:14] drbrain: diegoviola: oh, visually nicer, you could pull the `puts` out of the if
[22:08:26] mattwashere: has joined #ruby
[22:08:31] drbrain: result = if n % 35 == 0 …; puts result
[22:08:40] SilverKey: has joined #ruby
[22:09:17] diegoviola: not sure how I feel about the if checks
[22:09:56] LoneHermit: has joined #ruby
[22:09:57] Kero: has joined #ruby
[22:10:23] drbrain: % is never pretty
[22:10:34] drbrain: and the n.divmod(5).last.zero? isn't much prettier
[22:10:52] drbrain: (n % 35).zero? is weirder still
[22:11:26] drbrain: … at least you can give the divmod way a sensible name, so if divisible_5 and divisible_7 then …
[22:11:27] Kero: has joined #ruby
[22:13:57] dcunit3d: has joined #ruby
[22:15:49] firstdayonthejob: has joined #ruby
[22:15:56] ornerymoose: has joined #ruby
[22:18:59] isberg: has joined #ruby
[22:19:56] al2o3-cr: has joined #ruby
[22:21:54] Silthias: has joined #ruby
[22:24:31] diegoviola: drbrain: so something like this maybe? https://gist.github.com/2559b3b47bcb52d1f64b93eb250f182f
[22:27:01] Madplatypus: has joined #ruby
[22:27:10] d0nn1e: has joined #ruby
[22:27:35] drbrain: Like this: https://gist.github.com/drbrain/94c38425fdf3ef92f03c38920d932083
[22:28:21] drbrain: what I like about ↑ is the divisibility, message and printing are separate "paragraphs"
[22:30:12] patrick_star_3: has joined #ruby
[22:31:10] diegoviola: yeah I like that
[22:31:45] diegoviola: I didn't know you could do variable = if ...
[22:31:53] diegoviola: or at least I don't see much code like that around
[22:31:54] SilverKey: has joined #ruby
[22:31:59] drbrain: it's not common
[22:32:31] drbrain: in some languages if is a "statement" (has no value) instead of an "expression" (has a value)
[22:32:49] drbrain: Java and C are in the "statement" camp
[22:32:55] drbrain: case works the same way
[22:33:03] jgt: has joined #ruby
[22:33:04] lupine: remember when procedure vs function mattered?
[22:33:07] postmodern: has joined #ruby
[22:33:36] lupine: *cough*pascal*cough*
[22:34:33] twe4ked: has joined #ruby
[22:34:34] havenwood: diegoviola: just for a variation: https://gist.github.com/havenwood/569af2e526cda3bc0b66da8c5aaf4a00
[22:34:50] zenlot: has joined #ruby
[22:35:14] arajakul: has joined #ruby
[22:35:24] ikopico: has joined #ruby
[22:38:06] shevy: can we use "SSH File Transfer Protocol" in ruby?
[22:38:38] jhass: https://rubygems.org/gems/net-sftp
[22:39:03] havenwood: shevy: whatcha ftping?
[22:39:25] millerti: has joined #ruby
[22:40:05] shevy: havenwood I was wondering whether it would be worth to have any secure connection
[22:40:16] shevy: like for the www we have http or https
[22:40:28] shevy: I don't think I have used anything other than old ftp for well ftp
[22:40:40] drbrain: there is also an ftps
[22:40:43] jhass: there's FTP over TLS, FTPS
[22:40:53] jhass: but it's as terrible as FTP is
[22:40:59] drbrain: not more terrible?
[22:41:05] jhass: probably :P
[22:41:10] jhass: SFTP is a distinct protocol for the same job
[22:41:15] jhass: and should be much saner
[22:41:58] diegoviola: you don't check for 35 to be specific, but you still get that right, can you guys explain? havenwood, drbrain
[22:42:14] drbrain: diegoviola: 5 * 7 = 35
[22:42:16] ltd: has joined #ruby
[22:42:27] eggoez: has joined #ruby
[22:42:58] Silthias: has joined #ruby
[22:43:28] solars: has joined #ruby
[22:44:38] minimalism: has joined #ruby
[22:44:47] al2o3-cr: /\/\(* -)/\/\
[22:45:45] drbrain: unmatched close parenthesis, unexpected $undefined, expecting end-of-input
[22:46:16] al2o3-cr: is hsts bypass still a thing
[22:48:34] twe4ked: has joined #ruby
[22:50:17] eggoez: has joined #ruby
[22:55:28] mattwashere: has joined #ruby
[22:56:24] Neo--: has joined #ruby
[22:56:57] dcunit3d: has joined #ruby
[22:57:25] hahuang61: has joined #ruby
[22:57:31] flashpoint9: has joined #ruby
[22:57:53] timanema: has joined #ruby
[22:58:55] swills: has joined #ruby
[22:59:58] Neo--: has joined #ruby
[23:00:40] nando293921: has joined #ruby
[23:03:07] swills: has joined #ruby
[23:03:51] al2o3-cr: >> n = 5; [35.divmod(5^7), 35.divmod(5|7), 35.divmod(5&7), [n]].flatten.inject(:+) == 35
[23:03:54] ruby[bot]: al2o3-cr: # => true (https://eval.in/594660)
[23:04:56] xall_: has joined #ruby
[23:05:12] millerti: has joined #ruby
[23:05:42] jenrzzz: has joined #ruby
[23:05:42] jenrzzz: has joined #ruby
[23:06:07] whathappens: has joined #ruby
[23:06:20] ornerymoose: has joined #ruby
[23:06:21] snath: has joined #ruby
[23:08:21] cevett: has joined #ruby
[23:10:14] xall: has joined #ruby
[23:14:21] al2o3-cr: who was it that said don't IRC when drunk... (never a truer word said)
[23:14:46] shevy: I think it was jhass
[23:15:13] mr_rich101: has joined #ruby
[23:15:51] diegoviola: how would you test that code with minitest
[23:16:53] diegoviola: https://gist.github.com/havenwood/569af2e526cda3bc0b66da8c5aaf4a00
[23:17:02] diegoviola: like havenwood's code
[23:18:44] Synthead: has joined #ruby
[23:21:12] yfeldblum: has joined #ruby
[23:22:12] pawnbox: has joined #ruby
[23:22:13] acangiano: has joined #ruby
[23:24:04] millerti: has joined #ruby
[23:24:26] Xeago_: has joined #ruby
[23:24:29] macsteps: has joined #ruby
[23:26:05] Moosashi: has joined #ruby
[23:28:33] mattwashere: has joined #ruby
[23:29:36] fedruantine: has joined #ruby
[23:30:21] karapetyan: has joined #ruby
[23:30:44] karapetyan: has joined #ruby
[23:32:06] nando294121: has joined #ruby
[23:34:26] SCHAAP137: has joined #ruby
[23:35:43] isberg: Any recommendations on extracting json from html?
[23:36:06] jhass: nokogiri or oga
[23:36:07] isberg: nokogiri -> regex -> json ?
[23:36:13] jhass: why regex?
[23:36:37] isberg: To extract the json
[23:36:49] jhass: shouldn't be needed
[23:36:50] isberg: from something like a script tag
[23:37:10] jhass: you got an example?
[23:37:26] isberg: jhass <script>var x = {key: "value"}</script>
[23:37:33] ruby[bot]: Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
[23:37:44] rkazak: has joined #ruby
[23:37:52] lupine: u cannot have it
[23:37:59] isberg: Thats what I'm trying to do; extract json from html
[23:38:12] isberg: nothing more, nothing less
[23:38:32] jhass: well in that example a .partition(" = ").last is enough
[23:39:08] isberg: My misstake. I ment js objects
[23:40:15] nando293921: has joined #ruby
[23:40:17] mattwashere: has joined #ruby
[23:41:28] isberg: Guess I need a regex for json / js objects then
[23:43:52] koooge: has joined #ruby
[23:44:39] fullstack: has joined #ruby
[23:44:39] karapetyan: Trying solve this kata: https://www.codewars.com/kata/reduce-my-fraction/ here is my code: https://gist.github.com/anonymous/58f4021f8ad99299a131bfa809cabf8c tests passed fine, but when submitting, got error Process was terminated. It took longer than 8000ms to complete
[23:45:02] karapetyan: i didn't see any infinite loops
[23:47:20] edwardly: has joined #ruby
[23:47:21] edwardly: has joined #ruby
[23:48:08] riskish: has joined #ruby
[23:49:35] drbrain: I don't think it's an infinite loop
[23:49:48] drbrain: but I think for very large numbers you may loop for a long time
[23:50:43] drbrain: do you have examples for fraction[0] and fraction[1]?
[23:51:30] diegoviola: let's say I have puts "hello world" in a script, but no class/methods, how do I assert that? is there a way to just assert the output of the program or I need to call it from a class/method? (minitest)
[23:51:58] drbrain: diegoviola: without eval, it's hard to assert top-level method calls
[23:52:19] diegoviola: so best to wrap it into a class/method?
[23:52:21] diegoviola: and call that
[23:52:23] karapetyan: drbrain: i have examples, but on this examples all tests passes
[23:52:37] drbrain: diegoviola: there is assert_output for testing stdout and stderr
[23:52:40] drbrain: yes, wrap it
[23:52:44] drbrain: karapetyan: can I see a test?
[23:52:55] dcunit3d: has joined #ruby
[23:53:10] karapetyan: drbrain: https://gist.github.com/anonymous/58f4021f8ad99299a131bfa809cabf8c
[23:53:31] drbrain: I found 7560/3256 in the discussion, too
[23:54:00] jgt: has joined #ruby
[23:54:13] pawnbox: has joined #ruby
[23:54:17] moeabdol: has joined #ruby
[23:54:26] karapetyan: drbrain: i also tried add fraction.reverse! if fraction[0] > fraction[1]
[23:54:56] karapetyan: to avoid many iterations
[23:55:06] karapetyan: but this not help)
[23:55:59] gheegh: has joined #ruby
[23:56:34] karapetyan: and i see in task tags recursion... hmm may be i should solve it another way...
[23:57:03] douglascorrea: has joined #ruby
[23:57:33] drbrain: I think looping on numerator and denominator is too much
[23:57:41] jhass: r = Rational(*fraction)
[23:57:43] jhass: [r.numerator, r.denominator]
[23:57:48] drbrain: you should only need to loop on one of them
[23:57:49] jhass: I guess that doesn't quite count :P
[23:57:54] drbrain: jhass: sure, but it's a kata
[23:58:10] hahuang61: has joined #ruby
[23:58:34] jhass: one of the most popular approaches uses http://devdocs.io/ruby~2.3/integer#method-i-gcd