« Back to channel list

#ruby - 20 May 2017

« Back 1 day Forward 1 day »
[00:00:47] raspado: has joined #ruby
[00:01:59] bkxd: has joined #ruby
[00:02:53] ascarter: has joined #ruby
[00:04:38] minimalism: has joined #ruby
[00:05:29] bronson: has joined #ruby
[00:15:08] ecuanaso: has joined #ruby
[00:17:38] ResidentBiscuit: has joined #ruby
[00:18:32] michael_mbp: really odd Q - is there a destructor in Ruby objects, when being gc'd?
[00:19:24] oborot_: has joined #ruby
[00:24:33] michael_mbp: w00t ObjectSpace#define_finalizer
[00:27:43] vivekananda: has joined #ruby
[00:29:46] cyphase: has joined #ruby
[00:29:51] houhoulis: has joined #ruby
[00:30:15] Mission-Critical: has joined #ruby
[00:33:28] Cohedrin: has joined #ruby
[00:35:50] ecuanaso: has joined #ruby
[00:36:05] Cohedrin: has joined #ruby
[00:38:26] coderphive: has joined #ruby
[00:39:18] nobitanobi: has joined #ruby
[00:41:10] DeeJayh: has joined #ruby
[00:43:12] bkxd_: has joined #ruby
[00:46:07] charliesome: has joined #ruby
[00:47:06] ecuanaso: has joined #ruby
[00:55:40] BSaboia: has joined #ruby
[01:01:30] ski7777: has joined #ruby
[01:01:55] hays: has joined #ruby
[01:02:58] \tau: has joined #ruby
[01:03:31] knight33: has joined #ruby
[01:03:41] bmurt: has joined #ruby
[01:03:58] ski7777: has joined #ruby
[01:04:15] \tau: i'm trying to do require 'tkextlib/tkimg'
[01:04:17] \tau: but it fails.
[01:04:23] \tau: no idea what i need to install.
[01:04:36] \tau: i looked around google but i couldnt find anything useful, i'm on arch.
[01:07:30] BSAlb: has joined #ruby
[01:08:41] ResidentBiscuit: has joined #ruby
[01:10:16] gizmore|2: has joined #ruby
[01:11:27] mim1k: has joined #ruby
[01:14:35] BSaboia: has joined #ruby
[01:20:04] Xiti: has joined #ruby
[01:20:58] havenwood: tau: gem install tk
[01:21:02] havenwood: tau: https://github.com/ruby/tk
[01:22:14] pankaj: has joined #ruby
[01:23:03] Tau: havenwood i did.
[01:23:11] Tau: it seems it doesnt provide tkimg.
[01:23:16] Tau: just std widgets.
[01:23:22] Tau: i need extensions to support jpeg.
[01:23:31] havenwood: tau: https://github.com/ruby/tk/blob/master/lib/tkextlib/tkimg.rb
[01:23:33] Tau: i have found the package, it is on aur.
[01:23:39] Tau: https://aur.archlinux.org/packages/tkimg/
[01:23:42] Tau: i need that it seems.
[01:23:55] Tau: i'm installing so i'll test in some moments.
[01:23:59] Tau: hoping it to work.
[01:25:41] PorcoRex: has joined #ruby
[01:25:49] PorcoRex: Good evening Ruby.
[01:26:05] havenwood: PorcoRex: g'eve'
[01:26:22] havenwood: >> alias g p; g'eve'
[01:26:23] ruby[bot]: havenwood: # => "eve" ...check link for more (https://eval.in/801850)
[01:30:03] Silthias1: has joined #ruby
[01:50:21] duderonomy: has joined #ruby
[01:51:55] d^sh: has joined #ruby
[01:52:10] charliesome: has joined #ruby
[01:53:42] comet23: >> puts("Hello")
[01:53:43] ruby[bot]: comet23: # => Hello ...check link for more (https://eval.in/801851)
[02:00:16] _whitelogger: has joined #ruby
[02:03:12] HoierM: has joined #ruby
[02:03:57] HoierM: has joined #ruby
[02:04:41] HoierM: has joined #ruby
[02:06:06] bronson: has joined #ruby
[02:07:00] FuccTrump: has joined #ruby
[02:07:11] FuccTrump: >> string = "I hate";string2 = "gingers!!!"; string3 = string2[0..2].reverse;string4 = string2[3...10];string5 = string3 + string4;puts string.upcase + " " + string5.upcase;
[02:07:37] hndk: has joined #ruby
[02:07:43] FuccTrump: >> eval string = "I hate";string2 = "gingers!!!"; string3 = string2[0..2].reverse;string4 = string2[3...10];string5 = string3 + string4;puts string.upcase + " " + string5.upcase;
[02:08:10] FuccTrump: >> puts "69"
[02:10:16] FuccTrump: How can I improve my code?
[02:10:22] FuccTrump: https://repl.it/IITI
[02:20:25] genpaku: has joined #ruby
[02:20:55] baweaver: !troll FuccTrump
[02:20:55] ruby[bot]: +bb FuccTrump!*@*$#ruby-banned *!*@gateway/web/freenode/ip.172.58.11.157$#ruby-banned
[02:21:10] ruby[bot]: ruby[bot] kicked FuccTrump: is a bannable offense, see http://ruby-community.com/pages/user_rules
[02:22:26] joelwallis: has joined #ruby
[02:22:38] rdavila: has joined #ruby
[02:36:20] nofxxxx: has joined #ruby
[02:36:52] SpikeMaster: has joined #ruby
[02:38:06] SpikeMaster: has left #ruby: ("ERC (IRC client for Emacs 26.0.50)")
[02:39:13] patarr: has joined #ruby
[02:42:29] pankaj: has joined #ruby
[02:45:18] houhoulis: has joined #ruby
[02:47:03] hndk: has joined #ruby
[02:47:13] milardovich: has joined #ruby
[03:00:06] ResidentBiscuit: has joined #ruby
[03:02:37] vahe: has joined #ruby
[03:05:09] gothicsouth: has joined #ruby
[03:07:49] herbmillerjr: has joined #ruby
[03:10:41] ResidentBiscuit: has joined #ruby
[03:10:45] hobodave: has joined #ruby
[03:12:00] mim1k: has joined #ruby
[03:19:07] Puppet`: has joined #ruby
[03:20:26] nertzy: has joined #ruby
[03:21:16] jcao219: has joined #ruby
[03:24:06] Cohedrin: has joined #ruby
[03:25:37] pb122: has joined #ruby
[03:26:38] milardovich: has joined #ruby
[03:28:55] jenrzzz: has joined #ruby
[03:28:55] jenrzzz: has joined #ruby
[03:32:56] eputnam_: has joined #ruby
[03:33:41] nertzy: has joined #ruby
[03:35:04] bheesham: has joined #ruby
[03:35:41] joelwallis: has joined #ruby
[03:45:58] __Yiota: has joined #ruby
[03:46:08] nertzy: has joined #ruby
[03:47:58] gix: has joined #ruby
[03:56:13] jenrzzz: has joined #ruby
[03:56:13] jenrzzz: has joined #ruby
[04:06:51] SeepingN: has joined #ruby
[04:07:10] bronson: has joined #ruby
[04:08:54] uZiel: has joined #ruby
[04:10:46] mim1k: has joined #ruby
[04:15:19] pb122-two: has joined #ruby
[04:15:45] uZiel: has joined #ruby
[04:16:26] Cohedrin: has joined #ruby
[04:18:27] cfec0b8d: has joined #ruby
[04:19:31] charliesome: has joined #ruby
[04:24:35] b0mbnet: has joined #ruby
[04:24:48] rakm: has joined #ruby
[04:28:01] jgt3: has joined #ruby
[04:28:23] milardovich: has joined #ruby
[04:39:30] patarr: has joined #ruby
[04:40:58] nobitanobi: has joined #ruby
[04:44:01] patr0clus: has joined #ruby
[04:45:43] patr0clus: has joined #ruby
[04:49:52] b0mbnet: has joined #ruby
[04:49:54] hoocares: has joined #ruby
[05:00:19] eightlimbed: has joined #ruby
[05:01:00] zenspider: nice!: https://bugs.ruby-lang.org/issues/13578 and fixed with https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/58810/diff
[05:01:45] zenspider: that is some really bad ruby code for trolling
[05:01:53] zenspider: you can really improve it if you just try a bit
[05:09:38] milardovich: has joined #ruby
[05:17:26] eightlimbed: Hello, I'm new to Ruby (and programming in general) and was wondering if someone can look at this method I wrote that removes any duplicate words in a string, and suggest a more efficient way to write it. (Besides .uniq). I'm trying to get better at iterating with blocks instead of using while loops. Here is the gist: https://gist.github.com/eightlimbed/c37387d7dab92b45c7697f573e1d702b
[05:18:01] hardest: has joined #ruby
[05:19:44] bronson: has joined #ruby
[05:19:45] hardest: does any 1 know how to exactly parser this with nokogiri ? https://gist.github.com/anonymous/6abdbf7693515106850373abf8323952
[05:21:02] zenspider: eightlimbed: looking...
[05:21:27] zenspider: eightlimbed: is this an assignment?
[05:22:09] zenspider: your indentation is wrong, for starters... makes it harder to read and reason about
[05:22:25] zenspider: that and you can tell gist that it is a ruby file
[05:22:43] zenspider: lines 8-9 should be indented one more
[05:23:14] eightlimbed: @zenspider thanks. this is just a practice problem. i'm planning to apply to a bootcamp soon.
[05:23:21] zenspider: hardest: http://www.nokogiri.org
[05:23:43] hardest: zenspider: rly?
[05:23:46] zenspider: hardest: http://www.nokogiri.org/tutorials/parsing_an_html_xml_document.html specifically
[05:23:51] zenspider: yes, read the doco. really.
[05:23:51] ayonkhan: has joined #ruby
[05:24:02] zenspider: strike 2...
[05:24:08] hardest: isn't there any example such mine
[05:24:39] zenspider: eightlimbed: and do you want to stick with the datatypes and algorithm you're using?
[05:24:56] zenspider: hardest: it's xml. I find that hard to believe
[05:25:19] eputnam_: eightlimbed: you might also look into Array.each
[05:25:36] eightlimbed: zenspider: i'm open to suggestions
[05:25:44] eputnam_: which would change the algorithm
[05:26:23] zenspider: eightlimbed: I'd start with replacing your while loops. look up what a range is and then you can call #each on the range of indicies you want
[05:26:46] zenspider: eightlimbed: try `ri Range.each` in your terminal for starters
[05:27:06] zenspider: and the code samples there will get you on your way
[05:27:11] Silthias: has joined #ruby
[05:28:44] eightlimbed: eputname_: thanks for the response. something like.. arr.each {|word| #code that checks if |word| == next word, if so it removes it } ?
[05:29:42] zenspider: awww. hardest... I was just about to prove you wrong
[05:29:51] zenspider: I'm recompiling nokogiri right now
[05:30:14] eightlimbed: zenspider: "Nothing known about Range" is what was returned when I typed 'ri Range.each'
[05:30:27] eputnam_: eightlimbed: i’ll put a comment on the gist
[05:30:28] zenspider: eightlimbed: cool. that's the first thing to fix... how'd you get your ruby?
[05:31:03] zenspider: for the record, the data parses fine: ruby -rnokogiri -ropen-uri -e 'p Nokogiri::XML(open("https://gist.githubusercontent.com/anonymous/6abdbf7693515106850373abf8323952/raw/09a6824ccfdde7b2e5ed1d302adc16c2e5be95da/parser.rb"))'
[05:31:32] eightlimbed: zenspider: I downloaded the windows installer from ruby-lang.org
[05:31:48] eightlimbed: eputname_: thank you very much!
[05:31:50] zenspider: hrm... I might not be able to help you then... w/ the doco. for now, look it up on line
[05:32:19] zenspider: ruby-docs.org iirc
[05:32:24] ignarps: has joined #ruby
[05:32:26] zenspider: but getting ri working is well worth the effort
[05:32:55] eightlimbed: zenspider: what does ri do?
[05:33:17] zenspider: point being, you can quickly convert your code from: var = 0; while var < max; ... var += 1; end into (0...max).each do |var| ... end
[05:33:39] zenspider: then you can refine from there
[05:34:12] zenspider: doing eputnam_'s suggestion is a bit odder, since you're doing subsets of the same array, but it is doable
[05:35:06] xall: has joined #ruby
[05:35:09] eightlimbed: zenspider: I understand what you're suggesting about using RANGE.each... instead of a while loop and incrementing. thank you.
[05:35:12] eightlimbed: I will try that
[05:36:22] ayonkhan_: has joined #ruby
[05:36:29] eputnam_: eightlimbed: are you wanting to remove the strings in place? or just get an array of unique words?
[05:36:49] eputnam_: errr, a string of the unique words
[05:37:03] zenspider: baby steps eputnam_
[05:37:11] eightlimbed: eputname_: I'd like to keep the order.
[05:37:37] uZiel: can I process more than one element with Array.each?
[05:37:44] eputnam_: gotcha, pedagogy and all
[05:37:47] uZiel: I want to process every 3 elements together in one go
[05:38:17] zenspider: uZiel: look at the methods in Enumerable. they're gold
[05:38:25] zenspider: eputnam_: thank you
[05:39:00] zenspider: (look at ALL the methods in Enumerable... while also looking for the one you want for this task)
[05:39:21] uZiel: cool, checking it out
[05:39:25] uZiel: thanks zenspider
[05:40:03] eightlimbed: eputnam_: my battery is about to die
[05:40:13] eightlimbed: if I don't respond, that's why
[05:40:25] eightlimbed: But I will read your comment
[05:40:38] eputnam_: eightlimbed: oh noes! well i’ll see if i can put something useful together
[05:40:39] eightlimbed: and thank you for your help!
[05:41:08] eputnam_: eightlimbed: if i can’t think of anything, perhaps i can try to help again next time
[05:41:14] eightlimbed: I'll be back tomorrow
[05:41:30] eightlimbed: Yes, don't sweat it :)
[05:42:31] zenspider: eightlimbed: good. it's a looong journey but worth it
[05:45:43] enterprisey: has joined #ruby
[05:46:20] eputnam_: zenspider: thanks for the wisdom, i wouldn’t have even thought of ranges
[05:46:41] minimalism: has joined #ruby
[05:48:25] oborot_: has joined #ruby
[05:48:50] jenrzzz: has joined #ruby
[06:00:09] uZiel: has joined #ruby
[06:06:11] _whitelogger: has joined #ruby
[06:10:03] puppet645: has joined #ruby
[06:11:20] milardovich: has joined #ruby
[06:15:06] blur3d: has joined #ruby
[06:31:05] jcao219: has joined #ruby
[06:34:05] nertzy: has joined #ruby
[06:34:48] bambanx: has joined #ruby
[06:36:42] b0mbnet: has joined #ruby
[06:38:30] dn`_: has joined #ruby
[06:38:48] dn`_: has left #ruby: ()
[06:39:19] djbkd_: has joined #ruby
[06:40:19] nofxxx: has joined #ruby
[06:40:19] patarr: has joined #ruby
[06:41:02] FastJack: has joined #ruby
[06:42:50] Antiarc: has joined #ruby
[06:44:26] Puffball: has joined #ruby
[06:48:41] nhhc: has joined #ruby
[07:00:44] latemus: has joined #ruby
[07:05:43] bronson: has joined #ruby
[07:10:33] jgnagy: has joined #ruby
[07:17:39] jaruga: has joined #ruby
[07:17:54] djbkd_: has joined #ruby
[07:25:11] DrCode: has joined #ruby
[07:29:19] ResidentBiscuit: has joined #ruby
[07:30:44] latemus: has joined #ruby
[07:33:58] blackmesa: has joined #ruby
[07:34:26] DrCode: has joined #ruby
[07:36:02] bkxd: has joined #ruby
[07:36:29] bheesham: has joined #ruby
[07:38:03] nobitanobi: has joined #ruby
[07:41:26] bkxd: has joined #ruby
[07:46:28] Mia: has joined #ruby
[07:46:28] Mia: has joined #ruby
[07:48:38] oborot_: has joined #ruby
[07:49:35] ResidentBiscuit: has joined #ruby
[07:52:09] MichaelBurge: has joined #ruby
[07:55:08] Violentr: has joined #ruby
[07:56:03] tildes: has joined #ruby
[07:57:11] Violentr: ACTION Hello everyone
[07:58:27] Violentr: Can anyone help me ? i have an issue with gem Faraday trying to authenticate with user and password
[08:00:18] muelleme: has joined #ruby
[08:01:27] blur3d: has joined #ruby
[08:15:17] mikecmpbll: has joined #ruby
[08:16:16] Silthias1: has joined #ruby
[08:22:18] shinnya: has joined #ruby
[08:22:39] bkxd: has joined #ruby
[08:28:20] AlexRussia: has joined #ruby
[08:34:00] uZiel: has joined #ruby
[08:37:06] pandaant: has joined #ruby
[08:38:58] bheesham: has joined #ruby
[08:40:06] potati: has joined #ruby
[08:40:15] potati: Hello guys!
[08:41:18] patarr: has joined #ruby
[08:41:27] potati: How do you attain twitter/medium/instagram like username handles
[08:41:37] potati: @instagram
[08:41:55] dasher00: has joined #ruby
[08:44:20] jamesaxl: has joined #ruby
[08:44:59] marr: has joined #ruby
[08:45:32] nanoz: has joined #ruby
[08:48:38] romank: has joined #ruby
[08:49:04] rgr: has joined #ruby
[08:53:36] romank: has joined #ruby
[08:55:57] foul_owl: has joined #ruby
[08:56:36] foul_owl: I installed rbenv, ruby-build, and ruby 2.2.0 via rbenv. I then tried to set the ruby version via: rbenv global 2.2.0, but ruby --version still reports the system version
[08:58:01] DrCode: has joined #ruby
[08:59:05] foul_owl: Ah nevermind, rbenv wasn't getting init from my shell, sorry about that
[09:02:49] boringcp1: has joined #ruby
[09:06:28] bronson: has joined #ruby
[09:08:06] bkxd: has joined #ruby
[09:08:16] romank: has joined #ruby
[09:13:30] SaschaVoid: has joined #ruby
[09:16:58] romank: has joined #ruby
[09:17:24] blackmesa: has joined #ruby
[09:19:19] tildes: has joined #ruby
[09:24:00] romank: has joined #ruby
[09:25:25] SteenJobs: has joined #ruby
[09:27:23] muelleme: has joined #ruby
[09:28:04] mathys: has joined #ruby
[09:31:04] |RicharD|: has joined #ruby
[09:32:28] TomyLobo: has joined #ruby
[09:32:46] romank: has joined #ruby
[09:35:34] romank: has joined #ruby
[09:38:28] romank: has joined #ruby
[09:39:47] Violentr: Can anyone help me ? i have an issue with gem Faraday trying to authenticate with user and password
[09:39:56] nobitanobi: has joined #ruby
[09:39:57] patarr: has joined #ruby
[09:41:20] Violentr: like so conn.post('api/sessions', user_credentials)
[09:41:43] Violentr: i have Basic Authentication is done fore that
[09:42:56] Violentr: before that
[09:46:06] arquebus: has joined #ruby
[09:46:56] arquebus: has joined #ruby
[09:47:35] Mon_Ouie: has joined #ruby
[09:47:56] arquebus: has joined #ruby
[09:48:49] romank: has joined #ruby
[09:48:51] oborot_: has joined #ruby
[09:51:26] Puffball: has joined #ruby
[09:51:44] romank: has joined #ruby
[09:54:02] jgt3: has joined #ruby
[09:55:54] aupadhye: has joined #ruby
[09:56:26] zenspider: ViolentR: you probably want the rails channel
[09:56:34] romank: has joined #ruby
[09:56:37] Bilge: has joined #ruby
[10:01:19] romank: has joined #ruby
[10:04:11] romank: has joined #ruby
[10:07:01] romank: has joined #ruby
[10:07:28] esObe: hi guys, I'm doing ruby koans and I have a problem with one method
[10:07:38] esObe: my gist - https://gist.github.com/anonymous/e3c0eb24e4b7bf6d600435ebc618d741
[10:07:54] sloggerkhan: has joined #ruby
[10:08:14] esObe: Can anyone explain me why the result should be equal to [1, 3, 5, 7, 9] ?
[10:09:24] ledestin: esObe try debugging it
[10:09:51] ledestin: in this particular case using a debugger would be appropriate
[10:12:22] Bilge: has joined #ruby
[10:16:33] Ropeney_: has joined #ruby
[10:16:46] bkxd_: has joined #ruby
[10:17:15] ResidentBiscuit: has joined #ruby
[10:20:09] ecuanaso: has joined #ruby
[10:23:43] cschneid_: has joined #ruby
[10:24:08] esObe: I skipped 'next' meaning in that loop which is 'abort that particular loop repetition at this point which is odd so it prints odd numbers
[10:30:02] Violentr: zenspider ;-) thanks any help will do
[10:33:07] nobitanobi: has joined #ruby
[10:34:28] muelleme: has joined #ruby
[10:41:22] charliesome: has joined #ruby
[10:41:31] User458764: has joined #ruby
[10:42:32] kitikonti: has joined #ruby
[10:48:23] belmoussaoui: has joined #ruby
[10:48:32] cschneid_: has joined #ruby
[10:50:20] Bilge: has joined #ruby
[10:51:35] romank: has joined #ruby
[10:51:44] kitikonti: has joined #ruby
[10:53:21] Bilge: has joined #ruby
[10:53:31] belmoussaoui: has joined #ruby
[10:56:30] romank: has joined #ruby
[10:59:25] romank: has joined #ruby
[11:00:25] DeeJayh-L: has joined #ruby
[11:06:18] belmoussaoui_: has joined #ruby
[11:07:27] joelwallis: has joined #ruby
[11:07:43] bronson: has joined #ruby
[11:08:49] mdw: has joined #ruby
[11:11:05] jackrandom: has joined #ruby
[11:13:03] belmoussaoui: has joined #ruby
[11:15:58] gil_: has joined #ruby
[11:15:58] gil_: has joined #ruby
[11:16:00] Fernando-Basso: has joined #ruby
[11:24:39] romank: has joined #ruby
[11:26:04] DeeJayh: has joined #ruby
[11:29:43] romank: has joined #ruby
[11:30:00] Jameser: has joined #ruby
[11:30:56] muelleme: has joined #ruby
[11:32:35] Bilge: has joined #ruby
[11:34:30] sonOfRa: has joined #ruby
[11:35:49] xall: has joined #ruby
[11:35:49] arixey: has joined #ruby
[11:44:55] romank: has joined #ruby
[11:47:20] xall_: has joined #ruby
[11:49:05] oborot: has joined #ruby
[11:49:10] dstrunk: has joined #ruby
[11:51:04] belmoussaoui: has joined #ruby
[11:54:52] lxsameer: has joined #ruby
[11:59:31] DoubleMalt: has joined #ruby
[12:00:16] Violentr: has joined #ruby
[12:01:22] jgt3: has joined #ruby
[12:03:34] belmoussaoui: has joined #ruby
[12:04:11] romank: has joined #ruby
[12:10:20] belmoussaoui: has joined #ruby
[12:15:13] romank: has joined #ruby
[12:31:31] jrafanie: has joined #ruby
[12:32:48] romank: has joined #ruby
[12:34:50] nobitanobi: has joined #ruby
[12:37:43] Bilge: has joined #ruby
[12:44:13] Qchmqs__: has joined #ruby
[12:45:04] jgt3: has joined #ruby
[12:45:11] quobo: has joined #ruby
[12:51:43] KnownSyntax: has joined #ruby
[12:55:27] blackmesa: has joined #ruby
[12:55:50] Guest47514: has joined #ruby
[12:57:00] DeeJayh: has joined #ruby
[12:57:42] leah2: has joined #ruby
[12:59:50] ResidentBiscuit: has joined #ruby
[13:03:37] sonOfRa: has joined #ruby
[13:03:37] muelleme: has joined #ruby
[13:06:01] Qchmqs__: has joined #ruby
[13:06:47] bkxd: has joined #ruby
[13:07:50] ceglarek: has left #ruby: ("ERC (IRC client for Emacs 25.1.1)")
[13:08:47] bronson: has joined #ruby
[13:09:07] SaschaVoid: has joined #ruby
[13:14:04] milardovich: has joined #ruby
[13:15:44] romank: has joined #ruby
[13:16:45] bmurt: has joined #ruby
[13:18:16] milardovich: has joined #ruby
[13:22:33] belmoussaoui: has joined #ruby
[13:25:59] romank: has joined #ruby
[13:29:18] sepp2k: has joined #ruby
[13:29:21] volty: has joined #ruby
[13:29:49] aswen: has joined #ruby
[13:41:34] houhoulis: has joined #ruby
[13:43:37] bpmedley: has joined #ruby
[13:43:38] b0mbnet: has joined #ruby
[13:44:36] nowhere_man: has joined #ruby
[13:45:40] belmoussaoui: has joined #ruby
[13:45:49] romank: has joined #ruby
[13:49:48] bmurt: has joined #ruby
[13:50:34] romank: has joined #ruby
[13:53:36] romank: has joined #ruby
[13:57:36] eightlimbed: has joined #ruby
[14:00:29] vahe: has joined #ruby
[14:01:44] ovaltine: What would be the most idiomatic way to find, given a hash with symbol keys and array of string values, the key that points to an array containing a given string? just select?
[14:03:33] romank: has joined #ruby
[14:03:34] doublemalt_: has joined #ruby
[14:04:24] nobitanobi: has joined #ruby
[14:06:21] lordarkmemo: has joined #ruby
[14:09:54] morfin: has joined #ruby
[14:10:25] morfin: i found bunch of patches to compile 2.3.0 with OpenSSL 1.1 but not sure is that right thing to do?
[14:10:37] morfin: https://bugs.ruby-lang.org/issues/12324
[14:14:35] jrafanie: has joined #ruby
[14:15:10] newrubycoder: has joined #ruby
[14:19:57] unreal: has joined #ruby
[14:23:32] Fernando-Basso: has joined #ruby
[14:23:47] yqt: has joined #ruby
[14:26:49] romank: has joined #ruby
[14:27:37] ResidentBiscuit: has joined #ruby
[14:29:24] BSAlb: has joined #ruby
[14:30:08] juancpgo: has joined #ruby
[14:30:22] BSAlb: has joined #ruby
[14:30:45] Elitas: has joined #ruby
[14:30:52] Elitas: http://breachforums.com/
[14:31:25] juancpgo: Sorry for the stupidity, but is it fair to say that everything in any piece of Ruby code other than operators, string contents and comments is a Ruby identifier?
[14:31:36] Elitas: pretty much
[14:32:04] Fernando-Basso: has joined #ruby
[14:32:25] juancpgo: mm thanks for the quick reply Elitas
[14:36:18] t-recx: has joined #ruby
[14:38:55] eputnam_: has joined #ruby
[14:39:26] leah2: keywords?
[14:39:35] leah2: other literals
[14:39:51] leah2: stuff after __END__
[14:40:19] houhoulis: has joined #ruby
[14:43:22] juancpgo: I think keywords are identifiers, right? At least it says so in the book I'm reading
[14:44:34] lordarkmemo: has joined #ruby
[14:45:14] leah2: not sure that would make sense to say
[14:45:20] leah2: >> class = 6
[14:45:21] ruby[bot]: leah2: # => /tmp/execpad-21d07d17efc0/source-21d07d17efc0:2: syntax error, unexpected '=' ...check link for more (https://eval.in/802005)
[14:47:29] lupine: >> local_variable_set("class", 6)
[14:47:30] ruby[bot]: lupine: # => undefined method `local_variable_set' for main:Object ...check link for more (https://eval.in/802006)
[14:48:13] DeeJayh: has joined #ruby
[14:50:10] romank: has joined #ruby
[14:50:23] juancpgo: It says so in the book “The Well Grounded Rubyist", but I can't find another source to confirm that, maybe it's just in this book
[14:51:59] leah2: lupine: i guess that works...
[14:52:07] nadir: has joined #ruby
[14:53:08] User458764: has joined #ruby
[14:53:40] leah2: >> def class(); "perhaps dblack is right"; end; self.class()
[14:53:41] ruby[bot]: leah2: # => /tmp/execpad-471647fd25c7/source-471647fd25c7:4:in `rescue in <main>': private method `class' called ...check link for more (https://eval.in/802013)
[14:54:15] lupine: >> define_method("class") { "oh" } ; class
[14:54:16] ruby[bot]: lupine: # => /tmp/execpad-96ed57275906/source-96ed57275906:3: syntax error, unexpected modifier_rescue ...check link for more (https://eval.in/802014)
[14:54:32] lupine: >> define_method("class") { "oh" } ; self.class
[14:54:33] ruby[bot]: lupine: # => "oh" (https://eval.in/802015)
[14:54:42] lupine: badum tish, etc
[14:54:49] AdaelRuiz: has joined #ruby
[14:55:17] romank: has joined #ruby
[14:57:30] kappa: has joined #ruby
[14:59:02] Ropeney_: has joined #ruby
[15:00:06] jgnagy: has joined #ruby
[15:01:14] resaldis01: has joined #ruby
[15:01:36] resaldis01: has left #ruby: ()
[15:01:44] blackmesa: has joined #ruby
[15:07:31] patr0clus: has joined #ruby
[15:07:34] djuber: has joined #ruby
[15:07:53] patr0clus: has joined #ruby
[15:09:36] bronson: has joined #ruby
[15:10:30] djuber: has left #ruby: ()
[15:11:21] DeeJayh: has joined #ruby
[15:14:48] jamesaxl: has joined #ruby
[15:15:31] bmurt: has joined #ruby
[15:19:38] DrCode: has joined #ruby
[15:21:03] Elitas: has left #ruby: ()
[15:22:23] Hanmac: has joined #ruby
[15:25:43] lordarkmemo: has joined #ruby
[15:26:16] bheesham: has joined #ruby
[15:31:05] romank: has joined #ruby
[15:33:25] juan222: has joined #ruby
[15:33:51] DrCode: has joined #ruby
[15:35:38] pb122: has joined #ruby
[15:41:16] muelleme: has joined #ruby
[15:41:47] erlend: has joined #ruby
[15:43:32] DrCode: has joined #ruby
[15:43:49] swills: has joined #ruby
[15:44:28] jcao219: has joined #ruby
[15:50:57] DeeJayh: has joined #ruby
[15:51:12] HoierM: has joined #ruby
[15:51:21] romank: has joined #ruby
[15:51:24] Ishido: has joined #ruby
[15:54:11] DrCode: has joined #ruby
[15:56:01] DLSteve: has joined #ruby
[15:59:36] SteenJobs: has joined #ruby
[16:06:19] ResidentBiscuit: has joined #ruby
[16:12:56] Bilge: has joined #ruby
[16:13:34] A124: has joined #ruby
[16:16:13] al2o3-cr: has joined #ruby
[16:18:12] DeeJayh: has joined #ruby
[16:19:39] rippa: has joined #ruby
[16:26:19] jrafanie: has joined #ruby
[16:30:29] quiller: has joined #ruby
[16:32:28] Cohedrin: has joined #ruby
[16:34:12] PatrikasZvaigzde: has joined #ruby
[16:40:09] Bilge: has joined #ruby
[16:44:07] rgr_: has joined #ruby
[16:47:43] Bilge: has joined #ruby
[16:49:45] majuk: has joined #ruby
[16:49:47] danguita: has joined #ruby
[16:51:34] DrCode: has joined #ruby
[16:52:06] justinweiss: has joined #ruby
[16:56:05] patr0clus: has joined #ruby
[16:56:27] ResidentBiscuit: has joined #ruby
[16:56:44] enterprisey: has joined #ruby
[16:59:24] DrCode: has joined #ruby
[16:59:37] ecuanaso: has joined #ruby
[17:01:30] xall: has joined #ruby
[17:01:40] DrCode: has joined #ruby
[17:03:18] User458764: has joined #ruby
[17:08:29] mg: has joined #ruby
[17:08:58] quiller: has joined #ruby
[17:11:04] bronson: has joined #ruby
[17:14:44] SteenJobs: has joined #ruby
[17:18:19] jrafanie: has joined #ruby
[17:20:24] dionysus69: has joined #ruby
[17:23:52] SteenJobs: has joined #ruby
[17:26:33] bheesham: has joined #ruby
[17:28:20] weathermaker: has joined #ruby
[17:28:35] Mon_Ouie: has joined #ruby
[17:30:15] leah2_: has joined #ruby
[17:32:29] Bilge: has joined #ruby
[17:33:31] Jerdent: has joined #ruby
[17:35:35] morfin: has joined #ruby
[17:36:38] morfin: what can i do about OpenSSL 1.1 and Ruby?
[17:37:43] morfin: something has changed in OpenSSL 1.1
[17:38:20] jackrandom: has joined #ruby
[17:40:30] patr0clus: has joined #ruby
[17:41:04] armyriad: has joined #ruby
[17:44:25] blackmesa: has joined #ruby
[17:50:47] lxsameer: has joined #ruby
[17:52:52] tildes: has joined #ruby
[17:55:01] MrSparkle: has joined #ruby
[18:08:07] KeyJoo: has joined #ruby
[18:08:44] Jerdent: has joined #ruby
[18:09:59] Cohedrin: has joined #ruby
[18:10:05] Guest11574: has joined #ruby
[18:10:07] Guest11574: http://breachforums.com/ - Anyone wanna trade databases?
[18:10:19] Guest11574: has left #ruby: ()
[18:12:26] zachk: has joined #ruby
[18:15:10] nullFxn: has joined #ruby
[18:15:29] Papierkorb: Mh I don't know which channel to relay abuse/spam to on Freenode
[18:15:40] morfin: #freenode
[18:15:59] leah2: #devnull has more helpful ops :P
[18:16:39] DLSteve: has joined #ruby
[18:18:12] al2o3-cr: has joined #ruby
[18:21:28] morfin: has joined #ruby
[18:21:47] bmurt: has joined #ruby
[18:24:36] muelleme: has joined #ruby
[18:24:44] dn`: has joined #ruby
[18:31:14] jamesaxl: has joined #ruby
[18:34:51] belmoussaoui: has joined #ruby
[18:35:16] rkazak: has joined #ruby
[18:41:52] milardovich: has joined #ruby
[18:43:11] MarkBilk: has joined #ruby
[18:51:25] aljmo: has joined #ruby
[18:51:40] moei: has joined #ruby
[18:52:45] yogg-saron: has joined #ruby
[18:54:31] DeeJayh: has joined #ruby
[18:55:21] MarkBilk: Hi! I'm trying to use the gem hpricot. I haven't programmed in Ruby for years and that was in Linux. Now I'm stuck in Windows 8.1. My Ruby directory is called Ruby23. irb works. The instructions for hpricot say to install it by: gem install hpricot
[18:55:21] MarkBilk: I do this in irb and get an error message: NameError: undefined local variable or method `hpricot' for main:Object Help, please.
[18:56:39] zachk: gem install thegemyouwant from the command prompt
[18:56:58] kitikonti: has joined #ruby
[18:58:32] zachk: you are welcome :D
[19:01:05] MarkBilk: ERROR: Could not find a valid gem 'hpricot' (>= 0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)
[19:01:48] kappa: hi. i have some question, it seems canvas.bind('Button', proc{|event| puts 'hi'}, "+") isnt working as expected, i have other callback mapped to Button event but it gets removed when i add this other one despite of using "+"
[19:01:50] kappa: some idea?
[19:03:36] Jerdent: has joined #ruby
[19:06:40] User458764: has joined #ruby
[19:09:03] sepp2k: has joined #ruby
[19:09:03] minimalism: has joined #ruby
[19:09:16] newrubycoder: anyone here knows a thing or 2 about the .net framework and how to use it with ruby?
[19:11:46] bronson: has joined #ruby
[19:11:56] eputnam_: MarkBilk: i’ve heard of that before, windows specific
[19:12:15] aljmo: has joined #ruby
[19:12:15] eputnam_: have you tried installing hpricot from a local gem?
[19:12:35] eputnam_: https://rubygems.org/gems/hpricot/versions/0.8.6
[19:13:04] morfin: damn i was so close to build Ruby on Windows
[19:13:21] eputnam_: gem install —local <gem_name>
[19:14:19] nofxxx: has joined #ruby
[19:14:31] eputnam_: MarkBilk: but there should also be a fix for that problem somewhere. google is your friend.
[19:14:58] kappa: oh, nvm. i figured it.
[19:19:25] belmoussaoui: has joined #ruby
[19:19:50] ResidentBiscuit: has joined #ruby
[19:19:53] cfec0b8d: has joined #ruby
[19:25:06] danguita: has joined #ruby
[19:25:30] MarkBilk: eputnam_: I'm on the hpricot 0.8.6-i386-mswin32 page, but can't find the link to download from.
[19:26:49] bheesham: has joined #ruby
[19:27:03] eputnam_: MarkBilk: it’s on the right side under “Links”
[19:27:04] eputnam_: https://rubygems.org/downloads/hpricot-0.8.6-i386-mswin32.gem
[19:30:03] milardovich: has joined #ruby
[19:30:35] MarkBilk: eputnam_: got it!
[19:30:44] eputnam_: MarkBilk: dope!
[19:31:32] aljmo_: has joined #ruby
[19:35:43] Ove_: has left #ruby: ()
[19:39:00] MarkBilk: eputnam_: When I used the -local or /local option I got the same SSL error. Without the option I got: ERROR: While executing gem ... (Gem::Exception) Unable to find spec for #<Gem::NameTuple hpricot, 0.8.6, x86-mswin32>
[19:39:13] aljmo__: has joined #ruby
[19:40:30] eputnam_: MarkBilk: the argument needs to actually be the path to the downloaded gem
[19:40:43] eputnam_: in case you’re just putting the gem name
[19:43:18] ecuanaso: has joined #ruby
[19:45:05] eightlimbed: has joined #ruby
[19:46:21] nofxxxx: has joined #ruby
[19:48:30] MarkBilk: eputnam_: Giving complete path. With -local it says: invalid option: -ocal With /local it looks for a gem "/local" and gives the SSL error. With no option it gives: ERROR: While executing gem ... (Gem::Exception)
[19:48:30] MarkBilk: Unable to find spec for #<Gem::NameTuple hpricot, 0.8.6, x86-mswin32>
[19:49:02] eputnam_: it’s two hyphens in front of “—local”, sorry my client keeps merging htem
[19:49:52] bheesham: has joined #ruby
[19:50:10] MarkBilk: ERROR: While executing gem ... (Gem::Exception)
[19:50:10] MarkBilk: Unable to find spec for #<Gem::NameTuple hpricot, 0.8.6, x86-mswin32>
[19:53:03] MarkBilk: The gem file is 379KB, just like the web page says, so it's the right file. But the installer doesn't like it.
[19:53:58] eputnam_: MarkBilk: what version of ruby are you using?
[19:54:33] MarkBilk: The directory is called Ruby23.
[19:54:41] eputnam_: and rubygems?
[19:55:56] MarkBilk: gem --version 2.51
[19:56:14] MarkBilk: sorry 2.5.1
[19:56:50] jenrzzz: has joined #ruby
[19:58:01] eputnam_: MarkBilk: try going here and installing the latest version of rubygems
[19:58:03] eputnam_: https://rubygems.org/pages/download
[20:00:38] Silthias: has joined #ruby
[20:00:43] dviola: has joined #ruby
[20:03:43] laphoriag75: has joined #ruby
[20:05:17] eputnam_: MarkBilk: any luck?
[20:06:30] MarkBilk: Successfully installed rubygems-update-2.6.12
[20:06:31] MarkBilk: Parsing documentation for rubygems-update-2.6.12
[20:06:31] MarkBilk: Installing ri documentation for rubygems-update-2.6.12
[20:06:31] milardovich: has joined #ruby
[20:07:10] MarkBilk: Thought it was hung, but it completed!
[20:07:30] MarkBilk: Now for the tricky bit...
[20:08:00] jgt: has joined #ruby
[20:09:36] MarkBilk: Unable to find spec for #<Gem::NameTuple hpricot, 0.8.6, x86-mswin32>. gem --version 2.5.1!!!
[20:10:46] MarkBilk: Don't tell me I have to reboot the computer!
[20:13:00] MarkBilk: I downloaded and used the update gem because I wouldn't know where to put whatever is in the zipfile.
[20:15:32] MarkBilk: I wouldn't mind tossing the Ruby 2.3 and getting a better one if that would help.
[20:16:04] DeeJayh: has joined #ruby
[20:16:26] eputnam_: no, i do think that rubygems might be the issue
[20:17:00] bernd27: has joined #ruby
[20:17:50] MarkBilk: But hpricot is 5 or 6 years old and I thought that an older version of rubygems might be better suited to it. But this one can't update itself.
[20:18:44] MarkBilk: Hey maybe cmd.com has the old version in cache.
[20:19:28] MarkBilk: how do you do rehash in Windows?
[20:20:07] milardovich: has joined #ruby
[20:20:13] eputnam_: MarkBilk: i’m not sure actually, i haven’t run windows in years
[20:20:27] eputnam_: this is getting out of my wheelhouse
[20:22:05] MarkBilk: Seems unlikely that gem would say it successfully updated and then not do it.
[20:25:44] jaegerca: has joined #ruby
[20:26:12] eputnam_: that is odd
[20:28:11] jaegerca: So lets say I have a model called Community::House, and I have CRUD setup for it in the admin, the path for a new Community::House is new_admin_community_house_path, but when I try to use it in a form like this [:admin, @house] it tries to create a new_admin_community_house which means I can't use this [:admin, @house] convention for both a new and edit form, anyone have any tricks to deal with this?
[20:29:22] jaegerca: Oops, the actual path is new_admin_house_path
[20:29:44] jaegerca: The one it's creating is new_admin_community_house
[20:31:37] tristanp: has joined #ruby
[20:32:00] MarkBilk: eputnam_: gem and gem.cmd were read-only and had same old dates as other files. Trying update again.
[20:39:00] MarkBilk: eputnam_: I can't change the permissions. How do you become superuser in Windows?
[20:39:38] eputnam_: you can right-click command prompt or powershell and “run as administrator” i think
[20:42:06] MarkBilk: right-click just gives me a menu for copy, paste etc
[20:43:23] eputnam_: MarkBilk: i wish i could help more but i’m not sure
[20:44:07] SteenJobs: has joined #ruby
[20:44:17] MarkBilk: got an answer from google
[20:48:16] eputnam_: MarkBilk what was it?
[20:48:58] MarkBilk: hold on, didn't make sense, trying another
[20:49:29] bernd9000: has joined #ruby
[20:51:19] blackmesa: has joined #ruby
[20:51:50] bmurt: has joined #ruby
[20:53:48] bheesham: has joined #ruby
[20:54:34] milardovich: has joined #ruby
[20:54:47] minimalism: has joined #ruby
[20:56:31] MarkBilk: The control panel says I aleady AM admin.
[21:00:16] MarkBilk: The Ruby23 directory says read-only -- applies only to files within the directory. I unset read-only, but it comes back.
[21:01:03] belmoussaoui: has joined #ruby
[21:05:37] swills: has joined #ruby
[21:06:11] MarkBilk: Here's a favorite picture: http://www.cosmicpenguin.com/images/kmfms-final.jpg
[21:06:28] galtzo: has joined #ruby
[21:07:03] milardovich: has joined #ruby
[21:08:53] thisguy1_: has joined #ruby
[21:11:35] thisguy1_: Anyone have a sec to help me with an inheritance question?
[21:11:51] thisguy1_: Getting an argument error but I'm not sure why. Code is here -> https://pastebin.com/1Yb1zH6S
[21:11:54] ruby[bot]: thisguy1_: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/227bd15ae70c30586b5e8f09e7800188
[21:11:55] ruby[bot]: thisguy1_: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[21:12:34] bronson: has joined #ruby
[21:14:56] tristanp: has joined #ruby
[21:15:38] TreyG: has joined #ruby
[21:24:59] jud: has joined #ruby
[21:25:35] volty: has joined #ruby
[21:27:06] blackmesa: has joined #ruby
[21:30:44] quobo: has joined #ruby
[21:31:42] tristanp: has joined #ruby
[21:33:51] d^sh: has joined #ruby
[21:35:51] djbkd: has joined #ruby
[21:38:50] DeeJayh: has joined #ruby
[21:39:47] tristanp: has joined #ruby
[21:41:34] belmoussaoui_: has joined #ruby
[21:44:07] Fysicus: has joined #ruby
[21:45:26] belmoussaoui_: has joined #ruby
[21:49:04] milardovich: has joined #ruby
[21:50:02] belmoussaoui: has joined #ruby
[21:57:03] bheesham: has joined #ruby
[22:01:19] swills: has joined #ruby
[22:04:35] bheesham: has joined #ruby
[22:05:09] belmoussaoui__: has joined #ruby
[22:06:12] __Yiota: has joined #ruby
[22:09:54] milardovich: has joined #ruby
[22:11:38] BSaboia: has joined #ruby
[22:12:23] MrSparkle: has joined #ruby
[22:13:14] enterprisey: has joined #ruby
[22:16:47] thisguy1_: has joined #ruby
[22:16:49] thisguy1_: Anyone around?
[22:17:50] thisguy1_: Need help with class inheritance
[22:17:50] thisguy1_: http://stackoverflow.com/questions/44090891/argument-error-with-inherited-class
[22:24:29] SteenJobs: has joined #ruby
[22:25:11] dcluna: getting "NoMethodError: undefined method `example_group_instance' for #<Proc:0x00000003dae208>" in an innocent-looking spec. Pry-rescue shows a weird stack trice. Can someone help?
[22:25:26] aerth: has joined #ruby
[22:26:15] aerth: has left #ruby: ()
[22:30:48] milardovich: has joined #ruby
[22:33:54] MrSparkle: has joined #ruby
[22:37:26] canton7: thisguy1_, it's something weird to do with Nokogiri::XML::Element. It's as if Element's initialize method isn't virtual, and isn't getting overridden by CraigslistPost's initialize method - the two exist side by side in some weird way, and the runtime gets confused about which to dispatch to. Maybe due to the fact that Nokogiri has native bits to it? I can't find where Element is defined in their source
[22:37:59] canton7: thisguy1_, (btw, the idiomatic way to write that test would be `raise "Must ..." unless html.is_a?(Nokogiri::XML::Element)`
[22:40:34] thisguy1_: canton7: thanks for the info and tip
[22:44:44] KnownSyntax: has joined #ruby
[22:44:44] KnownSyntax: has joined #ruby
[22:51:38] milardovich: has joined #ruby
[22:51:58] enterprisey: has joined #ruby
[22:53:35] BSaboia: has joined #ruby
[22:58:14] belmoussaoui: has joined #ruby
[23:01:52] MrSparkle: has joined #ruby
[23:02:00] alveric4: has joined #ruby
[23:02:05] patr0clus: has joined #ruby
[23:08:43] bheesham: has joined #ruby
[23:12:31] milardovich: has joined #ruby
[23:12:39] BSAlb: has joined #ruby
[23:13:49] bronson: has joined #ruby
[23:21:02] etenref: has joined #ruby
[23:24:29] MarkBilk: Is there a good tutorial for using nokogiri for HTML? They all seem to be for XML only. (I wanted to use hpricot but the gem won't load in Windows.)
[23:27:31] DeeJayh: has joined #ruby
[23:28:36] nowhere_man: has joined #ruby
[23:31:00] BSaboia: has joined #ruby
[23:33:08] eckhardt: has joined #ruby
[23:36:39] dlitvak: has joined #ruby
[23:37:27] stupidsenpai: has joined #ruby
[23:40:02] stupidsenpai: Does anyone have any experience with rets?
[23:42:54] MrSparkle: has joined #ruby
[23:45:15] bkxd: has joined #ruby
[23:45:16] skweek: has joined #ruby
[23:51:47] BSAlb: has joined #ruby
[23:55:21] Bhootrk_: has joined #ruby
[23:58:41] belmoussaoui: has joined #ruby