« Back to channel list

#ruby - 23 March 2016

« Back 1 day Forward 1 day »
[00:00:44] Ox0dea: anoob: https://eval.in/540757
[00:01:03] swistak35: has joined #ruby
[00:02:39] Ox0dea: Module#private is just a method that takes one or more method names and privatizes them, and `def` and #define_method both return the name of the defined method.
[00:02:57] Ox0dea: s/return/evaluate to/, technically.
[00:03:27] jottr: has joined #ruby
[00:03:49] cjbischof_: has joined #ruby
[00:04:34] smathy: has joined #ruby
[00:05:08] astrobun_: has joined #ruby
[00:06:48] speakingcode: has joined #ruby
[00:07:06] ramfjord_: has joined #ruby
[00:09:33] mbff: has joined #ruby
[00:10:04] uglybandersnatch: has joined #ruby
[00:10:13] mbff: Question: How can I have guard run all my tests if any file in a couple of folders change?
[00:10:17] Vile`: has joined #ruby
[00:10:41] cdg: has joined #ruby
[00:10:53] benzrf: how does the magic work that scopes args-less private to blocks
[00:12:22] sq271: has joined #ruby
[00:12:37] joonty: has joined #ruby
[00:13:16] jdawgaz: has joined #ruby
[00:14:27] rmulliga`: has joined #ruby
[00:16:53] Ox0dea: benzrf: The VM maintains the current visibility of method definition; Module#private just sets it to METHOD_VISI_PRIVATE.
[00:17:17] benzrf: Ox0dea: but
[00:17:46] benzrf: https://bpaste.net/show/98099f8c9cd0
[00:17:46] rkoller: has joined #ruby
[00:18:29] Ox0dea: Looks fine to me?
[00:18:39] benzrf: yeah, i'm saying
[00:18:41] benzrf: 20:10 <benzrf> how does the magic work that scopes args-less private to blocks
[00:20:19] Silox|: has joined #ruby
[00:20:47] Cohedrin: has joined #ruby
[00:21:52] Devalo: has joined #ruby
[00:22:57] benzrf: oh wait so you're saying that it sets a flag on the vm rather than on the class
[00:23:04] benzrf: so it really doesnt matter what the receiver is?
[00:23:34] benzrf: aha https://bpaste.net/show/6e6485f52312
[00:24:00] anoob: Ox0dea, thanks
[00:26:27] swills: has joined #ruby
[00:27:39] idefine: has joined #ruby
[00:28:25] mistermocha: has joined #ruby
[00:29:09] jenrzzz: has joined #ruby
[00:29:47] stannard: has joined #ruby
[00:32:01] mistermocha: has joined #ruby
[00:32:12] sneakerhax: has joined #ruby
[00:32:18] sandbird: has joined #ruby
[00:32:48] jamil: has joined #ruby
[00:34:07] noname: has joined #ruby
[00:35:05] lessless: has joined #ruby
[00:38:41] pwnd_nsfw: has joined #ruby
[00:39:48] sulky: has joined #ruby
[00:40:45] nerium: has joined #ruby
[00:41:17] chouhoul_: has joined #ruby
[00:41:42] Disavowed: has joined #ruby
[00:45:10] jdawgaz: has joined #ruby
[00:55:02] jdawgaz: has joined #ruby
[00:56:21] AustinMatherne: has joined #ruby
[00:58:19] rmulliga`: has joined #ruby
[01:00:57] sneakerhax: has joined #ruby
[01:03:24] jdawgaz: has joined #ruby
[01:08:14] cjbischof_: has joined #ruby
[01:08:45] Disavowed: has joined #ruby
[01:09:59] halfamind1: has joined #ruby
[01:11:05] freerobby: has joined #ruby
[01:11:32] sarlalian: has joined #ruby
[01:12:08] idefine: has joined #ruby
[01:12:36] bezhermoso: has joined #ruby
[01:12:46] astrobun_: has joined #ruby
[01:13:20] joonty: has joined #ruby
[01:13:23] `tim`: has joined #ruby
[01:14:57] skweek: has joined #ruby
[01:15:31] diegoaguilar: has joined #ruby
[01:16:05] axl_: has joined #ruby
[01:17:21] blackgoat: has joined #ruby
[01:19:48] bedouin_: has joined #ruby
[01:20:47] edwinvdgraaf: has joined #ruby
[01:21:09] bronson: has joined #ruby
[01:27:14] bedouin_: has joined #ruby
[01:28:45] cpup: has joined #ruby
[01:30:00] swills: has joined #ruby
[01:31:28] johnmilton: has joined #ruby
[01:31:56] floatingpoint: has joined #ruby
[01:34:16] toretore: has joined #ruby
[01:35:58] Dreamer3: has joined #ruby
[01:36:07] Aviio: has joined #ruby
[01:36:11] Dreamer3_: has joined #ruby
[01:37:44] chouhoulis: has joined #ruby
[01:42:03] mistermocha: has joined #ruby
[01:43:41] Musashi007: has joined #ruby
[01:47:35] jackjackdripper: has joined #ruby
[01:50:30] jrafanie: has joined #ruby
[01:52:20] houhoulis: has joined #ruby
[01:54:39] rmulliga`: has joined #ruby
[01:54:43] siaW: has left #ruby: ()
[01:56:24] jdawgaz: has joined #ruby
[01:58:21] rmulliga`: has joined #ruby
[01:58:39] haraoka: has joined #ruby
[02:00:06] rbennacer: has joined #ruby
[02:00:23] joonty: has joined #ruby
[02:01:27] yuung: has joined #ruby
[02:01:56] djbkd: has joined #ruby
[02:02:41] axl_: has joined #ruby
[02:09:15] mistermo_: has joined #ruby
[02:09:47] uglybandersnatch: has joined #ruby
[02:12:16] jackjackdripper: has joined #ruby
[02:13:15] jkahn: has joined #ruby
[02:14:17] cdg: has joined #ruby
[02:16:34] malconis: has joined #ruby
[02:17:41] mistermo_: has joined #ruby
[02:20:07] dtzuzu: has joined #ruby
[02:20:14] scepticulous: has joined #ruby
[02:21:20] pmodin: has joined #ruby
[02:22:15] edwinvdgraaf: has joined #ruby
[02:22:23] codernot2: has joined #ruby
[02:22:39] codernot2: can you help me with rails
[02:23:20] codernot2: when bin/rake routes is executed where is the output stored?
[02:24:09] ramfjord: has joined #ruby
[02:29:39] nettoweb: has joined #ruby
[02:30:40] ziyadb: has joined #ruby
[02:33:31] jamil: has joined #ruby
[02:34:06] jehoesefat: has joined #ruby
[02:37:13] patrick-sartent: has joined #ruby
[02:39:14] Salve: has joined #ruby
[02:41:31] patrick-sartent: has joined #ruby
[02:41:54] Radar: nobody is here
[02:42:14] Eiam_: has joined #ruby
[02:42:32] uglybandersnatch: has joined #ruby
[02:44:40] baweaver: has joined #ruby
[02:48:52] dtzuzu: has joined #ruby
[02:49:57] arescorpio: has joined #ruby
[02:50:19] bob434: has joined #ruby
[02:50:45] TheNet: has joined #ruby
[02:51:52] jrafanie: has joined #ruby
[02:53:39] jcdesimp: has joined #ruby
[02:54:28] jkahn: has joined #ruby
[02:54:48] jcdesimp_: has joined #ruby
[02:59:24] cdg: has joined #ruby
[03:00:28] devbug: has joined #ruby
[03:00:38] chagel: has joined #ruby
[03:02:33] mallu: has joined #ruby
[03:03:20] joonty: has joined #ruby
[03:03:21] nettoweb: has joined #ruby
[03:03:25] Didac: has joined #ruby
[03:04:11] solocshaw: has joined #ruby
[03:04:14] dcunit3d: has joined #ruby
[03:06:44] chagel: has joined #ruby
[03:08:58] baweaver: has joined #ruby
[03:10:43] statelesscode: has joined #ruby
[03:11:06] htmldrum_: has joined #ruby
[03:11:07] htmldrum: has joined #ruby
[03:11:25] Chagel_: has joined #ruby
[03:13:42] cd-rum: has joined #ruby
[03:13:47] LoneHermit: has joined #ruby
[03:14:08] Salve: has joined #ruby
[03:15:32] yonatankoren: has joined #ruby
[03:18:35] aeterne: has joined #ruby
[03:18:46] mistermocha: has joined #ruby
[03:19:26] lq: has joined #ruby
[03:19:44] lq: http://shrinkmy.com/ZFmSN1C6
[03:19:45] lq: has left #ruby: ()
[03:21:08] djbkd_: has joined #ruby
[03:23:07] bronson: has joined #ruby
[03:24:14] ruby[bot]: +bb lq!*@*$#ruby-banned *!*@gateway/web/cgi-irc/kiwiirc.com/ip.119.157.142.112$#ruby-banned
[03:24:26] djbkd_: has joined #ruby
[03:26:01] jhass: has joined #ruby
[03:26:32] GitGud: has joined #ruby
[03:26:40] blackgoat: has joined #ruby
[03:27:03] preyalone: has joined #ruby
[03:27:06] preyalone: is there a memoize functor in ruby?
[03:27:23] ruby[bot]: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[03:27:36] Ox0dea: preyalone: No, but you can roll your own. :)
[03:27:52] baweaver: technically either ||= pr something similar
[03:28:06] Ox0dea: Yes, that'd be a crucial piece.
[03:29:17] baweaver: really depends on the context though
[03:29:24] baweaver: begin ... end can be used as well
[03:32:21] kirillzh: has joined #ruby
[03:32:35] fevrbd: has joined #ruby
[03:33:30] kirillzh: has joined #ruby
[03:33:50] crowell: has joined #ruby
[03:34:46] kirillzh: has joined #ruby
[03:35:15] elifoster: has joined #ruby
[03:37:48] binaryplease1: has joined #ruby
[03:39:07] nertzy: has joined #ruby
[03:40:41] Ox0dea: https://eval.in/540824
[03:41:13] Ox0dea: There's a first blush at it, but @@memos is icky.
[03:41:28] DLSteve: has joined #ruby
[03:41:44] baweaver: def foo; @foo ||= value end
[03:41:48] baweaver: that's what I tend to do.
[03:42:06] nerium: has joined #ruby
[03:42:11] Ox0dea: Well, sure, but they wanted a "functor".
[03:42:17] ramfjord: has joined #ruby
[03:43:10] Ox0dea: It's really a decorator here, but the distinction is fairly thin.
[03:43:43] baweaver: ACTION is stuck in Haskell land
[03:43:48] baweaver: http://adit.io/posts/2013-04-17-functors,_applicatives,_and_monads_in_pictures.html
[03:44:29] IrishGringo: has joined #ruby
[03:48:19] duncannz: has joined #ruby
[03:48:44] moeabdol3: has joined #ruby
[03:49:31] hahuang61: has joined #ruby
[03:52:45] zenergi: has joined #ruby
[03:52:50] chagel: has joined #ruby
[03:57:51] benzrf: what else can functor mean?
[03:58:18] benzrf: i think i know that c++ uses the word to mean function values?
[03:59:02] Inside: has joined #ruby
[03:59:02] Inside: has joined #ruby
[03:59:04] kirillzh: has joined #ruby
[03:59:12] TheNet: has joined #ruby
[04:00:35] halfamind: has joined #ruby
[04:02:46] krz: has joined #ruby
[04:03:34] Regulati_: has joined #ruby
[04:03:46] Ox0dea: Well, hmm, what kind of functor is a decorator?
[04:03:58] Ox0dea: Also, I totally forgot to key on the arguments in my example.
[04:04:03] joonty: has joined #ruby
[04:06:26] halfamind: has joined #ruby
[04:08:21] chagel: has joined #ruby
[04:12:49] braincrash: has joined #ruby
[04:16:19] MrSamuel: has joined #ruby
[04:19:22] jackjackdripper: has joined #ruby
[04:22:19] yfeldblum: has joined #ruby
[04:22:47] astrobun_: has joined #ruby
[04:24:20] treaki_: has joined #ruby
[04:30:27] BtcBen: has joined #ruby
[04:30:54] jackjackdripper: has joined #ruby
[04:31:29] mistermocha: has joined #ruby
[04:31:47] backintheoven: has joined #ruby
[04:31:49] backintheoven: https://www.youtube.com/watch?v=coDjlxwbA3Y
[04:31:54] stannard: has joined #ruby
[04:33:12] GitGud: haha whats ruby gots to do with dat
[04:33:12] preyalone: is there a function for arrays that splits it into two arrays based on a predicate?
[04:33:27] preyalone: of whether predicate?(elem)
[04:34:00] sysodaff: has joined #ruby
[04:34:01] tildes: has joined #ruby
[04:34:13] Ox0dea: &ri Array#partition preyalone
[04:34:13] `derpy: preyalone: http://ruby-doc.org/core-2.3.0/Enumerable.html#method-i-partition
[04:34:26] jamil: has joined #ruby
[04:34:26] baweaver: !troll backintheoven
[04:34:26] ruby[bot]: +bb backintheoven!*@*$#ruby-banned *!*@gateway/web/freenode/ip.46.101.84.242$#ruby-banned
[04:34:52] norc_: has joined #ruby
[04:38:18] merida: has joined #ruby
[04:38:48] jackjackdripper: has joined #ruby
[04:39:12] sysodaff: has joined #ruby
[04:40:05] bezhermoso: has joined #ruby
[04:46:56] krz: has joined #ruby
[04:48:47] gix: has joined #ruby
[04:49:32] mary5030: has joined #ruby
[04:50:29] kp666: has joined #ruby
[04:51:40] fedexo: has joined #ruby
[04:52:01] kp666: has joined #ruby
[04:52:55] devbug_: has joined #ruby
[04:52:56] mistermocha: has joined #ruby
[04:53:35] kp666: has joined #ruby
[04:53:37] jrafanie: has joined #ruby
[04:54:04] mistermocha: has joined #ruby
[04:54:11] bezhermoso: has joined #ruby
[04:56:48] bob434: has joined #ruby
[04:56:54] Tref: has joined #ruby
[04:58:13] startupality: has joined #ruby
[05:00:26] wRaben: has joined #ruby
[05:02:08] LoneHermit: has joined #ruby
[05:03:02] noService: has joined #ruby
[05:03:09] sauvin: has joined #ruby
[05:04:14] wRaben: has left #ruby: ("Leaving")
[05:04:45] joonty: has joined #ruby
[05:17:38] startupality: has joined #ruby
[05:19:55] jamil: has joined #ruby
[05:20:41] startupality: has joined #ruby
[05:22:41] Devalo: has joined #ruby
[05:22:49] diegoaguilar: has joined #ruby
[05:23:56] merida: has joined #ruby
[05:27:20] rkazak: has joined #ruby
[05:30:38] jud: has joined #ruby
[05:32:42] bob434: has joined #ruby
[05:33:12] howdoi: has joined #ruby
[05:38:39] dc2: has joined #ruby
[05:39:56] ruby-lang477: has joined #ruby
[05:40:40] noService: has joined #ruby
[05:40:47] ruby-lang477: Question for the chat: if you had an interview coming up where you'd be working with an unknown ruby/rails API for 60 minutes to do some kind of exercise, what would you brush up on? File I/O & Serialization probably?
[05:41:45] tjbiddle: has joined #ruby
[05:41:50] Guest93: has joined #ruby
[05:43:41] pwnd_nsfw`: has joined #ruby
[05:47:20] blackgoat: has joined #ruby
[05:51:27] Radar: ruby-lang477: depends entirely on what that API did.
[05:51:47] fullofcaffeine: has joined #ruby
[05:52:43] fullofcaffeine: has joined #ruby
[05:53:01] Oog: has joined #ruby
[05:53:03] startupality: has joined #ruby
[05:53:34] Vlat-: has joined #ruby
[05:55:58] dionysus69: has joined #ruby
[05:57:46] ruby-lang477: @Radar I know what the domain of the API is but have no documentation on it. I think they're planning to spring it on me come interview time.
[05:58:33] edwinvdgraaf: has joined #ruby
[06:00:34] tildes: has joined #ruby
[06:00:54] kfpratt: has joined #ruby
[06:05:32] joonty: has joined #ruby
[06:07:26] ruby[bot]: -bb $a:totalkunt6969$#ruby-banned totalkunt6969!*@*$#ruby-banned
[06:07:43] helpa: has joined #ruby
[06:09:14] lurch_: has joined #ruby
[06:09:23] devbug_: has joined #ruby
[06:09:50] marsjaninzmarsa: has joined #ruby
[06:15:50] a11: has joined #ruby
[06:17:51] ur5us: has joined #ruby
[06:19:04] startupality: has joined #ruby
[06:20:08] hk238: has joined #ruby
[06:24:56] fullofcaffeine: has joined #ruby
[06:25:16] bronson: has joined #ruby
[06:25:17] Musashi007: has joined #ruby
[06:28:54] Aviio: has joined #ruby
[06:31:34] kp666: has joined #ruby
[06:33:49] ascarter: has joined #ruby
[06:36:09] ascarter: has joined #ruby
[06:37:03] startupality: has joined #ruby
[06:38:28] LoneHermit: has joined #ruby
[06:38:29] symm-: has joined #ruby
[06:40:15] Disavowed: has joined #ruby
[06:43:25] Macaveli: has joined #ruby
[06:45:02] aufi: has joined #ruby
[06:46:39] kies: has joined #ruby
[06:55:03] griffindy: has joined #ruby
[06:55:14] jrafanie: has joined #ruby
[06:56:06] djbkd: has joined #ruby
[06:56:37] Caerus: has joined #ruby
[06:57:39] mondok: has joined #ruby
[06:59:02] _djbkd: has joined #ruby
[06:59:07] merida_: has joined #ruby
[07:00:02] yfeldblum: has joined #ruby
[07:02:24] joonty: has joined #ruby
[07:02:45] ur5us: has joined #ruby
[07:03:13] cdg: has joined #ruby
[07:04:39] charlemagne: has joined #ruby
[07:05:07] Devalo: has joined #ruby
[07:06:48] mary5030_: has joined #ruby
[07:10:00] PaulePanter: benzrf: Thank you! adaedra recommended to use `each()` too.
[07:12:16] bezhermoso: has joined #ruby
[07:12:58] mistermocha: has joined #ruby
[07:13:36] araujo: has joined #ruby
[07:15:03] firstdayonthejob: has joined #ruby
[07:15:42] araujo: has joined #ruby
[07:16:56] haxrbyte: has joined #ruby
[07:17:15] mistermo_: has joined #ruby
[07:17:48] startupality: has joined #ruby
[07:18:01] araujo: has joined #ruby
[07:20:10] araujo: has joined #ruby
[07:22:22] araujo: has joined #ruby
[07:23:49] matp: has joined #ruby
[07:26:55] Guest93: has joined #ruby
[07:27:52] mank: has joined #ruby
[07:30:39] codecop: has joined #ruby
[07:33:26] cpup: has joined #ruby
[07:36:08] Caerus: hi, im here looking for some advice. after a long hiatus from programming i fell in love with ruby (and rails). I am currently reading "Beginning Ruby(2nd edition)" to refresh/relearn but as i had to RVM to 1.8.7 ...
[07:36:11] merida: has joined #ruby
[07:36:23] safjj: has joined #ruby
[07:36:28] nanoz: has joined #ruby
[07:36:57] Caerus: i fear i might be too outdated? can someone recommend a good up-to-date ruby book?
[07:38:05] apeiros: Caerus: to get going, you can still use that book and just use ruby 2.3.0
[07:38:15] stannard: has joined #ruby
[07:38:36] apeiros: there's less than a handful of incompatibilities with the old syntax, and it's relatively unlikely that you'll run into those.
[07:38:50] Caerus: apeiros, that was my first intention but it seem a lot has changed so some code on book wont work
[07:39:18] apeiros: you can gist it along with the error and ask here
[07:39:24] baweaver: has joined #ruby
[07:39:27] apeiros: ?links Caerus
[07:39:27] ruby[bot]: Caerus: http://ruby-community.com/pages/links
[07:40:27] Caerus: ok so the book is still relevant, thats good news im halfway through it.
[07:40:44] Caerus: plan on picking up agile web development with rails 4 next.
[07:40:55] Caerus: or is there a rails 5 version of that book?
[07:42:01] apeiros: the rails channel probably knows better
[07:42:36] Caerus: oh, true. thanks for the help tho!
[07:43:00] mark3: has joined #ruby
[07:44:50] jackjackdripper: has joined #ruby
[07:46:23] Musashi007: has joined #ruby
[07:46:37] edwinvdgraaf: has joined #ruby
[07:50:11] Vlat-: has joined #ruby
[07:53:39] pandaant: has joined #ruby
[07:55:06] startupality: has joined #ruby
[07:55:13] tubuliferous: has joined #ruby
[07:55:14] norc_: has left #ruby: ("Leaving")
[08:00:44] Inside: has joined #ruby
[08:00:44] Inside: has joined #ruby
[08:01:37] Devalo: has joined #ruby
[08:01:57] jenrzzz: has joined #ruby
[08:02:20] Devalo: has joined #ruby
[08:06:59] tubbo: has joined #ruby
[08:07:10] scepticulous: has joined #ruby
[08:07:33] dc2: has joined #ruby
[08:09:12] biberu: has joined #ruby
[08:09:58] liquid-silence: has joined #ruby
[08:09:58] liquid-silence: has joined #ruby
[08:11:41] jgpawletko: has joined #ruby
[08:11:55] beawesomeinstead: has joined #ruby
[08:12:00] DoubleMalt: has joined #ruby
[08:16:08] charlemagne: has joined #ruby
[08:16:34] tubuliferous: has joined #ruby
[08:21:40] qhp: has joined #ruby
[08:21:52] matp: has joined #ruby
[08:24:11] mank: has joined #ruby
[08:25:31] nocontrol: has joined #ruby
[08:25:57] colegatron: has joined #ruby
[08:26:53] Couch: has joined #ruby
[08:27:40] bronson: has joined #ruby
[08:29:50] fevrbd: has joined #ruby
[08:31:16] LoneHermit: has joined #ruby
[08:32:56] SCHAAP137: has joined #ruby
[08:33:51] diegoaguilar: has joined #ruby
[08:35:20] diegoaguilar: has joined #ruby
[08:35:39] startupality: has joined #ruby
[08:38:46] aganov: has joined #ruby
[08:41:08] startupality: has joined #ruby
[08:42:11] araujo_: has joined #ruby
[08:43:24] mank: has joined #ruby
[08:44:25] pawnbox: has joined #ruby
[08:44:27] araujo_: has joined #ruby
[08:47:23] startupality: has joined #ruby
[08:48:43] sqdntf: has joined #ruby
[08:48:59] Ropeney: has joined #ruby
[08:49:19] Guest-ru: has joined #ruby
[08:51:30] tvw: has joined #ruby
[08:52:24] ReK2: has joined #ruby
[08:52:43] marr: has joined #ruby
[08:54:40] Success: has joined #ruby
[08:55:15] nobitanobi: has joined #ruby
[08:55:51] startupality: has joined #ruby
[08:56:50] jrafanie: has joined #ruby
[08:57:51] Devalo: has joined #ruby
[08:59:00] cpup: has joined #ruby
[08:59:27] roshanavand1: has joined #ruby
[08:59:33] Success: what was the old ruby set :blah, :foo => :bar
[09:00:02] Spami: has joined #ruby
[09:00:25] peterhu: has joined #ruby
[09:01:55] Success: ignore that, what i'm trying to do is get tilt to use my RedCarpet with options, any one experienced?
[09:02:00] Success: or have any general ideas?
[09:03:33] the_drow: has joined #ruby
[09:03:42] Musashi007: has joined #ruby
[09:04:55] blackmesa: has joined #ruby
[09:05:29] pikajude: has joined #ruby
[09:05:58] hightower2: has joined #ruby
[09:06:06] evidex: has joined #ruby
[09:08:26] djbkd: has joined #ruby
[09:11:06] gagrio: has joined #ruby
[09:11:56] mhoungbo: has joined #ruby
[09:13:23] blackmesa: has joined #ruby
[09:14:37] mistermocha: has joined #ruby
[09:15:13] edwinvdgraaf: has joined #ruby
[09:17:02] jaruga: has joined #ruby
[09:17:57] Gasher: has joined #ruby
[09:18:12] mistermo_: has joined #ruby
[09:18:19] Devalo: has joined #ruby
[09:20:00] ravish: has joined #ruby
[09:20:06] charlemagne: has joined #ruby
[09:21:36] sepp2k: has joined #ruby
[09:22:41] jorum: has joined #ruby
[09:24:33] czerasz: has joined #ruby
[09:25:25] baweaver: has joined #ruby
[09:27:08] flughafen: hey adaedra
[09:27:13] uglybandersnatch: has joined #ruby
[09:27:16] vasilakisFiL: has joined #ruby
[09:27:22] vasilakisFiL: what happened to rack 2?
[09:27:32] bezhermoso: has joined #ruby
[09:27:33] Devalo: has joined #ruby
[09:28:09] adaedra: hi flughafen
[09:29:03] flughafen: how goes it
[09:30:20] adaedra: barely awake
[09:30:49] mrgrieves: has joined #ruby
[09:32:07] bluOxigen: has joined #ruby
[09:34:54] shevy: yo flughafen - one day there will be planes flying from berlin again!
[09:35:21] Ox0dea: adaedra: ♫ Grab a brush and onomatopoeia. ♫
[09:35:54] Ox0dea: The first lyric of System of a Down's "Chop Suey" is "WAKE UP!"
[09:36:14] ferr: has joined #ruby
[09:39:23] LoneHermit: has joined #ruby
[09:39:54] mikecmpbll: has joined #ruby
[09:40:35] FooMunki: has joined #ruby
[09:41:42] phatypus: has joined #ruby
[09:41:54] Elysia: isn't the follow up line something about make up? I didn't think they were describing a morning routine.
[09:43:24] Caerus: grab a brush and put a little make up?
[09:43:48] Ox0dea: Yes, I was being facetious with a view to humor; it didn't go well.
[09:44:35] dgncn: has joined #ruby
[09:44:38] davee_: has joined #ruby
[09:45:13] Ox0dea: Elysia: I'm pretty sure the setting is the morning after a lover's spat?
[09:45:42] chriscoffee: has joined #ruby
[09:46:36] snowy: has joined #ruby
[09:46:59] snowy: has joined #ruby
[09:48:53] FooMunki: has joined #ruby
[09:49:26] Musashi007: has joined #ruby
[09:49:46] uglybandersnatch: has joined #ruby
[09:52:01] andikr: has joined #ruby
[09:54:26] mdw: has joined #ruby
[09:56:08] mikhael_k33hl: has joined #ruby
[09:56:46] skade: has joined #ruby
[09:57:42] bezhermoso: has joined #ruby
[10:01:02] joonty: has joined #ruby
[10:03:07] n008f4g_: has joined #ruby
[10:04:04] pawnbox: has joined #ruby
[10:04:30] neanderslob_: has joined #ruby
[10:04:55] chriscoffee: has joined #ruby
[10:05:24] bqscott: has joined #ruby
[10:07:56] nerium: has joined #ruby
[10:11:00] MonsterMunch: has joined #ruby
[10:11:44] c355E3B: has joined #ruby
[10:15:20] jenrzzz: has joined #ruby
[10:16:04] mistermocha: has joined #ruby
[10:19:17] jackcom: has joined #ruby
[10:19:17] ruby[bot]: +b jackcom!*@*$#ruby-banned
[10:19:17] ruby[bot]: ruby[bot] kicked jackcom: banned before
[10:19:36] ruby[bot]: nomnomnomnom
[10:20:05] flughafen: shevy: nevar!!@!!!!
[10:21:43] fevrbd: has joined #ruby
[10:23:01] MonsterMunch_: has joined #ruby
[10:29:09] BLuEGoD: has joined #ruby
[10:29:11] guardian: has joined #ruby
[10:29:30] bronson: has joined #ruby
[10:30:32] sdothum: has joined #ruby
[10:31:23] BLuEGoD: how do I get the name of a method passed as a block? as in def foo; yield ; end ; get 'bar' when calling foo { bar } # bar is a method
[10:31:35] pawnbox: has joined #ruby
[10:31:53] mank: has joined #ruby
[10:32:14] bluOxigen: has joined #ruby
[10:32:22] Ox0dea: BLuEGoD: You'll have to get your hands dirty.
[10:32:56] toretore: BLuEGoD: it's very likely that this is not the best solution to the problem you're trying to solve
[10:33:09] MonsterMunch: has joined #ruby
[10:33:44] Cork: if i want to make a tool that extends irb, is there any documentation on how one could do that?
[10:33:51] BLuEGoD: thanks - method foo is just a wrapper I call for multiple methods. So I want to log the name of the method I'm calling without repeating myself on every method. What's your suggestion ?
[10:34:39] ely-se: has joined #ruby
[10:34:44] Queitsch: has joined #ruby
[10:35:06] ely-se: Hi, is it possible to get Bundler to generate Gemfile.lock (which doesn't yet exist) without installing any gems?
[10:38:26] callen92: has joined #ruby
[10:39:01] CloCkWeRX: has joined #ruby
[10:40:20] joonty: has joined #ruby
[10:41:24] LoneHermit: has joined #ruby
[10:42:38] Ox0dea: BLuEGoD: Be careful with this. https://eval.in/541123
[10:43:48] BLuEGoD: thanks Ox0dea! Not sure I will use that in the end.. I may rather just repeat myself in this case!
[10:44:17] Ox0dea: BLuEGoD: Good eye. ;)
[10:44:28] Queitsch: has joined #ruby
[10:47:21] merida: has joined #ruby
[10:48:09] Ox0dea: BLuEGoD: The problem you've bumped into, for the record, is that blocks are not objects; they're essentially an implementation detail, so you've got to muck about with the VM to "observe" them.
[10:49:28] BLuEGoD: Ox0dea: I see. Perhaps a proc may help there instead of a block?
[10:50:32] charlemagne: has joined #ruby
[10:51:10] Ox0dea: BLuEGoD: From the perspective of improved introspection, that doesn't really change anything.
[10:51:13] jgpawletko: has left #ruby: ()
[10:51:29] BLuEGoD: right, okay :/
[10:51:37] Ox0dea: After all, Kernel#proc is just a method that takes a block and turns it into a Proc.
[10:52:30] skade: has joined #ruby
[10:54:08] shevy: wow looking at RubyVM::InstructionSequence there is scary
[10:56:32] Ox0dea: BLuEGoD: If your blocks are sufficiently simple, that trick of finding the `opt_send_without_block` instruction and grabbing the method name out of the Hash that immediately follows is actually reasonably robust.
[10:56:39] andywojo: has joined #ruby
[10:57:52] BLuEGoD: I see, but still, I don't think that code will easily pass a code review haha
[10:58:13] Ox0dea: Hey, you wanted to inspect a block. :P
[11:00:27] wethu: has joined #ruby
[11:00:30] jorum: has joined #ruby
[11:00:38] BLuEGoD: I know. If it was some sort of Method object I could do method.original_name - that would be fine lol
[11:03:02] jottr: has joined #ruby
[11:03:16] wethu: Hello, I have found code where there are bracket'd arguments inside a block argument, e.g.: something.reduce({}) do |memo, (foo, (bar))| ... end; can someone please point me in the right direction to read more about whats going on with those?
[11:04:55] rahc: has joined #ruby
[11:06:14] ruby[bot]: mozzarella: # => Hash (https://eval.in/541163)
[11:06:30] rahc: I get an error in my rails application:
[11:06:31] Aviio: has joined #ruby
[11:06:32] rahc: /usr/lib/ruby/vendor_ruby/active_record/connection_adapters/connection_specification.rb:190:in `rescue in spec': Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord). (Gem::LoadError)
[11:06:54] rahc: however, `gem 'mysql2'` is in my Gemfile
[11:07:15] DominicBurford: has joined #ruby
[11:07:23] ziyadb: has joined #ruby
[11:08:11] ruby[bot]: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[11:08:15] Ox0dea: rahc: And your Gemfile.lock?
[11:08:31] Ox0dea: adaedra: It's secretly a Bundler question, no?
[11:09:05] rahc: Ox0dea: what do you mean?
[11:09:12] mank: has joined #ruby
[11:09:29] adaedra: rahc: did you run bundle install?
[11:09:30] rahc: adaedra: why #RubyOnRails rather than #Rails?
[11:09:32] MrDoctor: has joined #ruby
[11:09:38] adaedra: Ask them :)
[11:09:46] rahc: $ gem list | grep mysql2
[11:09:46] rahc: mysql2 (0.3.16)
[11:10:19] adaedra: Ox0dea: never really sure.
[11:10:39] Ox0dea: True enough.
[11:10:44] rahc: adaedra: I did not run bundle install
[11:11:05] Ox0dea: wethu: It's for "destructuring" Array arguments.
[11:11:24] ffgghh: has joined #ruby
[11:11:28] adaedra: rahc: the step after modifying your Gemfile is doing bundle install.
[11:11:33] wethu: Ox0dea, ahh, so like splat?
[11:11:45] Ox0dea: wethu: Kind of.
[11:12:06] rahc: adaedra: why do I need to run bundle install if all of the gems are present?
[11:12:22] adaedra: To update your Gemfile.lock
[11:12:42] dostoyevsky: has joined #ruby
[11:13:16] wethu: Ox0dea, I think i found something thats explaining it: http://tony.pitluga.com/2011/08/08/destructuring-with-ruby.html
[11:13:31] rahc: adaedra: what do you mean by "update" my Gemfile.lock?
[11:13:52] Ox0dea: wethu: That looks pretty good, but lemme cook up an example of where it's crucial.
[11:14:09] wethu: Ox0dea, That would be very much appreciated thank you
[11:14:25] adaedra: rahc: bundler uses Gemfile.lock to load dependencies at runtime. When doing `bundle install`, it tells it to install the gem in the Gemfile and update the Gemfile.lock with the newly added gems.
[11:15:30] rahc: adaedra: I'm not sure what you mean by "update the Gemfile.lock with the newly added gems"; does Gemfile.lock contain a list of installed gems?
[11:15:36] htmldrum: has joined #ruby
[11:15:37] htmldrum_: has joined #ruby
[11:15:48] adaedra: rahc: open it and look inside?
[11:16:07] rahc: $ cat Gemfile.lock
[11:16:07] rahc: ## Nothing here
[11:16:22] CloCkWeRX: has joined #ruby
[11:16:32] adaedra: run bundle install.
[11:16:53] rahc: adaedra: I would like to understand what that will do to the files in my tree before I run it
[11:17:15] rahc: adaedra: hence I'm asking what you mean when you say "update the Gemfile.lock"
[11:17:32] rahc: if it does nothing, then why do I need to run it? :-)
[11:17:39] adaedra: there is a Gemfile.lock file that bundler uses
[11:17:47] rahc: what does it use it for?
[11:17:52] adaedra: running bundle install with update its contents (or create it, if not here)
[11:18:10] DominicBurford: add new gems to gemfile and run bundle install in terminal in the root of your application - this will update the Gemfile.lock
[11:18:14] rahc: what are its contents?
[11:19:11] rahc: adaedra: what are its contents?
[11:19:14] nyu: has joined #ruby
[11:19:43] adaedra: well you can run bundle install and see what it generates.
[11:20:09] Ox0dea: wethu: Hey, sorry that took a while; I abandoned a more elaborate example for this one: https://eval.in/541211
[11:20:23] dbford: Anyone in here at Imperial College London or UCL?
[11:20:23] charlemagne: has joined #ruby
[11:20:34] rahc: 11:16 < rahc> adaedra: I would like to understand what that will do to the files in my tree before I run it
[11:20:55] rahc: and files elsewhere, for that matter
[11:20:56] dionysus69: has joined #ruby
[11:21:09] rahc: there doesn't seem to be much documentation on how bundle works
[11:21:29] rahc: there's plenty of documentation on what commands to give it, but not why or what the consequences of those are
[11:21:34] rahc: beyond "it makes it work"
[11:21:47] Ox0dea: wethu: Enumerable#each_with_index gives you an Enumerator that yields pairs; if you don't destructure the pair, the first block parameter will consume the whole Array and throw everything off by one, so to speak.
[11:21:56] adaedra: bundle help install, for starters.
[11:23:00] rahc: adaedra: ah that's helpful, thanks
[11:23:02] fevrbd: has joined #ruby
[11:23:26] wethu: Ox0dea, I see, i will have to have a play around with the REPL but i think I'm starting to get it :)
[11:23:43] MonsterMunch: has joined #ruby
[11:23:45] Ox0dea: wethu: It's a bit like "bounded splatting", I guess.
[11:24:02] Ox0dea: >> def foo((a, b)); a + b; end; foo [17, 25]
[11:24:04] ruby[bot]: Ox0dea: # => 42 (https://eval.in/541214)
[11:24:37] nettoweb: has joined #ruby
[11:24:48] Ox0dea: You can destructure method arguments, but it's pretty unorthodox; it makes more sense in the context of blocks since you don't have as much say in how things get yielded.
[11:27:07] johnmilton: has joined #ruby
[11:29:03] wethu: Sweet! Bingo, i got it i think :) well enough to play with, thanks for that
[11:29:42] Ox0dea: wethu: It's really just a syntactic convenience; anywhere you can destructure, you could just as well have taken one argument and indexed into it or whatnot.
[11:29:45] ldnunes: has joined #ruby
[11:29:55] Ox0dea: It is pretty nice, though. :)
[11:33:13] unshadow: has joined #ruby
[11:33:56] DaniG2k: has joined #ruby
[11:35:44] dbford: has left #ruby: ()
[11:39:43] but3k4: has joined #ruby
[11:43:56] bob434: has joined #ruby
[11:50:50] dostoyevsky: has joined #ruby
[11:52:11] decoponio: has joined #ruby
[11:58:44] skade: has joined #ruby
[11:59:43] My_Hearing: has joined #ruby
[12:00:17] jdawgaz: has joined #ruby
[12:04:20] DaniG2k_: has joined #ruby
[12:05:47] charlemagne: has joined #ruby
[12:06:24] mdw: has joined #ruby
[12:06:57] Elysia: Ox0dea: I think I mostly listened to that song because of the tablecloth.
[12:07:13] rodfersou: has joined #ruby
[12:08:06] gagrio|trng: has joined #ruby
[12:09:17] Ox0dea: Elysia: I think you've conflated "Chop Suey!" with "B.Y.O.B."?
[12:09:36] trinaldi: has joined #ruby
[12:09:45] Elysia: Ox0dea: that's entirely possible, most of System of a Down was about incomprehensible lyrics and mostly a fine tune to go with it
[12:11:18] jdawgaz: has joined #ruby
[12:11:25] gbgdev: has joined #ruby
[12:14:20] n008f4g_: has joined #ruby
[12:16:16] Tref: has joined #ruby
[12:18:33] Caerus: has left #ruby: ("zZz")
[12:18:54] shevy: you people are in such a happy singing mood
[12:19:10] dn5: has joined #ruby
[12:19:11] j3r0: has joined #ruby
[12:19:13] Coldblackice_: has joined #ruby
[12:20:47] charlemagne: has joined #ruby
[12:21:42] jorum: has joined #ruby
[12:22:25] SebastianThorn: so silent in here lately, does that hangman-bot still exist?
[12:22:33] dostoyevsky: has joined #ruby
[12:23:37] shevy: I think the bots can not coexist
[12:24:05] adaedra: It's in -offtopic, SebastianThorn.
[12:24:19] cpup: has joined #ruby
[12:24:21] jottr: has joined #ruby
[12:25:06] fevrbd: has joined #ruby
[12:26:40] krz: has joined #ruby
[12:31:47] rdark: has joined #ruby
[12:33:04] bob434: has joined #ruby
[12:33:51] digneety: has joined #ruby
[12:34:01] Devalo: has joined #ruby
[12:34:12] digneety: has joined #ruby
[12:35:19] charlemagne: has joined #ruby
[12:38:36] moeabdol4: has joined #ruby
[12:40:18] atmosx: any idea why this fails at thread 25? https://gist.github.com/atmosx/85ca78230de492003396
[12:41:14] _blizzy_: has joined #ruby
[12:42:32] kent\n: has joined #ruby
[12:42:32] kent\n: has joined #ruby
[12:44:43] atmosx: hm it's a deadlock
[12:45:23] RegulationD: has joined #ruby
[12:46:22] halfamind: has joined #ruby
[12:47:58] mank: has joined #ruby
[12:48:11] mrgrieves: has joined #ruby
[12:48:20] blackmesa: has joined #ruby
[12:49:03] vdamewood: has joined #ruby
[12:50:35] tvw: has joined #ruby
[12:50:42] canton7: atmosx, you will never stop creating threads, surely?
[12:51:21] atmosx: argh,it's inside the loop
[12:51:27] atmosx: ty canton7
[12:51:43] aegis3121: has joined #ruby
[12:53:00] nobitanobi: has joined #ruby
[12:53:10] canton7: not entirely sure why it's returning EDEADLK: it must be calling pthread_mutex{try,}lock() internally somewhere...
[12:53:48] BSaboia: has joined #ruby
[12:54:15] canton7: seems OSX limits the number of threads a process can spawn to ~2000 - are you on OSX?
[13:02:09] Hanmac: yeah he is
[13:04:57] nobitanobi: has joined #ruby
[13:11:04] openstruct: has joined #ruby
[13:11:16] cdg: has joined #ruby
[13:12:11] dn5: has joined #ruby
[13:13:48] IrishGringo: has joined #ruby
[13:15:12] mank: has joined #ruby
[13:17:16] swills: has joined #ruby
[13:19:59] citrusfizz_: has joined #ruby
[13:20:26] dn5: has joined #ruby
[13:21:50] mprelude_: has joined #ruby
[13:22:18] jrafanie: has joined #ruby
[13:23:39] jorum: has joined #ruby
[13:24:04] malconis: has joined #ruby
[13:24:04] fexilal: has joined #ruby
[13:25:21] malconis: has joined #ruby
[13:25:52] fevrbd: has joined #ruby
[13:26:01] rbennacer: has joined #ruby
[13:26:30] nocontrol: has joined #ruby
[13:27:16] neilhwatson: has joined #ruby
[13:31:45] bronson: has joined #ruby
[13:32:57] joonty: has joined #ruby
[13:32:58] hightower2: If anyone is looking for a good Ruby HTTP lib, after being unhappy with curb's memory usage and em-http-request's usage of EventMachine, I finally found typhoeus, which has comparable feature set, but is both memory-correct and lightweight. Very happy with it so far.
[13:33:22] _stu_: has joined #ruby
[13:37:14] NET||abuse: has joined #ruby
[13:38:14] workmad3: hightower2: I tend to use faraday, which can support typhoeus as an adapter if you want it :)
[13:38:15] mary5030: has joined #ruby
[13:38:24] darix: hightower2: if there is one thing we arent lacking ... http client libraries.
[13:38:32] LoneHerm_: has joined #ruby
[13:40:06] hightower2: darix, really? is there any other http lib that you know of which supports specifying source inteface (or bind IP) and that can execute parallel requests? (I only knew of curb, em-http-request and now typhoeus)
[13:41:18] floatingpoint: has joined #ruby
[13:41:29] darix: hightower2: i never said they will have all the things you need. especially as you didnt specify them upfront ... but in general we have plenty of libraries ... and then you have libX pull client1 libY pull client2 and so on
[13:41:33] darix: lots of fun
[13:41:52] howdoi: has joined #ruby
[13:42:58] `tim`: has joined #ruby
[13:44:53] User458764: has joined #ruby
[13:45:02] noService: has joined #ruby
[13:46:15] LoneHerm_: has joined #ruby
[13:46:57] dravine: has joined #ruby
[13:47:27] jschoolcraft: has joined #ruby
[13:47:32] ChiefAlexander: has joined #ruby
[13:48:52] fmcgeough: has joined #ruby
[13:49:32] JakFrist: has joined #ruby
[13:50:10] B1n4r10: has joined #ruby
[13:53:44] monoprotic: has joined #ruby
[13:53:54] fullofcaffeine: has joined #ruby
[13:55:45] blackmesa: has joined #ruby
[13:55:45] atmosx: canton7: yes
[13:55:48] atmosx: I'm on OSX
[13:56:19] idefine: has joined #ruby
[13:56:59] NET||abuse: hey guys, i've a vagrantfile which i believe is ruby syntax, i have a docblock line $stuff=<<SCRIPT [ -f /tmp/$file ] || sudo wget -q $fileurl -o /tmp/$file SCRIPT
[13:57:15] stannard: has joined #ruby
[13:57:38] NET||abuse: will this work? There are more lines in the block but basically i'm no tseeing $file or $fileurl in the vagrant up output
[13:57:51] NET||abuse: unzip: cannot find or open /tmp/, /tmp/.zip or /tmp/.ZIP.
[13:58:24] aegis3121: has joined #ruby
[14:00:11] dhollinger: has joined #ruby
[14:01:22] mistermocha: has joined #ruby
[14:01:46] mistermocha: has joined #ruby
[14:02:41] mistermocha: has joined #ruby
[14:03:26] shevy: looks like shell script syntax
[14:03:43] idefine: has joined #ruby
[14:03:56] atmosx: shevy: that's shell, the vagrant file is ruby
[14:04:34] atmosx: NET||abuse: there's an error in the shell file, if you're trying to fetch a .zip file
[14:04:40] atmosx: shell script
[14:04:42] lessless: has joined #ruby
[14:05:34] idletask: has joined #ruby
[14:07:57] spk: has joined #ruby
[14:08:01] washt: has joined #ruby
[14:08:23] mank: has joined #ruby
[14:08:38] rbennacer: has joined #ruby
[14:08:39] Zarthus_: has joined #ruby
[14:08:41] LoganG_: has joined #ruby
[14:09:10] skade: has joined #ruby
[14:09:34] bluOxigen: has joined #ruby
[14:09:34] skweek: has joined #ruby
[14:09:48] idefine: has joined #ruby
[14:10:46] RTG`: has joined #ruby
[14:11:22] borkdude: has joined #ruby
[14:12:12] glacius: has joined #ruby
[14:12:26] nanoz: has joined #ruby
[14:12:30] rbennacer: has joined #ruby
[14:13:42] claw: has joined #ruby
[14:14:07] mic_e: has joined #ruby
[14:14:15] Karix: has joined #ruby
[14:14:18] olspookishmagus: has joined #ruby
[14:14:22] chihhsin: has joined #ruby
[14:14:29] rickmasta: has joined #ruby
[14:14:34] tekacs: has joined #ruby
[14:14:36] hollywood: has joined #ruby
[14:14:52] EvilJStoker: has joined #ruby
[14:14:53] JStoker: has joined #ruby
[14:15:03] [spoiler]: has joined #ruby
[14:15:09] nemesit|znc: has joined #ruby
[14:15:15] zmartAway: has joined #ruby
[14:15:24] jottr: has joined #ruby
[14:15:26] Liam`: has joined #ruby
[14:15:33] nlsun: has joined #ruby
[14:15:50] Sigma00: has joined #ruby
[14:15:51] idefine_: has joined #ruby
[14:15:53] SirCmpwn: has joined #ruby
[14:15:57] Diabolik: has joined #ruby
[14:16:03] treaki_: has joined #ruby
[14:16:18] aegis3121: has joined #ruby
[14:16:46] Seich: has joined #ruby
[14:16:49] DenSchub_: has joined #ruby
[14:17:02] braincra-: has joined #ruby
[14:17:35] dgncn_: has joined #ruby
[14:17:42] MaienM: has joined #ruby
[14:18:02] babblebre: has joined #ruby
[14:18:06] UserInneed: has joined #ruby
[14:18:09] mistermo_: has joined #ruby
[14:18:34] Meeh: has joined #ruby
[14:18:34] lipoqil: has joined #ruby
[14:18:34] interpel1x: has joined #ruby
[14:18:34] No_One: has joined #ruby
[14:18:35] Biohazard: has joined #ruby
[14:18:37] lipoqil: has joined #ruby
[14:18:42] No_One: has joined #ruby
[14:18:43] levifig: has joined #ruby
[14:18:47] Veejay: has joined #ruby
[14:19:16] d0nn1e: has joined #ruby
[14:19:45] halfamind: has joined #ruby
[14:20:42] whippythellama: has joined #ruby
[14:20:53] nettoweb: has joined #ruby
[14:22:13] ndrst: has joined #ruby
[14:22:19] IrishGringo: has joined #ruby
[14:22:43] jazzonmymind: has joined #ruby
[14:22:45] Luna_Moonfang: has joined #ruby
[14:22:56] aspiers: has joined #ruby
[14:23:02] JoL1hAHN: has joined #ruby
[14:23:54] kp666: has joined #ruby
[14:24:14] Uber|Dragon: has joined #ruby
[14:24:37] Devalo: has joined #ruby
[14:24:46] ssm: has joined #ruby
[14:26:35] fevrbd: has joined #ruby
[14:27:22] jehoesefat: has joined #ruby
[14:28:16] mallu: has joined #ruby
[14:29:50] idefine: has joined #ruby
[14:30:23] weemsledeux: has joined #ruby
[14:32:35] ChiefAlexander: has joined #ruby
[14:34:05] gregf: has joined #ruby
[14:36:03] mary5030: has joined #ruby
[14:37:24] pawnbox: has joined #ruby
[14:38:10] valetudo: has joined #ruby
[14:38:34] valetudo: has joined #ruby
[14:39:34] renier: has joined #ruby
[14:40:10] hs366: has joined #ruby
[14:40:23] shevy: sexy sexy ruby
[14:40:37] shevy: I'd wish more people would do ruby-GUIs
[14:41:04] mary5030: has joined #ruby
[14:41:30] jdawgaz: has joined #ruby
[14:42:18] kies: has joined #ruby
[14:43:06] idefine: has joined #ruby
[14:43:09] dc2: has joined #ruby
[14:45:50] apeiros: I wish there was a decent way to do mac GUIs with ruby
[14:49:28] darix: apeiros: Qt bindings?
[14:49:36] roshanavand1: has joined #ruby
[14:50:15] snowy: has joined #ruby
[14:50:26] apeiros: granted, haven't tried those for a couple of years now. last time was with ruby 1.8 (1.8.2 - 1.8.7), never got it to work properly.
[14:50:32] rbennacer: has joined #ruby
[14:50:57] apeiros: does Qt still look like an odd-one-out on osx or does it look like a native app?
[14:51:27] prestorium: has joined #ruby
[14:51:44] havenwood: apeiros: I'd prefer it if the free RubyMotion covered OS X instead of iOS.
[14:52:15] kspencer: shevy: I'd be doing gui's but i can never figure the whole thing out, and I've looked at tutorials
[14:52:19] apeiros: havenwood: not sure I get you right there - you mean even if rubymotion was free and covered osx, you'd still prefer qt?
[14:52:43] rippa: has joined #ruby
[14:52:46] bricker: has joined #ruby
[14:53:40] havenwood: apeiros: I said that very poorly. I mean the free version of RubyMotion only covers iOS. But if instead it covered OS X i'd happen to get more use of it.
[14:53:56] preyalone: has joined #ruby
[14:54:26] shevy: kspencer well the basics are quite simple; you use widgets, these widgets can respond to events such as mouse click. if you know javascript, it'll even be simpler. problem is there are just so few people who want to write oldschool GUI apps in the days of the www era
[14:55:05] havenwood: GUI bindings is a rare area where I envy the Pythonistas.
[14:55:32] shevy: <havenwood> shevy: two snakes is too many snakes
[14:56:10] shevy: the python guys must have armies of C and C++ savvy devs
[14:57:11] kirillzh: has joined #ruby
[14:58:16] idefine_: has joined #ruby
[14:58:20] mank: has joined #ruby
[14:58:24] kirillzh: has joined #ruby
[14:59:18] ascarter: has joined #ruby
[14:59:40] mank: has joined #ruby
[15:00:43] workmad3: has joined #ruby
[15:00:46] Sadin: has joined #ruby
[15:01:35] dopie: has joined #ruby
[15:04:54] Devalo: has joined #ruby
[15:04:59] slawrence00: has joined #ruby
[15:06:34] griffindy: has joined #ruby
[15:07:43] agentmeerkat: has joined #ruby
[15:07:54] cjbottaro: has joined #ruby
[15:09:00] last_staff: has joined #ruby
[15:09:41] mank: has joined #ruby
[15:09:52] mistermocha: has joined #ruby
[15:10:24] pawnbox: has joined #ruby
[15:10:32] skweek: has joined #ruby
[15:11:00] mistermocha: has joined #ruby
[15:11:19] idefine: has joined #ruby
[15:12:21] lodom: has joined #ruby
[15:12:55] inukshuk_: has joined #ruby
[15:15:02] diegoaguilar: has joined #ruby
[15:16:09] idefine: has joined #ruby
[15:16:15] cjbottaro: has joined #ruby
[15:16:16] idefine: has joined #ruby
[15:17:47] Aviio: has joined #ruby
[15:18:49] User458764: has joined #ruby
[15:20:13] djellemah: has joined #ruby
[15:20:19] idefine: has joined #ruby
[15:20:50] lodom: I want to write a C program with embedded ruby on windows and tried cygwins ruby 2.2.0 with -dev and rubyinstaller ruby with devkit installed. I've also read that mixing cygwin and rubyinstaller is a no go so I installed mingws gcc, added it to path and tried to compile the test.c which gave me a bunch of dll errors. I was searching the net for some useful links but couldn't find any. sites related to building
[15:20:56] lodom: native gems didn't help much either. I also read about using c++ and ruby dlls but it has to be C. Im neither a windows dev expert nor a C pro and I know that this might not be a good starting base.. but anyhow, I want to achieve it. please see the following pastebin for the outputs I got and I hope one can give me a helpful tip. (I have no problems compiling this code on linux or using ruby in C on linux, bu
[15:21:02] lodom: t it has to be windows in this case, sadly ;) http://pastebin.com/B7yS5QHc
[15:21:03] ruby[bot]: lodom: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/5031250d13debf2f27c0
[15:21:03] ruby[bot]: lodom: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[15:21:19] lodom: alright, give me a second dear ruby bot
[15:21:55] lodom: https://gist.github.com/lotherk/ffda5a5eac27e4df0733
[15:23:16] adaedra: for your first one, try putting the -l args after the .c file
[15:23:21] millerti: has joined #ruby
[15:23:52] lodom: what the f
[15:23:54] lodom: it worked
[15:24:03] lodom: oh man, thank you
[15:24:13] adaedra: The order of linking is important
[15:25:45] pawnbox: has joined #ruby
[15:25:54] jottr_: has joined #ruby
[15:26:29] smathy: has joined #ruby
[15:26:41] dikaio: has joined #ruby
[15:26:54] nettoweb: has joined #ruby
[15:27:07] cjbottaro: has joined #ruby
[15:27:24] idefine: has joined #ruby
[15:27:24] fevrbd: has joined #ruby
[15:27:31] lodom: very well, thank you adaedra. I'll go and play a bit. thanks!
[15:27:37] merida: has joined #ruby
[15:28:02] Flipez: has joined #ruby
[15:28:17] RegulationD: has joined #ruby
[15:28:46] idefine: has joined #ruby
[15:29:03] Aviio: has joined #ruby
[15:30:15] skade: has joined #ruby
[15:30:44] halfamind: has joined #ruby
[15:31:26] finisherr: has joined #ruby
[15:31:37] ascarter: has joined #ruby
[15:31:47] idefine: has joined #ruby
[15:31:50] fullofcaffeine: has joined #ruby
[15:32:01] washt: has left #ruby: ()
[15:32:59] cpruitt: has joined #ruby
[15:33:45] agit0: has joined #ruby
[15:37:09] evidex: has joined #ruby
[15:39:14] n008f4g_: has joined #ruby
[15:40:49] morissette: has joined #ruby
[15:40:56] morissette: Anyone seen this error before? https://bpaste.net/show/58510afb0c61
[15:43:16] havenwood: morissette: Seems you mean `jruby -S gem install` but are running `jruby -S install`.
[15:43:20] axl_: has joined #ruby
[15:43:51] havenwood: morissette: Note: SyntaxError: /usr/bin/install
[15:44:22] morissette: Trying the gem install w/ jruby now
[15:44:26] idefine: has joined #ruby
[15:45:02] skade: has joined #ruby
[15:45:15] andikr: has joined #ruby
[15:45:40] morissette: https://bpaste.net/show/c360dde94e43 - new error
[15:45:51] B1n4r10: has joined #ruby
[15:46:09] havenwood: morissette: That's a saner error. :)
[15:46:26] havenwood: morissette: /opt/logstash/vendor/jruby/bin/jruby -v
[15:46:45] morissette: jruby 1.7.23 (1.9.3p551) 2015-11-24 f496dd5 on OpenJDK 64-Bit Server VM 1.7.0_95-mockbuild_2016_02_02_21_16-b00 +jit [linux-amd64]
[15:46:47] havenwood: morissette: (The `install` command you were initially running isn't Ruby-related.)
[15:46:48] morissette: this i can work with
[15:46:52] MonsterMunch: has left #ruby: ()
[15:47:16] morissette: I do python I do perl, I haven't touched ruby in years
[15:47:17] cmckni3: has joined #ruby
[15:47:37] idefine: has joined #ruby
[15:48:01] ascarter: has joined #ruby
[15:48:24] havenwood: morissette: I'd suggest upgrading JRuby to 9.0.5.0 so the RUBY_VERSION will be > 2.0.
[15:48:45] morissette: Just via rvm? or is there a newer preferred method?
[15:48:51] havenwood: morissette: Alternatively, run JRuby 1.7 in 2.0 mode.
[15:49:04] havenwood: morissette: jruby --2.0 -S gem install ...
[15:49:25] havenwood: morissette: Via RVM is fine. First: rvm get head
[15:49:53] [Butch]: has joined #ruby
[15:50:42] stunder001: has joined #ruby
[15:51:48] idefine: has joined #ruby
[15:53:30] morissette: Thanks for all the help havenwood
[15:53:37] morissette: Looks like bundle install is going to work now
[15:54:23] dfockler: has joined #ruby
[15:54:44] vikas027: has joined #ruby
[15:54:53] renier_: has joined #ruby
[15:55:05] workmad3: has joined #ruby
[15:55:41] vikas027: has left #ruby: ()
[15:56:31] crazydiamond: has joined #ruby
[15:57:09] baweaver: has joined #ruby
[15:57:51] tjohnson: has joined #ruby
[15:57:51] noService: has joined #ruby
[15:58:11] SpikeSpiegel: has joined #ruby
[15:58:38] idefine: has joined #ruby
[15:59:09] amclain: has joined #ruby
[15:59:13] fevrbd: has joined #ruby
[15:59:38] MonsterMunch_: has joined #ruby
[15:59:43] joast: has joined #ruby
[16:00:56] marxarelli: has joined #ruby
[16:01:12] vdamewood: has joined #ruby
[16:02:03] dionysus69: has joined #ruby
[16:02:16] idefine_: has joined #ruby
[16:02:24] idefine__: has joined #ruby
[16:03:06] noService: has joined #ruby
[16:04:03] antgel: has joined #ruby
[16:06:34] Devalo: has joined #ruby
[16:07:04] freerobby: has joined #ruby
[16:08:45] ramfjord: has joined #ruby
[16:09:31] Salve: has joined #ruby
[16:09:38] dikaio: has joined #ruby
[16:10:46] StephenOTT: has joined #ruby
[16:12:11] chouhoulis: has joined #ruby
[16:14:48] The_Phoenix: has joined #ruby
[16:14:49] antgel: has joined #ruby
[16:14:54] fevrbd: has joined #ruby
[16:15:08] davedev24: has joined #ruby
[16:16:28] vdamewood: has joined #ruby
[16:16:44] mrgrieves: has joined #ruby
[16:18:20] chipotle: has joined #ruby
[16:18:35] dc2: has joined #ruby
[16:20:14] araujo: has joined #ruby
[16:20:14] araujo: has joined #ruby
[16:21:58] mistermocha: has joined #ruby
[16:23:57] chocoelho: has joined #ruby
[16:24:06] Eiam_: has joined #ruby
[16:29:59] mleung: has joined #ruby
[16:30:08] aryaching: has joined #ruby
[16:32:02] ascarter: has joined #ruby
[16:32:06] hightower3: has joined #ruby
[16:33:27] aryaching: has joined #ruby
[16:33:54] sepp2k: has joined #ruby
[16:33:55] skweek: has joined #ruby
[16:34:31] bronson: has joined #ruby
[16:34:32] Guest38: has joined #ruby
[16:34:59] symm-: has joined #ruby
[16:35:07] mleung: has joined #ruby
[16:35:12] halfamind: has joined #ruby
[16:42:13] floatingpoint: has joined #ruby
[16:44:53] SpikeSpiegel: has joined #ruby
[16:48:45] wilbert: has joined #ruby
[16:50:08] pandaant: has joined #ruby
[16:50:12] shinnya: has joined #ruby
[16:52:47] idefine: has joined #ruby
[16:52:49] robbyoconnor: has joined #ruby
[16:53:26] tvw: has joined #ruby
[16:54:26] silentpost: has joined #ruby
[16:54:42] Blaguvest: has joined #ruby
[16:54:55] skade: has joined #ruby
[16:57:35] Devalo: has joined #ruby
[17:00:14] oncall-pokemon: has joined #ruby
[17:00:26] ChiefAlexander: has joined #ruby
[17:00:30] Salve: has joined #ruby
[17:00:31] speakingcode: has joined #ruby
[17:02:39] nobitanobi: has joined #ruby
[17:03:08] symm-: has joined #ruby
[17:03:23] tubuliferous: has joined #ruby
[17:03:41] merida: has joined #ruby
[17:05:49] B1n4r10: has joined #ruby
[17:06:10] idefine: has joined #ruby
[17:06:39] rcvalle: has joined #ruby
[17:08:36] Musashi007: has joined #ruby
[17:08:36] aegis3121: has joined #ruby
[17:08:55] User458764: has joined #ruby
[17:11:07] idefine: has joined #ruby
[17:12:22] ruby-lang870: has joined #ruby
[17:12:37] bronson: has joined #ruby
[17:12:56] ivanskie: has joined #ruby
[17:13:07] Riviera-: has joined #ruby
[17:14:23] baweaver: has joined #ruby
[17:14:41] codecop: has joined #ruby
[17:15:10] wilbert: has joined #ruby
[17:16:37] idefine: has joined #ruby
[17:16:42] wldcordeiro: has joined #ruby
[17:17:31] troulouliou_div2: has joined #ruby
[17:19:12] moua: has left #ruby: ("Leaving...")
[17:19:43] poguez_: has joined #ruby
[17:19:57] marr: has joined #ruby
[17:20:15] joonty: has joined #ruby
[17:23:58] FooMunki: has joined #ruby
[17:24:26] nofxx: has joined #ruby
[17:24:26] nofxx: has joined #ruby
[17:24:48] idefine: has joined #ruby
[17:26:22] dopie: has joined #ruby
[17:27:08] roshanavand1: has joined #ruby
[17:27:58] n008f4g_: has joined #ruby
[17:29:02] baweaver: has joined #ruby
[17:31:36] floatingpoint: sanity check: Dir["/some_dir/*.txt"] will match anything ending in .txt in some_dir, correct?
[17:31:41] nobitanobi: How do you sufix methods that return a date like "April 10, 2013 9:00"? For example, if I want to return the time the visit happened (but that time also includes date), would you do def visit_datetime?
[17:31:47] mjc_: has joined #ruby
[17:32:01] WhoLettem: has joined #ruby
[17:32:09] WhoLettem: How do I make an account on here?
[17:33:14] adaedra: /msg NickServ HELP
[17:33:50] weemsledeux: has joined #ruby
[17:34:12] floatingpoint: sanity check: Dir["/some_dir/*.txt"] will match anything ending in .txt in some_dir, correct?
[17:34:55] armyriad: has joined #ruby
[17:35:08] aegis3121: nobitanobi: probably. Does it return a DateTime object, or a String?
[17:35:33] floatingpoint: hm. this must be a tough question to answer
[17:36:27] SCHAAP137: has joined #ruby
[17:36:27] SCHAAP137: has joined #ruby
[17:36:41] baweaver: has joined #ruby
[17:39:58] nobitanobi: aegis3121: should the object class change the name of the method?
[17:40:11] djbkd: has joined #ruby
[17:40:20] Disavowed: has joined #ruby
[17:40:53] drewo: has joined #ruby
[17:40:56] aegis3121: ¯\_(ツ)_/¯ Depends on who you ask. I would probably call it visit_datetime regardless and make sure I document what it returns (String, Datetime, w/e)
[17:41:17] aegis3121: Someone who (their fault, really, I suppose) consumes it without reading the docs might expect it to return a DateTime object, though.
[17:41:56] nobitanobi: aegis3121: cool, thanks :)
[17:42:14] nobitanobi: datetime vs date_time :{
[17:42:29] aegis3121: that seems....mostly preferential lol
[17:43:01] apeiros: nobitanobi: visited_datetime is bad
[17:43:14] apeiros: you don't annotate the type in other methods either, do you?
[17:43:30] apeiros: shift_object? concat_array? person.first_name_string?
[17:43:39] apeiros: that's just silly.
[17:43:39] aegis3121: but `visit` doesn't really make sense on its own
[17:43:42] nobitanobi: right, I'm trying to sufix it with what is conceptually is returning
[17:43:56] mwlang: has joined #ruby
[17:44:52] nobitanobi: apeiros: I was thinking on being explicit that I'm returning not just a date, but also a time
[17:44:52] apeiros: or maybe "visit" itself is wrong if it's not clear enough.
[17:45:05] apeiros: no, don't do that. that's documentation stuff.
[17:45:19] apeiros: as illustrated above, it's just silly to annotate the type in the method name.
[17:45:34] elifoster: has joined #ruby
[17:45:55] baweaver: has joined #ruby
[17:46:09] nobitanobi: apeiros: thanks
[17:46:14] ChiefAlexander: has joined #ruby
[17:46:23] JoshGlzBrk: has joined #ruby
[17:46:36] chocoelho: has left #ruby: ("WeeChat 1.4")
[17:46:39] 14WAAJ0BT: has joined #ruby
[17:47:21] mwlang: Is there a size limit to Nokogiri::XML ? I have an XML document with a base64 encoded field in it that’s running to the tune of 11mb. It’s failing to parse with premature end of data. I’m not sure if it’s bad data or size limitation, just yet...
[17:50:49] jkahn: has joined #ruby
[17:50:58] apeiros: mwlang: I doubt 11MB would trigger any limit. my bet is on bad data.
[17:51:07] nando293921: has joined #ruby
[17:51:42] ljames: has joined #ruby
[17:51:48] jdawgaz: has joined #ruby
[17:52:14] Devalo: has joined #ruby
[17:52:19] nobitanobi: apeiros: so even if to me the concept of what the method is returning might be a date or date and time, you would avoid suffixing it yes?
[17:52:37] smathy: mwlang, no limit as far as I know, other than machine RAM. I've heard of people doing hundreds of megs, even gigs.
[17:53:10] Devalo: has joined #ruby
[17:53:34] apeiros: nobitanobi: yes. unless I have explicitly two methods where one does date and the other time of day.
[17:53:55] nobitanobi: I guess my question is more what is the human expression that we will use to represent a moment in time that is defined by a date and a time.
[17:54:01] apeiros: though honestly I doubt I'd ever do that. I'd just chain on the datetime returning method.
[17:54:03] nobitanobi: in order to make my method self documented :)
[17:54:07] mwlang: smathy: thanks for that. will focus my effort on the content, then.
[17:54:16] Maletor: has joined #ruby
[17:54:26] nobitanobi: regardless of whether I am returning a datetime or a string
[17:54:41] smathy: mwlang, yeah, look for stuff not confirming to the specified encoding.
[17:54:42] nobitanobi: how do I make my method self documenting to say that I am returning a moment in time that is represented with date and a time
[17:54:59] nobitanobi: apeiros: perhaps `_moment`
[17:55:03] ryanprior: has joined #ruby
[17:56:14] idefine: has joined #ruby
[17:56:33] apeiros: nobitanobi: eh, if you really think "visit" or "visit_at" is unclear, then I'd prefer visit_date or visit_appoinment over visit_moment.
[17:56:59] ryanprior: I have a string that comprises YAML fragments that could be children of a hypothetical parent node. I want to parse them all and get a list of YAML ASTs, but when I YAML.parse them, it just reads the first one. Is there an easy way to get what I want?
[17:57:06] nobitanobi: thanks apeiros
[17:57:29] apeiros: ryanprior: --- is the yaml document separator
[17:57:35] nettoweb: has joined #ruby
[17:57:57] mikecmpbll: has joined #ruby
[17:58:16] ryanprior: apeiros: my strings don't have --- between the subdocuments. Do I need to build a regex to insert them?
[17:58:46] apeiros: ryanprior: how does your document separate the yaml fragments then?
[17:58:58] duncannz: has joined #ruby
[17:58:59] apeiros: and why doesn't it use proper yaml syntax to do so?
[17:59:24] jehoesefat: has joined #ruby
[17:59:48] yfeldblum: has joined #ruby
[18:00:01] duncannz: has joined #ruby
[18:00:49] boontdustie: has joined #ruby
[18:01:22] ryanprior: apeiros: because it's intended as end-user documentation, not as valid YAML.
[18:01:29] BtcBen: has joined #ruby
[18:01:39] tubuliferous: has joined #ruby
[18:01:43] apeiros: and you parse end-user documentation because…?
[18:01:52] drewo: has joined #ruby
[18:02:17] ryanprior: I want to write a test that ensures the YAML examples parse.
[18:02:54] Don_John: has joined #ruby
[18:03:23] apeiros: well then I guess good luck at parsing documentation. there's really not much to say. figure how to separate them and parse them separately.
[18:03:31] idefine: has joined #ruby
[18:04:56] axl__: has joined #ruby
[18:05:40] ryanprior: apeiros: thank you!
[18:05:48] yfeldblum: has joined #ruby
[18:06:32] jmignault: has joined #ruby
[18:06:39] idefine: has joined #ruby
[18:06:43] ramfjord: has joined #ruby
[18:08:13] blackmesa: has joined #ruby
[18:08:56] Synthead: has joined #ruby
[18:11:11] baweaver: has joined #ruby
[18:11:21] davee_: has joined #ruby
[18:13:10] evidex: has joined #ruby
[18:14:12] araujo: has joined #ruby
[18:17:49] A124: has joined #ruby
[18:17:54] araujo: has joined #ruby
[18:19:37] skade: has joined #ruby
[18:19:57] sneakerhax: has joined #ruby
[18:23:25] gregf: has joined #ruby
[18:23:57] B1n4r10: has joined #ruby
[18:24:06] _stu_: has joined #ruby
[18:25:30] valetudo: has joined #ruby
[18:25:55] valetudo: has joined #ruby
[18:28:02] ramfjord: has joined #ruby
[18:29:07] cdg: has joined #ruby
[18:30:31] dionysus69: has joined #ruby
[18:31:06] User458764: has joined #ruby
[18:33:14] ivanskie: has joined #ruby
[18:33:16] evidex: has joined #ruby
[18:35:47] duderon__: has joined #ruby
[18:36:07] blandflakes: has joined #ruby
[18:36:17] gizmore: has joined #ruby
[18:36:19] mikecmpbll: has joined #ruby
[18:38:59] jenrzzz: has joined #ruby
[18:38:59] jenrzzz: has joined #ruby
[18:39:02] tubuliferous: has joined #ruby
[18:39:44] jkahn: has joined #ruby
[18:43:56] ramfjord: has joined #ruby
[18:44:58] Uber|Dragon: has joined #ruby
[18:45:31] SenpaiSilver: has joined #ruby
[18:45:57] Diabolik: has joined #ruby
[18:47:34] tubuliferous: has joined #ruby
[18:48:54] nando293921: has joined #ruby
[18:49:44] tubuliferous_: has joined #ruby
[18:49:45] anirban: has joined #ruby
[18:50:03] codecop: has joined #ruby
[18:52:08] r00by: has joined #ruby
[18:52:56] tubulife|: has joined #ruby
[18:53:02] mleung_: has joined #ruby
[18:53:27] smathy_: has joined #ruby
[18:53:41] nertzy2: has joined #ruby
[18:53:47] diprotic: has joined #ruby
[18:54:03] mwlang_: has joined #ruby
[18:55:10] err_ok: has joined #ruby
[18:55:16] freerobby: has joined #ruby
[18:55:16] cpup: has joined #ruby
[18:55:24] LBRapid: has joined #ruby
[18:55:33] edev: has joined #ruby
[18:55:58] iamvery: has joined #ruby
[18:56:39] alnewkirk: has joined #ruby
[18:56:48] hackeron: has joined #ruby
[18:56:51] nofxx: has joined #ruby
[18:57:24] madhatter: has joined #ruby
[18:57:25] ifhodp: has joined #ruby
[18:57:28] yeticry: has joined #ruby
[18:57:38] halfdan: has joined #ruby
[18:57:39] idefine: has joined #ruby
[18:57:41] jlyndon: has joined #ruby
[18:57:44] hays: has joined #ruby
[18:57:50] braderhart: has joined #ruby
[18:58:00] jhill: has joined #ruby
[18:58:09] jcp: has joined #ruby
[18:58:13] HashNuke: has joined #ruby
[18:58:25] r00by: hi, I was wanting to deploy a little ruby slack chatbot, I was wondering if anyone could recommend a service for deploying such a small ruby app to?
[18:58:39] pizzaops: has joined #ruby
[18:58:54] apipkin_: has joined #ruby
[18:59:11] mostlybadfly: has joined #ruby
[18:59:12] gmci: has joined #ruby
[18:59:14] agentmeerkat: has joined #ruby
[18:59:17] tildes: has joined #ruby
[18:59:22] skweek: has joined #ruby
[18:59:56] [spoiler]: has joined #ruby
[19:00:22] duderonomy: has joined #ruby
[19:00:39] aef: has joined #ruby
[19:00:43] fullofcaffeine: has joined #ruby
[19:01:15] Platini: has joined #ruby
[19:01:59] idefine: has joined #ruby
[19:02:18] kirun: has joined #ruby
[19:02:53] jjturner: has joined #ruby
[19:04:10] araujo_: has joined #ruby
[19:04:46] B1n4r10: has joined #ruby
[19:04:48] marr: has joined #ruby
[19:05:38] devbug: has joined #ruby
[19:05:51] mwlang: r00by: I think heroku offers some sort of free hosting for very small apps. not 100% sure on that, though.
[19:07:57] bob434: has joined #ruby
[19:08:33] [dmp]: has joined #ruby
[19:09:16] jackjackdripper: has joined #ruby
[19:09:27] rbennacer: has joined #ruby
[19:09:32] r00by: mwlang: they do, but they will get suspended if they don't receive any requests for a while, my app listens for live updates from Pusher, but I think they'll be dropped if my app is suspended
[19:09:33] whippythellama: has joined #ruby
[19:09:47] _blizzy_: has joined #ruby
[19:12:07] tjohnson_: has joined #ruby
[19:12:10] zzak____: has joined #ruby
[19:12:13] jabreity_: has joined #ruby
[19:12:14] twodayslate_: has joined #ruby
[19:12:22] jdawgaz: has joined #ruby
[19:12:22] deimos_: has joined #ruby
[19:12:37] rbennacer: has joined #ruby
[19:12:40] jcp_: has joined #ruby
[19:12:40] Y_Ichiro_: has joined #ruby
[19:12:50] jackjackdripper: has joined #ruby
[19:12:53] User458764: has joined #ruby
[19:13:11] andersh_: has joined #ruby
[19:13:15] akahn_: has joined #ruby
[19:13:27] nwhirschfeld_: has joined #ruby
[19:13:28] kireevco_: has joined #ruby
[19:13:40] jhill_: has joined #ruby
[19:13:53] acerna_: has joined #ruby
[19:14:13] Guest4184_______: has joined #ruby
[19:14:15] pfg__: has joined #ruby
[19:14:29] zacts_: has joined #ruby
[19:14:45] hostess_: has joined #ruby
[19:14:45] ozzloy_: has joined #ruby
[19:14:46] danzilio_: has joined #ruby
[19:14:52] TvL: has joined #ruby
[19:15:28] ryanprio`: has joined #ruby
[19:15:32] baweaver: has joined #ruby
[19:16:04] Eiam: has joined #ruby
[19:16:06] Dr_r00t3r: has joined #ruby
[19:16:10] rbennacer: has joined #ruby
[19:16:24] bogdanteleaga_: has joined #ruby
[19:16:28] mwlang: r00by: in that case, I’d suggest a small VPS at digital ocean.
[19:16:38] kenichi_: has joined #ruby
[19:16:48] existensil_: has joined #ruby
[19:16:51] Spaceghost|work: has joined #ruby
[19:17:19] tubbo`: has joined #ruby
[19:17:48] Dr_r00t3r: has joined #ruby
[19:17:52] mwlang: I run a full-fledge gitlab server at DO and it costs me just shy of $20/mo with heavy daily use (~15 repos and ~3 developers)
[19:18:13] chridal_: has joined #ruby
[19:18:47] SenpaiSilver_: has joined #ruby
[19:18:56] ereslibre_laptop: has joined #ruby
[19:18:57] smathy: r00by, the sleep mode shouldn't result in a dropped connection, just a delay for the first request during a sleep.
[19:19:25] pwnd_nsfw`: has joined #ruby
[19:19:27] mnrmnaugh_: has joined #ruby
[19:19:32] r00by: mwlang: okay, I'll check it out. Sounds like pretty good value. I had looked into prgrmr, aws and docker.
[19:19:33] jottr: has joined #ruby
[19:19:48] cschneid-: has joined #ruby
[19:19:50] duckpuppy: has joined #ruby
[19:19:53] mhoungbo: has joined #ruby
[19:19:53] amitchellbullard: has joined #ruby
[19:19:59] idefine: has joined #ruby
[19:20:00] amitchellbullard: has joined #ruby
[19:20:00] armyriad: has joined #ruby
[19:20:08] r00by: smathy: really? okay, I'll give it a shot since the delay wouldn't be a problem
[19:20:23] jinie: has joined #ruby
[19:20:25] Sthebig: has joined #ruby
[19:20:25] Sthebig: has joined #ruby
[19:20:27] kobain: has joined #ruby
[19:20:30] mwlang: so, on the nokogiri problem, still: I’ve narrowed it down. It’s definitely a size of content problem. it’s basically a SOAP message with an embedded, escaped SOAP message in that. When that embedded string reaches 10mb in size, nokogiri comes up completely empty on that element’s content.
[19:21:19] awk: has joined #ruby
[19:21:24] smathy: Ahh, a single element > 10mb is different. I don't think I've seen/heard of that.
[19:21:36] havenwood: smathy: they switched the free plan a while back to have a max 18hr uptime per 24h
[19:21:52] Y_Ichiro: has joined #ruby
[19:21:55] havenwood: a forced sleep of 6hrs
[19:22:01] Es0teric: has joined #ruby
[19:22:33] crdpink2: has joined #ruby
[19:22:33] Miron: has joined #ruby
[19:22:41] Klumben: has joined #ruby
[19:22:47] fullofca_: has joined #ruby
[19:23:03] beawesomeinstead: has joined #ruby
[19:23:12] Apocalypse: has joined #ruby
[19:23:19] Ikri: has joined #ruby
[19:23:50] devbug: has joined #ruby
[19:24:01] smathy: havenwood, oh, I didn't know that. Thanks. r00by ^
[19:24:09] SegFaultAX: has joined #ruby
[19:24:19] jhass: has joined #ruby
[19:24:32] n008f4g_: has joined #ruby
[19:24:40] Biohazard: has joined #ruby
[19:24:43] Fridtjof: has joined #ruby
[19:24:45] r4z3r: has joined #ruby
[19:24:54] smathy: mwlang, is it CDATA? Could it be a line length issue? I've heard of that in CDATA parsers before, bombing out if too many chars before a \n
[19:25:06] elaptics`away: has joined #ruby
[19:25:09] blackjid: has joined #ruby
[19:25:32] r00by: havenwood: thanks for the heads up
[19:25:46] mwlang: smathy: it’s not properly CDATA
[19:26:06] lkba: has joined #ruby
[19:26:35] baweaver: has joined #ruby
[19:27:34] smathy: mwlang, line length might still be a thing.
[19:28:14] last_staff: has joined #ruby
[19:28:22] ElderFain: has joined #ruby
[19:28:25] mwlang: smathy: any idea what the limits are on line length? It *is* all one line FWIW.
[19:29:21] smathy: mwlang, I dunno, sounds like 10MB is a good place to start ;)
[19:29:34] skweek: has joined #ruby
[19:29:52] smathy: mwlang, I'd just pick some likely spots, 1024 chars, 65536 etc.
[19:30:07] Alina-malina: has joined #ruby
[19:30:26] smathy: Start small for a confirmation of problem, then see how big you can get before it trips over again.
[19:30:43] Alina-malina: has joined #ruby
[19:30:59] mwlang: smathy: good idea.
[19:31:02] avelldiroll: has joined #ruby
[19:33:24] mwlang: bummer…not the line length. inserted random CR/LF at various points of the embedded doc…still loses the base64 content.
[19:34:28] smathy: Sorry man, that was my best thought.
[19:34:45] xuex: has joined #ruby
[19:35:37] idefine: has joined #ruby
[19:36:45] mwlang: nuts…I can parse it successfully with REXML.
[19:36:57] firstdayonthejob: has joined #ruby
[19:37:30] mwlang: and if I go ahead and unescape REXML’s result and write back to file…nokogiri reads the new file contents just fine.
[19:37:49] smathy: Is that block the same size?
[19:37:53] mwlang: what I also noticed is that nokogiri is unescaping the contents of the embedded XML
[19:38:00] baweaver: has joined #ruby
[19:38:07] Devalo: has joined #ruby
[19:38:20] smathy: You're getting closer, more sleuthing!
[19:38:21] sphex: has joined #ruby
[19:38:24] mwlang: yeah, same size, roughly. both are 11MB
[19:39:08] mwlang: if I can just tell nokogiri to treat that embedded XML as a string and not try to parse it, I think I’ll have my solution.
[19:39:33] mwlang: because what I do anyway is parse once and the pull out the embedded doc CGI.unescapeHTML on it and parse again.
[19:39:42] User458764: has joined #ruby
[19:40:49] Alayde: has joined #ruby
[19:42:30] mikecmpbll: has joined #ruby
[19:43:25] apes: has joined #ruby
[19:43:26] alexherbo2: has joined #ruby
[19:44:15] a11: has joined #ruby
[19:45:06] apes: Would something like the following snippet be considered idiomatic, or is there a better way? https://gist.github.com/apeschel/1204d996b2ea420ec4f4
[19:45:12] xaxisx: has joined #ruby
[19:45:54] rattatmatt: has joined #ruby
[19:46:00] aef: has joined #ruby
[19:46:17] apeiros: apes: can't judge how idiomatic code is when you take it out of context.
[19:46:22] idefine: has joined #ruby
[19:46:39] graffix: has left #ruby: ()
[19:46:43] FooMunki: has joined #ruby
[19:47:03] apes: apeiros: I'm not sure there is more context to provide - it's about constructing an array from variables and other arrays
[19:47:05] IrishGringo: has joined #ruby
[19:47:42] stunder001: has joined #ruby
[19:47:45] apes: Would something like `result = [foo, bar] + baz` be better?
[19:47:50] jokester: has joined #ruby
[19:48:22] mwlang: I’m fine with both, but probably prefer the latter.
[19:51:11] mwlang: I tend to think of splatting arrays as digging deeper into the facilities of the language than I need to.
[19:51:17] smathy: Latter is clearer, I tend to use the simplest operators where possible and no significant disadvantage. Not a comment on whether either is idiomatic.
[19:51:39] smathy: Heh, we're "tend"ing :)
[19:52:57] mwlang: I guess its true, then. Why get fancy when you don’t need to?
[19:53:21] smathy: We're not writing Perl after all.
[19:53:40] tenderlove: has joined #ruby
[19:53:44] apeiros: ACTION wouldn't consider [foo, bar, *baz] fancy
[19:54:01] smathy: You came from a Perl background right?
[19:54:15] apeiros: that's quite long ago
[19:54:34] smathy: ACTION nods as he backs away slowly
[19:54:47] apeiros: time passes… must be >15y now.
[19:54:50] moosetans: has joined #ruby
[19:55:11] smathy: Yeah, about 10 for me.
[19:55:51] jgrevich: has joined #ruby
[19:56:23] smathy: I still say the splat is fancier than the concat.
[19:56:29] BLuEGoD: has joined #ruby
[19:56:39] smathy: ...I go for simplest unless there's a reason.
[19:57:13] mrgrieves: has joined #ruby
[19:57:47] skweek: has joined #ruby
[19:58:02] Dimik: has joined #ruby
[19:58:29] apes: Thank you for your input!
[19:58:42] halfamind: has joined #ruby
[19:59:24] mhoungbo: has joined #ruby
[19:59:33] B1n4r10: has joined #ruby
[20:00:04] shevy: apeiros did you not also wrote some 50.000 lines of php code or something :D
[20:00:37] apeiros: you're referring to my framework. I probably wrote way beyond 50kLoC of PHP in my life
[20:00:54] skade: has joined #ruby
[20:01:01] Eiam_: has joined #ruby
[20:01:21] Breaking_Pitt: has joined #ruby
[20:01:22] jaruga: has joined #ruby
[20:02:11] mwlang: for me, splatting is akin to passing by value vs. passing by reference in compiled languages, or more specificaly in my case with Delphi/Pascal. When prefixing a parameter passed into a method, we were in-effect, bypassing potential compiler warnings/checks that would otherwise prevent you sending an unknown oject type into the method. You then also as the programmer, be aware of what you were doing inside that method and correctly handle tho
[20:02:12] mwlang: special parameters.
[20:02:12] infernix: has joined #ruby
[20:02:18] snowy: has joined #ruby
[20:02:42] mwlang: granted that’s not quite the same with Ruby’s splat operator, but *something still makes me stand up and pay attention.
[20:04:49] shevy: stand up and pay attention to cats mwlang!
[20:05:22] mwlang: cats have claws.
[20:06:33] Salve: has joined #ruby
[20:07:35] barajasfab: has joined #ruby
[20:10:56] jenrzzz: has joined #ruby
[20:11:20] djellemah: >> ha = {dog: 1, cat: 2}; {**ha, eek: 3} # what's mwlang's altitude now?
[20:11:22] ruby[bot]: djellemah: # => {:dog=>1, :cat=>2, :eek=>3} (https://eval.in/541508)
[20:11:43] nettoweb: has joined #ruby
[20:12:07] mwlang: ACTION floored
[20:13:47] drewo: has joined #ruby
[20:14:01] eam: splatting is a throwback to perl's list context
[20:14:42] eam: in perl, list types are splatted by default
[20:15:20] blackgoat: has joined #ruby
[20:16:09] weaksauce: has joined #ruby
[20:16:19] ur5us: has joined #ruby
[20:17:56] andersbr: has joined #ruby
[20:19:35] DonOtreply: has joined #ruby
[20:20:02] drewo: has joined #ruby
[20:20:06] yqt: has joined #ruby
[20:20:17] andersbr: has joined #ruby
[20:20:40] ruby-lang400: has joined #ruby
[20:21:29] ruby-lang400: I have two int values from a MySQL recordset that I'm trying to compare using if a > b etc but am getting incositent results can anyone help?
[20:22:11] ruby-lang400: for example sometimes i get 9 > 24 is true!
[20:22:47] ascarter: has joined #ruby
[20:22:58] blandflakes: ruby-lang400: that sounds like string comparison
[20:23:11] blandflakes: what's the type of those values?
[20:23:18] halfamind: has joined #ruby
[20:23:28] kfpratt: has joined #ruby
[20:23:34] blandflakes: >> result = "9" > "24"
[20:23:35] ruby[bot]: blandflakes: # => true (https://eval.in/541514)
[20:23:46] f3ttX]: has joined #ruby
[20:23:48] ruby[bot]: ruurd: # => undefined method `isa' for 9:Fixnum ...check link for more (https://eval.in/541515)
[20:23:58] ruurd: >> 9.is_a
[20:23:59] ruby[bot]: ruurd: # => undefined method `is_a' for 9:Fixnum ...check link for more (https://eval.in/541516)
[20:24:03] Ikzi: has joined #ruby
[20:24:06] mistermocha: has joined #ruby
[20:24:16] ruby[bot]: blandflakes: # => Fixnum (https://eval.in/541517)
[20:24:30] ruurd: >> 9.is_a?
[20:24:30] andersh: has joined #ruby
[20:24:31] ruby[bot]: ruurd: # => wrong number of arguments (given 0, expected 1) (ArgumentError) ...check link for more (https://eval.in/541518)
[20:24:43] apeiros: ?experiments ruurd
[20:24:43] ruby[bot]: apeiros: I don't know anything about experiments
[20:24:47] apeiros: ?experiment ruurd
[20:24:47] ruby[bot]: ruurd: Please use your local irb or pry (see ?pry) to experiment, ruboto's eval functionality is for demonstration purposes only.
[20:25:05] ruurd: hah. malle bot
[20:25:40] Scriptonaut: has left #ruby: ()
[20:26:13] ruby-lang400: blandflakes - I set'em first with a = 0 and b= 0 then assign the MySQL values using a = valuea and b = valueb then do if a<b then...
[20:26:45] apeiros: ruby-lang400: that a=0 and b=0 is pointless
[20:26:49] smathy: ruby-lang400, right, setting them to integers first makes no difference to what you (probably) assign to them later.
[20:27:05] skade: has joined #ruby
[20:27:06] blandflakes: yup. what is the type of valuea?
[20:27:09] smathy: ruby-lang400, after doing the a = valuea do a a.class
[20:27:25] Disavowed: has joined #ruby
[20:27:35] nofxx: has joined #ruby
[20:27:38] biberu: has joined #ruby
[20:27:38] smathy: (like log, puts, view in debugger, etc)
[20:27:53] darkf: has joined #ruby
[20:28:54] ixti: has joined #ruby
[20:28:58] yfeldblum: has joined #ruby
[20:29:21] cd-rum: has joined #ruby
[20:29:50] a11: has joined #ruby
[20:31:32] crdpink2: has joined #ruby
[20:32:06] wldcordeiro: has joined #ruby
[20:32:23] ruby-lang400: blandflakes - aha a.class gives me string! I'll go read how to convert to an int - thankyou!!
[20:32:55] blandflakes: ruby-lang400: best of luck. Worth mentioning that if these are actually numbers, it may be worth revisiting the schema of your table
[20:33:26] ruby-lang400: blankflakes - the MySQL values are from Select Count() so I expected them to be ints
[20:33:45] baweaver: has joined #ruby
[20:33:50] phatypus: has joined #ruby
[20:33:50] IrishGringo: has joined #ruby
[20:33:55] blandflakes: could be a library thing - i'm not super familiar with most interfaces with mysql
[20:34:06] blandflakes: in any case, now that you have the cause, you should be able to figure it out :)
[20:35:56] Breaking_Pitt: has joined #ruby
[20:37:01] chipotle: has joined #ruby
[20:37:37] graffix: has joined #ruby
[20:37:39] smathy_: has joined #ruby
[20:37:52] Xiti: has joined #ruby
[20:39:46] Guest61911: has joined #ruby
[20:40:31] dtzuzu: has joined #ruby
[20:40:47] chrisja: has joined #ruby
[20:41:44] Maletor: has joined #ruby
[20:41:52] graffix: has left #ruby: ()
[20:42:52] a11: has joined #ruby
[20:43:03] chipotle: has joined #ruby
[20:49:15] andywojo: has joined #ruby
[20:49:16] tAn: has joined #ruby
[20:55:34] Musashi007: has joined #ruby
[20:57:03] smathy_: has joined #ruby
[21:01:42] axl_: has joined #ruby
[21:01:43] rbennacer: has joined #ruby
[21:01:51] mwlang: well, I think I found the source of my limitation on the XML parsing. appears to be coming straight from libxml2. When I use the libxml-ruby gem (which I understand nokogiri also does) and pass in the document, I immediately hit upon this error: Fatal error: internal error: Huge input lookup at :53.
[21:02:31] rbennacer: has joined #ruby
[21:03:49] skade: has joined #ruby
[21:04:54] benlieb: has joined #ruby
[21:08:12] ascarter: has joined #ruby
[21:08:33] B1n4r10: has joined #ruby
[21:10:34] stannard: has joined #ruby
[21:11:37] a11: has joined #ruby
[21:12:52] n008f4g_: has joined #ruby
[21:13:18] moeabdol4: has joined #ruby
[21:13:59] smathy: has joined #ruby
[21:14:59] ramfjord: has joined #ruby
[21:17:56] djbkd: has joined #ruby
[21:18:39] djbkd: has joined #ruby
[21:18:45] ascarter: has joined #ruby
[21:19:05] tubuliferous: has joined #ruby
[21:21:38] ivanskie: has joined #ruby
[21:23:08] Musashi007: has joined #ruby
[21:24:45] Guest61911: has joined #ruby
[21:24:54] AlexRussia: has joined #ruby
[21:27:32] bob434: has joined #ruby
[21:28:02] yfeldblum: has joined #ruby
[21:29:41] whippythellama: has joined #ruby
[21:31:55] bluOxigen_: has joined #ruby
[21:32:29] camilasan: has joined #ruby
[21:32:49] noy|b: has joined #ruby
[21:33:53] Musashi007: has joined #ruby
[21:33:54] ramfjord_: has joined #ruby
[21:34:23] chouhoulis: has joined #ruby
[21:35:38] ziyadb: has joined #ruby
[21:36:13] lomex: has joined #ruby
[21:36:29] jdawgaz: has joined #ruby
[21:36:49] tvw: has joined #ruby
[21:38:58] firstdayonthejob: has joined #ruby
[21:39:08] skade: has joined #ruby
[21:39:55] fullofcaffeine: has joined #ruby
[21:41:35] prestorium: has joined #ruby
[21:41:41] cdg: has joined #ruby
[21:43:56] elifoster: has joined #ruby
[21:44:45] mostlybadfly: has joined #ruby
[21:45:12] stunder001: has joined #ruby
[21:45:33] wldcordeiro: has joined #ruby
[21:46:01] stannard_: has joined #ruby
[21:48:15] ascarter: has joined #ruby
[21:48:45] a11: has joined #ruby
[21:53:38] gizmore: has joined #ruby
[21:54:02] diegoaguilar: has joined #ruby
[21:54:17] FooMunki: has joined #ruby
[21:56:22] SCHAAP137: has joined #ruby
[21:56:44] firstdayonthejob: has joined #ruby
[21:58:22] fevrbd: has joined #ruby
[21:58:32] Noxilex: has joined #ruby
[21:59:52] Musashi007: has joined #ruby
[22:00:12] Breaking_Pitt: has joined #ruby
[22:00:39] DrCode: has joined #ruby
[22:01:26] baweaver: has joined #ruby
[22:03:51] solars: has joined #ruby
[22:04:00] jenrzzz_: has joined #ruby
[22:05:09] stannard: has joined #ruby
[22:06:06] Breaking_Pitt: has joined #ruby
[22:08:48] idefine_: has joined #ruby
[22:09:02] finisherr: has joined #ruby
[22:10:43] choke: has joined #ruby
[22:13:05] djbkd: has joined #ruby
[22:13:10] tubuliferous: has joined #ruby
[22:19:05] benlieb: has joined #ruby
[22:20:17] idefine: has joined #ruby
[22:20:26] huddy: has joined #ruby
[22:22:49] Breaking_Pitt: has joined #ruby
[22:22:52] Polysics: has joined #ruby
[22:23:08] Musashi007: has joined #ruby
[22:23:45] ascarter: has joined #ruby
[22:24:30] noy|b: has left #ruby: ("Leaving")
[22:26:45] fullofca_: has joined #ruby
[22:27:28] lannonbr: has joined #ruby
[22:28:21] nando293921: has joined #ruby
[22:28:32] drewo: has joined #ruby
[22:28:53] choke: has joined #ruby
[22:30:26] ascarter: has joined #ruby
[22:31:34] idefine: has joined #ruby
[22:32:45] baweaver: has joined #ruby
[22:32:49] tAn: has joined #ruby
[22:33:40] rbennacer: has joined #ruby
[22:33:49] ascarter: has joined #ruby
[22:33:50] jenrzzz: has joined #ruby
[22:33:50] jenrzzz: has joined #ruby
[22:34:15] bricker: has joined #ruby
[22:34:24] mistermocha: has joined #ruby
[22:34:34] moeabdol: has joined #ruby
[22:34:38] jottr_: has joined #ruby
[22:35:01] htmldrum: has joined #ruby
[22:35:01] htmldrum_: has joined #ruby
[22:35:03] chouhoulis: has joined #ruby
[22:35:16] LoneHerm_: has joined #ruby
[22:35:53] wethu: has joined #ruby
[22:38:55] dfockler: has joined #ruby
[22:39:36] idefine_: has joined #ruby
[22:40:12] Suntzu: has joined #ruby
[22:40:20] zenlot: has joined #ruby
[22:40:50] tubuliferous: has joined #ruby
[22:41:32] nocontrol: has joined #ruby
[22:42:35] blackmesa: has joined #ruby
[22:45:26] idefine: has joined #ruby
[22:45:33] htmldrum: has joined #ruby
[22:45:34] htmldrum_: has joined #ruby
[22:45:35] diegoaguilar: has joined #ruby
[22:46:25] stannard: has joined #ruby
[22:46:56] rkazak: has joined #ruby
[22:48:52] aeterne: has joined #ruby
[22:49:13] axl_: has joined #ruby
[22:49:19] Es0teric: has joined #ruby
[22:49:33] jgpawletko: has joined #ruby
[22:54:55] Breaking_Pitt: has joined #ruby
[22:55:07] fullofcaffeine: has joined #ruby
[22:55:40] moei: has joined #ruby
[22:58:59] intrigueD: has joined #ruby
[23:00:14] uglybandersnatch: has joined #ruby
[23:02:45] halfamind: has joined #ruby
[23:03:21] jjturner: has joined #ruby
[23:04:22] Don_John: has joined #ruby
[23:04:43] floatingpoint: has joined #ruby
[23:04:44] axl_: has joined #ruby
[23:04:52] kies: has joined #ruby
[23:05:38] edwinvdgraaf: has joined #ruby
[23:08:22] znz_jp: has joined #ruby
[23:09:39] rbennacer: has joined #ruby
[23:11:06] Uber|Dragon: has joined #ruby
[23:11:20] epochwolf: has joined #ruby
[23:11:36] cschneid_: has joined #ruby
[23:11:53] borkdude: has joined #ruby
[23:11:55] mary5030: has joined #ruby
[23:12:52] Radar: Code golf time: is there a shorter way of checking if all the values in a hash are nil? than: values.flatten.none?
[23:13:08] Radar: oh, maybe values.all(&:nil?)
[23:14:11] Radar: With a question mark on the all, of courser
[23:15:15] JoshGlzBrk: has joined #ruby
[23:16:24] darix: Radar: select {|k,v| !v.nil? }.empty?
[23:16:47] Radar: darix: It's not shorter.
[23:17:08] Radar: Not shorter than values.all?(&:nil?) anyway
[23:17:33] Maletor: has joined #ruby
[23:18:18] baweaver: has joined #ruby
[23:19:05] jokke: has joined #ruby
[23:19:13] jdawgaz: has joined #ruby
[23:20:37] darix: Radar: .all?{|k,v| v.nil? }
[23:21:06] Radar: darix: Please look up "Code Golf" on Google.
[23:21:11] Radar: darix: Your solution is 20 characters, mine is 19.
[23:21:28] choke: has joined #ruby
[23:21:40] Radar: Even with the spaces removed, it's only 18 characters and I'm not going for most ugly.
[23:21:45] Radar: I want the shortest, most legible example.
[23:22:01] darix: actually if you take out the space also 19
[23:22:07] darix: a.all?{|k,v|v.nil?}
[23:22:11] jottr: has joined #ruby
[23:22:23] darix: readability-- though
[23:22:48] silentpost: has joined #ruby
[23:23:27] smathy: none?{|k,v|v}
[23:23:55] Radar: gg smathy
[23:25:42] smathy: none? &:last
[23:26:25] Radar: Too golfy :P
[23:26:42] smathy: "Code golf time"
[23:27:22] ytti: so you ask specifically golf solution
[23:27:23] postmodern: has joined #ruby
[23:27:29] Radar: Oh hey pedants what's up
[23:27:33] Radar: [10:21:45] <Radar> I want the shortest, most legible example.
[23:27:37] ytti: then say every solution that is nto yours, is not acceptable
[23:27:49] Radar: Pedants gonna pedant.
[23:27:53] Breaking_Pitt: has joined #ruby
[23:27:59] wldcordeiro: has joined #ruby
[23:28:37] shevy: all of that is still way too long!
[23:28:51] smathy: Prove it.
[23:30:07] smathy: The real pedant in me would reject mine because it would also be true for v == false
[23:31:23] millerti: has joined #ruby
[23:32:33] blandflakes: has joined #ruby
[23:33:34] idefine: has joined #ruby
[23:34:19] stannard: has joined #ruby
[23:35:34] chouhoulis: has joined #ruby
[23:35:50] n008f4g_: has joined #ruby
[23:37:11] Musashi007: has joined #ruby
[23:37:31] choke: has joined #ruby
[23:37:54] baweaver: has joined #ruby
[23:38:58] intrigueD: has joined #ruby
[23:40:31] Breaking_Pitt: has joined #ruby
[23:41:36] idefine: has joined #ruby
[23:42:46] TheGreatGudsby: has joined #ruby
[23:42:50] nando293921: has joined #ruby
[23:43:05] devbug: has joined #ruby
[23:44:06] DLSteve: has joined #ruby
[23:44:44] Gasher: has joined #ruby
[23:46:00] hotpancakes: has joined #ruby
[23:46:22] xlegoman: has joined #ruby
[23:46:32] uglybandersnatch: has joined #ruby
[23:46:51] toretore: has joined #ruby
[23:46:59] justinweiss: has joined #ruby
[23:51:32] wldcordeiro: has joined #ruby
[23:51:58] Vile`: has joined #ruby
[23:51:59] zacts: has joined #ruby
[23:52:03] jeffreylevesque: has joined #ruby
[23:52:08] jeffreylevesque: what's the syntax to install a gem package at a specific package version
[23:52:09] jeffreylevesque: for example, `gem install scss_lint==XX.xx.yy`?
[23:52:49] Breaking_Pitt: has joined #ruby
[23:53:12] havenwood: jeffreylevesque: -v, --version VERSION Specify version of gem to install
[23:54:16] a11: has joined #ruby
[23:54:19] havenwood: jeffreylevesque: Like: gem install hola -v 0.0.1
[23:54:27] jeffreylevesque: thank you :) :)
[23:54:46] havenwood: jeffreylevesque: No prob, for more flags see: gem help install
[23:56:57] Ropeney: has joined #ruby
[23:57:19] mykeura: has joined #ruby
[23:57:36] chipotle: has joined #ruby
[23:59:30] mykeura: Hola, alguien ha podido instalar "rvm" o "rbenv" en Arch Linux?
[23:59:42] shevy: the toplevel namespace, does any of you have some estimate if people are more likely to have it a module or class? module Foobar versus class Foobar? Which one is more likely?
[23:59:50] cdg: has joined #ruby