<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...
<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?
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
<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)
<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?