« Back to channel list

#ruby - 13 July 2018

« Back 1 day Forward 1 day »
[00:00:13] havenwood: Alec: You could easily make a cinch bot for yourself with a repl.
[00:00:29] havenwood: Alec: Locally, it's easiest to run ruby directly: ruby -e "puts 'Hello world'"
[00:00:41] jrabe: has joined #ruby
[00:00:45] havenwood: Alec: Or the REPL is the most popular way to get feedback.
[00:00:47] ruby[bot]: irb is "interactive ruby", it is part of ruby. You can run ruby code and see results immediately. it's useful for testing code. Also see ?pry, a gem which is a popular alternative to irb.
[00:00:49] ruby[bot]: Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
[00:00:56] duderonomy: has joined #ruby
[00:02:30] jrafanie: has joined #ruby
[00:02:37] bak1an: has joined #ruby
[00:04:47] Alec: havenwood: in C++ there's this sexy bot called geordi - each message is totally independent and its own thing - it's REALLY handy
[00:05:06] havenwood: Alec: I prefer a local REPL.
[00:05:18] havenwood: Alec: But if you want something like that, it's easy to do yourself in Ruby.
[00:05:21] Alec: When I come to power I will force you to use it in PM :P
[00:05:40] havenwood: I volunteer parttime as a REPL actually.
[00:07:28] Alec: Not sure what that means
[00:07:38] Alec: You want me to PM you and send you Ruby expressions?
[00:09:50] Alec: FWIW I'll even sponsor it if you like....
[00:10:00] Alec: Or run it myself
[00:10:40] havenwood: Alec: #!> NameError: undefined local variable or method `myself' for main:Object
[00:12:13] Alec: I feel I'm being hazed... or teased...?
[00:12:20] ruby[bot]: You can find an overview of my commands at http://ruby-community.com/ruboto/commands
[00:13:40] havenwood: Alec: Sorry, I just reverted to being a REPL for a sec.
[00:14:24] karapetyan: has joined #ruby
[00:16:16] havenwood: Alec: xhttps://github.com/cinchrb/cinch
[00:17:12] Alec: Oh great another bot framework ...
[00:17:15] Alec: ACTION puts it with the others
[00:17:26] havenwood: Alec: There's a private API for eval.in. I know folk have requested access but I'm not sure what the outcome is. If you'd like access, please ask the maintainer and if they grant it we can share the bot code.
[00:17:47] havenwood: Alec: You can make a Ruby sandbox with JRuby like tryruby.org.
[00:17:50] Alec: Why is it private?
[00:18:06] havenwood: Alec: Ask charliesome.
[00:18:15] Alec: I'm gonna
[00:19:08] havenwood: Alec: If you'd like to make a cinch bot with a personal repl you could do that fairly simply.
[00:19:24] Alec: It literally just needs to call ruby -e '(your crap here)' and escape it properly, and set up SIGALRM first on the parent or something (I'm new to Ruby specifically so I can't be like "here's the full syntax")
[00:20:10] banisterfiend: has joined #ruby
[00:20:18] Alec: But I'd much rather either combine forces, or put it on some one of the AWS EC2 instances that I have access (and would be allowed to do this on) and leave it for everyone
[00:20:56] Alec: Because they've got a bot that's been tested and "battle-hardened" and shows stuff like ?pry and ?irb - of which I don't actually know what they are ;)
[00:21:21] havenwood: Alec: irb ships with ruby - it's an executable
[00:21:28] havenwood: Alec: In your terminal, type: irb
[00:21:48] Alec: You're kind of missing the point...
[00:21:50] havenwood: Alec: pry is a gem that's not preinstalled, so you'll need to: gem install pry
[00:21:53] Alec: But I will later ofc.
[00:22:05] havenwood: Alec: Those are things we wrote.
[00:22:31] Alec: Oh you're also staff.
[00:22:40] havenwood: Alec: apeiros wrote, to be more specific (or maybe jhass?)
[00:23:08] Alec: havenwood: another strong case for bot-msging is most clients when you don't have a window open will show in your active window when they /msg bac
[00:23:11] havenwood: Alec: I like the idea of a bot that can eval folks' code.
[00:23:17] Alec: This way I can use Geordi say to test an example I'm about to share.
[00:23:25] havenwood: That sounds handy.
[00:23:27] Alec: Then just press up, home and del 4 times to get rid of the /msg
[00:25:20] Alec: havenwood?
[00:25:48] Alec: havenwood you getting these?
[00:28:37] headius: >> RUBY_VERSION
[00:28:38] ruby[bot]: headius: # => "2.3.0" (https://eval.in/1035707)
[00:28:48] headius: >> RUBY_ENGINE
[00:28:49] ruby[bot]: headius: # => "ruby" (https://eval.in/1035708)
[00:28:49] mynameisdebian: has joined #ruby
[00:29:00] headius: there should be a JRuby version
[00:33:16] herbmillerjr: has joined #ruby
[00:47:15] cagomez: has joined #ruby
[00:55:35] heftig: has joined #ruby
[00:56:19] Alec: headius: I'm going to bed now but a PMable (and that other one) able bot is very good, if it responds to a query in the same way it received it it's ideal (ie channel->channel, msg->msg, OTHER->OTHER where OTHER is /say or something)
[00:56:30] Alec: I'll even sponsor it
[00:58:11] mynameisdebian: has joined #ruby
[01:17:04] jhack: has joined #ruby
[01:22:55] ElFerna: has joined #ruby
[01:24:57] jhack: has joined #ruby
[01:29:13] white_lilies: has joined #ruby
[01:32:39] jenrzzz: has joined #ruby
[01:32:40] jenrzzz: has joined #ruby
[01:44:05] eb0t: has joined #ruby
[01:44:18] eblip: has joined #ruby
[01:44:55] raynold: has joined #ruby
[01:47:08] alfiemax: has joined #ruby
[01:53:47] tdy: has joined #ruby
[01:57:44] salasrod: has joined #ruby
[02:08:40] duckpupp-: has joined #ruby
[02:10:09] akkiguru_: has joined #ruby
[02:15:58] pharma_joe: has joined #ruby
[02:18:21] dviola: has joined #ruby
[02:18:40] MagePsycho: has joined #ruby
[02:26:59] eb0t: has joined #ruby
[02:38:56] ogres: has joined #ruby
[02:41:49] banisterfiend: has joined #ruby
[02:42:25] kryptoz: has joined #ruby
[02:43:39] tty: has joined #ruby
[02:57:06] bga57: has joined #ruby
[02:57:14] JJonah: I'm using refine to refine the Enumerable module with an altered version of map. When I use with `using MyModule`, the changes to map are not available. If I put the exact same refinement on the Array class, it works. You are supposed to be able to refine modules, though (https://github.com/ruby/ruby/blob/96db72ce38b27799dd8e80ca00696e41234db6ba/test/ruby/test_refinement.rb#L379). Why would it not be working?
[02:57:33] kapil___: has joined #ruby
[03:00:49] graphene: has joined #ruby
[03:01:19] rsh: has joined #ruby
[03:03:43] edwardly: has joined #ruby
[03:03:44] edwardly: has joined #ruby
[03:08:57] JJonah: To clarify the problem, take a look at this: https://eval.in/1035718
[03:09:45] Alec: JJonah: I'm really sorry I can't help you BTW - I'm here now and I would if I could
[03:10:37] havenwood: JJonah: Array#map is in front of Enumerable#map on Array.
[03:10:50] havenwood: JJonah: refining doesn't prepend
[03:11:33] braincrash: has joined #ruby
[03:11:38] havenwood: JJonah: Array#map is higher in the method call chain, so even though you effectively refine Enumerable, it never gets to Enumerable#map.
[03:11:38] JJonah: havenwood: oh i just assumed that Array mixed in Enumerable to get map -- is that not the case?
[03:12:39] havenwood: JJonah: Nope, there just happens to be a custom implementation of Array#map: https://docs.ruby-lang.org/en/2.5.0/Array.html#method-i-map
[03:12:52] Alec: What's the "#" mean?
[03:12:53] havenwood: JJonah: Otherwise your assumptions would align.
[03:12:58] havenwood: Alec: An instance.
[03:13:00] Alec: Is that syntax in Ruby or just HTMl links?
[03:13:08] Alec: Link me docs please?
[03:13:08] havenwood: Alec: Oh, it means a method call.
[03:13:15] Alec: Alternative for dot?
[03:13:35] havenwood: Alec: It means different things in different context. In the sense I use it above, it's a convention to mean an instance method.
[03:14:01] JJonah: havenwood: gotcha, makes sense. but now i'm curious why Array needs a special implementation of map?
[03:14:06] havenwood: Alec: Foo::bar is a class method and Foo#bar is an instance method.
[03:14:15] havenwood: Alec: You call them like Foo.bar and Foo.new.bar.
[03:14:35] havenwood: JJonah: It's a memory and performance optimization.
[03:14:53] JJonah: havenwood: ok tyvm
[03:15:19] havenwood: Alec: It's just a meta convention for talking about code.
[03:15:58] havenwood: I'd guess it comes from Smalltalk, but unsure.
[03:16:24] Alec: ACTION writes down "above my paygrade" for now - thanks.
[03:17:45] havenwood: Alec: The # and :: convention for talking about methods is fairly unique. We don't have a bunch of this.
[03:18:06] Alec: havenwood: what you need is a good reference!
[03:18:22] r29v: has joined #ruby
[03:18:49] havenwood: Alec: I'm playing the reference.
[03:20:46] akkiguru_: has joined #ruby
[03:22:36] Alec: I don't know enough to play you like with the perfect touch you deserve yet. I'm currently at "10 year old given a drumkit" level, which means I should keep quiet else get death glares.
[03:24:48] unreal: has joined #ruby
[03:26:12] eblip: has joined #ruby
[03:27:18] lystra: has joined #ruby
[03:29:44] karapetyan: has joined #ruby
[03:30:08] lystra: Hi. I am building tk-0.2.0 for Ruby-2.4.4. I have a version of Tcl/Tk built myself. How can I build tk-0.2.0 against it so the RPATH for the tcltklib.so includes my custom Tcl/Tk?
[03:34:36] GodFather: has joined #ruby
[03:36:26] willthechill: has joined #ruby
[03:37:31] dviola: has joined #ruby
[03:37:49] Joufflu_Fail: has joined #ruby
[03:39:03] iMadper: has joined #ruby
[03:41:06] jnollette: has joined #ruby
[03:50:11] alex```: has joined #ruby
[03:50:54] jasmith: has joined #ruby
[03:51:37] pharma_joe: has joined #ruby
[03:59:32] gix: has joined #ruby
[04:00:19] TinkerT: has joined #ruby
[04:00:25] darkhanb: has joined #ruby
[04:02:39] akaiiro: has joined #ruby
[04:04:02] alfiemax: has joined #ruby
[04:11:25] akaiiro: has joined #ruby
[04:19:57] akaiiro: has joined #ruby
[04:20:43] kryptoz: has joined #ruby
[04:24:31] amelliaa: has joined #ruby
[04:26:24] akaiiro: has joined #ruby
[04:34:30] apeiros: has joined #ruby
[04:36:11] akkiguru_: has joined #ruby
[04:38:23] solocshaw: has joined #ruby
[04:38:28] graphene: has joined #ruby
[04:45:01] donofrio: has joined #ruby
[04:49:16] Alec: havenwood: don't suppose you're around?
[04:49:29] havenwood: Alec: Bots don't sleep.
[04:50:02] Alec: Well for me it's the coffee enemas
[04:50:09] Alec: Can't feel burning on the inside!
[04:50:32] Alec: havenwood: I had two quick questions, can you make ruby[bot] join channels? Most bots have a command
[04:51:08] Alec: eg #filingcabinets
[04:54:20] Alec: and havenwood what are the rules for "implicit method" and scopes RWT blocks, def b(): ... ; def f() ... ; f { a; b; } if f uses that instance thing (to give the block a self) the suppose the self.a method makes sense
[04:54:28] Alec: Is there a way to get it so b is resolved to the def b prior?
[04:55:56] Alec: It would be really nice to experiment in private
[04:55:58] Alec: So please
[04:56:25] havenwood: Alec: I'd have to look at ruby[bot]'s code - i don't recall offhand
[04:56:29] schleppel: has joined #ruby
[04:56:30] havenwood: maybe somebody else can belt
[04:56:37] Alec: havenwood: would try sending help to it
[04:56:42] ruby[bot]: Alec: You can find a list of my commands on http://ruby-community.com/ruboto/commands and my factoids on http://ruby-community.com/ruboto/facts
[04:57:30] Alec: Hmm no join in that list
[04:57:56] Alec: havenwood: .... let's be honest, #ruby-community is dead - can I use that?
[04:58:57] havenwood: Alec: I'd say use #ruby-community until someone complains. ;-)
[05:00:14] Alec: Thanks havenwood
[05:00:25] apeiros: #ruby-community exists for the expressed purpose of working on the ruby-community.com page and rubybot. if no work is done on those, of course nobody will be talking
[05:01:08] Alec: Speaking of which (I found nothing in the community repo, just webpages which gee I could already get!!!!!) where is the bot's source
[05:01:09] apeiros: Alec: and while rubybot does indeed have a command to join channels, it's not a public command.
[05:01:35] Alec: That's good, it'd be pretty shit if it had to be restarted and read a config file
[05:01:44] Alec: http://ruby-community.com/ruboto/commands <--it does mean that this is incomplete
[05:01:53] havenwood: Alec: Those are the public commands.
[05:01:57] Alec: It has a section about operator commands (which are also not public commands)
[05:01:59] apeiros: the bots source is still private and parts of it will remain private. parts I wanted to publish but didn't get around (and doesn't have a high priority either)
[05:02:03] Alec: Nope the first section is public commands
[05:02:10] Alec: ACTION RTFM - he has right on his side ;)
[05:02:40] Alec: This sounds like bad documentation
[05:03:14] havenwood: Alec: No, it's just that things that aren't meant to be documented aren't.
[05:03:15] Alec: I digress, apeiros as you seemed to have worked on it. I'd much rather combine forced than write my own from scratch there are only a few things missing anyway
[05:03:18] cadillac_: has joined #ruby
[05:04:09] Alec: Oh so they're not actually documented at all?
[05:04:33] ur5us: has joined #ruby
[05:04:45] apeiros: Alec: I'm currently preparing to leave for work (0700 here), so I'll not be able to write for a while. feel free to contact me later.
[05:04:45] havenwood: Alec: The public commands are documented publicly. The private commands are documented privately.
[05:06:11] Alec: !ban havenwood #ruby 1m "Test" | "I am a member of the public"
[05:06:45] baweaver: That one ya have to have a shiny ruby/staff tag for
[05:06:56] Alec: public commands my ass.
[05:06:59] baweaver: !qkick havenwood
[05:06:59] ruby[bot]: ruby[bot] kicked havenwood: offense, see http://ruby-community.com/pages/user_rules
[05:07:30] havenwood: has joined #ruby
[05:07:30] Alec: I can't invite him....
[05:08:01] ChanServ: +o havenwood
[05:08:17] ChanServ: -o havenwood
[05:08:28] Alec: "the public need to know that operators can ban" - or in this case kick - but in a total pussy way of hiding behind a bot they messaged :P
[05:08:42] apeiros: Alec: watch your language.
[05:08:49] Alec: Anyway I'll contact apeiros when I get a chance, if you could stick it in ##filingcabinets though that'd be great.
[05:09:04] Alec: If anyone remembers the command - if not - tomorrow's problem.
[05:10:24] Alec: Thanks for letting me get away with this far off topic BTW - I assure you there are merits to short snippets and a bot via /say and /msg - I'm going to get some breakfast now and stop reading about Ruby
[05:10:44] Alec: havenwood: great meeting you. Thanks for your help earlier.
[05:18:40] Alec: I am sure Ruby has one so I wont as "does it have" - does it have a "first party" - like either officially endorsed or official: profiler, unit test system and debugger?
[05:18:53] Alec: code coverage
[05:19:07] Alec: I'm sure it does BTW - as I said but I mean first party or a dominant leader
[05:20:39] havenwood: Alec: Minitest ships with Ruby on the unit test front.
[05:22:27] akkiguru_: has joined #ruby
[05:25:11] anisha: has joined #ruby
[05:27:30] Joufflu_WTF: has joined #ruby
[05:27:39] faces: has joined #ruby
[05:32:32] Alec: havenwood: relocating?
[05:33:19] havenwood: Alec: You caught me, I'm corporeal!
[05:34:04] Alec: So anyway
[05:34:05] Alec: <Alec> and havenwood what are the rules for "implicit method" and scopes RWT blocks, def b(): ... ; def f() ... ; f { a; b; } if f uses that instance thing (to give the block a self) the suppose the self.a method makes sense
[05:34:05] Alec: <Alec> Is there a way to get it so b is resolved to the def b prior?
[05:34:45] havenwood: Alec: I don't understand the question.
[05:35:41] havenwood: #b and #f, okay. f calls a and b in a block. what's "that instance thing"?
[05:36:21] havenwood: Alec: Rephrase the question?
[05:37:08] Alec: havenwood: "that instance thing" is a thing which can call a block and gives it a self.
[05:37:30] Alec: thing.instance_thing(block) means that "thing" = "the self" of block
[05:39:34] Alec: That # has come up again
[05:39:58] Alec: havenwood: see the b; in the block will implicitly become self.b - not "main.b" or whatever (the def b just before it)
[05:43:00] Alina-malina: has joined #ruby
[05:46:53] kapil___: has joined #ruby
[05:49:32] faraco: has joined #ruby
[05:53:09] naftilos76: has joined #ruby
[05:56:37] naftilos76: Hi, i want to redirect warning and error messages from a shell command in my ruby script into a variable. For example, i am compiling some cpp files with 'g++ main.cpp -c' and i want the warning messages to be saved in a variable.
[05:58:30] havenwood: naftilos76: https://ruby-doc.org/stdlib/libdoc/open3/rdoc/Open3.html
[05:58:55] naftilos76: havenwood: thanks a lot
[05:59:00] havenwood: naftilos76: np
[05:59:47] Alec: is ruby-doc.org a disjoint effort from ruby?
[06:00:30] aupadhye: has joined #ruby
[06:06:19] aufi: has joined #ruby
[06:10:20] RougeR: has joined #ruby
[06:10:20] RougeR: has joined #ruby
[06:14:38] Nicmavr: has joined #ruby
[06:17:52] dionysus69: has joined #ruby
[06:18:12] akkiguru_: has joined #ruby
[06:18:42] postmodern: has joined #ruby
[06:19:05] cadillac_: has joined #ruby
[06:21:25] mikecmpbll: has joined #ruby
[06:22:49] sina: has joined #ruby
[06:25:48] DoubleMalt: has joined #ruby
[06:34:54] apeiros: has joined #ruby
[06:40:35] za1b1tsu: has joined #ruby
[06:41:54] konsolebox: has joined #ruby
[06:42:53] clemens3: has joined #ruby
[06:43:05] manakanapa: has joined #ruby
[06:45:20] snickers: has joined #ruby
[06:49:03] amar: has joined #ruby
[06:50:28] naftilos76: has joined #ruby
[06:55:35] karapetyan: has joined #ruby
[06:59:10] alfiemax: has joined #ruby
[06:59:34] yohji: has joined #ruby
[07:00:25] pharma_joe: has joined #ruby
[07:01:25] alfiemax: has joined #ruby
[07:01:37] alfiemax: has joined #ruby
[07:01:48] rsh: has joined #ruby
[07:02:23] redlegion: has joined #ruby
[07:04:13] andikr: has joined #ruby
[07:05:59] clemens3: has joined #ruby
[07:12:09] conta: has joined #ruby
[07:18:20] bonhoeffer__: has joined #ruby
[07:20:48] mozzarella: has joined #ruby
[07:26:15] alem0lars: has joined #ruby
[07:26:36] user3: has joined #ruby
[07:28:52] user3: Is it a good idea to put rescue StandardError => e; puts e; end in every method? My goal is to stop the program from crashing when hitting an exception, but continue on while complaining loudly about the error (but silently to the user).
[07:29:32] user3: I am also not certain what errors may arise but would just like to ensure continuous running, even if errors cause the program to behave slightly unexpectedly.
[07:31:41] manakanapa: has joined #ruby
[07:31:51] User716: has joined #ruby
[07:31:56] Megamos: has joined #ruby
[07:34:38] bonhoeffer: what happened to the rails room — it has 1/4 the old members and the 200 folks that are there aren’t active?
[07:35:06] user3: has joined #ruby
[07:38:25] user1927: has joined #ruby
[07:40:54] akaiiro: has joined #ruby
[07:48:11] burgestrand: has joined #ruby
[07:48:40] user3: has joined #ruby
[07:49:47] cabotto: has joined #ruby
[07:52:34] akaiiro: has joined #ruby
[07:54:35] jottr: has joined #ruby
[07:54:54] Mqll: has joined #ruby
[07:55:27] anisha: has joined #ruby
[07:55:30] bonhoeffer: has joined #ruby
[07:56:44] cabotto: has joined #ruby
[07:56:44] suukim: has joined #ruby
[08:00:38] Furai: has joined #ruby
[08:02:55] User716: has joined #ruby
[08:03:05] dalpo: has joined #ruby
[08:04:54] karapetyan: has joined #ruby
[08:05:23] psychicist__: has joined #ruby
[08:05:56] ciscam: has joined #ruby
[08:06:48] anisha: has joined #ruby
[08:07:09] user3: has joined #ruby
[08:10:06] Raboo: has joined #ruby
[08:10:24] User716: has joined #ruby
[08:10:43] bonhoeffer: has joined #ruby
[08:12:51] kliq: has joined #ruby
[08:16:45] user3: has joined #ruby
[08:23:36] Megamos: has joined #ruby
[08:23:38] amar: has joined #ruby
[08:28:16] karapetyan: has joined #ruby
[08:29:26] GodFather: has joined #ruby
[08:29:59] user_: has joined #ruby
[08:32:02] NL3limin4t0r: has joined #ruby
[08:32:06] alfiemax: has joined #ruby
[08:32:51] Beams: has joined #ruby
[08:33:12] nowhereman_: has joined #ruby
[08:33:14] user3: has joined #ruby
[08:34:02] guille-moe: has joined #ruby
[08:34:30] User716: has joined #ruby
[08:34:35] alex```: has joined #ruby
[08:35:48] Alec: I think I broke the bot
[08:36:00] Sylario: has joined #ruby
[08:36:03] biberu: has joined #ruby
[08:36:06] Alec: >>"don't you die on me now you mother";
[08:36:07] ruby[bot]: Alec: # => "don't you die on me now you mother" (https://eval.in/1035827)
[08:36:12] Alec: Okay so in here it works?
[08:37:25] Alec: ACTION tries here?
[08:37:25] Alec: >>f = ->(a) { return ->(b) { return a+b; }; }; puts f.(5).(7);
[08:37:45] user3: has joined #ruby
[08:37:47] Alec: WTF did I do the bot?
[08:37:55] Alec: >>f = ->(a) { return ->(b) { return a+b; }; }; puts f.(5).(7);
[08:38:36] RougeR: has joined #ruby
[08:38:36] RougeR: has joined #ruby
[08:39:02] Alec: >>f = ->(a) { return ->(b) { return a+b; }; }; puts f.(5).(7);
[08:39:02] user_: has joined #ruby
[08:39:29] Alec: ACTION gives up - if anyone can explain please do
[08:41:19] User716: has joined #ruby
[08:45:34] user3: has joined #ruby
[08:51:47] user_: has joined #ruby
[08:52:18] kryptoz: has joined #ruby
[08:53:01] kryptoz: has joined #ruby
[08:53:48] kryptoz: has joined #ruby
[08:54:35] kryptoz: has joined #ruby
[08:55:22] kryptoz: has joined #ruby
[08:56:06] nowhereman_: has joined #ruby
[09:08:10] venmx: has joined #ruby
[09:08:36] jenrzzz: has joined #ruby
[09:08:36] jenrzzz: has joined #ruby
[09:13:18] karapetyan: has joined #ruby
[09:16:40] TvL: has joined #ruby
[09:17:04] user3: has joined #ruby
[09:26:29] tvw: has joined #ruby
[09:27:11] NL3limin4t0r: >> fn = ->(a) { ->(b) { a + b } }; fn[5][7]
[09:27:12] ruby[bot]: NL3limin4t0r: # => 12 (https://eval.in/1035879)
[09:27:31] NL3limin4t0r: Alec: You could just use curry for that
[09:28:12] Dbugger: has joined #ruby
[09:28:16] NL3limin4t0r: >> fn ->(a, b) { a + b }.curry; fn[5][7]
[09:28:17] ruby[bot]: NL3limin4t0r: # => undefined method `fn' for main:Object (NoMethodError) ...check link for more (https://eval.in/1035880)
[09:28:27] NL3limin4t0r: >> fn = ->(a, b) { a + b }.curry; fn[5][7]
[09:28:28] ruby[bot]: NL3limin4t0r: # => 12 (https://eval.in/1035881)
[09:30:02] marius: has joined #ruby
[09:34:26] ur5us: has joined #ruby
[09:37:46] drale2k_: has joined #ruby
[09:38:19] user_: has joined #ruby
[09:40:36] User716: has joined #ruby
[09:46:38] RougeR: has joined #ruby
[09:46:39] RougeR: has joined #ruby
[09:49:43] Mike11: has joined #ruby
[09:55:05] nowhere_man: has joined #ruby
[10:01:50] user3: has joined #ruby
[10:04:14] j0bk: has joined #ruby
[10:04:15] j0bk: has joined #ruby
[10:05:42] cyberg: has joined #ruby
[10:06:06] user_: has joined #ruby
[10:10:32] ntt: has joined #ruby
[10:10:45] ntt: Hi, it is possible to encapsulate an ssh terminal through cable in a rails application? Basically I have a scenario where the server can connects via ssh to an (shh) client, and I need to see the ssh console in the browser. Is this possible?
[10:12:42] AJA4350: has joined #ruby
[10:13:27] user3: has joined #ruby
[10:14:38] gnufied: has joined #ruby
[10:16:12] SunnyLumens: has joined #ruby
[10:16:58] user_: has joined #ruby
[10:17:56] TvL2386_: has joined #ruby
[10:18:50] braincrash: has joined #ruby
[10:19:15] User716: has joined #ruby
[10:29:01] apeiros: has joined #ruby
[10:29:35] user3: has joined #ruby
[10:30:39] jenrzzz: has joined #ruby
[10:30:40] jenrzzz: has joined #ruby
[10:36:09] shinnya: has joined #ruby
[10:41:40] Alec: ntt: screen maybe or put tee on to /dev/(bash PID)/stdout
[10:42:12] Alec: NL3limin4t0r: right the bot is like autistic or something and that's why it refused :P
[10:48:02] cliq: has joined #ruby
[10:52:50] alfiemax: has joined #ruby
[10:55:03] za1b1tsu_: has joined #ruby
[10:55:17] Megamosaren: has joined #ruby
[10:55:19] ur5us: has joined #ruby
[10:55:45] diego_k: has joined #ruby
[10:55:49] guille-moe1: has joined #ruby
[10:56:43] z3uS: has joined #ruby
[10:57:47] ltd: has joined #ruby
[10:58:34] dionysus69: env var is not present when I run irb/ruby with sudo
[10:58:48] dionysus69: setting up god gem, that's why I need sudo
[10:59:55] user3: has joined #ruby
[11:02:02] kliq: has joined #ruby
[11:03:30] Alec: dionysus69: RTFM
[11:04:11] dionysus69: ok figured it out, rvmsudo :s
[11:05:42] zapata: has joined #ruby
[11:05:44] Alec: dionysus69: you must be new
[11:06:00] Alec: Whenever someone says RTFM it's because they're looking at the manual and see the exact relevant bit
[11:06:22] dionysus69: nope, just havent dealt with rvm in several months
[11:09:21] cliq: has joined #ruby
[11:11:19] skarlso: has joined #ruby
[11:14:09] apeiros: Alec: a plain rtfm is pointless and you can save yourself typing it. if you rtfm somebody, give them at the very least a pointer where and what to look at.
[11:14:22] apeiros: Alec: otherwise we can answer all questions here by "please read a ruby book"
[11:15:10] konsolebox: to be fair, it's rtfd
[11:16:42] Alec: apeiros: I'd agree if you were talking about GCC's monster manual page or something
[11:16:46] Alec: but try it!
[11:16:51] Alec: Maybe learn how to use /
[11:16:55] Alec: followed by "env"
[11:17:05] apeiros: you don't need to agree. I tell you channel rules.
[11:17:34] apeiros: and `sudo(8)` doesn't help quite a lot of people. they won't understand that you want them to use man.
[11:17:59] Alec: Channel rules say I must quote the manual rather than say RTFM giving noobs useful lifeskills?
[11:18:17] Alec: Well if anyone doesn't understand the format they could ask
[11:18:22] apeiros: channel rules say you shouldn't behave like a dick. and you do.
[11:18:23] Alec: I could explain man's sections
[11:18:47] Alec: Careful m8 - I got pulled up by an opp when I used that word earlier.
[11:18:55] apeiros: and no, "rtfm" doesn't teach life skills. that's quite a twisted view of reality you have there if you think that.
[11:19:12] Alec: Oh that was you
[11:19:14] apeiros: <-- does that @ help?
[11:19:17] apeiros: -o apeiros
[11:19:32] apeiros: no it wasn't me. I was afk the last few hours.
[11:19:51] Alec: I'm going to check now
[11:20:03] Alec: 'cos it was for sure "a" for the first letter
[11:20:23] Alec: <apeiros> Alec: watch your language.
[11:20:32] apeiros: I told you to watch your language. I … yep, wasn't specific about which words.
[11:21:40] Alec: Oh right sure, it was the lack of capital T at the tart of the sentence that was about
[11:21:50] Alec: Totally not the only word that could conceivably be bad
[11:22:06] conta: has joined #ruby
[11:22:09] Alec: Anyway IDC really I'd just fallen back into sibling mode
[11:22:22] Alec: So what can I do when I check the manual, find it within 3 seconds including manual time
[11:22:27] Alec: Like say nothing?
[11:22:35] apeiros: tell them how to get there
[11:22:56] apeiros: tell them what you did to get to the point where you actually saw the thing they were looking for documented.
[11:23:13] zx: has joined #ruby
[11:23:41] Alec: Right I'm sure that wont be taken as really condescending or patronising or as assuming they're such noobs they can't type "man sudo"
[11:23:55] Alec: I'm not liking this, I'm just gonna sponge until I get used to it
[11:24:34] apeiros: no idea what "gonna sponge" is supposed to mean in this context.
[11:24:48] Alec: Oh right the first word is "going to" contracted into a slang form
[11:25:02] Alec: "sponge" is a synonym for "leach" or "free-rider" - someone who takes but gives nothing back.
[11:25:07] Alec: To "sponge off" someone.
[11:25:23] Alec: I really don't want to risk being banned for trying to help
[11:25:39] Alec: Maybe when I don't need you guys, then I can cut you loose like dead-weight :P
[11:25:42] apeiros: yeah, again, "rtfm" is in no way "trying to help"
[11:26:06] Alec: ...agree to disagree
[11:26:09] apeiros: and if that's your idea of helping, then indeed, I prefer you to remain silent.
[11:26:50] zx: has left #ruby: ()
[11:30:02] ldnunes: has joined #ruby
[11:41:00] admn: has joined #ruby
[11:41:03] fot: has joined #ruby
[11:41:29] Alec: Hello friend.
[11:41:59] admn: im getting this error "ruby: No such file or directory -- dk.rb (LoadError)" when running ruby dk.rb init
[11:42:14] admn: this is the content of ruby folder https://paste.ubuntu.com/p/MnGgcM6rJy/
[11:42:41] admn: I have downloaded and installed rubyinstaller-devkit-2.5.1-2-x64 successfully
[11:44:15] admn: any suggestions pls
[11:45:37] konsolebox: adm_: `ruby dk.rb` means dk.rb is supposed to be in current path, unless you use -S
[11:46:14] konsolebox: adm_: perhaps you need to set up your %PATH% to have C:\Ruby25-x64\bin included
[11:46:23] Alec: adm_: do you have a web-browser?
[11:46:33] konsolebox: then execute ruby in the directory where dk.rb exists
[11:46:39] admn: i went to C:\Ruby25-x64> using cd
[11:46:47] konsolebox: yes, and dk.rb is not there
[11:46:50] mniip: has joined #ruby
[11:46:59] admn: i searched for dk.rb but i didn't find it
[11:47:15] konsolebox: of course. why do you even run `ruby dk.rb`?
[11:47:48] admn: u mean i should run ruby dk.rb first?
[11:48:30] admn: yes i have web browser
[11:48:31] konsolebox: running `ruby dk.rb` means you want to execute the script dk.rb. why did you think about using that command?
[11:49:17] James123: has joined #ruby
[11:49:33] admn: because this procedure should be used to install foreman smart proxy on windows based on this documentation https://theforeman.org/manuals/1.17/index.html#4.3.1SmartProxyInstallation
[11:49:54] admn: if u search for dk.rb on that link u will get my point pls
[11:50:25] konsolebox: it says "ruby <devKitRoot>\dk.rb init"
[11:50:39] konsolebox: did you replace <devKitRoot> with the actual directory of devkit?
[11:50:54] konsolebox: what is the complete command?
[11:50:58] admn: but i get error that dk.rb doesn't exist
[11:51:17] konsolebox: have you manually checked devkit (not the ruby) the directory if dk.rb exists?
[11:52:00] James123: Hello! I have a text file with some emails of the form: Re: subject\n body text with several new lines\n Re: subject 2\n new email text. I want to read each email including the subject line to an array element. I have tried emails.scan(/Re:.*?/m) but it doesn't work. Any ideas?
[11:52:04] konsolebox: adm_: C:\Ruby25-x64 is not the devkit directory
[11:52:12] admn: i searched all c partition but i didn't find it
[11:52:23] konsolebox: you should have seen it when you install devkit
[11:52:56] admn: i installed this rubyinstaller-devkit-2.5.1-2-x64 package
[11:53:09] admn: it will install ruby with devkit right?
[11:53:37] nowhere_man: has joined #ruby
[11:53:43] admn: and i didn't get any error during the installation
[11:54:01] admn: i installed it on windows server 2016
[11:59:58] admn: pls how to uninstall the current package?
[12:00:35] admn: i will install ver 2.4 so i need to uninstall 2.5 pls
[12:01:13] alfiemax_: has joined #ruby
[12:04:00] jcalla: has joined #ruby
[12:05:17] synthroid: has joined #ruby
[12:06:44] SunnyLumenz: has joined #ruby
[12:07:37] cloudive: has joined #ruby
[12:11:56] konsolebox: adm_: read the installer's instructions in the "Select Components" page
[12:14:12] BaroMeter: has joined #ruby
[12:14:56] konsolebox: adm_: that "ruby <devKitRoot>\dk.rb init" instruction seems to refer to the old installer "RubyInstaller". RubyInstaller2 seems to do it automatically for the user in the last installer page.
[12:15:59] admn: so no need to run this command after the installation right?
[12:17:59] skarlso: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[12:18:58] konsolebox: intuitively no. examine the documentations if you're worried. https://github.com/oneclick/rubyinstaller2
[12:20:56] admn: thx konsolbox
[12:30:11] konsolebox: James123: scan(/^Re:.+?(?=^Re:)|^Re:.*/m)
[12:30:33] MyMind: has joined #ruby
[12:32:17] fot: has joined #ruby
[12:32:33] James123: konsolebox: Thank you very much. I didn't know about regex lookahead, really useful
[12:33:33] lupine: has joined #ruby
[12:35:26] jrafanie: has joined #ruby
[12:35:44] bak1an: has joined #ruby
[12:38:34] codymj: has joined #ruby
[12:38:36] lupine: has joined #ruby
[12:40:00] synthroid: has joined #ruby
[12:40:31] SunnyLumens: has joined #ruby
[12:41:06] RougeR: has joined #ruby
[12:41:06] RougeR: has joined #ruby
[12:49:44] sticaz: has joined #ruby
[12:51:28] deathwishdave: has joined #ruby
[12:51:46] graphene: has joined #ruby
[12:51:47] dr3wo: has joined #ruby
[12:52:50] graphene: has joined #ruby
[12:53:02] nima_m: has joined #ruby
[12:53:10] k0mpa: has joined #ruby
[12:53:24] sagax: has joined #ruby
[12:56:10] kapil___: has joined #ruby
[12:59:37] kryptoz: has joined #ruby
[13:01:47] alex```: has joined #ruby
[13:02:34] TagNotFound: has joined #ruby
[13:13:49] graphene: has joined #ruby
[13:13:54] fmcgeough: has joined #ruby
[13:15:59] Inline: has joined #ruby
[13:16:46] cyberg: has left #ruby: ("Leaving")
[13:18:31] user3: has joined #ruby
[13:18:49] alem0lars: has joined #ruby
[13:20:52] za1b1tsu_: has joined #ruby
[13:21:20] yokel: has joined #ruby
[13:25:05] bak1an: has joined #ruby
[13:25:12] TomyLobo: has joined #ruby
[13:25:45] venmx: has joined #ruby
[13:26:44] ruby[bot]: apeiros: # => 2 (https://eval.in/1036140)
[13:31:16] nima_m: hey i read chirs pine’s book, im new in ruby :/ what are your seggestions about next step to learn more things?
[13:32:16] fot: has joined #ruby
[13:34:41] apeiros: nima_m: find something you'd like to build, start building it.
[13:34:50] gnufied: has joined #ruby
[13:35:10] fuxx: has joined #ruby
[13:35:38] soniya29: has joined #ruby
[13:36:04] za1b1tsu_: has joined #ruby
[13:39:31] reber: has joined #ruby
[13:39:33] reber__: has joined #ruby
[13:41:30] SunnyLumenz: has joined #ruby
[13:42:40] bmurt: has joined #ruby
[13:46:46] graphene: has joined #ruby
[13:49:42] banisterfiend: has joined #ruby
[13:51:48] memo1: has joined #ruby
[13:53:29] alex```: has joined #ruby
[13:56:36] SunnyLumens: has joined #ruby
[13:58:04] graphene: has joined #ruby
[13:59:39] quobo: has joined #ruby
[14:01:54] Rapture: has joined #ruby
[14:03:16] rippa: has joined #ruby
[14:03:17] gnufied: has joined #ruby
[14:05:01] ogres: has joined #ruby
[14:08:26] Hanmac: has joined #ruby
[14:08:28] rikkipitt: has joined #ruby
[14:16:24] Biappi: has joined #ruby
[14:17:28] Biappi: hello. i'm looking for the easiest way of installing an application that supports "gem install $app" in a non-global, and possibly "portable" way
[14:18:09] Biappi: many times people advised me "bundler", but i find its docs a really confusing mishmash of ruby jargon i'm not familiar with... i'd be happy if somebody could just point me to a doc to follow
[14:22:18] apparition: has joined #ruby
[14:30:31] troys: has joined #ruby
[14:31:57] agent_white: has joined #ruby
[14:37:18] synthroid: has joined #ruby
[14:37:44] havenwood: Biappi: You can install gems wherever you'd like: gem i -i /path/to/gems
[14:38:05] havenwood: Biappi: RubyGems itself also supports dependency resolution. Create a Gemfile, but your deps in it, and run: gem i -g
[14:39:09] havenwood: Biappi: It'll install "globally", but you can use just those versions by setting: export RUBYGEMS_GEMDEPS=-
[14:40:08] havenwood: Biappi: It's typical these days to simply install to $GEM_HOME, specify your deps in a Gemfile, create a Gemfile.lock, then use just those specified versions when running the app.
[14:41:47] graphene: has joined #ruby
[14:41:53] havenwood: Biappi: Here's a few lines of shell that'll facilitate moving $GEM_HOME, $GEM_PATH and $PATH around - if that's the way you want to go: https://github.com/postmodern/gem_home#gem_home
[14:42:56] havenwood: Biappi: The more popular option is the dependency resolver route, where you resolve to a Gemfile.lock with specific gems and versions - then use just those when running the app.
[14:45:01] Inline: has joined #ruby
[14:50:20] Mrgoose2: has joined #ruby
[14:51:54] reber__: has joined #ruby
[14:52:36] memo1: has joined #ruby
[14:56:41] gizmore: has joined #ruby
[14:57:03] gizmore: havenwood: This is your daily appreciation message :) thx for your expertises and help
[15:09:24] Puffball: has joined #ruby
[15:10:57] beefjoe: has joined #ruby
[15:12:15] soniya29: has joined #ruby
[15:18:55] nowhere_man: has joined #ruby
[15:20:01] nowhereman_: has joined #ruby
[15:20:59] SunnyLumenz: has joined #ruby
[15:24:46] ivanskie: has joined #ruby
[15:24:50] amar_: has joined #ruby
[15:25:17] cadillac_: has joined #ruby
[15:25:25] tcopeland: has joined #ruby
[15:26:20] amar_: has joined #ruby
[15:31:29] theRoUS: has left #ruby: ("Off to another part of the maze of twisty little passages")
[15:31:47] snowy: has joined #ruby
[15:32:09] fot: has joined #ruby
[15:36:19] guille-moe: has joined #ruby
[15:37:42] mikecmpbll: has joined #ruby
[15:38:03] Dbugger: has joined #ruby
[15:40:09] fot: has joined #ruby
[15:40:28] graphene: has joined #ruby
[15:40:49] Lytol: has joined #ruby
[15:43:09] synthroid: has joined #ruby
[15:47:57] graphene: has joined #ruby
[15:49:31] r29v: has joined #ruby
[15:50:19] jcarl43: has joined #ruby
[15:52:12] r29v: has joined #ruby
[15:53:05] alfiemax: has joined #ruby
[15:53:32] cagomez: has joined #ruby
[15:57:24] lxsameer: has joined #ruby
[15:57:25] SunnyLumens: has joined #ruby
[15:57:52] synthroid: has joined #ruby
[15:59:35] cagomez: has joined #ruby
[15:59:59] abd31999: has joined #ruby
[16:00:23] SunnyLumenz: has joined #ruby
[16:00:59] abd31999: hi, anyone can help me to install MSF on Fedora 28
[16:02:04] Megamosaren: has joined #ruby
[16:02:19] planigan: has joined #ruby
[16:04:24] amar_: has joined #ruby
[16:05:05] Caerus: has joined #ruby
[16:06:38] baweaver: abd31999: Y'might have the wrong channel here
[16:09:50] abd31999: baweaver, I think the problem is from ruby
[16:10:04] baweaver: What's MSF?
[16:10:20] alfiemax_: has joined #ruby
[16:10:35] abd31999: Metasploit framework
[16:12:43] g-: the first rule of msf is you don't ask for help with msf
[16:12:50] havenwood: ?metasploit
[16:12:50] ruby[bot]: Please join #metasploit for help with it.
[16:13:16] havenwood: abd31999: If you have a Ruby problem, pray tell!
[16:16:56] sagax: has joined #ruby
[16:17:08] abd31999: https://paste.fedoraproject.org/paste/6qafcLTXMryUEiBwFxqDZg
[16:17:46] abd31999: this is what happen when I type bundle install
[16:18:08] beefjoe: has joined #ruby
[16:18:11] yohji: has joined #ruby
[16:20:32] beefjoe: has joined #ruby
[16:22:51] claudiuinberlin: has joined #ruby
[16:23:05] konsolebox: has joined #ruby
[16:25:48] konsolebox: has joined #ruby
[16:27:09] baweaver: User permissions.
[16:27:36] eb0t: has joined #ruby
[16:27:38] eblip: has joined #ruby
[16:27:39] baweaver: System Ruby, and your user doesn't have sufficient rights to install C extensions.
[16:29:15] abd31999: baweaver, So how I can solve it
[16:29:54] lxsameer: has joined #ruby
[16:29:55] baweaver: If you're trying to learn metasploit, it would be a good first exercise to understand permissions on a unix system.
[16:30:32] baweaver: Read the error carefully, and then see what you can learn on file permissions on unix
[16:32:45] cadillac_: has joined #ruby
[16:36:47] darkhanb: has joined #ruby
[16:38:47] amar_: has joined #ruby
[16:39:58] lxsameer: has joined #ruby
[16:40:16] r29v: has joined #ruby
[16:42:05] amarks: has joined #ruby
[16:42:13] eckhardt_: has joined #ruby
[16:42:27] alfiemax: has joined #ruby
[16:42:38] mynameisdebian: has joined #ruby
[16:44:30] mikecmpbll: has joined #ruby
[16:48:44] amar_: has joined #ruby
[16:48:58] mikecmpbll: has joined #ruby
[16:50:07] lxsameer: has joined #ruby
[16:55:26] mikecmpbll: has joined #ruby
[16:57:20] soniya29: has joined #ruby
[16:59:22] nowhereman_: has joined #ruby
[17:00:03] lxsameer: has joined #ruby
[17:03:45] dr3wo: has joined #ruby
[17:07:16] karapetyan: has joined #ruby
[17:10:07] lxsameer: has joined #ruby
[17:12:47] IanMalcolm: has joined #ruby
[17:14:38] sameerynho: has joined #ruby
[17:14:43] graphene: has joined #ruby
[17:15:36] Hobbes: has joined #ruby
[17:16:08] alfiemax: has joined #ruby
[17:19:59] lxsameer: has joined #ruby
[17:25:47] graphene: has joined #ruby
[17:29:49] graphene: has joined #ruby
[17:30:11] lxsameer: has joined #ruby
[17:30:15] za1b1tsu_: has joined #ruby
[17:31:19] jottr: has joined #ruby
[17:32:19] bonhoeffer: has joined #ruby
[17:34:58] alfiemax: has joined #ruby
[17:36:22] miah: i'd also recommend #metasploit
[17:39:54] lxsameer: has joined #ruby
[17:41:27] za1b1tsu_: has joined #ruby
[17:49:57] lxsameer: has joined #ruby
[17:51:51] SunnyLumenz: has joined #ruby
[18:00:04] lxsameer: has joined #ruby
[18:04:58] zachk: has joined #ruby
[18:04:58] zachk: has joined #ruby
[18:06:51] zautomata: has joined #ruby
[18:06:56] zautomata: has joined #ruby
[18:09:58] lxsameer: has joined #ruby
[18:18:07] gizmore: has joined #ruby
[18:18:19] gizmore: >> puts.inspect
[18:18:21] ruby[bot]: gizmore: # => ...check link for more (https://eval.in/1036219)
[18:19:59] lxsameer: has joined #ruby
[18:22:36] claudiuinberlin: has joined #ruby
[18:29:29] dbugger2: has joined #ruby
[18:29:58] lxsameer: has joined #ruby
[18:29:59] gizmore: >> Object.class_methods
[18:30:00] ruby[bot]: gizmore: # => undefined method `class_methods' for Object:Class ...check link for more (https://eval.in/1036222)
[18:30:10] gizmore: >> Object.new.class_methods
[18:30:12] ruby[bot]: gizmore: # => undefined method `class_methods' for #<Object:0x406b9bf4> (NoMethodError) ...check link for more (https://eval.in/1036223)
[18:30:23] gizmore: >> Object.new.instance_methods
[18:30:24] ruby[bot]: gizmore: # => undefined method `instance_methods' for #<Object:0x40b95c68> ...check link for more (https://eval.in/1036224)
[18:30:38] gizmore: is this ruby?
[18:30:54] gizmore: >> Object.instance_methods
[18:31:12] dr3wo: has joined #ruby
[18:33:15] mynameisdebian: has joined #ruby
[18:38:16] gizmore: havenwood: you around?
[18:38:18] Dbugger: has joined #ruby
[18:39:54] havenwood: gizmore: hey
[18:39:58] lxsameer: has joined #ruby
[18:40:39] apeiros: has joined #ruby
[18:40:40] havenwood: gizmore: what's up?
[18:41:04] gizmore: still working on GDO(Ruby)
[18:41:12] gizmore: let me push latest stuff
[18:41:57] gizmore: $ git commit -am "1.00r1 havenwood"
[18:42:11] havenwood: I've never been a version number before.
[18:42:12] gizmore: havenwood is codename for GDO(Ruby) 1.00
[18:42:19] havenwood: ah, a codename!
[18:42:32] gizmore: i ditched your versioning suggestions
[18:42:44] gizmore: i stuck to mine (1.00, 1.01 etc
[18:42:58] apeiros: you should follow hero style commits
[18:43:11] gizmore: i usually put desrc (thx username)
[18:43:14] apeiros: $ gm 'In which our hero releases 1.00r1'
[18:43:27] gizmore: GDO(Ruby) 1.00 - havenwood
[18:43:46] apeiros: eh, habit - gm = git commit -m
[18:43:56] lampd1: has joined #ruby
[18:44:12] lampd1: has left #ruby: ()
[18:44:15] gizmore: in GDO(PHP) i got a "gdo_sync.sh" which does find -exec git stuff
[18:44:27] gizmore: it pushes all my modules with same commit msg
[18:44:38] gizmore: i am only 1 man
[18:44:52] gizmore: GDO is modular
[18:45:21] apeiros: "In which our hero fixes bugs"
[18:46:03] gizmore: let us do a kickstarter where we do a havenwood hero movie, yeah
[18:47:25] gizmore: >> Object.new.class.instance_methods.sort
[18:47:27] ruby[bot]: gizmore: # => [:!, :!=, :!~, :<=>, :==, :===, :=~, :__id__, :__send__, :class, :clone, :define_singleton_method, : ...check link for more (https://eval.in/1036227)
[18:47:35] SeepingN: has joined #ruby
[18:48:14] gizmore: >> Object.new.untrust apeiros
[18:48:15] ruby[bot]: gizmore: # => undefined local variable or method `apeiros' for main:Object (NameError) ...check link for more (https://eval.in/1036229)
[18:48:20] gizmore: >> Object.new.untrust :apeiros
[18:48:21] ruby[bot]: gizmore: # => wrong number of arguments (given 1, expected 0) (ArgumentError) ...check link for more (https://eval.in/1036230)
[18:49:11] gizmore: >> class Object; alias :new :old; end
[18:49:13] ruby[bot]: gizmore: # => undefined method `old' for class `Object' ...check link for more (https://eval.in/1036231)
[18:49:29] gizmore: >> class Object; def old; new; end; alias :new :old; end
[18:49:30] ruby[bot]: gizmore: # => nil (https://eval.in/1036232)
[18:49:51] yxhuvud: has joined #ruby
[18:49:56] gizmore: i expected a deadloop Oo
[18:50:11] lxsameer: has joined #ruby
[18:51:49] apeiros: if you use alias syntax, don't use symbols. `alias new old`
[18:52:13] apeiros: and yes, it'd be an infinite loop, if you called it :)
[18:52:28] gizmore: I am working on an own framework
[18:52:50] apeiros: so I heard :D
[18:52:54] apeiros: lets compare. in april.
[18:53:08] gizmore: it will support: "HTTP,Websocket,ICQ,Jabber,XMPP,CGI,Shell,Netcat,Gopher"
[18:53:28] gizmore: cache invalidation is a thing i got right
[18:53:29] apeiros: ah mine won't :)
[18:53:57] nowhereman_: has joined #ruby
[18:54:16] gizmore: gdo Register Form gizmore password gizmore@wechall.net 1 submit
[18:54:49] gizmore: apeiros: ^ this is current bash syntax to trigger registration of user account via bash
[18:56:21] karapetyan: has joined #ruby
[18:57:00] gizmore: `gdo Register Form gizmore password gizmore@wechall.net 1 submit` <-- this is CLI to create an account with my "framework"
[18:57:59] gizmore: i have not coded that far yet.... but plan is one framework serves all
[18:58:54] apeiros__: has joined #ruby
[18:59:10] apeiros: I might try to add http2/hths to it.
[18:59:15] apeiros: (dang, internet at ~200km/h is a bit "wobbly")
[18:59:52] apeiros__: ACTION checks logs
[19:00:04] lxsameer: has joined #ruby
[19:00:18] dviola: has joined #ruby
[19:00:20] gizmore: waited for you and went quiet until you were back, master apeiros
[19:00:37] apeiros: oh, I'm a master now? nice :D
[19:00:52] apeiros: gotta switch trains… and might be offline after. cya all :)
[19:00:58] gizmore: git commit -am "1.00-havenwood-r1"
[19:01:09] gizmore: wrong window ;)
[19:03:21] gizmore: https://github.com/gizmore/GDO-Register/blob/master/spec/gdo_spec.rb (roast my tests)
[19:05:24] apeiros: has joined #ruby
[19:06:37] gizmore: apeiros: https://github.com/gizmore/GDO-Register/blob/master/spec/gdo_spec.rb (roast my unit tests for my signup module)
[19:07:00] gizmore: the same code should work for websocket etc
[19:09:58] lxsameer: has joined #ruby
[19:11:14] noizex: has joined #ruby
[19:11:54] gizmore: This is a model for signup IP recording/restriction
[19:11:58] gizmore: https://github.com/gizmore/GDO-Register/blob/master/lib/GDO/Register/GDO_SignupIP.rb
[19:13:00] gizmore: GDO signup is quite nice..... emails or username is only burned when you activated
[19:13:13] gizmore: this is the activation token table:
[19:13:27] lemonpaul: has joined #ruby
[19:13:29] gizmore: https://github.com/gizmore/GDO-Register/blob/master/lib/GDO/Register/GDO_UserActivation.rb
[19:14:19] gizmore: already registered with nickname/email
[19:14:24] SunnyLumens: has joined #ruby
[19:14:24] gizmore: burned mail
[19:14:30] gizmore: many signups bv
[19:14:39] gizmore: many signups burn mail before activation
[19:14:57] bkxd: has joined #ruby
[19:14:58] Rapture: has joined #ruby
[19:15:35] SunnyLumens: has joined #ruby
[19:17:15] apeiros: gizmore: "user_name=#{activation.quoted(:user_name)} OR user_email=#{activation.quoted(:user_email)}" - should use bind variables instead
[19:17:41] apeiros: I wonder where `table` comes from there. but well, reached my destination. so probably offline for the rest of the week-end :)
[19:17:47] gizmore: apeiros: GDO does not feature bind variables or prepared statements
[19:17:57] gizmore: it is my own DBA
[19:18:09] gizmore: i dislike ActiveRecord
[19:18:32] gizmore: GDO only works with mysql
[19:18:55] gizmore: by design :)
[19:20:00] lxsameer: has joined #ruby
[19:20:59] gizmore: ActiveRecord is the inner join of some DBA
[19:21:26] gizmore: GDO might use advanced mysql features instead
[19:21:44] gizmore: like different storage engines
[19:22:30] redlegion: has joined #ruby
[19:24:33] gizmore: another example
[19:24:47] gizmore: table.delete_where("user_name=#{activation.quoted(:user_name)} OR user_email=#{activation.quoted(:user_email)}")
[19:25:31] gizmore: this actually loads every entitiy to delete and calls the events
[19:25:39] gizmore: unlike ActiveRecord
[19:26:20] gizmore: GDO support combined primary keys, unlike ActiveRecord
[19:26:38] gizmore: GDO features a single identity cache (unique feature)
[19:27:58] gizmore: single identiy cache means every object retrieved from db is filtered through cache, and will return the same instance when the same row is queried multiple times
[19:28:40] gizmore: currently this is disabled in GDO(Ruby) but i got great results in PHP
[19:29:07] gizmore: GDO is not designed to be scalable atm
[19:29:58] lxsameer: has joined #ruby
[19:32:56] reber: has joined #ruby
[19:32:58] tvw: has joined #ruby
[19:37:41] rootd00d: has joined #ruby
[19:38:26] rootd00d: hey folks! i'm having a little trouble with concurrent-ruby. i'm using a FixedThreadPool to make threaded HTTP requests, but i need to preserve the responses to all of these requests in a "shared" array.
[19:38:55] dr3wo: has joined #ruby
[19:39:42] rootd00d: i was thinking i'd just declare an array, and then in pool.post ... i'd be able to access the array and just push the responses on, but at the end the array is just empty.
[19:39:53] gizmore: rootd00d: you need to lock access on writes and reads maybe
[19:39:55] rootd00d: i'm guessing because each thread is getting it's own copy of that array variable.
[19:39:59] gizmore: threading is not too hard
[19:40:08] lxsameer: has joined #ruby
[19:40:13] venmx: has joined #ruby
[19:40:29] gizmore: you just need to choreograph your code that accesses shared data
[19:40:37] gizmore: semaphoes, locks, whatever
[19:40:41] gizmore: lockspins!
[19:40:48] gizmore: semaphores, locks, whatever *
[19:40:50] raynold: has joined #ruby
[19:40:58] rootd00d: gizmore: well, i thought maybe i should use safe_array_var = Concurrent::MVar.new(array_var), and then inside the thread, do safe_array_var.value.push(<foo>) but it's the same effect.
[19:41:16] gizmore: i am not into that Concurrent lib
[19:41:22] gizmore: i use only Thread.current
[19:41:22] rootd00d: it doesn't seem to complain at all, but the array is still empty.
[19:41:27] dr3wo: Hey, anyone know how to do this? http://rextester.com/XKHM18850
[19:41:59] gizmore: rootd00d: on just wrap a lock around accessing your shared data could work
[19:43:27] gizmore: dr3w_: tricky
[19:44:14] gizmore: dr3w_: match <script>.*</script> or .*
[19:44:21] rootd00d: gizmore: i'll give that a shot.
[19:44:45] gizmore: rootd00d: good luck with your threading exe
[19:44:50] gizmore: rootd00d: good luck with your threading experience *
[19:45:27] dr3wo: Hmm @gizmore that causes it to split
[19:45:30] dr3wo: <script>This is a thing</script>cake<script>This is a thing</script>lololol<script>This is a thing</script>
[19:46:29] gizmore: dr3w_: maybe match scripts and afterwards split by that
[19:46:41] gizmore: like first (<script>.*</script>)
[19:46:48] gizmore: then split by (<script>.*</script>)
[19:46:59] bak1an: has joined #ruby
[19:47:00] gizmore: just some ideas for your horrible idea
[19:47:18] rootd00d: gizmore: wrapping it in a mutex didn't work...
[19:47:31] rootd00d: gizmore: it seems like some special consideration when using a FixedThreadPool
[19:47:51] gizmore: rootd00d: i have zero experience with ThreadPool
[19:48:52] konsolebox: dr3w_: puts string.scan(/<script>.*?<\/script>|.+?(?=<script>)|.+/)
[19:49:19] anisha: has joined #ruby
[19:49:21] dr3wo: :O @konsolebox is god
[19:50:08] lxsameer: has joined #ruby
[19:53:12] bsamorim: has joined #ruby
[19:56:32] quobo: has joined #ruby
[19:56:48] fot: has joined #ruby
[19:59:20] snickers: has joined #ruby
[20:00:08] lxsameer: has joined #ruby
[20:03:01] mikecmpbll: has joined #ruby
[20:05:35] bonhoeffer: has joined #ruby
[20:07:21] amar_: has joined #ruby
[20:10:08] lxsameer: has joined #ruby
[20:14:12] gizmore: >> 1.00.major
[20:14:14] ruby[bot]: gizmore: # => undefined method `major' for 1.0:Float (NoMethodError) ...check link for more (https://eval.in/1036311)
[20:14:18] gizmore: >> "1.00".major
[20:14:19] ruby[bot]: gizmore: # => undefined method `major' for "1.00":String (NoMethodError) ...check link for more (https://eval.in/1036312)
[20:17:33] kliq: has joined #ruby
[20:20:01] lxsameer: has joined #ruby
[20:21:22] claudiuinberlin: has joined #ruby
[20:21:44] zautomata: has joined #ruby
[20:21:51] zautomata: has joined #ruby
[20:23:02] fot: has left #ruby: ("WeeChat 2.1")
[20:29:55] lxsameer: has joined #ruby
[20:32:26] kedibasi: has joined #ruby
[20:35:15] graphene: has joined #ruby
[20:38:05] eregon: has joined #ruby
[20:39:03] cadillac_: has joined #ruby
[20:39:56] lxsameer: has joined #ruby
[20:42:23] pauliesaint: has joined #ruby
[20:42:44] eregon: has joined #ruby
[20:43:49] pauliesaint: has joined #ruby
[20:45:00] mynameisdebian: has joined #ruby
[20:50:05] lxsameer: has joined #ruby
[20:53:41] Jushy: has joined #ruby
[20:54:22] Jushy: has joined #ruby
[20:55:05] eregon: has joined #ruby
[20:55:56] mynameisdebian: has joined #ruby
[20:56:25] jamesaxl: has joined #ruby
[20:56:38] beefjoe: has joined #ruby
[20:57:38] JJonah: is there a way to introspect a ruby method or proc to figure out if it can take a block argument?
[20:58:25] havenwood: >> -> &block {}.parameters # JJonah
[20:58:26] ruby[bot]: havenwood: # => [[:block, :block]] (https://eval.in/1036316)
[20:58:36] havenwood: >> -> {}.parameters # JJonah
[20:58:37] ruby[bot]: havenwood: # => [] (https://eval.in/1036317)
[20:59:56] lxsameer: has joined #ruby
[21:01:28] bmurt: has joined #ruby
[21:01:46] venmx: has joined #ruby
[21:02:12] JJonah: havenwood: hi! so i may be misunderstanding your suggestions, but eg this:
[21:02:12] JJonah: t = Array.instance_method(:map)
[21:02:12] JJonah: p t.parameters #=> []
[21:02:12] JJonah: returns an empty array, so I wouldn't know that map took a block
[21:04:10] mynameisdebian: has joined #ruby
[21:05:32] havenwood: >> def map; yield end; method(:map).parameters ## JJonah
[21:05:33] ruby[bot]: havenwood: # => [] (https://eval.in/1036318)
[21:05:39] havenwood: >> def map &block; block.call end; method(:map).parameters # JJonah
[21:05:40] ruby[bot]: havenwood: # => [[:block, :block]] (https://eval.in/1036319)
[21:05:58] havenwood: JJonah: When you have an implicit block with yield, they don't show up in the parameters.
[21:06:23] JJonah: havenwood: ok, so there's simply no way to introspect that?
[21:08:54] havenwood: JJonah: Apart from looking at the instruction sequence or ast or that sort of thing, I don't think so.
[21:08:55] havenwood: JJonah: Or Fiddle.
[21:09:25] JJonah: havenwood: ty
[21:10:05] lxsameer: has joined #ruby
[21:14:26] shinnya: has joined #ruby
[21:15:47] graphene: has joined #ruby
[21:16:49] dnewkerk: has joined #ruby
[21:17:37] za1b1tsu_: has joined #ruby
[21:20:10] lxsameer: has joined #ruby
[21:21:49] bonhoeffer: has joined #ruby
[21:26:52] graphene: has joined #ruby
[21:27:23] Mia: has joined #ruby
[21:27:34] eckhardt_: has joined #ruby
[21:27:38] Mia: has joined #ruby
[21:27:53] subroot: has joined #ruby
[21:28:27] \void: has joined #ruby
[21:28:39] fluxAeon: has joined #ruby
[21:28:56] k0mpa: has joined #ruby
[21:29:55] lxsameer: has joined #ruby
[21:31:53] nertzy: has joined #ruby
[21:32:51] akaiiro: has joined #ruby
[21:36:19] Puffball: has joined #ruby
[21:39:35] zautomata: has left #ruby: ("WeeChat 1.9.1")
[21:39:59] lxsameer: has joined #ruby
[21:41:39] bonhoeffer: has joined #ruby
[21:43:53] RougeR: has joined #ruby
[21:43:53] RougeR: has joined #ruby
[21:47:17] ur5us: has joined #ruby
[21:47:55] apeiros_: has joined #ruby
[21:50:16] lxsameer: has joined #ruby
[21:54:17] bonhoeffer: has joined #ruby
[21:55:26] guille-moe: has joined #ruby
[21:55:51] moei: has joined #ruby
[21:57:29] nertzy: has joined #ruby
[21:57:32] ur5us: has joined #ruby
[21:59:00] TomyLobo: http://rubyfiddle.com/riddles/7b6a2 can someone please smack them a round a bit? that's one of that page's example snippets
[21:59:29] TomyLobo: (or am i missing something?)
[21:59:57] lxsameer: has joined #ruby
[22:00:00] TomyLobo: my problem is with decrementing @count inside the downto block, btw
[22:02:08] mynameisdebian: has joined #ruby
[22:04:25] eregon: has left #ruby: ("Leaving")
[22:04:32] eregon: has joined #ruby
[22:10:10] lxsameer: has joined #ruby
[22:10:41] yokel: has joined #ruby
[22:12:32] Paraxial: has joined #ruby
[22:14:39] jrafanie: has joined #ruby
[22:19:10] tdy: has joined #ruby
[22:20:00] lxsameer: has joined #ruby
[22:21:51] GodFather: has joined #ruby
[22:25:24] cliq: has joined #ruby
[22:30:55] mynameisdebian: has joined #ruby
[22:35:13] apeiros_: TomyLobo: @count is not modified by downto. the counter is yielded to the block.
[22:36:09] apeiros_: so: 99.downto(1) do |count|; puts "#{bottles(count))} of beer" end
[22:45:02] Dbugger: has joined #ruby
[22:47:52] schneider: has joined #ruby
[22:53:53] Freshnuts: has joined #ruby
[22:59:23] TomyLobo: apeiros_, precisely
[22:59:45] TomyLobo: tell them, not me :)
[23:00:06] lxsameer: has joined #ruby
[23:04:22] Jushy: has left #ruby: ()
[23:04:22] Jushy: has joined #ruby
[23:05:13] Azure: has joined #ruby
[23:08:37] Freshnuts: has joined #ruby
[23:08:58] subr: has joined #ruby
[23:09:55] lxsameer: has joined #ruby
[23:10:01] byte512: has joined #ruby
[23:14:06] jottr: has joined #ruby
[23:19:06] bonhoeffer: has joined #ruby
[23:20:01] lxsameer: has joined #ruby
[23:20:25] jenrzzz: has joined #ruby
[23:20:26] jenrzzz: has joined #ruby
[23:24:08] dbugger_: has joined #ruby
[23:24:41] dbugger_: has joined #ruby
[23:29:56] lxsameer: has joined #ruby
[23:30:05] ellcs: has joined #ruby
[23:32:11] mozzarella: has joined #ruby
[23:34:54] lxsameer: has joined #ruby
[23:44:57] lxsameer: has joined #ruby
[23:58:33] ur5us: has joined #ruby