« Back to channel list

#ruby - 04 February 2016

« Back 1 day Forward 1 day »
[00:00:27] Pupeno: has joined #ruby
[00:01:27] KnownSyntax: has joined #ruby
[00:01:30] KnownSyntax: has joined #ruby
[00:02:50] weemsledeux: has joined #ruby
[00:03:25] jgpawletko: has joined #ruby
[00:04:33] nullwarp: has joined #ruby
[00:06:40] nerium: has joined #ruby
[00:07:43] s00pcan: has joined #ruby
[00:08:22] pawnbox: has joined #ruby
[00:11:49] jamw: has joined #ruby
[00:17:32] freerobby: has joined #ruby
[00:17:35] rjs90: has joined #ruby
[00:21:06] CloCkWeRX: has joined #ruby
[00:22:50] DLSteve: has joined #ruby
[00:24:44] stevemackinnon: has joined #ruby
[00:27:10] moshee: has joined #ruby
[00:27:10] moshee: has joined #ruby
[00:28:20] northfurr: has joined #ruby
[00:30:08] shazaum_: has joined #ruby
[00:30:43] victortyau: has joined #ruby
[00:33:53] despai_: has joined #ruby
[00:35:15] peterevjan: has joined #ruby
[00:35:27] elifoster: has joined #ruby
[00:37:28] joonty: has joined #ruby
[00:38:00] riceandbeans: why does the following cause an error
[00:38:36] riceandbeans: foo['bar'] = String.new(baz['biff'])
[00:38:44] riceandbeans: baz['biff'] is 1.5
[00:38:52] riceandbeans: No implicit conversion of Float into String
[00:39:26] solocshaw: has joined #ruby
[00:39:59] aupadhye: has joined #ruby
[00:40:13] eam: >> String.new(1.5)
[00:41:10] riceandbeans: I don't understand the issue
[00:41:17] shevy: String.new 1 TypeError: no implicit conversion of Fixnum into String
[00:41:17] riceandbeans: whp is there a conversion issue
[00:41:35] peterevjan: has joined #ruby
[00:41:37] shadoi: You might want String(baz['biff']) to coerce it.
[00:41:40] eam: well, if the bot were working you'd see that's what you're doing and the ultimate answer is it's an error becaue only things with #to_str can be passed to String.new
[00:41:42] tuelz1: has joined #ruby
[00:41:48] riceandbeans: so, not .new, just String()
[00:41:51] shevy: http://ruby-doc.org/core-2.2.0/String.html#method-c-new
[00:42:02] eam: riceandbeans: class Float; def to_str; to_s; end; end; String.new(1.5)
[00:42:13] despai: has joined #ruby
[00:42:21] cschneid: has joined #ruby
[00:42:43] william3: has joined #ruby
[00:43:44] hostess: has joined #ruby
[00:43:50] AustinMatherne: has joined #ruby
[00:46:58] riceandbeans: I don't understand eam
[00:48:16] pawnbox: has joined #ruby
[00:48:48] davedev24: has joined #ruby
[00:50:21] davedev24: has joined #ruby
[00:52:15] davedev24: has joined #ruby
[00:52:34] ElFerna: has joined #ruby
[00:53:31] lyoshajapan: has joined #ruby
[00:53:36] jgpawletko: has joined #ruby
[00:56:18] peterevjan: has joined #ruby
[00:56:42] lemur: has joined #ruby
[00:59:35] Ox0dea: riceandbeans: Kernel#String calls #to_s on its argument; String.new calls #to_str.
[01:00:26] jottr: has joined #ruby
[01:01:09] JDiPierro: has joined #ruby
[01:01:34] dlitvak: has joined #ruby
[01:01:37] Ox0dea: I take that back. Kernel#String tries to call #to_str first, but it uses #to_s as a fallback; String.new does not.
[01:02:14] Ox0dea: In short: just use #to_s.
[01:03:03] sucks: has joined #ruby
[01:04:58] IrishGringo: has joined #ruby
[01:05:09] s00pcan: has joined #ruby
[01:05:11] despai: has joined #ruby
[01:05:32] sepp2k: has joined #ruby
[01:06:06] northfurr: has joined #ruby
[01:06:55] Thib: has joined #ruby
[01:07:27] despai: hello people
[01:07:33] despai: I'm looking for a tool that I can define a code template
[01:07:39] despai: then ask for few variables
[01:07:46] despai: and render a skeleton template appending some variables
[01:08:00] despai: do you know any lib has anything like that?
[01:08:09] despai: I don't want to reinvent the wheel
[01:08:46] uris: has joined #ruby
[01:08:59] Ox0dea: despai: Sounds like bog-standard string interpolation?
[01:09:20] despai: I have few pieces of code that I always repeat, like a CRUD controller
[01:09:27] despai: and an ActiveRecord model
[01:09:40] despai: so I want to define the relationships separately and generate the AR model
[01:10:00] despai: something like the snippets that you have in atom or textmate
[01:10:19] despai: but programatically
[01:10:50] lyoshajapan: has joined #ruby
[01:11:00] DmitryBochkarev: has joined #ruby
[01:11:23] dopamean_: has joined #ruby
[01:11:52] moeabdol1: has joined #ruby
[01:13:42] moeabdol2: has joined #ruby
[01:14:03] lyoshajapan: has joined #ruby
[01:14:04] shadoi: has joined #ruby
[01:14:31] Ox0dea: despai: And `rails g controller` isn't what you're looking for?
[01:14:45] despai: I'm not using rails
[01:14:48] william3: has joined #ruby
[01:15:00] at46: has joined #ruby
[01:15:26] Musashi007: has joined #ruby
[01:16:14] DmitryBochkarev: has joined #ruby
[01:18:28] kies^: has joined #ruby
[01:19:36] freerobby: has joined #ruby
[01:20:11] lessless: has joined #ruby
[01:21:15] bhaak: has joined #ruby
[01:21:50] defendguin: has joined #ruby
[01:24:03] jsaak: has joined #ruby
[01:27:21] davedev24: has joined #ruby
[01:28:31] davedev24: has joined #ruby
[01:28:51] hxegon: has joined #ruby
[01:29:40] peterevjan: has joined #ruby
[01:31:11] volty: has joined #ruby
[01:32:43] BTRE: has joined #ruby
[01:34:20] IrishGringo: has joined #ruby
[01:34:27] baweaver: has joined #ruby
[01:34:57] jorrin: has joined #ruby
[01:34:57] blackgoat: has joined #ruby
[01:34:58] Suntzu: has joined #ruby
[01:37:23] tAn: has joined #ruby
[01:37:52] CloCkWeRX: has joined #ruby
[01:38:15] joonty: has joined #ruby
[01:39:10] p1k: has joined #ruby
[01:42:04] baweaver: has joined #ruby
[01:42:10] despai_: has joined #ruby
[01:42:22] tuelz1: has joined #ruby
[01:43:14] sepp2k1: has joined #ruby
[01:46:45] peterevjan: has joined #ruby
[01:49:10] FooMunki: has joined #ruby
[01:49:38] oetjenj: has joined #ruby
[01:49:49] sucks_: has joined #ruby
[01:50:10] jackjackdripper: has joined #ruby
[01:51:36] grill: has joined #ruby
[01:52:36] kies^: has joined #ruby
[01:54:04] weemsledeux: has joined #ruby
[01:54:41] DEA7TH: has joined #ruby
[01:57:43] ajaiswal: has joined #ruby
[02:00:48] Pupeno: has joined #ruby
[02:02:27] defendguin: has joined #ruby
[02:03:53] Thib: has joined #ruby
[02:04:21] Thib: has joined #ruby
[02:10:33] jbrhbr: has joined #ruby
[02:12:06] uris: has joined #ruby
[02:12:39] jamw: has joined #ruby
[02:12:45] dsilfen: has joined #ruby
[02:13:22] Rasi: has joined #ruby
[02:14:05] TomPeed: has joined #ruby
[02:14:30] CloCkWeRX: has joined #ruby
[02:15:52] betabet: has joined #ruby
[02:16:24] northfurr: has joined #ruby
[02:16:39] arescorpio: has joined #ruby
[02:17:00] stevemackinnon: has joined #ruby
[02:17:07] stevemackinnon: has joined #ruby
[02:17:26] exadeci: has joined #ruby
[02:18:32] jottr: has joined #ruby
[02:19:34] hacworld: has joined #ruby
[02:19:47] newbie22: has joined #ruby
[02:20:31] barhum2013: has joined #ruby
[02:21:22] peterevjan: has joined #ruby
[02:24:56] hxegon: has joined #ruby
[02:25:29] bb010g: has joined #ruby
[02:26:56] krobzaur_: has joined #ruby
[02:27:54] bronson: has joined #ruby
[02:29:16] aupadhye: has joined #ruby
[02:30:07] youch: has joined #ruby
[02:31:29] dubek1: has joined #ruby
[02:31:42] dubek1: has left #ruby: ()
[02:34:08] sneakerhax: has joined #ruby
[02:36:23] mpistone: has joined #ruby
[02:39:40] Vertroa: has joined #ruby
[02:40:12] joonty: has joined #ruby
[02:43:31] peterevjan: has joined #ruby
[02:43:48] elifoster: has joined #ruby
[02:44:24] tuelz1: has joined #ruby
[02:45:56] lyoshajapan: has joined #ruby
[02:47:51] araujo_: has joined #ruby
[02:48:03] peterevjan: has joined #ruby
[02:50:07] araujo_: has joined #ruby
[02:51:22] GriffinHeart: has joined #ruby
[02:51:43] ponga: has joined #ruby
[02:52:18] araujo_: has joined #ruby
[02:54:02] at46: has joined #ruby
[02:54:35] araujo_: has joined #ruby
[02:54:39] at46: has joined #ruby
[02:54:47] oetjenj: has joined #ruby
[02:55:07] betabet: has joined #ruby
[02:55:39] GriffinHeart: has joined #ruby
[02:57:26] baweaver: has joined #ruby
[02:57:29] uris: has joined #ruby
[02:58:09] GriffinHeart: has joined #ruby
[02:58:14] Bloomer: has joined #ruby
[02:59:28] sucks: has joined #ruby
[03:04:11] chouhoulis: has joined #ruby
[03:13:09] peterevj_: has joined #ruby
[03:16:48] lyoshajapan: has joined #ruby
[03:17:15] lyoshajapan: has joined #ruby
[03:17:17] DLSteve: has joined #ruby
[03:18:01] ftj: has joined #ruby
[03:21:05] jonathanwallace1: has joined #ruby
[03:22:36] Brklyn: has joined #ruby
[03:23:02] havenn: has joined #ruby
[03:23:38] Ruby_Rocks_007: has joined #ruby
[03:24:47] krobzaur_: has joined #ruby
[03:25:50] whathappens: has joined #ruby
[03:26:17] havenwood: whathappens: hi!
[03:30:08] B1n4r10: has joined #ruby
[03:31:15] uris: has joined #ruby
[03:31:59] x77686d: has joined #ruby
[03:32:09] peterevjan: has joined #ruby
[03:32:29] CloCkWeRX: has joined #ruby
[03:33:50] shadoi: has joined #ruby
[03:34:18] aryaching: has joined #ruby
[03:35:59] terminalrecluse: has joined #ruby
[03:36:40] brijesh: has joined #ruby
[03:37:41] lyoshajapan: has joined #ruby
[03:39:20] bridge: has joined #ruby
[03:40:58] joonty: has joined #ruby
[03:42:42] User458764: has joined #ruby
[03:45:07] tuelz1: has joined #ruby
[03:46:48] GriffinHeart: has joined #ruby
[03:51:23] jgpawletko: has joined #ruby
[03:51:41] Napear: has joined #ruby
[03:52:12] pawnbox: has joined #ruby
[03:53:28] hypermist: has joined #ruby
[03:53:43] hypermist: how much do people normally charge for ruby deving ?
[03:54:24] djbkd: has joined #ruby
[03:55:54] uris: has joined #ruby
[03:59:07] dopie: has joined #ruby
[03:59:47] dcunit3d: has joined #ruby
[04:00:08] askhat: has joined #ruby
[04:01:37] radgeRayden_: has joined #ruby
[04:07:22] zast: has joined #ruby
[04:08:55] Bugboy1028: has joined #ruby
[04:10:08] mg^: has joined #ruby
[04:10:54] somenick: has joined #ruby
[04:10:55] user083: has joined #ruby
[04:11:08] chouhoulis: has joined #ruby
[04:11:22] Vertroa: has joined #ruby
[04:12:37] Y_Ichiro: has joined #ruby
[04:12:37] Y_Ichiro: has joined #ruby
[04:12:44] cardoni: has joined #ruby
[04:12:48] crdpink2: has joined #ruby
[04:13:19] jamw: has joined #ruby
[04:13:32] Guest85414______: has joined #ruby
[04:13:34] vifino: has joined #ruby
[04:13:37] Zackio: has joined #ruby
[04:13:44] TvL: has joined #ruby
[04:13:47] jaiks: has joined #ruby
[04:13:48] Liam-: has joined #ruby
[04:13:56] mistym: has joined #ruby
[04:13:56] mistym: has joined #ruby
[04:13:59] apipkin: has joined #ruby
[04:14:00] jmcc_______: has joined #ruby
[04:14:02] jxf: has joined #ruby
[04:14:16] rideh: has joined #ruby
[04:14:18] epochwolf: has joined #ruby
[04:14:25] DefV: has joined #ruby
[04:14:29] G: has joined #ruby
[04:14:29] tinnvec: has joined #ruby
[04:14:29] jlyndon: has joined #ruby
[04:14:36] vdamewood: has joined #ruby
[04:14:41] cschneid: has joined #ruby
[04:14:48] bratchley: has joined #ruby
[04:15:05] rflot: has joined #ruby
[04:15:10] catbusters: has joined #ruby
[04:15:19] kireevco: has joined #ruby
[04:15:19] swgillespie: has joined #ruby
[04:15:21] Sp4rKy: has joined #ruby
[04:15:52] daxroc: has joined #ruby
[04:15:59] braderhart: has joined #ruby
[04:16:04] chrisseaton: has joined #ruby
[04:16:05] kith_: has joined #ruby
[04:16:16] zacstewart: has joined #ruby
[04:16:22] Sthebig: has joined #ruby
[04:16:22] Sthebig: has joined #ruby
[04:16:29] HashNuke: has joined #ruby
[04:16:33] bttf: has joined #ruby
[04:17:03] jgpawletko: has joined #ruby
[04:17:04] sdothum: has joined #ruby
[04:17:23] Kamilion: has joined #ruby
[04:17:26] LBRapid: has joined #ruby
[04:17:26] jord: has joined #ruby
[04:17:27] zipkid: has joined #ruby
[04:17:47] jmhmccr: has joined #ruby
[04:17:51] Miron: has joined #ruby
[04:17:57] Lloyd: has joined #ruby
[04:18:06] gmci: has joined #ruby
[04:18:11] skakri`: has joined #ruby
[04:18:20] havenn: has joined #ruby
[04:18:21] blackjid: has joined #ruby
[04:18:22] kellabyte: has joined #ruby
[04:18:23] dragon9783: has joined #ruby
[04:18:23] jhill_: has joined #ruby
[04:18:26] edwardly: has joined #ruby
[04:18:26] edwardly: has joined #ruby
[04:18:33] adam^: has joined #ruby
[04:18:35] andersh: has joined #ruby
[04:18:35] pmarreck: has joined #ruby
[04:18:42] kbni: has joined #ruby
[04:18:46] northfurr_: has joined #ruby
[04:18:50] tris: has joined #ruby
[04:19:02] basic`: has joined #ruby
[04:19:07] CihanKaygusuz: has joined #ruby
[04:19:07] northfurr: has joined #ruby
[04:19:08] Vertroa: has joined #ruby
[04:19:09] Klumben: has joined #ruby
[04:19:18] Coldblackice_: has joined #ruby
[04:19:21] parus: has joined #ruby
[04:19:23] lianj: has joined #ruby
[04:19:24] BackEndCoder: has joined #ruby
[04:19:24] tpendragon: has joined #ruby
[04:19:25] Didac: has joined #ruby
[04:19:28] jottr: has joined #ruby
[04:19:28] lnx: has joined #ruby
[04:19:29] ljarvis: has joined #ruby
[04:19:30] quarcu: has joined #ruby
[04:19:31] Lightsword: has joined #ruby
[04:19:32] hackeron: has joined #ruby
[04:19:43] Antiarc: has joined #ruby
[04:19:44] Skelz0r: has joined #ruby
[04:19:48] somenick: hi there, I'm trying to contribute a fix for https://github.com/elastic/logstash/blob/master/logstash-core-event/lib/logstash/timestamp.rb however with these tests I get these failures https://gist.github.com/alex88/1301f00644b6fee1c192 isn't parse a class method as at?
[04:19:49] tw1sted_: has joined #ruby
[04:19:51] skarn: has joined #ruby
[04:19:52] shapeshifter: has joined #ruby
[04:19:56] peitera: has joined #ruby
[04:19:58] lorn: has joined #ruby
[04:20:06] gf3: has joined #ruby
[04:20:09] hypermist: how much do people normally charge for ruby deving ? and has knowledge with bticoin stuf
[04:20:10] peterhu: has joined #ruby
[04:20:11] valeri_ufo: has joined #ruby
[04:20:12] mmasaki: has joined #ruby
[04:20:13] chridal: has joined #ruby
[04:20:14] redondos: has joined #ruby
[04:20:14] xpt: has joined #ruby
[04:20:15] aep: has joined #ruby
[04:20:16] romero: has joined #ruby
[04:20:21] mattpatt: has joined #ruby
[04:20:24] axisys: has joined #ruby
[04:20:26] sugardrunk: has joined #ruby
[04:20:27] lessless: has joined #ruby
[04:20:33] inukshuk: has joined #ruby
[04:20:48] kappy: has joined #ruby
[04:20:57] ckrailo: has joined #ruby
[04:20:57] sivoais: has joined #ruby
[04:21:10] frankS2: has joined #ruby
[04:21:19] mikolalysenko: has joined #ruby
[04:21:38] j416: has joined #ruby
[04:21:48] CloCkWeRX: has joined #ruby
[04:22:23] timmow: has joined #ruby
[04:22:26] braincrash: has joined #ruby
[04:22:37] nomadic: has joined #ruby
[04:22:57] machty: has joined #ruby
[04:23:15] gix: has joined #ruby
[04:23:31] GriffinHeart: has joined #ruby
[04:23:41] Meow-J: has joined #ruby
[04:23:46] Bloomer: has joined #ruby
[04:24:03] ec\: has joined #ruby
[04:24:14] rkazak: has joined #ruby
[04:24:52] lyoshajapan: has joined #ruby
[04:25:46] im0b: has joined #ruby
[04:27:04] ruurd: has joined #ruby
[04:27:55] Hanmac: has joined #ruby
[04:28:18] bronson: has joined #ruby
[04:28:29] GriffinHeart: has joined #ruby
[04:28:42] hxegon: has joined #ruby
[04:29:47] jgt2: has joined #ruby
[04:30:11] Cyrus: has joined #ruby
[04:30:15] dlitvak: has joined #ruby
[04:31:22] sivoais: has joined #ruby
[04:32:36] speakingcode: has joined #ruby
[04:33:23] pwnd_nsfw: has joined #ruby
[04:33:34] yfeldblum: has joined #ruby
[04:35:31] aryaching: has joined #ruby
[04:36:17] zacstewart: has joined #ruby
[04:38:33] uris: has joined #ruby
[04:40:15] jud: has joined #ruby
[04:40:55] pawnbox: has joined #ruby
[04:41:23] sivoais: has joined #ruby
[04:41:47] joonty: has joined #ruby
[04:44:27] gix: has joined #ruby
[04:45:01] baweaver: has joined #ruby
[04:45:45] lyoshajapan: has joined #ruby
[04:45:53] tuelz1: has joined #ruby
[04:46:20] Graphettion: has joined #ruby
[04:49:00] northfurr: has joined #ruby
[04:52:12] sivoais: has joined #ruby
[04:54:36] PlasmaStar: has joined #ruby
[04:54:45] sapslaj: has joined #ruby
[04:56:03] sgambino: has joined #ruby
[04:56:03] skade: has joined #ruby
[04:58:20] zacstewart: has joined #ruby
[05:01:42] ss_much: has joined #ruby
[05:02:10] sivoais: has joined #ruby
[05:03:38] moeabdol3: has joined #ruby
[05:04:31] dlitvak: has joined #ruby
[05:07:21] aryaching: has joined #ruby
[05:08:55] krz: has joined #ruby
[05:09:23] pawnbox: has joined #ruby
[05:10:09] Napear: can anyone recommend a good book/online tuts for learning CSS?
[05:10:24] Napear: like from a dev point of view
[05:12:35] peterevjan: has joined #ruby
[05:14:39] bluOxigen_: has left #ruby: ()
[05:15:05] Ruby_Rocks_007: has joined #ruby
[05:15:19] Ruby_Rocks_007: has left #ruby: ()
[05:17:43] kspencer: Napear: w3 schools
[05:18:25] PeteyT: has joined #ruby
[05:18:49] PeteyT: has left #ruby: ()
[05:20:32] terminalrecluse: has joined #ruby
[05:21:50] zacstewart: has joined #ruby
[05:22:45] Napear: kspencer: not a big fan of w3 schools, there lessons tend to be a bit vacuous, but thnx
[05:22:58] hypermist: How much do ruby developers charge ?
[05:23:30] ja: hypermist: ruby devs are paid in rubies
[05:23:45] ja: ???????
[05:23:47] hypermist: ja this is a serious matter :P
[05:24:23] hypermist: Cause the codes already there i just need it swapped to a different set of api, and i have no ruby knowledge so :\
[05:24:44] ja: hypermist: My suggestion: Google it! ^-^
[05:25:00] lyoshajapan: has joined #ruby
[05:25:25] PeteyT: has joined #ruby
[05:26:08] hypermist: hmph looks a bit to expensive lol ja
[05:27:30] ja: haha, well, Ruby devs tend to be well-paid, hypermist
[05:27:47] ptierno: has joined #ruby
[05:27:55] hypermist: indeed ja, but sadly im a poor prick so no way in hell am i gunna be able to pay lots :p
[05:28:33] askhat: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[05:28:39] PeteyT: has joined #ruby
[05:28:46] ja: hypermist: Better buckle up and learn Ruby yourself then! :DDD
[05:29:04] hypermist: ;DDD maybe ;p
[05:29:31] ptierno: has joined #ruby
[05:31:33] sivoais: has joined #ruby
[05:31:38] lyoshajapan: has joined #ruby
[05:32:03] djbkd: has joined #ruby
[05:32:05] lyoshajapan: has joined #ruby
[05:32:56] duncannz: has joined #ruby
[05:34:04] GriffinHeart: has joined #ruby
[05:37:13] sapslaj: has joined #ruby
[05:38:46] karapetyan: has joined #ruby
[05:40:28] peterevjan: has joined #ruby
[05:41:26] Esya-: has joined #ruby
[05:41:41] sivoais: has joined #ruby
[05:42:29] joonty: has joined #ruby
[05:43:06] psye: has joined #ruby
[05:43:17] zacstewart: has joined #ruby
[05:44:00] shakes: has joined #ruby
[05:45:05] last_staff: has joined #ruby
[05:45:49] jgt2: has joined #ruby
[05:46:39] tuelz1: has joined #ruby
[05:47:59] adgtl: has joined #ruby
[05:49:51] jamw: has joined #ruby
[05:50:48] jamw: has joined #ruby
[05:54:13] codecop: has joined #ruby
[05:54:28] hosttor: has joined #ruby
[05:56:20] shiffles: has joined #ruby
[05:58:16] Amnez777: has joined #ruby
[05:58:17] Abrin: has joined #ruby
[05:58:49] Amnez777: has joined #ruby
[05:59:21] Amnez777: has joined #ruby
[05:59:21] Amnez777: has joined #ruby
[06:01:24] dlitvak: has joined #ruby
[06:01:43] maokomioko: has joined #ruby
[06:01:53] danielwzd: has joined #ruby
[06:03:18] BSaboia: has joined #ruby
[06:09:16] chouhoulis: has joined #ruby
[06:09:22] Abrin: has joined #ruby
[06:09:38] ICantCook: has joined #ruby
[06:12:01] Elysia: has joined #ruby
[06:14:22] barhum2013: is .any? on an array slower than array.count > 0
[06:15:16] ja: I highly doubt it
[06:15:34] ja: But you???re using Ruby, so you shouldn???t be concerned with speed, barhum2013
[06:16:01] Ox0dea: barhum2013: https://github.com/bbatsov/ruby-style-guide#count-vs-size
[06:16:19] zacstewart: has joined #ruby
[06:16:28] Ox0dea: It's never okay to use Array#count without a block.
[06:16:36] ja: oh. ^-^ right
[06:17:38] barhum2013: Ox0dea: Thanks a lot!
[06:17:40] chipotle: has joined #ruby
[06:17:43] Ox0dea: barhum2013: Sure thing. :)
[06:18:07] triangles: has joined #ruby
[06:21:22] GriffinHeart: has joined #ruby
[06:21:33] jottr: has joined #ruby
[06:21:37] dionysus69: has joined #ruby
[06:22:21] romero: has joined #ruby
[06:22:48] aryaching: has joined #ruby
[06:22:56] sivoais: has joined #ruby
[06:23:24] peterevjan: has joined #ruby
[06:23:41] Abrin: has joined #ruby
[06:24:23] juddey: has joined #ruby
[06:24:47] pawnbox: has joined #ruby
[06:25:38] dsilfen: has joined #ruby
[06:27:20] yfeldblum: has joined #ruby
[06:27:51] bluOxigen: has joined #ruby
[06:30:44] sandstrom: has joined #ruby
[06:32:06] Mia: has joined #ruby
[06:32:06] Mia: has joined #ruby
[06:32:55] sivoais: has joined #ruby
[06:34:53] bluOxigen_: has joined #ruby
[06:37:58] shiffles: has joined #ruby
[06:38:31] pizzaops: So, when I run this code I get "stack level too deep". Googling tells me that's when you create some kind of never-ending recursion, but I don't see how that's happening here: https://gist.github.com/pizzaops/fc603ba5324d2a7fdab7
[06:38:58] Ox0dea: pizzaops: #hello is invoking #hello is invoking #hello...
[06:39:08] pizzaops: How is hello invoking hello?
[06:39:13] pizzaops: because i forgot the quotes, lolz
[06:40:11] shiffles: has joined #ruby
[06:40:33] pizzaops: I wrote that to confirm I could create helper methods to use in my class's initialize method, when the initialization logic is complex. This error got me worried I couldn't. Glad it was just a dumb mistake :D
[06:41:00] nunchuck: has joined #ruby
[06:41:12] rubynuby: has joined #ruby
[06:41:28] Ox0dea: Ew, complex initialization logic.
[06:41:49] rubynuby: hey, when i do :+.to_s
[06:41:52] rubynuby: it returns "+"
[06:42:00] rubynuby: but if i do "+".to_sym
[06:42:05] rubynuby: it shows up as :
[06:42:10] Ox0dea: >> '+'.to_sym
[06:42:11] ruby[bot]: Ox0dea: # => :+ (https://eval.in/512916)
[06:42:18] rubynuby: same for '+'.to_sym
[06:42:26] pizzaops: Ox0dea: blame the vSphere API, not me :/
[06:42:35] Ox0dea: pizzaops: Fair enough, I guess.
[06:42:48] pizzaops: You have to do a lot of initial work to get it to do anything at all
[06:43:03] Ox0dea: pizzaops: Sure, but the constructor isn't necessarily the best place to do it.
[06:43:12] joonty: has joined #ruby
[06:43:20] rubynuby: maybe something is wrong with my ruby
[06:44:03] Ox0dea: It'd be your environment, not the interpreter.
[06:44:12] rubynuby: yeah, something is wrong with what I'm doing on my computer
[06:44:33] Ox0dea: Gonna have to nuke it from orbit, I reckon.
[06:45:33] rubynuby: it works for :- but not for the others
[06:45:49] Ox0dea: It might be your font?
[06:46:26] karapetyan: has joined #ruby
[06:46:36] zacstewart: has joined #ruby
[06:47:08] ponga: has joined #ruby
[06:47:21] rubynuby: well, i wanted to install ubuntu on my computer anyways
[06:47:22] tuelz1: has joined #ruby
[06:47:24] elifoster: has joined #ruby
[06:47:25] rubynuby: might be a good time to do it
[06:47:30] Ox0dea: It's a sign!
[06:47:39] rubynuby: alright, thanks, im off
[06:47:42] rubynuby: has left #ruby: ()
[06:48:35] norc: has joined #ruby
[06:48:39] bluOxigen: has joined #ruby
[06:48:40] Macaveli: has joined #ruby
[06:49:27] pizzaops: Ox0dea: I think I figured out a way to avoid having to do it in the constructor. I was originally doing it to avoid calling a method that would always make a bunch of api calls, but I figured out a way to make it not do that. Can I ask for your thoughts? https://gist.github.com/pizzaops/1d14cbb8da1d247d0649
[06:50:20] pizzaops: For the sake of context,`@obj` is an instance of VirtualMachine, and I'm recursively going up the hierarchy to find the instance of "Datacenter" that represents the datacenter it's stored in.
[06:50:51] Ox0dea: pizzaops: So that @vm_datacenter instance variable is being set elsewhere?
[06:50:52] sivoais: has joined #ruby
[06:51:24] pizzaops: Ox0dea: ah good catch. I meant to make it set that, instead of just doing the return
[06:52:40] Ox0dea: pizzaops: Here's an approach that passes for idiomatic in some circles: https://eval.in/512919
[06:52:48] pizzaops: Ox0dea: fixed: https://gist.github.com/pizzaops/1d14cbb8da1d247d0649
[06:52:49] norc: Ox0dea, do you have any technique handy to change an objects superclass? (charlies method has been nobu'd a while ago)
[06:52:55] norc: Also good morning on that note.
[06:52:59] Ox0dea: norc: I do. :)
[06:53:31] Ox0dea: norc: Er, wait... one of us has probably missed a subtlety.
[06:53:52] Ox0dea: I can't help but assume you're familiar with RBasic by now.
[06:53:56] norc: Regarding the greeting or what I asked for?
[06:54:08] julieeharshaw: has joined #ruby
[06:54:09] Ox0dea: Nothing subtle about it always being morning. :P
[06:54:50] norc: Oh I can see where this is going.
[06:55:47] norc: I came here expecting a Ruby land solution though. :-)
[06:56:08] norc: Im wondering whether its safe to simply change klass..
[06:56:33] Ox0dea: norc: Right, that's the approach I had in mind, but it's not quite the same thing. :/
[06:56:41] dEPy: has joined #ruby
[06:57:04] Puffball: has joined #ruby
[06:57:20] lurch_: has joined #ruby
[06:58:24] berserk_ren: has joined #ruby
[06:58:30] norc: Ox0dea: Basically I just want dynamic_cast<> semantics to cast an object to an inherited class object. :p
[06:59:13] Ox0dea: norc: Aye, I know how you mean. I've poked around at the edges on this before, but never quite dug in.
[06:59:28] Ox0dea: dynamic_cast<> for Ruby should absolutely be a thing.
[07:00:06] Ox0dea: There's the TypeData_* API under the hood, but I don't know whether it can be emulated robustly with Fiddle alone.
[07:00:11] Ox0dea: *TypedData
[07:00:53] sivoais: has joined #ruby
[07:01:30] moeabdol4: has joined #ruby
[07:01:37] GriffinHeart: has joined #ruby
[07:02:08] gorodetsky: has joined #ruby
[07:02:13] norc: Ox0dea: With dynamic_cast we could simply get rid of refinements, since that seems more like a workaround to achieve a similar thing.
[07:02:23] beawesomeinstead: has joined #ruby
[07:03:59] akkad: has joined #ruby
[07:04:04] jbrhbr: has joined #ruby
[07:04:34] apeiros: norc: gotta run, but refinements are lexically scoped. changing the superclass wouldn't. no?
[07:04:36] apeiros: ACTION off
[07:05:49] solars: has joined #ruby
[07:05:56] weemsledeux: has joined #ruby
[07:06:06] troulouliou_div2: has joined #ruby
[07:06:54] ur5us: has joined #ruby
[07:07:02] jbrhbr1: has joined #ruby
[07:07:34] burgestrand: has joined #ruby
[07:08:00] GriffinHeart: has joined #ruby
[07:08:10] Ox0dea: norc: https://eval.in/512921
[07:08:22] Ox0dea: I'm with apeiros on not quite seeing the applicability to refinements, though.
[07:08:54] kerunaru: has joined #ruby
[07:09:06] norc: Ox0dea: Let me show you an example of what I mean.
[07:09:15] norc: Or no. This is more easily explained.
[07:09:49] dEPy_: has joined #ruby
[07:09:57] UtkarshRay: has joined #ruby
[07:11:09] sivoais: has joined #ruby
[07:11:44] krzkrz: has joined #ruby
[07:11:56] chouhoulis: has joined #ruby
[07:11:56] djbkd: has joined #ruby
[07:12:41] norc: Ox0dea: The whole point of refinements is because you want to change the behaviour of some class in some area of your code. Inheritance does that for you already.
[07:13:07] tvw: has joined #ruby
[07:13:34] Ox0dea: norc: Aye, and refinements are for "undoing" inheritance without getting your hands dirty.
[07:14:44] norc: Which basically is just casting semantics. First you want an Array object to be a SerializableArray, and after a while you want it to be a normal Array object again.
[07:15:04] norc: (Or maybe that particular object can stay a SerializableArray)
[07:16:14] snguyen: has joined #ruby
[07:17:27] Ox0dea: You're right that Fiddle could be used to emulate refinements, but you'd have to manually do all the stuff you get for free by dint of their being lexically scoped.
[07:18:14] haasn: has joined #ruby
[07:19:40] mhoungbo: has joined #ruby
[07:20:39] ramfjord: has joined #ruby
[07:21:16] norc: Ox0dea: The "advantage" I see, is that you can change the behaviour of classes that some code outside your control uses, although I am still not entirely convinced whether that is a good thing.
[07:21:17] sivoais: has joined #ruby
[07:21:26] norc: (Since it completely breaks the concept of interfaces)
[07:21:46] Ox0dea: It's not a good thing. :P
[07:22:00] Ox0dea: But people sometimes do bad things for good reasons.
[07:22:10] norc: That is how ActiveRecord was created.
[07:23:01] joneshf-laptop: has joined #ruby
[07:23:35] dEPy: has joined #ruby
[07:23:48] snguyen: has joined #ruby
[07:24:13] vl408: has joined #ruby
[07:25:26] Mon_Ouie: has joined #ruby
[07:25:52] adgtl: has joined #ruby
[07:27:23] vikas027: has joined #ruby
[07:28:33] scepticulous: has joined #ruby
[07:29:37] Ox0dea: norc: https://github.com/banister/remix
[07:29:59] Ox0dea: I imagine it'd require just shy of a Herculean effort to bring that up to speed.
[07:30:07] bronson: has joined #ruby
[07:30:10] x77686d: has joined #ruby
[07:30:40] troulouliou_div2: has joined #ruby
[07:31:27] sivoais: has joined #ruby
[07:32:05] User458764: has joined #ruby
[07:34:30] nodejunkie: has joined #ruby
[07:35:04] Infra-Red: has joined #ruby
[07:36:51] dexter_e: has joined #ruby
[07:37:12] PedramT: has joined #ruby
[07:37:47] solars: has joined #ruby
[07:37:50] atmosx: has joined #ruby
[07:37:58] araujo_: has joined #ruby
[07:39:06] mondok: has joined #ruby
[07:40:01] netcho: has joined #ruby
[07:41:29] sivoais: has joined #ruby
[07:43:37] brendan-: has joined #ruby
[07:43:59] joonty: has joined #ruby
[07:44:46] firstdayonthejob: has joined #ruby
[07:44:52] Macaveli: has joined #ruby
[07:45:15] PedramT: has joined #ruby
[07:46:33] jgt2: has joined #ruby
[07:47:23] moeabdol: has joined #ruby
[07:47:35] Infra-Red: has joined #ruby
[07:48:12] tuelz1: has joined #ruby
[07:50:06] karapetyan: has joined #ruby
[07:50:16] andikr: has joined #ruby
[07:51:33] sivoais: has joined #ruby
[07:51:46] pawnbox: has joined #ruby
[07:52:02] norc: Is there a way to use refinements in pry?
[07:55:09] Brklyn: has joined #ruby
[07:56:36] Infra-Red: has joined #ruby
[07:56:46] mdw: has joined #ruby
[07:57:47] DanielI: has joined #ruby
[07:58:22] Infra-Red: has joined #ruby
[07:58:28] Hobbyboy: has joined #ruby
[07:58:38] blackms: has joined #ruby
[07:59:13] jbrhbr: has joined #ruby
[07:59:14] DanielI: has joined #ruby
[08:01:30] sivoais: has joined #ruby
[08:01:38] sandstrom: has joined #ruby
[08:02:04] zyzioziom: has joined #ruby
[08:03:29] vinleod: has joined #ruby
[08:03:30] Ox0dea: norc: `TOPLEVEL_BINDING.eval 'using ...'` doesn't raise, but it also doesn't activate. :<
[08:03:36] karapetyan: has joined #ruby
[08:04:06] nrsk_: has joined #ruby
[08:05:07] nrsk_: has joined #ruby
[08:07:24] Ox0dea: Which is maybe a bug?
[08:08:53] ta: has joined #ruby
[08:11:01] fedexo: has joined #ruby
[08:11:31] sivoais: has joined #ruby
[08:11:58] eGGsha: has joined #ruby
[08:12:31] ur5us: has joined #ruby
[08:12:50] sandstrom: has joined #ruby
[08:13:05] chouhoulis: has joined #ruby
[08:13:37] tesuji_: has joined #ruby
[08:13:43] pizzaops: If I want to exclude a word from matching in a ruby regex, is there a more efficient way than [^w][^o][^r][^d]?
[08:14:01] bluOxigen_: has joined #ruby
[08:14:09] pizzaops: As I understand it [^word] would be any single character that isn't w, o, r, or d.
[08:14:11] bluOxigen_: has left #ruby: ()
[08:14:30] apeiros: pizzaops: (?!word), note that this does not advance the "cursor"
[08:14:37] ljarvis: pizzaops: [^(?:word)]
[08:14:48] apeiros: ljarvis: uh, no?
[08:14:55] apeiros: is that even valid?
[08:14:59] TomyWork: has joined #ruby
[08:15:01] ht_: has joined #ruby
[08:15:08] apeiros: ACTION tests
[08:15:40] pizzaops: ljarvis's solution is matching individual letters
[08:15:43] apeiros: eh, still a character class
[08:15:50] apeiros: >> /[^(?:word)]/ =~ "("
[08:15:52] ruby[bot]: apeiros: # => nil (https://eval.in/512940)
[08:15:58] vondruch: has joined #ruby
[08:16:23] fedexo_: has joined #ruby
[08:16:27] ljarvis: i guess i need some coffee
[08:16:40] pizzaops: yeah apeiros your solution is also excluding any of the characters individually
[08:16:43] pizzaops: according to rubular
[08:16:58] apeiros: pizzaops: nope. how do you figure?
[08:17:09] GriffinHeart: has joined #ruby
[08:17:13] aganov: has joined #ruby
[08:17:14] pawnbox: has joined #ruby
[08:17:17] apeiros: /(?!word)/ =~ "w"
[08:17:21] apeiros: >> /(?!word)/ =~ "w"
[08:17:22] ruby[bot]: apeiros: # => 0 (https://eval.in/512941)
[08:17:48] pizzaops: Erm I didn't express that quite accurately, but https://www.dropbox.com/s/ktet0fav59191ov/Screenshot%202016-02-04%2000.17.14.png?dl=0
[08:17:51] ljarvis: ok i have coffee
[08:17:55] pizzaops: shouldn't foo match
[08:17:58] aswen: has joined #ruby
[08:18:20] Ox0dea: pizzaops: What would it be matched by?
[08:18:30] pizzaops: ah right hah
[08:18:47] apeiros: as said, (?!) is non-consuming
[08:18:57] Ox0dea: Elseways called "zero-width".
[08:18:59] pizzaops: Is there a way to advance the cursor? E.g. if I doo (?!word).* then ord matches
[08:19:04] apeiros: the way you use it differs from [^w][^o][^r][^d]
[08:19:04] moeabdol: has joined #ruby
[08:19:29] apeiros: (?:(?!word).)*
[08:19:31] rhg135: has joined #ruby
[08:19:51] apeiros: OMG, I tried to edit the PICTURE OF RUBULAR
[08:19:58] apeiros: who friggin posts a pic of rubular?!?
[08:19:59] Ox0dea: pizzaops: Look what you've done.
[08:20:07] ljarvis: ACTION did the same
[08:20:12] ljarvis: also Dropbox is pig slow
[08:20:24] apeiros: ACTION swings fist at pizzaops :-p
[08:21:03] pizzaops: >> [^w][^o][^r][^d].*foo =~ "word foo"
[08:21:12] ishahnaz: has joined #ruby
[08:21:21] aufi: has joined #ruby
[08:21:29] pizzaops: Did I not invoke the bot correctly?
[08:21:33] sivoais: has joined #ruby
[08:21:33] apeiros: that would not match xofoo
[08:21:34] ljarvis: im confused about what you really want here
[08:21:43] ljarvis: pizzaops: that's not valid ruby anyway
[08:21:44] apeiros: pizzaops: you're not registered?
[08:21:51] Mon_Ouie: You also didn't write a regexp literal
[08:21:53] jottr: has joined #ruby
[08:21:59] pizzaops: I am registered, but ah look I have a pm from nickserv
[08:22:16] einarj: has joined #ruby
[08:22:17] mdw: has joined #ruby
[08:22:18] apeiros: eval-in only for authed people, sorry :)
[08:22:23] einarj: has joined #ruby
[08:22:34] ljarvis: anyway, my question would be what do you really want here? this example might not be real-world enough
[08:23:21] pizzaops: Sure, here's the real world example. If I have two strings, one of which is foobar-baz.bot and the other is foobar.bot, I want something that matches foobar.bot but not foobar-baz.bot.
[08:23:52] Ox0dea: I, for one, am overwhelmed by clarification.
[08:23:56] ljarvis: =~ /foobar.bot/ :troll:
[08:24:22] pizzaops: I'm not trolling. The real example is that when you make a disk in vSphere, it creates two files for it, one that's something.vmdk and another that's something-flat.vmdk
[08:24:34] ljarvis: ok your example just changed
[08:24:36] pizzaops: and I want to count the number of disks in a certain datastore, and to do that, I need to ignore the -flat files.
[08:24:47] pizzaops: Aka find match foobar.bot but not foobar-baz.bot
[08:24:56] ljarvis: is it always -flat ?
[08:25:13] pizzaops: The file I don't care about is always something-flat.vmdk, and th one I do care about is always something.vmdk
[08:25:15] darkf: has joined #ruby
[08:25:31] Ox0dea: Then you don't need a regular expression.
[08:25:32] apeiros: /.*(?<!-flat)\.vmdk/
[08:25:39] ljarvis: that's overkill imo
[08:25:41] ljarvis: but it'll work
[08:25:46] ljarvis: ACTION would also not use regexp
[08:26:00] apeiros: whoops, forgot anchoring
[08:26:02] pizzaops: Ox0dea: to add to the problem, there are other files that don't end in vmdk, and i need to ignore them completely, which is why I opted for a regex, but I'm open to suggestions
[08:26:04] ljarvis: are these lines are just a big string?
[08:26:13] pizzaops: unfortunatey
[08:26:25] apeiros: pizzaops: Dir.glob('*.vmdk') # only gets .vmdk files
[08:26:34] Ox0dea: apeiros: To include the -flat ones.
[08:26:38] pizzaops: so to even further complicated it, it's not a real directory
[08:26:41] pizzaops: it's the result of an API query
[08:26:45] pizzaops: so all i have is the strings
[08:26:54] apeiros: and then reject based on filename[-11,5] == "-flat" (or whatever the correct offset is)
[08:27:08] blaxter: has joined #ruby
[08:27:14] mark3: has joined #ruby
[08:27:20] ljarvis: I'd strip the extname and check if end_with?("-flat")
[08:27:21] apeiros: Ox0dea: you're too quick man! wait for the full answer :-p
[08:27:35] Ox0dea: pizzaops: strings.grep(/\w+\.vmdk/)
[08:27:55] Ox0dea: Assuming you've got an array of them.
[08:27:57] apeiros: well, if you already got an array of strings I'd probably indeed use ary.grep(/.*(?<!-flat)\.vmdk/)
[08:28:09] apeiros: well, if you already got an array of strings I'd probably indeed use ary.grep(/\A.*(?<!-flat)\.vmdk\z/)
[08:28:29] pizzaops: Ox0dea: yeah so i've got an array of them but that example doesn't eliminate the -flat
[08:28:41] Ox0dea: pizzaops: Needs more anchors.
[08:28:44] Ox0dea: How about a \z?
[08:29:03] apeiros: \z is the \zap wrong results
[08:29:25] Ox0dea: Er, sorry, you probably want an \A.
[08:29:30] Ox0dea: \All the right answers.
[08:29:34] pizzaops: >> ['foo.vmdk', 'bar.vmdk', 'foo-flat.vmdk', 'bar-flat.vmdk'].grep(/\A.*(?<!-flat)\.vmdk\z/)
[08:29:35] ruby[bot]: pizzaops: # => ["foo.vmdk", "bar.vmdk"] (https://eval.in/512943)
[08:29:40] ljarvis: \All the \zapping
[08:30:17] Ox0dea: >> ['foo.vmdk', 'bar.vmdk', 'foo-flat.vmdk', 'bar-flat.vmdk'].grep(/^\w+\.vmdk/) # Just sayin'.
[08:30:18] ruby[bot]: Ox0dea: # => ["foo.vmdk", "bar.vmdk"] (https://eval.in/512944)
[08:30:33] ljarvis: enter -notflat
[08:30:42] apeiros: >> ['foo.bar.vmdk', 'bar.vmdk', 'foo-flat.vmdk', 'bar-flat.vmdk'].grep(/^\w+\.vmdk/)
[08:30:43] ruby[bot]: apeiros: # => ["bar.vmdk"] (https://eval.in/512945)
[08:30:53] adac: has joined #ruby
[08:31:07] Ox0dea: You win this time, apeiros.
[08:31:07] apeiros: actually wanted foo-bar.vmdk, typoed. but demonstrates the same issue.
[08:31:12] apeiros: \w+ is more brittle
[08:31:19] Ox0dea: *less robust
[08:31:25] apeiros: I WIN AGAIN!
[08:31:30] apeiros: ACTION dances around singing
[08:31:32] Ox0dea: It's the same win!
[08:31:56] apeiros: more brittle is perfectly cromulent
[08:32:01] ljarvis: think yourself lucky i didn't get coffee earlier, apeiros
[08:32:14] Ox0dea: It's a great word.
[08:32:15] ljarvis: it's too early for this stuff
[08:32:30] Ox0dea: Just a fancier way of saying "kosher", more or less.
[08:32:32] rht: has joined #ruby
[08:32:37] sivoais: has joined #ruby
[08:32:56] Ox0dea: In its figurative sense, at any rate.
[08:33:08] pizzaops: I'm trying to find in ruby regex references what < means but I'm not seeing it
[08:33:11] benhuda: has joined #ruby
[08:34:08] Ox0dea: In apeiros' winner, it's a negative lookbehind.
[08:34:42] Ruby_Rocks_007: has joined #ruby
[08:34:58] Ox0dea: /.*(?<!foo)/ means "match anything, but foo doesn't count".
[08:35:52] einarj: has joined #ruby
[08:35:52] adgtl: has joined #ruby
[08:36:05] apeiros: (?<! ??? ) is "before the cursor, ??? must not occur"
[08:36:12] apeiros: before = to the left
[08:36:50] apeiros: so the .* matches up to .vmdk, and then it looks to the left of .vmdk and verifies that .* did not match -flat at the end
[08:37:08] Macaveli_: has joined #ruby
[08:37:20] pizzaops: Ahhhh. Thanks.
[08:37:32] ljames: has joined #ruby
[08:39:43] peterevjan: has joined #ruby
[08:40:52] yfeldblum: has joined #ruby
[08:40:55] Pupeno: has joined #ruby
[08:41:06] dsilfen: has joined #ruby
[08:44:10] nettoweb: has joined #ruby
[08:44:16] vondruch: has joined #ruby
[08:44:44] sivoais: has joined #ruby
[08:45:06] joonty: has joined #ruby
[08:45:53] comma8: has joined #ruby
[08:46:16] dexter_e: has joined #ruby
[08:46:38] Ishido: has joined #ruby
[08:46:52] PedramT: has joined #ruby
[08:47:08] jgt2: has joined #ruby
[08:47:25] pizzaops: That was super helpful. Thanks again fokls.
[08:47:44] pizzaops: Love this channel.
[08:48:56] tuelz1: has joined #ruby
[08:49:34] SCHAAP137: has joined #ruby
[08:49:58] Ox0dea: norc: https://eval.in/512961 :(
[08:51:45] kp666: has joined #ruby
[08:51:45] dsilfen: has joined #ruby
[08:52:17] Dreamer3_: has joined #ruby
[08:52:38] gigetoo: has joined #ruby
[08:54:36] pizzaops: It works! https://www.dropbox.com/s/xyv7rt9sifmdzuf/Screenshot%202016-02-04%2000.54.28.png?dl=0
[08:55:06] ljarvis: that's quite the line of code
[08:55:16] pizzaops: ljarvis: thank the vSphere API. None of that is me :)
[08:55:24] blaxter: has joined #ruby
[08:55:31] pizzaops: I mean I wrote the line, but it's the necessary line to query vSphere with their Ruby library for this information.
[08:55:37] pizzaops: It's pretty bad yes.
[08:55:53] pwnd_nsfw: has joined #ruby
[08:55:57] atmosx: it's awful
[08:56:35] pizzaops: So, you can iterate throughout all the vms and datastores and whatever if you want to, but it's way slower than using a property collector, since the former would be a potentially infinite number of api calls as you loop, while the latter is vSphere's search interface, which they call a property collector
[08:56:46] pizzaops: and you can describe the results you want to return, and get them all in one api call
[08:56:52] pizzaops: but it's definitely a nightmare.
[08:56:52] sivoais: has joined #ruby
[08:57:19] pizzaops: I'm just glad there's a library at all. . .it's a SOAP api.
[08:57:19] Ox0dea: norc! https://eval.in/512968
[08:57:37] Ox0dea: Poking raw memory is always the answer.
[08:58:10] mikecmpbll: has joined #ruby
[08:58:19] Ox0dea: Be advised that Pry'll segfault on exit after that. :P
[08:59:25] pizzaops: All this is just to make sure that when I create a new disk, the filename is unique. To be honest I'm tempted to just append SecureRandom.uuid
[09:00:04] pizzaops: Because my current way of doing it possibly doesn't even list all the disk files, since it doesn't list disks that are in the VM's datastore, but have been disconnected from the vm.
[09:00:07] Xeago: has joined #ruby
[09:00:48] pizzaops: vSphere + ESXi is basically a "virtual computer simulator". It's just as complicated as physically building one, you just don't need to handle the physical cables. You have to tell it what damn SCSI LUN the drive should use,
[09:00:57] Yeomra: has joined #ruby
[09:00:59] ready: has joined #ruby
[09:02:03] aryaching: has joined #ruby
[09:02:41] tomphp: has joined #ruby
[09:03:38] JohnBat26: has joined #ruby
[09:04:14] snowy: has joined #ruby
[09:05:01] pizzaops: AHAHAH IT WORKS IT MAKES GOD DAMN DISKS
[09:05:07] pizzaops: Sorry, I've just been working on this nightmare for so long.
[09:05:19] last_staff: has joined #ruby
[09:05:25] pizzaops: Also Ox0dea, do you ever sleep? You've helped me every time I've come on here, at random times.
[09:05:32] pizzaops: (and I do appreciate it!)
[09:05:41] mlehrer: has joined #ruby
[09:07:54] jgt2: has joined #ruby
[09:09:25] rickmasta: has joined #ruby
[09:09:37] sivoais: has joined #ruby
[09:12:27] PedramT: has joined #ruby
[09:12:47] p1k: What's the correct way to delay handling an interupt until I'm read to deal with it (with Thread.handle_interupt)?
[09:12:52] Infra-Red: has joined #ruby
[09:13:17] toretore: p1k: put it on a queue
[09:13:21] PedramT: has joined #ruby
[09:13:32] dasher00: has joined #ruby
[09:13:44] p1k: toretore: could you give an example / link to one?
[09:13:47] toretore: http://www.sitepoint.com/the-self-pipe-trick-explained/
[09:13:50] aryaching: has joined #ruby
[09:13:53] chouhoulis: has joined #ruby
[09:16:31] Infra-Red: has joined #ruby
[09:16:41] krzkrz: has joined #ruby
[09:17:20] p1k: that's not exactly that I'm asking
[09:17:22] rdark: has joined #ruby
[09:17:47] sftrabbit: has joined #ruby
[09:18:14] cajone: has joined #ruby
[09:22:00] sivoais: has joined #ruby
[09:22:22] toretore: p1k: what are you asking then?
[09:22:39] p1k: I'm wondering how I can get the equivalent of SIG_BLOCK during an ensure section of my controller
[09:22:49] Yeomra: has joined #ruby
[09:23:26] SCHAAP137: has joined #ruby
[09:23:34] william3: has joined #ruby
[09:23:39] bluOxigen: has joined #ruby
[09:23:44] p1k: to my understanding ruby interupts have their own abstraction that's not os level ?
[09:24:40] PedramT: has joined #ruby
[09:25:00] toretore: p1k: yes, afaik
[09:25:34] william3: has joined #ruby
[09:26:41] toretore: p1k: looks like it is possible: http://stackoverflow.com/questions/6354043/how-to-use-signal-blocking-in-ruby
[09:27:02] Ruby_Rocks_007: has joined #ruby
[09:27:33] toretore: but i would push signals onto a queue and handle them in the main loop anyway and not have to deal with it
[09:28:11] jgt2: has joined #ruby
[09:28:26] bluOxigen: has joined #ruby
[09:28:48] evidex: has joined #ruby
[09:29:01] p1k: But is this the correct way to deal with the ruby Thread.raise? I understand there is a Thread.handle_interrupt but I'm not clear on how to block Thread.raise with it
[09:30:31] sandstrom: has joined #ruby
[09:31:26] nalaginrut: has joined #ruby
[09:31:51] toretore: Thread#raise raises an exception, which is different from a signal
[09:32:44] apeiros: p1k: you wrap the part which should not be interrupted with Thread.handle_interrupt
[09:33:14] apeiros: p1k: Thread.handle_interrupt has plenty of examples
[09:34:14] sivoais: has joined #ruby
[09:34:24] p1k: apeiros: It still interrupts in the middle of the code though -
[09:34:44] ruby[bot]: p1k: We can't help you without your code, please post it to https://gist.github.com
[09:35:01] apeiros: without code, that's just a random assertion I can't comment in any way.
[09:35:22] sandstrom: has joined #ruby
[09:36:34] TheHodge: has joined #ruby
[09:37:22] shevy: cooooooode!
[09:37:49] karapetyan: has joined #ruby
[09:38:10] william3: has joined #ruby
[09:38:51] ocbtec: has joined #ruby
[09:39:05] ziyadb: has joined #ruby
[09:39:50] william3: has joined #ruby
[09:40:39] marr: has joined #ruby
[09:42:08] The_Phoenix: has joined #ruby
[09:42:58] Conflict: has joined #ruby
[09:43:54] Brklyn: has joined #ruby
[09:44:28] dmolina: has joined #ruby
[09:45:27] hxegon: has joined #ruby
[09:46:18] sivoais: has joined #ruby
[09:49:04] varunwachaspati: has joined #ruby
[09:49:41] tuelz1: has joined #ruby
[09:50:23] Hounddog: has joined #ruby
[09:55:40] lipoqil: has joined #ruby
[09:58:11] Stan: has joined #ruby
[09:58:20] sivoais: has joined #ruby
[10:00:27] Xeago: has joined #ruby
[10:03:32] dexter_e: has joined #ruby
[10:04:10] blackmesa: has joined #ruby
[10:04:34] GriffinHeart: has joined #ruby
[10:06:31] dajobat: has joined #ruby
[10:07:02] Pupeno: has joined #ruby
[10:07:21] Infra-Red: has joined #ruby
[10:09:42] sftrabbit: has joined #ruby
[10:10:23] sivoais: has joined #ruby
[10:10:37] sandstrom: has joined #ruby
[10:13:11] FooMunki: has joined #ruby
[10:13:34] vikas027: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[10:14:37] chouhoulis: has joined #ruby
[10:14:41] Infra-Red: has joined #ruby
[10:15:23] dlitvak: has joined #ruby
[10:15:39] dlitvak: has joined #ruby
[10:15:45] sami: has joined #ruby
[10:18:22] aef: has joined #ruby
[10:18:41] colegatron: has joined #ruby
[10:18:44] blackms: has joined #ruby
[10:20:13] trinaldi: has joined #ruby
[10:21:01] SOLDIERz: has joined #ruby
[10:21:19] Macaveli: has joined #ruby
[10:22:31] sivoais: has joined #ruby
[10:23:12] vondruch: has joined #ruby
[10:24:45] atmosx: has joined #ruby
[10:27:08] loz: has joined #ruby
[10:27:16] loz: greetings ruby friends!
[10:27:29] loz: what should I do to install a gem?
[10:27:49] loz: what I have now is:
[10:27:49] loz: gem install --local twurl
[10:27:49] loz: ERROR: Could not find a valid gem 'twurl' (>= 0) in any repository
[10:28:28] apeiros: loz: why --local?
[10:28:56] loz: apeiros: good question, my friend!
[10:29:17] loz: apeiros: quick answer is:
[10:29:17] loz: >gem install twurl
[10:29:17] loz: ERROR: While executing gem ... (Gem::FilePermissionError)
[10:29:17] loz: You don't have write permissions for the /nix/store/h1aqj8zkwk64p67lilwrzi38vcqvhkik-ruby-2.2.2-p0/lib/ruby/gems/2.2.0 directory.
[10:29:48] apeiros: --local is not the solution to that. sudo is.
[10:30:03] apeiros: or installing your ruby in a way that it stores gems per user
[10:30:18] dlitvak: has joined #ruby
[10:30:24] loz: apeiros: sorry, but /nix/store is mounted in read-only, even root is not the one who can write there
[10:30:44] loz: apeiros: can't I just install gems for a user?
[10:30:55] apeiros: what did you do to ruby that it tries to write to a read-only place?
[10:31:33] loz: apeiros: I installed it safely in a way nothing can change or break installed files!
[10:32:00] apeiros: loz: so you customized things and don't think it'd be necessary to mention those customizations?
[10:32:05] bronson: has joined #ruby
[10:32:43] loz: apeiros: no, because each user install his own gems. ruby is shared for them, and should not be touched by anybody
[10:32:45] apeiros: well, I'll just answer the generic question generically then: yes, you can install gems for a user.
[10:32:54] ht__: has joined #ruby
[10:33:22] loz: apeiros: could you point me how to do that?
[10:33:29] apeiros: gem help install
[10:33:35] apeiros: it should list the relevant option
[10:33:47] Amnez777: has joined #ruby
[10:34:01] apeiros: iirc it contains `user`. been a while though.
[10:34:23] Amnez777: has joined #ruby
[10:34:40] loz: apeiros: yay, it worked, thank you very much!
[10:34:47] sivoais: has joined #ruby
[10:34:57] Amnez777: has joined #ruby
[10:35:00] loz: ACTION though --local is similar to python's pip, and it's not
[10:35:31] Amnez777: has joined #ruby
[10:35:32] cassianoleal: has joined #ruby
[10:36:04] Amnez777: has joined #ruby
[10:36:37] Amnez777: has joined #ruby
[10:37:51] jgt3: has joined #ruby
[10:38:49] einarj_: has joined #ruby
[10:38:59] bafbomb: has joined #ruby
[10:39:12] shevy: apeiros hmmm did p1k quit without showing any code? :D
[10:39:14] GriffinHeart: has joined #ruby
[10:39:24] vondruch: has joined #ruby
[10:39:59] barhum2013_: has joined #ruby
[10:40:16] gregf_: has joined #ruby
[10:40:28] ht__: has joined #ruby
[10:40:59] ocbtec: has joined #ruby
[10:41:14] Koshian: has joined #ruby
[10:41:25] Infra-Red: has joined #ruby
[10:41:32] Sirecote: has joined #ruby
[10:42:02] boshhead: has joined #ruby
[10:42:06] cyphactor: has joined #ruby
[10:42:10] baweaver: has joined #ruby
[10:42:12] Freeaqingme: has joined #ruby
[10:42:20] Yeomra: has joined #ruby
[10:42:29] braincrash: has joined #ruby
[10:42:37] nchambers: has joined #ruby
[10:42:37] CloCkWeRX: has joined #ruby
[10:42:47] c0ncealed: has joined #ruby
[10:42:52] User458764: has joined #ruby
[10:43:20] bhaak: has joined #ruby
[10:43:20] varesa: has joined #ruby
[10:43:31] akkad: has joined #ruby
[10:44:34] ldnunes: has joined #ruby
[10:45:03] Infra-Red: has joined #ruby
[10:46:18] Xeago: has joined #ruby
[10:46:56] ocbtec: has joined #ruby
[10:47:01] sivoais: has joined #ruby
[10:48:04] lubekpl: has joined #ruby
[10:48:56] apeiros: shevy: *shrug*
[10:50:05] shredding: has joined #ruby
[10:50:18] jottr: has joined #ruby
[10:50:24] tuelz1: has joined #ruby
[10:50:37] william3: has joined #ruby
[10:53:04] huyderman: has joined #ruby
[10:53:54] Blaze_Boy: has joined #ruby
[10:55:06] Xeago: has joined #ruby
[10:55:06] futilegames: has joined #ruby
[10:55:18] reaVer: has joined #ruby
[10:58:20] cassianoleal: has joined #ruby
[10:58:43] joconcepts_: has joined #ruby
[10:58:47] Thib_: has joined #ruby
[10:59:12] sivoais: has joined #ruby
[10:59:57] c355E3B: has joined #ruby
[11:00:15] FernandoBasso: has joined #ruby
[11:00:46] DEA7TH: has joined #ruby
[11:01:53] platzhirsch: has joined #ruby
[11:02:06] Bloomer: has joined #ruby
[11:02:19] ht__: has joined #ruby
[11:03:13] nfk|laptop: has joined #ruby
[11:04:35] bruce_lee: has joined #ruby
[11:05:11] blackmesa: has joined #ruby
[11:06:08] hamed_r: has joined #ruby
[11:08:05] AlexJakeGreen: has joined #ruby
[11:09:58] waka: has joined #ruby
[11:11:12] DoubleMalt: has joined #ruby
[11:11:27] sivoais: has joined #ruby
[11:12:09] evidex: has joined #ruby
[11:12:11] ferr: has joined #ruby
[11:12:59] atmosx: rake (~> 10.4.2) this means equal or bigger right?
[11:13:29] Ropeney: has joined #ruby
[11:13:35] Infra-Red: has joined #ruby
[11:14:59] chrisarcand: atmosx: No; it means >= 10.4.2 and < 10.5.0
[11:15:19] chouhoulis: has joined #ruby
[11:15:21] atmosx: okay, I want to make that 10.5.0
[11:15:30] atmosx: I just remove ~> and stab 10.5.0 I guess
[11:16:13] chrisarcand: atmosx: For more, http://guides.rubygems.org/patterns/#pessimistic-version-constraint
[11:16:49] dlitvak: has joined #ruby
[11:17:07] atmosx: chrisarcand: I want to get over this: You specified: rake (~> 10.4.2) and rake (= 10.5.0)
[11:17:17] Coldblackice: has joined #ruby
[11:17:22] atmosx: I didn't specify ~> 10.4.2 some plugin probably did
[11:17:31] GriffinHeart: has joined #ruby
[11:17:43] srenatus: has joined #ruby
[11:17:58] DEA7TH_: has joined #ruby
[11:19:04] lsmola: has joined #ruby
[11:20:32] Blaze_Boy: has joined #ruby
[11:21:26] zenguy_pc: has joined #ruby
[11:23:27] mja: has joined #ruby
[11:23:57] sivoais: has joined #ruby
[11:24:14] sftrabbit: has joined #ruby
[11:25:17] ht__: has joined #ruby
[11:26:15] dionysus69: has joined #ruby
[11:26:48] platzhirsch: has left #ruby: ()
[11:27:52] workmad3_: has joined #ruby
[11:28:12] pandaant: has joined #ruby
[11:32:42] joonty: has joined #ruby
[11:32:54] ht__: has joined #ruby
[11:33:04] Infra-Red: has joined #ruby
[11:33:12] Brklyn: has joined #ruby
[11:34:57] ocbtec: has joined #ruby
[11:35:14] dlitvak_: has joined #ruby
[11:35:51] ych: has joined #ruby
[11:36:35] ht__: has joined #ruby
[11:36:52] hxegon: has joined #ruby
[11:37:28] sivoais: has joined #ruby
[11:38:32] ht__: has joined #ruby
[11:43:12] FooMunki: has joined #ruby
[11:44:14] hightower4: has joined #ruby
[11:45:10] Shaboum: has joined #ruby
[11:45:36] ht__: has joined #ruby
[11:46:16] SebastianThorn: ruby still adds great stuff, love this language!
[11:47:21] sandstrom: has joined #ruby
[11:47:35] dlitvak: has joined #ruby
[11:50:34] p1k: has joined #ruby
[11:51:00] sivoais: has joined #ruby
[11:51:08] tuelz1: has joined #ruby
[11:53:02] ocbtec: has joined #ruby
[11:53:46] cassianoleal: has joined #ruby
[11:56:26] joconcepts_: i have a Gem::Specification object of a specific gem, how can i found out if there are any updates for that gem?
[11:57:07] Xeago: has joined #ruby
[11:57:09] Deck`: has joined #ruby
[11:57:53] ht__: has joined #ruby
[11:58:02] ElFerna: has joined #ruby
[11:59:16] yorickpeterse: joconcepts_: you'd have to check rubygems.org probably via the API
[11:59:31] yorickpeterse: which probably means digging through the RubyGems code to see how it does that
[12:00:05] joconcepts_: it is not possible to that with the gem object?
[12:00:26] joconcepts_: i can get all outdated gems via Gem::Specification.outdated_and_latest_version
[12:00:34] joconcepts_: but that takes a long time
[12:00:35] nalaginrut: has joined #ruby
[12:00:36] Mon_Ouie: has joined #ruby
[12:01:37] yorickpeterse: That's probably because that uses the API
[12:03:17] sivoais: has joined #ruby
[12:03:32] Deck`: has joined #ruby
[12:04:02] tsht: has joined #ruby
[12:05:08] william3: has joined #ruby
[12:07:42] tsht: has joined #ruby
[12:10:23] Deck`: has joined #ruby
[12:10:41] sdothum: has joined #ruby
[12:11:07] adgtl: has joined #ruby
[12:15:10] futilegames: has joined #ruby
[12:15:28] sivoais: has joined #ruby
[12:16:07] chouhoulis: has joined #ruby
[12:16:53] Deck`: Is there any way to extract path from both http://url.com/path and url.com/path strings using URI module? Or regexp is the only way?
[12:18:21] sftrabbit: has joined #ruby
[12:18:22] shevy: joconcepts_ perhaps you can come up with an easy-to-use API, then suggest this to the #rubygems people linked with a github issue request
[12:18:55] Thib: has joined #ruby
[12:19:42] shevy: Deck`, this works?
[12:19:45] shevy: x = URI.parse "http://url.com/path"; x.path # => "/path"
[12:19:58] shevy: not sure about non-http but you could .prepend the string to have that
[12:20:09] Thib: has joined #ruby
[12:20:20] Thib: has joined #ruby
[12:21:43] mikeiniowa: has joined #ruby
[12:22:50] jhass: Deck`: ^ normalize it, url = "http://#{url}" unless url.start_with? "http"
[12:22:55] Deck`: shevy: it works but my actual goal is to get path in three cases: the path itself is given like: `path`, with http:// version and non-http version. So prepending wont work for me
[12:23:23] jhass: does `path` ever contain `/` in your case?
[12:23:29] rideh: has joined #ruby
[12:23:36] jhass: because foo.bar/baz is a totally legit path
[12:23:53] jhass: and hence that's what URI.parse interprets it as
[12:23:55] waka: has joined #ruby
[12:25:44] Deck`: jhass: sure, I agree with URI.parse, my code deals with urls with http/https or with paths itself. It takes the string nad returns path, but there is new requirement: supporting www.url.com/path
[12:26:07] Deck`: So I'm looking for the way without completely rewriting this using regexes
[12:26:23] jhass: that gets horrible fast
[12:26:35] blackmesa: has joined #ruby
[12:26:43] jhass: easier to write your own little parser if you seek to be correct
[12:26:55] jhass: but again, how are you going to differentiate?
[12:27:07] jhass: match against the public suffix list?
[12:27:08] neu0: has joined #ruby
[12:27:16] jhass: it'll be a heuristic in any case
[12:27:18] gigetoo: has joined #ruby
[12:27:38] sivoais: has joined #ruby
[12:28:44] Deck`: got it, I think it would be something like %r{((https?://)?[^/]+/)?([^/]+)}
[12:28:51] atmosx: I updated the rake version on a Gemfile, do I need to worry about the Gemfile.lock - this is a github repo
[12:29:11] Deck`: just to make s in https optional, http:// optional and host optional
[12:32:04] jhass: atmosx: yes
[12:32:16] jhass: Gemfile is your wishes, Gemfile.lock is what's enforced
[12:32:33] sergey_makagon: has joined #ruby
[12:32:38] atmosx: jhass: hm, do can I delete Gemfile.lock from the repo ?
[12:32:45] jhass: you shouldn't
[12:32:59] atmosx: problem is how do I test this..
[12:33:07] sftrabbit: has joined #ruby
[12:33:12] atmosx: redmine_plugin
[12:33:18] jhass: ask #redmine
[12:33:21] atmosx: I guess I just install redmine and this plugin run rake
[12:33:31] jhass: last time I checked redmine heavily abused bundler
[12:38:29] adgtl: has joined #ruby
[12:38:49] duckpuppy: has joined #ruby
[12:39:51] sivoais: has joined #ruby
[12:40:07] nalaginrut: has joined #ruby
[12:40:15] burgestrand: has joined #ruby
[12:40:20] sftrabbit: has joined #ruby
[12:41:18] Pupeno: has joined #ruby
[12:41:39] tsht: has joined #ruby
[12:45:38] Lochez: has joined #ruby
[12:45:46] platzhirsch: has joined #ruby
[12:47:06] UtkarshRay: has joined #ruby
[12:47:20] nobitanobi: has joined #ruby
[12:47:26] nobitanobi: Morning folks
[12:47:29] dlitvak_: has joined #ruby
[12:51:06] Mon_Ouie: has joined #ruby
[12:51:35] kristofferR: has joined #ruby
[12:51:40] nettoweb: has joined #ruby
[12:51:41] nobitanobi: Could anyone point me to good readings on why would not use class methods if being strict about object oriented paradigm?
[12:51:55] sivoais: has joined #ruby
[12:52:09] aufi_: has joined #ruby
[12:52:56] trinaldi_: has joined #ruby
[12:54:02] aibot_: has joined #ruby
[12:54:18] redondos: has joined #ruby
[12:54:18] redondos: has joined #ruby
[12:54:18] blackmesa: has joined #ruby
[12:54:29] Yeomra_: has joined #ruby
[12:54:31] zipkid: has joined #ruby
[12:54:53] mja: has joined #ruby
[12:54:55] matp: has joined #ruby
[12:54:56] sorah: has joined #ruby
[12:55:01] kristofferR: has joined #ruby
[12:55:05] colegatron: has joined #ruby
[12:55:15] Sirecote: has joined #ruby
[12:55:48] JohnBat26: has joined #ruby
[12:56:11] kireevco: has joined #ruby
[12:56:19] jhill_: has joined #ruby
[12:56:55] billybob: has joined #ruby
[12:57:09] Macaveli: has joined #ruby
[12:58:08] tsht: has joined #ruby
[12:58:42] billybob: hey all. starting to learn ruby. i am confused on || - How can I compare 3 things where I only want to compare A && B || A && C ? Basically I want to say: If A == true && B == true or if A == true and C == true
[12:58:49] jhass: nobitanobi: not sure I'd agree, who claims so?
[12:59:03] billybob: but it evaluates both sides obviously. so how do I essentially use something like either
[12:59:33] jhass: billybob: A && (B || C)
[12:59:35] Yeomra: has joined #ruby
[12:59:50] pawnbox: has joined #ruby
[13:00:12] billybob: jhass: i swear I tried that many times. but let me go back and retry again. possible the data being fed to it wasnt correct ;(
[13:01:35] billybob: jhass: lol works exactly as I expected. who knows what i did before. thanks a bunch
[13:03:26] rickmasta: has joined #ruby
[13:04:31] sivoais: has joined #ruby
[13:06:05] tyil: has joined #ruby
[13:06:56] synthroid: has joined #ruby
[13:07:36] emilkarl: has joined #ruby
[13:07:51] mdw: has joined #ruby
[13:08:02] karapetyan: has joined #ruby
[13:08:12] mfb2: has joined #ruby
[13:08:42] tyil: I'm having an issue with Net::IMAP and STARTTLS: http://termbin.com/i328
[13:09:05] tyil: connections seem to just disconnect after invoking .starttls() on the IMAP connection
[13:09:13] roshanavand: has joined #ruby
[13:09:22] sftrabbit: has joined #ruby
[13:09:41] dlitvak: has joined #ruby
[13:09:55] roshanavand: has joined #ruby
[13:10:48] stevednd: has joined #ruby
[13:11:43] gregf_: has left #ruby: ()
[13:12:37] gregf__: has joined #ruby
[13:12:56] User458764: has joined #ruby
[13:13:00] dayjo: has joined #ruby
[13:13:12] jhass: I'd peek at the server side log
[13:13:22] duckpuppy: has joined #ruby
[13:13:41] jas02: has joined #ruby
[13:13:48] jhass: side note, !server["tls"].nil? && server["tls"] is redundant to just the latter term
[13:14:52] tsht: has joined #ruby
[13:15:15] tyil: doesn't it error out if server["tls"] isn't defined at all without the .nil? check?
[13:15:16] ocbtec: has joined #ruby
[13:15:26] jhass: >> {}["no"]
[13:15:28] ruby[bot]: jhass: # => nil (https://eval.in/513082)
[13:15:38] tyil: I'll update that
[13:15:43] tyil: the server log shows: Feb 4 14:14:20 mail dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=86.93.148.215, lip=192.168.1.12, TLS handshaking: SSL_accept() failed: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca: SSL alert number 48, session=<mbs9g/EqjqtWXZTX>
[13:16:02] cassianoleal: has joined #ruby
[13:16:25] jhass: sounds like your server uses a self signed cert, doesn't deliver the whole chain or uses a CA not trusted by your client
[13:16:34] tyil: self-signed
[13:16:47] jhass: though a bit odd to get just a closed stream on the client, agreed
[13:16:52] chouhoulis: has joined #ruby
[13:16:59] jhass: anyway, bet that's the issue
[13:17:14] jhass: consider getting a letsencrypt, startcom or wosign cert?
[13:17:29] burgestrand: has joined #ruby
[13:17:31] tyil: considered LE, but that sounds as a workaround, not a fix :p
[13:17:42] jhass: I'd claim the other way around
[13:17:46] jhass: everything else is a workaround
[13:17:52] tyil: besides that, the LE application didn't work on FreeBSD last time I tried
[13:18:16] jhass: thankfully the protocol is simple enough, no need for the messy official client
[13:18:25] jhass: https://github.com/unixcharles/acme-client
[13:18:37] sivoais: has joined #ruby
[13:19:00] tyil: hmm, I'll look at it
[13:19:13] jhass: https://community.letsencrypt.org/t/list-of-client-implementations/2103
[13:19:25] tyil: however, I still think that self-signed certs should be valid too >_>
[13:19:35] jhass: you're simply wrong about that
[13:19:48] nobitanobi: jhass: I have talked to several people that claims that the only method that a class should own is the initialize. I tend to use class methods for methods that will do the same thing regardless of the state of its instances
[13:19:55] krzkrz: has joined #ruby
[13:20:01] jhass: I'd prefer DANE spreading over a bandage like LE, but still better than self-signed
[13:20:09] tyil: DANE would be fine too
[13:20:25] tyil: but simply refusing self-signed without a way to accept them is bad
[13:20:33] sgambino: has joined #ruby
[13:20:34] tuelz1: has joined #ruby
[13:21:04] jhass: there's a way but it's nothing that should be spread as a solution to the problem
[13:21:37] sftrabbit: has joined #ruby
[13:22:00] hxegon: has joined #ruby
[13:22:12] tyil: any solution that requires a single point of failure (CAs) that have proven themselves to fail is bad, so I should have a simple way to just accept my self-signed certs
[13:22:46] tyil: saying "self-signed is wrong" is on itself a wrong statement
[13:23:49] last_staff: has joined #ruby
[13:23:50] jhass: you can simply turn off validation
[13:23:53] ddv: tyil: ssl is not only about encryption, it is also about a third party identifying you
[13:24:21] nobitanobi: jhass: would love to hear why do you think using class methods it's "ok"
[13:24:22] jirte: has joined #ruby
[13:24:24] tyil: ddv: I know, and using that with teh current CA system is not really any more secure than no third party validation at all
[13:24:51] Macaveli: has joined #ruby
[13:24:52] jhass: nobitanobi: it's just bloat if your object has no state and a single method
[13:24:53] tyil: you can pay anyone 5 bucks and they'll say "yeah that's correct" in the current CA system
[13:24:58] codecop: has joined #ruby
[13:25:17] shevy: ACTION holds out his hand
[13:25:34] tyil: jhass: the problem remains if I call .starttls({}, false) though
[13:25:43] jhass: tyil: point is that you have to spend effort, so some validation increases attacker effort, self signed increases attacker effort not at all
[13:26:08] jhass: tyil: https://github.com/ruby/ruby/blob/trunk/lib/net/imap.rb#L382 https://github.com/ruby/ruby/blob/trunk/lib/net/imap.rb#L1486
[13:26:31] tyil: actually, the current CA system would only make an attacker more believable (the CA says it's correct so it cant be an attacker, right?)
[13:26:41] tyil: so for 5 bucks the attacker has more chance of success
[13:27:06] jhass: even with automated systems it's significantly harder to get a "valid" cert for your domain
[13:28:13] jhass: and even if you deny that argument, training your users to "just accept" the warnings is really bad
[13:28:34] tyil: luckily Im not training anyone to do that
[13:28:57] jhass: but arguing self-signed cert as a valid alternative in general is doing that
[13:29:05] tyil: not really
[13:30:00] tyil: but there's been a lot of arguing around the actual issue and denying the issue exists, however I still have the issue
[13:30:16] jhass: tyil: did you even click my links?
[13:30:35] atmosx: he didn't
[13:30:40] atmosx: otherwise he would have certs by now
[13:30:50] jhass: I mean the latter ones
[13:30:57] tyil: to the GH sourcecode?
[13:30:59] sivoais: has joined #ruby
[13:32:06] tyil: it looks very fun and all, but what param would I have to add in to accept the self-signed cert?
[13:32:34] jhass: http://devdocs.io/ruby~2.2/openssl/ssl/sslcontext
[13:33:43] blackmesa: has joined #ruby
[13:34:10] nrsk: has joined #ruby
[13:34:53] troulouliou_div2: has joined #ruby
[13:35:05] Zai00: has joined #ruby
[13:35:16] sepanta: has joined #ruby
[13:35:45] tyil: welp, since you seem to know just as little about it as I do, I'll ask around at another community (otherwise you would've just given me the right object to pass in)
[13:36:27] jhass: if you run with self-signed stuff you shouldn't be as clueless as you are in that area
[13:36:38] jhass: .starttls(verify_mode: OpenSSL::SSL:VERIFY_NONE)
[13:37:35] tyil: ACTION sighs
[13:37:43] tyil: if you act so high and mighty you could've just helped someone
[13:38:03] tsht: has joined #ruby
[13:38:05] jhass: you were unwilling to accept the proper solution
[13:38:10] AxonetBE1: has joined #ruby
[13:38:20] adgtl: has joined #ruby
[13:38:30] tyil: "proper" is only what you deem worthy of using, and you refuse to even consider other use-cases
[13:38:58] exadeci: has joined #ruby
[13:38:59] solocshaw: has joined #ruby
[13:39:31] jhass: there's no valid usecase for disabling validation besides having no control over the remote
[13:39:32] snowy: has joined #ruby
[13:40:01] newbie22: has joined #ruby
[13:40:04] jhass: I'd tell you to run your own PKI but then you're so fixiated on disabling validation that I no longer bothered
[13:40:33] JohnBat26: has joined #ruby
[13:41:00] tyil: not really, but I like your childish attitude
[13:41:53] jhass: I like how you avoid effort at all costs
[13:42:20] tyil: if I wanted to avoid effort, I would've ran debian and run the LE client, wouldn't I?
[13:43:00] DmitryBochkarev: has joined #ruby
[13:43:03] sivoais: has joined #ruby
[13:43:04] tyil: instead, I'm actually trying to get some sane help out of a childish guy on irc who's just trying to be an elitist prick
[13:43:14] sftrabbit: has joined #ruby
[13:43:35] jhass: yes, I strongly oppose your viewpoint, that can only be childish and elitist
[13:43:42] baweaver: has joined #ruby
[13:44:03] jhass: despite giving you all the information you would need if you'd spend 10 minutes on reading them
[13:44:17] frarwp: has joined #ruby
[13:44:39] jhass: but you already know I'm not here to help you, so why bother doing that
[13:44:41] tyil: you're elitist because you're refusing to just help me, and your childish for saying things like "I'd tell you to run your own PKI but then you're so fixiated on disabling validation"
[13:45:22] tyil: if you're here to help, you should consider to drop this elitist act and make childish comments
[13:45:31] symbol: has joined #ruby
[13:45:35] newbie22: has joined #ruby
[13:45:39] ddv: tyil: lol relax
[13:45:48] newbie22: has left #ruby: ()
[13:45:57] ddv: tyil: you are not entitled to anything in this channel
[13:46:15] ddv: please keep that in mind, we are all volunteers in here
[13:46:16] newbie22: has joined #ruby
[13:46:20] reppard: has joined #ruby
[13:46:23] tyil: I never claimed I was, I just told jhass that he's acting elitist and childish
[13:46:25] tyil: which he was
[13:46:46] EAK: has joined #ruby
[13:47:08] EAK: hi guys
[13:47:10] tyil: I came in here for help on an issue, not to get told I'm doing it all wrong because it doesn't fit into someones mindset
[13:47:20] newbie22: has joined #ruby
[13:47:41] atomical: has joined #ruby
[13:47:46] mfb2: has joined #ruby
[13:48:09] tsht: has joined #ruby
[13:48:22] mdw: has joined #ruby
[13:48:24] dlitvak_: has joined #ruby
[13:48:37] EAK: i need to install this: gem install arduino_firmata
[13:49:14] EAK: ERROR: Loading command: install <ArgumentError>
[13:49:17] mary5030: has joined #ruby
[13:49:43] jhass: EAK: OS, how did you install ruby? ruby -v, gem -v?
[13:49:46] EAK: unknown encoding name - CP720
[13:50:18] EAK: ruby 2.2.3
[13:50:28] Abrin: has joined #ruby
[13:50:39] EAK: gem 2.5.2
[13:51:08] EAK: windows 7 32
[13:51:32] jhass: mh, sounds to me like your system is set to a locale that ruby doesn't support
[13:51:59] jhass: no idea how to change it for a single program on windows, might be worth looking up, or just switch your system to english
[13:52:07] supremekay: has joined #ruby
[13:52:19] vagnerd_2: has joined #ruby
[13:52:29] tsht: has joined #ruby
[13:52:40] jhass: that is less so the system language as much more the character encoding
[13:53:06] EAK: ok, i change it
[13:53:44] snowy: has joined #ruby
[13:53:54] IrishGringo: has joined #ruby
[13:53:55] EAK: I'm using Virtualbox in xubuntu
[13:54:31] jirte: has left #ruby: ()
[13:54:52] triangles: has joined #ruby
[13:54:59] jhass: that is windows -> virtualbox -> xubuntu -> ruby or xubuntu -> virtualbox -> windows -> ruby ?
[13:55:33] amb77: has joined #ruby
[13:55:43] sivoais: has joined #ruby
[13:56:06] EAK: Main os is Xubuntu, Windows 7 is installed on Virtualbox
[13:56:15] tsht: has joined #ruby
[13:56:25] newbie22: has joined #ruby
[13:58:35] Timba-as: has joined #ruby
[13:58:37] rhg135: has joined #ruby
[13:59:23] duckpuppy: has joined #ruby
[13:59:29] yardenbar: has joined #ruby
[14:00:10] EAK_: has joined #ruby
[14:00:27] Pupeno: has joined #ruby
[14:00:40] blackmesa: has joined #ruby
[14:02:05] sandstrom: has joined #ruby
[14:02:34] cassianoleal: has joined #ruby
[14:02:46] dsilfen: has joined #ruby
[14:02:53] jhass: EAK_: why? why don't you use ruby on xubuntu?
[14:03:01] jhass: that should generally cause less trouble
[14:03:05] dlitvak: has joined #ruby
[14:03:22] joonty: has joined #ruby
[14:03:47] EAK_: thanks jhass, last problem solved
[14:04:18] EAK_: I'm going to be ready for next one...
[14:04:36] tsht: has joined #ruby
[14:05:19] EAK: has joined #ruby
[14:06:53] nobitanobi: jhass: thanks for your thoughts
[14:07:28] flughafen_: has joined #ruby
[14:09:12] sivoais: has joined #ruby
[14:09:48] lurch_: has joined #ruby
[14:10:21] JDiPierro: has joined #ruby
[14:11:16] tsht: has joined #ruby
[14:12:08] zacstewart: has joined #ruby
[14:13:36] Xeago: has joined #ruby
[14:14:01] last_staff: has joined #ruby
[14:16:11] malconis: has joined #ruby
[14:16:45] despai: has joined #ruby
[14:16:57] mlehrer: has joined #ruby
[14:17:05] amb77: has joined #ruby
[14:17:23] JohnBat26: has joined #ruby
[14:17:23] malconis: has joined #ruby
[14:17:35] chouhoulis: has joined #ruby
[14:17:56] Timba-as: has joined #ruby
[14:18:32] platzhirsch: has left #ruby: ()
[14:19:13] sivoais: has joined #ruby
[14:19:13] EAK: has joined #ruby
[14:19:28] krobzaur_: has joined #ruby
[14:19:49] lessless: has joined #ruby
[14:19:51] ESpiney: has joined #ruby
[14:20:34] sftrabbit: has joined #ruby
[14:21:19] iamvery: has joined #ruby
[14:21:44] AxonetBE1: how can I encrypt an emailadres to pass in an url and decrypt it after again?
[14:22:10] aryaching: has joined #ruby
[14:22:36] jhass: AxonetBE_: could be small enough for just doing RSA
[14:23:11] jhass: though no shared database? might be easier and safer to just pass a token and fetch it from there
[14:23:14] tsht: has joined #ruby
[14:23:20] nalaginrut: has left #ruby: ("??????")
[14:23:39] Toledo|gone: has joined #ruby
[14:24:52] adgtl: has joined #ruby
[14:25:54] Jackneill: has joined #ruby
[14:26:17] bmalum: has joined #ruby
[14:26:24] aegis3121: has joined #ruby
[14:27:13] tsht: has joined #ruby
[14:27:19] blackmesa: has joined #ruby
[14:32:31] Carella: has joined #ruby
[14:32:47] reppard: has joined #ruby
[14:32:52] failshell: has joined #ruby
[14:33:19] dlitvak_: has joined #ruby
[14:33:50] bronson: has joined #ruby
[14:34:50] stannard: has joined #ruby
[14:35:24] geekbri: has joined #ruby
[14:36:26] bweston92: has joined #ruby
[14:37:15] tsht: has joined #ruby
[14:37:17] despai_: has joined #ruby
[14:41:05] Xeago: has joined #ruby
[14:41:21] tsht: has joined #ruby
[14:43:03] JDiPierro: has joined #ruby
[14:43:28] Macaveli: has joined #ruby
[14:43:42] dlitvak: has joined #ruby
[14:44:24] sankaber: has joined #ruby
[14:45:02] fmcgeough: has joined #ruby
[14:45:12] dexter_e: has joined #ruby
[14:47:40] konsolebox: has joined #ruby
[14:48:25] northfurr: has joined #ruby
[14:48:26] dlitvak_: has joined #ruby
[14:48:40] akem: has joined #ruby
[14:49:00] jgt3: has joined #ruby
[14:49:17] tsht: has joined #ruby
[14:50:08] sankaber: has joined #ruby
[14:51:01] shinnya: has joined #ruby
[14:53:22] norc: Im prying into a rather convoluted binding. The pry prompt is 4500 characters long, making it a bit messy.
[14:53:43] norc: This is so sad. :(
[14:53:56] hayden_: has joined #ruby
[14:54:10] TomPeed: has joined #ruby
[14:54:50] Rodya_: has joined #ruby
[14:55:22] whippythellama: has joined #ruby
[14:59:15] tsht: has joined #ruby
[14:59:26] nofacade: has joined #ruby
[15:00:21] Brklyn: has joined #ruby
[15:00:34] atomical_: has joined #ruby
[15:00:47] BTRE: has joined #ruby
[15:01:34] rashmirathi: has joined #ruby
[15:02:45] jtzero: has joined #ruby
[15:03:39] Xeago: has joined #ruby
[15:03:51] B1n4r10: has joined #ruby
[15:03:58] Meow-J: has joined #ruby
[15:04:24] babblebre: has joined #ruby
[15:05:00] karapetyan: has joined #ruby
[15:06:56] nofacade: has joined #ruby
[15:08:49] karapetyan: has joined #ruby
[15:09:15] zerowaitstate: has joined #ruby
[15:09:18] tsht: has joined #ruby
[15:09:38] karapetyan: has joined #ruby
[15:10:38] sandstrom: has joined #ruby
[15:11:40] zeroDivisible: has joined #ruby
[15:12:08] vifino: has joined #ruby
[15:12:40] kalopsian: has joined #ruby
[15:13:17] tsht: has joined #ruby
[15:13:20] sucks: has joined #ruby
[15:13:45] Frem: has joined #ruby
[15:13:54] ych: has joined #ruby
[15:15:01] dopamean_: has joined #ruby
[15:15:46] nettoweb: has joined #ruby
[15:17:08] platzhirsch: has joined #ruby
[15:17:13] karapetyan: has joined #ruby
[15:17:17] sandstrom: has joined #ruby
[15:18:04] bkxd: has joined #ruby
[15:18:05] aegis3121: has joined #ruby
[15:18:06] avril14th: has joined #ruby
[15:19:16] lubekpl: has joined #ruby
[15:19:24] tsht: has joined #ruby
[15:19:40] dlitvak: has joined #ruby
[15:21:58] ht__: has joined #ruby
[15:22:58] anisha: has joined #ruby
[15:23:25] IrishGringo: has joined #ruby
[15:23:35] cassianoleal: has joined #ruby
[15:25:46] karapetyan: has joined #ruby
[15:26:26] icbm: has joined #ruby
[15:26:37] Ropeney: has joined #ruby
[15:26:50] ht__: has joined #ruby
[15:27:06] mlehrer: has joined #ruby
[15:28:33] kies^: has joined #ruby
[15:31:16] despai: has joined #ruby
[15:32:45] ht__: has joined #ruby
[15:32:59] vifino: has joined #ruby
[15:33:24] trinaldi: has joined #ruby
[15:34:29] Jardayn: has joined #ruby
[15:36:22] burgestrand: has joined #ruby
[15:36:30] snguyen: has joined #ruby
[15:37:47] momomomomo: has joined #ruby
[15:38:33] dhollinger: has joined #ruby
[15:38:34] VeryBewitching: has joined #ruby
[15:38:44] ht__: has joined #ruby
[15:38:58] VeryBewitching: Good morning folks.
[15:39:51] amb77_: has joined #ruby
[15:40:56] Affix: has joined #ruby
[15:41:37] skweek: has joined #ruby
[15:41:57] Amnez777: has joined #ruby
[15:41:57] yorickpeterse: omg stop casting spells on us
[15:42:25] Amnez777: has joined #ruby
[15:42:45] ht__: has joined #ruby
[15:42:50] dlitvak: has joined #ruby
[15:42:58] Amnez777: has joined #ruby
[15:43:05] dlitvak: has joined #ruby
[15:44:31] baweaver: has joined #ruby
[15:45:59] Amnez777: has joined #ruby
[15:46:27] sftrabbit: has joined #ruby
[15:47:13] nettoweb: has joined #ruby
[15:47:13] newbie22: has joined #ruby
[15:48:32] sgambino: has joined #ruby
[15:48:47] ht__: has joined #ruby
[15:49:14] Guest38: has joined #ruby
[15:49:30] kies^: has joined #ruby
[15:50:33] sandstrom: has joined #ruby
[15:50:57] cassianoleal: has joined #ruby
[15:51:54] snguyen: has joined #ruby
[15:52:00] mary5030: has joined #ruby
[15:52:44] ht__: has joined #ruby
[15:53:02] mary5030: has joined #ruby
[15:53:24] decoponio: has joined #ruby
[15:53:46] rickmasta: has joined #ruby
[15:54:43] dlitvak: has joined #ruby
[15:57:54] centrx: has joined #ruby
[15:58:13] amb77: has joined #ruby
[15:58:21] dlitvak_: has joined #ruby
[15:58:57] snguyen: has joined #ruby
[16:03:22] m3phisto: has joined #ruby
[16:03:31] MaveonRemaes: has joined #ruby
[16:05:03] platzhirsch: has left #ruby: ()
[16:06:19] nettoweb: has joined #ruby
[16:06:47] ht__: has joined #ruby
[16:07:04] yorickpeterse: VeryBewitching: are you a witch???!1!11
[16:07:17] yorickpeterse: (I'll stop now)
[16:07:23] melter: has joined #ruby
[16:07:33] VeryBewitching: Bewitching != Involvement with Covens
[16:07:46] VeryBewitching: Necessarily, anyway
[16:07:46] iamvery: has joined #ruby
[16:09:20] mdw: has joined #ruby
[16:11:11] william3: has joined #ruby
[16:12:04] twintail: has joined #ruby
[16:12:24] astrofog: has joined #ruby
[16:12:45] ht__: has joined #ruby
[16:12:59] x77686d: has joined #ruby
[16:13:11] jackjackdripper: has joined #ruby
[16:14:26] rkazak: has joined #ruby
[16:14:56] mpistone: has joined #ruby
[16:15:14] lurch_: has joined #ruby
[16:15:15] brendan-_: has joined #ruby
[16:16:02] chouhoulis: has joined #ruby
[16:16:37] uris: has joined #ruby
[16:17:04] bmalum: has joined #ruby
[16:19:12] karapetyan: has joined #ruby
[16:19:20] tomchapin: has joined #ruby
[16:20:04] idefine: has joined #ruby
[16:20:31] lessless: has joined #ruby
[16:20:33] cschneid_: has joined #ruby
[16:21:17] ht__: has joined #ruby
[16:21:33] User458764: has joined #ruby
[16:21:51] william3: has joined #ruby
[16:24:11] cdg: has joined #ruby
[16:25:29] symm-: has joined #ruby
[16:25:43] newbie22: has joined #ruby
[16:26:18] Abrin: has joined #ruby
[16:26:40] newbie22: has joined #ruby
[16:26:44] ht__: has joined #ruby
[16:29:27] chouhoulis: has joined #ruby
[16:29:57] shevy: a lying witch! BURN HER!!!
[16:30:55] lagweezle: But, how do we know she is a witch?
[16:31:05] lagweezle: She turned me into a newt!
[16:31:30] burgestrand: Ask it to debug haskell, nobody can debug haskell, only witches.
[16:32:44] hobodave: has joined #ruby
[16:33:25] imperator: has joined #ruby
[16:35:05] volty: has joined #ruby
[16:35:39] hobodave_: has joined #ruby
[16:35:46] celly: has joined #ruby
[16:36:45] polishdub: has joined #ruby
[16:37:02] arthropododo: has joined #ruby
[16:37:30] sandstrom: has joined #ruby
[16:39:37] celly: has joined #ruby
[16:41:09] yorickpeterse: lagweezle: we don't, it's a witch so they can change shape!
[16:41:15] yorickpeterse: let me get the cement blocks
[16:41:19] jbrhbr: has joined #ruby
[16:41:26] imperator: has left #ruby: ("Leaving")
[16:42:32] shevy: the italian job
[16:43:19] yorickpeterse: Burgestrand: false, witches won't openly brag about Haskell being great because it would blow their cover
[16:43:38] yorickpeterse: so non witches must also be able to debug Haskell
[16:43:45] yorickpeterse: Though it certainly requires magic
[16:43:47] yorickpeterse: ( ???_???) ( ???_???)>??????-??? (??????_???)
[16:46:16] lagweezle: yorickpeterse: Not sure if you realize, but that was a reference to Monty Python.
[16:46:52] yorickpeterse: did not realize
[16:47:42] lagweezle: Monty Python and the Holy Grail; scene where they are trying to prove a person is a witch. I can't say it's a GOOD movie, but it sure is a fun watch if you're into that humor type.
[16:49:06] weemsledeux: has joined #ruby
[16:50:04] skade: has joined #ruby
[16:53:28] zacstewart: has joined #ruby
[16:54:12] VeryBewitching: shevy: I would welcome fire, it's cold and damp outside today.
[16:54:19] VeryBewitching: Not my favourite combination.
[16:54:31] chouhoul_: has joined #ruby
[16:54:36] ziyadb: has joined #ruby
[16:54:54] shevy: lagweezle I know the dialogue by heart!
[16:55:17] lagweezle: steam bath!
[16:55:27] VeryBewitching: My favourite Monty Python is "The Ministry of Silly Walks" sketch
[16:55:46] sgambino_: has joined #ruby
[16:59:16] snowy: has joined #ruby
[16:59:41] amb77: has left #ruby: ()
[17:00:57] amclain: has joined #ruby
[17:01:57] idefine: has joined #ruby
[17:02:13] dlitvak: has joined #ruby
[17:02:31] ramfjord: has joined #ruby
[17:03:11] jgt3: has joined #ruby
[17:04:35] zambini: has joined #ruby
[17:04:54] hobodave: has joined #ruby
[17:06:26] mfb2: has joined #ruby
[17:07:16] zerowaitstate: https://www.youtube.com/watch?v=eQS6h6qy4tE
[17:07:25] Bloomer: has joined #ruby
[17:07:29] IrishGringo: has joined #ruby
[17:08:23] sepp2k: has joined #ruby
[17:08:55] kolup: has joined #ruby
[17:10:09] elifoster: has joined #ruby
[17:10:18] adgtl: has joined #ruby
[17:12:59] sgambino: has joined #ruby
[17:13:11] sneakerhax: has joined #ruby
[17:13:13] tjohnson: has joined #ruby
[17:14:19] webopsx: has joined #ruby
[17:15:08] yalue: has joined #ruby
[17:15:08] ElFerna: has joined #ruby
[17:16:46] william3: has joined #ruby
[17:17:04] Infra-Red: has joined #ruby
[17:18:02] djbkd: has joined #ruby
[17:18:50] Infra-Red: has joined #ruby
[17:19:58] [Butch]: has joined #ruby
[17:22:03] Deck`: has joined #ruby
[17:23:19] dionysus69: has joined #ruby
[17:23:53] Infra-Red: has joined #ruby
[17:23:54] wldcordeiro: has joined #ruby
[17:25:19] despai: has joined #ruby
[17:26:32] symm-: has joined #ruby
[17:28:00] kristofferR: has joined #ruby
[17:28:32] ferr: has joined #ruby
[17:29:15] mdw: has joined #ruby
[17:30:46] acidrainfall: has joined #ruby
[17:31:30] acidrainfall: Hey guys. I'd like to take user input, and if the user just presses enter, accept a default value. I'm struggling with this one.
[17:31:47] acidrainfall: A prompt like "Please specify instance(s) - defaults to 01"
[17:32:09] jhass: acidrainfall: use p input to look at what value you get in that case, check for that value and replace it with your default
[17:32:15] jottr_: has joined #ruby
[17:32:20] acidrainfall: So if they just press enter, it takes 01 as its value. I thought maybe something like "es_instances = gets || '01'" but that didn't work
[17:32:37] jhass: p es_instances in your case
[17:32:45] acidrainfall: I haven't heard of p
[17:33:09] jhass: it's short for puts es_instances.inspect
[17:33:35] acidrainfall: so take the input, and add an unless under it
[17:33:37] Gnut: has joined #ruby
[17:34:05] jhass: rather an if
[17:35:39] KensoDev: has joined #ruby
[17:36:15] acidrainfall: yeah an if is better
[17:36:21] acidrainfall: thanks jhass that got it
[17:36:36] volty: !gets.chomp.empty? || "01"
[17:37:18] newbie22: has joined #ruby
[17:37:20] synthroid: has joined #ruby
[17:37:37] jhass: I prefer es_instances = "01" if es_instances.nil? || es_instances.chomp.empty? here
[17:37:45] jhass: (guards against pressing ctrl+d too)
[17:38:04] shevy: yeah whenever the cat presses the keys
[17:38:26] adgtl: has joined #ruby
[17:39:21] Gnut: Is there a good method for converting an entire hash (with some nested arrays) to symbol keys?
[17:41:57] sgambino: has joined #ruby
[17:43:45] vondruch: has joined #ruby
[17:44:55] tilllt: has joined #ruby
[17:45:25] rakm: has joined #ruby
[17:45:29] baweaver: has joined #ruby
[17:46:27] acidrainfall: volty: that's what I was trying to do.
[17:46:32] acidrainfall: It was the ! that I didn't have I guess.
[17:47:14] shevy: Gnut do you have a small subset as example of your hash?
[17:48:37] tilllt: hi, a beginner question??? if a variable is returned, which begins like this: "#<Ffprober::Wrapper:0x007ffa491fde20 @json= ??? (lots of json follows)??? what typ of data is that and why the crc at the beginning? and how do i access the json part?
[17:48:38] volty: gnut: it should go like this h.inject({}) { |nh, pair| nh[pair[0].to_sym] = pair[1] ; nh } // then you have to check if the pair[1] is a hash and recurse on on it
[17:50:06] acidrainfall: I'm starting to write all my admin scripts in ruby (because fuck bash), but the most experience I have is in bash, sorry for the equivalency questions
[17:50:07] volty: so you should enclose it in a def and call recursively (i guess your 'nested arrays' really meant 'nested hashes')
[17:50:19] acidrainfall: in bash I can expand a range with {01..20}, in ruby it's (01..20)
[17:50:24] xxmphp: has joined #ruby
[17:50:41] acidrainfall: same thing. I want to take user input, to allow a user to specify a list of hostnames (server-(01..20).location)
[17:51:05] acidrainfall: I figured that might just... work and stuff. But variable.to_a isn't happy.
[17:51:09] volty: i am going to write sysv-rc-conf in qtruby. (going but who knows when ....)
[17:51:29] shevy: you are the qtruby man
[17:51:40] Felix444: has joined #ruby
[17:51:45] felixal: has joined #ruby
[17:51:52] volty: shevy: absolutely. useful and funny
[17:52:19] shevy: acidrainfall yeah shell scripts annoyed me too, in particular when things become more complex/bigger
[17:52:44] acidrainfall: Bash is nice because when there isn't a built-in function, I can just call a program
[17:52:47] shevy: just simple things like calling a function with arguments
[17:52:51] acidrainfall: Using my entire OS for scripting.
[17:52:51] volty: acidrainfall: try to restate what you want to achieve
[17:52:59] shevy: why can't bash use something like: def foo(a,b,c)
[17:53:34] shevy: ruby can :)
[17:53:39] acidrainfall: Okay. like this: "Please specify your hostnames:" and accept an answer like "server-(01..20).place.com", which would then expand to an array server-01.place.com, server-02.place.com, etc
[17:54:13] volty: Array.new(20) { gets.chomp }
[17:54:35] Papierkorb: volty: he wants to expand that input, not get 20 different user inputs
[17:55:06] johnnyt: has joined #ruby
[17:55:18] jbrhbr: has joined #ruby
[17:55:33] volty: ah, I see :)
[17:55:37] jordanm: has joined #ruby
[17:55:43] idefine: has joined #ruby
[17:55:45] skade: has joined #ruby
[17:56:43] sanguisdex: has joined #ruby
[17:56:51] Gnut: shevy/volty: https://gist.github.com/Ghjnut/1ad1f22d3d7ce4d6ffd7
[17:57:32] adgtl: has joined #ruby
[17:57:48] acidrainfall: What I want is *super* easy in bash, I feel like Ruby has to have some analog
[17:58:12] shevy: acidrainfall you can write a DSL that will interprete the above
[17:58:15] zacstewa_: has joined #ruby
[17:58:57] Papierkorb: acidrainfall: nothing OOTB, but also nothing that's not doable
[17:58:58] celly: has joined #ruby
[17:59:01] volty: acidrainfall: yes it has. have to think
[17:59:21] acidrainfall: Maybe I should go about this another way
[17:59:38] celly: has joined #ruby
[18:00:24] shevy: Gnut hash.map {|key, value| {key.to_sym => value} }.first works ? I got back: x = hash.map {|key, value| {key.to_sym => value} }.first # => {:masters=>[{:address=>"127.0.0.1", :port=>"6379", :quorum=>2, :down_after_milliseconds=>30000, :unixsocket=>"/tmp/redis-sentinel.sock", :unixsocketperm=>"777", :can_failover=>"yes", :parallel_syncs=>1, :failover_timeout=>900000}]} ... I think that is the equivalent
[18:00:37] volty: Gnut: you have to check if the pair two is an array, and if so iterate over it calling recursively if the element is a hash
[18:00:37] aegis3121: has joined #ruby
[18:00:54] Papierkorb: acidrainfall: have a method, which does str.match and matches for stuff like {0..1}. catch the str before and after, and the a..b stuff too. Interpret the a..b stuff and map it to an array. then, to the same recursively until the regex no longer matches
[18:01:14] peterevjan: has joined #ruby
[18:01:31] chouhoulis: has joined #ruby
[18:01:39] Papierkorb: the interpet phase is pretty much (lo..hi).map{|cur| "#{before}#{cur}#{after}" }
[18:01:42] acidrainfall: Yeah I think I'll rethink this
[18:01:43] dionysus69: has joined #ruby
[18:01:53] acidrainfall: Maybe I should have a list of hosts already configured
[18:01:58] Puffball: has joined #ruby
[18:02:01] Papierkorb: Or allow multiple arguments if it's a CLI tool
[18:02:22] celly_: has joined #ruby
[18:03:22] firstdayonthejob: has joined #ruby
[18:04:14] acidrainfall: Multiple arguments isn't a problem for me
[18:04:56] acidrainfall: It's that I don't want to copypasta 20 hosts every time I run this
[18:05:22] craysiii: has joined #ruby
[18:05:32] volty: (host.scan /\((\d+)\.\.(\d+)\)/).flatten.map(&:to_i)
[18:05:43] mikecmpbll: has joined #ruby
[18:05:53] Papierkorb: acidrainfall: well if they're arguments, you could just use your shells expansion
[18:06:34] Papierkorb: volty: try this in your shell: echo a{1..4}b
[18:06:43] volty: with that one you get the range in an array, then have to split the host on (....)
[18:06:56] volty: Papierkorb: I am allergic to shell :)
[18:07:03] Papierkorb: I'm sorry for your loss
[18:07:26] SCHAAP137: has joined #ruby
[18:07:31] volty: don't be sorry - that I'm living better in ruby
[18:08:03] eam: acidrainfall: I have a library specifically tailored to dealing with large ranges of hosts
[18:08:12] eam: https://github.com/square/libcrange
[18:08:35] Puffball: has joined #ruby
[18:08:43] eam: there's a rubygem and everything
[18:10:30] eam: there's also a go verison https://github.com/square/grange
[18:10:53] eam: if you're doing a lot of stuff with large sets of hosts I recommend adopting this syntax
[18:11:23] blackmesa: has joined #ruby
[18:11:54] acidrainfall: eam: Well aren't you just wonderful <3
[18:12:21] eam: we developed the syntax a looooong time ago in inktomi search, where we regularly had to deal with lists of thousands of nodes
[18:12:44] cassianoleal: has joined #ruby
[18:13:17] eam: it also incorporates set operations so you can do stuff like @these_hosts - appservers001..020.site.com - /databases/
[18:13:30] blandflakes: has joined #ruby
[18:13:33] eam: groups, clusters, regex filters, intersections, etc
[18:14:04] eam: and then embed that syntax into ruby, javascript, w/e so all your cli tools and webapps can speak it
[18:14:33] jgt3: has joined #ruby
[18:17:02] uri___: has joined #ruby
[18:17:06] sftrabbit: has joined #ruby
[18:17:23] KensoDev: has joined #ruby
[18:17:57] StinkySteve: has joined #ruby
[18:18:38] nrsk_: has joined #ruby
[18:18:42] volty: exp = /\((\d+)\.\.(\d+)\)/; r = Range.new *(s.scan(exp)).flatten.map(&:to_i); ss = s.split(exp); r.map { |i| "#{ss[0]}#{"%02d" % i }#{ss[-1]}"}; ;
[18:18:58] Deck`: has joined #ruby
[18:19:32] TomyLobo: has joined #ruby
[18:19:33] KensoDev: has joined #ruby
[18:21:39] Meow-J: has joined #ruby
[18:22:26] ocbtec: has joined #ruby
[18:22:27] volty: >> s = "boom-(1..20).fr"; exp = /\((\d+)\.\.(\d+)\)/; r = Range.new *(s.scan(exp)).flatten.map(&:to_i); ss = s.split(exp); r.map { |i| "#{ss[0]}#{"%02d" % i }#{ss[-1]}"}; ;
[18:22:28] ruby[bot]: volty: # => ["boom-01.fr", "boom-02.fr", "boom-03.fr", "boom-04.fr", "boom-05.fr", "boom-06.fr", "boom-07.fr", " ...check link for more (https://eval.in/513311)
[18:22:49] eam: acidrainfall: so like, here's an example from using mssh, which uses the range library to accept sets of hosts to work on and also to compress the output https://gist.github.com/eam/545dc3e0a185259158b1
[18:22:58] eam: mssh is another rubygem
[18:23:37] dfockler: has joined #ruby
[18:23:41] eam: what I'm doing there is ssh'ing to an arbitrary list of hosts (defined by the range expression) and bucketing each one based on a hash of the /etc/passwd file -- to find out that two of my hosts don't have a matching /etc/passwd file and probably need to be fixed
[18:23:59] araujo: has joined #ruby
[18:24:05] KensoDev: has joined #ruby
[18:26:15] Ox0dea: >> "boom-(1..5).fr"[/\((\d+)\.\.(\d+)\)/]; ($1..$2).map { |x| "#$`#{x}#$'" } # volty
[18:26:16] ruby[bot]: Ox0dea: # => ["boom-1.fr", "boom-2.fr", "boom-3.fr", "boom-4.fr", "boom-5.fr"] (https://eval.in/513314)
[18:27:10] ramfjord: has joined #ruby
[18:27:18] volty: Ox0dea: yap. my first idea. but breaked to allow him to check for the bounds (let's suppose the user types 1..100000000000000000000000000000) :P
[18:27:59] volty: nice piece anyway, by a master
[18:28:17] Ox0dea: s/master/troll/
[18:28:25] Ox0dea: Unbracketed interpolation and everything!
[18:29:14] karapetyan: has joined #ruby
[18:29:15] pipework: Ox0dea: you are into some weird stuff, bud.
[18:29:38] KensoDev_: has joined #ruby
[18:30:47] Ox0dea: volty: This is what I hear every time you say "ah ah": https://www.youtube.com/watch?v=B-Wd-Q3F8KM
[18:30:54] zacstewart: has joined #ruby
[18:31:50] volty: ah, the muppets, wonderful
[18:32:03] karapetyan: has joined #ruby
[18:33:22] x77686d: has joined #ruby
[18:34:43] zyzioziom: has joined #ruby
[18:35:15] idefine: has joined #ruby
[18:38:47] nerium: has joined #ruby
[18:39:14] JDiPierro: has joined #ruby
[18:39:27] duckpuppy: has joined #ruby
[18:41:09] at46: has joined #ruby
[18:42:06] at46_: has joined #ruby
[18:45:28] User458764: has joined #ruby
[18:45:41] pilne: has joined #ruby
[18:46:13] mostlybadfly: has joined #ruby
[18:47:28] mdw: has joined #ruby
[18:47:38] zambini: has joined #ruby
[18:47:44] baweaver: has joined #ruby
[18:47:48] jbrhbr: has joined #ruby
[18:49:20] Azulinho: has joined #ruby
[18:49:46] Timba-as: has joined #ruby
[18:49:53] idefine: has joined #ruby
[18:49:58] blandflakes: has joined #ruby
[18:50:04] mfb2: has joined #ruby
[18:50:22] treehug88: has joined #ruby
[18:52:59] Xeago: has joined #ruby
[18:53:19] djbkd: has joined #ruby
[18:54:47] atmosx: has joined #ruby
[18:55:47] visudo: has joined #ruby
[18:56:03] skade: has joined #ruby
[18:59:08] newbie22: has joined #ruby
[19:00:45] aegis3121: has joined #ruby
[19:01:22] evidex: has joined #ruby
[19:01:34] ETdude: has joined #ruby
[19:02:16] jxs_: has joined #ruby
[19:02:18] webopsx: has joined #ruby
[19:02:34] hobodave: has joined #ruby
[19:02:44] ElFerna: has joined #ruby
[19:04:28] chouhoul_: has joined #ruby
[19:04:53] whathappens: has joined #ruby
[19:08:00] amb77: has joined #ruby
[19:09:44] at46: has joined #ruby
[19:10:07] at46_: has joined #ruby
[19:10:32] podman: has joined #ruby
[19:11:52] emilkarl: has joined #ruby
[19:12:04] duckpuppy: has joined #ruby
[19:12:17] idefine: has joined #ruby
[19:14:09] oetjenj: has joined #ruby
[19:15:18] bronson: has joined #ruby
[19:15:28] burgestrand: has joined #ruby
[19:16:02] shadoi: has joined #ruby
[19:18:09] uris: has joined #ruby
[19:18:40] ElFerna: has joined #ruby
[19:19:57] barajasfab: has joined #ruby
[19:20:08] krobzaur: has joined #ruby
[19:20:34] freerobby: has joined #ruby
[19:20:44] vl408: has left #ruby: ()
[19:21:54] moted: has joined #ruby
[19:23:54] mfb2: has joined #ruby
[19:24:56] crime: has joined #ruby
[19:25:20] crime: guys, I made it to NYC. I don't have a job writing sick ruby all day yet, but I made it here anyways and that counts for something
[19:25:57] amb77: has joined #ruby
[19:26:09] pwnd_nsfw: has joined #ruby
[19:27:18] blandflakes: has joined #ruby
[19:27:36] jackjackdripper: has joined #ruby
[19:27:43] jackjackdripper: has joined #ruby
[19:27:50] shadoi: sick ruby is surely in your future.
[19:28:08] newbie22: has joined #ruby
[19:28:54] crime: i know, just gotta get my foot in the door somewhere
[19:28:57] jottr_: has joined #ruby
[19:31:17] Rodya_: has joined #ruby
[19:31:30] eam: syck ruby
[19:32:39] Timba-as: has joined #ruby
[19:33:55] dreinull: has joined #ruby
[19:34:18] jackjackdripper: has joined #ruby
[19:36:09] newbie22: Is there such a thing as ruby certifications
[19:37:07] idefine: has joined #ruby
[19:38:08] d10n-work: has joined #ruby
[19:38:42] adac: has joined #ruby
[19:38:46] tubbo: newbie22: no.
[19:39:31] agent_white: has joined #ruby
[19:40:33] YankNYC: has joined #ruby
[19:40:45] YankNYC: hey everyone
[19:40:54] YankNYC: would someone like to help refactor this method
[19:40:59] YankNYC: https://gist.github.com/genericlady/547b017e472daaf2f276
[19:41:13] aegis3121: Looks like #map
[19:41:54] PedramT: has joined #ruby
[19:45:43] adgtl: has joined #ruby
[19:46:36] ur5us: has joined #ruby
[19:47:00] yqt: has joined #ruby
[19:47:31] Xeago: has joined #ruby
[19:48:17] askhat: has joined #ruby
[19:48:57] lilvim: has joined #ruby
[19:50:54] uris: has joined #ruby
[19:51:09] askhat: has joined #ruby
[19:52:54] uris: has joined #ruby
[19:53:34] arup_r: has joined #ruby
[19:53:51] kirun: has joined #ruby
[19:54:26] arup_r: When you have an array ["Monday", "Tuesday", "Wednesday"] and how do you create [{:name=>"Monday"}, {:name=>"Tuesday"}, {:name=>"Wednesday"}] ? I did like a.map { |day| {name: day} } .. amy more clever way ?
[19:55:14] aegis3121: Seems right.
[19:56:08] DoubleMalt: has joined #ruby
[19:56:32] Ox0dea: YankNYC: https://eval.in/513328
[19:57:09] Ox0dea: Ignore the mojibake.
[19:58:11] Xeago: has joined #ruby
[19:58:13] askhat: has joined #ruby
[19:58:42] mdw: has joined #ruby
[19:59:02] YankNYC: ahhhh word boundaries!
[19:59:10] YankNYC: you're the bestest
[20:00:07] burgestrand: has joined #ruby
[20:00:15] aegis3121: has joined #ruby
[20:00:34] askhat: has joined #ruby
[20:00:54] skade: has joined #ruby
[20:00:57] sivoais: has joined #ruby
[20:01:44] Ox0dea: Oh, wow. Since when does Google observe backslashes in queries?
[20:02:04] rhg135: has joined #ruby
[20:02:06] askhat: has joined #ruby
[20:02:31] Ox0dea: But yeah, word boundaries; they're pretty neat.
[20:02:49] YankNYC: Ox0dea so is there a way with Regular expressions to target a with that begins with and ends with
[20:02:58] SCHAAP137: finally, my weather cinch bot is working properly, it's awesome
[20:02:59] YankNYC: is that what the word boundary is for?
[20:03:13] pdoherty: has joined #ruby
[20:03:15] FernandoBasso: has joined #ruby
[20:04:34] crime: why wouldnt you use something like text.scan(/\w+/).select { |word| word.length == 5}
[20:04:44] crime: isnt that a bit more immediately obvious for most?
[20:04:47] davedev24: has joined #ruby
[20:04:51] burgestrand: has joined #ruby
[20:05:07] YankNYC: crime you don't even need to do that if you use word boundaries in your regular expression
[20:05:26] YankNYC: checkout Ox0dea's paste
[20:06:00] crime: i guess I just prefer to offload that sort of thing to ruby rather than the regex
[20:06:01] futilegames: has joined #ruby
[20:06:33] YankNYC: funny on this page http://www.regular-expressions.info/refwordboundaries.html it doesn't show how to capture a and c
[20:07:08] john2496: has joined #ruby
[20:08:13] rhg135: has joined #ruby
[20:08:23] Ox0dea: crime: \w matches underscore.
[20:08:28] benlieb: has joined #ruby
[20:08:49] yokel: has joined #ruby
[20:08:58] crime: that block would need to match five of them
[20:09:06] john2496: anyone know how to execute a method defined in a string, and pass arguments to that method? eg. method_name = "SomeClass.the_method"; method_name.call("some argument");
[20:09:08] Ox0dea: Someone's not paying attention.
[20:09:26] benlieb: I'm trying to get a hash of specific attributes that a rails model has. It feels verbose. Is there a better/native way to do this? attribs = {}; [:name, :email, :message, :message_type].each{|attr| attribs[attr] = s[attr]}
[20:09:47] crime: i just hate regex. no need to use any more than necessary
[20:09:53] minimalism: has joined #ruby
[20:10:17] davedev24: has joined #ruby
[20:10:52] doublemalt_: has joined #ruby
[20:10:58] sivoais: has joined #ruby
[20:11:04] Macaveli: has joined #ruby
[20:11:13] Ox0dea: john2496: Sounds dangerous.
[20:11:26] Ox0dea: You want #const_get and #public_send, but not really.
[20:11:47] YankNYC: Ox0dea can you help me refactor one more pls?
[20:12:06] john2496: Ox0dea: yea, it's a bit wonky - I'm trying to create a generic ActiveJob
[20:12:11] john2496: Ox0dea: Awesome, thank you
[20:12:18] Ox0dea: john2496: Godspeed. :)
[20:12:38] yfeldblum: has joined #ruby
[20:12:53] hosttor: has joined #ruby
[20:13:16] e4xit: has joined #ruby
[20:14:42] YankNYC: https://gist.github.com/genericlady/7de6ffc6179a7b064d5a
[20:15:06] Cohedrin: has joined #ruby
[20:15:22] amb77: has joined #ruby
[20:15:28] YankNYC: Ox0dea this helps a lot. I can get things to pass but I appreciate the help making it better. it's going into my notes <3
[20:15:32] Musashi007: has joined #ruby
[20:15:51] Ox0dea: YankNYC: You want /\bun.+ing\b/.
[20:16:22] Cohedrin: has joined #ruby
[20:16:32] Ox0dea: /[un]{2}/ will match things like "uu", "nn", and "nu".
[20:17:03] ta: has joined #ruby
[20:17:04] baweaver: has joined #ruby
[20:17:05] ETdude: has joined #ruby
[20:17:36] Zai00: has joined #ruby
[20:17:55] dlitvak: has joined #ruby
[20:17:58] TomPeed: has joined #ruby
[20:17:58] ETdude: how can I hide join/leave messages?
[20:18:21] YankNYC: because everything i find shows how to target either or but not AND. so i'm at a loss
[20:18:27] terminalrecluse: has joined #ruby
[20:18:34] crime: check your client settings ETdude
[20:18:35] firstdayonthejob: has joined #ruby
[20:18:39] jackjackdripper1: has joined #ruby
[20:19:03] Ox0dea: YankNYC: Maybe it helps to think of AND as the default semantics.
[20:19:12] ETdude: <<<total noob
[20:19:15] Ox0dea: All parts have to match unless explicitly specified otherwise.
[20:19:32] spider-mario: has joined #ruby
[20:20:05] jackjackdripper: has joined #ruby
[20:20:34] Ox0dea: >> %w[union uniting ending unending].grep(/\bun.+ing\b/) # YankNYC
[20:20:35] ruby[bot]: Ox0dea: # => ["uniting", "unending"] (https://eval.in/513333)
[20:20:59] YankNYC: those word boundaries are awesome
[20:21:00] sivoais: has joined #ruby
[20:21:22] YankNYC: i have some more examples to do so i'll use what you showed me. thanks
[20:22:30] Ox0dea: Happy to help. :)
[20:22:35] Mon_Ouie: has joined #ruby
[20:23:25] YankNYC: yay it all clicks. no need to be afraid of regex's lol ttyl
[20:24:52] benlieb: has joined #ruby
[20:25:03] mhoungbo: has joined #ruby
[20:25:57] dlitvak: has joined #ruby
[20:26:59] idefine: has joined #ruby
[20:27:11] sandstrom: has joined #ruby
[20:27:13] idefine: has joined #ruby
[20:29:10] pilne: has left #ruby: ("Leaving!")
[20:29:19] idefine: has joined #ruby
[20:29:45] hobodave: has joined #ruby
[20:31:29] sivoais: has joined #ruby
[20:32:49] warprobot: has joined #ruby
[20:33:33] grn: has joined #ruby
[20:34:24] idefine_: has joined #ruby
[20:35:27] Infra-Red: has joined #ruby
[20:35:28] dlitvak_: has joined #ruby
[20:38:19] tubbo: YankNYC: rubular.com also helps you be less afraid of regex
[20:38:33] bronson_: has joined #ruby
[20:38:45] aegis3121: http://regexr.com/ is alrso opretty handy
[20:38:47] polishdub_: has joined #ruby
[20:38:51] ruby[bot]: Resources for regular expressions: http://ruby-doc.org/core/Regexp.html || http://rubular.com/ || http://www.regular-expressions.info
[20:39:21] Iszak_: has joined #ruby
[20:39:41] astrobunny: has joined #ruby
[20:39:47] skyjumpe1: has joined #ruby
[20:40:24] S01780_: has joined #ruby
[20:40:28] ndrx42: has joined #ruby
[20:40:30] mary5030_: has joined #ruby
[20:41:52] grn_: has joined #ruby
[20:42:00] ryotarai_: has joined #ruby
[20:42:18] sivoais: has joined #ruby
[20:42:35] tomphp: has joined #ruby
[20:42:55] ahuman_: has joined #ruby
[20:43:04] Marc-: has joined #ruby
[20:43:27] ndrx42: has left #ruby: ()
[20:43:46] hinbody_: has joined #ruby
[20:43:47] tarantul_: has joined #ruby
[20:44:07] karapetyan: has joined #ruby
[20:44:11] bove_: has joined #ruby
[20:44:12] NET||abu-: has joined #ruby
[20:44:20] Ankhers_: has joined #ruby
[20:44:23] pluralism: has joined #ruby
[20:44:25] Infra-Red: has joined #ruby
[20:44:42] raenk_: has joined #ruby
[20:44:49] [Butch]_: has joined #ruby
[20:44:55] baweaver: has joined #ruby
[20:45:01] B1n4r10: has joined #ruby
[20:45:03] xpt1: has joined #ruby
[20:45:06] x77686d: has joined #ruby
[20:45:30] Ox0dea: "Regexes are encapsulated sequences of commands, loops, control flow, assertions, and exception handling."
[20:45:35] Ox0dea: It's Just Programming???
[20:45:38] jackjackdripper1: has joined #ruby
[20:45:43] mkosaki_: has joined #ruby
[20:45:44] baweaver: has joined #ruby
[20:45:52] ltd: has joined #ruby
[20:45:52] pmarreck_: has joined #ruby
[20:45:58] AdamMeghji_: has joined #ruby
[20:46:03] Puffball_: has joined #ruby
[20:46:09] chouhoulis: has joined #ruby
[20:46:39] Lloyd__: has joined #ruby
[20:47:06] urbanmonk: has joined #ruby
[20:47:17] apipkin_: has joined #ruby
[20:47:23] srenatus_: has joined #ruby
[20:47:27] arian0n-: has joined #ruby
[20:47:51] im0b_: has joined #ruby
[20:47:58] TomyLobo: has joined #ruby
[20:48:06] arthropododo: has joined #ruby
[20:48:24] terminalrecluse: has joined #ruby
[20:48:28] Guest85414______: has joined #ruby
[20:49:01] hobodave: has joined #ruby
[20:49:08] haasn: has joined #ruby
[20:49:24] chipotle: has joined #ruby
[20:49:28] ElFerna: has joined #ruby
[20:49:41] Diabolik: has joined #ruby
[20:49:41] Domaldel: has joined #ruby
[20:49:41] 7F1AA9JOM: has joined #ruby
[20:49:41] ramfjord: has joined #ruby
[20:49:41] Gnut: has joined #ruby
[20:49:41] mpistone: has joined #ruby
[20:49:41] Brklyn: has joined #ruby
[20:49:41] sorah: has joined #ruby
[20:49:41] FooMunki: has joined #ruby
[20:49:41] c355E3B: has joined #ruby
[20:49:41] 7F1AA9CTD: has joined #ruby
[20:49:41] Lightsword: has joined #ruby
[20:49:41] tris: has joined #ruby
[20:49:41] nullwarp: has joined #ruby
[20:49:42] flughafen: has joined #ruby
[20:49:42] CoderPuppy: has joined #ruby
[20:49:42] techietrash: has joined #ruby
[20:49:42] Sou|cutter: has joined #ruby
[20:49:42] gilesww: has joined #ruby
[20:49:42] ironcamel: has joined #ruby
[20:49:42] ddv: has joined #ruby
[20:49:42] snapcase: has joined #ruby
[20:49:42] Laaw: has joined #ruby
[20:49:42] hplar: has joined #ruby
[20:49:42] ndrst: has joined #ruby
[20:49:51] FooMunki_: has joined #ruby
[20:50:03] Brklyn_: has joined #ruby
[20:50:34] philtr: has joined #ruby
[20:50:42] abra0: has joined #ruby
[20:50:45] heftig: has joined #ruby
[20:50:49] Hobbyboy: has joined #ruby
[20:51:00] c355E3B: has joined #ruby
[20:51:04] Diabolik: has joined #ruby
[20:51:13] aibot_: has joined #ruby
[20:51:24] knight_: has joined #ruby
[20:51:25] mpistone: has joined #ruby
[20:51:34] Diabolik: has joined #ruby
[20:51:47] ramfjord: has joined #ruby
[20:52:00] ironcamel: has joined #ruby
[20:52:01] Gnut: has joined #ruby
[20:52:04] Diabolik: has joined #ruby
[20:52:18] gigetoo: has joined #ruby
[20:52:58] sivoais: has joined #ruby
[20:53:37] heidar: has joined #ruby
[20:54:03] matt_d: has joined #ruby
[20:54:42] cfa6rtx8: has joined #ruby
[20:54:46] hosttor: has joined #ruby
[20:55:39] aegis3121: has joined #ruby
[20:55:52] nullwarp: has joined #ruby
[20:55:58] Laaw: has joined #ruby
[20:56:10] cpup: has joined #ruby
[20:56:12] techietrash: has joined #ruby
[20:56:18] tris: has joined #ruby
[20:56:50] whathappens: has joined #ruby
[20:57:24] chouhoul_: has joined #ruby
[20:57:53] test`: has joined #ruby
[20:59:17] firstdayonthejob: has joined #ruby
[21:01:37] mdw: has joined #ruby
[21:04:03] Pumukel: has joined #ruby
[21:04:12] djbkd: has joined #ruby
[21:04:26] gilesww: has joined #ruby
[21:04:27] tomphp: has joined #ruby
[21:05:12] Sou|cutter: has joined #ruby
[21:06:15] zeroDivisible: has joined #ruby
[21:06:49] agent_white: has joined #ruby
[21:06:54] dlitvak: has joined #ruby
[21:09:15] Azulinho: has joined #ruby
[21:09:21] agentmeerkat: has joined #ruby
[21:09:39] Nanuq: has joined #ruby
[21:10:33] blackgoat: has joined #ruby
[21:11:14] moeabdol: has joined #ruby
[21:11:37] djbkd: has joined #ruby
[21:11:58] vF3hNGxc47h8: has joined #ruby
[21:14:13] astrofog: has joined #ruby
[21:14:31] chouhoulis: has joined #ruby
[21:14:47] tomphp: has joined #ruby
[21:14:49] YankNYC: so i can't get this expression to work without or https://gist.github.com/genericlady/4e125a65c2109a46c9f0
[21:16:16] YankNYC: so Ox0dea you explained regular expression automatically use and. so when i take out the pipe it won't match. so i don't get it.
[21:16:29] YankNYC: the word boundaries aren't necessary even in this case right?
[21:16:44] casadei: has joined #ruby
[21:16:47] Ox0dea: YankNYC: It's unclear what you're trying to match there.
[21:17:10] synthroid: has joined #ruby
[21:17:19] YankNYC: i can make it clear
[21:17:31] YankNYC: let me run the test and show you
[21:17:54] centrx: "the beginning and the end" obviously
[21:18:08] hahuang65: has joined #ruby
[21:18:25] AlexRussia: has joined #ruby
[21:18:58] centrx: the whole string shebang
[21:21:06] jtzero1: has joined #ruby
[21:21:45] YankNYC: https://gist.github.com/genericlady/b376c362220bb28a492c
[21:23:20] YankNYC: maybe my only choice is using to evaluations with two separate regular expressions
[21:23:27] YankNYC: err two evaluations
[21:24:05] Mon_Ouie: /\A[A-Z].+\.\z/
[21:24:18] Mon_Ouie: (and just replace \. with a character class for all the punctuation symbols you care about)
[21:24:37] Ox0dea: YankNYC: ^ Still "AND" semantics.
[21:25:04] Ox0dea: Match a capital letter at the beginning AND then anything else AND then punctuation at the end.
[21:26:21] webopsx: has joined #ruby
[21:27:46] nerium: has joined #ruby
[21:28:29] bluOxigen_: has joined #ruby
[21:31:48] crank1988: has joined #ruby
[21:32:05] aegis3121: has joined #ruby
[21:32:08] Toledo|gone: has left #ruby: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[21:32:31] terminalrecluse: has joined #ruby
[21:32:50] acidrainfall: has joined #ruby
[21:33:05] urbanmonk: has joined #ruby
[21:34:27] flughafen: has joined #ruby
[21:34:27] FooMunki: has joined #ruby
[21:34:59] YankNYC: wow this is really hard
[21:35:59] bluOxigen: has joined #ruby
[21:39:34] tAn: has joined #ruby
[21:40:20] hahuang65: has joined #ruby
[21:43:03] jbrhbr: has joined #ruby
[21:43:23] newbie: has joined #ruby
[21:44:34] tomphp: has joined #ruby
[21:45:02] TomyLobo: has joined #ruby
[21:45:04] ElFerna: has joined #ruby
[21:45:27] karapetyan: has joined #ruby
[21:46:29] aegis3121: has joined #ruby
[21:47:07] tjohnson: has joined #ruby
[21:47:32] Lloyd: has joined #ruby
[21:47:40] zerowaitstate: has joined #ruby
[21:47:53] IanMalcolm: has joined #ruby
[21:47:54] dlitvak: has joined #ruby
[21:47:58] Aviio: has joined #ruby
[21:48:24] zipkid: has joined #ruby
[21:48:48] elifoster: has joined #ruby
[21:48:55] IanMalcolm: has joined #ruby
[21:48:57] skweek: has joined #ruby
[21:49:33] exadeci: has joined #ruby
[21:52:30] YankNYC: here is the expression that worked \b\A[A-Z].+[!?.]$
[21:52:44] YankNYC: Thank you for the help today
[21:54:56] newbie22: has joined #ruby
[21:55:14] dlitvak_: has joined #ruby
[21:55:16] newbie22: has joined #ruby
[21:55:53] gambl0re: has joined #ruby
[21:56:21] skweek: has joined #ruby
[21:56:29] wldcordeiro: has joined #ruby
[21:56:37] rickmasta: has joined #ruby
[21:56:49] apeiros: \b\A[A-Z] seems to have redundancy. \b is probably irrelevant there.
[21:56:56] trinaldi: has joined #ruby
[21:57:17] Timba-as: has joined #ruby
[21:57:18] celly: has joined #ruby
[21:58:29] tomphp: has joined #ruby
[21:58:40] agentmeerkat: has joined #ruby
[22:01:00] Ox0dea: I feel like /$^/ should raise Errno::EDOOFUS.
[22:01:33] ElFerna: has joined #ruby
[22:02:36] YankNYC: This is the resulting code i'll try without \b but there might be an edge case. !!text.match(/\b\A[A-Z].+[!?.]$/)
[22:02:55] Felix444: has joined #ruby
[22:02:57] YankNYC: is that an expensive way of doing it? because isn't it creating a match object
[22:03:13] skweek: has joined #ruby
[22:04:00] YankNYC: @apeiros good call ty
[22:04:17] Ox0dea: It's more expensive than #=~, which just returns an index or `nil`.
[22:04:18] Mon_Ouie: You can just use =~ instead of match if you only care about whether or not the string is matched (I don't know if it's actually slower)
[22:04:41] Rodya_: has joined #ruby
[22:06:02] YankNYC: Mon_Ouie merci', I tried that but maybe i'm grouping it wrong it's not passing
[22:06:32] dlitvak: has joined #ruby
[22:07:00] apeiros: Ox0dea: "it looks like you're trying to anchor your regex, do you want me to help you with it?"
[22:07:08] platzhirsch: has joined #ruby
[22:07:12] YankNYC: IRC, best place to find smart people
[22:07:23] YankNYC: !!text.match(/\b\A[A-Z].+[!?.]$/)
[22:07:58] apeiros: text !~ /regex/
[22:08:00] YankNYC: !!(text =~ /\A[A-Z].+[!?.]$/)
[22:08:50] despai: has joined #ruby
[22:09:02] Ox0dea: bougyman: It's prime!
[22:09:21] bougyman: don't mention "Prime", please.
[22:09:29] bougyman: ACTION in a bit of amazon hell atm
[22:09:51] eam: they're doing ATMs now?
[22:10:12] bougyman: I wouldn't be surprised.
[22:11:20] peterevjan: has joined #ruby
[22:12:22] stevemackinnon: has joined #ruby
[22:12:38] Ox0dea: eam: They're doing bookstores.
[22:12:55] eam: you do what you are
[22:13:25] skweek: has joined #ruby
[22:16:32] zambini: has joined #ruby
[22:16:59] roshanavand: has joined #ruby
[22:17:30] pawnbox: has joined #ruby
[22:18:42] lemur: has joined #ruby
[22:19:35] kalopsian: has joined #ruby
[22:24:05] shevy: you eat what you do
[22:25:41] eam: you do what you eat!
[22:26:31] kirillzh: has joined #ruby
[22:27:31] Ox0dea: You eat what you are.
[22:28:25] hxegon: glanced over here and thought I was looking at markov chain output :D
[22:29:24] idefine: has joined #ruby
[22:29:27] Ox0dea: "Thinking meat! You're asking me to believe in thinking meat!"
[22:29:32] eam: hxegon: I mean, you may well be (see earlier about how we're robots)
[22:29:33] despai_: has joined #ruby
[22:29:43] Ox0dea: Meaty robots!
[22:29:58] Ox0dea: Meat moot.
[22:30:04] roshanavand: has joined #ruby
[22:30:18] eam: >> require 'meat' rescue 'sillycon is fine too'
[22:30:32] hxegon: Some choice output after pointing it at the navy seal copypasta: "you could have over the face of which has never been seen before on al-quadea, and your ip is being traced right now you're paying the top of which has never been seen before on this earth, mark my secret network of the fuck did you could have access to its full extent to me over seven hundred ways, and i will use it to its full extent to"...
[22:31:44] x77686d: has joined #ruby
[22:31:57] shevy: my secret network of the fuck?!
[22:32:24] hxegon: 'you could have access to its full extent, to me over 700 ways" *blushes*
[22:32:59] Ox0dea: Hey, what's the cleanest way to get a mutable "view" into a String?
[22:33:21] eam: mutable view howso
[22:33:27] kaleido: for the noobs, define mutable
[22:33:33] Ox0dea: `str[3, 3].upcase!` != `str[3, 3] = str[3, 3].upcase`, and it's making me 0x5adface.
[22:34:02] shevy: hxegon it did remind me of http://www.winterson.com/2005/06/episode-iii-backstroke-of-west.html
[22:34:04] hxegon: kaleido changable, descructable
[22:34:37] shevy: "He big in nothing, important in good elephant"
[22:35:23] idefine: has joined #ruby
[22:35:24] hxegon: R2, do you is fucking 0.0.
[22:35:42] eam: Ox0dea: don't think it's possible, is it? String methods would need to essentially create a partially delegated String object
[22:36:00] Ox0dea: eam: Slices could certainly be referential, but that'd probably be bad.
[22:36:02] shevy: hxegon hehe... Yoda: "Pregnancy? Pregnancy?"
[22:36:03] jtzero1: has left #ruby: ()
[22:36:09] eam: impossible in the sense of "well, you can vi string.c"
[22:36:37] eam: ruby doesn't have slices, does it?
[22:36:44] eam: [] returns a new String
[22:36:50] Ox0dea: In the sense that #[] is an alias for #slice, sure it does.
[22:37:00] eam: I mean #slice isn't a slice in the rust sense
[22:37:04] hxegon: "They want to know him at fuck" Ok, grandpa, eat your pudding and put down the lightsaber
[22:37:08] eam: it's a String constructor
[22:37:16] Ox0dea: Right, but those are the semantics I'm looking for just now.
[22:37:39] Ox0dea: I just wondered whether there was some clever hackery to be applied.
[22:37:40] eam: I think you'll need to implement your own methods on String
[22:38:37] Ox0dea: `class View`, it is! :(
[22:39:27] sandstrom: has joined #ruby
[22:40:49] jgt4: has joined #ruby
[22:41:11] sgambino: has joined #ruby
[22:41:15] donske: has joined #ruby
[22:41:43] Mon_Ouie: String#[] is already copy-on-write, just remove all the copies before writes in string methods and enjoy the mayhem that causes :p
[22:41:49] nerium: has joined #ruby
[22:42:00] harly: has joined #ruby
[22:42:46] zenlot1: has joined #ruby
[22:43:30] eam: mad cow disease
[22:44:06] Aviio: is it possible to test output to console using minitest?
[22:44:18] Ox0dea: Aviio: StringIO.
[22:44:18] ChameleonSix: has joined #ruby
[22:45:14] peterevjan: has joined #ruby
[22:45:26] Mon_Ouie: assert_output
[22:45:31] ChameleonSix: has left #ruby: ()
[22:45:46] Ox0dea: Oh, right.
[22:46:30] Ox0dea: Aviio: -> { your thing }.must_output "something"
[22:46:32] Contigi: has joined #ruby
[22:47:29] pawnbox: has joined #ruby
[22:47:58] go|dfish: has joined #ruby
[22:50:11] despai_: anybody has a link that explains how certain ActiveRecord models can be shared between applications?
[22:50:48] despai_: Like for example you have Payment, Invoice, InvoiceItems. You don't want to rewrite and maintain the same logic across different apps
[22:51:36] JDiPierro: has joined #ruby
[22:52:14] hxegon: ?rails despai_
[22:52:14] ruby[bot]: despai_: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[22:52:27] despai_: I'm not using rails
[22:52:29] Aviio: Ox0dea + Mon_0uie: thanks, getting some undefined method error atm
[22:52:33] yfeldblum: has joined #ruby
[22:52:38] despai_: I'm using ActiveRecord alone
[22:52:47] hxegon: despai_ sorry, we get rails people a lot :P
[22:52:51] TravisTheNavi: has joined #ruby
[22:53:18] despai_: no, ActiveRecord is an ORM that you can use in rails or in any other platform
[22:55:07] Mon_Ouie: I don't know about ActiveRecord specifically, but why not just put your model classes in a gem, on which your three applications can depend?
[22:55:59] TravisTheNavi: has joined #ruby
[22:57:08] yasha0x80: has joined #ruby
[22:57:31] ramfjord: has joined #ruby
[22:58:07] TravisTheNavi: has joined #ruby
[22:58:32] Timba-as: has joined #ruby
[22:58:42] TravisTheNavi: has joined #ruby
[22:58:51] hplar: has joined #ruby
[22:59:07] TravisTheNavi: has joined #ruby
[22:59:22] ruby-lang352: has joined #ruby
[22:59:39] roshanavand: has joined #ruby
[22:59:41] TravisTheNavi: has joined #ruby
[22:59:43] solocshaw: has joined #ruby
[23:00:17] eo: has joined #ruby
[23:00:26] My_Hearing: has joined #ruby
[23:00:44] TravisTheNavi: has joined #ruby
[23:01:01] shevy: is .chars faster than .split(//) on a string?
[23:01:07] TravisTheNavi: has joined #ruby
[23:01:41] mwlang: has joined #ruby
[23:02:10] TravisTheNavi: has joined #ruby
[23:02:12] juddey: has joined #ruby
[23:02:18] djbkd: has joined #ruby
[23:03:05] dlitvak: has joined #ruby
[23:03:08] TravisTheNavi: has joined #ruby
[23:04:22] rodfersou: has joined #ruby
[23:06:27] Aviio: assert_output(/There is 1 site defined in the sites config/) {@sut.count_sites(sites_hash)}
[23:06:32] karapetyan: has joined #ruby
[23:06:33] Aviio: why does this come across as 2 assertions?
[23:10:55] william3: has joined #ruby
[23:12:32] at46: has joined #ruby
[23:12:55] Ox0dea: shevy: Of course.
[23:13:26] shevy: I shall purge all instances of .split(//)
[23:15:01] Ox0dea: Aviio: You're asserting that it does in fact produce output and that the output matches your expectation.
[23:15:33] Aviio: Ox0dea: thanks
[23:15:34] CloCkWeRX: has joined #ruby
[23:15:40] Ox0dea: Aviio: Sure thing. :)
[23:15:51] william3: has joined #ruby
[23:16:22] wolffles: has joined #ruby
[23:16:38] Abrin2: has joined #ruby
[23:17:19] at46: has joined #ruby
[23:20:07] mhoungbo: has joined #ruby
[23:20:49] peterevjan: has joined #ruby
[23:22:11] sanguisdex: has joined #ruby
[23:23:31] Zai00: has joined #ruby
[23:23:58] wolffles: trying to change text in a file the text are certain numbers need to add 1000 to numbers
[23:24:13] wolffles: example https://eval.in/513372
[23:24:48] yfeldblum: has joined #ruby
[23:25:35] Aviio: does it have to do it in one line?
[23:26:32] idefine: has joined #ruby
[23:26:40] My_Hearing: You want String#gsub
[23:26:51] Mon_Ouie: has joined #ruby
[23:27:07] Azulinho: has joined #ruby
[23:27:26] Mekkis: has joined #ruby
[23:27:45] wolffles: how do i gsub multiple numbers with a block?
[23:27:58] baweaver: has joined #ruby
[23:28:04] wolffles: i cant find out the arguments it takes
[23:29:26] funnel: has joined #ruby
[23:29:32] volty: >> string = "this 1 is confusing me, please help me 911 to 1911".gsub(/\d\d+/) { |s| (s.to_i + 1000).to_s }
[23:29:33] ruby[bot]: volty: # => "this 1 is confusing me, please help me 1911 to 2911" (https://eval.in/513375)
[23:30:04] volty: >> string = "this 1 is confusing me, please help me 911 to 1911".gsub(/\d\d+/) { |s| (s.to_i + 1000) }
[23:30:06] ruby[bot]: volty: # => "this 1 is confusing me, please help me 1911 to 2911" (https://eval.in/513377)
[23:30:27] dlitvak: has joined #ruby
[23:31:58] idefine: has joined #ruby
[23:32:25] wolffles: nice, question what does (/\d\d+/) mean. i know that d is a single digit and d+ is the whole number but what does it mean together?
[23:32:26] pdoherty: has joined #ruby
[23:32:38] baweaver: has joined #ruby
[23:32:46] volty: at least 2 digits
[23:33:04] wolffles: make sense now
[23:33:23] havenwood: wolffles: \d{2,}
[23:33:41] volty: yap, I missed that
[23:33:53] wolffles: so if i needed at least 3 it would be (/\d\d\d+/)?
[23:34:00] havenwood: wolffles: \d{3,}
[23:34:04] volty: as havenwood said
[23:34:21] jinie: has joined #ruby
[23:34:33] mikeiniowa: has joined #ruby
[23:34:34] volty: but if you prefer something exotic you can #{'\d' * 3 } :)
[23:35:01] wolffles: why the comma behind 3 can it take another argument
[23:35:08] truenito: has joined #ruby
[23:35:14] havenwood: wolffles: the maximum number of digits
[23:35:15] Mon_Ouie: the maximum amount of repitions
[23:35:19] volty: it's an open range
[23:35:32] wolffles: ah thanks :]
[23:35:35] amb77: has left #ruby: ()
[23:35:52] shevy: the coding waffles
[23:36:50] havenwood: wolffles: or say zero up to 3 digits max: \d{,3}
[23:37:00] wolffles: hi shevy how are ya
[23:37:06] havenwood: wolffles: exactly 3: \d{3}
[23:37:21] shevy: wolffles studying for chemistry! it's very boring
[23:37:23] devbug: has joined #ruby
[23:37:48] wolffles: anatomy is much for exciting
[23:37:50] havenwood: wolffles: cheat sheet: http://rubular.com
[23:40:49] peterevjan: has joined #ruby
[23:41:27] j`ey: has joined #ruby
[23:41:44] at46_: has joined #ruby
[23:42:29] zambini: has joined #ruby
[23:42:32] j`ey: Im getting "NoMethodError: undefined method empty?' for #<URI::HTTPS.." when running "Net::HTTP::Post.new login_uri"
[23:42:38] Ropeney: has joined #ruby
[23:42:42] j`ey: this.. was definitely working, but seems to have stopped working
[23:43:06] j`ey: aka it was working, my program stopped, I started it again and now I get this error ^
[23:43:15] zerowaitstate: wolffles: I think anatomy being exciting is largely dependent on the subject under study
[23:43:59] j`ey: woops, wrong ruby version
[23:44:01] j`ey: has left #ruby: ()
[23:44:15] TomPeed: has joined #ruby
[23:45:23] wolffles: very true but then again i only study the fun parts of the subject
[23:46:44] Azure: has joined #ruby
[23:47:41] volty: who has ubuntu here ?
[23:48:56] havenwood: volty: is it contagious?
[23:49:44] volty: havenwood: tired today, few minutes ago I did chmod o+r * /
[23:50:07] volty: if smb can kindly post an ls -l /
[23:50:10] havenwood: volty: i'm tired too!
[23:50:23] eam: still running yggdrasil
[23:50:40] Tristan-Speccy: has joined #ruby
[23:51:43] Nanuq: has joined #ruby
[23:52:20] duckpuppy: has joined #ruby
[23:53:08] baweaver: eam: branching out?
[23:53:34] Azure|dc: has joined #ruby
[23:56:43] pantato: has joined #ruby
[23:57:24] BTRE: has joined #ruby
[23:59:11] Ox0dea: volty: http://jslinux.org/
[23:59:14] jbrhbr: has joined #ruby
[23:59:56] Ox0dea: It's missing /srv, but it should suffice.