havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.0, 2.5.3, 2.4.5: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
garyserj has quit [Quit: garyserj]
donofrio has quit [Ping timeout: 246 seconds]
donofrio has joined #ruby
cschneid has joined #ruby
cschneid has quit [Ping timeout: 245 seconds]
armyriad has joined #ruby
patteh_ has quit [Ping timeout: 250 seconds]
fiveop has joined #ruby
donofrio has quit [Ping timeout: 268 seconds]
cschneid has joined #ruby
<fiveop> What reason could there be that Resolve::DNS::getaddresses returns nothing for a host, that I can host/dig/curl without problem (as the same linux user)?
orbyt_ has joined #ruby
<phaul> fiveop I would try running strace on it
cschneid has quit [Ping timeout: 245 seconds]
patteh has joined #ruby
rexmie has quit [Ping timeout: 256 seconds]
<phaul> just isolate a minimal example first otherwise strace is huge...
<fiveop> The problem occurs in mastodon, I never wrote a line of ruby before. I could just isolate it to this line https://github.com/tootsuite/mastodon/blob/v2.6.5/app/lib/request.rb#L164 returning no addresses (an empty array)
shellclear has joined #ruby
davidw_ has joined #ruby
<phaul> you should replace host with whatever host you have in your example. that should reproduce your issue if indeed that's the problem
rexmie has joined #ruby
<fiveop> yes I get no output
<phaul> what is the value of the host?
<fiveop> with a 'p addresses' added it outputs '[]'
<fiveop> mastodon.social
<phaul> ok I just tried that here with this script and worked.
<phaul> nah I bleive you just checking from this side
<phaul> ok now run strace on it
donofrio has joined #ruby
<fiveop> I have an idea
<fiveop> That might be relevant
<fiveop> export PATH="$HOME/.rbenv/bin:$PATH"
<fiveop> (from .bashrc)
<fiveop> is that relevant?
<fiveop> that my ruby is something installed via rbenv?
<fiveop> I see it
<fiveop> for some reason ruby uses localhost to as the dns
<fiveop> that's a problem
<fiveop> because on localhost I run the dns for my domains, and it is not recursive
<fiveop> sendto(7, "\312\30\1\0\0\1\0\0\0\0\0\0\10mastodon\6social\0\0\1\0"..., 33, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 33
<fiveop> well, resolv.conf tells it to
<phaul> yeah sendto(7, "f\345\1\0\0\1\0\0\0\0\0\0\10mastodon\6social\0\0\1\0"..., 33, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("195.184.180.4")}, 16) = 33
<phaul> so that looks fishy
<fiveop> I guess the problem is, that it only checks one of them
<fiveop> resolv.conf has three nameserver entries
<fiveop> and it only checks the first (localhost)
<fiveop> and not the other two (8.8.8.8 and 4.2.2.1)
<fiveop> I remove the localhost, now I get something
<fiveop> thanks
shellclear has left #ruby ["Good Bye"]
fiveop has quit []
patteh has quit [Ping timeout: 245 seconds]
patteh has joined #ruby
donofrio has quit [Ping timeout: 250 seconds]
laaron has joined #ruby
s2013 has joined #ruby
gix has quit [Ping timeout: 240 seconds]
houhoulis has quit [Remote host closed the connection]
cschneid has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
code_zombie has joined #ruby
s2013 has joined #ruby
patteh has quit [Ping timeout: 240 seconds]
cschneid has quit [Ping timeout: 250 seconds]
FastJack has quit [Ping timeout: 264 seconds]
hutch has joined #ruby
<rexmie> can someone help me understand the difference result of self in class definition and self in class method
<rexmie> I thought self would be set to the class inside class definition. so both puts result should be "Movie"?
patteh has joined #ruby
laaron- has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
laaron has quit [Remote host closed the connection]
hutch has quit [Ping timeout: 250 seconds]
<rexmie> nevermind, it's just different representation of self being displayed
dviola has quit [Quit: WeeChat 2.3]
ogres has quit [Quit: Connection closed for inactivity]
cschneid has joined #ruby
cschneid has quit [Remote host closed the connection]
nchambers is now known as uplime
code_zombie has quit [Quit: Leaving]
ellcs has joined #ruby
nanothief has quit [Remote host closed the connection]
patteh has quit [Ping timeout: 268 seconds]
patteh has joined #ruby
ellcs has quit [Ping timeout: 268 seconds]
rexmie has quit [Ping timeout: 256 seconds]
laaron- has quit [Remote host closed the connection]
laaron has joined #ruby
akosednar has quit [Ping timeout: 250 seconds]
akosednar has joined #ruby
masterasia has joined #ruby
cschneid has joined #ruby
Azure|dc is now known as Azure
nanothief has joined #ruby
tag has joined #ruby
AJA4350 has quit [Quit: AJA4350]
eindoofus has joined #ruby
<eindoofus> i recall attempting to learn ruby a few years back. now that i'm out of school i'd like to give it a second try. is "the well-grounded rubyist" still a good book to go with, or are there better books nowadays?
laaron- has joined #ruby
laaron has quit [Remote host closed the connection]
<Iambchop> eindoofus: the topic has a link to book recommendations
braincrash has quit [Quit: bye bye]
patteh has quit [Ping timeout: 246 seconds]
braincrash has joined #ruby
<eindoofus> Iambchop, which link would that be in?
<Iambchop> eindoofus: https://goo.gl/wpGhoQ
<eindoofus> thanks
eindoofus has quit [Quit: Leaving]
patteh has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
status402 has quit [Quit: status402]
za1b1tsu has quit [Ping timeout: 245 seconds]
laaron has joined #ruby
laaron- has quit [Remote host closed the connection]
nocoda has joined #ruby
kapil____ has joined #ruby
nocoda has quit [Client Quit]
tdy1 has quit [Ping timeout: 245 seconds]
hutch has joined #ruby
KeyJoo has joined #ruby
patteh has quit [Ping timeout: 246 seconds]
cschneid has quit [Remote host closed the connection]
cschneid has joined #ruby
patteh has joined #ruby
cschneid has quit [Remote host closed the connection]
hutch has quit [Ping timeout: 245 seconds]
davidw_ has quit [Ping timeout: 246 seconds]
masterasia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
laaron- has joined #ruby
laaron has quit [Remote host closed the connection]
RougeR has quit [Ping timeout: 246 seconds]
armyriad has quit [Ping timeout: 250 seconds]
dinfuehr has quit [Ping timeout: 268 seconds]
dinfuehr has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
multi_io has joined #ruby
dinfuehr has joined #ruby
<multi_io> is there a reason why rbenv install doesn't allow you to install a given ruby version in a custom directory under ~/.rbenv/versions/ ?
rippa has joined #ruby
<multi_io> e.g. if you want to have multiple independent sets of gems for a given ruby version
<multi_io> I guess you can just rbenv install all ruby versions you want and then always cp -a ~/.rbenv/versions/x.y.z ~/.rbenv/versions/my-project
laaron has joined #ruby
laaron- has quit [Remote host closed the connection]
uplime has quit [Ping timeout: 250 seconds]
moei has joined #ruby
za1b1tsu has joined #ruby
drbrain has quit [Quit: Goodbye]
drbrain has joined #ruby
drbrain has quit [Ping timeout: 272 seconds]
drbrain has joined #ruby
patteh has quit [Ping timeout: 250 seconds]
tag has quit [Quit: Connection closed for inactivity]
exchgr` has joined #ruby
exchgr has quit [Ping timeout: 250 seconds]
s2013 has joined #ruby
KeyJoo has quit [Ping timeout: 245 seconds]
dinfuehr has quit [Ping timeout: 268 seconds]
dinfuehr_ has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
laaron has quit [Remote host closed the connection]
reber has joined #ruby
FastJack has joined #ruby
_whitelogger has joined #ruby
jamesaxl has joined #ruby
jamesaxl is now known as Eiquoh
gix has joined #ruby
gix has quit [Client Quit]
patteh has joined #ruby
laaron has joined #ruby
patteh has quit [Ping timeout: 268 seconds]
patteh has joined #ruby
Milos has quit [Remote host closed the connection]
Milos has joined #ruby
patteh has quit [Ping timeout: 245 seconds]
roshanavand has quit [Ping timeout: 252 seconds]
kapil____ has quit [Quit: Connection closed for inactivity]
cschneid has joined #ruby
patteh has joined #ruby
reber has quit [Remote host closed the connection]
patteh has quit [Ping timeout: 250 seconds]
patteh has joined #ruby
cschneid has quit [Ping timeout: 246 seconds]
kapil____ has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
patteh has quit [Ping timeout: 250 seconds]
Madmanden has joined #ruby
masterasia has joined #ruby
Fernando-Basso has joined #ruby
masterasia has quit [Client Quit]
fountainpuppy is now known as Zarthus
DTZUZO has joined #ruby
masterasia has joined #ruby
laaron- has joined #ruby
laaron has quit [Remote host closed the connection]
KeyJoo has joined #ruby
AJA4350 has joined #ruby
m0w has joined #ruby
patteh has joined #ruby
patteh has quit [Ping timeout: 268 seconds]
dinfuehr_ has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
uplime has joined #ruby
laaron has joined #ruby
cschneid has joined #ruby
laaron- has quit [Remote host closed the connection]
uplime has quit [Ping timeout: 272 seconds]
uplime has joined #ruby
uplime has quit [Ping timeout: 245 seconds]
cschneid has quit [Ping timeout: 268 seconds]
ellcs has joined #ruby
GodFather has joined #ruby
ellcs has quit [Ping timeout: 250 seconds]
Fusl has quit [Quit: K-Lined]
Fusl has joined #ruby
uplime has joined #ruby
ellcs has joined #ruby
nanothief has quit [Ping timeout: 250 seconds]
Menteb has joined #ruby
n01 has joined #ruby
Madmanden has quit [Quit: Going offline, see ya! (www.adiirc.com)]
m0w has quit [Ping timeout: 246 seconds]
n01 has quit [Read error: Connection reset by peer]
uplime has quit [Quit: WeeChat 2.2]
sauvin has quit [Ping timeout: 250 seconds]
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
ellcs has quit [Ping timeout: 252 seconds]
laaron has quit [Remote host closed the connection]
laaron- has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
sauvin has joined #ruby
Aqo has joined #ruby
SpikeMaster has joined #ruby
<phaul> what does this ruby file do? :
<phaul> eval(File.read(__FILE__))
<phaul> :)
rawrg has joined #ruby
<Zarthus> phaul: It executes the ruby in said file
cschneid has joined #ruby
<leftylink> you might think it would loop infinitely, but during eval, __FILE__ is (eval)
<phaul> it was a random shower thought / joke after reading this on reddit https://www.reddit.com/r/ruby/comments/aak66z/how_to_run_a_ruby_script_without_having_ruby/
kapil____ has quit [Quit: Connection closed for inactivity]
* lupine calls the file on disk `(eval)`
TvL2386 has joined #ruby
ua has quit [Remote host closed the connection]
davidw_ has joined #ruby
SpikeMaster has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<phaul> lupine: that goes in infinite loop! cool :)
ua has joined #ruby
<lupine> prove it ;)
jinie has quit [Ping timeout: 246 seconds]
ua has quit [Remote host closed the connection]
ua has joined #ruby
sandelius has joined #ruby
<sandelius> Hello everyone
<phaul> hi sandelius
<sandelius> I haven't been in here for a long time. Are there any regular activity in this channel nowdays?
<havenwood> sandelius: Yeah, there is. usually when folk have questions.
laaron- has quit [Remote host closed the connection]
laaron has joined #ruby
<phaul> link to channel logs is in the topic. I would say we are averaging 5 questions per day, with about 5-10 active users
cschneid has quit [Ping timeout: 250 seconds]
<sandelius> Ahh ok, not that much then. I'm gonna stick around from now on and help people as much as I can. I LOVE Ruby and have for 10 years but I'm a bit worried about what the near future will be. So I'm gonna try and do my part in keeping it relevant.
<sandelius> Job openings for Ruby in Sweden is decreasing big time and Node.js is raising threw the roof. Any ideas what "we" can do to help push Ruby forward?
KeyJoo has quit [Quit: KeyJoo]
<phaul> I am afraid that these things are mainly driven by buzzwords and whats fashionable and hip. and you can't influence that, it's not rational at all.
<havenwood> sandelius: Node seemed to have a wave of hype in San Francisco too, but it's largely settled down. Ruby is still quite popular here.
<sandelius> I just wished more people would look at Ruby, beyond Rails, for web related stuff.
<havenwood> Yes, that.
<havenwood> I particularly like Roda.
<sandelius> I like the idea of the tree routing structure in Roda but I really like Hanami's container structure. Tho not a big fan of ROM. But for smaller services Roda works great.
laaron has quit [Remote host closed the connection]
m0w has joined #ruby
laaron has joined #ruby
GodFather has quit [Ping timeout: 250 seconds]
cschneid has joined #ruby
<havenwood> I like Roda for larger apps too. I've admired Hanami but I've not really made anything with it yet. The code looks quite nice.
jottr has joined #ruby
rubydoc has quit [Ping timeout: 250 seconds]
phaul has quit [Ping timeout: 250 seconds]
cschneid has quit [Ping timeout: 240 seconds]
rubydoc has joined #ruby
phaul has joined #ruby
<phaul> if someone can suggest me a free hosting environment where rubydoc could run I would move it.. apparently here the circuit breaker is sh*t, and sometimes things go down.
rubydoc has quit [Ping timeout: 250 seconds]
phaul has quit [Ping timeout: 268 seconds]
<sandelius> phaul why not try and get in touch with Heroku, they might be willing to sponsor it?
<havenwood> I guess the circuit breaker is acting up, since phaul went offline.
<havenwood> I like to idea to ask Heroku. It's not a far stretch from a free dyno.
* havenwood remembers when you just had to ping a free dyno to keep it up
exchgr has joined #ruby
agent_white has quit [Ping timeout: 250 seconds]
exchgr` has quit [Ping timeout: 250 seconds]
jottr has quit [Ping timeout: 246 seconds]
masterasia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nchambers has joined #ruby
patteh has joined #ruby
RougeR has joined #ruby
laaron- has joined #ruby
dinfuehr has quit [Ping timeout: 246 seconds]
RougeR has quit [Max SendQ exceeded]
laaron has quit [Remote host closed the connection]
dinfuehr has joined #ruby
rubydoc has joined #ruby
jottr has joined #ruby
catbusters has joined #ruby
phaul has joined #ruby
* phaul sigh. found 2 melted wires and an evapourated chock-block
jottr has quit [Ping timeout: 250 seconds]
<Iambchop> multi_io: I've never used it, but there is an rbenv gemset plugin https://github.com/jf/rbenv-gemset
Renich has quit [Ping timeout: 245 seconds]
tdy1 has joined #ruby
Menteb has quit [Quit: Menteb]
<sandelius> welcome back phaul I wrote earlier that "why not try and get in touch with Heroku, they might be willing to sponsor it?"
jottr has joined #ruby
armyriad has joined #ruby
Menteb has joined #ruby
jottr has quit [Ping timeout: 268 seconds]
cschneid has joined #ruby
<phaul> sandelius: thanks, tbh I was hoping for a sort of 0 human interaction solution, some web form registration or what not and a shell access to a VM instance. Writing an email to heroku is something I could do but if there was a way without doing that, that's what I would chose
<phaul> anyways, power is stable for now, I cut the melted stuff.
* havenwood solders coins together and insulates with nail polish
<phaul> :)
tdy1 has quit [Ping timeout: 268 seconds]
<sandelius> Anyone got a better name for a "Base" class other than Module::Module::Base? I Hate naming :)
comet23 has joined #ruby
<comet23> hello
<comet23> so i am righting rooby code and was wondering why my code dozen work (i all ready found the bug)
<comet23> bugs on lien 7
<comet23> why dat dozen work?
<baweaver> comet23: Purposely misspelling stuff today?
<baweaver> It helps if you describe what exactly you're trying to do.
<sandelius> yeah I wasn't sure this was a legit question :)
<comet23> spelling dozen matter as long as theirs the understanding of teh context
<havenwood> comet23: One issue you have is that you'll go out of bounds if the array is all negative.
<baweaver> They know how to type properly, they've been around before.
<baweaver> and they're about to get a timeout for being purposely dense.
<havenwood> comet23: NoMethodError: undefined method `<' for nil:NilClass
<comet23> but basically if theirs a pear of nums rite one has the opposite and the other one dozen like you have two pears of nums if theirs an opposite val you can count it
<comet23> havenwood: how did you figure that out before running the code?
<havenwood> comet23: Iterating by moving an index is prone to such issues. I saw you were incrementing while negative, and realized that you'd increment past the end of the list if there wasn't a 0 or higher
<havenwood> comet23: Consider selecting the negatives first.
<havenwood> comet23: nums.select(&:negative?)
jottr has joined #ruby
<havenwood> comet23: Do you want to count repeated pairs? What should the result be for?: [42, -42, 42, -42]
orbyt_ has joined #ruby
patteh has quit [Ping timeout: 246 seconds]
laaron has joined #ruby
patteh has joined #ruby
laaron- has quit [Remote host closed the connection]
rawrg has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 250 seconds]
reber has joined #ruby
MyMind has quit [Ping timeout: 250 seconds]
Pisuke has joined #ruby
blackmesa has joined #ruby
ogres has joined #ruby
<comet23> the repeated pairs should be 2
<comet23> havenwood: what do you think of this block of code?
<comet23> block on line 6
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has joined #ruby
cschneid has quit [Ping timeout: 272 seconds]
<havenwood> comet23: I was thinking more like partitioning into the negatives and positives, then using #count.
<havenwood> comet23: negatives, positives = nums.partition(&:negative?)
<havenwood> comet23: Do you want to count repeated pairs? What should the result be for?: [42, -42, 42, -42]
<comet23> 2
<havenwood> comet23: Be sure to take that into account for your solution!
<comet23> because it's a pair
<comet23> it does!
<comet23> what is the benefit of partitioning the negatives and the positives?
<havenwood> comet23: Based on my reading of your code, it'd only work for repeated negatives.
<comet23> i have a lot more to learn
<havenwood> comet23: With the code you showed: opposite_count [-1, -1, 1] #=> 2
<havenwood> comet23: Note, there's only one pair ^ above.
<comet23> yes, i just noticed that with a different input
<comet23> i used two positive 4s
<havenwood> comet23: For why you'd partition, here's an example of logic in parity with your latest: https://gist.github.com/havenwood/6411d7329af810c6b2f82a989591162f
nchambers has quit [Ping timeout: 246 seconds]
nowhere_man has quit [Ping timeout: 252 seconds]
<comet23> your code is beautiful
<havenwood> thanks!
hutch has joined #ruby
<havenwood> comet23: The Enumerable methods are well worth learning and using often.
<comet23> i have to run
<comet23> thank you so much for your help
<comet23> i will be back later :D
<havenwood> later, no prob
<havenwood> bye!
hutch has quit [Ping timeout: 246 seconds]
mostlybadfly has joined #ruby
Menteb has quit [Quit: Menteb]
<sandelius> havenwood that was a nice solution 👌
nchambers has joined #ruby
laaron- has joined #ruby
laaron has quit [Remote host closed the connection]
Menteb has joined #ruby
hutch has joined #ruby
Swyper has joined #ruby
<Swyper> hi
<Swyper> any idea why the test is failing ? o-o
<Swyper> 1...10 includes 1 and 10 in the range and 1..10 excludes 1 and 10 correct?
ellcs has joined #ruby
Menteb has quit [Quit: Menteb]
nowhere_man has joined #ruby
<havenwood> Swyper: Nope - they both include 1 and 1..10 does include 10.
<havenwood> &>> (1..10).include? 10
<rubydoc> # => true (https://carc.in/#/r/5vq7)
<havenwood> &>> (1...10).include? 10
<rubydoc> # => false (https://carc.in/#/r/5vq8)
<havenwood> Swyper: Avoid headlessCamelCase in Ruby, since it's never used.
<Swyper> sorry
<Swyper> bad habits from Java xD
<Swyper> out of curiosity what do you call the naming convention for Ruby? havenwood
sauvin has quit [Ping timeout: 246 seconds]
hutch has quit [Ping timeout: 250 seconds]
<havenwood> Swyper: I don't know a formal name, but lots of Ruby conventions are widely followed.
sauvin has joined #ruby
<havenwood> Swyper: For example, every one of the top Ruby repos is 2-space soft tabs: https://ukupat.github.io/tabs-or-spaces/#rChart
<havenwood> Swyper: None of the other langs actually have 100% agreement.
<sandelius> Swyper it's usually called snake_case
<Swyper> oh neat
<Swyper> thank you
<havenwood> oh, I misunderstood the question
<havenwood> snake_case, SCREAMING_SNAKE_CASE
<Swyper> its all good I learnt something from both of you xD
<havenwood> CamelCase, headlessCamelCase
<Swyper> so Ruby does not have a developed IDE like how Java and C# do ?
<Swyper> cause right now I'm just writing my code in Atom >_>
nowhere_man has quit [Ping timeout: 252 seconds]
<havenwood> Swyper: Most of us just use a plain old text editor, like Atom.
<Swyper> ah
<havenwood> Swyper: There's RubyMine if you like an IDE, but functionality is somewhat limited with dynamic languages.
<sandelius> <- vim and sublime over here
ellcs has quit [Ping timeout: 272 seconds]
<havenwood> Swyper: Ruby 3 has tentative plans for gradual typing that will allow IDEs to treat Ruby more like a static lang.
<havenwood> Swyper: You can setup an IDE to support something like the Steep gem's types: https://github.com/soutaro/steep#readme
cschneid has joined #ruby
<sandelius> When I left Java for Ruby many, many, years ago I had an Eureka moment :)
Menteb has joined #ruby
jottr has joined #ruby
Swyper has quit [Ping timeout: 256 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has joined #ruby
ellcs has joined #ruby
clemens3 has joined #ruby
nowhere_man has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 250 seconds]
nchambers is now known as uplime
nowhere_man has joined #ruby
nowhere_man has quit [Ping timeout: 252 seconds]
GodFather has joined #ruby
cschneid has quit [Remote host closed the connection]
cschneid has joined #ruby
m0w has quit [Ping timeout: 240 seconds]
n01 has joined #ruby
discopatrick has joined #ruby
lytol has joined #ruby
pwnd_nsfw has quit [Ping timeout: 250 seconds]
ellcs has quit [Ping timeout: 268 seconds]
patteh has quit [Ping timeout: 272 seconds]
n01 has quit [Ping timeout: 246 seconds]
laaron has joined #ruby
patteh has joined #ruby
laaron- has quit [Remote host closed the connection]
jottr has joined #ruby
nowhere_man has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
Fernando-Basso has quit [Remote host closed the connection]
nowhere_man has quit [Ping timeout: 252 seconds]
sanscoeur has joined #ruby
orbyt_ has joined #ruby
uplime has quit [Quit: WeeChat 2.2]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
lytol has quit [Quit: lytol]
Swyper has joined #ruby
<Swyper> Failure/Error: return vowel_list == word.select {|word| vowel_list.include?(word)} NoMethodError: private method `select' called for "word":String
<Swyper> why is select a private method in this case o-o
jottr has joined #ruby
nchambers has joined #ruby
<wnd> What do you mean why? Perhaps you meant wor
<wnd> word.chars .
ogres has quit [Quit: Connection closed for inactivity]
m0w has joined #ruby
ur5us has joined #ruby
nowhere_man has joined #ruby
<wnd> still the method would return false for words such as "cake" and "lie"
tag has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
sanscoeur has quit [Remote host closed the connection]
nowhere_man has quit [Ping timeout: 252 seconds]
patteh has quit [Ping timeout: 272 seconds]
patteh has joined #ruby
laaron- has joined #ruby
tiff has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
clemens3 has quit [Remote host closed the connection]
laaron has quit [Remote host closed the connection]
spacesuitdiver has joined #ruby
RougeR has joined #ruby
Menteb has quit [Quit: Menteb]
jottr has joined #ruby
Menteb has joined #ruby
nowhere_man has joined #ruby
reber has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
cuppajoeman has joined #ruby
<phaul> Swyper: string is not Enumerable. it has a bunch of methods returning Enumerators.
<phaul> &>> String.instance_methods.grep /each_/
<rubydoc> # => [:each_line, :each_byte, :each_codepoint, :each_grapheme_cluster, :each_char] (https://carc.in/#/r/5vqh)
cuppajoeman has quit [Quit: WeeChat 2.3]
cschneid has quit [Remote host closed the connection]
cschneid has joined #ruby
lucasb has joined #ruby
cschneid has quit [Ping timeout: 250 seconds]
nchambers has quit [Quit: WeeChat 2.2]
tdy1 has joined #ruby
patteh has quit [Ping timeout: 246 seconds]
patteh has joined #ruby
hahuang65 has joined #ruby
tdy1 has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
discopatrick has quit [Quit: Connection closed for inactivity]
bmurt has joined #ruby
clemens3 has joined #ruby
cschneid has joined #ruby
catbusters has quit [Quit: Connection closed for inactivity]
Aqo has quit [Quit: ChatZilla 0.9.92-rdmsoft [XULRunner 35.0.1/20150122214805]]
za1b1tsu has joined #ruby
Sembei has joined #ruby
Pisuke has quit [Ping timeout: 244 seconds]
catphish has joined #ruby
tiff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ellcs has joined #ruby
za1b1tsu has quit [Ping timeout: 252 seconds]
ellcs has quit [Ping timeout: 260 seconds]
masterasia has joined #ruby
cschneid has quit [Ping timeout: 246 seconds]
blackmesa1 has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
comet23 has quit [Quit: Connection closed for inactivity]
blackmesa1 has quit [Ping timeout: 250 seconds]
venmx has joined #ruby
masterasia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nchambers has joined #ruby
nowhere_man has quit [Ping timeout: 252 seconds]
dviola has joined #ruby
Menteb has quit [Quit: Menteb]
laaron has joined #ruby
laaron- has quit [Remote host closed the connection]
AndreYuhai has joined #ruby
tdy1 has joined #ruby
<AndreYuhai> Hello there anyone knows how I can solve these kind of captchas ? Containing only numbers. https://screenshots.firefox.com/EvV2UpRBTCgSEqjr/hacumre.diyanet.gov.tr
Swyper has quit [Ping timeout: 256 seconds]
<AndreYuhai> What libraries would help me?
tdy1 is now known as tdy
<Zarthus> AndreYuhai: they are designed not to be solved by bots
<Zarthus> AndreYuhai: kind of feels like you're doing something they don't want you to :)
<catphish> AndreYuhai: you want a human for that
<AndreYuhai> Zarthus: we can say so :) But since there are already bots solving these, I would like to figure that out. :D
<AndreYuhai> catphish: There is a bot doing that but I don't know how
<AndreYuhai> By the way it's just numbers.
RiPuk has quit [Quit: ZNC 1.7.1 - https://znc.in]
<Zarthus> not saying it's complex
<Zarthus> but the website author's intent is "prevent bots from coming in"
<Zarthus> and you're asking us "how do i make my bot go in"
<Zarthus> so i'm not really interested in solving your problem.,
nowhere_man has joined #ruby
<AndreYuhai> Yes that is right. Sorry for that and thank you anyway.
tdy has quit [Ping timeout: 245 seconds]
masterasia has joined #ruby
cschneid has joined #ruby
tdy has joined #ruby
GodFather has quit [Ping timeout: 244 seconds]
AndreYuhai has quit []
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has quit [Ping timeout: 252 seconds]
hutch has joined #ruby
cschneid has quit [Ping timeout: 244 seconds]
ellcs has joined #ruby
houhoulis has joined #ruby
GodFather has joined #ruby
connermcd has joined #ruby
hutch has quit [Ping timeout: 244 seconds]
lucasb has quit [Quit: Connection closed for inactivity]
s3nd1v0g1us has joined #ruby
tdy has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
nowhere_man has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.3]
tdy has joined #ruby