« Back to channel list

#ruby - 12 June 2015

« Back 1 day Forward 1 day »
[00:00:35] ramfjord: has joined #ruby
[00:03:19] Axsuul: has joined #ruby
[00:03:41] mrmargolis: has joined #ruby
[00:03:57] HotCoder: has joined #ruby
[00:05:39] autrilla_: has joined #ruby
[00:06:01] vikaton: has joined #ruby
[00:06:14] intinig: has joined #ruby
[00:06:31] balazs: has joined #ruby
[00:08:08] autrilla_: has joined #ruby
[00:08:17] drewo: has joined #ruby
[00:09:51] dgutierrez1287: has joined #ruby
[00:10:09] nikhgupta: has joined #ruby
[00:11:04] autrilla: has joined #ruby
[00:11:59] rickmasta: has joined #ruby
[00:13:47] luckyme: has joined #ruby
[00:15:50] intinig: has joined #ruby
[00:17:31] tkuchiki: has joined #ruby
[00:21:44] michaeldeol: has joined #ruby
[00:21:55] havenwood: has joined #ruby
[00:23:51] simplyianm: has joined #ruby
[00:26:10] MatthewsFace: has joined #ruby
[00:29:55] Channel6: has joined #ruby
[00:31:25] bronson: has joined #ruby
[00:32:08] keen___: has joined #ruby
[00:32:23] Befine: has joined #ruby
[00:32:47] NeverDie: has joined #ruby
[00:33:03] swgillespie: has joined #ruby
[00:33:07] apofis: has joined #ruby
[00:34:40] nobitanobi: has joined #ruby
[00:35:23] robustus|Off: has joined #ruby
[00:35:42] krisquigley: has joined #ruby
[00:36:43] wallerdev: has joined #ruby
[00:37:03] nikhgupta: has joined #ruby
[00:38:42] nonparfumee: has joined #ruby
[00:39:40] dj-amel: has joined #ruby
[00:39:51] ramfjord: has joined #ruby
[00:41:01] kobain: has joined #ruby
[00:42:11] bmurt: has joined #ruby
[00:42:29] scottschecter: has joined #ruby
[00:43:31] nikhgupta: has joined #ruby
[00:44:21] fgo: has joined #ruby
[00:45:29] nikhgupta: has joined #ruby
[00:45:43] joaomdmoura: has joined #ruby
[00:46:03] simplyianm: has joined #ruby
[00:51:18] asteros: has joined #ruby
[00:53:27] x1337807x: has joined #ruby
[00:54:47] bin_005: has joined #ruby
[00:56:12] balazs: has joined #ruby
[00:59:31] jschoolcraft: has joined #ruby
[00:59:32] zotherstupidguy: has joined #ruby
[01:01:33] x1337807x: has joined #ruby
[01:02:55] drocsid: has joined #ruby
[01:03:51] CyborgCygnus: has joined #ruby
[01:06:00] chipotle: has joined #ruby
[01:06:01] aspiers: has joined #ruby
[01:10:06] Filete: has joined #ruby
[01:10:11] Yiota: has joined #ruby
[01:11:58] aphprentice: has joined #ruby
[01:12:56] CyborgCygnus: has joined #ruby
[01:14:10] jpfuentes2: has joined #ruby
[01:15:05] mkosaki: has joined #ruby
[01:18:50] _seanc_: has joined #ruby
[01:20:45] scottschecter: has joined #ruby
[01:23:19] hakunin: has joined #ruby
[01:23:33] hahuang65: has joined #ruby
[01:24:29] railsraider: has joined #ruby
[01:24:45] pwattstbd: has joined #ruby
[01:25:24] CyborgCygnus: has joined #ruby
[01:25:33] j4cknewt: has joined #ruby
[01:27:15] lfox: has joined #ruby
[01:28:14] blackmesa: has joined #ruby
[01:29:48] auzty: has joined #ruby
[01:29:59] x1337807x: has joined #ruby
[01:30:47] tsvenson: has joined #ruby
[01:33:53] Yiota: has joined #ruby
[01:34:22] bronson: has joined #ruby
[01:36:56] workmad3: has joined #ruby
[01:37:30] unreal_: has joined #ruby
[01:39:39] dgutierrez1287: has joined #ruby
[01:41:29] sdothum: has joined #ruby
[01:42:35] nikhgupta`: has joined #ruby
[01:42:51] arthurcolle: has joined #ruby
[01:43:02] sharpmachine: has joined #ruby
[01:43:07] arthurcolle: What are the coolest methods in the ruby standard lib?
[01:43:27] eam: arthurcolle: #freeze
[01:43:30] nikhgupta`: `lambda` & `proc`
[01:44:14] arthurcolle: the #elixir channel has a cool bot that runs code, do they have that here?
[01:45:06] ruboto: mozzarella # => "yes" (https://eval.in/380260)
[01:45:09] hakunin: has joined #ruby
[01:47:34] Aeyrix: Ugh come on Cavs
[01:47:37] arthurcolle: >> lambda{puts "test"}.()
[01:47:38] ruboto: arthurcolle # => test ...check link for more (https://eval.in/380261)
[01:47:38] Aeyrix: baweaver: Do you into basketball?
[01:47:53] dfockler: has joined #ruby
[01:48:14] baweaver: I'm pretty well anti-sport-watching in general
[01:48:20] nikhgupta`: >> (1..5).times.inject(0,:+)
[01:48:21] ruboto: nikhgupta` # => undefined method `times' for 1..5:Range (NoMethodError) ...check link for more (https://eval.in/380262)
[01:48:34] dgutierrez1287: has joined #ruby
[01:48:39] Aeyrix: baweaver: ;_;
[01:48:42] unreal: has joined #ruby
[01:48:44] unreal: has joined #ruby
[01:49:19] baweaver: >> (1..5).reduce(0, :+) # nikhgupta`
[01:49:20] ruboto: baweaver # => 15 (https://eval.in/380263)
[01:49:22] nikhgupta`: >> 1.upto(5).inject(0,:+)
[01:49:23] ruboto: nikhgupta` # => 15 (https://eval.in/380264)
[01:49:56] nikhgupta`: `reduce`. nice :) ty for the nit-pick :)
[01:50:09] baweaver: Preference from Haskell / JS
[01:52:29] chipotle: has joined #ruby
[01:52:48] jphenow: has joined #ruby
[01:53:10] tkuchiki: has joined #ruby
[01:53:34] x1337807x: has joined #ruby
[01:56:35] commondream: has joined #ruby
[02:01:53] zotherstupidguy: has joined #ruby
[02:02:54] Oog: has joined #ruby
[02:04:28] CyborgCygnus: has joined #ruby
[02:05:39] tenderlo_: has joined #ruby
[02:07:11] powersurge: has joined #ruby
[02:07:16] powersurge: has left #ruby: ("WeeChat 0.4.3")
[02:07:40] nikhgupta: has joined #ruby
[02:08:56] znz_jp: has joined #ruby
[02:10:40] Ox0dea: The origin of `inject`: http://genius.com/2519068
[02:11:07] Ox0dea: It's still not very sensible, but I was happy to finally have that mystery cleared up the other day.
[02:11:12] ramfjord: has joined #ruby
[02:11:57] freerobby: has joined #ruby
[02:17:22] avahey: has joined #ruby
[02:17:23] darkf: has joined #ruby
[02:20:13] finisherr: has joined #ruby
[02:20:47] cnngimenez: has joined #ruby
[02:23:16] RegulationD: has joined #ruby
[02:23:26] lessless: has joined #ruby
[02:24:35] krisquigley: has joined #ruby
[02:24:49] konsolebox: has joined #ruby
[02:28:56] Musashi007: has joined #ruby
[02:29:14] swgillespie: has joined #ruby
[02:31:19] cj: okay, I just changed a bunch of node['ipr_portal']['foo'] to node['default']['ipr_portal']['foo'] and similar. Is there anything wrong with that syntax change?
[02:31:28] swgillespie: has joined #ruby
[02:31:40] bgmarx: has joined #ruby
[02:32:37] lele: has joined #ruby
[02:33:02] sharpmachine: has joined #ruby
[02:33:59] bruno-: has joined #ruby
[02:35:48] jpfuentes2: has joined #ruby
[02:36:51] axsuul_: has joined #ruby
[02:37:45] dgutierrez1287: has joined #ruby
[02:38:58] arthurcolle: has joined #ruby
[02:39:24] hakunin: has joined #ruby
[02:40:59] bronson: has joined #ruby
[02:41:51] Ox0dea: cj: %w[default ipr_portal foo].reduce(node, :[]) is another option.
[02:42:51] Ox0dea: Of course, it's only really useful if the keys and/or access depth are dynamic values.
[02:44:55] sdothum: has joined #ruby
[02:45:57] CloCkWeRX: has joined #ruby
[02:48:06] ramfjord: does anyone have an idea how to do what I'm trying to do here
[02:48:12] ramfjord: https://gist.github.com/ramfjord/dea2fcf7eeab15eb8357
[02:48:29] ramfjord: basically I would like to define class getter/setter methods when a module is included
[02:49:20] mike___1234: has joined #ruby
[02:49:49] djbkd: has joined #ruby
[02:49:59] ramfjord: really I'd just like to have class X include the module, call `set_var 3` in X's definition, and have var accessible as an instance method on any X
[02:50:09] zotherstupidguy: has joined #ruby
[02:50:24] jack_rabbit: has joined #ruby
[02:50:33] michael_mbp: has joined #ruby
[02:50:34] rkazak: has joined #ruby
[02:53:17] Ox0dea: ramfjord: Why an instance method?
[02:53:58] zenguy_pc: has joined #ruby
[02:54:14] bogdanteleaga: has joined #ruby
[02:54:24] duderonomy: has joined #ruby
[02:54:49] ramfjord: nm, I'm dumb - I just had the self.included in the ClassMethods module
[02:55:07] ramfjord: not necessarily an instance method - it just needs to be available to an instance
[02:55:17] ramfjord: (instead of in the Test module)
[02:55:32] Ox0dea: You don't need to specify ClassMethods there; self will suffice.
[02:56:33] ramfjord: well, it should be that when Test is included the class including it also extends ClassMethods
[02:56:52] jamesaxl: has joined #ruby
[02:58:46] chouhoulis: has joined #ruby
[02:58:57] veduardo: has joined #ruby
[02:59:08] bb010g: has joined #ruby
[02:59:31] sdothum: has joined #ruby
[03:03:11] djbkd: has joined #ruby
[03:03:54] drocsid: has joined #ruby
[03:06:42] baweaver: has joined #ruby
[03:07:29] datanoise: has joined #ruby
[03:09:23] joaomdmoura_: has joined #ruby
[03:09:28] CalvinnHobbes: has joined #ruby
[03:09:43] rbowlby: has joined #ruby
[03:09:53] dented42: has joined #ruby
[03:10:33] braincrash: has joined #ruby
[03:10:37] nikhgupta: has joined #ruby
[03:11:12] baweaver: has joined #ruby
[03:11:54] nikhgupta: has joined #ruby
[03:13:30] iBloodLust: has joined #ruby
[03:14:00] iBloodLust: how does byte manipulation work in ruby?
[03:14:09] iBloodLust: i want to have a variable that can store up to 2 bytes
[03:15:30] Ox0dea: has joined #ruby
[03:16:23] Ox0dea: iBloodLust: That's almost never how things are done in Ruby.
[03:16:41] Ox0dea: Ruby's integers are of arbitrary precision and grow and shrink automatically as necessary.
[03:16:51] Eiam: has joined #ruby
[03:17:38] Scripore: has joined #ruby
[03:17:54] eggoez: has joined #ruby
[03:18:54] Yzguy: has joined #ruby
[03:19:02] mfranzwa: has joined #ruby
[03:19:24] duderonomy: iBloodLust: Can you break down the essence of the problem or goal with the bytes? Are you seeking bit field for storage?
[03:20:52] balazs: has joined #ruby
[03:22:21] iBloodLust: nothing, just that i want to get into emulating. i know its recommended that i do this in c or c++
[03:22:35] blue_deref: has joined #ruby
[03:22:36] baweaver: recommended nothing
[03:22:43] Eiam: has joined #ruby
[03:22:46] baweaver: ruby is a bad idea for this
[03:22:46] Bulat: has joined #ruby
[03:23:15] Ox0dea: Still, you can access an integer's individual bits with Numeric#[] should the need ever truly arise.
[03:23:27] Ox0dea: >> [6[0], 6[1], 6[2]]
[03:23:28] ruboto: Ox0dea # => [0, 1, 1] (https://eval.in/380268)
[03:23:38] allomov: has joined #ruby
[03:24:35] Ox0dea: Also, [min, x, max].sort[1] is a pretty handy approach to clamping.
[03:24:47] arup_r: has joined #ruby
[03:25:43] workmad3: has joined #ruby
[03:26:08] someword: has joined #ruby
[03:27:11] iBloodLust: http://hulkholden.github.io/n64js/
[03:27:48] iBloodLust: sort of what gave me the idea to even attempt to get into emulating in ruby
[03:28:05] Ox0dea: iBloodLust: JavaScript is a lot faster than Ruby. :/
[03:28:54] Eiam: has joined #ruby
[03:29:07] iBloodLust: any benchmarks? i dont know one thing about javascript, but i guess you can say i dont know alot about ruby either
[03:29:25] yfeldblum: has joined #ruby
[03:29:53] pontiki: has joined #ruby
[03:30:16] Ox0dea: iBloodLust: http://benchmarksgame.alioth.debian.org/u64/compare.php?lang=v8&lang2=yarv
[03:31:57] simplyianm: has joined #ruby
[03:35:32] Ox0dea: Aeyrix: Remember McGrady's 13-in-30?
[03:35:46] Aeyrix: Ox0dea: ?
[03:36:07] Ox0dea: What are you, twelve? It was the greatest scoring performance in modern NBA history.
[03:36:19] Aeyrix: I'm thinking about a lot of things at once, sorry.
[03:36:25] GnuYawk: has joined #ruby
[03:36:48] Ox0dea: Apologies for troubling you, then.
[03:36:49] iBloodLust: wow ruby is pretty slow compared to javascript,were other ruby implementations tested? are the other implementation such as mruby and rubinius even faster than ruby mri?
[03:36:52] Ox0dea: Warriors in six, though.
[03:37:11] Aeyrix: Ox0dea: Get out.
[03:37:18] Aeyrix: Cavs in 6, there's always this year.
[03:37:37] Ox0dea: > mfw cavs = champs
[03:37:42] cnngimenez: iBloodLust: really? is that slow? :-/
[03:37:44] Cache_Money: has joined #ruby
[03:37:59] Aeyrix: Ox0dea: mfw Irving is busy healing from gettin rekt
[03:38:16] cnngimenez: iBloodLust: Are you trying the Ruby interpreter from the ruby-lang.org page?
[03:38:36] iBloodLust: 2.1.2 to be exact
[03:39:01] cnngimenez: on GNU/Linux, right?
[03:39:06] Aeyrix: GNU/Freedom.
[03:39:21] Aeyrix: I'm using GNU/OS X.
[03:39:28] Aeyrix: Means I can't get viruses.
[03:39:45] Aeyrix: Ox0dea: Got a home team?
[03:40:09] cnngimenez: that's odd... JS faster than Ruby... Maybe I can do some tests...
[03:40:26] Ox0dea: Aeyrix: Not particularly anymore, but I'd like to see Curry get his.
[03:40:27] Aeyrix: of course JS is faster.
[03:40:33] victomina: has joined #ruby
[03:40:47] cnngimenez: but, I cannot compare against the language itself... I hate programming in JS!
[03:40:52] iBloodLust: im using gnu/linuxc
[03:41:03] Ox0dea: cnngimenez: Why?
[03:41:03] mike___1234: has joined #ruby
[03:41:07] Aeyrix: The JS interpreters are worked on incessantly because they're build into web browsers.
[03:41:21] jphenow: has joined #ruby
[03:41:24] Aeyrix: They have literally the *top* minds in language VMs working on them.
[03:41:25] ramfjord: has joined #ruby
[03:41:45] Aeyrix: Ox0dea: muh cavs
[03:41:48] cnngimenez: I don't know...
[03:41:50] Aeyrix: Celtics disappointed me too much.
[03:42:27] cnngimenez: Ox0dea: I think its syntax and that thing of globals variables everywhere... Ruby implements visibility a bit better :-P
[03:42:41] Ox0dea: cnngimenez: You are ill-informed.
[03:43:00] bgmarx: has joined #ruby
[03:43:06] cnngimenez: I hope... I have only used JS on Web only
[03:43:25] cnngimenez: And also CoffeeScript...
[03:43:36] Jarboe: has joined #ruby
[03:45:11] Ox0dea: Aeyrix: Looks like your boy won't be pulling an Oscar Robertson this series.
[03:45:17] Ox0dea: I would've liked to see that, to be honest.
[03:45:24] Aeyrix: From his hospital bed?
[03:45:36] Ox0dea: I meant LeBron averaging a triple.
[03:45:44] Aeyrix: Current score is making me upset.
[03:45:50] Aeyrix: GSW 100 : 79 CLE
[03:46:16] Ox0dea: Spoiler alert: it's 102-81 here.
[03:46:29] cnngimenez: have to go! :-) bye! :-)
[03:46:37] Aeyrix: Today is just not my day, tbh.
[03:47:52] iBloodLust: why do people use C# over other great languages
[03:48:02] iBloodLust: delphi is one
[03:48:55] Channel6: has joined #ruby
[03:49:39] iBloodLust: but .net libs is expensive in a way
[03:50:59] freerobby: has joined #ruby
[03:51:48] ledestin: has joined #ruby
[03:52:02] gix: has joined #ruby
[03:53:04] Oog: has joined #ruby
[03:53:42] aytch: has joined #ruby
[03:54:32] whoami: has joined #ruby
[03:54:36] theery: has joined #ruby
[03:55:05] bin_005: has joined #ruby
[03:55:34] Paradox: has joined #ruby
[03:55:36] bosma: Anyone get ZeroMQ / Ruby on Windows?
[03:56:19] scottstamp: has joined #ruby
[03:56:55] WildBamboo-Josh: has joined #ruby
[03:57:33] Aeyrix: Ox0dea: idk what happened to LeBron that game.
[03:57:56] scottstamp: has joined #ruby
[03:58:12] RickHull: did he crack 50% in free throw pctg?
[03:58:28] arthurcolle: ruby on windows is a real nightmare
[03:59:21] bosma: lots of things are
[03:59:27] Ox0dea: Aeyrix: I wonder if his uncharacteristically scrub-tacular performance had anything to do with him learning that he accidentally whipped his penis out on live television.
[03:59:36] Aeyrix: Ox0dea: lmao
[03:59:40] Aeyrix: He was already doing avg though.
[04:00:02] bosma: I'd just like to pass messages from my C# application to my ruby IRC bot.
[04:00:04] Ox0dea: Either way, the mojo got out and he never recovered it.
[04:00:04] bosma: any ideas?
[04:00:17] Oog: has joined #ruby
[04:00:17] Aeyrix: Hopefully we get a recovery for next game.
[04:00:27] Aeyrix: bosma: Unix sockets.
[04:01:54] RickHull: i blame the leg rub guy
[04:03:02] fedexo: has joined #ruby
[04:03:51] bantic: has joined #ruby
[04:05:15] aaeron: has joined #ruby
[04:05:25] rickmasta: has joined #ruby
[04:06:09] houhoulis: has joined #ruby
[04:06:18] pepperbreath: has joined #ruby
[04:06:30] gambl0re: has joined #ruby
[04:07:01] aaeron1: has joined #ruby
[04:07:21] nobitanobi: has joined #ruby
[04:07:40] RickHull: if it sounds like I'm gloating, it's because I'm gloating xD
[04:08:22] baweaver: has joined #ruby
[04:12:39] RobertBirnie: has joined #ruby
[04:13:38] krisquigley: has joined #ruby
[04:16:06] braincra-: has joined #ruby
[04:16:23] victomina: has joined #ruby
[04:19:16] ajaiswal: any help, i need first three blocks only, can't figure out the regex https://gist.github.com/anonymous/db4433d785df2878f2ef
[04:19:39] ajaiswal: like "role::appeng::tomcat"
[04:20:31] gianlucadv: has joined #ruby
[04:20:43] RickHull: doesn't look like ruby
[04:20:48] Ox0dea: ajaiswal: Why not foo.split('::')[0, 3]?
[04:22:17] ajaiswal: Ox0dea: hmm it converts it into array.. i would like it to be string
[04:22:26] RickHull: >> "role::appeng::tomcat::foo".split('::')[0, 3].join('::')
[04:22:27] ruboto: RickHull # => "role::appeng::tomcat" (https://eval.in/380271)
[04:22:27] ajaiswal: ["role", "webframeworks", "wordpress"]
[04:22:56] ajaiswal: ruboto: you are the hero :)
[04:23:03] bruno-: has joined #ruby
[04:23:06] Ox0dea: ruboto: Nice!
[04:23:06] RickHull: ruboto: botsnack
[04:23:59] Ox0dea: ajaiswal: For what it's worth, the Regexp would be as simple as /\w+::\w+::\w+/, and you might consider using it if you're sure you only need the first three components.
[04:24:41] Befine: Radar: ping
[04:24:43] ajaiswal: yep. i need only first three block.
[04:24:53] ajaiswal: Ox0dea: thanks
[04:24:57] Ox0dea: Sure thing.
[04:25:08] simplyianm: has joined #ruby
[04:26:58] skade: has joined #ruby
[04:30:50] Aeyrix: Just overheard "meme" being pronounced as "me me".
[04:31:03] i: has joined #ruby
[04:31:39] finisherr: has joined #ruby
[04:32:25] Befine: Is Ruby/Rails even worth learning now when Elixir/Phoenix is out. If it's not for job but for web development itself.
[04:32:32] shevy: Aeyrix lol
[04:32:34] munen: has joined #ruby
[04:32:51] RickHull: Befine: sure. just for ecosystem
[04:34:17] Ox0dea: gem install ecosystem
[04:34:29] M-Technic: has joined #ruby
[04:34:41] RickHull: # this boils the ocean
[04:34:45] Befine: Ox0dea: There is similar things in Elixir/Phoenix.
[04:34:53] Spami: has joined #ruby
[04:34:54] rbowlby: has joined #ruby
[04:35:02] Aeyrix: *shrugs*S
[04:35:16] Aeyrix: Elixir isn't the mass migration of Ruby users.
[04:35:26] Aeyrix: I personally can't get over some of the syntax quirks.
[04:35:37] Ox0dea: It's not like Crystal is gonna take off.
[04:35:51] RickHull: i like Elixir better than Ruby at this point, but I don't see the Elixir stack taking over anytime soon
[04:35:58] havenwood: has joined #ruby
[04:36:05] Ox0dea: RickHull: Why?
[04:36:16] Aeyrix: Convenience of interpreted languages.
[04:36:18] RickHull: i've drifted away from OOP towards FP
[04:36:20] dseitz: has joined #ruby
[04:36:26] growlove: has joined #ruby
[04:36:26] Ox0dea: Ruby is pretty FP.
[04:36:31] Befine: Aeyrix: The syntax is very easy lol.
[04:36:32] RickHull: most of my ruby these days looks more like FP than OOP
[04:36:33] Aeyrix: Ox0dea: wat
[04:36:38] Aeyrix: Ruby is the purest OO you can get.
[04:36:47] Aeyrix: Literally everything is an object.
[04:36:50] Befine: Aeyrix: You are not a progrmmer, are you?
[04:36:54] Ox0dea: And yet we #map and #reduce all day.
[04:37:01] Aeyrix: Befine: No, I'm a security consultant.
[04:37:11] Aeyrix: Ox0dea: You might.
[04:37:11] RickHull: Ox0dea: yeah, basically i've drifted towards FP-style approaches in my ruby, and Elixir is the natural continuation, with some nice guarantees that fall out of sticking to FP
[04:37:14] RickHull: which ruby doesn't offer
[04:37:18] rdavila: has joined #ruby
[04:37:21] Befine: Aeyrix: I could figure it out from 3-4 sentence you said.
[04:37:33] Aeyrix: Befine: That's a pretty cool story.
[04:37:35] dented42: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[04:37:46] Aeyrix: Ox0dea: So uh, what is Crystal?
[04:37:51] Aeyrix: It looks exactly like Ruby.
[04:37:59] Aeyrix: Oh it's compiled Ruby basically.
[04:38:18] Aeyrix: haha i remember when I had problems with ruby's `|x|` syntax.
[04:38:45] Befine: Aeyrix: Not familiar with lambdas?
[04:39:04] Befine: Back then when you were learning Ruby.
[04:39:14] RickHull: sheepdas > lambdas
[04:39:15] Radar: Befine: Not here. At Railscamp.
[04:39:40] Ox0dea: I prefer to to_proc my stabby lambdas instead of using blocks.
[04:39:46] Ox0dea: >> [1, 2, 3].map &-> x { x + 1 }
[04:39:47] ruboto: Ox0dea # => [2, 3, 4] (https://eval.in/380277)
[04:39:52] Radar: Befine: Yes it's worth learning because Ruby/Rails has a much more mature ecosystem.
[04:40:33] RickHull: that said, if you find Elixir exciting, then you should probably start with Phoenix rather than Rails
[04:40:40] RickHull: but Rails is definitely "worth" learning
[04:40:51] RickHull: though even in Ruby I'd start with Sinatra first
[04:40:52] Befine: I love Elixir.
[04:41:03] Ox0dea: Befine: Whatcha doin' here?
[04:41:26] Befine: Ox0dea: What?
[04:41:38] RickHull: being judgmental and kindling flamewars
[04:42:03] towski_: has joined #ruby
[04:42:05] Befine: Radar: Alright great, because I have your book right here waiting.
[04:42:32] Radar: It's *all* worth learning.
[04:42:52] Ox0dea: LOLCODE might not be worth learning.
[04:43:08] RegulationD: has joined #ruby
[04:43:17] Befine: Radar: Do you see Phoenix replacing your Rails projects in the future or will you be using both?
[04:43:32] Radar: Not sure yet. I am still a Rails programmer :)
[04:44:31] RickHull: Visual Basic is not worth learning. there, i said it
[04:44:58] Befine: RickHull: I'm an experience programmer, not an experienced web programmer tho. :)
[04:45:30] Befine: RickHull: You can't start a way by saying VB is not worth learning, because everyone knows that's true heh
[04:45:43] Befine: r/way/war
[04:45:59] justintv90: has joined #ruby
[04:46:09] Ox0dea: Befine: How many NAND gates does it take to invert a binary tree?
[04:46:12] RickHull: bbbbut it's visual. you just drag and drop and the tooling does all the hard stuff like thinking for you
[04:46:47] justintv90: has joined #ruby
[04:46:56] RickHull: NAND gates can't melt steel beams
[04:47:01] Befine: Ox0dea: What's the time complexity of an insert/delete in a segmented contiguous array?
[04:47:27] mooe: has joined #ruby
[04:47:28] Ox0dea: "Depends on the size of the chair."
[04:47:43] Ox0dea: > segmented contiguous
[04:47:47] Ox0dea: I thought we were being silly.
[04:47:51] paradisaeidae: has joined #ruby
[04:50:26] araujo: has joined #ruby
[04:50:40] Musashi007: has joined #ruby
[04:51:09] Aeyrix: Ox0dea: I think that's a markov chain bot.
[04:51:20] Aeyrix: Also ffs Radar
[04:51:26] Aeyrix: I buy your book and you start evangelising another language.
[04:51:31] Aeyrix: Next book purchase better be on you.
[04:51:38] Aeyrix: Wow that was easy.
[04:51:45] RickHull: just write a book and make Radar buy it
[04:51:52] Aeyrix: I have nothing interesting to say.
[04:52:01] RickHull: i find that hard to believe
[04:52:24] RickHull: not because it's false, mind you
[04:52:27] Aeyrix: Anything interesting has already all been said by someone probably better at it. :P
[04:53:26] Aeyrix: Radar: Did you ever look at Haskell??
[04:53:44] Radar: Aeyrix: The category of the monoid endfunctors put me off tbh
[04:55:13] x1337807x: has joined #ruby
[04:55:19] Ox0dea: Aeyrix: Do you even liftM?
[04:55:29] dgutierrez1287: has joined #ruby
[04:55:32] Ox0dea: Well, there's your burrito.
[04:55:47] Deele: has joined #ruby
[04:57:25] Aeyrix: "The booleans true and false are, in fact, atoms"
[04:57:58] RickHull: sure, but what about those of us doing fictional programming?
[04:58:13] revath: has joined #ruby
[04:58:14] RickHull: what are true and false in fiction?
[04:58:20] Ox0dea: Stranger than.
[04:58:48] RickHull: i'm adding fictional programming to my CV
[04:59:02] RickHull: also noting that i'm really good at it
[04:59:18] Ox0dea: Does a language not cease to be fictional the first time it's used?
[04:59:35] RickHull: only if it falls in the forest
[05:00:09] nobitanobi: has joined #ruby
[05:01:08] commondream: has joined #ruby
[05:01:36] Befine: Aeyrix: Do you even know what booleans really are behind the scene? Just because you are used to one way, doesn't mean it's the right way.
[05:01:58] RickHull: do you even binary?
[05:02:03] Aeyrix: Befine: I'd appreciate you not talking to me.
[05:02:12] Aeyrix: Half of the things you've said to me don't really make any sense or are completely irrelevant.
[05:02:53] Befine: RickHull: No joke, we had to do binary in a hedge fund I was working on few years back
[05:03:07] Ox0dea: > do binary
[05:03:31] Befine: Ox0dea: Do you even bitfields?
[05:03:51] rht: has joined #ruby
[05:03:51] Ox0dea: They are almost never worth the while, but sure.
[05:04:04] Befine: What did I just hear.
[05:04:09] RickHull: i keep asking the sales girls if they do binary but i only get puzzled looks
[05:05:21] Befine: Aeyrix: Would you like som bread with the whine?
[05:07:36] rickmasta: has joined #ruby
[05:07:50] theery: has joined #ruby
[05:09:35] shevy: and then the mandatory spanking
[05:09:48] shevy: we learned that in Monty Python's The Holy Grail
[05:10:02] balazs: has joined #ruby
[05:13:10] theery_: has joined #ruby
[05:13:30] hdev1: has joined #ruby
[05:14:30] workmad3: has joined #ruby
[05:14:52] ylla: has joined #ruby
[05:16:33] hyperjuice: has joined #ruby
[05:16:56] balazs: has joined #ruby
[05:17:06] Axsuul: has joined #ruby
[05:17:20] datanoise: has left #ruby: ("WeeChat 1.2")
[05:18:50] mleung: has joined #ruby
[05:20:50] tagrudev: has joined #ruby
[05:20:53] hakunin: has joined #ruby
[05:21:53] theery: has joined #ruby
[05:23:48] michaeldeol: has joined #ruby
[05:24:51] baweaver: has joined #ruby
[05:26:50] codecop: has joined #ruby
[05:27:05] aganov: has joined #ruby
[05:27:32] yfeldblum: has joined #ruby
[05:28:13] wildroman2: has joined #ruby
[05:28:46] Skelz0r: has joined #ruby
[05:32:33] j4cknewt: has joined #ruby
[05:33:44] astrobun_: has joined #ruby
[05:39:22] matugm: has joined #ruby
[05:46:36] hdev1: has joined #ruby
[05:49:17] hahuang65: has joined #ruby
[05:51:58] bronson: has joined #ruby
[05:52:15] nonparfumee: has joined #ruby
[05:53:00] GPrime: has joined #ruby
[05:54:15] CyborgCygnus: has joined #ruby
[05:58:17] ChanServ: -b CondomsOptional!*@*
[05:58:58] Zen-Zen: has joined #ruby
[05:59:39] apofis: has joined #ruby
[06:01:16] bin_005: has joined #ruby
[06:01:36] hyperjuice: has joined #ruby
[06:02:23] krisquigley: has joined #ruby
[06:02:43] Macaveli: has joined #ruby
[06:02:48] ylla: has joined #ruby
[06:05:10] ziprar: has joined #ruby
[06:05:10] ziprar: has joined #ruby
[06:08:40] weaksauce: >> 983247.to_s(2)
[06:08:41] ruboto: weaksauce # => "11110000000011001111" (https://eval.in/380301)
[06:08:46] weaksauce: fun with binary
[06:09:39] riotjones: has joined #ruby
[06:11:19] djbkd_: has joined #ruby
[06:11:50] bruno-: has joined #ruby
[06:12:59] roolo: has joined #ruby
[06:13:55] Aeyrix: >> 256.to_s(8)
[06:13:56] ruboto: Aeyrix # => "400" (https://eval.in/380305)
[06:14:49] kerunaru: has joined #ruby
[06:15:06] GGMethos: has joined #ruby
[06:15:28] rdark: has joined #ruby
[06:17:11] aaeron: has joined #ruby
[06:17:25] balazs: has joined #ruby
[06:17:53] RickHull: >> "chmod #{493.to_s(8)} ~/script.rb"
[06:17:54] ruboto: RickHull # => "chmod 755 ~/script.rb" (https://eval.in/380306)
[06:19:47] arooni-mobile: has joined #ruby
[06:21:31] Macaveli: has joined #ruby
[06:21:54] emilkarl: has joined #ruby
[06:23:35] Shu: has joined #ruby
[06:23:43] tvw: has joined #ruby
[06:25:18] Stan: has joined #ruby
[06:25:26] RazorX: has joined #ruby
[06:26:15] paradisaeidae: has joined #ruby
[06:27:11] symm-: has joined #ruby
[06:27:47] RazorX: has joined #ruby
[06:29:57] aaeron1: has joined #ruby
[06:30:37] rippa: has joined #ruby
[06:30:46] Mia: has joined #ruby
[06:31:11] DEA7TH_: has joined #ruby
[06:31:58] RegulationD: has joined #ruby
[06:32:01] mattp__: has joined #ruby
[06:33:53] weaksauce: that feature is pretty useful for binary and hex
[06:34:41] jmhmccr: has joined #ruby
[06:35:42] lolmaus: has joined #ruby
[06:36:53] solars: has joined #ruby
[06:37:21] Polysics: has joined #ruby
[06:37:29] sinkensabe: has joined #ruby
[06:37:32] ndrei: has joined #ruby
[06:37:50] andikr: has joined #ruby
[06:39:14] Aeyrix: I use it for hex a lot. :P
[06:40:23] pragmatism: has joined #ruby
[06:42:37] railsraider: has joined #ruby
[06:43:04] shevy: hex-magician
[06:43:44] astrobun_: has joined #ruby
[06:44:24] Zen-Zen: has joined #ruby
[06:44:28] ylla: has joined #ruby
[06:44:59] ni291187: has joined #ruby
[06:45:02] bayed: has joined #ruby
[06:45:15] simplyianm: has joined #ruby
[06:45:26] hubcaps: has joined #ruby
[06:45:38] skade: has joined #ruby
[06:45:42] ni291187: I love ruby. it's a bit harder than Python but it's a great language. are you guys developers of the language?
[06:46:44] dcarmich: has joined #ruby
[06:49:55] GPrime: I'm just learning it from scratch haha
[06:49:59] vedwin: has joined #ruby
[06:50:52] apofis: has joined #ruby
[06:51:20] allenn: has joined #ruby
[06:51:20] allenn: has joined #ruby
[06:52:34] vedwin: has joined #ruby
[06:54:21] Macaveli: has joined #ruby
[06:54:34] trollface: has joined #ruby
[06:54:53] dopie: has joined #ruby
[06:55:03] arup_r: has joined #ruby
[06:55:46] revath1: has joined #ruby
[06:56:37] Xeago: has joined #ruby
[06:56:48] baweaver: has joined #ruby
[06:56:50] NIGhtGERald: does everyone here have a penis?
[06:58:20] ruboto: fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, sevenseacat, miah, workmad3, Coraline, drbrain, zenspider, slyphon, rubyhacker1, Aria, ljarvis
[06:58:35] balazs: has joined #ruby
[07:00:52] ljarvis: !ban NIGhtGERald
[07:01:50] NIGhtGERald: why is everyone here such a dick?
[07:01:55] baweaver: Well bot is off again
[07:01:56] ljarvis: +b NIGhtGERald!*@*
[07:01:59] ljarvis: ljarvis kicked NIGhtGERald:
[07:02:15] ljarvis: thanks baweaver
[07:02:23] wald0: has joined #ruby
[07:02:29] ljarvis: ruboto: wtf bro
[07:02:35] ljarvis: don't leave me hanging like that
[07:02:46] baweaver: ACTION was staring expectantly
[07:03:12] workmad3: has joined #ruby
[07:03:23] baweaver: Eh, at least I have bot access in Rails to kick them if they show up there
[07:03:49] commondream: has joined #ruby
[07:04:01] Musashi1: has joined #ruby
[07:04:59] ljarvis: -o ljarvis
[07:06:39] flughafen: still no delivery!
[07:06:44] flughafen: sup baweaver
[07:06:55] baweaver: hackathon, making magic happen
[07:08:38] shevy: I wonder why that webchat dude keeps on doing it
[07:08:52] micmus: has joined #ruby
[07:09:40] baweaver: never underestimate the boredom of teenagers in conjunction with too much time to piss away.
[07:11:43] jph98: has joined #ruby
[07:11:52] troulouliou_dev: has joined #ruby
[07:13:44] timonv: has joined #ruby
[07:14:01] ReK2: has joined #ruby
[07:14:01] ReK2: has joined #ruby
[07:15:02] apeiros: ljarvis: syntax :-/
[07:15:03] x44x45x41x4E: has joined #ruby
[07:15:09] apeiros: I have to make the bot more robust wrt syntax
[07:15:29] ljarvis: I needed to add !T ?
[07:15:35] apeiros: and reason I think
[07:15:59] apeiros: I intend to make `!ban foo` work on its own and ask for specifics via pm
[07:16:37] shevy: "Do you really want to do this?"
[07:16:40] fedexo: has joined #ruby
[07:16:41] shevy: "Are you absolutely sure?"
[07:16:46] shevy: "It might not be a good idea."
[07:16:49] apeiros: shevy: are you clippy?
[07:17:01] shevy: I hated clippy so much
[07:18:38] baweaver: shevy: consider the irony that Steve Balmer bought the Clippers
[07:18:48] jgt3: has joined #ruby
[07:18:51] strixd: has joined #ruby
[07:19:49] strixd: has joined #ruby
[07:20:29] djbkd: has joined #ruby
[07:20:39] krz: has joined #ruby
[07:21:00] vyorkin2: has joined #ruby
[07:24:38] autrilla_: has joined #ruby
[07:25:43] pragmatism: has joined #ruby
[07:26:37] francoi__: has joined #ruby
[07:27:31] terlar: has joined #ruby
[07:28:27] Rubennn: has joined #ruby
[07:28:28] Hanmac: has joined #ruby
[07:28:39] anisha: has joined #ruby
[07:29:49] ajaiswal: some help here. it returns data in a string, even after converting it into array, the uniq is somehow not working https://gist.github.com/ashish1099/30df0685aa3966281eb8
[07:31:30] wallerdev: has joined #ruby
[07:31:30] dhjondoh: has joined #ruby
[07:32:05] benlovell: has joined #ruby
[07:32:40] ljarvis: ajaiswal: "the uniq" -- which does not exist in your code?
[07:33:08] k3asd`: has joined #ruby
[07:34:15] zenspider: I'm off my game. I miss all the banning fun
[07:34:52] baweaver: zenspider: You all could keep a scoreboard for jollies.
[07:35:23] zenspider: should I point out that the whole script could be a curl | sort -u ?
[07:35:34] zenspider: no, I probably shouldn't. disregard that previous line
[07:35:51] zenspider: I was busy converting rack's tests to minitest
[07:35:52] baweaver: ACTION shrugs
[07:35:53] ljarvis: zenspider: no i thought that but the file is output, we dont know what the input is
[07:36:24] ljarvis: I mean JSON.parse the body does give it a way a bit
[07:36:36] livathinos: has joined #ruby
[07:36:39] zenspider: the input? It's a plain get w/ basic_auth
[07:36:57] baweaver: https://gist.github.com/ashish1099/30df0685aa3966281eb8#file-ruby-script-L20
[07:37:11] zenspider: oh. oops. I missed that part. right. so curl | jq | sort -u
[07:37:42] baweaver: ....dangit slack
[07:40:53] ajaiswal: zenspider: its a plain basic auth.
[07:41:41] ChanServ: -b morissette!*@*
[07:43:07] krz: has joined #ruby
[07:43:13] ki0: has joined #ruby
[07:43:32] baweaver: Ah, so he did get banned last night. Wondered how that went down
[07:43:38] baweaver: ACTION thumbs back through the logs
[07:44:04] zenspider: ajaiswal: and?
[07:44:21] zenspider: alanis? NOOOOO
[07:44:36] baweaver: started to get a little belligerent from too many drinks before I left off for the night
[07:44:46] ajaiswal: its a basic http quer fires and get in respone a json, so i'm parsing that json with hash | key, value |
[07:45:21] ajaiswal: they key is a string, the whole thing is into string which should be n array , so i can iterate over it
[07:45:30] simplyianm: has joined #ruby
[07:46:57] zenspider: ajaiswal: yup. again. `curl | jq | sort -u` is the short version
[07:47:24] bin_005_c: has joined #ruby
[07:47:37] zenspider: yay. conversion is done. now to see if the CI is happy with it
[07:47:47] zenspider: 10k line diff
[07:47:50] sarlalian: has joined #ruby
[07:48:01] j4cknewt: has joined #ruby
[07:48:50] sarlalian: has joined #ruby
[07:49:30] jcaho: has joined #ruby
[07:50:00] terlar: has joined #ruby
[07:50:03] Scroff: has joined #ruby
[07:51:16] krisquigley: has joined #ruby
[07:51:27] Scrofff: has joined #ruby
[07:52:51] pyon: has joined #ruby
[07:55:42] keen____: has joined #ruby
[07:55:44] dgutierrez1287: has joined #ruby
[07:55:49] neanderslob: has joined #ruby
[07:57:06] iamninja: has joined #ruby
[07:59:25] bruno-: has joined #ruby
[07:59:36] s2013: has joined #ruby
[08:01:03] mikecmpbll: has joined #ruby
[08:02:13] munen: has joined #ruby
[08:02:42] imanzarrabian: has joined #ruby
[08:04:17] krisquigley: has joined #ruby
[08:04:39] aapole: has joined #ruby
[08:05:32] zenspider: yay for easy automation
[08:07:56] tomphp: has joined #ruby
[08:08:10] neanderslob: has joined #ruby
[08:09:43] iamninja: has joined #ruby
[08:10:50] iamninja: has joined #ruby
[08:11:41] shevy: hanmac, did you update the rxw gem?
[08:12:38] mister_solo: has joined #ruby
[08:15:10] Billias: has joined #ruby
[08:16:23] Scroff: has joined #ruby
[08:16:31] Miphix: has joined #ruby
[08:16:51] Hounddog: has joined #ruby
[08:18:00] baweaver: has joined #ruby
[08:18:25] jenrzzz: has joined #ruby
[08:19:22] munen: has joined #ruby
[08:19:37] alphaatom: has joined #ruby
[08:20:26] marr: has joined #ruby
[08:20:50] RegulationD: has joined #ruby
[08:21:47] chussenot: has joined #ruby
[08:23:39] Macaveli_: has joined #ruby
[08:23:42] alphaatom: has joined #ruby
[08:24:59] alphaatom: has joined #ruby
[08:26:03] edwinvdgraaf: has joined #ruby
[08:26:54] lxsameer: has joined #ruby
[08:26:54] lxsameer: has joined #ruby
[08:27:24] ahmadsoe: has joined #ruby
[08:27:49] francoi__: has joined #ruby
[08:28:28] Zai00: has joined #ruby
[08:28:36] skade: has joined #ruby
[08:28:46] davidhq: has joined #ruby
[08:30:29] flughafen: my package stil isn't being delivered
[08:30:32] sleungcy: has joined #ruby
[08:30:38] bmurt: has joined #ruby
[08:30:43] benlovell: has joined #ruby
[08:31:25] Macaveli: has joined #ruby
[08:31:56] Xeago: has joined #ruby
[08:32:20] axl_: has joined #ruby
[08:33:53] flughafen: it'll be faster for me to walk to dhl and pick it up myselvcf
[08:33:54] shevy: I have hopes flughafen - one day that flughafen in berlin will be built
[08:34:11] shevy: it is actually no longer in the news since quite a while, so I have no idea about it's present day status
[08:34:39] apofis: has joined #ruby
[08:34:47] flughafen: http://www.berlin-airport.de/de/ber/
[08:34:57] intinig: has joined #ruby
[08:35:15] flughafen: http://www.flughafen-berlin-kosten.de/
[08:35:26] flughafen: http://www.istderberschonfertig.de/
[08:35:48] adaedra: so many .de
[08:35:51] Papierkorb: has joined #ruby
[08:35:58] flughafen: de ist die beste!
[08:36:06] adaedra: they didn't do airport.berlin yet?
[08:36:18] flughafen: i should register it aaand sell it for millions of pennies
[08:36:23] revath: has joined #ruby
[08:36:54] ndrei: has joined #ruby
[08:38:03] shevy: lol flughafen
[08:38:17] Macaveli: has joined #ruby
[08:38:25] shevy: so they aim for 2017
[08:38:32] shevy: how long did it take them like then... a decade?
[08:38:44] flughafen: shevy: i have no idea
[08:38:46] shevy: they would be faster by BUYING another airport and transferring it piece by piece
[08:39:52] s2013: has joined #ruby
[08:42:29] vyorkin2: has joined #ruby
[08:43:02] SalexW: has joined #ruby
[08:43:22] ahmetkapikiran: has joined #ruby
[08:43:27] nhhagen: has joined #ruby
[08:44:53] jwilson: has joined #ruby
[08:45:14] hefest: i can't force thinking-sphinx to search in match_mode any. any ideas? i can post the sample query.
[08:47:05] simplyianm: has joined #ruby
[08:47:17] astrobun_: has joined #ruby
[08:47:52] hedgecore: has joined #ruby
[08:47:59] djbkd: has joined #ruby
[08:48:12] Papierkorb: has joined #ruby
[08:48:14] lolmaus: has joined #ruby
[08:49:34] MyMind: has joined #ruby
[08:50:05] doerteDev: has joined #ruby
[08:50:30] mattp__: has joined #ruby
[08:50:37] ByronJohnson: has joined #ruby
[08:50:48] jsaak: has joined #ruby
[08:51:55] TheHodge: has joined #ruby
[08:51:58] aredridel: has joined #ruby
[08:52:00] workmad3: has joined #ruby
[08:52:28] timonv: has joined #ruby
[08:52:38] allomov: has joined #ruby
[08:53:19] nizmow_: has joined #ruby
[08:54:27] ndrei: has joined #ruby
[08:55:39] TheBrayn: has joined #ruby
[08:55:49] gf3: has joined #ruby
[08:57:22] aep: has joined #ruby
[08:57:30] CalvinnHobbes: has joined #ruby
[08:58:19] Mia: has joined #ruby
[08:58:19] Mia: has joined #ruby
[08:58:24] nhhagen: has joined #ruby
[08:59:20] tchebb: has joined #ruby
[08:59:46] CustosLimen: has joined #ruby
[08:59:58] balazs: has joined #ruby
[09:00:03] elev: has joined #ruby
[09:00:05] rkazak: has joined #ruby
[09:00:28] hdev1: has joined #ruby
[09:02:03] starfox_sf: has joined #ruby
[09:03:11] dfockler: has joined #ruby
[09:04:26] pontiki: has joined #ruby
[09:04:46] bosma: If I have two threads, one is setting a class variable, one occasionally reads it, is that safe to do?
[09:05:58] senayar: has joined #ruby
[09:05:58] senayar: has joined #ruby
[09:06:02] bosma: what could go wrong?
[09:07:12] Darkwater: what's unsafe about that
[09:07:14] ljarvis: actually a mutex won't help you
[09:07:21] intinig: has joined #ruby
[09:07:28] bosma: Yeah I'm not seeing what's wrong.
[09:07:32] ljarvis: well, "safe" is probably the wrong way to describe it
[09:07:39] ljarvis: of course it's safe
[09:07:48] Darkwater: yeah it doesn't kill me
[09:07:54] Darkwater: (depends on where it's used)
[09:08:02] bosma: is it guaranteed to not result in my program crashing
[09:08:07] bosma: is really the question
[09:08:16] ljarvis: i don't know the implementation so who knows
[09:08:19] ljarvis: probably not
[09:08:33] ljarvis: but you can't except any guarentees
[09:08:33] apeiros: bosma: depends on how setting and reading the variable interact
[09:08:42] Axy: has joined #ruby
[09:08:59] ljarvis: basically I would store thread local variable
[09:09:05] ljarvis: but again, depends on the implementation
[09:09:10] ljarvis: we know nothing right now
[09:09:17] mrmist: has joined #ruby
[09:09:34] apeiros: bosma: there aren't really silver bullet solutions with regards to threading. almost all questions whether something is thread-safe are context sensitive.
[09:09:52] bosma: just given my question specifics
[09:09:54] apeiros: you can protect something with a mutex and create a dead- or a livelock
[09:10:02] apeiros: i.e. still not be threadsafe
[09:10:17] bosma: I'm separating proper behavior with the programming language not being able to handle it
[09:10:42] bosma: can the read result in garbage, or just an old value
[09:11:12] alphaatom: has joined #ruby
[09:11:21] ljarvis: well, it's guarenteed to be a value... :P
[09:12:01] apeiros: bosma: old value. no garbage.
[09:12:18] apeiros: in another language, that doesn't necessarily hold true
[09:12:23] bosma: I understand the problems with concurrency. Right why I asked.
[09:12:29] apeiros: and actually even in another runtime it doesn't need to
[09:12:32] bosma: Was thinking maybe the assembly could become garbled
[09:12:41] apeiros: but MRI afaik has atomic assignment
[09:12:55] chinmay_dd: has joined #ruby
[09:13:53] ahmetkapikiran: has joined #ruby
[09:14:49] senayar: has joined #ruby
[09:14:49] senayar: has joined #ruby
[09:16:14] jas02: has joined #ruby
[09:17:51] intinig: has joined #ruby
[09:19:04] bryanmuus_: has joined #ruby
[09:19:23] baweaver: Jack had a problem, so Jack decided to use Threads. problems Now two has he.
[09:19:35] bosma: cinch bot
[09:19:42] adaedra: Now Jack Yoda is
[09:19:53] bosma: just subscribing to eurusd ticks, making a trading game.
[09:20:10] shevy: Jack the beaver
[09:20:17] Tamae: has joined #ruby
[09:20:38] bosma: and I want to thread all the things right now
[09:21:05] bosma: x99-A arrived other day :D
[09:21:15] shevy: thread all the things
[09:21:32] bosma: yes what can go wrong
[09:21:33] bryanmuus_: just started learning ruby
[09:21:46] shevy: yay bryanmuus_
[09:22:16] shevy: bryanmuus_ you come from another programming language?
[09:22:37] shevy: apeiros, look:
[09:22:38] shevy: https://github.com/mruby/mruby/commit/d2433a7723e958e33b07d7abe583215756bd8840
[09:22:40] shevy: matz uses "then"
[09:23:10] bryanmuus_: not reall just skimming through multiple other by am kinda good in javascript
[09:23:16] baweaver: Welcome, pilgrim from unholy lands of yonder way
[09:23:31] shevy: usually it's that way ruby->javascript... people leave ruby due to their javascript fondness!
[09:23:36] bosma: it's fun, enjoy
[09:23:53] baweaver: ACTION says, as he's working on Angular templates
[09:24:04] Evidlo: has joined #ruby
[09:24:06] bosma: and remember P !=-- Rails != Ruby
[09:24:23] jhass: bosma: note that cinch spawns a new thread for each handler invocation
[09:24:25] adaedra: I see ???JavaScript??? and fun too close from each other
[09:24:37] adaedra: s/fun/???fun???/
[09:24:52] baweaver: I see unicode quotes
[09:24:56] baweaver: ACTION shudders
[09:25:24] shevy: no problem as long as we get our daily baguette!
[09:25:36] baweaver: When I use javascript, I always feel an urge to say this is crap, but I can never remember what this refers to
[09:25:41] multi_io: has joined #ruby
[09:25:49] shevy: baweaver in javascript: `this`
[09:25:53] shevy: this.sucks
[09:25:56] shevy: this.window.stinks
[09:25:59] adaedra: ACTION smashes shevy with the whole bakery
[09:26:09] shevy: adaedra thank you :D
[09:26:16] baweaver: I don't really mind JS
[09:26:29] baweaver: but I've bound enough things to window from carelessness
[09:26:30] shevy: french cuisine is pretty good, much better than UK fish and chips dipped into sausages
[09:26:42] Rubennn: has left #ruby: ()
[09:27:16] adaedra: That's what they get for being on the wrong side of the Channel :??
[09:30:08] bruno-: has joined #ruby
[09:30:49] apeiros: baweaver: you mean yoda doesn't really have an issue with language, but rather is massively multithreaded and badly synchronized? :)
[09:31:05] dEPy: has joined #ruby
[09:31:50] afrianska: has joined #ruby
[09:31:53] baweaver: correct are you
[09:31:59] adaedra: too bad we can't quote that
[09:32:05] bosma: anyone recommend something like daybreak (that works on Windows, sorry)
[09:32:15] bosma: flat-file db
[09:32:32] terlar: has joined #ruby
[09:33:15] baweaver: Databases.where(flat_file: true) # => 999 results
[09:33:24] baweaver: Databases.where(flat_file: true, windows: true) # => 2 results
[09:33:44] arup_r: has joined #ruby
[09:33:46] bosma: I should really move over
[09:33:47] baweaver: (probably not, but still, windows was a royal pain when I tried to make it behave)
[09:33:52] bosma: this is hell
[09:33:58] baweaver: virtual machine
[09:34:16] bosma: Yeah maybe a dev environment on a VM
[09:37:30] nhhagen: has joined #ruby
[09:38:24] msgodf: has joined #ruby
[09:40:21] Darkwater: windows sucks for development
[09:40:30] adaedra: Ok, I got a perfect score in CodeClimate ??? which seems to be normal, since it only uses my version.rb file :x
[09:40:50] bosma: i'll just use csv, realized I don't need real-time persistence
[09:40:55] bosma: yeah I agree Darkwater
[09:41:05] Darkwater: not an hour ago I heard someone trying to set something up which didn't work because windows is case-insensitive
[09:41:10] Darkwater: bad programming probably, but still
[09:41:33] adaedra: tbf, the same problem exists in OS X
[09:41:57] nikhgupta: has joined #ruby
[09:42:40] bin_005_c: has joined #ruby
[09:43:07] ljarvis: "problem"?
[09:43:31] shevy: the problem in OSX!
[09:43:34] shevy: the users!!!
[09:43:47] yfeldblum: has joined #ruby
[09:44:03] shevy: I think in php you can have upcased or downcased function names too
[09:44:11] ljarvis: also, im pretty sure ntfs is case sensitive by default
[09:44:40] Darkwater: <?php echo STRleN('hi'); ?>
[09:44:51] Darkwater: (% is from zsh because there's no newline)
[09:45:09] jenrzzz: has joined #ruby
[09:45:38] ljarvis: Darkwater: php -r
[09:45:39] apofis: has joined #ruby
[09:46:06] Darkwater: eh, I don't use php enough to bother
[09:46:24] apeiros: there's a programming language where upper-/lowercase, -, _ and I think even spaces don't matter
[09:46:28] apeiros: don't remember the name
[09:46:41] Darkwater: applescript
[09:46:46] apeiros: but basically str_len, str-len, STR_len would all be the same method
[09:46:53] Darkwater: whoa that quit
[09:47:06] apeiros: Darkwater: nope. but applescript could theoretically be localized :)
[09:47:14] apeiros: ACTION had used applescript 1.0 german
[09:47:23] kerunaru: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[09:47:35] adaedra: ZSH setopt has this feature
[09:47:57] adaedra: options are case-insensitive and _ are ignored
[09:48:01] hackeron_: has joined #ruby
[09:48:11] adaedra: setopt N____o____B____e____E____p
[09:48:15] MasterPiece: has joined #ruby
[09:48:48] dreinull75: does anybody know how to use rack-ssl with puma? I can bind to ssl and tell puma where my certs are but then I don't need rack-ssl and its convenient http-> https services.
[09:49:17] dreinull75: not a rails question btw :)
[09:49:37] adaedra: SSL is usually handled by front-facing server (nginx, apache, etc...), no?
[09:50:09] alphaatom: has joined #ruby
[09:50:16] workmad3: has joined #ruby
[09:50:58] shevy: wouldn't it be cool if we could generate both text/console-programs and GUIs
[09:51:00] dreinull75: adaedra sure, I want to use puma only
[09:51:04] shevy: at the same time
[09:51:28] dreinull75: shevy it would be.
[09:51:55] dreinull75: yesterday I looked at the state of ruby and gtk. It's awful. Too complicated.
[09:51:56] adaedra: shevy: iirc, YaST has both console and gui modes with ??? approximately ??? the same GUI
[09:52:13] shevy: dreinull75 yeah you are right
[09:52:19] shevy: I wondered how to make ruby-gnome simpler altogether
[09:52:35] shevy: when I switched to ruby 1.9.x, I was not writing any ruby-gnome code for several years
[09:52:36] symm-: has joined #ruby
[09:52:38] dreinull75: shevy did I see you in the commiters list
[09:53:02] shevy: when I tried to resume, I struggled; I could not remember how to use the stuff... how do you make a coloured text buffer for instance; or how do you add new elements to a "table" in ruby-gnome
[09:53:10] shevy: you have to somehow keep track of something called an iter
[09:53:18] shevy: dreinull75 don't think so, I know no C :(
[09:53:29] dreinull75: ok, was probably some other guy
[09:53:39] futilegames: has joined #ruby
[09:53:54] shevy: what also annoys me is how the CSS things aren't easily available in ruby-gnome
[09:54:03] shevy: why can't I just use css consistently to style all widgets
[09:54:08] Darkwater: adaedra: thanks for the reminder
[09:54:17] Darkwater: I have no idea why I had setopt beep in my zshrc
[09:54:28] Darkwater: no more rmmodding yay
[09:54:29] adaedra: Because it's the default ?
[09:54:31] shevy: no margin, no padding, I have to use some obscure Gtk::Alignment widget http://ruby-gnome2.osdn.jp/hiki.cgi?Gtk%3A%3AAlignment
[09:54:42] apofis: has joined #ruby
[09:54:45] Darkwater: (I also blacklisted it some time ago but that stopped working for whatever reason)
[09:54:55] Darkwater: adaedra: I apparently put it in there myself
[09:55:01] nhhagen: has joined #ruby
[09:56:01] intinig: has joined #ruby
[09:56:06] Endretoft: has joined #ruby
[09:56:53] apofis: has joined #ruby
[09:58:11] nikhgupta: has joined #ruby
[10:00:09] sdothum: has joined #ruby
[10:00:24] shevy: there is team programming
[10:00:27] shevy: but how about channel programming
[10:00:36] shevy: where the whole channel gets together to create software :D
[10:00:50] shevy: I meant *pair programming actually, not team programming
[10:00:51] vyorkin2: has joined #ruby
[10:01:23] Darkwater: should I pipe a channel to ed
[10:01:28] Darkwater: for collaborative programming
[10:01:35] arup_r: has joined #ruby
[10:02:44] adaedra: IRC plays Ruby
[10:03:29] Darkwater: I would if there were no security issues
[10:03:40] Darkwater: maybe I'll do it on a throwaway vps sometime
[10:03:47] Darkwater: oh hey, I still have that $100 digital ocean credit
[10:04:43] dreinull75: feel free to code my stuff. No need to have me hang around :)
[10:04:52] lkba: has joined #ruby
[10:04:53] pepelui: has joined #ruby
[10:04:56] camonz: has joined #ruby
[10:05:00] dreinull75: github is weird today. apparently just for me
[10:05:07] adaedra: dreinull75: %x(rm -r $HOME)
[10:05:20] j4cknewt_: has joined #ruby
[10:05:20] bosma: Dreamer3, cloudflare outages
[10:05:27] dreinull75: adaedra I can send you a git repo :D
[10:05:45] adaedra: dreinull75: I already have some of those, thanks
[10:06:11] dreinull75: I can make it any flavor you like. CVS? SVN?
[10:06:50] platzhirsch: has joined #ruby
[10:07:30] rdark: has joined #ruby
[10:08:50] nikhgupta: has joined #ruby
[10:08:55] nhhagen: has joined #ruby
[10:09:15] banister: has joined #ruby
[10:09:24] shevy: mercurial!
[10:09:37] Darkwater: >registers on digitalocean to buy a throwaway vps
[10:09:42] commondream: has joined #ruby
[10:09:45] RegulationD: has joined #ruby
[10:09:48] Darkwater: >DO's email servers have issues today
[10:09:51] Dreamer3: bosma: where did you see that
[10:10:18] Dreamer3: https://www.cloudflarestatus.com
[10:11:34] dgutierrez1287: has joined #ruby
[10:11:43] Dreamer3: wow can't get to pingdom
[10:13:45] intinig: has joined #ruby
[10:14:34] baweaver: has joined #ruby
[10:19:18] triangles: has joined #ruby
[10:20:11] dgutierrez1287: has joined #ruby
[10:21:06] axisys: has joined #ruby
[10:22:43] maloik: there are worldwide routing issues
[10:23:25] nhhagen: has joined #ruby
[10:24:10] francoi__: has joined #ruby
[10:24:29] triangles: I'd like to write to a buffer, and then flush it to STDOUT at specified times. I'm reading the documentation on the IO class now, but I don't really understand the use of 'file descriptors'.
[10:24:46] triangles: There's an example given but it uses /dev/tty and I want the program to run on Windows also.
[10:24:53] triangles: What kind of file descriptor do I want?
[10:26:01] Darkwater: triangles: you'd want $stdout
[10:28:21] anisha: has joined #ruby
[10:29:04] camilasann: has joined #ruby
[10:30:23] Darkwater: no irc plays ruby apparently
[10:30:27] triangles: Darkwater: $stdout as the file descriptor? That's a type error. Or just write to $stdout rather than a new IO object? Because unless there's a way to change it, when you write to $stdout it instantly writes to stdout
[10:30:29] Darkwater: DO mail servers are dead
[10:30:34] triangles: I want to build up a buffer and then fluesh it when I'm ready
[10:31:08] Darkwater: triangles: maybe do the buffer separately
[10:31:13] Darkwater: then write to stdout when you're ready
[10:31:39] Darkwater: (and flush, it might not be instant for everyone)
[10:32:10] intinig: has joined #ruby
[10:33:01] arup_r: atmosx: Hi
[10:33:30] n008f4g_: has joined #ruby
[10:33:42] vyorkin2: has joined #ruby
[10:35:38] ajaiswal: arup_r: buddy you there ?
[10:35:59] mengu: has joined #ruby
[10:36:35] bruno-: has joined #ruby
[10:37:07] afrianska: has joined #ruby
[10:39:09] Musashi007: has joined #ruby
[10:39:34] MasterPiece: has joined #ruby
[10:39:49] benlovell: has joined #ruby
[10:40:41] mathie: has joined #ruby
[10:41:02] atmosx: arup_r: how r you doing?
[10:43:05] arup_r: fine... atmosx:
[10:43:30] xehbit: has joined #ruby
[10:45:26] emilkarl: has joined #ruby
[10:46:27] munen: has joined #ruby
[10:47:18] bruno-: has joined #ruby
[10:47:26] tomphp: has joined #ruby
[10:49:29] hololeap: has joined #ruby
[10:49:36] mclee: has joined #ruby
[10:50:47] starfox_sf: has joined #ruby
[10:51:15] ruboto: hololeap # => (https://eval.in/380454)
[10:51:34] joneshf-laptop: I'm looking to play around with design. Say I wanted to describe a mixin with a few different methods: `foo`, `bar`, and `baz`. Let's say `bar` and `baz` depend on `foo`, but are generic enough to be implemented directly in the module. And `foo` is something that should be implemented by the mixer. How should I go about depicting that `foo` needs to be implemented?
[10:51:55] thelastinuit: has joined #ruby
[10:52:07] apeiros: joneshf-laptop: that sounds like what Enumerable does. it depends on .each being defined.
[10:52:09] hachiya: has joined #ruby
[10:52:23] joneshf-laptop: apeiros, yeah, pretty much like that
[10:52:27] apeiros: joneshf-laptop: IMO state it in the documentation of your module that the including party is expected to define `foo`
[10:52:44] apeiros: you could also implement it in your module and raise
[10:53:09] apeiros: but that'd prohibit designs where `foo` is defined in an ancestor, but the descendant includes your module.
[10:54:14] shevy: did you guys know that black cats means good luck in japan?
[10:54:22] nonparfumee: has joined #ruby
[10:54:53] sandstrom: has joined #ruby
[10:55:20] Darkwater: has joined #ruby
[10:55:35] joneshf-laptop: apeiros, so in the first approach I don't even write the method in the module?
[10:55:42] baweaver: has joined #ruby
[10:56:07] apeiros: joneshf-laptop: correct
[10:56:20] tomphp: has joined #ruby
[10:56:35] apeiros: given that e.g. Enumerable and Comparable set a precedent for that, it's IMO ok
[10:58:55] joneshf-laptop: Is it common to have that other scenario you mentioned, where the descendant includes something that depends on an ancestor's methods?
[10:59:16] Hanmac1: has joined #ruby
[10:59:23] Hanmac1: has left #ruby: ()
[10:59:35] robustus: has joined #ruby
[10:59:54] djbkd: has joined #ruby
[11:00:30] rodfersou: has joined #ruby
[11:00:31] p8952: has joined #ruby
[11:01:17] balazs: has joined #ruby
[11:02:48] intinig: has joined #ruby
[11:02:55] ylla: has joined #ruby
[11:03:04] bruno-: has joined #ruby
[11:04:09] djellemah_: has joined #ruby
[11:04:25] apofis: has joined #ruby
[11:04:27] intinig: has joined #ruby
[11:04:58] ndrei: has joined #ruby
[11:06:22] chinmay_dd: has joined #ruby
[11:08:07] bruno-: has joined #ruby
[11:09:00] tomphp: has joined #ruby
[11:09:25] yoongkang: has joined #ruby
[11:10:40] camilasan: has joined #ruby
[11:12:23] pepperbreath1: has joined #ruby
[11:12:29] pepperbreath1: has left #ruby: ()
[11:13:06] bruno-: has joined #ruby
[11:14:30] Siyfion: has joined #ruby
[11:14:49] arup_r: has joined #ruby
[11:15:01] hdev1: has joined #ruby
[11:15:06] ahmetkapikiran: has joined #ruby
[11:15:10] rodferso1: has joined #ruby
[11:15:54] dangerousdave: has joined #ruby
[11:17:03] pandaant: has joined #ruby
[11:17:06] jhass: dangerousdave: #fail
[11:17:28] jhass: #not #twitter :P
[11:18:48] bruno-: has joined #ruby
[11:18:48] dangerousdave: jhass: my irc client can't connect, so am using a browser client I don't understand
[11:19:00] Siyfion: Right so I have some code blocks, that need to access instance variables inside the block, my linter is throwing warnings about all of them, but it *does* work currently.
[11:19:06] atmosx: dangerousdave: what's the prob?
[11:19:27] Siyfion: How the hell do I get around accessing instance vars inside a block?
[11:19:36] jds: has joined #ruby
[11:19:47] atmosx: Siyfion: can you show the code?
[11:20:10] atmosx: Siyfion: the entire class possibly, where the instance vars are defined and how are you accessing them inside your block?
[11:20:24] Siyfion: atmosx: okay
[11:21:01] Siyfion: atmosx: https://gist.github.com/Siyfion/ac6c51789ab588302680
[11:21:30] dhjondoh: has joined #ruby
[11:22:03] Siyfion: line 42 it's complaining about both instance variables... along with lines 48, 50, etc.
[11:22:14] mengu: has joined #ruby
[11:22:36] dangerousdave: atmosx: no idea really, my irc client works fine on home connection, however at work I get: [12:13:46] Connecting to [chat.freenode.net] on port 6667 [12:14:16] Attempt to connect to host timed out [12:14:16] Disconnected
[11:23:18] phutchins: has joined #ruby
[11:23:21] hoov: has joined #ruby
[11:23:29] jhass: dangerousdave: looks like you hit a bad one in the DNS round robin, try a specific one http://freenode.net/irc_servers.shtml
[11:23:59] adaedra: using SSL?
[11:24:18] strixd: has joined #ruby
[11:25:39] dangerousdave: jhass: atmosx: [12:24:06] Connecting to [holmes.freenode.net] on port 6667 [12:24:36] Attempt to connect to host timed out [12:24:36] Disconnected
[11:25:47] chinmay_dd: has joined #ruby
[11:25:51] jhass: Siyfion: mmh, there's a bigger issue here first, ll 10-13 do nothing. @foo inside and outside an instance method definition are two different variables
[11:26:32] rodfersou: has joined #ruby
[11:26:34] jhass: Siyfion: but from the code you've shown I'm not sure why you use instance variables in the first place
[11:26:42] Scripore: has joined #ruby
[11:26:55] alphaatom: has joined #ruby
[11:27:14] jhass: there seems to be no reason for a single one
[11:27:21] Siyfion: Ah yeah, bad example
[11:27:37] atmosx: Siyfion: you don't initialize the 10-13 variables
[11:28:02] jhass: dangerousdave: no matter which you pick? maybe work started blocking IRC?
[11:28:06] atmosx: Siyfion: but as jhass said you don't have to use instance vars anyway.
[11:29:07] atmosx: dangerousdave: try nc holmes.freenode.net 6667 see if it comes up with some txt
[11:29:31] jhass: Siyfion: in fact given it's a singleton, they needlessly prevent concurrent invocations of your method currently
[11:29:36] tomphp: has joined #ruby
[11:30:09] Siyfion: jhass: I'm sorry, complete newb to Ruby
[11:30:19] jhass: no worries, just pointing out ;)
[11:30:22] Siyfion: jhass: Just trying to get my head around it ;)
[11:30:29] Siyfion: okay, I'll post an updated one
[11:31:12] Siyfion: https://gist.github.com/Siyfion/ac6c51789ab588302680 better?\
[11:31:22] chinmay_dd: has joined #ruby
[11:31:31] lavros: has joined #ruby
[11:31:34] dangerousdave: jhass: its a new job, so I have never seen it working, so I think you are right
[11:31:54] jhass: dangerousdave: try SSL
[11:32:06] dorei: has joined #ruby
[11:33:45] dangerousdave: jhass: atmosx: with SSL, [12:32:35] Connecting to [holmes.freenode.net] on port 6697 [12:32:36] Connection to host at [] established [12:32:59] Transport Layer Security (TLS) Error: Connection was closed as a result of an error (-9806) [12:32:59] Disconnected
[11:34:18] Siyfion: jhass & atmosx: Here's a more complex example, I'm really just trying to use instance variable to save passing shit loads of data into all the functions.. https://gist.github.com/Siyfion/d92dc707a7f359edff70
[11:34:32] francoi__: has joined #ruby
[11:34:41] jhass: dangerousdave: again no matter which host you try?
[11:34:54] tomphp: has joined #ruby
[11:35:18] jhass: Siyfion: could you edit it and activate syntax highlighting?
[11:35:39] Siyfion: done, my bad
[11:35:50] jenrzzz: has joined #ruby
[11:36:02] dgutierrez1287: has joined #ruby
[11:36:12] jhass: well, still the same issue with ll. 9-13 most likely not doing what you think they do
[11:36:34] chthon: has joined #ruby
[11:37:27] chinmay_dd: has joined #ruby
[11:37:53] jhass: if you don't make it a singleton it should even turn thread safe (given whatever library you use there is thread safe), so I'd probably have the linter stfu
[11:38:28] Siyfion: Like I said, it's just to stop having to pass variables all over the place
[11:38:40] sandstrom: has joined #ruby
[11:38:47] jhass: not at all
[11:38:58] Siyfion: But if it doesn't work.. or isn't as simple as that
[11:38:59] jhass: also good programmers are lazy
[11:39:06] dangerousdave: jhass, yep, tried a few, all the same
[11:39:10] kitallis: why does this create a blank empty 1st page for some images? http://pastie.org/10237102
[11:39:10] Siyfion: then perhaps I need to rethink :/
[11:39:24] jhass: Siyfion: well, what's the exact complaint of your linter?
[11:39:49] terlar: has joined #ruby
[11:41:15] Siyfion: jhass: "Cannot find declaration for field '@width'"
[11:41:56] jhass: Siyfion: one thing I would change however is to only make those instance variables that actually are shared, from a quick look that seems to be only @pdf and @data_points
[11:42:15] Siyfion: jhass: Yeah, definitely will do that
[11:42:25] senayar: has joined #ruby
[11:42:57] Hanmac1: has joined #ruby
[11:43:02] Hanmac1: shevy http://xkcd.com/1537/
[11:43:41] yoongkang: has joined #ruby
[11:43:47] Siyfion: Cheers for the help jhass
[11:44:43] rippa: has joined #ruby
[11:44:52] jhass: Siyfion: but yeah, I think you just got your linter confused there :P
[11:45:06] Siyfion: Silly RubyMine :P
[11:45:12] millerti: has joined #ruby
[11:45:28] chipotle: has joined #ruby
[11:45:45] vyorkin2: has joined #ruby
[11:46:39] diegoviola: has joined #ruby
[11:47:25] Siyfion: It's also complaining mightily about the line "box.instance_eval { @font_size }" saying that @font_size is undefined... but then I guess that's just because it has no idea I'm using 'instance_eval'
[11:48:04] tomphp: has joined #ruby
[11:48:15] lolmaus: has joined #ruby
[11:49:20] vdamewood: has joined #ruby
[11:50:02] sarkyniin: has joined #ruby
[11:50:20] CyborgCygnus: has joined #ruby
[11:50:58] withnale_: has joined #ruby
[11:51:23] j4cknewt: has joined #ruby
[11:51:49] startupality: has joined #ruby
[11:55:12] veleno: has joined #ruby
[11:55:13] endorphine_: has joined #ruby
[11:55:14] withnale__: has joined #ruby
[11:56:07] veleno: using Sequel, how do i translate an SQL statement in which the WHERE clause uses an OR ? WHERE status='AVAILABLE' or status='PREAVAILABLE??? This does not work: where(:status=>'AVAILABLE' or :status=>'PREAVAILABLE')
[11:56:17] havenwood: has joined #ruby
[11:56:18] ndrei: has joined #ruby
[11:56:22] jhass: Siyfion: uh, I didn't notice the instance_eval
[11:56:39] tomphp: has joined #ruby
[11:56:41] jhass: Siyfion: well, instance_eval does change the lookup scope for instance variables
[11:56:41] adaedra: veleno: try the block construct
[11:57:10] sgambino: has joined #ruby
[11:57:17] Siyfion: Yeah, I think that's the linter just not having a clue about the underlying data structure of that (a bounding-box)
[11:57:26] adaedra: where { status == 'AVAILABLE' || status == 'PREAVTHING' } # veleno
[11:57:34] jhass: veleno: .where(status: %w(AVAILABLE PREAVAILABLE)) should work too
[11:57:38] ahmetkapikiran: has joined #ruby
[11:57:38] jcaho: has joined #ruby
[11:58:08] chinmay_dd: has joined #ruby
[11:58:35] RegulationD: has joined #ruby
[11:58:43] withnale__: has joined #ruby
[11:58:43] francoi__: has joined #ruby
[12:00:06] caseypatrickdris: has joined #ruby
[12:00:31] jhass: Siyfion: still hacky but I'd use box.instance_variable_get(:@font_size)
[12:00:54] bhaak: jhass: isn't that technically AR? IIRC Sequel's own construct would be using in, e.g. .where{status.in %w{A, B}}
[12:01:03] francoi__: has joined #ruby
[12:01:05] Macaveli_: has joined #ruby
[12:01:34] Siyfion: jhass: Oh okay, I'll give that a go
[12:01:34] jhass: uh, might be that I just assumed sequel would support that too
[12:03:13] senayar: has joined #ruby
[12:03:13] senayar: has joined #ruby
[12:03:26] msnyon: has joined #ruby
[12:03:53] withnale__: has joined #ruby
[12:03:54] tomphp: has joined #ruby
[12:04:01] bhaak: or maybe I just mixed up Squeel and Sequel
[12:04:50] Outlastsheep: 'Squeel'? did you mean 'Squeal'?
[12:05:37] bhaak: if there is another ORM out there named 'Squeal', I'm gonna buy a gun and shoot everybody who thinks project need cute names
[12:06:04] jhass: so much for puppy linux then
[12:06:22] shevy: no I meant Sheep really
[12:06:27] Outlastsheep: "Project Hamster-fur"
[12:06:28] shevy: as in similar to Squeal
[12:06:54] Outlastsheep: "GNU/Kitten" Oh god I think I see the light.
[12:07:42] ndrei_: has joined #ruby
[12:07:55] Hanmac1: has left #ruby: ()
[12:08:02] chinmay_dd: has joined #ruby
[12:08:46] keernel: has joined #ruby
[12:09:28] livathinos: has joined #ruby
[12:13:43] commondream: has joined #ruby
[12:14:33] apofis: has joined #ruby
[12:15:25] baweaver: has joined #ruby
[12:16:22] symm-: has joined #ruby
[12:16:40] benlovell: has joined #ruby
[12:16:46] Zai00: has joined #ruby
[12:18:26] sarlalian: has joined #ruby
[12:19:10] alphaatom: has joined #ruby
[12:19:23] banister: has joined #ruby
[12:23:51] lxsameer: has joined #ruby
[12:23:51] lxsameer: has joined #ruby
[12:24:18] Macaveli: has joined #ruby
[12:24:50] goodcodeguy: has joined #ruby
[12:24:51] sdwrage: has joined #ruby
[12:25:00] BTRE: has joined #ruby
[12:25:48] CloCkWeRX: has joined #ruby
[12:26:01] baweaver: has joined #ruby
[12:26:09] alphaatom: has joined #ruby
[12:27:15] djellemah__: has joined #ruby
[12:27:37] borodin: has joined #ruby
[12:27:43] arup_r: good #{time_of_day} to everyone.
[12:28:10] jhass: ?ugt arup_r
[12:28:10] ruboto: arup_r, it's morning, see http://www.total-knowledge.com/~ilya/mips/ugt.html
[12:28:28] jhass: er, okay in this case it's evening, good night!
[12:28:34] jhass: (needs a second one for that)
[12:28:35] arup_r: jhass: you guys documented everything..
[12:28:45] ruboto: I don't know anything about ruby
[12:28:50] shevy: not everything arup_r
[12:28:58] shevy: the bot still does not know a thing about ruby
[12:29:11] jhass: ?everything
[12:29:11] ruboto: I don't know anything about everything
[12:29:19] alphaatom: has joined #ruby
[12:29:24] baweaver: ?shevy_being_a_credible_source_to_ask
[12:29:24] ruboto: I don't know anything about shevy_being_a_credible_source_to_ask
[12:29:25] freerobby: has joined #ruby
[12:29:52] baweaver: ACTION whistles
[12:30:01] startupality: has joined #ruby
[12:31:24] alphaatom: has joined #ruby
[12:31:48] AlexRussia: has joined #ruby
[12:31:52] baweaver: ?where_they_hid_the_bodies
[12:31:52] ruboto: I don't know anything about where_they_hid_the_bodies
[12:32:02] ruboto: bar, I don't know anything about foo
[12:32:16] shevy: ?I know nothing about anything damn
[12:32:16] ruboto: know, I don't know anything about I
[12:32:25] shevy: this is a yoda bot
[12:32:49] sandstrom: has joined #ruby
[12:32:58] Darkwater: holy shit lol
[12:33:19] ndrei: has joined #ruby
[12:33:40] Darkwater: ?where they hid the bodies
[12:33:41] ruboto: they, I don't know anything about where
[12:33:52] Darkwater: it recognizes nbsp :<
[12:34:04] apeiros: .kick Darkwater stop abusing the bot
[12:34:30] Darkwater: .kick apeiros u kiked me!!!
[12:34:38] apeiros: what's kiking?
[12:34:47] bougyman: missing a c
[12:34:47] Darkwater: idk, using kik?
[12:35:03] Darkwater: kik is a thing I think
[12:35:07] Darkwater: a chat thing or whatever
[12:35:11] bougyman: it's not a thing
[12:35:19] jhass: urbandictionary to the rescue!
[12:35:26] Darkwater: hop on omegle
[12:35:33] but3k4: has joined #ruby
[12:35:37] Darkwater: 1-5 retries max until someone asks your kik username
[12:35:38] shum: has joined #ruby
[12:35:44] baweaver: aka nsfw talk from hr fun time
[12:35:49] jhass: "A smartphone app that allows users to chat with eachother, for free, whether they have an iPhone, iPod Touch, Blackberry, or Android device."
[12:36:04] bougyman: yeah that definition makes no sense
[12:36:08] krisquigley: but kik is a typo of lol, somewhat like teh
[12:36:19] Darkwater: more like rgw
[12:37:31] greenbagels: has joined #ruby
[12:37:44] francoi__: has joined #ruby
[12:38:12] shevy: you mean because the keys are nearby
[12:38:29] bruno-: has joined #ruby
[12:38:35] krisquigley: But then became cool to use kik instead of lol, kinda like intentionally writing teh
[12:38:40] shevy: perhaps we need to donate for a new keyboard for Darkwater
[12:38:47] skade: has joined #ruby
[12:39:23] Darkwater: I'll accept a tenkeyless with blank keycaps and brown or blue switches tyvm
[12:39:29] Darkwater: s/or blue //
[12:39:32] starfox_sf: has joined #ruby
[12:40:29] sdothum: has joined #ruby
[12:41:00] mengu__: has joined #ruby
[12:41:19] evanjs: has joined #ruby
[12:43:18] Scrofff: has joined #ruby
[12:43:27] krisquigley: argh, Darkwater. You've got me shopping for blank keycapped keyboards now
[12:43:28] Macaveli: has joined #ruby
[12:43:32] bruno-_: has joined #ruby
[12:43:42] Darkwater: the virus spreeaads
[12:44:19] Darkwater: my current keyboard has labels on the front sides
[12:44:24] Darkwater: which isn't too bad either
[12:44:41] Darkwater: I kind of blankified my F# row by turning them around, heh
[12:45:44] yoongkang: has joined #ruby
[12:46:05] Master44: has joined #ruby
[12:46:08] futilegames: has joined #ruby
[12:46:15] baweaver: A keyboard is not a keyboard unless its mighty roar strikes fear into the hearts of n00bs everywhere as you brandish firey lines
[12:46:20] sharpmachine: has joined #ruby
[12:46:22] lxsameer: has joined #ruby
[12:46:25] michael_mbp: has joined #ruby
[12:46:33] Master44: https://gist.github.com/AnonymousWS/2bef5c13311676ae9e61
[12:46:49] Master44: Look at the 5 last lines why doesnt it break?
[12:47:15] krisquigley: theres no condition for the elsif
[12:47:35] Master44: what you mean
[12:47:41] endorphine_: has joined #ruby
[12:47:59] stoogenmeyer: has joined #ruby
[12:48:02] krisquigley: whats the last elsif checking for?
[12:48:03] michael_mbp: has joined #ruby
[12:48:12] Master44: if it doesnt put anything between a and z
[12:48:22] Master44: it will put "Du er digg" and exit
[12:48:29] krisquigley: should just be else then
[12:48:40] arup_r: has joined #ruby
[12:49:07] Master44: why else not elsif?
[12:49:20] krisquigley: elsif is just another if
[12:49:36] Master44: and else is?
[12:49:36] krisquigley: it needs a conditional, something to compare, to see if it is true
[12:49:38] nonparfumee: has joined #ruby
[12:49:41] ldnunes: has joined #ruby
[12:49:45] krisquigley: elsif is ruby for else if
[12:49:53] coderhs: has joined #ruby
[12:49:53] hdev1: has joined #ruby
[12:50:09] livathinos: has joined #ruby
[12:50:14] Master44: and the else meeans?
[12:50:16] krisquigley: If none of the `if`'s match, then else will run
[12:50:16] Master44: like onyl else
[12:50:28] Master44: thanks man! :D
[12:50:37] Master44: You are very nice guy :) Thanks, bye
[12:51:01] krisquigley: I might have to fork that project
[12:51:24] Master44: but is it possible to break when its if
[12:51:24] Master44: like if user_input == "yes" break
[12:52:19] Master44: could be the same code
[12:52:23] Macaveli: has joined #ruby
[12:52:28] Master44: just I had to end it all the time?
[12:52:40] francoi__: has joined #ruby
[12:52:43] Master44: so its like a shortcut?
[12:52:54] krisquigley: if you want it to break after any key press, then you don't need a while loop
[12:53:18] Master44: I want it to run every time you press a-z
[12:53:40] Master44: but something else like sadjj or 2 it will say: du er digg, and break
[12:54:00] Master44: and that works now :)
[12:54:36] JoshL: has joined #ruby
[12:55:20] Scroff: has joined #ruby
[12:56:32] dangerousdave: who would win in a fight between shevy and bhaak?
[12:57:10] shevy: is he my weight class
[12:57:14] Darkwater: casually? shevy
[12:57:19] Darkwater: to the death? bhaak
[12:57:26] shevy: and at which temperature will we fight
[12:57:31] krisquigley: haha, I like how you are go quiet when that guy came in...
[12:57:35] shevy: I am good in the cold but useless during heat
[12:58:05] Scroff: has joined #ruby
[13:00:15] s2013: has joined #ruby
[13:01:25] foucist: has joined #ruby
[13:01:40] francoi__: has joined #ruby
[13:01:40] bmurt: has joined #ruby
[13:02:34] balazs: has joined #ruby
[13:02:38] mdz_: has joined #ruby
[13:02:51] sdothum: has joined #ruby
[13:03:24] Master44: a constant its not constant? wtf why
[13:03:43] Master44: thats bullshit
[13:03:53] apeiros: master44: watch your language
[13:04:14] shevy: master44 yeah the name is strange
[13:04:21] shevy: apeiros also wondered about the name :-)
[13:04:34] apeiros: I wondered more about the current implementation
[13:04:45] shevy: master44 the general philosophy in ruby is that, if you want to do something, you can do it
[13:04:52] apeiros: a constant (should) constantly reference the same object. it does not guarantee that this object is immutable.
[13:04:53] lkba_: has joined #ruby
[13:05:02] adac: has joined #ruby
[13:05:17] shevy: you can change constants in ruby
[13:05:18] adac: does someone know how to transform a hex color into rgba?
[13:05:24] apeiros: the part which can be strange is that even the "constantly references the same object" is not guaranteed. reassigning only gives a warning. and remove_const allows reassignment even without warning.
[13:05:28] Darkwater: what's so special about constants in ruby then
[13:05:30] apeiros: as for the why: only matz knows.
[13:05:41] atomical: has joined #ruby
[13:05:59] apeiros: Darkwater: the speciality of constants is the scope
[13:06:06] shevy: yeah, .const_set triggers no warning. I found that weird too, does not seem consistent
[13:06:08] apeiros: globally visible with a kind of search path
[13:06:29] shevy: Darkwater every class and module name is a constant
[13:06:37] apeiros: shevy: gives a warning here
[13:06:41] JDiPierro: has joined #ruby
[13:06:47] apeiros: that is, if the constant exists already
[13:07:27] Master44: Is it a way to make a variable that is constant
[13:07:36] Master44: that you really cant change?
[13:07:43] shevy: you are right... strange
[13:07:47] apeiros: master44: there's almost nothing in ruby which you really can't change
[13:07:49] shevy: I thought it triggered no warning
[13:08:24] shevy: master44 everything can be changed; perhaps not objects that were .freeze frozen
[13:08:33] apeiros: you can freeze the class/module which contains the constant
[13:08:59] apeiros: >> class Foo; Bar = 1; end; Foo.freeze; class Foo; Bar = 2; end
[13:09:00] ruboto: apeiros # => can't modify frozen #<Class:Foo> (RuntimeError) ...check link for more (https://eval.in/380533)
[13:09:05] shevy: class Hell; end; hell = Hell.new; hell.freeze
[13:09:21] Darkwater: >> a = 5; a.freeze; a = 10
[13:09:22] ruboto: Darkwater # => 10 (https://eval.in/380537)
[13:09:28] Master44: can I frozen a variable?
[13:09:40] apeiros: freeze affects objects, not variables
[13:10:10] apeiros: but you should ask yourself *why* you want to make changing it impossible
[13:10:22] _joes_: has joined #ruby
[13:10:51] JDiPierro: has joined #ruby
[13:10:55] Master44: it should be a way to not change it
[13:11:00] Master44: like if you have a huge code
[13:11:08] Master44: and dont remember every variable
[13:11:17] Master44: and you set a variable equal to an old variable
[13:11:31] Master44: and your program its fcked..
[13:11:33] lessless: has joined #ruby
[13:11:34] vyorkin2: has joined #ruby
[13:11:40] Master44: but sure, idk :P
[13:11:41] apeiros: then you failed to properly segment your code
[13:11:47] dangerousdave: I have an array of ruby objects, and I would like to find duplicates based on a subset of their attribute
[13:11:49] apeiros: and constants already protect you from that
[13:11:53] apeiros: they give you a warning
[13:12:14] sepp2k: has joined #ruby
[13:12:14] jhass: dangerousdave: find the duplicates or remove them?
[13:12:34] apeiros: dangerousdave: find -> group_by
[13:12:34] decoponio: has joined #ruby
[13:12:50] andikr: has joined #ruby
[13:12:55] dangerousdave: jhass: just find, and report them
[13:12:58] dreinull75: has joined #ruby
[13:13:06] jhass: then see above
[13:13:59] bhaak: dangerousdave: you shouldn't ask questions were the answer might involve brutal mutilation of everybody involved
[13:14:14] Macaveli: has joined #ruby
[13:14:33] dangerousdave: bhaak: just a thought experiment
[13:14:41] dblessing: has joined #ruby
[13:14:46] dangerousdave: bhaak: my money would be on you
[13:14:54] hinbody: has joined #ruby
[13:15:02] bhaak: you never know if you are sitting in front of a computer that implements the Remote Strangulation Protocol :-)
[13:15:06] Macaveli: has joined #ruby
[13:15:07] enebo: has joined #ruby
[13:16:13] diegoviola: has joined #ruby
[13:16:53] banister: has joined #ruby
[13:20:15] malconis: has joined #ruby
[13:22:02] sharpmachine: has joined #ruby
[13:22:52] Master44: If you want to make a website and ruby as beckend laguange. Is it very hard ?
[13:22:53] Master44: You need to know ruby good to do that?
[13:22:58] adimircolen: has joined #ruby
[13:23:55] apeiros: master44: you need to know ruby just as good as any other language you'd use
[13:23:56] serivich: has joined #ruby
[13:24:29] tbuehlmann: I don't understand the question. is it very hard to fell a tree without having an axe?
[13:24:43] jenrzzz: has joined #ruby
[13:24:51] Master44: if I want to make a basic website
[13:25:10] Master44: to I have to learn the entire ruby, or just some basics?
[13:25:36] apeiros: you'll not need to learn the entire ruby for almost anything
[13:26:03] Master44: but like very much of it? to make a basic website
[13:26:05] Darkwater: you'll learn as you go
[13:26:20] Darkwater: you'll need more knowledge of html/css/js than ruby, probably
[13:26:25] apeiros: master44: you'll need 17.5% of ruby for that
[13:26:28] apeiros: does that help you?
[13:26:42] adaedra: (which is wrong)
[13:26:52] Darkwater: yeah you obviously need at least 18%
[13:26:56] apeiros: the question is nonsensical. there's no possible answer which would help you.
[13:27:08] apeiros: no, you don't need all of ruby. no, we can't tell you how much of it.
[13:27:09] Palmer11: has joined #ruby
[13:27:16] mistnim: has joined #ruby
[13:27:26] senayar: has joined #ruby
[13:27:26] apeiros: and even less how long it'll take you to learn that unknown amount of ruby
[13:27:30] tomphp: has joined #ruby
[13:27:31] ruv: has joined #ruby
[13:28:06] apeiros: there's people who did their first rails app in a couple of days
[13:28:14] apeiros: there's people who still struggle after weeks
[13:28:28] Master44: Its hard to learn ruby
[13:28:31] apeiros: and how it goes with different frameworks, or even without any framework at all???
[13:28:38] apeiros: IMO no. but I'm not you.
[13:28:42] micmus: has joined #ruby
[13:28:43] Master44: because I read englich book and I dont understand englich
[13:28:44] adaedra: There are people who got eaten by their rails app
[13:28:53] apeiros: without english it will be hard
[13:28:54] ndrei: has joined #ruby
[13:28:55] Master44: and youtube because they talk englich xD
[13:29:00] jhass: we should do something like UGT for time amounts
[13:29:13] adaedra: find a book in your native language then?
[13:29:22] Master44: no ruby books their I think
[13:29:24] mistnim: hello, is there a very simple ruby http server, I can use for a fast thing?
[13:29:29] RegulationD: has joined #ruby
[13:29:33] ljarvis: mistnim: yes there are lots
[13:29:46] jhass: mistnim: what's the fast thing?
[13:29:46] adaedra: mistnim: rack is the very low, above there is sinatra and many others
[13:29:47] apeiros: mistnim: puma, unicorn, thin
[13:29:58] apeiros: adaedra: those aren't servers ;-)
[13:30:07] arup_r: has joined #ruby
[13:30:13] mistnim: jhass: it need to return just a string
[13:30:15] apeiros: but then again??? maybe mistnim isn't really looking for servers???
[13:30:16] withnale_: has joined #ruby
[13:30:25] adaedra: apeiros: but puma unicorn & thin won't do anything on their own
[13:30:30] apeiros: mistnim: all server responses are "just a string"
[13:30:36] justintv90: has joined #ruby
[13:30:41] apeiros: adaedra: neither will sinatra or rack
[13:30:41] jhass: mistnim: how does the string change?
[13:30:58] mistnim: jhass: is read from file
[13:31:12] apeiros: mistnim: and why do you want to go through ruby?
[13:31:13] jhass: mistnim: why don't you configure nginx or apache to serve that file?
[13:31:21] apeiros: static files are better served from a dedicated webserver
[13:31:27] mistnim: jhass the https user is just me, just for one time
[13:31:45] Darkwater: for a very simple static http server I like python
[13:31:51] Darkwater: something like python3 -m http.server
[13:31:51] adaedra: mistnim: i don't think there is something like that in ruby, ptyhon has simplehttpserver
[13:31:55] withnale_: has joined #ruby
[13:32:02] jhass: mistnim: ruby -run -ehttpd ?
[13:32:02] endash: has joined #ruby
[13:32:09] leafybasil: has joined #ruby
[13:32:12] ziprar: has joined #ruby
[13:32:12] ziprar: has joined #ruby
[13:32:22] qwertme: has joined #ruby
[13:32:25] justintv90: has joined #ruby
[13:32:41] munen: has joined #ruby
[13:32:55] jhass: eh, eh, ruby -run -ehttpd -p 8080 .
[13:33:09] tomphp: has joined #ruby
[13:33:12] francoi__: has joined #ruby
[13:33:23] tbuehlmann: wrote something like it: https://github.com/tbuehlmann/pasu
[13:33:29] Darkwater: jhass: can't open 8080
[13:33:36] withnale_: has joined #ruby
[13:33:48] justintv90: has joined #ruby
[13:33:57] axl_: has joined #ruby
[13:34:01] jhass: meh, it wants the doc root first
[13:34:08] rdark: has joined #ruby
[13:34:10] jhass: ruby -run -ehttpd . -p 8080
[13:34:11] havenwood: ruby -run -ehttpd . -p 8080
[13:34:27] mistnim: well to explain, let's say I just want to send the temperature value of my cpu and I can read it from my phone everywhere
[13:34:43] justintv90: has joined #ruby
[13:34:43] uris: has joined #ruby
[13:34:44] Darkwater: write a small sinatra app
[13:34:59] flori: has joined #ruby
[13:35:00] aryaching: has joined #ruby
[13:35:11] withnale_: has joined #ruby
[13:35:17] Darkwater: get '/temperature' do File.read('/sys/whatever/temperature') end
[13:35:51] justintv90: has joined #ruby
[13:35:54] terabytest: has joined #ruby
[13:35:57] Darkwater: ooh ooh ooh
[13:36:05] Darkwater: maybe I'll write an app for stuff like this
[13:36:20] mistnim: I don't know sinatra, I know just basic ruby for now
[13:36:31] Darkwater: like, add a text widget that loads text from http://something/blah every minute
[13:36:44] justintv90: has joined #ruby
[13:36:47] Darkwater: mistnim: sinatra is very easy
[13:36:52] withnale_: has joined #ruby
[13:36:53] griffindy: has joined #ruby
[13:36:54] ProteusX: sinatra is pretty easy to use due to it being a microframework
[13:36:55] ZeD-: has joined #ruby
[13:37:02] Darkwater: you literally require 'sinatra' and write what I just wrote
[13:37:11] Darkwater: get '/foo' { 'bar' }
[13:37:15] Darkwater: then run it
[13:37:21] mistnim: Darkwater: does it work as an http server too?
[13:37:22] Darkwater: and going to localhost/foo will return bar
[13:37:31] mistnim: ok I try thanks
[13:37:41] justintv90: has joined #ruby
[13:37:46] Darkwater: well not as an actual server, but you can use it like you want to
[13:37:52] JCOE: has joined #ruby
[13:38:29] withnale_: has joined #ruby
[13:38:39] Darkwater: gem install sinatra; echo -e 'require "sinatra" \n get "/foo" do \n "foobar!" \n end' > server.rb; ruby server.rb
[13:38:42] Darkwater: should work
[13:38:58] justintv90: has joined #ruby
[13:39:03] jhass: mistnim: see and if you initially asked "how can I write a small web application to read my PCs temperature" you had gotten that answer promptly ;)
[13:39:47] Darkwater: yeah, it's cool to think about what you really need, but when asking for help it's better to ask a question with a lot of context
[13:39:50] ZeD-: trying to encode a value in base64, but the value consists of a string and a variable - something along the lines of - var_encoded = Base64.encode64("string":var), obviously in this syntax it does not work, any suggestions ?
[13:40:07] mrmargolis: has joined #ruby
[13:40:10] jhass: ZeD-: "string #{interpolation}"
[13:40:12] ZeD-: er, the ":" is part of the string
[13:40:13] justintv90: has joined #ruby
[13:40:23] ZeD-: hm, lemme try that
[13:40:28] withnale_: has joined #ruby
[13:40:30] Darkwater: "string: #{var}"
[13:40:45] Darkwater: alternatively "string: " + var
[13:40:53] Scrofff: has joined #ruby
[13:41:03] jhass: no that's not a good alternative ever :P
[13:41:05] ljarvis: which isn't the same thing
[13:41:08] justintv90: has joined #ruby
[13:41:11] kobain: has joined #ruby
[13:41:16] bantic: has joined #ruby
[13:41:24] mistnim: jhass yes I just made that simple context to get an answer, what I need is actually a bit more complicated, but longer to explain
[13:41:31] Darkwater: if it's a string it is
[13:41:35] Darkwater: jhass: str1 + str2
[13:41:41] paulcsmith: has joined #ruby
[13:41:50] Darkwater: I'd rather write that than "#{str1}#{str2}"
[13:41:56] jhass: I know the devil, I mean string concatenation
[13:41:58] ljarvis: who said it's a string
[13:42:07] Darkwater: that's true
[13:42:08] justintv90: has joined #ruby
[13:42:09] mister_solo: has joined #ruby
[13:42:10] withnale_: has joined #ruby
[13:42:29] Darkwater: actualy would it really matter
[13:42:39] ZeD-: shweet! that worked, thanks!
[13:42:43] Darkwater: when would "foo #{bar}" be different from "foo " + bar?
[13:42:44] davedev24_: has joined #ruby
[13:42:56] jhass: everytime
[13:42:59] ljarvis: >> "foo " + 1
[13:43:00] ruboto: ljarvis # => no implicit conversion of Fixnum into String (TypeError) ...check link for more (https://eval.in/380549)
[13:43:02] justintv90: has joined #ruby
[13:43:10] DoubleMalt: has joined #ruby
[13:43:15] jhass: "foo #{bar}" is ("foo " << bar.to_s)
[13:43:21] ljarvis: "foo #{bar}" is the same as "foo " << bar.to_s
[13:43:53] justintv90: has joined #ruby
[13:44:08] ljarvis: so yeah, that's generally why I avoid + (interpolation implicitly calls #to_s which is nice)
[13:44:32] mister_s_: has joined #ruby
[13:44:38] JDiPierro: has joined #ruby
[13:44:39] justintv90: has joined #ruby
[13:44:40] ndrei: has joined #ruby
[13:44:42] mistnim: Darkwater: it works! but i need it on port 80
[13:45:12] Darkwater: then add -p 80
[13:45:30] justintv90: has joined #ruby
[13:45:46] Darkwater: though you'll have to run it as root then
[13:45:49] Darkwater: which could be dangerous
[13:45:58] Darkwater: so think about it for a sec
[13:46:06] mistnim: Darkwater: add -p 80 where?
[13:46:12] codecop: has joined #ruby
[13:46:12] ljarvis: mistnim: is this for a production app?
[13:46:13] Darkwater: ruby server.rb -p 80
[13:46:18] mistnim: ljarvis: no
[13:46:19] justintv90: has joined #ruby
[13:46:50] al2o3-cr: ZeD-: you can also encode using pack/unpack :P
[13:47:00] jhass: mistnim: why do you need it on port 80?
[13:47:09] justintv90: has joined #ruby
[13:47:20] jphenow: has joined #ruby
[13:47:22] mistnim: jhass: connect from my phone
[13:47:31] banister: has joined #ruby
[13:47:40] adaedra: you can connect to a different port using :port in the URI
[13:47:44] jhass: mistnim: I see no reason why that would require that
[13:47:45] adaedra: i.e. example.org:1337
[13:48:05] mistnim: ops, I actually the server has only some open ports
[13:48:14] jhass: open another one then?
[13:48:28] ljarvis: i have pliers
[13:48:37] simplyianm: has joined #ruby
[13:48:39] jhass: if we're talking about network internal port forwarding also note that the external and internal port can differ
[13:48:50] momomomomo: has joined #ruby
[13:49:04] ljarvis: this is screaming for a reverse proxy but im scared to suggest it
[13:49:25] jhass: boxcars <3
[13:49:26] Darkwater: ljarvis: it's probably just a small project that's not worth overengineering
[13:49:28] mistnim: not my server, I can't change open ports
[13:49:43] jhass: but you can run stuff as root? oO
[13:50:08] mistnim: jhass yes, it's, how do you call it? Virtual server
[13:50:29] revath1: has joined #ruby
[13:50:43] adaedra: you're in a container/VM/jail?
[13:50:47] ljarvis: jhass: that looks pretty nice
[13:50:49] aapole: has joined #ruby
[13:50:50] coderhs: has joined #ruby
[13:50:57] jhass: yeah, use it as dev proxy
[13:51:17] jhass: I should write a wrapper so I can do bxctl add foo.dev 1337
[13:51:32] ljarvis: I use pow locally heh
[13:51:54] jhass: I let my DNS respond with for *.dev
[13:52:34] jhass: -> magic free pow on linux :P
[13:52:43] ljarvis: yeah i use that and nginx on linux
[13:52:52] ljarvis: bit overboard but i love nginx
[13:53:08] startupality: has joined #ruby
[13:53:20] slawrence00: has joined #ruby
[13:53:24] casadei: has joined #ruby
[13:53:34] BlueProtoman: has joined #ruby
[13:53:36] ndrei: has joined #ruby
[13:53:41] BlueProtoman: I'm trying to install jekyll in Ubuntu 14.04, but I get this error when compiling native extensions. http://pastebin.com/YXxE1DA0 Any thoughts?
[13:53:41] ruboto: BlueProtoman, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[13:54:15] hsps_: has joined #ruby
[13:54:32] a1fa: has left #ruby: ()
[13:54:49] francoi__: has joined #ruby
[13:55:33] mistnim: btw, server has 8000 open, and that doesn't require root, I can write my little app, thanks all :)
[13:57:47] sarkyniin: has joined #ruby
[13:57:55] iBloodLust: has joined #ruby
[13:58:06] Macaveli_: has joined #ruby
[13:59:10] commondream: has joined #ruby
[13:59:14] rikkipitt: has joined #ruby
[13:59:39] zacstewart: has joined #ruby
[14:00:58] Master44: what does this mean: % in ruby math?
[14:01:27] BlueProtoman: Same for just about every language
[14:01:37] apeiros: master44: you can look that up in the docs: `ri Fixnum#%` for example
[14:01:46] apeiros: master44: no, ** is exponentiation
[14:02:02] xehbit: has joined #ruby
[14:02:07] iBloodLust: modulo returns the remainder instead of the quotient
[14:02:09] RegulationD: has joined #ruby
[14:02:43] Master44: remaider of what?
[14:02:49] Scroff: has joined #ruby
[14:02:50] iBloodLust: of a division problem
[14:02:51] apeiros: of the division
[14:03:01] iBloodLust: like 5 % 3 = 2
[14:03:01] xehbit: has joined #ruby
[14:03:09] iBloodLust: while 5 / 3 = 1
[14:03:11] xehbit: has left #ruby: ()
[14:03:55] msnyon_: has joined #ruby
[14:04:03] apeiros: https://en.wikipedia.org/wiki/Modulo_operation
[14:04:38] roolo_: has joined #ruby
[14:04:50] baweaver: has joined #ruby
[14:05:08] c355E3B: has joined #ruby
[14:05:15] yqt: has joined #ruby
[14:05:49] Polysics: has joined #ruby
[14:05:55] vikaton: has joined #ruby
[14:06:05] ZeD-: has left #ruby: ()
[14:06:16] jhooker: has joined #ruby
[14:07:20] axl_: has joined #ruby
[14:12:30] axl_: has joined #ruby
[14:12:35] livathinos: has joined #ruby
[14:13:02] francoi__: has joined #ruby
[14:13:55] allcentury: has joined #ruby
[14:14:58] jerius: has joined #ruby
[14:16:10] chinmay_dd: has joined #ruby
[14:19:23] ahmetkapikiran: has joined #ruby
[14:22:00] podman: has joined #ruby
[14:22:24] mujou: has joined #ruby
[14:22:39] Master44: in ruby, its gets.chomp and gets automaticly read as a string?
[14:22:41] tsou: has joined #ruby
[14:23:03] Darkwater: gets returns a string (or nil), yes
[14:23:20] freerobby: has joined #ruby
[14:24:30] strixd: has joined #ruby
[14:25:16] Master44: can I asign variable to a variable=
[14:26:16] baweaver: has joined #ruby
[14:26:44] nertzy: has joined #ruby
[14:26:54] Spami: has joined #ruby
[14:28:17] starfox_sf: has joined #ruby
[14:28:22] Master44: so I can do m = gets.chomp
[14:28:22] Master44: and go if user_input = m puts ".."
[14:28:47] evanjs: has joined #ruby
[14:29:21] hinbody: has joined #ruby
[14:29:27] dfockler: has joined #ruby
[14:30:06] dANO-: has joined #ruby
[14:30:09] Darkwater: that probably doesn't do what you want
[14:30:36] mrmargol_: has joined #ruby
[14:30:36] Master44: Ihttps://gist.github.com/AnonymousWS/d79313298638a90e0540
[14:30:36] Master44: When the quiz its done I want the program to tell how many correct answers they made
[14:31:27] Darkwater: yeah okay that works
[14:31:33] Darkwater: well, == not =
[14:31:37] Darkwater: = sets, == compares
[14:31:48] al2o3-cr: master44: use counter variable
[14:32:04] mimrock: has joined #ruby
[14:32:55] dopie: has joined #ruby
[14:33:06] Darkwater: master44: hm?
[14:33:26] mdz_: has joined #ruby
[14:33:41] Master44: https://gist.github.com/AnonymousWS/d79313298638a90e0540
[14:33:41] Master44: anyone can help me with this? I want it to come up how many answers they have correct
[14:34:23] devdazed: has joined #ruby
[14:34:25] francoi__: has joined #ruby
[14:34:47] Darkwater: oh like that
[14:34:51] Darkwater: yeah, set something to 0
[14:35:05] Darkwater: then something += 1 each time it's correct
[14:35:14] Darkwater: counter = 0
[14:35:23] Darkwater: counter += 1
[14:35:32] Darkwater: puts counter
[14:35:35] mleung: has joined #ruby
[14:35:46] war_pigs: has joined #ruby
[14:35:50] duggiefresh: has joined #ruby
[14:36:10] jhooker: has joined #ruby
[14:36:24] alex88: has joined #ruby
[14:37:25] war_pigs: has joined #ruby
[14:38:05] Master44: darkwater can you gist it?
[14:38:05] Master44: I am like really bad with ruby
[14:38:15] Master44: can you gisthub the code I can do
[14:38:19] Darkwater: try your best
[14:38:26] Darkwater: put this on top: counter = 0
[14:38:38] BlueProtoman: has left #ruby: ()
[14:38:42] Darkwater: put this in each if block, right after telling the user they're correct: counter += 1
[14:39:01] Darkwater: at the very end, do something like this: puts "Correct answers: #{counter}"
[14:39:19] Master44: cause I dont really understand
[14:39:38] Darkwater: then you don't understand the code you've got right now
[14:41:04] AhabsBeard: has joined #ruby
[14:41:27] jphenow: has joined #ruby
[14:41:31] foucist: has left #ruby: ()
[14:41:37] Master44: yes I understand but not the block thing, undertsand now thanks! :D
[14:41:40] Scrofff: has joined #ruby
[14:42:41] al2o3-cr: master44: https://gist.github.com/anonymous/c422364d691147338007
[14:44:20] AhabsBeard: has joined #ruby
[14:45:46] tvw: has joined #ruby
[14:46:25] egrm: has joined #ruby
[14:47:08] Agoldfish: has joined #ruby
[14:49:33] Master44: has joined #ruby
[14:50:00] JakFrist: has joined #ruby
[14:50:07] NeverDie: has joined #ruby
[14:50:22] Agoldfish: has joined #ruby
[14:50:39] qwertme: has joined #ruby
[14:50:47] egrm: what's up?
[14:50:55] egrm: Darkwater
[14:51:12] Darkwater: screw internships
[14:51:41] Darkwater: the work is fun
[14:51:46] Darkwater: writing reports for school isn't
[14:51:53] egrm: which year are you?
[14:52:00] Darkwater: 3rd out of 4
[14:52:20] Darkwater: college in NL
[14:52:25] qiukun: has joined #ruby
[14:52:32] Darkwater: probably works different from your local school system
[14:53:06] egrm: hi qiukun
[14:53:07] qiukun: how could i write a method named eval which calls eval inside?
[14:53:12] cmisenas: has joined #ruby
[14:53:33] egrm: yeah, why would you?
[14:53:34] qiukun: to open a ultimate backdoor
[14:53:34] Darkwater: burn the witch!
[14:54:00] dgutierrez1287: has joined #ruby
[14:54:04] egrm: Darkwater is your program outdated?
[14:54:26] egrm: Darkwater I mean the internship.
[14:54:31] AhabsBeard: has joined #ruby
[14:54:34] Scroff: has joined #ruby
[14:54:39] Darkwater: what program do you mean?
[14:54:42] Darkwater: school program?
[14:54:44] qiukun: well there would be chance that you're writing a method named A which call a builtin A right
[14:54:51] al2o3-cr: Could you do something like define_method(:initialize) { |@arg1, @arg2| } in earlier versions of ruby?
[14:55:04] mdw: has joined #ruby
[14:55:53] Darkwater: hi master44
[14:56:34] Master44: I still dont get it
[14:56:45] Master44: do I need to have the :
[14:56:57] fuzzyhorns: has joined #ruby
[14:57:01] fuzzyhorns: confused about something
[14:57:19] fuzzyhorns: main ?? Time.now.getlocal("-09:00") => 2015-06-12 05:56:31 -0900
[14:57:25] Master44: I dont get that thing
[14:57:26] _seanc_: has joined #ruby
[14:57:31] Master44: do I have to create another if block?
[14:57:33] fuzzyhorns: but main ?? Time.now.getlocal(-9) => 2015-06-12 14:56:31 -0000
[14:57:37] Master44: or just paste the code after the if block=
[14:57:43] Darkwater: master44: what code
[14:58:07] fuzzyhorns: why would -9 and "-09:00" behave differently?
[14:58:18] finisherr: has joined #ruby
[14:58:20] Darkwater: fuzzyhorns: welcome to the world of programming with times
[14:58:34] fuzzyhorns: working with time always sucks, i agree
[14:58:43] fuzzyhorns: but this to me seems like a Ruby lang level inconsistency
[14:58:45] Master44: i was the quiz guy code
[14:58:49] emilkarl: has joined #ruby
[14:58:49] mrmargolis: has joined #ruby
[14:58:52] apofis: has joined #ruby
[14:58:59] Master44: + 1 point every time
[14:59:00] Darkwater: master44: I know, but what code are you talking about specifically
[14:59:07] Darkwater: I sent you three lines
[14:59:17] Darkwater: and told you where each one goes
[14:59:30] redlegion: fuzzyhorns, that's probably why Unix time is simply the number of seconds elapsed since 1970
[14:59:37] Master44: I will gist it
[14:59:47] fuzzyhorns: redlegion: lol if only i could always use that!
[14:59:49] francoi__: has joined #ruby
[15:00:04] fuzzyhorns: anyone know where i can look up the official ruby spec to see what params it is meant to support and how?
[15:00:11] fuzzyhorns: this seems wrong to me, and if it is, ill report it to core team
[15:00:16] Master44: https://gist.github.com/AnonymousWS/ae233d17abcefa556673
[15:00:26] Master44: darkwater what is my mistake
[15:00:47] dfinninger: has joined #ruby
[15:01:18] AhabsBeard: has joined #ruby
[15:01:23] al2o3-cr: master44: I gisted how'd you do it, but I think you pinged out
[15:02:06] al2o3-cr: master44: https://gist.github.com/anonymous/c422364d691147338007 # with a counter variable
[15:02:09] Darkwater: master44: first off, num += 1 goes on its own line
[15:02:11] egrm: now that's completely stupid https://github.com/egrm/random-name-generator
[15:02:28] Darkwater: second off, there's a lone += near the end which is a syntax error
[15:02:34] Darkwater: think you mispasted it there
[15:03:24] AhabsBeard: has joined #ruby
[15:03:43] davidhq: has joined #ruby
[15:04:49] Master44: ok thanks guys !! :D
[15:05:55] ogpastaling: has joined #ruby
[15:06:09] dgarstang: has joined #ruby
[15:06:32] dgarstang: Can someone point me to an example of using the aws-sdk v2 in ruby to scan and filter ec2 instances? I can't find examples anywhere. :(
[15:06:53] theery: has joined #ruby
[15:07:04] senayar: has joined #ruby
[15:07:04] senayar: has joined #ruby
[15:07:23] hoov: has joined #ruby
[15:08:30] ItSANgo: has joined #ruby
[15:09:03] ahmetkapikiran: has joined #ruby
[15:09:57] dgarstang: Can someone point me to an example of using the aws-sdk v2 in ruby to scan and filter ec2 instances? I can't find examples anywhere. :(
[15:10:13] theery_: has joined #ruby
[15:10:46] Kricir: has joined #ruby
[15:10:52] arooni-mobile: has joined #ruby
[15:10:59] bootstrappm: has joined #ruby
[15:11:50] ixti: has joined #ruby
[15:11:56] The_Phoenix: has joined #ruby
[15:13:02] dudedudeman: bootstrappm: can you make my bootstrap work?
[15:13:05] mdz_: has joined #ruby
[15:13:14] bootstrappm: bootstrap CSS?
[15:13:31] bootstrappm: if yes then the answer is no :P :P
[15:13:33] dgarstang: Can someone point me to an example of using the aws-sdk v2 in ruby to scan and filter ec2 instances? I can't find examples anywhere. :(
[15:13:43] ljarvis: dgarstang: please stop spamming
[15:13:46] bootstrappm: dgarstang: hey i just did this!
[15:13:47] Eiam: has joined #ruby
[15:13:47] jpfuentes2: has joined #ruby
[15:14:23] dgarstang: bootstrappm: did what? easily irritated ljarvis ?
[15:14:36] bootstrappm: you've angered the gods dgarstang
[15:14:40] dgarstang: nothing ever works in ruby. makes my blood pressure go up. :(
[15:14:48] jenrzzz: has joined #ruby
[15:14:48] bootstrappm: and no, worked with the aws sdk
[15:14:58] bootstrappm: and the problem is likely between the keyboard and the chair ;)
[15:14:59] dgarstang: bootstrappm: v2?
[15:15:07] bootstrappm: hold on, I'll pass you a gist
[15:15:21] dgarstang: bootstrappm: any examples? it's 8:15am and ruby already makes me want to slash my wrists
[15:15:41] bootstrappm: if you're at work at 8:15am i think your wrist slashing tendencies are independent of ruby
[15:15:50] dgarstang: bootstrappm: bay area traffic...
[15:16:02] bootstrappm: i meant too early, not too late ;)
[15:16:08] bootstrappm: 9:15 here, i usually start at 10
[15:16:14] dgarstang: bootstrappm: i know... gotta leave by 7am to avoid the traffic
[15:16:37] bootstrappm: so here's the stuff i wrote a bit back to interface w/ s3: https://gist.github.com/frankpinto/4c5cc7d8272f994ea509
[15:16:41] dgarstang: bootstrappm: would be less rough if I could use python instead of ruby
[15:17:00] bootstrappm: uff now you're just trying to annoy people
[15:17:19] pontiki: has joined #ruby
[15:17:41] dgarstang: ruby makes my eyes bleed. 16 years in tech and nothing grates my skull like ruby does. Thanks bootstrappm but I need an ec2 example. None of the examples out there work, so I pretty much just have to copy and paste
[15:17:46] dudedudeman: ACTION raises hand for being at work at 8am... :/
[15:17:54] startupality: has joined #ruby
[15:18:05] ljarvis: dgarstang: or do the research and implement it properly
[15:18:06] mary5030: has joined #ruby
[15:18:07] bootstrappm: dgarstang, I know, we're using it as a starting point
[15:18:15] dgarstang: ljarvis: I am trying. i need examples.
[15:18:20] ljarvis: bootstrappm has offered you help, insulting Ruby isn't going to help you
[15:18:32] bootstrappm: all you _need_ to do is read the documentation ;), one sec and i'll send it to you
[15:18:43] bootstrappm: and yes please don't insult ruby, its near and dear to my heart
[15:18:59] dgarstang: bootstrappm: i dont use it by choice
[15:19:01] baweaver: has joined #ruby
[15:19:02] bootstrappm: it helped me get into an ivy league school at one point
[15:19:11] mary5030: has joined #ruby
[15:19:31] dgarstang: for some reason googling "aws-sdk v2 describe_instances" just gets me API references.
[15:19:52] dudedudeman: dgarstang: what's your language of choice?
[15:19:52] dgarstang: or... v1 examples, which don't work
[15:19:56] dgarstang: dudedudeman: python
[15:20:07] bootstrappm: so here's likely what you're looking for dgarstang http://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/Resource.html
[15:20:23] bootstrappm: well thats because you need to use the API ... ?
[15:21:09] dgarstang: bootstrappm: api references aren't much use without a context
[15:21:10] jhooker: has joined #ruby
[15:21:21] bootstrappm: they are if you're actually good at coding ;)
[15:21:26] bootstrappm: give me two seconds and i'll whip something up for you
[15:21:51] dgarstang: ec2 = Aws::EC2::Client.new(region:'us-west-2', credentials: creds) ... ec2.instances() ... gets me "undefined method `instances' for #<Aws::EC2::Client> (NoMethodError)"
[15:22:14] dgarstang: or maybe I need Aws::EC2::Resource.new()? I have no idea
[15:22:15] ndrei: has joined #ruby
[15:22:47] bootstrappm: so there's a client interface and a resource interface
[15:23:00] bootstrappm: the client interface is more low level. the resource interface is the one with the instances method
[15:23:04] dgarstang: which would I need to return ec2 instances?
[15:23:12] dgarstang: ok, lemme try that again
[15:23:13] imperator: has joined #ruby
[15:23:36] rcvalle: has joined #ruby
[15:23:37] Cache_Money: has joined #ruby
[15:23:48] dgarstang: would I apply a filter to ec2.instances() or something else?
[15:23:54] ljarvis: http://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/Resource.html#instances-instance_method
[15:23:57] ljarvis: read the docs
[15:24:32] dgarstang: ljarvis: that doc has ec2.instances() with no contextual information aboout how ec2 was derived.
[15:24:33] ljarvis: there's a "filters" hash key
[15:24:49] ljarvis: dgarstang: you don't need to care about ec2, you already have that part working
[15:24:56] bootstrappm: correct, filters hash key
[15:25:21] dgarstang: ljarvis: not until bootstrappm told me I needed Resource instead of Client. I don't know how you'd determine that from the API reference
[15:25:22] bootstrappm: so ec2.instances({filters: {name: 'blah'}})
[15:25:34] dgarstang: bootstrappm: k, thanks for your help
[15:25:44] bootstrappm: then you do an each on it to get every instance
[15:25:52] jhooker: has joined #ruby
[15:26:13] bootstrappm: now there's A BUNCH of possible filter parameters, you'll have to choose the ones that make sense for your use case from ljarvis's link
[15:26:18] dgarstang: bootstrappm: ah, each. for each {}!<{}[{{] of whatever it is
[15:26:32] imperator: looking at forwarding/delegation again for the first time in a while
[15:26:44] bootstrappm: correct. to get all instances: ec2.instances.each {|instance| instance.do_something }
[15:26:48] imperator: how do I delegate all the things to an object, instead of listing methods individually?
[15:26:50] riotjones: has joined #ruby
[15:26:59] ljarvis: imperator: Delegator?
[15:26:59] bootstrappm: also all of this won't work if you don't have your credentials setup in environment variables
[15:27:21] dgarstang: bootstrappm: no matter how many times I read stuff like that in ruby it makes no sense. might as well be russian. python ... for var in thing.. ruby for var in some horrible list of symbols and squiggles
[15:27:41] bootstrappm: ah, you might want to learn Perl or Smalltalk then dgarstang
[15:27:42] ljarvis: imperator: SimpleDelegator will "just work(tm)"
[15:27:48] bootstrappm: or just take the time to understand how Ruby woks
[15:27:49] dgarstang: bootstrappm: i started with perl in 1992
[15:27:58] imperator: ACTION looks
[15:27:58] dgarstang: bootstrappm: i've been trying for several years.
[15:28:02] bootstrappm: have you used map dgarstang?
[15:28:08] bootstrappm: that takes a block as a parameter in perl
[15:28:31] dgarstang: bootstrappm: sure, and that's one of many reasons I moved beyond perl. perl, and ruby, same thing.
[15:29:00] casadei: has joined #ruby
[15:29:18] bootstrappm: you moved beyond perl because you didn't like their closure syntax + use of iterators ... to another language with the same syntax and constructs?
[15:29:54] dgarstang: bootstrappm: because it's totally unreadable
[15:30:17] bantic: has joined #ruby
[15:30:21] imperator: ljarvis, hm, not getting it, looks like i need two classes?
[15:30:21] bootstrappm: well see, the thing with reading is ... everything is totally unreadable until you learn to read
[15:30:37] bootstrappm: i think there's a substantial community over here that would beg to differ with you
[15:30:41] ljarvis: imperator: do you want customer behaviour as well?
[15:30:47] bootstrappm: but hey, to each his own, let me know if you need any more help with that AWS thing
[15:30:55] umgrosscol: has joined #ruby
[15:30:58] dgarstang: bootstrappm: i generally read left to right, so var.each is very unintuitive
[15:31:10] dgarstang: bootstrappm: whereas FOR var IN something is very intuitive
[15:31:20] bootstrappm: that's because that's how you've learned to read, time to learn a different way to read ;)
[15:31:35] bootstrappm: read like a computer, they read right to left! :P
[15:31:40] wildroman2: has joined #ruby
[15:31:46] dgarstang: bootstrappm: english generally reads left ro right. anyway thanks again
[15:31:49] k3asd`: has joined #ruby
[15:31:52] bootstrappm: no prob, gluck!
[15:31:59] dstarh: has joined #ruby
[15:32:01] dgarstang: i guess ruby lets me do for var in something. ... but finding an example is tough
[15:32:07] havenwood: dgarstang: Your gauge of a language seems to be how easy it is to copy/paste.
[15:32:13] imperator: ljarvis, not sure what you mean; here's a snippet of what I'm trying to do: https://gist.github.com/djberg96/0ce360f7bd111c85cb02
[15:32:26] baweaver: has joined #ruby
[15:32:28] dgarstang: havenwood: how easy it is to read
[15:32:37] Peteykun: has joined #ruby
[15:32:53] havenwood: dgarstang: I, like you, have been doing Ruby for several years and it reads quite easily to me.
[15:32:58] dcarmich: has joined #ruby
[15:33:28] dgarstang: havenwood: you can read squiggle ok?
[15:33:29] zacstewart: has joined #ruby
[15:33:42] ljarvis: imperator: https://gist.github.com/leejarvis/47e2ec0b199a09b74afa
[15:33:54] sandstrom: has joined #ruby
[15:34:02] djbkd: has joined #ruby
[15:34:04] imperator: ljarvis, sweet, thanks!
[15:35:01] qwertme: has joined #ruby
[15:35:48] egrm: how're you doing guys. good morning indeed.
[15:35:49] varunwachaspati: has joined #ruby
[15:36:06] The_Phoenix: has joined #ruby
[15:36:09] leafybas_: has joined #ruby
[15:36:28] imperator: ljarvis, interesting, if i make __getobj__ private it bombs
[15:37:19] imperator: protected works ok though
[15:37:21] mistermocha: has joined #ruby
[15:37:23] bootstrappm: egrm: today IS a good morning! Been a rough week but I woke up ready to keep on kickin
[15:37:26] ljarvis: imperator: yeah it uses respond_to? which returns false if the method is private (by default)
[15:37:56] paulcsmith: has joined #ruby
[15:38:02] egrm: bootstrappm cool man
[15:38:17] imperator: ah, right; wouldn't expect a nested call bombout though
[15:38:30] imperator: anyway, this works great, thank you
[15:38:36] commondream: has joined #ruby
[15:39:12] dagda1: has joined #ruby
[15:39:36] tomphp: has joined #ruby
[15:39:40] commondream: has joined #ruby
[15:39:51] theery: has joined #ruby
[15:41:53] momomomomo: has joined #ruby
[15:44:22] simplyianm: has joined #ruby
[15:45:10] startupality: has joined #ruby
[15:45:58] _seanc_: has joined #ruby
[15:46:18] daveg__: has joined #ruby
[15:47:17] dgarstang: sigh... ec2.instances(filter: [{}]).each {|instance| puts instance } ... `validate!': unexpected value at params[:filter] (ArgumentError) Why?
[15:47:34] bruceleez: has joined #ruby
[15:48:40] bootstrappm: it looks like the writer of that method didn't expect anybody to use it with an empty (but set) filter dgarstang
[15:49:00] bootstrappm: if you're not gonna put info there just do ec2.instances.each
[15:49:11] gamename: has joined #ruby
[15:49:28] bootstrappm: or actually, no. they DID expect it but its an incorrect way to use it, hence the ArgumentError instead of runtime error
[15:49:38] apeiros: POLL: should it be A) #ruby.COUNTRY or B) #ruby-COUNTRY ?
[15:50:07] dgarstang: bootstrappm: ok, now I'm getting "`missing_credentials?': undefined method `set?'" .... but I've set credentials
[15:50:08] ljarvis: there must be others already?
[15:50:18] jbomo: has joined #ruby
[15:50:18] bootstrappm: how did you set them?
[15:50:38] bootstrappm: environment variables or passing them to the AWS config?
[15:50:47] dgarstang: Aws.config[:credentials] = Aws::Credentials.new(creds['AccessKeyId'], creds['SecretAccessKey']) hmmm i dunno how that connects with ec2
[15:50:55] apeiros: ljarvis: referring to me?
[15:50:57] dgarstang: and I put the creds into creds {}
[15:50:59] Hanmac: shevy i didnt update the rwx gem yet ... maybe i should do it again, but its currently better to build rwx from source
[15:50:59] bootstrappm: that looks right
[15:51:01] ljarvis: apeiros: si
[15:51:23] apeiros: ljarvis: yes. there are already others. the question is whether what we suggest on ruby-community.com
[15:51:41] apeiros: I want to release today and amend the channel list with country channels + a suggestion for how to name a new one
[15:51:44] ljarvis: apeiros: sure, but if all the others used one way I'd probably be more inclined to suggest that
[15:51:52] apeiros: that's the problem
[15:51:53] ixti: has joined #ruby
[15:51:59] dfockler: has joined #ruby
[15:52:02] apeiros: all the existing others don't agree :)
[15:52:25] bootstrappm: dgarstang: include the full error / stack trace in a gist and send it over
[15:52:27] AhabsBeard: has joined #ruby
[15:52:33] ljarvis: apeiros: I'd go with -
[15:53:12] apeiros: so #ruby-COUNTRY: 1, #ruby.COUNTRY: 0
[15:53:22] apeiros: nobody else want to give their vote? :)
[15:53:27] dgarstang: bootstrappm: https://gist.github.com/anonymous/4035d15487d9ca759fd3
[15:53:48] bootstrappm: oo this applies to me! i'm in guatemala
[15:53:50] JakFrist: has joined #ruby
[15:53:55] bootstrappm: hm. is it gonna be country and not language?
[15:54:07] bootstrappm: so #ruby-gt not #ruby-es?
[15:54:10] ljarvis: dgarstang: they're not supposed to be hashes
[15:54:24] apeiros: bootstrappm: good question
[15:54:31] dgarstang: ljarvis: ic.
[15:54:45] apeiros: bootstrappm: I don't have an answer to it tbh :)
[15:54:46] imperator: ACTION votes #ruby-COUNTRY
[15:54:55] dgarstang: ljarvis: the document I was reading did not say, so I assumed hash
[15:55:13] mrsolo: has joined #ruby
[15:55:13] ljarvis: dgarstang: yeah that would be sensible, seems like that could be used here though: https://github.com/aws/aws-sdk-ruby/issues/635
[15:55:46] apeiros: bootstrappm: probably both. i.e. COUNTRY can be either lang or country
[15:55:52] dgarstang: ljarvis: so, I've been at this about 15 min and already hit two issues.
[15:56:06] apeiros: #ruby-COUNTRY: 2, #ruby.COUNTRY: 0
[15:56:13] bootstrappm: the # of folks that use IRC is small in these countries. I say that should just redirect to a language one
[15:56:14] ljarvis: dgarstang: I think the second example in that issue should do what you want
[15:56:17] al2o3-cr: #ruby-COUNTRY dislikes . in rooms :P
[15:56:19] ljarvis: dgarstang: ec2.instances.filter('filter-name', ['filter-value']).each { |instance| ... }
[15:56:24] bootstrappm: and then folks in the language can self-organize and create country ones
[15:56:26] dfockler: are there going to be ruby channels for other countries?
[15:56:35] ljarvis: dgarstang: there already are
[15:56:39] ljarvis: dfockler: ^
[15:56:43] simplyianm: has joined #ruby
[15:56:44] dgarstang: ljarvis: my issue is with creds tho
[15:56:53] ljarvis: dgarstang: oh, that's not the gist you showed
[15:57:30] dgarstang: ljarvis: yes it is... it says "`missing_credentials?'"
[15:57:41] ramfjord: has joined #ruby
[15:57:52] ebbflowgo: has joined #ruby
[15:58:29] ljarvis: dgarstang: did you try with the example I linked to? and if so, you're still having the same issue?
[15:58:37] cndiv: has joined #ruby
[15:58:42] dgarstang: ljarvis: no, because it says missing credentials...
[15:58:53] Soda: has joined #ruby
[15:58:56] ljarvis: that's just the same of the method
[15:59:03] dgarstang: ljarvis: seriously?
[15:59:06] ljarvis: the error is "undefined method `set?' for #<Hash:0x007f8219240a48>"
[15:59:09] Dingus: has joined #ruby
[15:59:38] apeiros: #ruby-COUNTRY: 3, #ruby.COUNTRY: 0
[15:59:41] apeiros: any other votes? :)
[15:59:42] dgarstang: ruby... i dont understand you at all. one error message apparently means something else in ruby
[15:59:50] dgarstang: it's gonna be an uphill battle
[16:00:38] bootstrappm: hahah you'll live dgarstang
[16:01:42] jhass: ACTION votes #ruby-LANGUAGE
[16:01:44] dgarstang: https://github.com/aws/aws-sdk-ruby/issues/635 ... "If you are using the resource interface, you can use the #filter method:" ... yet now I get " `method_missing': undefined method `filter' fo"
[16:01:45] bootstrappm: I don't think that's your prob though dgarstang. Try this:
[16:01:54] jhass: (which is not the same as country)
[16:02:11] bootstrappm: ohhh dgarstang, can you double check what aws sdk version you're using?
[16:02:18] adaedra: jhass: what about the existing?
[16:02:20] dgarstang: bootstrappm: v2
[16:02:20] ljarvis: yes I agree it should be language
[16:02:23] bootstrappm: well, no its the Aws namespace, its def v2
[16:02:41] dgarstang: boto ain't this hard. :-\
[16:02:49] jhass: adaedra: like?
[16:02:50] adaedra: apeiros: what about the existing?*
[16:02:52] bootstrappm: anyways dgarstang take the credentials off of line 10
[16:02:56] adaedra: jhass: #ruby.fr
[16:02:57] bootstrappm: just set it on the cnofig
[16:03:10] jhass: well, fr is the language code too
[16:03:13] adaedra: (which is not really alive, but there are people in it)
[16:03:13] towski_: has joined #ruby
[16:03:16] adaedra: no, but - vs .
[16:03:20] dgarstang: cbootstrappm: sorry, how?
[16:03:27] dgarstang: bootstrappm: so you think it IS a credentials issue?
[16:03:29] apeiros: adaedra: nothing. we might contact their founders and suggest them to use the "standard". but totally up to them what they'll do.
[16:03:51] shakes: has joined #ruby
[16:04:14] adaedra: apeiros: anyway, - > .
[16:04:16] bootstrappm: no its def an error on a Hash ... its just at first it seemed to be the filters hash but i actually think its the credentials hash
[16:04:32] bootstrappm: missing_credentials is the name of the method where this error happens, not an error message, no doubt
[16:04:37] __butch__: has joined #ruby
[16:04:40] dgarstang: if I could just find a complete example of listing ec2 instances with ruby, it would help, but I'm yet to find that still.
[16:05:03] dgarstang: bootstrappm: then why can't the stack trace tell me that?
[16:05:15] bootstrappm: it is, well its telling me that
[16:05:22] allomov: has joined #ruby
[16:05:30] apeiros: adaedra: you already voted! don't cheat! ;-p
[16:05:31] bootstrappm: my theory dgarstang is that you passed the credentials hash to the Resource constructor on line 10 instead of an Aws::Credentials object like the documentation told you to
[16:05:52] adaedra: apeiros: I did?
[16:05:54] bootstrappm: so its calling set? (a method that exists on Aws::Credentials) on a Hash and throwing an error because it doesn't have that method
[16:06:04] ljarvis: dgarstang: ec2 = AWS::EC2.new(access_key_id: "...", secret_access_key: "..."); ec2.instances
[16:06:12] dgarstang: I did this... bootstrappm ec2 = Aws::EC2::Resource.new(region:'us-east-1', credentials: creds) which is what one set of docs said to do
[16:06:25] dgarstang: ljarvis: ok, i'll try that
[16:06:27] apeiros: adaedra: oh, you didn't?
[16:06:34] unshadow: has joined #ruby
[16:06:38] apeiros: well, I guess then it's 6:0 already
[16:06:41] adaedra: Don't remember to
[16:06:50] apeiros: I guess I'll put - as recommendation on the page then
[16:06:57] bootstrappm: dgarstang just take the creds of line 10 and see what happens, yeah?
[16:06:57] ebbflowgo: has joined #ruby
[16:07:13] jcaho: has joined #ruby
[16:07:28] dgarstang: Is it ec2 = AWS::EC2.new(access_key_id: "...", secret_access_key: "...") or ... ec2 = AWS::EC2.Resource.new(access_key_id: "...", secret_access_key: "...") ?
[16:07:37] ljarvis: use the first one
[16:08:01] ljarvis: oh wait, what version are you using?
[16:08:33] ljarvis: ACTION slowly walks away
[16:08:42] dgarstang: require 'aws-sdk' ; ec2 = AWS::EC2.new(access_key_id: "..", secret_access_key: "..") gets me "./scan.rb:8:in `<main>': uninitialized constant AWS (NameError)"
[16:08:42] bootstrappm: dgarstang lets start again
[16:08:50] Zen-Zen: has joined #ruby
[16:08:54] bootstrappm: start from the gist you sent me and remove the creds from line 10
[16:08:54] startupality: has joined #ruby
[16:08:56] bootstrappm: just leave them on line 9
[16:09:01] ljarvis: tbh though.. it really is all on the main docs page http://docs.aws.amazon.com/sdkforruby/api/index.html
[16:09:23] ljarvis: this kind of gives it away: credentials: Aws::Credentials.new('akid', 'secret'),
[16:10:22] bootstrappm: credentials are supposed to be object, not Hash
[16:10:26] bootstrappm: so can you listen to me -_-
[16:11:01] pdoherty: has joined #ruby
[16:12:45] Channel6: has joined #ruby
[16:13:05] Darkwater: adaedra: ready for irc plays ruby?
[16:13:14] Maletor: has joined #ruby
[16:13:50] Darkwater: well, I'll be back in an hour or two
[16:13:53] Darkwater: join #ruby-ed
[16:14:23] bootstrappm: what's that one for?
[16:14:28] bootstrappm: erectile disfunction?
[16:14:47] dfinninger: has joined #ruby
[16:15:05] bootstrappm: dgarstang: see me last few comments, credentials hash vs object
[16:15:12] Darkwater: bootstrappm: no, ed
[16:15:54] hinbody: has joined #ruby
[16:16:01] bootstrappm: ed...ucation Darkwater? or maybe http://www.rubyanded.co.uk/
[16:16:21] bootstrappm: ah, well, that cleared that up
[16:16:49] Darkwater: meh, it doesn't work
[16:16:55] Darkwater: whatever, will fix it later
[16:17:05] starfox_sf: has joined #ruby
[16:17:10] xcesariox: has joined #ruby
[16:17:10] daveg_: has joined #ruby
[16:17:44] ascarter: has joined #ruby
[16:18:09] simplyianm: has joined #ruby
[16:18:20] startupality: has joined #ruby
[16:18:33] xcesariox: is there any one there can help me with my error? " Errno::EACCES: Permission denied @ dir_s_mkdir - /Users/shaunstanislaus/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-14/2.2.0-static/binding_of_caller-0.7.2" after bundling install.
[16:18:48] bgmarx: has joined #ruby
[16:18:55] platzhirsch: has left #ruby: ()
[16:19:00] jhass: bundle install as which user?
[16:19:30] dgarstang: screw it. I just put the creds into environment variables
[16:19:52] ascarter: has joined #ruby
[16:19:59] aapole: has joined #ruby
[16:20:52] dgarstang: ok, now we have no consistency on what the filters look like. This page http://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/Resource.html#instances-instance_method says it's a hash, and this page https://github.com/aws/aws-sdk-ruby/issues/635 says to use a method and pass.. strings?
[16:21:39] sandstrom: has joined #ruby
[16:21:39] ascarter: has joined #ruby
[16:21:59] zotherstupidguy: has joined #ruby
[16:22:10] jhass: xcesariox: bundle install as which user?
[16:22:20] dgarstang: but, of course I can't even get the filter() method to work
[16:22:38] xcesariox: jhass: how do i check bundle install as which user?
[16:22:52] jhass: run whoami on the same shell
[16:22:54] xcesariox: jhass: i didn't know that doing bundle install you need to set a user.
[16:22:59] jhass: you don't
[16:23:14] xcesariox: jhass: shaunstanislaus <-
[16:23:32] xcesariox: jhass: how do i fix this error of permission?
[16:23:34] slackbotgz: has joined #ruby
[16:23:46] jhass: xcesariox: try sudo chown -R shaunstanislaus ~/.rbenv and don't run sudo bundle install or sudo gem install under rbenv
[16:23:52] apofis: has joined #ruby
[16:24:30] xcesariox: jhass: right , okay.
[16:24:55] xcesariox: jhass: chown already, trying to bundle install again.
[16:24:56] dgarstang: Theres no mention whatsoever of filter at http://docs.aws.amazon.com/sdkforruby/api/index.html
[16:25:16] bootstrappm: dgarstang: if you pass filters in with the instances method its a hash, if you use the method .filters then its name, value as first and second argument
[16:25:45] bootstrappm: here's the filter page: http://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/Types/Filter.html
[16:25:53] bootstrappm: not complicated, just the name and the val of the filter
[16:26:00] dgarstang: bootstrappm: k, cuz it says the filters method doesn't exist
[16:26:25] bootstrappm: filter singular dgarstang, sorry
[16:26:39] bootstrappm: that's why its name, value in first, second param and not an array
[16:27:05] xcesariox: jhass: you are genius , working like a blaze.
[16:27:19] dgarstang: bootstrappm: ec2 = Aws::EC2::Resource.new(region:'us-east-1') ; ec2.instances.filter("tag:role", "web").each { |instance| puts instance } == "undefined method `filter'".
[16:28:09] mrmargol_: has joined #ruby
[16:28:17] allcentury: has joined #ruby
[16:29:21] mleung: has joined #ruby
[16:29:27] bootstrappm: then you're outta look w/ using the method dgarstang, just use the param to instances
[16:29:31] dgarstang: and ... if I replace Resource with Client ... "undefined method `instances' " Sigh
[16:29:51] JDiPierro: has joined #ruby
[16:30:06] towski_: has joined #ruby
[16:31:11] dgarstang: ec2 = Aws::EC2::Resource.new(region:'us-east-1') ; filters = [{ name: "String", values: ["String"] }] ; ec2.instances(filters: filters).each {|instance| puts instance } == "`call': The filter 'String' is invalid" ... that filter string is straight from http://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/Resource.html#instances-instance_method
[16:31:15] Scripore: has joined #ruby
[16:31:39] dgarstang: boto ain't this hard.
[16:31:42] dgarstang: just sayin'
[16:31:55] blackmesa: has joined #ruby
[16:32:06] soulcake: has joined #ruby
[16:32:21] bootstrappm: dgarstang: what's boto mean? and String is a placeholder. The allowable filter values are right in that link you pasted
[16:32:50] nobitanobi: has joined #ruby
[16:32:57] dgarstang: bootstrappm: boto is the python aws api. i see... so their example don't work. ok, thanks
[16:33:36] bootstrappm: correct, their examples are examples. They do not work
[16:33:44] endorphine_: has joined #ruby
[16:33:51] tskogberg: has joined #ruby
[16:34:25] bootstrappm: give this a shot:
[16:34:27] bootstrappm: filters = [{ name: "architecture", values: ["i386", "x86_64"] }]
[16:34:34] bootstrappm: that's obviously not filtering anything, but it will run
[16:34:50] GnuYawk: has joined #ruby
[16:39:25] [H]unt3r: has joined #ruby
[16:41:36] deric_skibotn: has joined #ruby
[16:41:57] joaomdmoura: has joined #ruby
[16:42:28] yqt: has joined #ruby
[16:42:59] evanjs: has joined #ruby
[16:43:33] baweaver: has joined #ruby
[16:43:37] mc_fail: has joined #ruby
[16:44:35] cmisenas: has joined #ruby
[16:44:59] yoongkang: has joined #ruby
[16:45:25] DexterLB: has joined #ruby
[16:45:30] gusrub: has joined #ruby
[16:45:44] starfox_sf: has joined #ruby
[16:45:55] pengin: has joined #ruby
[16:46:19] rdavila: has joined #ruby
[16:48:19] keernel: has joined #ruby
[16:48:53] jackjackdripper: has joined #ruby
[16:49:22] symm-: has joined #ruby
[16:51:11] towski_: has joined #ruby
[16:53:36] simplyianm: has joined #ruby
[16:56:28] adac: has joined #ruby
[16:56:44] blackmes1: has joined #ruby
[16:57:16] sandelius: has joined #ruby
[16:58:05] blackmes2: has joined #ruby
[16:58:37] lordkryss: has joined #ruby
[16:58:43] sandelius: PHP reads the whole codebase on each request it seems. How in the name of (whoever you want) can that scale on large codebases?
[17:00:07] pengin: has joined #ruby
[17:00:29] baweaver: has joined #ruby
[17:00:50] freerobby: has joined #ruby
[17:00:55] livcd: offtopic: what code editor do you prefer guys ?
[17:01:03] baweaver: has joined #ruby
[17:01:08] krisquigley: has joined #ruby
[17:01:14] sandelius: livcd sublime text / vim
[17:01:37] arup_r: has joined #ruby
[17:02:12] boverall: has joined #ruby
[17:02:17] RegulationD: has joined #ruby
[17:03:04] arup_r: hey guys I am using openSUSE 13.1 and Rvm .. I did rvm get stable and then rvm list known ... but Ruby 2.2.2 is not coming in the list.. any hints how to grab that ?
[17:03:06] qwertme: has joined #ruby
[17:04:21] mrmargolis: has joined #ruby
[17:05:23] endash: has joined #ruby
[17:07:31] havenwood: arup_r: rvm get head
[17:07:58] havenwood: arup_r: or even though it isn't listed: rvm install ruby-2.2.2
[17:08:13] arup_r: ahh! is it? I didn't know that..
[17:08:21] Yiota: has joined #ruby
[17:08:44] arup_r: no I get it now.. havenwood after doing rvm get head
[17:08:53] ramfjord: has joined #ruby
[17:08:56] arup_r: let me install and do some real work with it
[17:08:58] krisquigley: has joined #ruby
[17:10:14] djbkd: has joined #ruby
[17:10:55] wallerdev: has joined #ruby
[17:12:08] JDiPierro: has joined #ruby
[17:13:23] mikecmpbll: has joined #ruby
[17:15:17] luckyme: has joined #ruby
[17:15:32] fuzzyhorns: has joined #ruby
[17:15:44] bricker: has joined #ruby
[17:16:36] jackjackdripper1: has joined #ruby
[17:17:18] heftig: does anyone know of a good implementation of a tree for finding neighbors in a metric space with a custom distance function?
[17:17:37] postmodern: has joined #ruby
[17:17:50] horsecowdog: has joined #ruby
[17:18:32] heftig: trying to deduplicate images. found a hasher that produces integers that can be compared via hamming distance; now i just need a way of indexing them efficiently
[17:19:00] mcclurmc: has joined #ruby
[17:19:07] NeverDie: has joined #ruby
[17:20:47] momomomomo: has joined #ruby
[17:20:49] zotherstupidguy: has joined #ruby
[17:20:58] x1337807x: has joined #ruby
[17:21:48] bruceleez: I'm trying to find a solution to a problem from a book. Only a few lines of code is required but I'm struggling - is there anyone here who can help?
[17:21:53] x1337807x: has joined #ruby
[17:22:13] heftig: bruceleez: don't ask to ask, just ask
[17:22:36] Spami: has joined #ruby
[17:22:51] x1337807x: has joined #ruby
[17:23:03] bruceleez: it's from a book by Chris Pine called "How to Program" - it's online here https://pine.fm/LearnToProgram/chap_07.html
[17:23:58] bruceleez: the relevant chapter looks at arrays and iterators and the problem is at the bottom of this page. I'll copy/paste
[17:24:41] bruceleez: basically i want to write a program which asks us to type in as many words as we want (one word per line, continuing until we just press Enter on an empty line), and which then repeats the words back to us in alphabetical order. OK? I cannot use the sort method though
[17:24:54] apeiros: heftig: kd-tree? but what kind of algorithm uses a tree with neighbors in metric space to find duplicate images? o0
[17:25:03] weaksauce: has joined #ruby
[17:25:04] apeiros: or is it a "similar images" algorithm?
[17:25:13] heftig: apeiros: exactly
[17:25:40] heftig: i need something like a bk-tree, vp-tree or m-tree
[17:25:42] apeiros: I think somebody wrote an implementation of a proximity hash for that already. phash or so???
[17:25:51] heftig: yes, that's what i'm using
[17:26:01] bruceleez: can i paste code here?
[17:26:04] apeiros: https://github.com/westonplatter/phashion
[17:26:31] pdoherty: has joined #ruby
[17:27:01] apeiros: heftig: ah, and that can use different distance methods? didn't know :)
[17:27:10] apeiros: ?gist bruceleez
[17:27:10] ruboto: bruceleez, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[17:27:13] heftig: no, the problem is that it's just hashing, not indexing
[17:27:20] DexterLB: has joined #ruby
[17:27:25] apeiros: heftig: not sure I follow
[17:27:54] apeiros: you'd still have to do N*N-1 comparisons
[17:28:02] heftig: right now i'm just doing pairwise comparison, but that sucks as it's O(n^2)
[17:28:31] heftig: and i'm really feeling that O
[17:28:36] endorphine_: has joined #ruby
[17:28:37] x1337807x: has joined #ruby
[17:28:40] mistermocha: has joined #ruby
[17:28:40] anisha: has joined #ruby
[17:29:00] adimircolen: has joined #ruby
[17:29:11] apeiros: surprised he didn't include something to compare a list of files???
[17:29:13] xcesariox: has joined #ruby
[17:29:18] bruceleez: thanks apeiros
[17:29:34] bruceleez: here is a paste of the code - I'm not sure what I'm doing wrong https://gist.github.com/0adbce66cf1449032a4a.git
[17:29:41] rbowlby: has joined #ruby
[17:30:04] jhass: bruceleez: in future copy the URL in your addressbar, not the clone URL ;)
[17:30:20] apeiros: ruboto feature? (relink and explain)
[17:30:21] bruceleez: the solution is easy if I use the sort method with an array, but without it it is proving tricky
[17:30:25] aaeron: has joined #ruby
[17:30:28] apeiros: (and YES, I'm aware I'm the bottleneck :(
[17:30:42] iBloodLust: has joined #ruby
[17:32:40] jhass: bruceleez: how about inserting the new word at the right place in the array? so after the user entered a word, find the right place to insert the word
[17:32:46] bruceleez: what it all comes down to is, how does the sort method work? what is the code behind it?
[17:32:48] iBloodLust: am i cool yet
[17:33:02] apeiros: iBloodLust: dunno. use a thermometer?
[17:33:34] jhass: bruceleez: if you do want to implement a sort algorithm, the most simple one is called bubble sort
[17:33:38] Scripore: has joined #ruby
[17:33:42] apeiros: bruceleez: there's a ton of different sorting algorithms. wikipedia probably lists most of them.
[17:34:01] rbowlby_: has joined #ruby
[17:34:02] drew: has joined #ruby
[17:34:29] jhass: ruby's sort uses quicksort, but you don't want to implement that just yet I think ;)
[17:35:12] bruceleez: my attempt at writing a sort algorith starts on line 12 in the github link i shared.....using too many loops i suspect
[17:35:13] whoami: has joined #ruby
[17:35:20] iBloodLust: is mruby just got c and c++
[17:35:20] apeiros: actually it uses qsort, which likely (but not necessarily) uses quicksort (despite its name) :)
[17:35:27] iBloodLust: can i pair it with a language like, lets say, D?
[17:35:29] apeiros: (totally relevant)
[17:35:31] alphaatom: has joined #ruby
[17:35:46] tvw: has joined #ruby
[17:36:35] bronson: has joined #ruby
[17:36:44] nikhgupta: has joined #ruby
[17:36:45] alphaatom: has joined #ruby
[17:37:03] bruceleez: i've just find the bubble algorith here http://www.sitepoint.com/sorting-algorithms-ruby/ - nice, thanks
[17:37:04] RegulationD: has joined #ruby
[17:37:13] bootstrappm: is iBloodLust the same dude that shows up as the KKK?
[17:37:20] momomomomo: has joined #ruby
[17:37:41] iBloodLust: but im black irl
[17:37:45] iBloodLust: so what does that make me
[17:38:04] iBloodLust: black panther?
[17:38:16] jhass: ?ot iBloodLust
[17:38:17] ruboto: iBloodLust, this seems to be off-topic. please move your discussion to #ruby-offtopic, to keep this channel free for ruby related problems. Thanks!
[17:38:25] phutchins: has joined #ruby
[17:38:30] bootstrappm: ...and is also fond of irony
[17:40:22] whoami_: has joined #ruby
[17:41:26] aapole: has joined #ruby
[17:42:19] symbol: has joined #ruby
[17:42:57] djbkd_: has joined #ruby
[17:43:18] Scroff: has joined #ruby
[17:43:29] tomphp: has joined #ruby
[17:43:41] bgmarx: has joined #ruby
[17:44:47] agarie: has joined #ruby
[17:45:24] marr: has joined #ruby
[17:45:33] nikhgupta: has joined #ruby
[17:46:00] lavros: has joined #ruby
[17:46:45] leafybasil: has joined #ruby
[17:47:03] tvw: has joined #ruby
[17:48:53] bruceleez: jhass, with respect to your comment regarding finding the "right place in the array", could you please explain that bit more. I'm bashing my head here
[17:49:07] bgmarx: has joined #ruby
[17:49:55] jhass: bruceleez: if you keep order, inserting while keeping order is just a matter of finding the place of the element bigger than the element you want to insert and inserting before that
[17:50:30] jsaak: has joined #ruby
[17:51:22] bruceleez: ? - You lost me there
[17:51:48] jhass: bruceleez: [] insert "b" -> ["b"] insert "d" -> run to end, ["b", "d"] insert "c", "d" > "c", insert at 1 -> ["b", "c", "d"] insert "a", "b" > "a" insert at 0 -> ["a", "b", "c", "d"]
[17:52:46] mdz_: has joined #ruby
[17:52:50] vickleton: has joined #ruby
[17:52:54] qwertme: has joined #ruby
[17:53:07] Rubie: has joined #ruby
[17:53:08] apeiros: bruceleez: essentially - when the user inserts "d", and you have (sorted already) ["a","b","c","e","f","g"] - where do you insert the "d" so the array remains sorted?
[17:53:22] fuzzyhorns: has left #ruby: ("later nerds")
[17:53:39] apeiros: figure out how you find out. once you know how you find out, express that in code. done :)
[17:53:54] jhass: bruceleez: which is actually basically your sort algorithm but doing it on insertion will actually work
[17:54:12] ebbflowgo: has joined #ruby
[17:54:35] JamesDH: has joined #ruby
[17:54:38] apeiros: insertion-sort can be implemented as O(n) optimal case and O(nlogn) worst case. it's actually a pretty nice algorithm.
[17:55:00] _seanc_: has joined #ruby
[17:55:50] commondream: has joined #ruby
[17:57:19] Ox0dea: has joined #ruby
[17:57:26] alexherbo2: has joined #ruby
[17:57:30] Ox0dea: apeiros: Every sorting algorithm is O(n) in the optimal case, no?
[17:57:31] bgmarx: has joined #ruby
[17:57:33] weaksauce: apeiros worst and average case seems to be O(n^2) for insertion sort according to wikipedia.
[17:57:49] apeiros: Ox0dea: nope
[17:58:09] apeiros: weaksauce: o0
[17:58:15] agarie: has joined #ruby
[17:58:19] apeiros: weaksauce: that's only if you use linear search???
[17:58:41] bruceleez: sorry im really new to Ruby and a lot of what's being written is going past my head. Can someone point to specifically which line in my code I should change?
[17:58:42] bgmarx: has joined #ruby
[17:58:43] apeiros: searching the right place using binary search is logn
[17:58:47] Ox0dea: Insertion sort is great if you're wanting to keep a stream of data in order.
[17:58:52] apeiros: and searching n times the right spot is n*logn
[17:59:13] veinofstars: has joined #ruby
[18:00:02] finisherr: has joined #ruby
[18:00:14] weaksauce: what about moving the elements in the array?
[18:00:34] x1337807x: has joined #ruby
[18:00:36] skade: has joined #ruby
[18:00:40] apeiros: usually memcpy and not considered as its overhead is low
[18:00:49] weaksauce: worst case would be reverse order sorted
[18:00:51] sandelius: has joined #ruby
[18:00:52] apeiros: comparison is the expensive part
[18:01:05] nikhgupta`: has joined #ruby
[18:01:12] apeiros: worst case depends on your search algorithm
[18:01:22] apeiros: but with linear search - yes, reversed
[18:01:24] weaksauce: I was talking about insertion sort
[18:01:26] x1337807x: has joined #ruby
[18:01:30] apeiros: yes, me too
[18:01:44] apeiros: you may remember that insertion sort needs a search ;-)
[18:01:55] JakFrist: has joined #ruby
[18:01:59] apeiros: and you can search linearly, binary or by any other means
[18:02:20] apeiros: (though, I guess linear and binary are the most common ways to search a sorted structure)
[18:02:22] x1337807x: has joined #ruby
[18:02:29] Ox0dea: You guess?
[18:02:43] apeiros: I don't have data on it, therefore I guess :-p
[18:02:56] apeiros: all the other search algorithms I know are rather involved.
[18:03:18] x1337807x: has joined #ruby
[18:03:31] apeiros: and unless you have a very specific case, they don't offer a real benefit over binary
[18:03:52] Ox0dea: Anecdata is best data.
[18:03:52] casadei: has joined #ruby
[18:05:18] AhabsBeard: has joined #ruby
[18:05:45] adaedra: No data is best data.
[18:05:46] jhass: ACTION adjusts apeiros irony detector
[18:05:46] gheegh: has joined #ruby
[18:05:56] adaedra: Instant to sort, instant to search in.
[18:06:05] robbyoconnor: has joined #ruby
[18:06:05] apeiros: jhass: I hope you can find it
[18:06:19] adaedra: No risk of data corruption, always backup'd.
[18:06:24] jhass: "adjust" means "give it a big kick" of course
[18:06:37] jaycee: has joined #ruby
[18:06:44] apeiros: good luck hitting it. and don't you dare missing it and kicking me instead!
[18:06:46] xxneolithicxx: has joined #ruby
[18:07:19] adaedra: technically, your irony detector should be part of you
[18:07:24] jhass: uh, what do you think I kick, gotta be in there somewhere
[18:07:24] adaedra: so kicking it would kick you
[18:08:05] apeiros: what? no. I outsourced my irony detection.
[18:08:18] Ox0dea: >> '%c' % 'ab'
[18:08:19] ruboto: Ox0dea # => %c requires a character (ArgumentError) ...check link for more (https://eval.in/380785)
[18:08:30] Ox0dea: Should this be considered a vestigial leftover from the time when Ruby had characters?
[18:08:35] weaksauce: apeiros just dusted off my old textbook and insertion sort got its running time from not the search but the insertion
[18:08:38] jhass: apeiros: that explains a lot
[18:08:53] Ox0dea: >> ['ab'.chr, 'ab'.ord] # No complaints.
[18:08:54] ruboto: Ox0dea # => ["a", 97] (https://eval.in/380789)
[18:09:37] weaksauce: I think putting the onus onto memcpy as a way around that doesn't really work that well with large datasets
[18:10:07] apeiros: weaksauce: was that textbook written when they still used punch cards?
[18:10:21] weaksauce: did you just call me old :P
[18:10:45] apeiros: no, I gently asked whether you're old :-D
[18:10:50] codenihal: has joined #ruby
[18:11:03] weaksauce: not punch card old :)
[18:11:05] jhass: . .. #ruby
[18:11:14] mdz_: has joined #ruby
[18:11:21] keslerm: has joined #ruby
[18:11:23] jacaballero: has joined #ruby
[18:11:30] apeiros: weaksauce: yeah, sure. depending on datasets and architectures, specific offsets may change.
[18:12:18] apeiros: and I don't have enough experience with such low level implementations to know where those boundaries are
[18:12:59] Ox0dea: Must be getting used to his window manager.
[18:13:22] weaksauce: that said. who writes sorting algorithms unless you need something really specific?
[18:13:47] Ox0dea: Interviewees.
[18:13:49] NeverDie: has joined #ruby
[18:14:05] apeiros: in cases where insertion (and hence moving) is the bottleneck - I wonder whether it could be improved by changing how the structure is being filled. especially if you're not sorting a stream (i.e. when you know the number of elements, and can find minmax in O(n))
[18:14:37] alanjf: Does anyone know why this is happening? http://pastebin.com/GLd6yTCw (This is under 32-bit linux, most things build from source tarball on this systemm like openssl-1.0.2c.)
[18:14:38] ruboto: alanjf, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/a5441ea9a216ddb7cc31
[18:14:38] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[18:14:48] apeiros: weaksauce: the only time I did was when I worked on a statistics engine and indeed had specific needs. and even then it was mostly for funsies and figuring limits :)
[18:14:59] apeiros: oh, and of course university
[18:15:23] n008f4g_: has joined #ruby
[18:15:33] alanjf: Ruby says "undefined symbol: rb_Digest_SHA1_Init" but `strings '/pkg/all/ruby/2.2.2/lib/ruby/2.2.0/i686-linux/digest/sha1.so' | grep 'rb_Digest_SHA1_Init'` says it's there.
[18:15:33] apeiros: that's when I experimented with search algorithms as well btw. ;-)
[18:15:57] ruv: has joined #ruby
[18:16:04] timonv: has joined #ruby
[18:16:07] alanjf: ruboto: Sorry about that, I thought I was using pastbin.org, not .com
[18:16:16] apeiros: ?ruboto alanjf
[18:16:16] ruboto: alanjf, I'm the channel bot, linker of the rules, adept of the facts, wielder of the banhammer.
[18:16:38] apeiros: no need to apologize to a bot ;-)
[18:16:40] Ox0dea: alanjf: You have a /pkg directory at the root of your filesystem?
[18:16:51] alanjf: So does anyone have any idea what could be causing this problem? Google indicates a lot of people have had this problem but I can't find any solutions.
[18:17:03] alanjf: Ox0dea: On this system, yes.
[18:17:28] alanjf: IT was something that started before me, it's where everythign built from source lives.
[18:17:38] simplyianm: has joined #ruby
[18:18:11] Ox0dea: Well, I suspect your standards-flouting shenanigans are the cause of your troubles.
[18:18:35] alanjf: (seems when the channel bot reposted my paste to gist it turned on ruby highlighting and turned everything orange :|)
[18:19:12] bantic: has joined #ruby
[18:19:33] apeiros: jhass: ruby -c the paste and gist as .rb when syntax is ok, as .txt when not?
[18:19:36] alanjf: Ox0dea: I'm nto so sure, as everything builds nad works as expected on this system. For example, NET::SSLeay for Perl built against the same openssl lib works flawlessly, as does everything else on the system that depends on it.
[18:19:50] jhass: apeiros: if you can be bothered
[18:20:18] apeiros: much to do tonight. sadly the rest of the week-end is already occupied by other stuff :(
[18:20:29] apeiros: but at the very least I'll release the current PRs
[18:20:55] rippa: has joined #ruby
[18:20:58] alanjf: Does the strace there show anything useful? It shows that it finds libssl and libcryoto
[18:21:20] akkad: has joined #ruby
[18:22:28] alanjf: strings '/pkg/all/ruby/2.2.2/lib/ruby/2.2.0/i686-linux/digest/sha1.so' | grep 'rb_Digest_SHA' shows that it IS defined there, so I'm really not sure what ruby's problem is here?!
[18:22:33] dgarstang: has joined #ruby
[18:23:58] jhooker: has joined #ruby
[18:24:11] niemcu: has joined #ruby
[18:24:49] jhass: looks like many people solved it by straight recompiling ruby
[18:25:05] adaedra: recompile ALL THE THINGS
[18:25:07] alanjf: jhass: Thanks but I tried that 4 times already with no change.
[18:25:27] adaedra: So hot outside -_-"
[18:25:32] alanjf: I also build openssl-1.0.2c
[18:25:32] jhass: are you on gcc 5.1 already?
[18:25:42] jhass: might cause issues too
[18:26:04] alanjf: jhass: gcc-4.6.1
[18:26:05] jwilson: has joined #ruby
[18:26:39] Vitor: has joined #ruby
[18:27:18] MVPhelp: has joined #ruby
[18:29:07] alanjf: jhass: Before this, I never had any trouble what so ever with anything that it successfully compiled before.
[18:29:54] alanjf: And pretty much every source package I've thrown at it since 2011 has compiled without trouble (baring problems with the source code itself of course.)
[18:30:04] Jackneill: has joined #ruby
[18:30:50] alanjf: So I'm left with feeling like this is something ruby is doing odd.
[18:30:54] jhass: https://github.com/rvm/rvm/issues/3299 seems interesting
[18:31:33] finisherr: has joined #ruby
[18:31:37] baweaver: has joined #ruby
[18:31:50] intinig: has joined #ruby
[18:32:13] blue_deref: has joined #ruby
[18:32:56] alanjf: jhass: I do have C_INCLUDE_PATH and CPLUS_INCLUDE_PATH defined, though just a couple entries that ruby wouldn't need most like, such as /usr/X11R7/include
[18:33:02] Guest100: has joined #ruby
[18:33:45] commondream: has joined #ruby
[18:33:56] alanjf: I'll rebuild ruby with them unset.
[18:34:09] jhass: maybe some header files conflicts, maybe it's some similar thing like LD_LIBRARY_PATH pointing to strange things whatever, interesting as in that it could be caused by such things
[18:34:50] sinkensabe: has joined #ruby
[18:35:04] Ox0dea: alanjf: If you're gonna rebuild, why not try trunk?
[18:35:17] Channel6: has joined #ruby
[18:35:19] alanjf: jhass: Well that post seems to indicate that the problem arose from the leading ":" chatacter in C_INCLUDE_PATH, as it compiled and worked fine without it there. I also had the leading ":" in mine.
[18:35:19] Ox0dea: Hash#fetch_values is pretty nice.
[18:35:35] leafybasil: has joined #ruby
[18:35:43] alanjf: Ox0dea: Because it's too hot and cramped in there. IT's over 100F outside. :p
[18:36:46] nobitanobi: has joined #ruby
[18:37:22] alanjf: It's compiling. I'll be surprised if nuking my C_INCLUDE_PATH and CPLUS_INCLUDE_PATH vars will solve this. Those vars have been set like they are for at least 10 years. If it works I'll also try the latest git trunk.
[18:38:32] revath: has joined #ruby
[18:40:08] mcclurmc: has joined #ruby
[18:40:42] m8: has joined #ruby
[18:41:15] kirun: has joined #ruby
[18:41:17] allcentury: has joined #ruby
[18:41:35] hakunin: has joined #ruby
[18:42:01] pengin: has joined #ruby
[18:43:53] bl4ckdu5t: has joined #ruby
[18:43:57] Yiota: has joined #ruby
[18:44:03] horsecowdog: has joined #ruby
[18:44:18] someword: has joined #ruby
[18:44:42] lucianosousa: has joined #ruby
[18:44:46] a346: has joined #ruby
[18:45:08] alem0lars: has joined #ruby
[18:46:08] Vasa: has joined #ruby
[18:49:05] iamninja: has joined #ruby
[18:49:32] yqt: has joined #ruby
[18:49:32] dgarstang: how on earth do I use the filters with the aws ruby sdk? filters = [{ name: "tag-key", values: ["enironment"] }] ?
[18:50:10] hotpancakes: has joined #ruby
[18:50:14] alanjf: jhass, Ox0dea: Still getting the same error.
[18:50:24] jhass: meh, worth a shot
[18:50:30] renier: has joined #ruby
[18:50:50] nym: has joined #ruby
[18:51:02] alanjf: jhass: Indeed.
[18:51:41] dgarstang: everything in ruby is so hard, not the least of which there are so few code examples available
[18:51:54] michaeldeol: has joined #ruby
[18:52:00] jhass: I actually have a similar issue https://github.com/hyperic/sigar/issues/60
[18:52:04] lavros: has joined #ruby
[18:52:22] jhass: dgarstang: s/ruby/aws-sdk/
[18:52:30] jhass: the docs of that suck indeed
[18:52:48] edwinvdgraaf: has joined #ruby
[18:53:00] dgarstang: i mean... there's just NO examples
[18:53:28] dgarstang: I'd get more matches on google for 'toothpaste aliens' than "tag-key" "tag-value" aws ruby
[18:53:50] dgarstang: i woudn't have to use it all if I wasn't forced to by ohai
[18:54:17] simplyianm: has joined #ruby
[18:54:23] jhass: maybe try github code search?
[18:56:40] freerobby: has joined #ruby
[18:56:50] krisquigley: has joined #ruby
[18:57:33] miah: has joined #ruby
[18:58:11] tomeara: has joined #ruby
[18:58:47] timonv: has joined #ruby
[18:59:09] nertzy: has joined #ruby
[18:59:22] alanjf: jhass, Ox0dea: Looks like I figured out a fix on my own. I was looking in src/ruby/2.2.2/ext/digest/sha1 and I noticed that there was no sha1.o, just sha1init.o and sha1ssl.o
[18:59:47] dionysus69: has joined #ruby
[19:00:06] dstarh: has joined #ruby
[19:00:55] alanjf: jhass, Ox0dea: So I looked in my make logs (good thing I enabled VERBOSE) and ran the same gcc command that built sha1init.o and sha1ssl.o adjusted to use -o sha1.o -c sha1.c instead
[19:01:00] francoi__: has joined #ruby
[19:01:16] Ox0dea: alanjf: You should build outside the source tree.
[19:01:39] jhass: anyway, might save a few poor souls by adding that to one of the stack overflow posts
[19:01:58] alanjf: Ten I copied the gcc line that produced sha1.so and added sha1.o to it, copied it to /pkg/all/ruby/2.2.2/lib/ruby/2.2.0/i686-linux/digest/sha1.so, and now `ruby -rdigest/sha1 -e '1'` runs without errors.
[19:02:12] alanjf: Seems this is a problem with the Makefile for sha1 (and sha2 and md5)
[19:02:15] rdavila: has joined #ruby
[19:02:28] horsecowdog: has joined #ruby
[19:02:43] alanjf: Ox0dea: I know, but I was mimiking what the build process had done.
[19:03:09] edwinvdg_: has joined #ruby
[19:03:52] bruceleez: has joined #ruby
[19:03:52] neanderslob: has joined #ruby
[19:04:10] Ox0dea: alanjf: Not what I meant; I meant that you should have invoked the initial build process from elsewhere.
[19:04:57] Ox0dea: It's standard practice to avoid cluttering up the source tree with compilation output.
[19:06:24] joneshf-laptop: So I went through poodr, and noticed something very interesting. Metz talks about using hooks as a good design practice. This does seem like a good idea (at least as presented), is this used often in practice?
[19:06:35] havenwood: has joined #ruby
[19:06:50] shevy: alanjf, you could comment on https://bugs.ruby-lang.org/projects/ruby-trunk/issues?set_filter=1&tracker_id=1 so that others won't run into the same bug; I also had problems related to building openssl stuff in ruby manually
[19:07:40] balazs: has joined #ruby
[19:08:28] blackmes2: has joined #ruby
[19:08:38] shum: has joined #ruby
[19:09:32] autrilla_: has joined #ruby
[19:10:12] Pupeno: has joined #ruby
[19:11:07] Ox0dea: joneshf-laptop: Often enough as to be worth knowing.
[19:11:19] chinmay_dd: has joined #ruby
[19:12:30] duderonomy: has joined #ruby
[19:14:12] joneshf-laptop: Ox0dea, do you have any examples off hand that use this sort of design?
[19:15:58] freerobby: has joined #ruby
[19:16:50] kadoppe: has joined #ruby
[19:16:55] qwertme: has joined #ruby
[19:17:57] casadei: has joined #ruby
[19:18:02] DLSteve: has joined #ruby
[19:18:51] bin_005: has joined #ruby
[19:19:35] sharpmachine: has joined #ruby
[19:20:17] jackjackdripper: has joined #ruby
[19:20:41] lavros: has joined #ruby
[19:21:17] Ox0dea: joneshf-laptop: Sequel uses extension hooks pretty heavily.
[19:21:44] Trieste: has joined #ruby
[19:21:47] yfeldblum: has joined #ruby
[19:21:48] sinkensabe: has joined #ruby
[19:22:00] Mekkis: has joined #ruby
[19:22:39] Jarboe: has joined #ruby
[19:22:45] dbussink: has joined #ruby
[19:22:47] ElderFain: has joined #ruby
[19:23:10] mathie: has joined #ruby
[19:23:33] alanjf: Ox0dea: back; yeah I know what you mean, nad yes that is better practice and it is what I tend to do and probably what I should have done with ruby here.
[19:23:36] ddfreyne: has joined #ruby
[19:23:37] Ox0dea: Using them as the core of a design is probably ill-advised, but hooks are good for sprinkling in a bit of dynamic behavior where mere inheritance won't do the trick.
[19:23:39] momomomomo: has joined #ruby
[19:23:43] knikolov: has joined #ruby
[19:23:48] Andriamanitra: has joined #ruby
[19:23:55] revath: has joined #ruby
[19:23:57] alanjf: shevy: Thanks for the link, I'll post a comment as you suggested.
[19:24:31] joneshf-laptop: Ox0dea, thanks for the link, and makes sense
[19:24:37] shevy: alanjf \o/
[19:24:41] shevy: for the good of the other people
[19:25:42] tomphp: has joined #ruby
[19:25:59] alphaatom: has joined #ruby
[19:26:36] paulcsmith: has joined #ruby
[19:26:59] pen: has joined #ruby
[19:27:42] mrmargol_: has joined #ruby
[19:28:23] yqt: has joined #ruby
[19:29:50] alphaatom: has joined #ruby
[19:31:03] alphaatom: has joined #ruby
[19:31:35] bin_005_p: has joined #ruby
[19:31:35] sinkensabe: has joined #ruby
[19:32:24] sharpmachine: has joined #ruby
[19:33:12] stoogenmeyer: has joined #ruby
[19:33:19] revath: has joined #ruby
[19:34:49] hotpancakes: has joined #ruby
[19:36:30] momomomomo_: has joined #ruby
[19:37:18] shevy: and the good of the ruby
[19:37:43] toretore: has joined #ruby
[19:38:12] k3asd`: has joined #ruby
[19:39:05] endorphine_: has joined #ruby
[19:40:06] commondream: has joined #ruby
[19:40:09] dopie: has joined #ruby
[19:41:33] Voxxit: has joined #ruby
[19:42:25] tomphp: has joined #ruby
[19:42:43] jacaballero: has joined #ruby
[19:43:15] jenrzzz: has joined #ruby
[19:43:39] casadei: has joined #ruby
[19:43:56] nertzy: has joined #ruby
[19:46:07] anisha: has joined #ruby
[19:47:06] djbkd: has joined #ruby
[19:47:11] joaomdmoura_: has joined #ruby
[19:47:21] commondream: has joined #ruby
[19:47:54] finisherr: has joined #ruby
[19:48:18] jackjackdripper1: has joined #ruby
[19:48:32] djbkd: has joined #ruby
[19:49:06] mistnim: has joined #ruby
[19:49:35] mistnim: is it normal that pry takes a lot to load? Like 2 seconds for me?
[19:50:03] Ox0dea: mistnim: Nah, that's about right. It does a lot.
[19:50:20] qwertme: has joined #ruby
[19:52:47] nobitanobi: has joined #ruby
[19:53:21] workmad3: has joined #ruby
[19:55:10] djbkd_: has joined #ruby
[19:55:46] suffice: has joined #ruby
[19:56:07] diegoviola: my coworker: "Do you write code with Vim?", me: "Yes"
[19:56:38] shevy: yeah diegoviola - nobody is perfect
[19:57:40] RickHull: mistnim: i had require times go from 30s for one gem down to 1/2 sec after `gem clean`
[19:57:51] diegoviola: shevy: what do you use?
[19:58:51] diegoviola: shevy: I never said I was perfect, don't ad hominem me :)
[19:59:12] jgt3: anyone know how to make validate_presence_of work with strict validations?
[19:59:19] genpaku: has joined #ruby
[19:59:19] jgt3: it???s a method from the Shoulda gem
[19:59:24] shevy: diegoviola nono that is not what I meant with perfect
[19:59:38] diegoviola: shevy: oh, sorry, I misunderstood :)
[19:59:42] shevy: diegoviola I meant that you use non-perfect software, hence you aren't perfect ;P
[19:59:54] shevy: I use a slightly modified bluefish 1.x variant; it's also far from perfect
[19:59:55] diegoviola: Vim is perfect
[20:00:06] shevy: that vim extension thing is so ugly
[20:00:16] diegoviola: vim source code is definitely ugly
[20:00:35] shevy: if &filetype
[20:00:42] diegoviola: but I thought the goal of neovim was to make vim's code not ugly
[20:00:43] shevy: if a:Forward
[20:00:52] shevy: endfunction
[20:00:55] diegoviola: one of its goals
[20:01:08] jgt3: diegoviola: No, the goal of neovim is mostly to work around Bram being a stick in the mud
[20:01:08] Frem: has joined #ruby
[20:01:24] shevy: did you want to use the word "mud"
[20:01:28] shevy: or another 3-character word :)
[20:01:31] ledestin: has joined #ruby
[20:01:54] jgt3: shevy: I???m not sure what you do with sticks in your free time
[20:01:59] mistnim: rubysts use emacs?
[20:02:02] diegoviola: jgt3: I'm not sure why Bram is so hard to deal with
[20:02:14] shevy: mistnim matz is an emacs user
[20:02:25] jgt3: diegoviola: I think I get it. He???s older and battle-weary
[20:02:34] francoi__: has joined #ruby
[20:02:38] shevy: people become generally less fun the older they get
[20:02:39] jgt3: and in many respects, tech should move slower than it currently is
[20:02:40] chussenot: has joined #ruby
[20:02:50] diegoviola: jgt3: so is Linus and I don't see people complaining too much about him
[20:02:54] jgt3: look at the current JS ecosystem
[20:02:58] jgt3: everything is broken
[20:03:00] blackmes2: has joined #ruby
[20:03:02] jgt3: but nobody cares
[20:03:05] jgt3: because it???s ???cool???
[20:03:17] bgmarx: has joined #ruby
[20:03:19] dorei: jgt3: it's backward compatible broken :D
[20:03:36] diegoviola: lots of people complains about Linus because he can use strong language, but I don't see a problem about patches being submitted in the linux kernel
[20:04:00] jgt3: people complaining about Linus??? strong language should grow a pair
[20:04:01] davedev24: has joined #ruby
[20:04:05] NeverDie_: has joined #ruby
[20:04:12] jgt3: or grow a pear
[20:04:16] shevy: linus does not complain about many things
[20:04:17] qwertme: has joined #ruby
[20:04:21] shevy: usually he complains about C++ or gnome
[20:04:22] diegoviola: https://www.youtube.com/watch?v=JZ017D_JOPY
[20:04:26] shevy: that covers 90% of the complaints
[20:04:48] momomomomo: has joined #ruby
[20:04:55] munen: has joined #ruby
[20:05:03] shevy: he has gotten a belly :(
[20:05:11] diegoviola: shevy: he complains about crappy code too
[20:05:21] shevy: didn't I say it
[20:05:23] diegoviola: shevy: now you're complaining about his belly
[20:05:23] shevy: C++ and gnome
[20:05:28] diegoviola: shevy: everyone complains about things
[20:05:30] shevy: he has gotten fat
[20:05:44] shevy: look at matz, he is still slender
[20:06:02] mistnim: do you think following Odin is good to learn ruby?
[20:06:10] shevy: what is Odin, is that a dog?
[20:06:17] jamesaxl: has joined #ruby
[20:06:28] shevy: or is that a Norse god
[20:06:36] shevy: like Thor Wauki and Loki
[20:06:50] shevy: yo atmosx
[20:06:56] atmosx: how's life shevy
[20:07:05] shevy: atmosx it is damn hot, today it was around 31?C
[20:07:10] shevy: the heat kills me and knocks me down :(
[20:07:16] jhass: jgt3: regarding your question, you're better of in #RubyOnRails
[20:07:35] brandon: has joined #ruby
[20:07:37] `Nibble_: has joined #ruby
[20:07:37] bhaak: has joined #ruby
[20:07:42] sharpmachine: has joined #ruby
[20:07:44] mistnim: has joined #ruby
[20:07:46] n008f4g_: has joined #ruby
[20:07:54] dopie: has joined #ruby
[20:07:54] Luyt_: has joined #ruby
[20:07:58] nizmow_: has joined #ruby
[20:08:03] SirCmpwn: has joined #ruby
[20:08:05] qwertme: has joined #ruby
[20:08:08] mr_rich101: has joined #ruby
[20:08:09] postmodern: has joined #ruby
[20:08:11] stephenh: has joined #ruby
[20:08:13] sarlalian: has joined #ruby
[20:08:14] hectortrope: has joined #ruby
[20:08:23] iamayam: has joined #ruby
[20:08:25] existensil: has joined #ruby
[20:08:30] diegoviola: has joined #ruby
[20:08:42] diegoviola: has joined #ruby
[20:08:46] martinbmadsen: has joined #ruby
[20:08:53] jgt3: jhass: ah, good point. Cheers.
[20:08:53] Obfuscate: has joined #ruby
[20:08:55] Jarboe: has joined #ruby
[20:09:05] mistnim: it teaches you rspec from the very beginning
[20:09:43] symm-: has joined #ruby
[20:10:09] simplyianm: has joined #ruby
[20:10:10] j416: has joined #ruby
[20:10:24] atmosx: shevy: buy a house at Ithaca, should be cheap right now.
[20:10:32] dualbus: has joined #ruby
[20:10:33] shevy: but it's even hotter there!
[20:10:56] atmosx: NOt really, the breeze is strong... It's a wind actually.
[20:11:22] atmosx: the weather changes extremely fast there, it's spectular watching the clouds moving at ithaca... And hte sea is as good as any I've seen
[20:11:39] adeponte: has joined #ruby
[20:11:44] ss_much: has joined #ruby
[20:11:46] dudedudeman: i want to move somewhere cool :(
[20:11:52] scottymeuk: has joined #ruby
[20:11:54] hyperjuice: has joined #ruby
[20:12:01] rbowlby: has joined #ruby
[20:12:03] dudedudeman: texas is too damn hot
[20:12:24] shevy: dudedudeman go to California
[20:12:51] shevy: are there any really cold places in the USA actually?
[20:12:56] wallerdev: has joined #ruby
[20:13:07] mistnim: north dakota
[20:13:18] shevy: atmosx I'd like to have access to an ocean
[20:13:39] codex: has joined #ruby
[20:13:40] hyperjuice: has joined #ruby
[20:13:54] dudedudeman: i mean, upstate newyork gets frigid, and colorado
[20:14:09] dudedudeman: i guess it depends on whether or not you mean cold year round, or stupid cold during the winters
[20:14:15] dudedudeman: most states do get all 4 seasons though
[20:14:46] shevy: well I guess it's hotter in Texas and California all the time
[20:15:01] mistnim: why not alaska?
[20:15:15] shevy: that should belong to canada rightfully :)
[20:16:21] jcaho: has joined #ruby
[20:16:24] stoogenmeyer: has joined #ruby
[20:16:34] duncannz: has joined #ruby
[20:17:46] dudedudeman: mistnim: i wouldn't mind alaska. it's getting my wife to move there with me that would be the problem :P
[20:18:25] ItSANgo: has joined #ruby
[20:18:37] lessless: has joined #ruby
[20:19:33] atmosx: wow just got a "twelve south" typing stand. it seemed like a toy, but truth to be told it's amazing.
[20:19:54] atmosx: and it's attached to the macbook air so I can bring it with me everywhere withoug detaching, which is +100.
[20:20:04] finisherr: has joined #ruby
[20:20:10] vyorkin2: has joined #ruby
[20:20:23] atmosx: shevy: Boston is cold IIRC
[20:20:44] blackmes2: has joined #ruby
[20:21:42] shevy: atmosx I have a good heat indicator
[20:21:44] alanjf: shevy: Posted: https://bugs.ruby-lang.org/issues/11257
[20:21:55] shevy: atmosx my cat. she just walked out of a room... and fell down to one side flat
[20:22:15] shevy: alanjf \o/ cool
[20:22:23] dudedudeman: bost is cold as f*4K!!!
[20:22:24] paulcsmith: has joined #ruby
[20:22:45] bgmarx: has joined #ruby
[20:23:12] alanjf: shevy: Hope it helps others.
[20:23:28] blue_deref: has joined #ruby
[20:23:54] hotpanca_: has joined #ruby
[20:24:03] shevy: I hope it will; perhaps in some days you'll see a guy with a japanese name added a change at https://github.com/ruby/ruby/blob/trunk/ChangeLog
[20:24:08] niemcu: has joined #ruby
[20:25:41] drewo: has joined #ruby
[20:25:56] spider-mario: has joined #ruby
[20:26:02] mistnim: do you really need to learn rspec to do web development?
[20:26:23] alanjf: shevy: ah
[20:26:35] jhass: mistnim: but it doesn't harm at all
[20:26:43] alanjf: are all the ruby maintainers japanese?
[20:27:32] alanjf: Are the founders japanese?
[20:27:38] atmosx: mistnim: no, but it's not hard. It doesn't even have a learning cure. Use it two days and you know everything there is to know about it.
[20:27:45] atmosx: mistnim: rails default is minitest though
[20:27:53] alanjf: (Whoever is equivilent of PErl's LArry Wall is for Ruby I mean.)
[20:28:08] alanjf: (bah stupid shift key)
[20:28:08] atmosx: alanjf: zenspider <--
[20:28:21] jhass: alanjf: yes
[20:28:32] alanjf: atmosx: For about a millisecond I nearly read hat as zend...
[20:28:37] atmosx: alanjf: Ryan Davis, but there are others. The original author is called Matz (Yukihiro Matsumoto o rsomething)
[20:28:40] alanjf: read that*
[20:29:13] lucianosousa_: has joined #ruby
[20:30:18] nofxx: has joined #ruby
[20:30:19] nofxx: has joined #ruby
[20:30:34] x1337807x: has joined #ruby
[20:30:35] diegoviola: sqlalchemy in python looks more complicated than activerecord/sequel in ruby
[20:30:41] diegoviola: and I have to use it
[20:31:05] jhass: #python ?
[20:31:27] alanjf: Snakes.... why'd it have ot be snakes....
[20:31:40] diegoviola: my boss wants me to work on some python project
[20:32:16] jhass: could be worse
[20:32:32] mrmargolis: has joined #ruby
[20:32:45] alanjf: Could have been PHP or VB6.
[20:33:05] alanjf: ACTION shudders violently
[20:33:20] diegoviola: does that even exist still?
[20:33:28] alanjf: (or VB.NET to a lesser extent...)
[20:33:51] ascarter: has joined #ruby
[20:33:57] alanjf: diegoviola: Unfortunately, there is still a ton of legact VB code around.
[20:34:07] diegoviola: remove it all
[20:34:10] miah: im sure is tons of it
[20:34:11] alanjf: diegoviola: I have a couple of clients still using code originally written in the mid 90s or so.
[20:34:27] miah: no,.. what about Foxpro? =)
[20:34:30] diegoviola: alanjf: you should remove them all
[20:34:44] alanjf: IF it were up to me I'd thorw it all into the nearest /dev/null abyss
[20:34:47] miah: or Delphi for that matter
[20:34:59] jenrzzz: has joined #ruby
[20:35:09] sandelius: has joined #ruby
[20:35:15] alanjf: miah: Please don't, I thought I finally removed every last remnant of that strosity from my mind...
[20:35:21] alanjf: atrosity*
[20:35:27] alanjf: foxpro that is
[20:35:42] alanjf: Delphi was never that bad. C++ Builder was alright for it's time.
[20:35:53] diegoviola: alanjf: they should at the very least run that crap inside a VM on Linux and rewrite it in the mean time, then get rid of the VM
[20:35:59] Ox0dea: >> Symbol.all_symbols.size
[20:36:00] ruboto: Ox0dea # => 2511 (https://eval.in/380826)
[20:36:00] miah: my first job was all about netware ad foxpro
[20:36:03] alanjf: Both were far better than VB at any rate.
[20:36:14] alanjf: miah: I know your pain far too well.
[20:36:15] miah: s/ad/and
[20:36:47] miah: im thankful i dont have to install the netware client on windows95 anymore
[20:37:01] alanjf: Frightening.
[20:37:07] mandarinkin: has joined #ruby
[20:37:24] alanjf: Like a B horror film fro mthe 70s/80s but far more terrifying
[20:37:39] miah: was always a 50/50 chance the netware client would render the system unbootable
[20:37:56] miah: all the bizarre windows errors and then... uninstalling it.. IMPOSSIBLE
[20:38:03] alanjf: I remember using netware client on 3.11/WFW still.
[20:38:16] miah: we did a ton of boot off floppy netware clients
[20:38:48] miah: most of our clients were small businesses like collections agencies or nursery
[20:39:27] miah: learned TONS. thankful its history
[20:39:35] alanjf: Back then I remember using it in schools a lot, like high school near me then.
[20:39:49] alphaatom: has joined #ruby
[20:39:49] alanjf: And the local community college.
[20:39:56] atmosx: miah: what was the netware client about?
[20:40:01] alanjf: And a couple small offices.
[20:40:10] atmosx: ACTION didn't have a computer in 1995, suddenly it feels like "young"
[20:40:37] alanjf: atmosx: At the time, having a network login system
[20:40:47] atmosx: alanjf: ah, like ldap?
[20:40:49] miah: netware was a file/print/network thing in the days of 10base2 and dos
[20:40:55] apeiros: ACTION had a computer back in 1987, fond memories
[20:40:55] atmosx: a centralize login scheme?
[20:40:58] alanjf: Sorta useful for systems loike 3.x and 9x that didn't have a good login system with their own.
[20:41:06] alanjf: miah: Yeah exactly
[20:41:06] havenwood: has joined #ruby
[20:41:10] alphaatom: has joined #ruby
[20:41:12] atmosx: apeiros: how old where you, you're 1 year younger than IIRC.
[20:41:13] miah: you could do ldapish kinda stuff, and scripts to run during login
[20:41:21] miah: mount remote disk paths and printers
[20:41:27] apeiros: it wasn't *my* computer, mind you
[20:41:29] yorickpeterse: ah, some sweet home
[20:41:39] atmosx: I had a couple of friends who had some computers in lates 80s, ATARI, Commodore 64 and an Armstrad (or something).
[20:41:47] atmosx: apeiros: oh it figures.
[20:41:51] apeiros: I remember my tries to understand wtf was going on with that device :D
[20:41:58] Sou|cutter: apeiros: thank goodness for parents who were early computer adopters eh?
[20:42:07] miah: i didnt have a computer until my teens, but i had lots of exposure to them outside of the home
[20:42:25] apeiros: Sou|cutter: yupp. father worked in dtp, so it was even a mac.
[20:42:36] atmosx: apeiros: my parents were basically keeping me away from anything digital because I was kinda attracted to these things, whiel they hated them and believed that they would harm me.
[20:42:47] workmad3: has joined #ruby
[20:42:52] atmosx: hence my first computer came in 1999 when I was 17, 1st year in univ.
[20:42:53] yorickpeterse: amazing how cat milk, some treats and combing can turn a very grumpy cat into a very content cat
[20:43:03] apeiros: heh, my parents only limited the time we could use those things. and in retrospect, I think that was a good choice.
[20:43:11] yorickpeterse: "Oh you're back? Well, you have 3 weeks of attention to catch up on"
[20:43:27] StephenOTT: has joined #ruby
[20:43:28] atmosx: apeiros: you were using them just to play game right? Or did you start programming at a younger age?
[20:43:29] Sou|cutter: yorickpeterse: where do you get cat milk? are you milking cats?
[20:43:58] apeiros: atmosx: I started using hypercard very early. also did my first steps with C. but C having only english manuals, and no internet back then, ended rather quickly.
[20:44:08] Sou|cutter: atmosx: I was programming LogoWriter at age 6 :)
[20:44:20] atmosx: Sou|cutter: and what do you program now, age...?
[20:44:22] yorickpeterse: Sou|cutter: at the grocery store
[20:44:24] yorickpeterse: it's milk for cats
[20:44:25] atmosx: apeiros: cool
[20:44:25] jhass: it sounds like you people all want to fill #ruby-offtopic with some life ;P
[20:44:27] yorickpeterse: not milk _from_ cats
[20:44:28] miah: logo was fun
[20:44:36] Sou|cutter: atmosx: Still LogoWriter, and I'm 7 now
[20:44:37] apeiros: jhass: aaahaha, yes, totally :D
[20:44:40] miah: jhass: lol ya it was quiet in here
[20:44:48] atmosx: jhass: anther # ...jesus we're not *that* many.
[20:44:52] Sou|cutter: j/k. I'm in my early thirties
[20:45:07] atmosx: Sou|cutter: programmer?
[20:45:29] Sou|cutter: I'm in #ruby right? :) (sorry for the OT btw)
[20:45:39] nobitanobi: has joined #ruby
[20:45:49] atmosx: Sou|cutter: I knew you were a Haskell programmer.
[20:45:53] krisquigley: has joined #ruby
[20:46:28] rhllor: has joined #ruby
[20:46:53] claws: has joined #ruby
[20:47:16] wildroman2: has joined #ruby
[20:49:12] momomomomo: has joined #ruby
[20:50:31] bootstrappm: has joined #ruby
[20:50:50] shevy: he gave his soul away to monads
[20:51:09] towski_: has joined #ruby
[20:51:16] A124: has joined #ruby
[20:51:43] failshell: has joined #ruby
[20:52:19] sdwrage: has joined #ruby
[20:53:10] learath: has left #ruby: ()
[20:53:11] allomov: has joined #ruby
[20:53:26] jackjackdripper: has joined #ruby
[20:55:30] munen: has joined #ruby
[20:57:03] griffindy: has joined #ruby
[20:57:19] blackmes2: has joined #ruby
[20:57:20] bronson: has joined #ruby
[21:01:34] ascarter: has joined #ruby
[21:04:03] allcentury: has joined #ruby
[21:04:21] diegoviola: "You use Linux? You use Vim to write code?" -- Why do I always get these type of questions from coworkers
[21:04:29] casadei: has joined #ruby
[21:06:22] dfockler: has joined #ruby
[21:06:22] swgillespie: has joined #ruby
[21:07:10] apeiros: diegoviola: because those questions allow you to spread insight and knowledge
[21:07:19] Musashi007: has joined #ruby
[21:07:57] bruno-: has joined #ruby
[21:08:15] hedgecore: has joined #ruby
[21:08:18] Ox0dea: diegoviola: What's in your @a?
[21:08:37] sandstrom: has joined #ruby
[21:09:03] balazs: has joined #ruby
[21:09:05] Ox0dea: A macro to quit WeeChat? That doesn't seem very useful.
[21:10:52] atmosx: What might have been is an abstraction, Remaining a perpetual possibility, Only in a world of speculation.
[21:11:19] mozzarella: what's your uptime, bruh?
[21:11:27] atmosx: who's uptime?
[21:11:37] mozzarella: you mean whose?
[21:11:42] atmosx: yes, sorry
[21:12:12] bgmarx: has joined #ruby
[21:12:41] pen: has joined #ruby
[21:13:14] cj: I'm uptime!
[21:13:41] mozzarella: I found your guy
[21:13:42] banister: has joined #ruby
[21:13:47] lavros: has joined #ruby
[21:14:23] dfockler: What's up time?
[21:14:45] dfockler: What's the best way to share a db connection between multiple files in a library?
[21:14:47] cj: chillin' smokin' a bud
[21:15:01] dfockler: cj: that is one way to do it I guess
[21:15:01] sandstrom: has joined #ruby
[21:15:19] jphenow: has joined #ruby
[21:15:32] RickHull: don't bogart that db handle
[21:15:35] cj: what kind of files are these? .rb files that have a libmysqlclient-type interface to the db?
[21:15:49] dfockler: .arbys files
[21:16:06] dfockler: using the Sequel gem
[21:16:23] apeiros: dfockler: pass it around
[21:16:30] apeiros: whatever uses your library being responsible
[21:16:31] cj: I'm not a ruby guy, but let me think... do these .arbys files share the same process execution scope?
[21:17:10] dfockler: apeiros: as a constant, or a method call? does it matter?
[21:17:21] Marsupermammal: has joined #ruby
[21:17:37] endorphine_: has joined #ruby
[21:17:38] apeiros: dfockler: as an argument to the constructor
[21:17:48] cj: constants are not good for db connections. use the instance of the db access object to issue queries.
[21:18:40] apeiros: dfockler: but given that you talk about "files in a library" instead of "classes in a library", I'd assume you're just starting to code ruby?
[21:19:31] atmosx: dfockler: you create an instead of a ConnectToDatabase class and you pass it around. See Sequel as already mentioned.
[21:19:42] atmosx: s/instead/instance
[21:19:47] atmosx: ACTION needs to get some sleep
[21:19:49] shevy: dfockler possibly via distributed ruby drb http://ruby-doc.org/stdlib-1.9.3/libdoc/drb/rdoc/DRb.html
[21:19:52] dagda1_: has joined #ruby
[21:20:02] apeiros: dfockler: you can always put your stuff on github and ask for review
[21:20:02] atmosx: shevy: isn't that an overkill?
[21:20:13] shevy: atmosx overkill would be to use java!
[21:21:30] toretore: sharing db connection via drb sounds like a great idea
[21:22:01] bin_005: has joined #ruby
[21:22:23] apeiros: sarcasm, I hope?
[21:22:40] dfockler: I just need to allow different classes to make calls to the database, and I don't want to have the connection code in every class
[21:22:45] toretore: indeed apeiros
[21:22:59] apeiros: dfockler: as said - argument to the constructor
[21:23:13] toretore: dfockler: how about gisting the code you have now so we can see what you're working with?
[21:23:51] dfockler: I can, it's not a true gem, just a lib that's getting used by an API, I'll put up a gist
[21:24:37] atmosx: dfockler: what kind of DB? mysql?
[21:24:52] robbyoconnor: has joined #ruby
[21:24:54] atmosx: cool, use https://github.com/jeremyevans/sequel.
[21:25:09] atmosx: clickable => https://github.com/jeremyevans/sequel
[21:25:28] dfockler: atmosx: Oh I said I was using that :)
[21:27:14] atmosx: dfockler: okay, so you create the connection, require that file and you have access to that object.. you just pass the object around and that's about it.
[21:27:18] x1337807x: has joined #ruby
[21:27:42] arturmartins: has joined #ruby
[21:27:53] toretore: gotta inverse that control tho
[21:28:12] apeiros: the library user should control the connection
[21:28:15] dfockler: atmosx: right now I have it as a class constant so like MyClass::DB, and then require the myclass.rb file
[21:28:54] code1o6: has joined #ruby
[21:29:59] nertzy: has joined #ruby
[21:30:46] crdpink: has joined #ruby
[21:31:46] shevy: atmosx would this be a wallpaper to your liking: http://hqwallbase.com/images/big/tyrannosaurus_rex_drums_nuclear_explosions_orange_wallpaper-42087.jpg
[21:32:38] atmosx: shevy: no :-P
[21:33:18] atmosx: dfockler: that works too but it's not thread-safe, if I'm getting what you did.
[21:35:28] Marsupermammal: has joined #ruby
[21:35:52] nickjj: has joined #ruby
[21:37:21] atmosx: night all
[21:37:30] dfockler: atmosx: thanks for the help
[21:37:50] hotpancakes: has joined #ruby
[21:38:26] pengin: has joined #ruby
[21:40:00] _seanc_: has joined #ruby
[21:40:04] bantic: has joined #ruby
[21:40:29] commondream: has joined #ruby
[21:41:20] joaomdmoura: has joined #ruby
[21:41:58] avelldiroll: has joined #ruby
[21:42:02] Scroff: has joined #ruby
[21:42:25] Ox0dea: >> 6.to_s(1) == '||||||'
[21:42:26] ruboto: Ox0dea # => invalid radix 1 (ArgumentError) ...check link for more (https://eval.in/380840)
[21:42:46] Ox0dea: Ruby is anti-caveman.
[21:43:08] jhass: the issue with base 1 is how to present 0
[21:43:33] hinbody: has joined #ruby
[21:43:36] Ox0dea: Empty string seems like it ought to do.
[21:44:03] jhass: yeah but then none of the other bases returns empty string
[21:44:12] jhass: also math heads disagree about it greatly afaik :P
[21:44:26] Ox0dea: >> ''.to_i(10)
[21:44:27] ruboto: Ox0dea # => 0 (https://eval.in/380842)
[21:44:36] Notte: has joined #ruby
[21:44:53] jhass: >> '???'.to_i
[21:44:54] ruboto: jhass # => 0 (https://eval.in/380844)
[21:45:11] adaedra: we need a UNICODE_SNOWMAN constant.
[21:45:16] pietr0: has joined #ruby
[21:45:23] apeiros: Ox0dea: space would just be a different representation of 0, so base2 again
[21:45:26] adaedra: Let's make a gem for that.
[21:46:19] FernandoBasso: has joined #ruby
[21:46:22] apeiros: and you'd need to introduce a new boundary character for numbers in text :)
[21:46:38] Ox0dea: I just want ??? n ??? ???: 10??? = n?????? to hold, dammit. :/
[21:47:08] babykosh: has joined #ruby
[21:47:16] dfockler: here is a simplified example of what I'm doing https://gist.github.com/dfockler/9a8c252eac69cc7b4f82
[21:47:36] dfockler: Is this a good idea, or should I do something different?
[21:47:40] Ox0dea: It's like the Euler's identity of programming.
[21:48:26] toretore: don't do require('./job'), do require('job') and set the path accordingly
[21:49:16] dfockler: toretore: how do you do that for local files?
[21:49:24] wldcordeiro: has joined #ruby
[21:49:54] Ox0dea: adaedra: Fun fact: LOLCODE has "constants" for every Unicode character.
[21:50:13] toretore: dfockler: ruby -I. file.rb
[21:50:18] adaedra: Given that every unicode character has a name, seems normal
[21:50:34] toretore: dfockler: def initialize(jobs, db);
[21:51:02] Ox0dea: adaedra: You can do VISIBLE ":[BLACK SNOWMAN]" in LOLCODE.
[21:51:05] toretore: Batch.new(jobs, Sequel.connect(...))
[21:51:08] tomphp: has joined #ruby
[21:51:12] Ox0dea: Not exactly "normal".
[21:51:49] jgt3: has joined #ruby
[21:53:00] robbyoconnor: has joined #ruby
[21:53:20] veinofstars: has joined #ruby
[21:55:03] mister_solo: has joined #ruby
[21:55:08] dfockler: toretore: so like apeiros said, just pass it in as an argument
[21:56:06] toretore: i'd probably not interact with the db from inside those classes in the first place
[21:56:15] kaleido: has joined #ruby
[21:56:32] toretore: seems to me like the Job class should only be tasked with fetching the remote data
[21:56:51] dfockler: toretore: should I pass the results to another class to do database storage?
[21:56:54] tomphp_: has joined #ruby
[21:57:07] toretore: that's what i'd do
[21:57:50] commondream: has joined #ruby
[21:58:19] bgmarx_: has joined #ruby
[21:59:14] toretore: this way, any thread-unsafetyness of the db client doesn't matter either if you decide to parallelize later
[21:59:47] dfockler: toretore: sure, it just seems weird if there are multiple different classes to pass different kinds of data to be stored
[22:00:11] tomphp: has joined #ruby
[22:00:48] th_masv: has joined #ruby
[22:00:53] toretore: you can still have the concept of a "job" that knows how to talk to the db, just separate from the other stuff
[22:02:49] decoponyo: has joined #ruby
[22:03:16] dronov: has joined #ruby
[22:05:34] xxneolithicxx: has joined #ruby
[22:05:42] Apocalypse: has joined #ruby
[22:05:42] Apocalypse: has joined #ruby
[22:06:36] nertzy: has joined #ruby
[22:08:07] rbowlby: has joined #ruby
[22:08:32] jphenow: has joined #ruby
[22:10:10] platzhirsch: has joined #ruby
[22:10:17] platzhirsch: has left #ruby: ()
[22:10:56] JakFrist: has joined #ruby
[22:11:22] axl_: has joined #ruby
[22:14:18] iamninja: has joined #ruby
[22:15:13] qwertme: has joined #ruby
[22:16:51] rbowlby: has joined #ruby
[22:17:12] JamesDH: has joined #ruby
[22:18:15] adaedra: https://github.com/adaedra/unicode-snowman
[22:18:31] centrx: has joined #ruby
[22:19:12] Marsupermammal: has joined #ruby
[22:19:38] dented42: has joined #ruby
[22:20:48] idafyaid: has joined #ruby
[22:21:20] endash: has joined #ruby
[22:21:21] jenrzzz: has joined #ruby
[22:22:04] RickHull: havenwood: postmodern: i'm having some issues with gems that I think is related to chruby
[22:22:29] RickHull: require times are super high for some combinations of gems and files. profiling, I see a lot of Gem::Specification#conflicts
[22:22:53] RickHull: my setup is a little quirky, so i'm probably doing something "wrong"
[22:23:36] Pupeno: has joined #ruby
[22:23:39] RickHull: my main user is using rubies installed to /opt/rubies, and this user does a lot of development, and likes to be able to install gems locally to homedir
[22:24:08] skade: has joined #ruby
[22:24:28] RickHull: this machine also supports other users that aren't doing development, but want to use the "app" i'm running. so that's why i'm even using chruby at system level
[22:25:24] xxneolithicxx: has joined #ruby
[22:25:32] RickHull: as such, my user has a GEM_HOME pointing to homedir, but GEM_PATH has one entry corresponding to GEM_HOME, and also another corresponding to /opt/rubies
[22:25:38] tubuliferous_: has joined #ruby
[22:25:54] A205B064: has joined #ruby
[22:25:55] RickHull: I think the two GEM_PATH entries are related to the Specification#conflicts
[22:26:32] sdothum: has joined #ruby
[22:26:35] RickHull: If I login as root, just using system ruby and gems, none of this manifests
[22:27:00] grzywacz: has joined #ruby
[22:28:15] RickHull: ah, found #chruby
[22:29:16] JDiPierro: has joined #ruby
[22:30:53] aaeron: has joined #ruby
[22:31:47] munen: has joined #ruby
[22:33:52] j4cknewt: has joined #ruby
[22:34:42] krisquigley: has joined #ruby
[22:35:16] kodnin: has joined #ruby
[22:35:29] failshell: has joined #ruby
[22:35:33] casadei: has joined #ruby
[22:36:27] Ox0dea: adaedra: Come on, guy.
[22:37:44] gusrub: has joined #ruby
[22:37:48] pragmatism: has joined #ruby
[22:38:49] pragmatism: When the hell did the #rubylang channel become private?
[22:38:54] x1337807x: has joined #ruby
[22:39:27] RickHull: about 2 weeks ago when #ruby-lang was merged into here
[22:39:32] RickHull: assuming you mean #ruby-lang
[22:39:38] idafyaid: has joined #ruby
[22:39:43] arooni-mobile: has joined #ruby
[22:39:44] munen: has joined #ruby
[22:40:09] Ox0dea: pragmatism: "Grant me the serenity to accept the things I cannot change."
[22:40:27] pragmatism: Ox0dea What?
[22:40:30] pragmatism: RickHull Thanks.
[22:40:53] pragmatism: Glad the channels finally merged.
[22:40:59] Scripore: has joined #ruby
[22:41:04] JakFrist: has joined #ruby
[22:41:16] Ox0dea: pragmatism: Then why has #ruby-lang's becoming private perturbed you so?
[22:41:46] jacaballero: has joined #ruby
[22:42:07] vdamewood: has joined #ruby
[22:42:08] Spami_: has joined #ruby
[22:42:11] rippa: has joined #ruby
[22:42:48] rubie_: has joined #ruby
[22:43:25] mcclurmc_: has joined #ruby
[22:43:42] commondream: has joined #ruby
[22:44:08] joaomdmoura: has joined #ruby
[22:44:47] RickHull: Ox0dea: If i had to guess, the perturbation became serenity upon learning of the merge
[22:44:51] mistermocha: has joined #ruby
[22:45:34] Filete: has joined #ruby
[22:45:37] mistermo_: has joined #ruby
[22:45:42] shevy: pragmatism Ox0dea is the channel philosopher
[22:45:56] wookiehangover: has joined #ruby
[22:46:11] shevy: pragmatism the initial proposal to unify the two has happened by jhass here
[22:46:19] shevy: (the two channels, that is)
[22:46:52] pragmatism: thanks shevy
[22:46:55] blue_deref: has joined #ruby
[22:46:59] shevy: adaedra I see you are extending ruby's usefulness https://github.com/adaedra/unicode-snowman
[22:47:02] RickHull: not getting any help in #chruby yet. can anyone tell me if my `gem env` is sane? https://gist.github.com/rickhull/eb94929874636a0cbbf6
[22:47:41] freerobby: has joined #ruby
[22:47:54] Ox0dea: Go home, Unicode.
[22:48:55] munen: has joined #ruby
[22:49:04] hardlin3r: has joined #ruby
[22:49:14] lucianosousa: RickHull: looks fine. what is happening?
[22:49:16] adaedra: So, CodeClimate keeps examining only my version file
[22:49:39] j4cknewt: has joined #ruby
[22:49:58] Ox0dea: adaedra: For unicode-snowman, or?
[22:50:09] adaedra: no, another project
[22:50:12] DLSteve: has joined #ruby
[22:50:25] Asher: has joined #ruby
[22:50:34] RickHull: lucianosousa: see the profiler output
[22:51:06] adaedra: Ox0dea: codeclimate.com/github/adaedra/tramway/code
[22:51:35] RickHull: lucianosousa: basically doing some requires as root in a cleaner environment, takes well under a second
[22:51:41] RickHull: as my normal user, it takes 13 seconds
[22:51:45] RickHull: and with profiler on, 50 seconds
[22:52:30] jgt3: has joined #ruby
[22:52:38] RickHull: the big slowdown is rubygems trying to handle Gem::Specification#conflicts
[22:52:43] RickHull: (to my reading)
[22:53:03] RickHull: let me post the same output for root user, where things are normal
[22:53:39] towski__: has joined #ruby
[22:54:28] lucianosousa: I do not have any shell path config in my one
[22:55:19] lucianosousa: in yours looks like you have 3 different paths for bin files
[22:55:50] Rubie: has joined #ruby
[22:55:54] RickHull: updated https://gist.github.com/rickhull/eb94929874636a0cbbf6
[22:56:48] lucianosousa: I can imagine that happens some strange problem about it
[22:56:50] M-Technic: has joined #ruby
[22:57:02] lucianosousa: conflict with ruby in your system and rvm
[22:57:10] lucianosousa: are you using linux, right?
[22:57:21] j4cknewt: has joined #ruby
[22:57:26] lucianosousa: can you check if you have a system ruby pack installed?
[22:57:31] ruurd: has joined #ruby
[22:57:41] lucianosousa: in your root it works fine because u do not have rvm there
[22:57:52] RickHull: using linux and chruby
[22:57:57] RickHull: and root is using chruby's ruby
[22:58:01] pocketprotector: has joined #ruby
[22:58:11] francois_: has joined #ruby
[22:58:23] ruurd: why? why oh why?
[22:58:23] RickHull: on debian, no ruby packages installed
[22:59:24] ruurd: if it does not work on a regular user it's almost always a rights problem
[22:59:30] bruno-: has joined #ruby
[23:00:25] lucianosousa: it means, two chruby installations?
[23:00:40] jhass: RickHull: btw you should tell where you crosspost and keep all sides updated about made suggestions
[23:00:44] RickHull: chruby is installed once, to a system location. /usr/local/share or something
[23:01:18] RickHull: ruby-install to install multiple rubies to system location
[23:01:42] lucianosousa: but you have another ruby installation in your user path
[23:01:53] shevy: my brain is currently not working. if I have a file that could be called "foo.png" but also "foo.jpg", and I want to obtain only "foo", what to use?
[23:01:58] lucianosousa: - /home/rwh/.gem/ruby/2.1.3/bin
[23:02:03] hightower4: has joined #ruby
[23:02:25] RickHull: lucianosousa: that's just for gems i believe? i did have a ruby installed to homedir
[23:02:27] RickHull: but removed it
[23:02:28] CloCkWeRX: has left #ruby: ()
[23:02:39] jhass: shevy: nested File.basename?
[23:02:40] adaedra: shevy: a brain
[23:02:48] lucianosousa: for gems I think is the gem path
[23:02:56] RickHull: jhass: thx, will do
[23:03:20] jhass: >> File.basename(File.basename("foo.png", ".jpg"), ".png")
[23:03:21] ruboto: jhass # => "foo" (https://eval.in/380864)
[23:03:25] jhass: >> File.basename(File.basename("foo.jpg", ".jpg"), ".png")
[23:03:26] ruboto: jhass # => "foo" (https://eval.in/380865)
[23:03:31] havenwood: When there are more gems available it takes longer to do conflict resolution. Especially in RubyGems 2.2.2 since it doesn't have the 2.3.0 cache resolution speed fix: https://github.com/rubygems/rubygems/pull/842
[23:04:09] JDiPierro: has joined #ruby
[23:04:09] hightower4: Hey btw, we're a Ruby/Perl/Python shop and are looking for a couple Ruby (not Rails) developers to join the team. If interested, please msg me in private.
[23:04:19] shevy: jhass aaah that was it indeed, thanks
[23:04:20] havenwood: As mentioned in #chruby, update RubyGems to the latest version for security fixes as well as bug fixes.
[23:04:23] RickHull: havenwood: yes, thanks, i will try the newer rubygems
[23:04:40] RickHull: i'm still not convinced there isn't something wrong with my setup though
[23:04:42] lucianosousa: you guys like chruby?
[23:04:47] havenwood: lucianosousa: yup
[23:04:51] lucianosousa: I never had a chance to it :)
[23:04:54] ruurd: has joined #ruby
[23:04:54] lucianosousa: always with rvm
[23:05:12] ruurd: RickHull: don't run things as root if you do not absolutely need to.
[23:05:15] sandstrom: has joined #ruby
[23:05:34] RickHull: ruurd: thanks for the tip :) but when installing things at the system level, you need to
[23:05:34] havenwood: lucianosousa: RVM actually does support using chruby for switching Rubies.
[23:06:17] crdpink: has joined #ruby
[23:06:52] crdpink: has joined #ruby
[23:07:08] RickHull: havenwood: ok, by only using a single GEM_PATH, I get expected behavior
[23:07:09] jenrzzz: has joined #ruby
[23:07:18] ruurd: installing is a different thing, yes, some dependencies can need root rights but that is really different from running some application you made in ruby or whatever as root which is a bad plan
[23:07:36] RickHull: ruurd: thanks, i'm not running my app as root
[23:07:49] baweaver: has joined #ruby
[23:07:55] havenwood: RickHull: The more gems the more it slows down. Check the benchmark on the PR I linked.
[23:08:02] ruurd: What happens if you move things around in de GEM_PATH?
[23:08:03] RickHull: havenwood: i suspect it's not just gem count
[23:08:14] RickHull: but literally having multiple GEM_PATH entries
[23:08:19] RickHull: that generates all the conflicts
[23:08:32] havenwood: RickHull: Try some empty GEM_PATHS, I doubt you can reproduce.
[23:08:47] someword: has joined #ruby
[23:08:59] ruurd: Rick do you have a log or backtrace or console message I can look ar?
[23:09:05] havenwood: RickHull: Though installing latest RubyGems is the best way to confirm. ;)
[23:09:31] RickHull: havenwood: what i'm getting at is, it might better to avoid the conflicts rather than resolve them
[23:10:05] qwertme: has joined #ruby
[23:10:26] balazs: has joined #ruby
[23:10:37] RickHull: i think having to scan multiple paths, where the same gem (and various versions) are installed to both, generates the vast bulk of conflicts
[23:11:23] RickHull: that multiple GEM_PATH entries is a feature that comes with a cost, the cost of which is reduced in 2.2.2
[23:11:51] RickHull: anyways, updating :)
[23:11:52] bgmarx: has joined #ruby
[23:12:20] dfockler: So after changing things around with the shared DB, I have something like this https://gist.github.com/dfockler/9a8c252eac69cc7b4f82
[23:12:42] havenwood: Everyone else upgrade RubyGems too if you haven't already! CVEs!!: gem update --system
[23:12:47] dfockler: toretore: is this what you were talking about?
[23:13:01] havenwood: (Unless you're using some package manager RubyGems. >.>)
[23:13:18] Marsupermammal: has joined #ruby
[23:14:51] crdpink: has joined #ruby
[23:15:03] crdpink: has joined #ruby
[23:16:36] x1337807x: has joined #ruby
[23:16:48] hyperjuice: has joined #ruby
[23:16:56] JDiPierro: has joined #ruby
[23:17:44] gusrub: has joined #ruby
[23:18:08] shevy: what is the gemv
[23:18:17] shevy: I am on 2.4.7
[23:19:42] shevy: there we go: 2.4.8 is now installed here \o/
[23:19:54] jpfuentes2: has joined #ruby
[23:20:00] centrx: I knew you could do it!
[23:20:31] shevy: I just do "urla rubygems" and it opens the link to rubygems
[23:20:43] shevy: then I fetch the URL, and do "ue rubygems" and it updates with said link
[23:20:48] senayar: has joined #ruby
[23:21:01] centrx: hmm, so much magic it sounds like rails
[23:21:02] Ox0dea: Does main not being a Module make it impossible to "globally refine" const_missing?
[23:21:06] shevy: then "ecompile rubygems" and it installs it
[23:21:37] shevy: centrx oh it's almost perfect! that I have to manually fetch the URL is bad, I have to write something that checks for updates in a reliable way
[23:22:25] jhooker: has joined #ruby
[23:23:03] Ox0dea: method_missing can be refined on Object to do one's black magic in a box, but what about const_missing?
[23:23:38] Ox0dea: >> [method(:method_missing), method(:const_missing)]
[23:23:39] ruboto: Ox0dea # => undefined method `const_missing' for class `Object' (NameError) ...check link for more (https://eval.in/380866)
[23:25:25] centrx: Ox0dea, It looks like const_missing is only called when used with the scope resolution operator? ::
[23:26:05] Ox0dea: >> def Object.const_missing(c) :ok end; Foo
[23:26:06] ruboto: Ox0dea # => :ok (https://eval.in/380867)
[23:26:37] Ox0dea: I'd like it to be a Refinement, though, so I can't define it directly on Object.
[23:26:44] NeverDie: has joined #ruby
[23:27:38] centrx: I don't follow, can't you make a refinement that refines Object?
[23:27:59] bin_005: has joined #ruby
[23:28:06] Ox0dea: const_missing comes from Module, not Object.
[23:28:36] Ox0dea: But it's not like that prevents it being called at the top level, as indicated in the example above.
[23:28:42] Ox0dea: Despite main not being a Module.
[23:29:07] RobertBirnie: has joined #ruby
[23:29:11] centrx: but the :: is not used on plain Objects
[23:29:21] centrx: MyClass::TEST
[23:29:23] Deele: has joined #ruby
[23:29:24] centrx: MyModule::TEST
[23:29:31] centrx: Class includes Module
[23:29:37] centrx: or descends from rather
[23:29:56] centrx: It seems like just running "MYCONST" in irb (main) does something different
[23:30:03] centrx: not calling const_missing?
[23:30:18] Ox0dea: I don't see how irb has anything to do with it.
[23:30:43] centrx: ok sorry I just meant main
[23:31:05] centrx: I never write plain scripts like that
[23:31:39] michael_mbp: has joined #ruby
[23:31:52] arooni-mobile: has joined #ruby
[23:31:53] ruboto: Ox0dea # => main (https://eval.in/380868)
[23:32:18] centrx: Normally use classes/object-oriented programming
[23:32:38] nahtnam: has joined #ruby
[23:32:41] centrx: that may make more sense for what you're doing
[23:32:48] centrx: Then you don't need to concern yourself with main
[23:32:54] centrx: you can just make a module/class
[23:33:09] Ox0dea: What handles missing constants at the top level?
[23:33:24] Ox0dea: Whose const_missing method gets called here?
[23:33:26] ruboto: Ox0dea # => uninitialized constant Foo (NameError) ...check link for more (https://eval.in/380869)
[23:33:33] jhass: Object's?
[23:33:46] Ox0dea: >> method(:const_missing)
[23:33:47] ruboto: Ox0dea # => undefined method `const_missing' for class `Object' (NameError) ...check link for more (https://eval.in/380870)
[23:33:54] centrx: it might just be local scope, so no handling
[23:33:57] centrx: >> self::FOO
[23:33:58] ruboto: centrx # => main is not a class/module (TypeError) ...check link for more (https://eval.in/380871)
[23:34:12] someword: has joined #ruby
[23:34:15] Ox0dea: We all appear to be out of our depth.
[23:34:25] centrx: at least we're not drowning
[23:34:28] Spami: has joined #ruby
[23:34:39] jhass: >> class Object; def self.const_missing(const); puts "hi"; super; end; end; Foo
[23:34:40] ruboto: jhass # => hi ...check link for more (https://eval.in/380872)
[23:34:49] Ox0dea: jhass: Now how do I do that inside a refinement?
[23:35:02] jhass: refine Object? no idea if that works
[23:35:12] Ox0dea: It works for method_missing, but not const_missing. :/
[23:36:04] rbowlby: has joined #ruby
[23:36:10] jhass: mmh, BasicObject's gets called too if defined
[23:37:10] jhass: does something like refine Object.singleton_class work?
[23:38:55] nobitanobi: has joined #ruby
[23:40:37] gambl0re: what do you call those people at popular tourist places trying to sell you stuff?
[23:40:50] Ox0dea: gambl0re: Hawkers?
[23:41:03] Ox0dea: jhass: I suspect it's just another limitation of refinements. :/
[23:41:19] dfockler: is require_relative ok to use for relative files?
[23:41:41] jhass: if there's a strong reason you can't properly setup $LOAD_PATH, yes
[23:42:17] dfockler: alright, thanks
[23:42:48] Musashi007: has joined #ruby
[23:44:05] nobitanobi: has joined #ruby
[23:45:43] bronson: has joined #ruby
[23:47:46] rhllor: has joined #ruby
[23:48:09] ascarter: has joined #ruby
[23:49:59] arooni-mobile: has joined #ruby
[23:56:18] jenrzzz: has joined #ruby
[23:56:26] LicHacker: has joined #ruby
[23:58:08] vdamewood: has joined #ruby
[23:59:39] babykosh: has joined #ruby
[23:59:48] bkxd: has joined #ruby
[23:59:48] cmisenas: has joined #ruby