havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
ArtCorvelay has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
hutch34 has quit [Ping timeout: 255 seconds]
jenrzzz_ has quit [Ping timeout: 240 seconds]
grant has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
Ropeney has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
duderono_ has joined #ruby
duderonomy has quit [Ping timeout: 255 seconds]
xuanrui has joined #ruby
postmodern has quit [Quit: Leaving]
gusrub has joined #ruby
gusrub has quit [Remote host closed the connection]
brent__ has quit [Remote host closed the connection]
<nofxxx> Help converting this C++ 10 lines? https://gist.github.com/nofxx/8ae1afca35f09553e719ce03050a1651
brent__ has joined #ruby
johnzorn has joined #ruby
<nofxxx> ruby version not producing same result
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
MyMind has quit [Ping timeout: 276 seconds]
moei has joined #ruby
goyox86 has quit [Quit: goyox86]
brent__ has quit [Ping timeout: 260 seconds]
tacoboy has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 246 seconds]
<Radar> What would be that same result?
<Radar> nofxxx: expected input + output would be nice.
<Radar> I must go. My people need me. (this is my stop)
<arahael> Incidentially, in C++, that type is unsigned, whereas in Ruby, it's signed.
marr has quit [Ping timeout: 240 seconds]
https_GK1wmSU has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
tacoboy has joined #ruby
slackR has quit [Quit: Leaving]
https_GK1wmSU has left #ruby [#ruby]
chrisgop_ has quit [Remote host closed the connection]
TomyLobo3 has quit [Ping timeout: 240 seconds]
<nofxxx> arahael, that was it, negate it unsigned... working now, thank you
ar1a has joined #ruby
<ar1a> does ruby have unsigned types? lol
<Radar> LOL
<arahael> nofxxx: Btw, c++ has for loops.
<arahael> nofxxx: While loops are relatively unusual to see, but as you know, they do still work. Regarldes, I'd normally have done that usin ga for loop.
grant has joined #ruby
m27frogy has quit [Ping timeout: 260 seconds]
m27frogy has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
hutch34 has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ropeney has joined #ruby
ascarter has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
nOwz has quit [Quit: WeeChat 1.7]
hanmac has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Remote host closed the connection]
jameser has joined #ruby
bmurt has joined #ruby
https_GK1wmSU has joined #ruby
hanmac has joined #ruby
https_GK1wmSU has left #ruby [#ruby]
bmurt has quit [Client Quit]
_sfiguser has quit [Remote host closed the connection]
<arahael> ar1a: You were clearly joking, so I'll also respond in turn: "Lol".
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
hutch34 has quit [Ping timeout: 258 seconds]
Asher has quit [Quit: Leaving.]
__Yiota has joined #ruby
Asher has joined #ruby
gizmore|2 has joined #ruby
imperator has joined #ruby
bmurt has joined #ruby
PorcoRex has joined #ruby
<PorcoRex> Evening.
gizmore has quit [Ping timeout: 246 seconds]
marxarelli is now known as marxarelli|afk
Rodya_ has joined #ruby
jackjackdripper has joined #ruby
kies has quit [Ping timeout: 240 seconds]
jackjackdripper has quit [Client Quit]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rodya_ has quit [Remote host closed the connection]
bronson has joined #ruby
poloych has joined #ruby
__Yiota has joined #ruby
grant has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ecksit has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
bmurt has joined #ruby
runescape07rsps has quit [Quit: Leaving]
mtkd has quit [Ping timeout: 240 seconds]
lamduh has joined #ruby
gusrub has joined #ruby
<lamduh> dumb question, but is Ruby Koans a good first step into ruby? and where do you actually pull the repo? I dont see anywhere that says the clone command
bronson has quit [Remote host closed the connection]
mtkd has joined #ruby
<Nilium> I personally don't like them, but my learning method has always been beating my head against a wall. If you're not sure, give it a try, see if you feel like you actually understand anything in the process.
mach_kernel has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Remote host closed the connection]
PresidentBiscuit has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
<lamduh> So if I am already a programmer can I just jump into rails? ha
charliesome has joined #ruby
<PorcoRex> lamduh, what do you program in?
<lamduh> Uhh..primarily C#, C++, and python
kaizoku has left #ruby [#ruby]
cam27 has joined #ruby
<PorcoRex> lamduh, and how much experience would you say you have with the one you feel most confortable?
<lamduh> 5 years of 10+ hours a day
<lamduh> of C++
<PorcoRex> You can do Rails just fine then, but might miss on some of the subtelties of Ruby.
<lamduh> What would you recommend for quickly getting up to speed to rails idioms then?
<lamduh> *ruby
barx has joined #ruby
<Nilium> I've never used Rails, so I don't know / can't say anything there.
barx has left #ruby [#ruby]
<Nilium> I just don't use Ruby for web dev at all.
<PorcoRex> Well, how confortable are you with the following sentence: "Constants are not contant in Ruby." or "Classes are objects that have a class."?
<PorcoRex> sentences*
<lamduh> It doesn't sound like a constant and classes to me are patterns for objects. So I guess neither of them make sense.
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<PorcoRex> lamduh, right. So you probably want to start with something intermediate.
<PorcoRex> Just to get the "feel" for it.
<Nilium> And maybe shoot yourself in the foot a few times to get used to that happening
<PorcoRex> And then move to more advances stuff.
<Nilium> I mean metaphorically. Leave your real foot intact.
<PorcoRex> *advanced
ElFerna has joined #ruby
<sneep> Yeah, Ruby's flavor of OO takes some getting used to
<lamduh> yeah I thought ruby would be fun to learn because it seems pretty different
<lamduh> even though it doesnt seem to be all that popular nowadays
<lamduh> so what is a good intermediate resource then?
hutch34 has joined #ruby
bmurt has joined #ruby
<PorcoRex> lamduh, I would recommend the well grounded ruby book. I've read it a while back (meaning I'm not sure if there are newer versions) but it is a good one imho.
<PorcoRex> *The Well Grounded Rubyist
<lamduh> cool I will look through it an try to write some basics apps before trying rails
<lamduh> thanks
<PorcoRex> lamduh, good luck.
<sneep> I went straight into Rails BTW
<lamduh> lol...chiming in right at the end :D
<sneep> I inherited something at work
<sneep> Written by someone who didn't have much of an understanding of Ruby either
chouhoulis has joined #ruby
<PorcoRex> It's not necessarily bad to do Rails first and Ruby later, but I think as a seasoned programmer you'll gain more by feeling the language before the framework.
grant has joined #ruby
<lamduh> Doesnt sound very fun sneep...but I imagine that is similar to how many of the startups that ask me if I know ruby's codebases work
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has quit [Ping timeout: 258 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
mach_kernel has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
hutch34 has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
duderono_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub has quit []
charliesome has joined #ruby
jrafanie has joined #ruby
HoierM has quit [Ping timeout: 248 seconds]
phinxy has quit [Read error: Connection reset by peer]
chouhoulis has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
PresidentBiscuit has quit []
ElFerna has quit [Quit: WeeChat 1.9]
gix has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
gix has joined #ruby
hutch34 has quit [Ping timeout: 276 seconds]
duderonomy has joined #ruby
ElFerna has joined #ruby
tacoboy has quit [Remote host closed the connection]
drcode has quit [Quit: ZNC 1.6.5 - http://znc.in]
lamduh has quit [Quit: Leaving]
drcode has joined #ruby
drcode has quit [Remote host closed the connection]
drcode has joined #ruby
ElFerna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
grant has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drcode has quit [Client Quit]
drcode has joined #ruby
hutch34 has joined #ruby
drcode has quit [Remote host closed the connection]
drcode has joined #ruby
rahult has joined #ruby
ArtCorvelay has quit [Quit: WeeChat 1.9]
hutch34 has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ElFerna has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
milardovich has quit []
xuanrui has quit [Ping timeout: 260 seconds]
mustaffa has quit [Ping timeout: 240 seconds]
mustaffa has joined #ruby
hutch34 has joined #ruby
ar1a has quit [Quit: Idle timeout reached: 10800s]
hutch34 has quit [Ping timeout: 240 seconds]
ElFerna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ar1a has joined #ruby
<ar1a> hey, im sort of looking for something like js callbacks or whatever, maybe promises? i checked out concurrent-ruby promises but they were quite confusing, and i couldnt find many articles about them. I'm porting some js libraries over :)
<PorcoRex> ar1a, it seems like a heavy job. Could you splice it in smaller questions_
xuanrui has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest74148 has quit [Ping timeout: 240 seconds]
<PorcoRex> So this is a JavaScript source file. What would be the question in a Ruby context_
<PorcoRex> ?*
amclain has quit [Quit: Leaving]
<ar1a> I'm trying to port it over and looking for the equivelant of the js callback stuff
Koshian has quit [Quit: Tiarra 0.1: SIGTERM received; exit]
<ar1a> i really dont know how else to ask
ShekharReddy has joined #ruby
segy_ has joined #ruby
<arahael> The equivalent of a js callback is probably just a callable.
enterprisey has joined #ruby
<arahael> ar1a: Why do you want to rewrite it in ruby anyway?
segy has quit [Ping timeout: 240 seconds]
segy- has joined #ruby
bronson has joined #ruby
wilbert has joined #ruby
<PorcoRex> I'm sorry, but this is not a question. What you need is a JS to Ruby transpiler, but I,m not sure one exists.
poloych has quit [Remote host closed the connection]
segy- is now known as segy
<ar1a> arahael: yeah but with the error passing and whatnot
<arahael> ar1a: No reason you couldn't do the same in Ruby, but my question remains: Why rewrite it?
segy- has joined #ruby
<ar1a> because i hate writing node.js, and i want to write my bridges in ruby
segy_ has quit [Ping timeout: 258 seconds]
<arahael> ar1a: You could embed it, then?
<ar1a> ?
<arahael> ar1a: Embed node in ruby.
<ar1a> not sure whats wrong with rewriting it
<arahael> ar1a: rewriting is a lot of work, generally.
renchan has joined #ruby
segy_ has joined #ruby
wilbert has quit [Ping timeout: 258 seconds]
<arahael> ar1a: And you will have new bugs.
<ar1a> well are there any writeups or whatever on that?
<arahael> Probably.
<arahael> (I do'nt have any on hand)
bronson has quit [Ping timeout: 258 seconds]
segy has quit [Ping timeout: 260 seconds]
segy_ is now known as segy
statelesscode has quit [Ping timeout: 260 seconds]
hutch34 has joined #ruby
<ar1a> seems like a performance hit
<PorcoRex> ar1a, recapping, you have JS files you want to rewrite in Ruby?
segy- has quit [Ping timeout: 260 seconds]
<ar1a> yeah
<arahael> ar1a: On the other hand, your libraries are already running in the most absurdely optimised dyanmic runtime known to man.
<PorcoRex> How many lines of code, more or less, are we talking about.
<PorcoRex> ?*
<ar1a> only like 200
QualityAddict has quit [Quit: Leaving]
<ar1a> ive already implemented the other class
<PorcoRex> That's doable.
<PorcoRex> Ok, so what's the question about the conversion?
hutch34 has quit [Ping timeout: 255 seconds]
<ar1a> https://github.com/matrix-org/matrix-appservice-node/blob/master/lib/app-service.js#L58-L76 stuck on how i would implement this promise-type thing
<PorcoRex> This is indeed interesting. I'm not sure if there are JS promise-like structures in Ruby.
<PorcoRex> Dps
<PorcoRex> Dips?*
<ar1a> ?
<ar1a> Well, I could always do it another way
<ar1a> i just dont know what there is :p
<PorcoRex> ar1a no, why would you do it another way?
<ar1a> actually judging by https://github.com/matrix-org/matrix-appservice-node, i would have to
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ar1a> not sure i can set instance functions to other things
<PorcoRex> ar1a, so Promises in JS are not really concurrent. (or are they? IDK)
<ar1a> i think they are
sneakerhax has joined #ruby
<bougyman> there's not a full concurrency js implementation that I know of.
<bougyman> it's all an event loop, in node.
bruno- has joined #ruby
<ar1a> oh actually, https://github.com/matrix-org/matrix-js-sdk id have to write this out too
<ar1a> this is gonna be a big project :p
dviola has quit [Quit: WeeChat 1.9]
<PorcoRex> The main problem seems to be, how can we be concurrent in Ruby, and efficient, and not stepping on our toes?
<bougyman> use jruby or rubinius
<PorcoRex> And JS, God bless its heart.
<ar1a> ?
<PorcoRex> bougyman, we can use, but we must understand how it works.
<bougyman> certainly
mustaffa has quit [Ping timeout: 260 seconds]
mustaffa has joined #ruby
govg has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
rabajaj has joined #ruby
statelesscode has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
PorcoRex has quit [Remote host closed the connection]
patrontechnosoft has joined #ruby
patrontechnosoft has quit [Remote host closed the connection]
<arahael> bougyman: Concurrency doesn't mean multithreaded.
<arahael> bougyman: And indeed, node's concurrency is *not* multithreaded.
howdoi has quit [Quit: Connection closed for inactivity]
agrecascino has quit [Ping timeout: 268 seconds]
ascarter has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
NightMonkey has quit [Ping timeout: 260 seconds]
hutch34 has joined #ruby
ArtCorvelay has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
hndk has quit [Ping timeout: 260 seconds]
someone_ has joined #ruby
Xiti` has quit [Quit: Xiti`]
ineb1 has quit [Quit: WeeChat 1.8]
ascarter has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bronson has joined #ruby
rahult has joined #ruby
Immune has quit [Read error: Connection reset by peer]
Xiti has joined #ruby
NightMonkey has joined #ruby
nofxxxx has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
Bock has joined #ruby
nofxxx has quit [Ping timeout: 240 seconds]
kculpis has joined #ruby
enterprisey has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
ArtCorvelay has quit [Quit: WeeChat 1.9]
enterprisey has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
hutch34 has quit [Ping timeout: 276 seconds]
carnegie has joined #ruby
xuanrui has quit [Ping timeout: 276 seconds]
wilbert has joined #ruby
rahult has quit [Ping timeout: 260 seconds]
rahult has joined #ruby
hutch34 has joined #ruby
Bock has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 255 seconds]
Bock has joined #ruby
pabs has quit [Ping timeout: 260 seconds]
xuanrui has joined #ruby
anisha has joined #ruby
jameser has quit [Remote host closed the connection]
jameser has joined #ruby
wilbert has quit [Ping timeout: 240 seconds]
nickjj has quit [Ping timeout: 268 seconds]
alex`` has joined #ruby
enterprisey has quit [Ping timeout: 240 seconds]
someone_ has quit [Quit: Konversation terminated!]
hutch34 has joined #ruby
enterprisey has joined #ruby
nickjj has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
sleepee has quit [Ping timeout: 260 seconds]
b3ck has quit [Quit: WeeChat 1.4]
Rodya_ has quit [Quit: Leaving...]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ltem has joined #ruby
SeepingN has joined #ruby
imperator has quit [Ping timeout: 255 seconds]
imperator has joined #ruby
agrecascino has joined #ruby
ana_ has joined #ruby
TomyLobo3 has joined #ruby
oleo has quit [Quit: irc client terminated!]
ur5us has quit [Remote host closed the connection]
__Yiota has joined #ruby
pabs has joined #ruby
hutch34 has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
TomyLobo3 has quit [Ping timeout: 246 seconds]
govg has joined #ruby
ta_ has quit [Remote host closed the connection]
nahra has joined #ruby
hutch34 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase has quit [Ping timeout: 246 seconds]
DTZUZO has quit [Ping timeout: 246 seconds]
conta has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
minimalism has quit [Quit: minimalism]
quuxman has quit [Ping timeout: 255 seconds]
quuxman has joined #ruby
maxtweddell has joined #ruby
<maxtweddell> henlo
code_zombie has quit [Quit: Leaving]
hays_ has joined #ruby
hays_ has joined #ruby
hays_ has quit [Changing host]
KeyJoo has joined #ruby
dionysus69 has joined #ruby
andikr has joined #ruby
hays has quit [Ping timeout: 260 seconds]
maxtweddell has quit [Ping timeout: 240 seconds]
quix has joined #ruby
MyMind has joined #ruby
hutch34 has joined #ruby
hutch34 has quit [Ping timeout: 258 seconds]
swills has quit [Ping timeout: 260 seconds]
FiendKing04 has joined #ruby
bronson has joined #ruby
<AnoHito_> hey, so if you are calling a method, for example a.b(), and there is a possibility "a" could be nil, is there a fancy way to organize the statement so the whole thing will equate to nil when "a" is nil instead of raising an exception?
<Yxhuvud> a&.b
<AnoHito_> aha, cool, thanks! knew there had to be something like that
bronson has quit [Ping timeout: 255 seconds]
https_GK1wmSU has joined #ruby
swills has joined #ruby
https_GK1wmSU has left #ruby [#ruby]
Awsy has joined #ruby
hutch34 has joined #ruby
Silthias has joined #ruby
Silthias2 has joined #ruby
lxsameer has joined #ruby
Silthias1 has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 255 seconds]
howdoi has joined #ruby
enterprisey has quit [Remote host closed the connection]
Silthias has quit [Ping timeout: 240 seconds]
https_GK1wmSU has joined #ruby
https_GK1wmSU has quit [Excess Flood]
ta_ has joined #ruby
ar1a has quit [Quit: Idle timeout reached: 10800s]
tvl has joined #ruby
tvl is now known as tobiasvl
djbkd has quit []
mark_66 has joined #ruby
<dminuoso> AnoHito_: Maybe!
<dminuoso> AnoHito_: For compact statements you could also write a && a.b which I'm beginning to prefer since it's a little more expressive.
hutch34 has joined #ruby
<quix> you could do if a a.b
<quix> but don't
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has quit [Ping timeout: 248 seconds]
hutch34 has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moeabdol has joined #ruby
z3uS has quit [Ping timeout: 255 seconds]
MrBusiness has quit [Quit: https://www.youtube.com/watch?v=xIIqYqtR1lY -- Suicide is Painless - Johnny Mandel]
jenrzzz has quit [Ping timeout: 246 seconds]
hutch34 has joined #ruby
kies has joined #ruby
quix has quit [Ping timeout: 258 seconds]
MrBusiness has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
charliesome has joined #ruby
cam27 has quit [Quit: cam27]
hutch34 has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
mikecmpbll has joined #ruby
mim1k has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
z0mbee has joined #ruby
hutch34 has joined #ruby
z3uS has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
antgel has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
jameser has joined #ruby
dangerousdave has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
https_GK1wmSU has joined #ruby
mim1k has joined #ruby
https_GK1wmSU has left #ruby [#ruby]
Beams has joined #ruby
bane_ has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
hutch34 has joined #ruby
leandrobighetti has joined #ruby
romankapitonov has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
nahra has quit [Remote host closed the connection]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nahra has joined #ruby
aupadhye has joined #ruby
jameser has joined #ruby
hutch34 has joined #ruby
aupadhye has quit [Ping timeout: 255 seconds]
hutch34 has quit [Ping timeout: 255 seconds]
z3uS has quit [Quit: /dev/null]
jinie_ has quit [Ping timeout: 260 seconds]
MarkBilk_ has joined #ruby
jinie_ has joined #ruby
MarkBilk has quit [Ping timeout: 240 seconds]
z3uS has joined #ruby
hutch34 has joined #ruby
ur5us has joined #ruby
aupadhye has joined #ruby
carnegie has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 240 seconds]
mtkd has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
mtkd has joined #ruby
marr has joined #ruby
cabotto has joined #ruby
hutch34 has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
carnegie has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
ski7777 has quit [Read error: Connection reset by peer]
ski7777 has joined #ruby
domgetter has quit [Ping timeout: 260 seconds]
jameser has joined #ruby
carnegie has quit [Ping timeout: 240 seconds]
ams__ has joined #ruby
cabotto has quit [Remote host closed the connection]
bronson has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 258 seconds]
gloscombe has joined #ruby
hutch34 has joined #ruby
BSaboia has joined #ruby
hutch34 has quit [Ping timeout: 245 seconds]
anisha has quit [Ping timeout: 260 seconds]
anisha has joined #ruby
cabotto_ has joined #ruby
hutch34 has joined #ruby
jameser has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cabotto_ is now known as cabotto
fribmendes has quit [Quit: leaving]
hutch34 has quit [Ping timeout: 246 seconds]
frmendes has joined #ruby
frmendes is now known as fribmendes
TheHodge has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ineb has joined #ruby
mikecmpb_ has joined #ruby
hutch34 has joined #ruby
mikecmpbll has quit [Ping timeout: 248 seconds]
fribmendes has quit [Quit: leaving]
frmendes has joined #ruby
frmendes has quit [Client Quit]
hutch34 has quit [Ping timeout: 255 seconds]
frmendes has joined #ruby
conta has quit [Ping timeout: 260 seconds]
GodFather has joined #ruby
conta has joined #ruby
<dminuoso> >> first, *rest = [1,2,3]; p first # apeiros why did I never know about this?!
hutch34 has joined #ruby
<ruby[bot]> dminuoso: # => 1 ...check link for more (https://eval.in/840496)
<dminuoso> >> *rest, last = [1,2,3];
<ruby[bot]> dminuoso: # => [1, 2, 3] (https://eval.in/840497)
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
<dminuoso> >> head, *other, tail = [1,2,3,4]; puts other
<ruby[bot]> dminuoso: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<dminuoso> Yes we all know eval.in sucks.
hutch34 has quit [Ping timeout: 246 seconds]
<dminuoso> >> a = *1
<ruby[bot]> dminuoso: # => [1] (https://eval.in/840499)
ur5us has quit [Remote host closed the connection]
<dminuoso> asm>> a = *1
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/840500
<dminuoso> What does splatarray do to non-arrays?
carnegie has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
zacts has quit [Ping timeout: 276 seconds]
hutch34 has joined #ruby
yeticry_ has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
yeticry has quit [Read error: Connection reset by peer]
cabotto has quit []
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has joined #ruby
hutch34 has joined #ruby
zacts has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
high_fiver has joined #ruby
hutch34 has joined #ruby
jarkonik has joined #ruby
<jarkonik> is there a better dependency import system planned for ruby, than current 'require' which puts every imported constant in global scope?
carnegie has quit [Ping timeout: 260 seconds]
hutch34 has quit [Ping timeout: 276 seconds]
mach_kernel has quit [Ping timeout: 260 seconds]
kkiero has joined #ruby
kkiero has left #ruby [#ruby]
someuser has joined #ruby
DTZUZO has joined #ruby
alex`` has quit [Quit: WeeChat 1.9]
mach_kernel has joined #ruby
ktopolski has joined #ruby
stamina has joined #ruby
lel has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
lel has joined #ruby
charliesome has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
ski7777 has quit [Remote host closed the connection]
ski7777 has joined #ruby
ElFerna has joined #ruby
ElFerna has quit [Client Quit]
<ktopolski> hi guys
zacts has quit [Quit: WeeChat 1.9]
hutch34 has joined #ruby
SeepingN has quit [Read error: Connection reset by peer]
sleepee has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
SeepingN has joined #ruby
domgetter has joined #ruby
bronson has joined #ruby
chmurifree has quit [Ping timeout: 255 seconds]
bronson has quit [Ping timeout: 268 seconds]
hutch34 has joined #ruby
zacts has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
rgtk has joined #ruby
catphish_ has joined #ruby
rgtk has quit [Ping timeout: 255 seconds]
alex`` has joined #ruby
jameser has joined #ruby
hutch34 has joined #ruby
ktopolski has quit [Quit: leaving]
ldnunes has joined #ruby
tacoboy has joined #ruby
<dminuoso> jarkonik: There is no proper module system planned as far as I am aware.
<catphish_> good morning, i have a bug that's been causing me annoyance for a while and i can't seem to get to the bottom of it
<catphish_> in one of my applications, when a process exits, it often gets stuck in an infinite loop of sched_yield() calls
<dminuoso> jarkonik: Changes are planned to allow precompiled requires in Ruby 3x3 though
<catphish_> that's really all i know
hutch34 has quit [Ping timeout: 246 seconds]
<dminuoso> catphish_: Are you using threads explicitly?
<dminuoso> catphish_: It could be a ruby bug it appears. There is https://bugs.ruby-lang.org/issues/7720
MarkBilk__ has joined #ruby
MarkBilk_ has quit [Ping timeout: 258 seconds]
<catphish_> dminuoso: i am indeed using threads
<catphish_> dminuoso: do i need to log in to access that bug?
<catphish_> dminuoso: i get a 403 on that page :(
GodFather has joined #ruby
<dminuoso> catphish_: Are you using Process.daemon?
<dminuoso> Though that bug is old..
<dminuoso> catphish_: Anyway. Did you join or detach all threads you created?
<catphish_> dminuoso: i use both threads and forking
<catphish_> dminuoso: one possibility i read is that threads are not duplicated when forking and this can cause it when it tried to rejoin on exit
<dminuoso> catphish_: Also, can you share any useful debugging output/stacktraces and code?
<catphish_> dminuoso: unfortunately i have not been able to distil this to a test case, it occurs in a fairly complicated application with lots of libraries, and forking, and threading
<dminuoso> catphish_ | in one of my applications, when a process exits, it often gets stuck in an infinite loop of sched_yield() calls
<dminuoso> How did you make that determination?
<dminuoso> Did you strace the application?
carnegie has joined #ruby
<catphish_> dminuoso: yes, i have lots of ruby processes sitting on my server, all using 100% cpu, in every case, strace shows endless sched_yield() calls
hutch34 has joined #ruby
<dminuoso> catphish_: Where in the program flow does that happen?
thiru has joined #ruby
<dminuoso> catphish_: Actually attach gdb, break it and provide a clean C stack trace please.
<catphish_> dminuoso: i believe it only happens when the program exits naturally
<dminuoso> (Or if you dont want the hoops, just SIGBUS it)
<dminuoso> The segfault/sigbus handler will give you the C stacktrace too.
domgetter has quit [Ping timeout: 260 seconds]
<catphish_> dminuoso: i'm afraid i'm not very familiar with that level of debugging, any chance of a simple set of instructions?
<catphish_> i have a currently broken process
<dminuoso> catphish_: kill -BUS 12345
<catphish_> where will it put the output?
<dminuoso> or just gdb and attach to the pid
<dminuoso> and brea
<dminuoso> catphish_: stdout
<dminuoso> or stderr actually
<dminuoso> I think? one of them anyway
<catphish_> hmm, not sure where that'll end up
<dminuoso> gdb the.
<dminuoso> then.
<catphish_> will d that
hutch34 has quit [Ping timeout: 276 seconds]
chmurifree has joined #ruby
<catphish_> not much to see: https://paste.ubuntu.com/25226029/
<catphish_> is this due to my ruby build not having the debug info?
Guest14480 has quit [Ping timeout: 276 seconds]
kkiero has joined #ruby
alamar has joined #ruby
alamar is now known as Guest9443
hutch34 has joined #ruby
high_fiver has quit [Ping timeout: 258 seconds]
<dminuoso> catphish_: Is that the full backtrace the first?
<dminuoso> catphish_: Are you in the right thread?
<catphish_> gdb says "warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available."
hutch34 has quit [Ping timeout: 240 seconds]
<catphish_> i then just ran "backtrace"
<catphish_> so i don't know for sure
rabajaj has quit [Quit: Leaving]
kkiero has quit [Quit: leaving]
<dminuoso> catphish_: That sounds like a weird version mismatch between your libthread_db and your libpthread
hutch34 has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
synthroid has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
carnegie has quit [Ping timeout: 246 seconds]
rgtk has joined #ruby
yabbes has joined #ruby
hinbody has joined #ruby
hutch34 has joined #ruby
rgtk has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
yabbes has quit [Ping timeout: 255 seconds]
hutch34 has quit [Ping timeout: 246 seconds]
apparition47 has joined #ruby
Awsy has quit [Read error: Connection reset by peer]
stamina has quit [Quit: WeeChat 1.9]
hutch34 has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
milardovich has joined #ruby
eelster has joined #ruby
npgm has quit [Quit: Connection closed for inactivity]
hutch34 has quit [Ping timeout: 240 seconds]
Yxhuvud has quit [Remote host closed the connection]
Yxhuvud has joined #ruby
hutch34 has joined #ruby
workmad3 has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
cabotto has joined #ruby
mach_kernel has quit [Ping timeout: 255 seconds]
hutch34 has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
mach_kernel has joined #ruby
mach_kernel has joined #ruby
mach_kernel has quit [Changing host]
<catphish_> dminuoso: the step through i did at least shows where the loop occurs, though i guess not what caused it
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kkiero has joined #ruby
chouhoulis has joined #ruby
ArtCorvelay has joined #ruby
hutch34 has joined #ruby
ledestin has joined #ruby
cabotto has quit [Remote host closed the connection]
phinxy has joined #ruby
cabotto has joined #ruby
carnegie has joined #ruby
bronson has joined #ruby
ledestin has quit [Ping timeout: 246 seconds]
hutch34 has quit [Ping timeout: 276 seconds]
sleepee has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
carnegie has quit [Remote host closed the connection]
carnegie has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
__Yiota has quit [Client Quit]
sleepee has joined #ruby
rgtk has quit [Ping timeout: 255 seconds]
hutch34 has joined #ruby
mtkd has quit [Ping timeout: 248 seconds]
Robas has joined #ruby
rgtk has joined #ruby
mtkd has joined #ruby
segy has quit [Quit: ZNC - http://znc.in]
stoopidmunkey has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
segy has joined #ruby
DLSteve_ has joined #ruby
hutch34 has joined #ruby
mzelin has joined #ruby
joast has quit [Ping timeout: 246 seconds]
mzelin has quit [Client Quit]
alan_w has joined #ruby
stoopidmunkey has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 255 seconds]
__Yiota has joined #ruby
AgentVenom has joined #ruby
hutch34 has joined #ruby
jrafanie has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cabotto has quit [Remote host closed the connection]
noe_ has joined #ruby
noe_ has quit [Remote host closed the connection]
truenito has joined #ruby
hutch34 has joined #ruby
<Robas> Hi everyone, I'm a new programmer and need some help figuring out something in Ruby:
gizmore|2 is now known as gizmore
noe_ has joined #ruby
chouhoulis has quit [Remote host closed the connection]
<Robas> I want to create a method that create entity on remote REST server. I want that without any parameters, a remote entity will get created.
chouhoulis has joined #ruby
<Robas> But I also want the user to be able to supply JSON values if he wants to to modify the default creationg of the entity.
<Robas> I can provide a non mandatory variable to the method. So the user can pass hash if he want to delete the default values.
<Robas> def create_entity(hash = nil) do
ta_ has quit [Remote host closed the connection]
__Yiota has joined #ruby
<Robas> Actually, better to do it in a GIST.
Tempesta has quit [Quit: See ya!]
kkiero has quit [Quit: leaving]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has quit [Ping timeout: 258 seconds]
Robas has quit [Quit: Page closed]
Pisuke has joined #ruby
jrafanie has joined #ruby
GodFather has quit [Ping timeout: 246 seconds]
MyMind has quit [Ping timeout: 276 seconds]
hutch34 has joined #ruby
carnegie has quit [Quit: Leaving...]
oleo has joined #ruby
ryzokuken has joined #ruby
hutch34 has quit [Ping timeout: 276 seconds]
joast has joined #ruby
hutch34 has joined #ruby
sepp2k has joined #ruby
domgetter has joined #ruby
stoopidmunkey has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hutch34 has quit [Ping timeout: 246 seconds]
chouhoul_ has joined #ruby
oleo has quit [Ping timeout: 276 seconds]
oleo has joined #ruby
chouhoulis has quit [Ping timeout: 258 seconds]
noe_ has quit [Remote host closed the connection]
noe_ has joined #ruby
hutch34 has joined #ruby
Ropeney has joined #ruby
kobain has joined #ruby
rgtk has quit [Ping timeout: 268 seconds]
hutch34 has quit [Ping timeout: 255 seconds]
Ropeney has quit [Client Quit]
npgm has joined #ruby
hutch34 has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
algun has quit [Quit: algun]
omgface has joined #ruby
hutch34 has joined #ruby
johnny56 has quit [Remote host closed the connection]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ozcanesen has joined #ruby
johnny56 has joined #ruby
rgtk has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
apparition47 has quit [Quit: Bye]
wilbert has joined #ruby
antgel has quit [Ping timeout: 276 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
rgtk has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
flak has joined #ruby
GodFather_ has joined #ruby
jphase has joined #ruby
nunchuck has joined #ruby
wilbert has quit [Ping timeout: 255 seconds]
GodFather_ has quit [Client Quit]
rgtk has joined #ruby
hutch34 has quit [Ping timeout: 276 seconds]
polishdub has joined #ruby
hutch34 has joined #ruby
jordanm has quit [Remote host closed the connection]
ArtCorvelay has quit [Quit: WeeChat 1.9]
ArtCorvelay has joined #ruby
jordanm has joined #ruby
alex`` has quit [Ping timeout: 258 seconds]
MarkBilk__ is now known as CosmicPenguin2
roshanavand has quit [Quit: roshanavand]
ana_ has quit [Quit: Leaving]
ana_ has joined #ruby
ana__ has joined #ruby
ana__ has quit [Client Quit]
ana_ has quit [Client Quit]
carnegie has joined #ruby
t-recx has joined #ruby
stoopidmunkey has quit [Remote host closed the connection]
rgtk has quit [Ping timeout: 240 seconds]
stoopidmunkey has joined #ruby
andikr has quit [Remote host closed the connection]
AxelAlex has joined #ruby
yabbes_ has joined #ruby
bronson has joined #ruby
wald0 has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 248 seconds]
[Butch] has joined #ruby
conta has quit [Ping timeout: 260 seconds]
Ropeney has joined #ruby
jrafanie has joined #ruby
stoopidmunkey has quit [Quit: Leaving...]
Ropeney has quit [Client Quit]
omgface` has joined #ruby
leandrobighetti has quit []
omgface` has quit [Remote host closed the connection]
alex`` has joined #ruby
cbyrda has joined #ruby
keyjoo_ has joined #ruby
omgface has quit [Ping timeout: 260 seconds]
cbyrda has quit [Client Quit]
cbyrda has joined #ruby
cbyrda has quit [Client Quit]
KeyJoo has quit [Ping timeout: 260 seconds]
renchan has quit [Quit: Leaving...]
truenito has quit [Ping timeout: 258 seconds]
TomyLobo3 has joined #ruby
brent__ has joined #ruby
brent__ has quit [Remote host closed the connection]
synthroid has quit [Remote host closed the connection]
zacts has quit [Ping timeout: 246 seconds]
brent__ has joined #ruby
guardian has joined #ruby
<guardian> hello, what's idiomatic to write a string to a file in ruby? File.open with a block returning the string?
brent__ has quit [Remote host closed the connection]
kkiero has joined #ruby
brent__ has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
mark_66 has quit [Remote host closed the connection]
cbyrda has joined #ruby
<adam12> guardian: File.write accepts a filename and string.
<adam12> Which is likely just a wrapper around File.open(file, "w+) { |f| f.write(string) }
antgel has joined #ruby
AxelAlex has quit [Quit: AxelAlex]
brent__ has quit [Read error: Connection reset by peer]
brent___ has joined #ruby
gil_ has quit [Quit: ZNC 1.6.5 - http://znc.in]
yabbes_ has quit [Ping timeout: 246 seconds]
jarkonik has quit [Remote host closed the connection]
synthroid has joined #ruby
synthroi_ has joined #ruby
shoutsid has joined #ruby
<dminuoso> guardian: File.open with a block indeed, though it's a bit meh.
zacts has joined #ruby
ltem has quit [Quit: Leaving]
synthroid has quit [Ping timeout: 248 seconds]
ryzokuken has quit [Remote host closed the connection]
SuperLag has quit [Remote host closed the connection]
amclain has joined #ruby
ryzokuken has joined #ruby
jackjackdripper has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
statelesscode has quit [Ping timeout: 246 seconds]
bruno- has joined #ruby
ged has joined #ruby
conta has joined #ruby
carnegie has quit [Quit: Leaving...]
ryzokuken has quit [Ping timeout: 246 seconds]
statelesscode has joined #ruby
kkiero has left #ruby [#ruby]
bruno-_ has joined #ruby
ryzokuken has joined #ruby
bruno- has quit [Ping timeout: 248 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has quit [Ping timeout: 240 seconds]
yabbes_ has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
catphish_ has quit [Quit: Leaving]
eelster has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
airdisa has joined #ruby
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoul_ has quit [Remote host closed the connection]
<guardian> I tried to google File.write but I only found the instance method
<guardian> (noob here)
<apeiros> might be inherited from IO, i.e. IO::write
hutch34 has joined #ruby
<apeiros> and: don't google, use the docs. best the ones on your computer as they're for your version of ruby.
<apeiros> otherwise:
<apeiros> &ri File::write guardian
ryzokuken has quit [Remote host closed the connection]
milardovich has quit [Ping timeout: 260 seconds]
ryzokuken has joined #ruby
<guardian> thank you
vuoto has joined #ruby
ryzokuken has quit [Max SendQ exceeded]
ryzokuken has joined #ruby
conta has joined #ruby
gusrub has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub has quit [Client Quit]
sneakerhax has quit [Ping timeout: 240 seconds]
Beams has quit [Quit: .]
mikecmpb_ has quit [Quit: inabit. zz.]
gusrub has joined #ruby
hutch34 has joined #ruby
ryzokuken has quit [Quit: Leaving]
ShekharReddy has quit [Quit: Connection closed for inactivity]
CosmicPenguin2 has quit [Ping timeout: 258 seconds]
anisha has quit [Quit: This computer has gone to sleep]
hutch34 has quit [Ping timeout: 255 seconds]
mim1k has quit [Ping timeout: 276 seconds]
gnufied has joined #ruby
algun has joined #ruby
troys has joined #ruby
hutch34 has joined #ruby
milardovich has joined #ruby
dionysus69 has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
dviola has joined #ruby
Dimik has joined #ruby
dviola has quit [Changing host]
dviola has joined #ruby
ptx0 has quit [Ping timeout: 248 seconds]
cam27 has joined #ruby
MarkBilk has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
chouhoulis has joined #ruby
bruno-_ has quit [Ping timeout: 260 seconds]
milardovich has quit [Ping timeout: 240 seconds]
t-recx has quit [Quit: t-recx]
eckhardt has joined #ruby
bruno- has joined #ruby
A124 has quit [Quit: '']
bronson has joined #ruby
machinewar has joined #ruby
eelster has joined #ruby
A124 has joined #ruby
bronson has quit [Ping timeout: 258 seconds]
conta has quit [Ping timeout: 240 seconds]
xuanrui has quit [Ping timeout: 260 seconds]
synthroid has joined #ruby
chrisgopher has joined #ruby
wald0 has quit [Quit: Lost terminal]
synthroi_ has quit [Ping timeout: 240 seconds]
gloscombe has quit [Quit: WeeChat 1.9]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
romankapitonov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
antgel has quit [Ping timeout: 258 seconds]
milardovich has joined #ruby
yabbes_ has quit [Remote host closed the connection]
milardovich has quit [Remote host closed the connection]
ptx0 has joined #ruby
sgen has quit [Ping timeout: 246 seconds]
code_zombie has joined #ruby
aupadhye has quit [Ping timeout: 260 seconds]
sneakerhax has joined #ruby
gnufied has quit [Ping timeout: 276 seconds]
sgen has joined #ruby
yabbes_ has joined #ruby
jrafanie has joined #ruby
minimalism has joined #ruby
hutch34 has joined #ruby
troys is now known as troys_
ryzokuken has joined #ruby
postmodern has joined #ruby
tvw has quit []
tvw has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
leandrobighetti has joined #ruby
joenas[m] has joined #ruby
duderonomy has joined #ruby
<rapha> hi lovely rubyists
weaksauce has quit [Read error: Connection reset by peer]
rabajaj has joined #ruby
<rapha> i want to use dstat to record some stats on our network router and make nice little graphs out of that. dstat just runs as a process and keeps writing into a .csv file. my question is: would you start dstat through the ruby script or would you just assume that it'll be started some other way and keep polling the .csv file?
haylon has joined #ruby
<rapha> (regrettably it can't be made to output the csv data to "-")
<adam12> You probably would want it supervised somewhere else
<adam12> through runit or systemd.
<adam12> that way you can restart your ruby script as you please, with no loss of data.
<rapha> okay
<adam12> Tho if it's simpler and you dont' care about that, you could just start it in your ruby script.
<adam12> It really comes down to resiliency. Do you need it available to collect data if your ruby script should be offline for whatever reason (ie. during an update)
<rapha> well there's one consideration, either way: it just keeps writing and writing into that file, so i'd like to empty it out in regular intervals. but then how is my ruby script going to cope with that?
selim has quit [Ping timeout: 248 seconds]
marxarelli|afk is now known as marxarelli
<rapha> file update notification of any sort doesn't necessarily make sense because the intervals in which dstat writes to the file are fixed anyways
<Papierkorb> If there's a timestamp or sequential id in the data, you can sync to that
ur5us has joined #ruby
leandrobighetti has quit [Remote host closed the connection]
tvw has quit [Remote host closed the connection]
ta_ has joined #ruby
leandrobighetti has joined #ruby
<rapha> Papierkorb: 02-08 19:32:26,0.202,0.226,99.563,0.004,0.000,0.005,0.0,0.0,0.0,180334592.0,199540736.0,742088704.0,2949984256.0,0.0,0.0 ... i guess the timestamp could be used as an ID.
ozcanesen has joined #ruby
ResidentBiscuit has quit [Ping timeout: 240 seconds]
ur5us has quit [Ping timeout: 255 seconds]
leandrobighetti has quit [Ping timeout: 255 seconds]
gnufied has joined #ruby
leah2 has quit [Ping timeout: 246 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
t-recx has joined #ruby
jrafanie has joined #ruby
aredridel has quit [Ping timeout: 240 seconds]
ltem has joined #ruby
milardovich has joined #ruby
ResidentBiscuit has joined #ruby
mim1k has joined #ruby
romankapitonov has joined #ruby
milardovich has quit [Ping timeout: 276 seconds]
spheric has quit [Quit: Textual IRC Client: www.textualapp.com]
wilbert has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
mim1k has quit [Ping timeout: 246 seconds]
FrankD has joined #ruby
leah2 has joined #ruby
FrankD__ has quit [Ping timeout: 240 seconds]
brent___ has quit []
Bock has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
chouhoul_ has joined #ruby
msaw has joined #ruby
chouhou__ has joined #ruby
hutch34 has joined #ruby
chouhoulis has quit [Ping timeout: 248 seconds]
ta_ has quit [Ping timeout: 260 seconds]
jrafanie_ has joined #ruby
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoul_ has quit [Ping timeout: 240 seconds]
romankapitonov has quit [Read error: Connection reset by peer]
jrafanie has quit [Ping timeout: 260 seconds]
msaw has quit [Quit: Page closed]
FrankD__ has joined #ruby
FrankD has quit [Ping timeout: 255 seconds]
ozcanesen has joined #ruby
romankapitonov has joined #ruby
ozcanesen has quit [Client Quit]
<imperator> huh, ruby 2.4 introduces a "main_stack" environment variable into its own process now
selim has joined #ruby
keyjoo_ has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
ramfjord has joined #ruby
Moosashi has joined #ruby
romankapitonov has quit [Read error: Connection reset by peer]
t-recx has quit [Quit: t-recx]
milardovich has quit [Ping timeout: 240 seconds]
MrBismuth has joined #ruby
Moosashi has quit [Client Quit]
Moosashi has joined #ruby
haylon has quit [Remote host closed the connection]
MrBusiness has quit [Ping timeout: 255 seconds]
mim1k has joined #ruby
romankapitonov has joined #ruby
gnufied has quit [Ping timeout: 240 seconds]
romankapitonov has quit [Read error: Connection reset by peer]
imperator has quit [Quit: Leaving]
romankapitonov has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.9]
Moosashi has quit [Quit: Moosashi]
mim1k has quit [Ping timeout: 268 seconds]
ozcanesen has joined #ruby
ozcanesen has quit [Client Quit]
TomyLobo3 has quit [Ping timeout: 240 seconds]
gusrub_ has joined #ruby
gusrub has quit [Ping timeout: 240 seconds]
MrBismuth has quit [Ping timeout: 240 seconds]
ozcanesen has joined #ruby
SuperLag has joined #ruby
mtkd has quit [Ping timeout: 276 seconds]
mtkd has joined #ruby
chouhou__ has quit [Remote host closed the connection]
bronson has joined #ruby
chouhoulis has joined #ruby
profsimm has joined #ruby
<profsimm> I need a tactic for making a set of strategies (the pattern) discoverable when people call a given method that accepts a strategy of that type. Any tips?
Moosashi has joined #ruby
algun_ has joined #ruby
tvw has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
MrBusiness has joined #ruby
slackR has joined #ruby
algun has quit [Ping timeout: 255 seconds]
algun_ is now known as algun
ta_ has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
slackR has quit [Client Quit]
slackR has joined #ruby
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
_aeris_ has quit [Excess Flood]
_aeris_ has joined #ruby
phate408 has quit [Ping timeout: 246 seconds]
_aeris_ has quit [Excess Flood]
_aeris_ has joined #ruby
phate408 has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
keyjoo_ has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
__Yiota has joined #ruby
keyjoo_ has quit [Client Quit]
ArtCorvelay has quit [Quit: WeeChat 1.9]
nishiki has quit [Remote host closed the connection]
MrBusiness has quit [Ping timeout: 246 seconds]
astronavt has joined #ruby
astronavt has left #ruby [#ruby]
lxsameer has joined #ruby
flak has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ozcanesen has joined #ruby
MrBusiness has joined #ruby
Moosashi_ has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
guacamole has joined #ruby
Moosashi has quit [Ping timeout: 246 seconds]
Moosashi_ is now known as Moosashi
milardovich has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spheric has joined #ruby
agrecascino has quit [Ping timeout: 276 seconds]
sspreitz has quit [Ping timeout: 258 seconds]
chouhoulis has joined #ruby
opekktar has quit []
eelster has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
chrisgopher has quit [Remote host closed the connection]
agrecascino has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
slackR has quit [Ping timeout: 255 seconds]
kies has quit [Ping timeout: 240 seconds]
jackjackdripper has joined #ruby
mindcrimes has joined #ruby
FahmeF has joined #ruby
ryzokuken has quit [Quit: Leaving]
hinbody has quit [Quit: leaving]
__Yiota has joined #ruby
am55 has quit [Ping timeout: 240 seconds]
am55 has joined #ruby
am55 has joined #ruby
eelster has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
Moosashi has quit [Quit: Moosashi]
Moosashi has joined #ruby
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yabbes_ is now known as yabbes
jrafanie has joined #ruby
milardovich has joined #ruby
astronavt has joined #ruby
hutch34 has joined #ruby
chouhoulis has quit [Remote host closed the connection]
astronavt has left #ruby [#ruby]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alex`` has quit [Quit: WeeChat 1.9]
https_GK1wmSU has joined #ruby
alex`` has joined #ruby
vuoto has quit [Quit: Lost terminal]
https_GK1wmSU has left #ruby [#ruby]
t-recx has joined #ruby
Moosashi_ has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
jrafanie has quit [Client Quit]
Moosashi has quit [Ping timeout: 260 seconds]
Moosashi_ is now known as Moosashi
banisterfiend has quit [Remote host closed the connection]
FahmeF has quit [Remote host closed the connection]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
milardovich has quit [Read error: Connection reset by peer]
troys_ is now known as troys
milardovich has joined #ruby
shoutsid has quit [Quit: Ex-Chat]
ur5us has joined #ruby
romankapitonov has quit [Read error: Connection reset by peer]
synthroid has quit []
romankapitonov has joined #ruby
benlieb has joined #ruby
mikecmpbll has joined #ruby
<benlieb> is there a shorter way to write this: return @activation_based_info if @activation_based_info
<adaedra> besides renaming @activation_based_info, not really I think
<al2o3-cr> why would you want to
eelster has quit [Quit: Textual IRC Client: www.textualapp.com]
Moosashi has quit [Quit: Moosashi]
<benlieb> yeah, didn't think so. something about the ||= lead me to think maybe
cahoots_ has joined #ruby
eckhardt has joined #ruby
<cahoots_> hi, i want everyone who has a copy of our project to use the same version for each gem, so i've created a Gemfile. however, if they have another, newer version of a gem in the Gemfile, and in our project we just say require '<gem name>', then wouldn't it use a different version of the gem than the one inside the Gemfile
<cahoots_> ?
jenrzzz_ has joined #ruby
<adaedra> That's why you have the Gemfile.lock
<havenwood> cahoots_: When you prefix you command with `bundle exec` it uses the exact gems and versions from the Gemfile.lock, which you commit and share.
<havenwood> your command*
<cahoots_> havenwood, so instead of running "ruby ...", you'd run "bundle exec ruby ..."?
croberts has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<havenwood> cahoots_: yup
ozcanesen has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
Toledo has joined #ruby
<havenwood> or RVM detects a Gemfile in the path and auto-prefixes `bundle exec`
Moosashi has joined #ruby
Toledo is now known as croberts
<havenwood> the Bundler folk argue you should explicitly `bundle exec`
* havenwood RVM does it via the rubygems-bundler gem: https://rubygems.org/gems/rubygems-bundler
jenrzzz_ has quit [Ping timeout: 240 seconds]
mindcrimes has quit [Ping timeout: 255 seconds]
Moosashi has quit [Ping timeout: 260 seconds]
hutch34 has quit [Ping timeout: 246 seconds]
Moosashi has joined #ruby
bronson has joined #ruby
HoierM has joined #ruby
Moosashi has quit [Client Quit]
poloych has joined #ruby
ldnunes has quit [Quit: Leaving]
Neo__ has joined #ruby
chrisgop_ has joined #ruby
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 276 seconds]
cahoots_ has quit [Ping timeout: 260 seconds]
ltem has quit [Quit: Leaving]
konsolebox_ has joined #ruby
poloych has quit [Remote host closed the connection]
konsolebox has quit [Ping timeout: 255 seconds]
yeticry has joined #ruby
P_R_Deltoid has joined #ruby
konsolebox_ is now known as konsolebox
yeticry_ has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
rabajaj has quit [Quit: Leaving]
runescape07rsps has joined #ruby
mindcrimes has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
ForeignBiscuit has joined #ruby
ForeignBiscuit has quit [Max SendQ exceeded]
cahoots_ has joined #ruby
ForeignBiscuit has joined #ruby
ForeignBiscuit has quit [Max SendQ exceeded]
mostlybadfly has joined #ruby
ResidentBiscuit has quit [Ping timeout: 246 seconds]
noe_ has quit [Quit: noe_]
mim1k has joined #ruby
ams__ has quit [Quit: Connection closed for inactivity]
<cahoots_> havenwood, thanks, i'll check it out. also, does can gems be different based on which version of ruby they're being installed for? seems interesting that my gem home is "~/.gem/ruby/2.0.0"
Qommand0r has quit [Quit: WeeChat 1.9]
troys is now known as troys_
mim1k has quit [Ping timeout: 240 seconds]
cam27 has quit [Read error: Connection reset by peer]
<cahoots_> also, is it safe to just download the gem to a local dir and do require_relative 'path/to/gem/lib/gem.rb'? or do i need to change the $LOAD_PATH as well?
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
sepp2k has quit [Ping timeout: 240 seconds]
banisterfiend has joined #ruby
banisterfiend has quit [Client Quit]
Moosashi has joined #ruby
Isa_ has joined #ruby
hutch34 has joined #ruby
mjolnird has quit [Ping timeout: 255 seconds]
romankapitonov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dviola has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
cam27 has joined #ruby
https_GK1wmSU has joined #ruby
dviola has quit [Changing host]
dviola has joined #ruby
<adaedra> cahoots_ gems are installed in different folders depending on the ABI version
<adaedra> Why do you want to run a gem from a local path like that?
<adaedra> If you want to link to a local copy of a gem, you can indicate it in your Gemfile with `gem 'xxx', path: '/path/to/xxx'`
Moosashi has quit [Quit: Moosashi]
https_GK1wmSU has left #ruby [#ruby]
marxarelli is now known as marxarelli|afk
chrisgop_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
ozcanesen has joined #ruby
hutch34 has quit [Ping timeout: 276 seconds]
jackjackdripper has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
alex`` has quit [Quit: WeeChat 1.9]
chouhoulis has joined #ruby
wilbert has quit [Ping timeout: 255 seconds]
machinewar has quit []
airdisa has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
bane_ has quit [Quit: Konversation terminated!]
airdisa has joined #ruby
polishdub has quit [Remote host closed the connection]
ozcanesen has quit [Ping timeout: 240 seconds]
carnegie has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
Moosashi has joined #ruby
hutch34 has joined #ruby
t-recx has quit [Quit: t-recx]
Moosashi_ has joined #ruby
Moosashi has quit [Ping timeout: 240 seconds]
Moosashi_ is now known as Moosashi
meinside has quit [Quit: Connection closed for inactivity]
ozcanesen has joined #ruby
alan_w has quit [Quit: WeeChat 1.7]
cam27 has quit [Read error: Connection reset by peer]
Koshian has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
cam27 has joined #ruby
mim1k has joined #ruby
QualityAddict has joined #ruby
tvw has quit [Remote host closed the connection]
poloych has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
leandrobighetti has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
benlieb has quit [Quit: benlieb]
leandrobighetti has quit [Ping timeout: 246 seconds]
AbaddonOrmuz has joined #ruby
AbaddonOrmuz has left #ruby [#ruby]
moeabdol has quit [Ping timeout: 260 seconds]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yabbes has quit [Ping timeout: 260 seconds]
marxarelli|afk is now known as marxarelli
marxarelli is now known as marxarelli|afk
Moosashi has quit [Quit: Moosashi]
lxsameer has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
mindcrimes has left #ruby [#ruby]
mim1k has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
http_GK1wmSU has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
http_GK1wmSU has left #ruby [#ruby]
rahult has joined #ruby
davidmichaelkarr has joined #ruby
dcunit3d has joined #ruby
Moosashi has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
guacamole has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
alveric1 has joined #ruby
_aeris_ has quit [Ping timeout: 248 seconds]
alveric4 has quit [Ping timeout: 260 seconds]
brent___ has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
spheric has quit [Ping timeout: 240 seconds]
_aeris_ has joined #ruby
grant has joined #ruby
sneakerhax has quit [Ping timeout: 268 seconds]
brent___ has quit [Ping timeout: 240 seconds]
troys_ is now known as troys
MichaelBurge has joined #ruby
Neo__ has quit [Ping timeout: 240 seconds]
raspado has joined #ruby
bruno- has quit [Ping timeout: 258 seconds]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
http_GK1wmSU has joined #ruby
rahult has quit [Ping timeout: 260 seconds]
http_GK1wmSU has left #ruby [#ruby]