« Back to channel list

#ruby - 13 February 2016

« Back 1 day Forward 1 day »
[00:03:22] juanfra: has joined #ruby
[00:03:46] ElFerna_: has joined #ruby
[00:05:43] bronson: has joined #ruby
[00:06:03] ljames: has joined #ruby
[00:06:51] wwwbukolaycom: has joined #ruby
[00:07:12] theery: has joined #ruby
[00:09:34] barajasfab: has joined #ruby
[00:10:47] roshanavand: has joined #ruby
[00:11:45] trinaldi: has joined #ruby
[00:17:18] TomPeed: has joined #ruby
[00:19:42] eljimmy: has joined #ruby
[00:21:12] RubyWarrior: has joined #ruby
[00:21:15] dlitvak: has joined #ruby
[00:21:30] Ox0dea: has joined #ruby
[00:23:47] duckpuppy: has joined #ruby
[00:25:12] nofxx: has joined #ruby
[00:25:12] nofxx: has joined #ruby
[00:26:09] bkxd: has joined #ruby
[00:28:52] dopie: has joined #ruby
[00:30:24] idefine: has joined #ruby
[00:31:28] andrewh: has joined #ruby
[00:34:03] jottr: has joined #ruby
[00:34:50] bkxd: has joined #ruby
[00:38:44] edwinvdgraaf: has joined #ruby
[00:39:50] x86-__: has joined #ruby
[00:42:54] aupadhye: has joined #ruby
[00:43:44] nanoz: has joined #ruby
[00:45:33] kies^: has joined #ruby
[00:50:05] kirillzh: has joined #ruby
[00:53:13] jottr: has joined #ruby
[00:53:41] Oog_: has joined #ruby
[00:54:05] aupadhye: has joined #ruby
[00:54:26] aupadhye: has joined #ruby
[00:54:52] kmckelvin: has joined #ruby
[00:55:17] Azure: has joined #ruby
[00:56:56] ur5us: has joined #ruby
[00:57:24] karapetyan: has joined #ruby
[00:58:17] RubyWarrior: has joined #ruby
[01:02:20] andrew: has joined #ruby
[01:02:39] Limix: has joined #ruby
[01:02:42] sucks: has joined #ruby
[01:03:55] beast: has joined #ruby
[01:04:55] stannard: has joined #ruby
[01:07:11] mistermocha: has joined #ruby
[01:07:45] PlasmaStar: has joined #ruby
[01:08:50] Ebok: has joined #ruby
[01:11:03] Limix: has joined #ruby
[01:11:18] avahey: has joined #ruby
[01:15:46] johnmilton: has joined #ruby
[01:18:34] weemsledeux: has joined #ruby
[01:19:00] becker_11: has joined #ruby
[01:20:26] becker_11: Hi, I'm very new to ruby and am trying to install a gem on macosx 10.11 but I'm encountering a write permisisions error which seems to be caused by changes to osx between this version and the last.
[01:20:56] becker_11: I'd very much appreciate some insight into how ppl are resolving this issue?
[01:23:00] eam: becker_11: you'll probably want to share the details of the error
[01:23:35] becker_11: gem install tmuxinator
[01:23:37] becker_11: Fetching: thor-0.19.1.gem (100%)
[01:23:39] becker_11: ERROR: While executing gem ... (Gem::FilePermissionError)
[01:23:41] becker_11: You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
[01:23:41] kmckelvin: has joined #ruby
[01:24:13] becker_11: From searching online it appears to be related to System Integrity Protection which is a new thing in 10.11
[01:24:33] Ebok: I've been able to write gems just fine in 10.11
[01:24:35] duckpuppy: has joined #ruby
[01:25:00] Ebok: I realize that's not overly helpful to you
[01:25:05] idefine: has joined #ruby
[01:25:18] Ebok: Just that it suggests it might be an edge case.
[01:25:23] becker_11: Ebok: I get the same issues with Homebrew and have to run sudo chown every damn time I do anything
[01:25:43] Ebok: Well yeah, I suspect they're all the exact same issue
[01:25:59] Ebok: You or your current account isnt listed as the admin for those files.
[01:26:00] eam: becker_11: you can set GEM_HOME to tell ruby to install gems somewhere else
[01:26:14] eam: the path /Library is a system path, which will require root
[01:26:18] becker_11: Ebok: stackover flow just mentioned giving up on the system ruby and installing a seperate instance with rbenv
[01:26:30] eam: yeah, going the way of a ruby manager is probably ideal
[01:26:35] eam: or you can bundle
[01:26:55] eam: bundler is a nice way to have different gemsets per application
[01:27:18] becker_11: Normally I'd jump at the chance to install something from scratch but today is literaly the first time I've ever looked at Ruby so I have no idea what I'm doing
[01:27:43] eam: becker_11: try this: GEM_HOME=$HOME/.gems gem install tmuxinator
[01:27:55] eam: (and then make sure to set GEM_HOME=$HOME/.gems always afterwards)
[01:29:19] becker_11: okay, trying it
[01:30:18] becker_11: yep worked a treat
[01:30:26] n00bDev: has joined #ruby
[01:30:36] Ebok: Actually I might as well ask. I've been playing around with my home setup, which up to now has been basically vanilla. And I've been installing gems as needed per instance of console that I ned it on. I haven't actually every change any default setting for my console, its display, or preloaded (or always loaded gems). The question: Does anyone here recommend certain changes that might be cool to look over? Things that you find make your life
[01:30:36] Ebok: easier? Or simple know where I can get some solid instructions about how to setup these defaults myself.
[01:30:40] eam: becker_11: put export GEM_HOME=$HOME/.gems in your .bashrc now
[01:30:44] RubyWarrior: has joined #ruby
[01:30:45] eam: so it'll always be set
[01:30:56] eam: becker_11: this is a hack - later, swap it out for rbenv
[01:31:10] eam: that'll basically do what this does, but a whole lot more too
[01:31:35] becker_11: eam: will do
[01:33:08] becker_11: I found a install guide online but it's for installing ruby on rails with rbenv is that a different kind of ruby?
[01:33:31] eam: rbenv is a framework for managing multiple versions of ruby installed into your home directory
[01:33:47] eam: it lets you have full control over what's going on, as well as not depending on system thing (which need sudo to modify)
[01:34:13] Ebok: It'll work. You can always choose to stop when you get to rails. I'd just make sure you're getting the latest versions of them.
[01:34:23] jottr: has joined #ruby
[01:34:24] becker_11: eam would you recommend I follow https://gorails.com/setup/osx/10.11-el-capitan ? then?
[01:34:39] eam: becker_11: looks about right
[01:35:47] mistermocha: has joined #ruby
[01:35:51] stevemackinnon: has joined #ruby
[01:38:21] s00pcan: has joined #ruby
[01:39:18] dlitvak: has joined #ruby
[01:41:20] JammyHammy: has joined #ruby
[01:41:54] UtkarshRay: has joined #ruby
[01:44:29] Xiti: has joined #ruby
[01:52:17] platzhirsch: has left #ruby: ()
[01:53:08] andrewh: has joined #ruby
[01:57:25] chipotle: has joined #ruby
[02:00:06] Scripore: has joined #ruby
[02:01:33] Scripore: has joined #ruby
[02:02:04] s00pcan: has joined #ruby
[02:06:33] youngmathimus0: has joined #ruby
[02:08:12] s00pcan: has joined #ruby
[02:09:49] s00pcan: has joined #ruby
[02:09:59] chouhoulis: has joined #ruby
[02:10:12] SenpaiSilver: has joined #ruby
[02:10:50] s00pcan: has joined #ruby
[02:11:23] rkazak: has joined #ruby
[02:12:55] s00pcan: has joined #ruby
[02:14:51] Cohedrin: has joined #ruby
[02:16:19] s00pcan: has joined #ruby
[02:18:00] flaccid: has joined #ruby
[02:18:24] flaccid: hey guys, i was just wondering if anyone knows how to exclude files in gemspec bindir? i have a hidden file that shouldn???t be included...
[02:19:32] sucks: has joined #ruby
[02:20:43] symm-: has joined #ruby
[02:22:36] segy: has joined #ruby
[02:25:30] ItSANgo: has joined #ruby
[02:26:55] duckpuppy: has joined #ruby
[02:27:50] s00pcan: has joined #ruby
[02:27:57] andrewh: has joined #ruby
[02:28:13] pH: has joined #ruby
[02:28:19] pH: has left #ruby: ()
[02:28:19] pH: has joined #ruby
[02:29:01] shevy: flaccid it is just ruby code
[02:29:13] shevy: e. g. array.reject! {|entry| entry.start_with? '.' }
[02:29:14] duncannz: has joined #ruby
[02:29:47] flaccid: shevy: http://guides.rubygems.org/specification-reference/#bindir
[02:30:02] duncannz: has joined #ruby
[02:30:23] shevy: hmm perhaps they did not consider this option
[02:30:31] bkxd: has joined #ruby
[02:30:51] duncannz: has joined #ruby
[02:32:05] duncannz: has joined #ruby
[02:32:25] shevy: speficication.rb has this: def bin_dir; @bin_dir ||= File.join gem_dir, bindir
[02:33:38] jottr_: has joined #ruby
[02:33:46] flaccid: actually this is the right way
[02:33:47] flaccid: s.bindir = 'bin'
[02:33:47] flaccid: s.executables = Dir.entries(s.bindir) - ['.', '..', '.gitignore', '.rubocop.yml']
[02:35:29] s00pcan: has joined #ruby
[02:35:44] davedev24: has joined #ruby
[02:35:51] dlitvak_: has joined #ruby
[02:44:05] dseitz: has joined #ruby
[02:46:35] Domaldel: has joined #ruby
[02:51:02] TomPeed: has joined #ruby
[02:51:27] cjbottaro: has joined #ruby
[02:52:55] havenwood: flaccid: Just another way to do it (if you like ignoring any additional dotfiles): Dir.chdir(s.bindir) { Dir['*'] }
[02:53:13] Guest38: has joined #ruby
[02:53:18] flaccid: havenwood: ah i see! thanks
[02:53:32] roshanavand: has joined #ruby
[02:54:39] havenwood: flaccid: np, or if you prefer: Dir[File.join s.bindir, '*'].map { |path| File.basename path }
[02:55:07] becker_12: has joined #ruby
[02:57:39] havenwood: flaccid: or just to use a feature introduced in Ruby 2.3 for fun: Dir.entries(s.bindir).grep_v /^\./
[02:58:02] flaccid: interesting. as always ruby 1322424 ways to do the same thing :)
[02:58:20] havenwood: TIMTOWTDI :)
[02:59:55] ryanwinchester: has left #ruby: ("Laters")
[03:00:56] baweaver: has joined #ruby
[03:01:26] agent_white: has joined #ruby
[03:03:50] Limix: has joined #ruby
[03:03:56] benlieb: has joined #ruby
[03:07:27] nettoweb: has joined #ruby
[03:08:24] LoneHerm_: has joined #ruby
[03:08:35] becker_12: has joined #ruby
[03:09:06] y2mq37: has joined #ruby
[03:09:08] Ox0dea: flaccid: That looks a little low.
[03:09:14] sankaber: has joined #ruby
[03:09:27] flaccid: gotta get down to get up
[03:09:49] Ox0dea: https://www.youtube.com/watch?v=xuQNt45Cjkc
[03:11:08] ferr: has joined #ruby
[03:12:28] RegulationD: has joined #ruby
[03:12:29] Bloomer: has joined #ruby
[03:15:59] slash_nick: havenwood: what's that?
[03:16:13] Ox0dea: slash_nick: For shame.
[03:16:18] slash_nick: ACTION googles.
[03:16:33] Ox0dea: >> String.send :private, :+@; +'foo' rescue $! # Heh.
[03:16:35] tatsuo: has joined #ruby
[03:16:35] ruby[bot]: Ox0dea: # => #<NoMethodError: private method `+@' called for "foo":String ...check link for more (https://eval.in/518094)
[03:16:35] slash_nick: That was easy. nevermind havenwood :) Ox0dea shamed me into checking for myself
[03:16:54] dlitvak: has joined #ruby
[03:17:07] Ox0dea: apeiros: Maybe disable did_you_mean for?
[03:17:14] Ox0dea: *for ruby[bot].
[03:17:59] Ox0dea: Also, what even is `+>`?
[03:18:47] Ox0dea: Looks like an eval.in bug.
[03:20:41] graffix222: has joined #ruby
[03:21:38] shevy: a new operator!
[03:21:40] shevy: the brother to ->
[03:22:13] Ox0dea: That's not an operator. :P
[03:22:17] slash_nick: ah... that's not spikey lambda... that's flower lambda and deflowered lambda
[03:22:56] slash_nick: +> flowered... -> deflowered
[03:24:14] Ox0dea: >> class Proc; alias +@ dup; end; +->{} # Close enough?
[03:24:15] ruby[bot]: Ox0dea: # => #<Proc:0x4080da50@/tmp/execpad-5dc43305c8fb/source-5dc43305c8fb:2 (lambda)> (https://eval.in/518095)
[03:25:05] shevy: slash_nick lol
[03:25:15] shevy: intermediate flower operator ~>
[03:25:47] nodejunkie: has joined #ruby
[03:27:12] Ox0dea: >> def <=>; end <=>->{} # idontevenknow
[03:27:14] ruby[bot]: Ox0dea: # => nil (https://eval.in/518096)
[03:27:39] duckpuppy: has joined #ruby
[03:28:49] x77686d: has joined #ruby
[03:30:21] LoneHerm_: has joined #ruby
[03:35:10] Steve_Jo1: has joined #ruby
[03:36:08] RubyWarrior: has joined #ruby
[03:37:13] akkad: is there a faster way to do this? https://gist.github.com/9bb6e9a7063ae0b909fa
[03:37:50] kmckelvin: has joined #ruby
[03:38:35] Ox0dea: &ri Array#permutation @akkad
[03:38:35] `derpy: akkad: http://ruby-doc.org/core-2.3.0/Array.html#method-i-permutation
[03:38:55] Ox0dea: Er, you probably want #repeated_combination, but that's in there as well.
[03:39:26] Ox0dea: Also, God killed a kitten because you used `split("")` instead of `chars`.
[03:39:59] andrewh: has joined #ruby
[03:40:24] DmitryBochkarev: has joined #ruby
[03:40:26] akkad: in the old days...
[03:40:37] Ox0dea: That kitten is definitely dead.
[03:41:29] Ox0dea: akkad: You know that's >145 million combinations, right?
[03:42:30] darwingr: has joined #ruby
[03:43:40] duncannz: has joined #ruby
[03:44:16] akkad: mychars.chars.permutation(2).each {|x| puts x.to_a.join}
[03:44:17] raldu: has joined #ruby
[03:44:19] akkad: I hope so.
[03:45:12] Ox0dea: Nah, you do want #repeated_combination.
[03:46:10] Ox0dea: No? https://eval.in/518097
[03:46:30] andrewh: has joined #ruby
[03:47:57] Tempesta: has joined #ruby
[03:50:09] rsc___: has joined #ruby
[03:53:06] dlitvak_: has joined #ruby
[03:53:47] floror: has joined #ruby
[04:01:36] baweaver: has joined #ruby
[04:01:58] tatsuo: has joined #ruby
[04:03:44] dexter-tzu: has joined #ruby
[04:05:24] rakm: has joined #ruby
[04:09:11] Scripore: has joined #ruby
[04:10:26] treaki: has joined #ruby
[04:15:09] braincrash: has joined #ruby
[04:15:27] dexter-tzu: has joined #ruby
[04:16:02] sdothum: has joined #ruby
[04:17:42] cdg: has joined #ruby
[04:18:30] slash_nick: akkad: can you divide and conquer?
[04:18:46] x77686d: has joined #ruby
[04:20:07] Ox0dea: http://c2.com/cgi-bin/wiki?MultiplyAndSurrender
[04:25:44] UtkarshRay: has joined #ruby
[04:27:53] lessless: has joined #ruby
[04:28:24] RubyWarrior: has joined #ruby
[04:28:24] duckpuppy: has joined #ruby
[04:30:27] konsolebox: has joined #ruby
[04:33:40] rhg135: has joined #ruby
[04:33:54] gix: has joined #ruby
[04:35:04] flaccid: has left #ruby: ()
[04:46:24] RubyWarrior: has joined #ruby
[04:49:16] idefine: has joined #ruby
[04:52:44] davidfrey: has joined #ruby
[04:53:29] davidfrey: Why does this output nil? https://gist.github.com/dcki/06e392b3f53fc8b05ccd
[04:53:42] davidfrey: And/or is there a good tutorial for this?
[04:55:23] Ox0dea: david____: Line 7 is invoking the getter defined by #attr_accessor, returning the value of the @b instance variable in this case.
[04:55:31] B1n4r10: has joined #ruby
[04:55:36] Ox0dea: Instance variables default to `nil`, and you haven't actually set the value of @b here.
[04:55:47] davidfrey: Why is @b not set in initialize?
[04:55:48] blackmesa: has joined #ruby
[04:55:59] Ox0dea: `foo = bar` is always local variable assignment.
[04:56:10] Ox0dea: You'll have to say either `@b = 1` or `self.b = 1`.
[04:56:57] kirillzh: has joined #ruby
[04:57:20] davidfrey: What if I `def b=(b); @b = b; end`? Then what I have in initialize would work, right?
[04:57:50] Ox0dea: `attr_accessor` gave you that method for free.
[04:58:24] Ox0dea: `foo = bar` is always local variable assignment.
[04:58:46] davidfrey: Okay, makes sense. Thank you so much!
[04:59:18] Ox0dea: Happy to help. :)
[04:59:27] Ox0dea: Please don't be afraid to use instance variables.
[05:00:20] perrier_: has joined #ruby
[05:00:42] LoneHerm_: has joined #ruby
[05:01:30] dlitvak: has joined #ruby
[05:02:22] davidfrey: That seems like good advice.
[05:11:55] RubyWarrior: has joined #ruby
[05:13:38] quakephil: has joined #ruby
[05:17:53] zast: has joined #ruby
[05:20:07] ItSANgo: has joined #ruby
[05:28:14] terminalrecluse: has joined #ruby
[05:29:10] duckpuppy: has joined #ruby
[05:29:59] ferr: has joined #ruby
[05:31:01] UtkarshRay: has joined #ruby
[05:34:01] roshanavand: has joined #ruby
[05:35:45] Trieste: has joined #ruby
[05:36:15] chipotle: has joined #ruby
[05:36:39] tatsuo: has joined #ruby
[05:38:21] zenergi: has joined #ruby
[05:40:23] kmckelvin: has joined #ruby
[05:41:00] moeabdol1: has joined #ruby
[05:47:21] LuckyABA: has joined #ruby
[05:47:27] minimalism: has joined #ruby
[05:53:58] kmckelvin: has joined #ruby
[05:54:48] elifoster: has joined #ruby
[05:57:27] moeabdol1: has joined #ruby
[06:00:25] chipotle: has joined #ruby
[06:01:35] adgtl_: has joined #ruby
[06:02:21] baweaver: has joined #ruby
[06:08:52] youngmathimus0: has joined #ruby
[06:09:12] Dimik: has joined #ruby
[06:10:12] speakingcode: has joined #ruby
[06:22:21] cxmu: has joined #ruby
[06:22:36] cxmu: is ruby a dead language
[06:23:00] dionysus69: has joined #ruby
[06:23:04] cxmu: http://insights.dice.com/2014/10/09/5-programming-languages-marked-for-death/
[06:25:51] blackmesa: has joined #ruby
[06:26:21] Bloomer: has joined #ruby
[06:26:57] cxmu: anyone here
[06:26:59] cxmu: helloooo
[06:27:18] LoneHermit: has joined #ruby
[06:27:32] arlek: has joined #ruby
[06:27:41] graffix222: has joined #ruby
[06:28:50] becker_12: has joined #ruby
[06:29:55] duckpuppy: has joined #ruby
[06:33:30] cxmu: anyone here?
[06:38:32] hahuang61: has joined #ruby
[06:42:10] havenwood: cxmu: What? No. But 2014 is a year in the past.
[06:42:39] havenwood: cxmu: Live in the now. (Where Ruby is one of the most popular programming language.)
[06:42:47] cxmu: recently a new VP joined my company and decided we would go from .NET to Ruby
[06:43:02] cxmu: this has been a .NET company for 5 years
[06:43:26] cxmu: i don't know ruby, i've taken a look at it, and it looks absolutely terrible (not trolling)
[06:43:37] jackjackdripper: has joined #ruby
[06:43:52] cxmu: i dont want to write unit tests to catch runtime errors that should be caught by a compiler :\
[06:43:56] havenwood: cxmu: Well, it's not C#. So if you're wanting it to be C# it's not going to make you happy.
[06:44:15] cxmu: i dont feel that ruby is appropriate for an enterprise product.
[06:44:21] cxmu: and that it is expensive to scale.
[06:44:21] havenwood: cxmu: C# on the other hand is very similar to C#.
[06:44:45] cxmu: i think ruby, in fact, is only suited for videogame scripting.
[06:45:08] cxmu: and that RoR is just as bad as Node.js when it comes to choosing trendy over functional
[06:45:28] havenwood: cxmu: Folk who deploy Ruby at scale would disagree. You can think C# is only suited for toasters and that doesn't make it so.
[06:46:02] cxmu: i can do in C# in 2 hours what takes apparently 2 weeks with ruby.
[06:46:09] yfeldblum: has joined #ruby
[06:46:11] havenwood: cxmu: Sounds like you're a C# programmer.
[06:46:16] cxmu: yeah. sounds like it.
[06:46:32] cxmu: i guess my only recourse is to find another job.
[06:46:44] havenwood: cxmu: Or stop being so rigid and learn some nice modern langs.
[06:46:52] cxmu: C# is more modern than ruby?
[06:47:12] havenwood: cxmu: You might find your productivity increases once you've learned a language.
[06:47:17] cxmu: ruby is 21 years old, is 16
[06:47:41] youngmathimus0: Ruby isn't hard to pick up
[06:47:48] cxmu: yeah i know it's not hard
[06:47:57] cxmu: but i feel like it isn't useful to learn.
[06:48:03] cxmu: i am looking to be proven wrong
[06:48:14] havenwood: cxmu: I don't believe you.
[06:48:21] cxmu: it just reminds me of a verbose VB.NET imho
[06:48:25] cxmu: or coldfusionMX
[06:48:33] cxmu: mixed with perl
[06:48:43] youngmathimus0: you don't sound like you've ever seen ruby
[06:48:51] cxmu: I looked at the rails source code dude
[06:49:24] cxmu: i was not impressed at all
[06:49:53] cxmu: ok, let me ask this question then
[06:49:55] cxmu: is rails dead?
[06:50:01] havenwood: cxmu: No. Stop trolling.
[06:50:15] cxmu: rails literally looks like ASP.Net and VB
[06:50:18] youngmathimus0: If you live where i live and know rails, you're set.
[06:50:18] havenwood: cxmu: That's absurd. Stop it.
[06:50:57] cxmu: i cant imagine using ruby for any serious reason
[06:50:58] drbrain: remembering back to ASP.Net and VB of the time of Rails, Rails was much, much easier to create web apps in
[06:51:15] cxmu: im sure Rails is better than ASP/VB
[06:51:20] cxmu: <% but this shit %>
[06:51:28] cxmu: <% is unacceptable to me %>
[06:51:47] benlieb: has joined #ruby
[06:52:01] cxmu: C# invented razor for a reason
[06:54:10] drbrain: so don't use it?
[06:56:12] creat: has joined #ruby
[06:57:31] devbug: has joined #ruby
[06:59:03] Eiam_: has joined #ruby
[06:59:24] lxsameer: has joined #ruby
[06:59:43] Meow-J: has joined #ruby
[07:08:22] Bloomer: has joined #ruby
[07:09:10] p0p0pr37: has joined #ruby
[07:11:17] azure32: has joined #ruby
[07:12:21] tvw: has joined #ruby
[07:12:43] bronson: has joined #ruby
[07:12:47] sandstrom: has joined #ruby
[07:13:54] RegulationD: has joined #ruby
[07:15:17] ramortegui: has joined #ruby
[07:17:37] pawnbox: has joined #ruby
[07:20:19] joonty: has joined #ruby
[07:20:57] adgtl: has joined #ruby
[07:21:59] adgtl_: has joined #ruby
[07:28:54] baweaver: has joined #ruby
[07:29:54] kmckelvin: has joined #ruby
[07:30:41] kam270: has joined #ruby
[07:30:46] duckpuppy: has joined #ruby
[07:37:10] tatsuo: has joined #ruby
[07:39:23] dionysus69: has joined #ruby
[07:43:23] sandstrom: has joined #ruby
[07:46:47] azure32: has joined #ruby
[07:47:08] pawnbox: has joined #ruby
[07:48:51] ziyadb: has joined #ruby
[07:49:57] lxsameer: has joined #ruby
[07:55:00] becker_12: has joined #ruby
[07:55:39] einarj: has joined #ruby
[07:55:51] blackmesa: has joined #ruby
[07:56:27] Oog_: has joined #ruby
[07:59:06] n00bDev: has joined #ruby
[08:01:51] pawnbox: has joined #ruby
[08:11:21] carella_: has joined #ruby
[08:11:27] pawnbox_: has joined #ruby
[08:11:54] Cohedrin_: has joined #ruby
[08:13:53] h99h9h88: has joined #ruby
[08:13:57] sorah_: has joined #ruby
[08:14:34] tAn: has joined #ruby
[08:15:19] joonty1: has joined #ruby
[08:15:46] shevy: has joined #ruby
[08:15:49] vcoinminer___: has joined #ruby
[08:16:02] c355E3B_: has joined #ruby
[08:16:19] mostlybadfly: has joined #ruby
[08:16:45] johnnyt: has joined #ruby
[08:16:59] crayfishx: has joined #ruby
[08:17:18] Napear: has joined #ruby
[08:17:19] alexherbo2: has joined #ruby
[08:17:21] larsk: has joined #ruby
[08:19:19] spider-mario: has joined #ruby
[08:21:07] flughafen_: has joined #ruby
[08:21:10] Spami: has joined #ruby
[08:27:10] askhat: has joined #ruby
[08:29:39] zeroDivisible: has joined #ruby
[08:30:29] p1k: has joined #ruby
[08:30:30] okdas: has joined #ruby
[08:30:30] okdas: has joined #ruby
[08:31:15] devbug: has joined #ruby
[08:31:26] duckpuppy: has joined #ruby
[08:31:40] Bloomer: has joined #ruby
[08:32:27] okdas_: has joined #ruby
[08:37:51] floror: has joined #ruby
[08:39:48] Macaveli: has joined #ruby
[08:40:11] firstdayonthejob: has joined #ruby
[08:43:22] code2Learn: has joined #ruby
[08:44:14] joonty1: has joined #ruby
[08:44:22] e4xit_: has joined #ruby
[08:45:02] tatsuo: has joined #ruby
[08:47:32] platzhirsch: has joined #ruby
[08:47:37] n00bDev: has joined #ruby
[08:48:43] william3: has joined #ruby
[08:49:27] h99h9h88: has joined #ruby
[08:52:50] devbug: has joined #ruby
[08:53:35] mdw: has joined #ruby
[08:54:14] william3: has joined #ruby
[08:55:59] grn: has joined #ruby
[08:56:26] platzhirsch: has left #ruby: ()
[08:56:55] becker_12: has joined #ruby
[08:59:23] Infra-Red: has joined #ruby
[09:01:19] veleno: has joined #ruby
[09:04:04] moeabdol: has joined #ruby
[09:05:37] ferr: has joined #ruby
[09:06:01] h99h9h88_: has joined #ruby
[09:06:22] Xeago: has joined #ruby
[09:08:32] duffman728: has joined #ruby
[09:08:41] ocbtec: has joined #ruby
[09:09:09] greister: has joined #ruby
[09:09:43] iooner: has joined #ruby
[09:11:07] rikai: Hm... is it at all possible to recover a deleted .rb if it's still running? <.<
[09:11:42] rht: has joined #ruby
[09:13:05] marr: has joined #ruby
[09:13:51] gizmore: has joined #ruby
[09:23:25] floror: has joined #ruby
[09:24:41] Ox0dea: rikai: Doesn't look good: https://ptpb.pw/I9-a
[09:24:54] Ox0dea: You can actually recover deleted executables, but not scripts. :/
[09:25:16] rikai: Yeah, seems so.
[09:25:53] blackmesa: has joined #ruby
[09:26:06] rikai: I wasn't paying attention and copied something the wrong way as i was prepping to commit it to git. Poof, days work gone.
[09:27:08] symm-: has joined #ruby
[09:28:31] y2mq37: has joined #ruby
[09:29:17] becker_12: has joined #ruby
[09:29:44] hays: has joined #ruby
[09:30:45] Infra-Red: has joined #ruby
[09:31:38] gizless: has joined #ruby
[09:32:15] Infra-Red: has joined #ruby
[09:37:41] Ox0dea: rikai: https://gist.github.com/0x0dea/cf3b434458bd92c31583
[09:38:00] slash_nick: good morning!
[09:38:12] Ox0dea: I played around with making that do #grep instead of #gsub, and it sort of worked.
[09:38:21] duffman728: has left #ruby: ("WeeChat 1.0.1")
[09:38:44] Ox0dea: You'll really have to finagle it to get it to recover the entire file, though. :<
[09:39:23] Ox0dea: And you'll have to run it as root, of course, since it needs to poke about in another process's memory maps.
[09:41:25] Spami: has joined #ruby
[09:41:36] rikai: That honestly sound a bit beyond me, i'm still pretty newbish. <.<
[09:41:49] rikai: I'll just work on redoing everything from scratch again, i suppose.
[09:42:01] framling: has joined #ruby
[09:45:03] dextertzu: has joined #ruby
[09:46:53] Ox0dea: rikai: On the bright side, it'll almost certainly be better the second time round. :)
[09:47:09] rikai: Heh, probably. :)
[09:47:42] rikai: It's only somewhat tedious because i did a lot of output formatting that took quite a while to get it the way i liked it.
[09:47:45] wwwbukolaycom: has joined #ruby
[09:48:38] dexter-tzu: has joined #ruby
[09:48:41] aibot: has joined #ruby
[09:48:51] sandstrom: has joined #ruby
[09:49:04] yfeldblum: has joined #ruby
[09:49:39] n00bDev: has joined #ruby
[09:53:53] beast: has joined #ruby
[09:53:56] becker_12: has joined #ruby
[09:54:36] ysz: has joined #ruby
[09:56:13] Infra-Red: has joined #ruby
[09:56:30] einarj: has joined #ruby
[09:57:45] edwinvdgraaf: has joined #ruby
[09:57:58] Infra-Red: has joined #ruby
[10:00:02] jmdade: has joined #ruby
[10:00:48] PlasmaStar: has joined #ruby
[10:08:12] joonty1: has joined #ruby
[10:09:42] LoneHerm_: has joined #ruby
[10:13:17] Xeago: has joined #ruby
[10:14:09] bronson: has joined #ruby
[10:14:59] blackmesa: has joined #ruby
[10:15:30] al2o3-cr: has joined #ruby
[10:17:07] Infra-Red: has joined #ruby
[10:23:59] OnePunchMan: has joined #ruby
[10:30:25] DmitryBochkarev: has joined #ruby
[10:30:29] askhat: has joined #ruby
[10:32:52] duckpuppy: has joined #ruby
[10:38:36] nfk: has joined #ruby
[10:41:59] mdw: has joined #ruby
[10:44:35] trinaldi: has joined #ruby
[10:46:21] SCHAAP137: has joined #ruby
[10:49:22] dexter-tzu: has joined #ruby
[10:49:45] pihpah: has joined #ruby
[10:50:49] n00bDev: has joined #ruby
[10:53:22] armyriad: has joined #ruby
[11:03:36] pandaant: has joined #ruby
[11:04:11] root1: has joined #ruby
[11:05:23] root1: has left #ruby: ()
[11:07:42] h99h9h88: has joined #ruby
[11:08:57] jottr: has joined #ruby
[11:11:56] veleno: has joined #ruby
[11:15:26] RegulationD: has joined #ruby
[11:17:40] dionysus69: has joined #ruby
[11:24:00] tatsuo: has joined #ruby
[11:27:03] bluOxigen_: has joined #ruby
[11:29:19] askhat: has joined #ruby
[11:30:52] arup_r: has joined #ruby
[11:32:18] fantazo: has joined #ruby
[11:33:40] duckpuppy: has joined #ruby
[11:36:18] sauvin: has joined #ruby
[11:36:32] TomPeed: has joined #ruby
[11:38:45] Xeago: has joined #ruby
[11:39:35] BTRE: has joined #ruby
[11:43:15] LoneHermit: has joined #ruby
[11:44:57] nodejunkie: has joined #ruby
[11:44:57] chouhoulis: has joined #ruby
[11:47:40] astrofog: has joined #ruby
[11:48:09] m8: has joined #ruby
[11:49:03] codecop: has joined #ruby
[11:51:26] n00bDev: has joined #ruby
[11:52:18] sandstrom: has joined #ruby
[11:53:17] RIK_: has joined #ruby
[11:54:00] sdothum: has joined #ruby
[12:02:15] mickey_mouse: has joined #ruby
[12:02:56] sepp2k: has joined #ruby
[12:03:02] Ebok: has joined #ruby
[12:03:13] dagda1_: has joined #ruby
[12:06:08] theRealAlexz: has joined #ruby
[12:07:24] kriskropd: has joined #ruby
[12:08:01] TomyLobo: has joined #ruby
[12:08:38] ferr: has joined #ruby
[12:11:04] Majornikku: has joined #ruby
[12:14:37] dlitvak: has joined #ruby
[12:16:12] BaroMeter: has joined #ruby
[12:18:31] sshuriu: has joined #ruby
[12:18:42] Majornikku: sorry to trouble you fine folks, I am new to ruby (learning by fire lol) I am for my first project tackling a auto script its basically gonna grab info from a site (requires HTTPS and auth.) parses it for redundant info and then pastes it on the screen and then throws it in a chat. I am having issue figuring out the authentication part, after 3 hours of kncoking my head into my monitor i've decided to ask for an assist.
[12:23:33] Majornikku: Here is the Gist link. i had it to a point where i would get an "response_authenticate" message but sadly affter googling and doing research i have sadly likely done more harm than good. :( https://gist.github.com/anonymous/fc2bf9448e3cceb99aca
[12:25:07] dlitvak_: has joined #ruby
[12:26:52] askhat_: has joined #ruby
[12:29:32] ohaibbq: has joined #ruby
[12:30:15] ponga: has joined #ruby
[12:31:01] rikkipitt: has joined #ruby
[12:31:34] shevy: dataset.rb:1737: warning: instance variable @invalid_keys not initialized
[12:31:49] shevy: I am using a check such as: if instance_variable_get '@invalid_keys'
[12:31:56] shevy: is there a way to not trigger the warning?
[12:32:40] sandstrom: has joined #ruby
[12:34:25] duckpuppy: has joined #ruby
[12:39:58] yorickpeterse: shevy: set the ivar to nil in #initialize
[12:40:16] yorickpeterse: the warning is quite silly really
[12:40:51] shevy: interesting that fixed it, thanks yorickpeterse
[12:43:27] symm-: has joined #ruby
[12:44:29] patchedmonkey: has joined #ruby
[12:44:39] graffix222: has joined #ruby
[12:45:35] dexter-tzu: has joined #ruby
[12:46:03] chouhoulis: has joined #ruby
[12:47:34] Majornikku: apologies, https://gist.github.com/anonymous/19a06fc6999d2f7c0e6d if you have a moment to assist it would be appreciated.
[12:47:44] baweaver: has joined #ruby
[12:48:17] sandstrom: has joined #ruby
[12:50:06] shevy: Majornikku you can save gists via a trailing .rb by the way, then you get colour highlighting for free on your code-specific gists. On the topic itself I know nothing about authentication; I am also not sure if anyone else can infer from the gist alone what the problem is unless they also already went through authentication, which I would assume that the people on #rubyonrails may know more about than the #r
[12:50:06] shevy: uby folks
[12:50:23] rikai: There we go, rewrote it all from scrach. :)
[12:51:23] patchedmonkey: has joined #ruby
[12:52:10] n00bDev: has joined #ruby
[12:52:27] aep: how do i parse this date correctly? Date.strptime("09-FEB-16", '%d-%^b-%y')
[12:52:55] Majornikku: I see. Thanks for the tip! Ill wait on it unless anyone else has any ideas or tips? Ill just hang here and learn something and then sleep on it and give it another shot :).
[12:54:09] shevy: aep hmm I get invalid date
[12:54:30] aep: yeah me too
[12:54:33] aep: but i dont understand why
[12:55:01] shevy: I guess the date must be valid, so either it must be FEB or 16 ...
[12:55:10] shevy: I mean *day, not date
[12:55:16] DmitryBochkarev: has joined #ruby
[12:55:55] shevy: hmm or '%d-%^b-%y' is wrong
[12:56:14] aep: yeah apparantly uppercase doesnt work
[12:56:23] aep: works with lowercase and just %b
[12:56:29] aep: Date.strptime('6-feb-16', '%d-%b-%y')
[12:56:31] aep: => #<Date: 2016-02-06 ((2457425j,0s,0n),+0s,2299161j)>
[12:56:33] aep: Date.strptime('6-FEB--16', '%d-%^b-%y')
[12:56:35] aep: ArgumentError: invalid date
[12:56:44] aep: err typo
[12:57:01] shevy: Date.strptime('6-FEB-16', '%d-%b-%y') # => #<Date: 2016-02-06 ((2457425j,0s,0n),+0s,2299161j)>
[12:57:19] shevy: what is the ^ there doing?
[12:57:33] aep: docs say thats for uppercase
[12:57:45] shevy: oh yeah you are right "^ upcase the result string"
[12:58:11] aep: probably just unnessesary because the parser ignores case
[12:58:11] shevy: only weird that the above works even without the ^
[12:58:31] shevy: well I learned something today too there, never saw a %^b :D \o/
[13:01:00] akem: has joined #ruby
[13:01:42] rikai: you can do the same with %a as well.
[13:01:59] patchedmonkey: has joined #ruby
[13:02:28] tknz: has joined #ruby
[13:03:54] Jhond__: has joined #ruby
[13:04:18] nofxx: has joined #ruby
[13:05:26] Jhond__: has joined #ruby
[13:06:04] ziyadb: has joined #ruby
[13:06:20] nfk: has joined #ruby
[13:07:20] intrigueD: has joined #ruby
[13:08:16] moeabdol1: has joined #ruby
[13:08:19] blackmesa: has joined #ruby
[13:09:07] mdw: has joined #ruby
[13:09:38] h99h9h88: has joined #ruby
[13:10:44] bluOxigen: has joined #ruby
[13:13:15] mondok: has joined #ruby
[13:15:34] sandstrom: has joined #ruby
[13:21:04] adgtl: has joined #ruby
[13:23:22] firstdayonthejob: has joined #ruby
[13:23:28] arlek: has joined #ruby
[13:23:32] flughafen_: has joined #ruby
[13:23:59] askhat: has joined #ruby
[13:25:48] veleno: has joined #ruby
[13:25:52] ilhami: has joined #ruby
[13:25:55] ilhami: time to learn rubyt
[13:26:03] ilhami: give me resources now !!!
[13:27:52] shevy: you still did not start to learn?
[13:29:40] shevy: http://logs.ryanbigg.com/p/ilhami? since 2014 :D
[13:31:56] LoneHermit: has joined #ruby
[13:34:27] platzhirsch: has joined #ruby
[13:34:59] johnmilton: has joined #ruby
[13:35:09] duckpuppy: has joined #ruby
[13:35:33] Scripore: has joined #ruby
[13:36:20] ilhami: I just need to find a nice project to work on man. :/
[13:39:32] platzhirsch: Let's say I have a class Transaction with an attribute amount and child (another transaction). How can I neatly sum up all amounts without using a while loop
[13:39:38] mondok: has joined #ruby
[13:40:03] HammyJammy: has joined #ruby
[13:40:23] jhass: platzhirsch: component pattern?
[13:40:33] jhass: (child ? child.amount : 0) + amount
[13:41:25] jhass: or to elaborate class Transaction; def amount; (@child ? @child.amount : 0) + @amount; end
[13:44:27] DEA7TH: has joined #ruby
[13:45:00] platzhirsch: jhass: ah I meant more of something a long the lines of: t1.inject(0) { |sum, t| sum + t.amount; t.child }
[13:45:09] platzhirsch: which doesn't work here because Transaction is not an Enumerable
[13:45:24] jhass: there's only one or no child, no?
[13:45:27] platzhirsch: maybe I should implement the Enumerable interface for Transaction
[13:45:40] jhass: so it's not an enumerable
[13:45:55] jhass: a collection of only ever one element is fairly pointless
[13:45:57] platzhirsch: no, true. That would be misleading
[13:46:08] platzhirsch: well they are connected transitively right
[13:46:40] cajone: has joined #ruby
[13:46:46] jhass: building up the entire collection would be ugly or use the component pattern again
[13:46:52] jhass: so what's wrong with my suggestion?
[13:48:34] platzhirsch: Nothing's wrong with it. I am just trying to be clever
[13:49:47] platzhirsch: Basically I am looking for a one liner for the loop at the end https://gist.github.com/platzhirsch/1cc2fb7119bbbfe794f6
[13:49:56] ysz: has joined #ruby
[13:50:38] jhass: a bit odd to start at the leaf of the tree instead of its root
[13:52:20] platzhirsch: yeah, it doesn't really make any sense,
[13:52:31] themsay: has joined #ruby
[13:52:57] n00bDev: has joined #ruby
[13:53:03] pawnbox: has joined #ruby
[13:53:17] johnmilton: has joined #ruby
[13:54:22] jhass: easy enough nonetheless https://p.jhass.eu/1d.rb
[13:55:02] platzhirsch: Yeah I see your point in delegating it to a class method making it recursive there
[13:55:28] atomical: has joined #ruby
[13:55:40] jhass: the obvious limitation is the stacksize
[13:55:41] platzhirsch: that's what reduces the complexity the most I guess I was just interested in doing that loop with a functional-like method, but maybe that's pointless :)
[13:58:41] nullguru: has joined #ruby
[13:58:56] davedev24: has joined #ruby
[14:00:33] Xeago: has joined #ruby
[14:00:49] platzhirsch: something like transaction.unfold(&:parent) is what I am looking for I guess
[14:01:33] jhass: which would just hide your loop but be implemented the same way
[14:02:46] platzhirsch: exactly.. yeah
[14:03:10] platzhirsch: no silver bullet
[14:03:11] ysz: has joined #ruby
[14:03:32] karapetyan: has joined #ruby
[14:03:48] dlitvak: has joined #ruby
[14:04:16] Jackneill: has joined #ruby
[14:06:05] domgetter: has joined #ruby
[14:06:14] platzhirsch: man, how do I start my blog post now. I have to reference Haskell I guess
[14:07:39] shevy: reference something to monads, such as the detection and experimental confirmation of the existance of gravitation waves
[14:07:57] platzhirsch: Well, your parents implementation basically showed how pointless it is and that the whole thing should be delegated this way
[14:08:33] pickandmix: has joined #ruby
[14:08:39] mrfooo: has joined #ruby
[14:11:39] troulouliou_dev: has joined #ruby
[14:13:43] ilhami: shevy, give me some resources man.. what book should I read?
[14:14:05] ferr: has joined #ruby
[14:14:34] shevy: ilhami you wanted to learn ruby in 2014 and you did not start back then so it will be futile now, the train has rolled away already, it is too late
[14:14:46] ilhami: why is it too late?
[14:15:09] pushcx: platzhirsch: can a child transaction have a child transaction?
[14:15:30] bronson: has joined #ruby
[14:15:31] platzhirsch: it's transitive
[14:16:16] shevy: ilhami it is now 2016
[14:16:26] Scripore: has joined #ruby
[14:17:05] pickandmix: has joined #ruby
[14:17:36] adaedra: ?links ilhami
[14:17:36] ruby[bot]: ilhami: http://ruby-community.com/pages/links
[14:17:46] domgetter: platzhirsch: something like this? https://gist.github.com/domgetter/3ac0563071d44898cd92
[14:17:56] ilhami: thanks adaedra
[14:17:59] pickandmix: has joined #ruby
[14:18:05] domgetter: You only need to define #each to "implement" Enumerable
[14:18:36] platzhirsch: domgetter: kind of yeah, so it continues
[14:18:58] adgtl: has joined #ruby
[14:20:25] dlitvak: has joined #ruby
[14:21:12] ilhami: I am trying codeacademy.
[14:22:10] askhat_: has joined #ruby
[14:24:00] godzillaenlacasa: has joined #ruby
[14:24:45] platzhirsch: So, that's the best I could think of sum = lambda { |t| t ? t.amount + sum.call(t.parent) : 0 }
[14:24:52] platzhirsch: Lambda to the rescue
[14:26:11] platzhirsch: but that's more of a party trick
[14:26:31] platzhirsch: and my colleagues would kill me if I would use something like that over let's say what jhass proposed
[14:28:18] sgambino: has joined #ruby
[14:29:36] pushcx: platzhirsch: transactionss.flat_map { |t| transactions << t.parent if t; t }.uniq.compact.inject(0) { |total, t| total + t.amount }
[14:30:00] pushcx: (assuming transactions is an array with child transactions... and you don't care about anyone ever understanding it)
[14:32:59] sandstrom: has joined #ruby
[14:34:10] platzhirsch: How should we name this? Travering your objects in the most obfuscated way?
[14:34:24] platzhirsch: Traversing the functional way?
[14:35:04] pushcx: traversing your objects when you have to half-ass it because you can't express them monoidally?
[14:36:04] duckpuppy: has joined #ruby
[14:38:32] ilhami: Ruby is easy :D I already learned it
[14:39:37] aryaching: has joined #ruby
[14:40:33] ilhami: first lesson done
[14:41:16] platzhirsch: Also what's annoying about my lambda, stack size will bite me here too
[14:42:50] pushcx: platzhirsch: how deeply do you expect to nest transactions?
[14:43:13] adgtl: has joined #ruby
[14:43:39] platzhirsch: very deeply, liek 23m nested transactions
[14:44:10] troulouliou_dev: has joined #ruby
[14:44:10] platzhirsch: No, you're right. It's usually not a problem
[14:44:23] platzhirsch: but I am just looking at concepts really
[14:44:33] domgetter: platzhirsch: May I ask why you're deciding this abstraction over another? Perhaps a transaction not knowing anything about parents or children would be more suitable?
[14:45:52] domgetter: Cause I mean, traditionally, a list of transactions forms a ledger, and those transactions are in (hopefully) chronological order, but that order isn't imposed by transaction-linking
[14:45:55] ilhami: =begin What's up Shevy? =end
[14:47:02] domgetter: but far be it from me to speculate your use case or needs in general
[14:47:13] quakephil: has joined #ruby
[14:47:34] chouhoulis: has joined #ruby
[14:48:49] andrewvos: has joined #ruby
[14:49:00] pushcx: platzhirsch: Here's how I'd do it without blowing the stack or building up an extra data structure of all transactions: https://gist.github.com/pushcx/685dc83de087e137bf85
[14:49:04] baweaver: has joined #ruby
[14:49:46] pushcx: It says 'ary', but really, it'll work on any collection that exposes `.each`
[14:50:27] pushcx: platzhirsch: Fun little puzzle, thanks for sharing it. :)
[14:53:28] pushcx: There's one of my favorite recursion tricks in there, btw. By making the test amounts powers of two, I get more info out of failures because every response is unique. First run I got 12 and it obviously meant I hadn't recursed up the parent chain...
[14:53:38] n00bDev: has joined #ruby
[14:53:58] adgtl_: has joined #ruby
[14:56:11] edwinvdgraaf: has joined #ruby
[14:57:45] shevy: ilhami great, you discovered how to add comments
[14:59:30] ilhami: hey that's a step in the right direction. :P don't be so negative
[14:59:48] DmitryBochkarev: has joined #ruby
[15:02:45] patchedmonkey: has joined #ruby
[15:05:20] ilhami: it reminds me of Python :D
[15:05:22] ilhami: but I like it.
[15:06:38] jhass: well, that comment style is actually discouraged by most people
[15:07:24] edwinvdgraaf: has joined #ruby
[15:07:31] ilhami: what should I use instead?
[15:07:44] ilhami: I meant the language in general reminds me of python
[15:07:47] ilhami: not the comments lol
[15:08:18] ilhami: I hate $this
[15:08:32] pushcx: I bet CodeAcademy will teach you more comments in a later lesson.
[15:08:34] ferr: has joined #ruby
[15:08:37] karapetyan: has joined #ruby
[15:08:42] ilhami: and also no semicolons is nice :D
[15:10:44] Ebok: has joined #ruby
[15:11:17] shevy: perhaps you can even embed a whole program in the comments subsection :D
[15:11:41] shevy: you can put arbitrary stuff after __END__
[15:11:51] tatsuo: has joined #ruby
[15:11:59] jhass: do you also know how to read that stuff then?
[15:12:34] ilhami: jhass, I am still at unit 1 lol
[15:12:41] ilhami: I am learning about prompting the user now
[15:12:44] ilhami: you use gets
[15:13:12] johnmilton: has joined #ruby
[15:13:24] shevy: now you know how to obtain user input
[15:14:04] jhass: I'm rather asking shevy since they mentioned __END__
[15:15:07] ilhami: oh sorry :D
[15:15:46] dmolina: has joined #ruby
[15:16:57] RegulationD: has joined #ruby
[15:16:59] sgambino: has joined #ruby
[15:19:47] flughafen_: has joined #ruby
[15:20:21] askhat: has joined #ruby
[15:20:55] ilhami: I will go rest a bit and start again later.
[15:21:50] sucks: has joined #ruby
[15:24:24] iooner: has joined #ruby
[15:26:44] karapetyan: has joined #ruby
[15:27:49] konsolebox: has joined #ruby
[15:28:04] DChapman: has joined #ruby
[15:30:38] davedev24: has joined #ruby
[15:32:20] nettoweb: has joined #ruby
[15:32:51] silicio: has joined #ruby
[15:36:42] duckpuppy: has joined #ruby
[15:37:54] rikkipitt: has joined #ruby
[15:41:02] zacstewart: has joined #ruby
[15:43:46] rht: has joined #ruby
[15:45:10] edwinvdgraaf: has joined #ruby
[15:46:13] Xeago: has joined #ruby
[15:47:00] sepp2k: has joined #ruby
[15:47:55] Kalem: has joined #ruby
[15:48:20] chouhoulis: has joined #ruby
[15:50:07] johnmilton: has joined #ruby
[15:50:35] dionysus69: has joined #ruby
[15:51:17] rht: has joined #ruby
[15:52:13] william3: has joined #ruby
[15:52:48] andrewvos: has joined #ruby
[15:54:03] edwinvdgraaf: has joined #ruby
[15:54:04] Ox0dea: rikai: Is it better than before? :)
[15:54:27] n00bDev: has joined #ruby
[15:54:36] gregf: has joined #ruby
[15:56:20] zacstewart: has joined #ruby
[15:57:34] rht: has joined #ruby
[16:02:30] idefine: has joined #ruby
[16:03:26] pickandmix: has joined #ruby
[16:04:16] PlasmaStar: has joined #ruby
[16:06:52] Terens: has joined #ruby
[16:07:29] DmitryBochkarev: has joined #ruby
[16:07:30] Terens: Is there a tool that converts html to pdf but with page / orientation for each page / size etc ?
[16:08:00] Terens: I dont know how convertapi.com for example manages to convert even ms word files perfectly and in open source world there is nothing at all
[16:10:26] dlitvak: has joined #ruby
[16:10:59] karapetyan: has joined #ruby
[16:11:18] h99h9h88: has joined #ruby
[16:11:38] rht: has joined #ruby
[16:15:32] x77686d: has joined #ruby
[16:15:43] pawnbox: has joined #ruby
[16:17:03] pawnbox: has joined #ruby
[16:19:00] askhat: has joined #ruby
[16:20:57] Kallis: has joined #ruby
[16:26:59] tenderlove: has joined #ruby
[16:27:00] glcx: has joined #ruby
[16:27:00] glcx: has joined #ruby
[16:27:42] arthropododo: has joined #ruby
[16:29:07] Scripore: has joined #ruby
[16:30:22] Scripore: has joined #ruby
[16:32:46] glcx: has joined #ruby
[16:34:49] bronson: has joined #ruby
[16:36:02] kirun: has joined #ruby
[16:37:26] duckpuppy: has joined #ruby
[16:37:26] rht: has joined #ruby
[16:41:04] mdw: has joined #ruby
[16:43:29] rikkipitt: has joined #ruby
[16:44:36] blackmesa: has joined #ruby
[16:45:00] sondr3: has joined #ruby
[16:46:58] intrigueD: has joined #ruby
[16:47:31] thomasfedb: has joined #ruby
[16:47:31] thomasfedb: has joined #ruby
[16:49:03] chouhoulis: has joined #ruby
[16:51:52] flughafen_: has joined #ruby
[16:52:34] Sembei: has joined #ruby
[16:52:42] davedev24: has joined #ruby
[16:55:11] n00bDev: has joined #ruby
[16:55:18] shevy: Terens I have not found a good solution myself. I usually end up using wkhtmltopdf - the net result is not overly beautiful but it sorta works
[16:57:47] kirillzh: has joined #ruby
[16:58:32] rsc___: has joined #ruby
[17:02:07] Timberwo|f: has joined #ruby
[17:07:35] mickey_mouse_2: has joined #ruby
[17:07:59] LoneHermit: has joined #ruby
[17:16:11] lucasb: has joined #ruby
[17:17:50] floror: has joined #ruby
[17:18:04] rbennacer: has joined #ruby
[17:18:15] askhat: has joined #ruby
[17:19:04] yatish27: has joined #ruby
[17:19:13] johnmilton: has joined #ruby
[17:19:53] JohnBat26: has joined #ruby
[17:21:48] skweek: has joined #ruby
[17:21:57] karapetyan: has joined #ruby
[17:22:02] shredding: has joined #ruby
[17:22:43] pawnbox: has joined #ruby
[17:23:27] rbennacer: has joined #ruby
[17:23:53] eljimmy: has joined #ruby
[17:23:59] yqfvwal: has joined #ruby
[17:24:12] RubyWarrior: has joined #ruby
[17:26:23] adgtl: has joined #ruby
[17:27:15] adgtl_: has joined #ruby
[17:29:55] johnmilton: has joined #ruby
[17:30:48] akem: has joined #ruby
[17:31:54] binaryplease: has joined #ruby
[17:32:38] dlitvak: has joined #ruby
[17:33:28] ysz: has joined #ruby
[17:34:55] theastrowolfe: has joined #ruby
[17:35:03] HJ: has joined #ruby
[17:35:52] SenpaiSilver: has joined #ruby
[17:36:11] andrewvos: has joined #ruby
[17:38:12] duckpuppy: has joined #ruby
[17:39:22] C0deMaver1ck: has joined #ruby
[17:39:40] bluOxigen: has joined #ruby
[17:42:05] Kalem: has joined #ruby
[17:42:49] graffix222: has joined #ruby
[17:43:10] johnmilton: has joined #ruby
[17:44:15] segy_: has joined #ruby
[17:45:37] benlieb: has joined #ruby
[17:47:51] El3ktra: has joined #ruby
[17:48:00] dlitvak: has joined #ruby
[17:48:04] Xeago: has joined #ruby
[17:48:35] platzhirsch: has joined #ruby
[17:50:10] andrewvos: has joined #ruby
[17:50:54] chouhoulis: has joined #ruby
[17:52:08] baweaver: has joined #ruby
[17:55:16] Oog_: has joined #ruby
[17:55:47] william3: has joined #ruby
[17:55:56] n00bDev: has joined #ruby
[17:57:10] dongiedong: has joined #ruby
[17:57:48] B1n4r10: has joined #ruby
[17:59:11] pawnbox: has joined #ruby
[17:59:43] shevy: if I have a module Foo; class Bar, and I want to make Bar become available on the toplevel namespace, I can do: Object.const_set 'Bar', Foo::Bar
[17:59:52] shevy: which works. but is there another way to achieve the same?
[18:00:06] adaedra: include Foo
[18:00:13] william3: has joined #ruby
[18:00:21] adaedra: Bar = Foo::Bar
[18:00:28] shevy: ah yes that is simpler
[18:00:32] adaedra: (if you don't want to bring all Foo)
[18:00:58] yatish27: has joined #ruby
[18:02:15] pawnbox: has joined #ruby
[18:03:21] bronson: has joined #ruby
[18:03:24] RubyWarrior: has joined #ruby
[18:04:51] weemsledeux: has joined #ruby
[18:06:51] antgel: has joined #ruby
[18:09:16] volty: has joined #ruby
[18:09:49] yatish27: has joined #ruby
[18:10:06] speakingcode: has joined #ruby
[18:12:00] h99h9h88: has joined #ruby
[18:13:09] amclain: has joined #ruby
[18:13:25] blackmesa: has joined #ruby
[18:14:37] rkazak: has joined #ruby
[18:14:59] beawesomeinstead: has joined #ruby
[18:15:02] chouhoulis: has joined #ruby
[18:15:56] RubyWarrior: has joined #ruby
[18:16:13] askhat: has joined #ruby
[18:16:40] tectonic: has joined #ruby
[18:17:42] camillo: has joined #ruby
[18:18:08] rbennacer: has joined #ruby
[18:19:18] atomical: has joined #ruby
[18:19:24] askhat: has joined #ruby
[18:19:36] atmosx: has joined #ruby
[18:19:46] gizmore: has joined #ruby
[18:20:57] antgel: has joined #ruby
[18:23:47] zeroDivisible: has joined #ruby
[18:24:57] becker_12: has joined #ruby
[18:24:58] ysz: has joined #ruby
[18:26:09] arlek: has joined #ruby
[18:26:21] karapetyan: has joined #ruby
[18:28:58] johnmilton: has joined #ruby
[18:30:01] malconis: has joined #ruby
[18:31:08] fantazo: has joined #ruby
[18:32:07] darkf: has joined #ruby
[18:33:16] tectonic: Does anyone know why Foreman always sets it's own $PORT variable and ignores anything set in the .env file?
[18:33:23] RegulationD: has joined #ruby
[18:35:31] karapetyan: has joined #ruby
[18:36:31] jhass: because it's "opinionated"
[18:38:59] duckpuppy: has joined #ruby
[18:39:31] RubyWarrior: has joined #ruby
[18:39:40] tectonic: so i'm learning
[18:40:03] johnmilton: has joined #ruby
[18:41:00] atmosx: tectonic: are you using foreman with heroku/puma or standalone?
[18:41:14] Ox0dea: Docker, looks like.
[18:42:02] zast: has joined #ruby
[18:42:51] kaleido: docker is awesome
[18:43:33] Ox0dea: But fragmentation fosters evolution!
[18:44:00] shevy: evolution fosters extinction!
[18:44:30] karapetyan: has joined #ruby
[18:44:55] RubyWarrior: has joined #ruby
[18:45:14] Ox0dea: Extinction fosters a regression to the mean!
[18:45:42] kaleido: if i develop a mutant ability i hope its being able to do whatever i want
[18:48:52] johnmilton: has joined #ruby
[18:49:08] Ox0dea: The universe just wants to implode. Hydrogen be like, "Well, shit, here we go again."
[18:50:51] mdw: has joined #ruby
[18:51:06] wanderer: has joined #ruby
[18:51:28] RubyWarrior: has joined #ruby
[18:51:56] Xeago: has joined #ruby
[18:53:32] n00bDev: has joined #ruby
[18:54:00] tectonic: atmosx: both. docker, heroku, and command line, it's an OSS application
[18:54:53] atmosx: tectonic: did you look at this? http://stackoverflow.com/questions/29595129/foreman-puma-isnt-using-the-specified-port-in-dev-env
[18:54:55] elifoster: has joined #ruby
[18:55:15] tectonic: yea, seems like it's a "feature"
[18:55:17] tectonic: thanks atmosx
[18:55:26] sdothum: has joined #ruby
[18:55:34] Ox0dea: jhass was right all along.
[18:56:02] yatish27: has joined #ruby
[18:56:18] jhass: foreman is trash for anything serious tbh
[18:56:18] LoneHerm_: has joined #ruby
[18:56:21] crime: has joined #ruby
[18:59:15] dlitvak: has joined #ruby
[19:01:48] Hackbinary: has joined #ruby
[19:03:37] RubyWarrior: has joined #ruby
[19:04:43] agentmeerkat: has joined #ruby
[19:05:00] dlitvak: has joined #ruby
[19:05:06] kingsler: has joined #ruby
[19:05:57] Danielpk: has joined #ruby
[19:07:32] roshanavand: has joined #ruby
[19:07:36] Lildirt: has joined #ruby
[19:08:37] nunchuck: has joined #ruby
[19:09:22] RubyWarrior: has joined #ruby
[19:09:37] Channel6: has joined #ruby
[19:12:04] ruby-lang435: has joined #ruby
[19:13:19] TDJACR: has joined #ruby
[19:15:48] askhat: has joined #ruby
[19:16:20] RubyWarrior: has joined #ruby
[19:21:15] sankaber: has joined #ruby
[19:24:34] RubyWarrior: has joined #ruby
[19:26:15] dopamean1: has joined #ruby
[19:26:23] pickandmix: has joined #ruby
[19:28:33] fedexo: has joined #ruby
[19:28:34] B1n4r10: has joined #ruby
[19:29:18] mondok: has joined #ruby
[19:29:26] RubyWarrior: has joined #ruby
[19:30:48] weemsledeux: has joined #ruby
[19:33:32] dseitz: has joined #ruby
[19:34:04] DEA7TH: has joined #ruby
[19:34:08] tectonic: has joined #ruby
[19:35:46] gregf: has joined #ruby
[19:38:23] hays: what is the most appropriate way to have class definitions/implementations in separate files?
[19:38:42] hays: put them in lib/ and then require them in some main file?
[19:39:45] duckpuppy: has joined #ruby
[19:39:58] spleeze: has joined #ruby
[19:40:16] ferr: has joined #ruby
[19:40:23] h99h9h88: has joined #ruby
[19:43:43] B1n4r10: has joined #ruby
[19:45:45] youngmathimus0: has joined #ruby
[19:46:18] djellemah_: has joined #ruby
[19:47:58] centrx: has joined #ruby
[19:48:00] blackmesa: has joined #ruby
[19:49:34] dlitvak: has joined #ruby
[19:57:44] yatish27: has joined #ruby
[20:00:55] einarj: has joined #ruby
[20:05:58] yqt: has joined #ruby
[20:10:12] Aviio: has joined #ruby
[20:10:56] platzhirsch: has left #ruby: ()
[20:10:59] floror: has joined #ruby
[20:11:27] doublemalt_: has joined #ruby
[20:11:55] x77686d: has joined #ruby
[20:13:48] askhat: has joined #ruby
[20:17:31] ellisTAA: has joined #ruby
[20:17:50] ellisTAA: if someone says ???namespace it??? does that mean just put it in a modele or class?
[20:18:03] binaryplease: has joined #ruby
[20:18:49] dlitvak: has joined #ruby
[20:19:03] centrx: ellistaa, module
[20:19:12] ellisTAA: centrx: why not class also
[20:19:35] ellisTAA: wikipedia says ???A namespace in computer science (sometimes also called a name scope), is an abstract container or environment created to hold a logical grouping of unique identifiers or symbols (i.e. names). An identifier defined in a namespace is associated only with that namespace.'
[20:19:35] jsaak: has joined #ruby
[20:20:04] centrx: A class is a module with additional functionality that is not needed for a namespace
[20:20:10] jhass: ellistaa: don't use a class if you don't need to instantiate it
[20:20:13] ellisTAA: centrx: got it. thanks you
[20:20:33] ellisTAA: jhass: got it. we never instantiate a module do we? we just use it ..?
[20:20:41] Ebok: has joined #ruby
[20:20:42] centrx: or it uses us
[20:21:18] jhass: >> module Foo; end; Foo.new
[20:21:20] ruby[bot]: jhass: # => undefined method `new' for Foo:Module (NoMethodError) ...check link for more (https://eval.in/518337)
[20:21:25] jhass: you can't instantiate a module
[20:22:07] ellisTAA: jhass: cool thanks
[20:25:34] sneakerhax: has joined #ruby
[20:25:52] moeabdol2: has joined #ruby
[20:27:58] malconis: has joined #ruby
[20:30:51] Ox0dea: ellistaa: You might have "initialize" and "instantiate" conflated.
[20:31:19] Ox0dea: Initialization is the main ingredient of instantiation, to be sure, but they are slightly different things.
[20:31:34] ellisTAA: Ox0dea: thanks
[20:31:48] idefine: has joined #ruby
[20:31:53] ellisTAA: Ox0dea: i started reading that book about computation that you recommended. dense shit
[20:32:04] Ox0dea: Er, SICP or Tom Stuart's one?
[20:32:08] ellisTAA: tom stuarts
[20:32:20] Ox0dea: Hm... I guess "dense" fits. :P
[20:32:22] s2013: has joined #ruby
[20:32:59] Ox0dea: It's pretty good. Please don't inherit from Struct, though.
[20:33:14] karapetyan: has joined #ruby
[20:33:48] baweaver: has joined #ruby
[20:34:07] nettoweb: has joined #ruby
[20:34:30] william3: has joined #ruby
[20:35:28] malconis: has joined #ruby
[20:36:05] azure32: has joined #ruby
[20:36:50] infernix: has joined #ruby
[20:37:21] Spami: has joined #ruby
[20:39:41] kingsler: has joined #ruby
[20:40:22] apeiros: Ox0dea: hm? why? because passing a block to Struct.new is better?
[20:40:28] duckpuppy: has joined #ruby
[20:40:59] jhass: because it doesn't create a unused intermediate class
[20:42:04] apeiros: so ^ then?
[20:42:37] jhass: oh, sounded a bit sarcastic :)
[20:43:01] apeiros: I should -c so we can use colors to indicate sarcasm :)
[20:43:27] baweaver: safer to assume it for Ox0dea, and puns from me
[20:44:09] LoneHerm_: has joined #ruby
[20:44:38] apeiros: ok, I have no idea why https://www.ics.uci.edu/~fielding/pubs/dissertation/fielding_dissertation.pdf was still open in my browser - but who in his right mine uses a line-height of >=2 for block text?!?
[20:44:39] Ox0dea: apeiros: The only upside to subclassing seems to be that it's slightly more "obvious" that you're creating a class.
[20:45:43] apeiros: Ox0dea: but I do understand you correctly that "don't inherit from struct" carries an implied "use the block of Struct.new instead"?
[20:45:49] Ox0dea: Of course.
[20:49:03] pickandmix: has joined #ruby
[20:49:27] KensoDev: has joined #ruby
[20:49:40] idefine: has joined #ruby
[20:50:19] weemsledeux: has joined #ruby
[20:50:49] intrigueD: has joined #ruby
[20:53:22] kith: has joined #ruby
[20:54:12] nettoweb: has joined #ruby
[20:54:17] kingsler: has joined #ruby
[20:56:20] adaedra: <apeiros> I should -c so we can use colors to indicate sarcasm :)
[20:56:41] adaedra: If only we had a common way of signaling sarcasm /s
[20:56:42] becker_12: has joined #ruby
[20:58:06] oniMaker: has joined #ruby
[20:59:06] gizless: has joined #ruby
[20:59:10] Ox0dea: If only we had a common way of spelling "signalling".
[20:59:48] KINGSABRI: has joined #ruby
[21:00:20] adaedra: This one comes from the spellcheck :x
[21:00:47] Ox0dea: It's regional, like "travell?ing".
[21:00:52] Spami: has joined #ruby
[21:01:09] adaedra: English, not even once.
[21:02:24] jackjackdripper: has joined #ruby
[21:04:01] yatish27: has joined #ruby
[21:08:23] otherj: has joined #ruby
[21:11:09] godzillaenlacasa: has joined #ruby
[21:11:11] pandaant: has joined #ruby
[21:11:25] Cohedrin: has joined #ruby
[21:12:32] SCHAAP137: has joined #ruby
[21:13:06] askhat: has joined #ruby
[21:14:00] Spami: has joined #ruby
[21:22:23] tomaw: has joined #ruby
[21:23:12] ellisTAA: has joined #ruby
[21:26:06] Averna: has joined #ruby
[21:28:22] shevy: le french
[21:30:30] RubyWarrior: has joined #ruby
[21:30:58] adaedra: das german
[21:31:12] dtordable: shevy: 'er andal??'
[21:31:44] blackmesa: has joined #ruby
[21:33:32] dtordable: adaedra: ich keine sprachen das german
[21:33:54] axisys: has joined #ruby
[21:34:03] adaedra: Plai??t-il ?
[21:34:13] dtordable: (I'll waaaaant that!)
[21:34:51] sdothum: has joined #ruby
[21:34:57] dtordable: for example
[21:35:13] dtordable: ich bin daniel
[21:35:53] dtordable: unt ich ist aus Madrid
[21:36:31] dtordable: aber ich komment aus Galicia
[21:36:49] dtordable: something like that?.
[21:37:14] bronson: has joined #ruby
[21:37:55] shevy: oh my god
[21:38:02] askhat: has joined #ruby
[21:38:15] ss_much: has joined #ruby
[21:39:28] ellisTAA: if someone says ???its a built-in??? does that mean it just comes with the languages core library?
[21:40:54] nunchuck: has joined #ruby
[21:41:13] duckpuppy: has joined #ruby
[21:45:15] gizmore: has joined #ruby
[21:45:54] Averna: has joined #ruby
[21:47:41] kireevco: https://www.dropbox.com/s/dbtmiwodrkcnbq4/gems.wav?dl=0 "Gems install other gems" song
[21:48:30] RubyWarrior: has joined #ruby
[21:51:16] Ox0dea: kireevco: Bundler is the only gem that installs gems.
[21:51:57] jhass: you looked through all the gems to confirm that?
[21:51:59] Coldblackice: has joined #ruby
[21:52:09] Ox0dea: It would be a really mean thing to do?
[21:52:55] gizless: has joined #ruby
[21:53:50] jhass: https://github.com/technicalpickles/jeweler/blob/master/lib/jeweler/commands/install_gem.rb
[21:55:19] apeiros: isn't rubygems itself a gem too?
[21:55:28] jhass: I don't think so
[21:55:38] jhass: there's rubygems-update which is a gem that installs rubygems
[21:55:52] kireevco: If you look at it, gem dependency is an indirect way of installing gems via rubygem
[21:56:00] kireevco: Incapacitation of some sort
[21:57:20] Ox0dea: Jeweler is dead and RubyGems isn't a gem (anymore).
[21:57:58] pawnbox: has joined #ruby
[21:58:24] Ox0dea: Anyway, I mistook kireevco's intent; I thought they were trying to bash the ecosystem.
[21:58:50] Ox0dea: I got a "look at all these gems I didn't ask for" kind of vibe.
[21:58:51] pawnbox: has joined #ruby
[21:59:10] sneakers: has joined #ruby
[22:01:49] nunchuck: has joined #ruby
[22:03:05] wolffles: has joined #ruby
[22:07:53] nunchuck: has left #ruby: ()
[22:07:55] nettoweb: has joined #ruby
[22:08:49] gizmore: has joined #ruby
[22:08:54] dexter-tzu: has joined #ruby
[22:13:29] binaryplease: has joined #ruby
[22:15:27] RubyWarrior: has joined #ruby
[22:18:32] oivoodoo: has joined #ruby
[22:21:01] shevy: one gem to bind them
[22:21:20] Ox0dea: ActiveSupport.
[22:25:14] mfb2: has joined #ruby
[22:27:07] LoneHerm_: has joined #ruby
[22:27:19] ellisTAA: has joined #ruby
[22:28:04] yatish27: has joined #ruby
[22:28:16] nunchuck: has joined #ruby
[22:29:16] Xeago: has joined #ruby
[22:29:50] jottr: has joined #ruby
[22:30:01] pawnbox: has joined #ruby
[22:30:16] Averna: has joined #ruby
[22:31:00] apeiros: Ox0dea: you're longing for ActiveGem, I know it
[22:31:36] shevy: ActiveSleep
[22:32:10] rakm: has joined #ruby
[22:32:29] zacstewart: has joined #ruby
[22:32:51] dlitvak: has joined #ruby
[22:33:29] Ox0dea: apeiros: What would ActiveGem do?
[22:33:50] apeiros: provide you with talking material, for whichever reason :D
[22:34:48] Ox0dea: shevy: Could you explain the joke?
[22:35:07] dlitvak_: has joined #ruby
[22:36:47] [gmi]: has joined #ruby
[22:38:02] askhat: has joined #ruby
[22:38:29] nodejunkie: has joined #ruby
[22:38:55] sergey_makagon: has joined #ruby
[22:40:11] shevy: Ox0dea jokes must never be explained!
[22:40:42] wolffles: im having trouble finding a method that i can use to compare 2 consecuitive values and return it only if all the pairs match
[22:40:54] shevy: waffles! you are back
[22:40:54] Averna: has joined #ruby
[22:40:55] Ox0dea: wolffles: #each_cons!
[22:41:10] jhass: each_cons.all? specifically
[22:41:28] zenlot1: has joined #ruby
[22:41:56] duckpuppy: has joined #ruby
[22:42:11] Ox0dea: It'd be nice if #each_cons used 2 as the default.
[22:42:14] sandstrom: has joined #ruby
[22:44:11] postmodern: has joined #ruby
[22:45:32] Ox0dea: wolffles: On second thought, you probably want #each_slice.
[22:46:27] kaleido: has joined #ruby
[22:46:49] arlek: has joined #ruby
[22:47:19] eugenn: has joined #ruby
[22:48:01] mdw: has joined #ruby
[22:48:43] wolffles: nah each_cons is what i need
[22:49:00] sneakerhax: has joined #ruby
[22:49:06] wolffles: how do i compare the two
[22:50:15] Ox0dea: wolffles: But you said you want to return whether all the pairs match?
[22:50:21] sergey_makagon: has joined #ruby
[22:50:31] al2o3-cr: has joined #ruby
[22:50:44] oivoodoo: has joined #ruby
[22:50:47] Ox0dea: `foo.each_cons(2).all? { |a, b| a == b }` is just `foo.uniq.size == 1`.
[22:52:11] Ebok: has joined #ruby
[22:52:42] veleno: has joined #ruby
[22:52:56] wolffles: so ary.each_cons(2) { #check if x < y}.all? true
[22:53:17] hinbody: has joined #ruby
[22:53:28] wolffles: thats what im trying to do :D
[22:53:29] jhass: could be interesting to benchmark against ary.sort == ary
[22:54:20] solocshaw: has joined #ruby
[22:54:25] wolffles: oh no i got it
[22:54:37] wolffles: ary.each_cons(2).all?{|a.b| a < b }
[22:56:34] Ox0dea: Are you writing Bubble sort? :P
[22:57:01] rizenine: has joined #ruby
[22:57:31] camilasan: has joined #ruby
[22:57:32] whiteline: has joined #ruby
[22:58:01] wolffles: its called ordered vowels
[22:58:43] Jardayn: has joined #ruby
[22:59:17] sucks: has joined #ruby
[23:00:05] pawnbox: has joined #ruby
[23:01:07] Ox0dea: Like "facetious" and "fragmentitious"?
[23:01:23] nunchuck: has joined #ruby
[23:03:49] wolffles: yes those pass :P
[23:04:00] kaynw80: has joined #ruby
[23:04:38] zacstewart: has joined #ruby
[23:05:55] Graphettion: has joined #ruby
[23:06:47] shevy: factecious is a difficult word
[23:07:18] Ox0dea: wolffles: What about "cats"?
[23:08:22] Rutix: has joined #ruby
[23:08:22] Rutix: has joined #ruby
[23:09:09] x77686d: has joined #ruby
[23:10:04] Spami: has joined #ruby
[23:10:29] hinbody: has joined #ruby
[23:10:41] ElFerna_: has joined #ruby
[23:11:03] kaynw80: has left #ruby: ()
[23:11:30] arescorpio: has joined #ruby
[23:12:04] camilasan: has joined #ruby
[23:14:28] pandaant: has joined #ruby
[23:15:26] ellisTAA: has joined #ruby
[23:18:18] al2o3-cr: has joined #ruby
[23:19:26] Lildirt: has joined #ruby
[23:20:44] yatish27: has joined #ruby
[23:21:38] RubyWarrior: has joined #ruby
[23:22:41] al2o3-cr: ruby is not diamond thee cheeky bitch
[23:26:02] vikaton: has joined #ruby
[23:26:13] al2o3-cr: you get what you're given, you slag bag
[23:28:26] PedramT: has joined #ruby
[23:28:44] al2o3-cr: open your twat, let's a smell you dirty fucking whore
[23:28:54] Ox0dea: Too much.
[23:29:06] ellisTAA: has joined #ruby
[23:29:24] oivoodoo: has joined #ruby
[23:29:25] Ox0dea: He gets like this sometimes.
[23:29:30] Ox0dea: Pretty swell chap when he's stable.
[23:29:41] hinbody: has joined #ruby
[23:29:47] shevy: drugs on the weekend
[23:30:14] pawnbox: has joined #ruby
[23:31:00] user083: has joined #ruby
[23:31:19] runciter: has joined #ruby
[23:31:20] al2o3-cr: what bitch she is fuccckkkkkk
[23:31:37] yqfvwal: has left #ruby: ("Leaving")
[23:31:57] Aviio: well the channel is certainly lively tonight
[23:32:13] akkad: I divorced my wife, named ruby too
[23:32:19] akkad: nice to see a support channel for it
[23:33:16] runciter: on unix systems, ruby spawns a 'ruby-timer-thr' to handle signals, but inspecting the main thread's (and any non-timer-thread's) blocked signals shows that they don't block any signals. how does ruby ensure that signals are delivered only to the timer thread, or am i misunderstanding the design?
[23:33:46] akkad: unix signals are not very thread aware.
[23:35:39] runciter: akkad: the kernel will deliver signals to an arbitrary thread, yes. so some environments use a dedicated signal handling thread. the technique involves setting the process' signal mask to block all signals, then unsetting that mask in the signal handling thread with pthread_sigmask
[23:35:41] nettoweb: has joined #ruby
[23:36:01] akkad: by kernel, you mean linux right?
[23:36:11] ruby[bot]: +qqq $a:gr33n7007h al2o3-cr!*@* *!*@unaffiliated/gr33n7007h
[23:36:18] runciter: akkad: it's defined in POSIX or SUSv3
[23:36:18] ruby[bot]: -qq fried_chicken!*@* txdv!*@*
[23:36:24] x77686d: has joined #ruby
[23:36:26] runciter: akkad: so this also happens in say, freebsd
[23:36:41] askhat: has joined #ruby
[23:36:53] runciter: akkad: ruby appears to use a dedicated signal handling thread, but the other threads don't block any signals. that means the kernel could deliver the signal to any thread, including the main thread
[23:37:18] akkad: well not if green threads
[23:37:27] akkad: strike that
[23:37:37] JEG2: has joined #ruby
[23:38:00] akkad: just diving back into ruby after a couple of years off. trying to find a good refresher like the old koans
[23:38:31] JEG2: has left #ruby: ()
[23:39:25] reactor16: has joined #ruby
[23:39:45] reactor16: anyone play with railgun/metasploit ?
[23:42:42] duckpuppy: has joined #ruby
[23:42:43] shevy: ack metasploit again
[23:42:52] reactor16: no one there
[23:42:55] zacstewart: has joined #ruby
[23:47:29] nunchuck: has joined #ruby
[23:48:06] yqfvwal: has joined #ruby
[23:48:12] Ox0dea: reactor16: Why be evil?
[23:48:25] reactor16: no i'm not evil ?
[23:48:35] Ox0dea: http://i.imgur.com/Ufbr5ej.gif
[23:48:50] akem: has joined #ruby
[23:48:54] reactor16: why you don't ?
[23:49:04] reactor16: want me to swear u?
[23:49:19] Ox0dea: Yeah, bro, swear me.
[23:49:24] ellisTAA: has joined #ruby
[23:49:40] adaedra: metasploit support is done in their own channel. Be patient.
[23:49:42] reactor16: what is your prefere book ?
[23:50:09] Ox0dea: We shall swear with our pinkies like men.
[23:50:36] blackmesa: has joined #ruby
[23:51:22] reactor16: odea you name is populare
[23:51:34] Ox0dea: It's a number.
[23:51:38] runciter: has left #ruby: ()
[23:51:44] Ox0dea: Numbers are everywhere.
[23:51:46] reactor16: in gsm side
[23:51:52] sergey_makagon: has joined #ruby
[23:51:59] cajone: has joined #ruby
[23:52:24] reactor16: there are a prety cool man named odea who make nice stuff with gsm phone
[23:53:00] reactor16: it look like he repaire network
[23:53:08] reactor16: he's not evil like me
[23:53:18] askhat: has joined #ruby
[23:53:25] Ox0dea: Repairs can be evil. :P
[23:53:34] reactor16: lol that it :D
[23:53:50] reactor16: is it you ?
[23:54:28] firstdayonthejob: has joined #ruby
[23:54:43] Ox0dea: Am I an evil repairman?
[23:54:53] shevy: Ox0dea the bearded man again!
[23:55:25] reactor16: you talk about me ?
[23:56:10] duncannz: has joined #ruby
[23:57:40] duncannz: has joined #ruby
[23:58:36] duncannz: has joined #ruby
[23:58:43] fedexo: has joined #ruby
[23:59:25] duncannz: has joined #ruby