baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview2: 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!
Psy-Q has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
Psy-Q has joined #ruby
duderonomy has quit [Client Quit]
truenito has joined #ruby
al2o3-cr has quit [Ping timeout: 246 seconds]
TheBloke has joined #ruby
dviola has quit [Quit: WeeChat 2.2]
truenito has quit [Ping timeout: 268 seconds]
al2o3-cr has joined #ruby
pastorinni has quit []
uplime has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Radar> yes
<Radar> oops that message was a while ago, hey?
TheBloke has quit [Ping timeout: 272 seconds]
bmurt has joined #ruby
LiftLeft2 has joined #ruby
MoritaShinobu has quit [Quit: Leaving]
ur5us has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
voxxit has quit [*.net *.split]
trif has quit [*.net *.split]
dhollinger has quit [*.net *.split]
Cthulu201 has quit [*.net *.split]
akhkharu has quit [*.net *.split]
LiftLeft2 has quit [*.net *.split]
cthulchu has quit [*.net *.split]
nemesit|znc has quit [*.net *.split]
ua_ has quit [*.net *.split]
kent\n has quit [*.net *.split]
donofrio has quit [*.net *.split]
tjbp has quit [*.net *.split]
cgfbee has quit [*.net *.split]
devyn has quit [*.net *.split]
Tempesta has quit [*.net *.split]
Cork has quit [*.net *.split]
maxmanders has quit [*.net *.split]
mniip has quit [*.net *.split]
jtdowney has quit [*.net *.split]
hays_ has quit [*.net *.split]
nickjj has quit [*.net *.split]
hurricanehrndz has quit [*.net *.split]
Fridtjof has quit [*.net *.split]
S007 has quit [*.net *.split]
Guest48993 has quit [*.net *.split]
goez has quit [*.net *.split]
ablackack has quit [*.net *.split]
x0f has quit [*.net *.split]
bastilian has quit [*.net *.split]
Fusl has quit [*.net *.split]
Freeaqingme has quit [*.net *.split]
agent_white has quit [*.net *.split]
snickers has quit [*.net *.split]
beowuff has quit [*.net *.split]
dionysus69 has quit [*.net *.split]
michael_mbp has quit [*.net *.split]
Cyrus has quit [*.net *.split]
TheBrayn has quit [*.net *.split]
exchgr has quit [*.net *.split]
lyr has quit [*.net *.split]
ansraliant has quit [*.net *.split]
r3m has quit [*.net *.split]
lightstalker has quit [*.net *.split]
zxq2 has quit [*.net *.split]
dreamthese has quit [*.net *.split]
MIR100_ has quit [*.net *.split]
Miron has quit [*.net *.split]
n13z has quit [*.net *.split]
helpa has quit [*.net *.split]
SuperL4g has quit [*.net *.split]
Dark_Arc has quit [*.net *.split]
CustosLimen has quit [*.net *.split]
jmcgnh has quit [*.net *.split]
miah has quit [*.net *.split]
flips has quit [*.net *.split]
chihhsin_ has quit [*.net *.split]
mkroman has quit [*.net *.split]
dysfigured has quit [*.net *.split]
olspookishmagus has quit [*.net *.split]
istrasci has quit [*.net *.split]
gregf_ has quit [*.net *.split]
dinfuehr has quit [*.net *.split]
EvilJStoker has quit [*.net *.split]
jnix has quit [*.net *.split]
justache has quit [*.net *.split]
oz has quit [*.net *.split]
bathtub_shark has quit [*.net *.split]
scott4000 has quit [*.net *.split]
sparc has quit [*.net *.split]
Mutsuhito has quit [*.net *.split]
galeido has quit [*.net *.split]
Demos[m] has quit [*.net *.split]
KnownSyntax has quit [*.net *.split]
matthewd has quit [*.net *.split]
Psy-Q has quit [*.net *.split]
Dimik has quit [*.net *.split]
emerson has quit [*.net *.split]
twe4ked has quit [*.net *.split]
darix has quit [*.net *.split]
creat has quit [*.net *.split]
universa1 has quit [*.net *.split]
lupine has quit [*.net *.split]
vutral|kali has quit [*.net *.split]
FastJack has quit [*.net *.split]
jrgifford has quit [*.net *.split]
Apocalypse has quit [*.net *.split]
tpendragon has quit [*.net *.split]
kspencer has quit [*.net *.split]
z64 has quit [*.net *.split]
MaiconVieira has quit [*.net *.split]
ruby[bot] has quit [*.net *.split]
ghormoon has quit [*.net *.split]
camilasan has quit [*.net *.split]
raggi has quit [*.net *.split]
pwillard has quit [*.net *.split]
jhass has quit [*.net *.split]
pyrmont has quit [*.net *.split]
JoL1hAHN has quit [*.net *.split]
rprimus has quit [*.net *.split]
headius has quit [*.net *.split]
jordanm has quit [*.net *.split]
ricer2 has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
nielsk has quit [*.net *.split]
j416 has quit [*.net *.split]
Fire-Dragon-DoL has quit [*.net *.split]
SuperLag has quit [*.net *.split]
pabs has quit [*.net *.split]
infernix has quit [*.net *.split]
MiLLiYEtCHi has quit [*.net *.split]
tabakhase has quit [*.net *.split]
octomancer has quit [*.net *.split]
surrounder has quit [*.net *.split]
heyimwill has quit [*.net *.split]
hdabrows has quit [*.net *.split]
Azure has quit [*.net *.split]
Caerus has quit [*.net *.split]
wmoxam has quit [*.net *.split]
sparr has quit [*.net *.split]
arthurnn has quit [*.net *.split]
ujjain has quit [*.net *.split]
havenwood has quit [*.net *.split]
fmccann has quit [*.net *.split]
elcontrastador has quit [*.net *.split]
SCHAPiE has quit [*.net *.split]
Exagone313 has quit [*.net *.split]
funnel has quit [*.net *.split]
c0san0stra has quit [*.net *.split]
AlHafoudh has quit [*.net *.split]
Ekho has quit [*.net *.split]
danguita has quit [*.net *.split]
drbrain has quit [*.net *.split]
_ari has quit [*.net *.split]
weaksauce has quit [*.net *.split]
RougeR has quit [*.net *.split]
Xiti has quit [*.net *.split]
jidar has quit [*.net *.split]
vondruch has quit [*.net *.split]
BTRE has quit [*.net *.split]
akosednar has quit [*.net *.split]
mr_rich101 has quit [*.net *.split]
NightMonkey has quit [*.net *.split]
Tharbakim has quit [*.net *.split]
bhaak has quit [*.net *.split]
lypsis has quit [*.net *.split]
ule has quit [*.net *.split]
russt has quit [*.net *.split]
Zarthus has quit [*.net *.split]
Freeaqingme has joined #ruby
tekk has joined #ruby
MiLLiYEtCHi has joined #ruby
SegFaultAX has joined #ruby
pistachio has joined #ruby
tabakhase has joined #ruby
arand has joined #ruby
dumptruckman has joined #ruby
Tharbakim has joined #ruby
SirFunk has joined #ruby
gnufied has joined #ruby
PasNox has joined #ruby
maxmanders has joined #ruby
ua_ has joined #ruby
danguita has joined #ruby
tjbp has joined #ruby
hurricanehrndz has joined #ruby
[spoiler] has joined #ruby
jackrandom has joined #ruby
gregf_ has joined #ruby
agit0 has joined #ruby
z3uS has joined #ruby
syndikate has joined #ruby
Fusl has joined #ruby
LiftLeft2 has joined #ruby
KramerC has joined #ruby
S007 has joined #ruby
Exagone313 has joined #ruby
vdl has joined #ruby
mniip has joined #ruby
Fire-Dragon-DoL has joined #ruby
SuperLag has joined #ruby
nickjj has joined #ruby
cout has joined #ruby
segy has joined #ruby
bga57 has joined #ruby
Jello_Raptor has joined #ruby
Ekho has joined #ruby
DTZUZO_ has joined #ruby
_whitelogger has joined #ruby
<za1b1tsu> Radar: 'cc'.match /(?|(a)|(c))/
<havenwood> zenspider: seems nice to add `gem install hoe` to graphics_setup.sh
ajsharma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ajsharma has joined #ruby
ajsharma has quit [Client Quit]
ajsharma has joined #ruby
ajsharma has quit [Client Quit]
ajsharma has joined #ruby
ajsharma has quit [Client Quit]
ajsharma has joined #ruby
ajsharma has quit [Client Quit]
<za1b1tsu> havenwood: what am I looking at here?
<havenwood> za1b1tsu: Ruby's regular expression library Onigmo, forked from Oniguruma.
<za1b1tsu> so branch reset groups are on the TODO list?
<havenwood> za1b1tsu: Yup, not implemented.
<za1b1tsu> ah alright, cool, did not know about this
yokel has quit [Ping timeout: 268 seconds]
<Radar> havenwood: neat
yokel has joined #ruby
<zenspider> havenwood: sure sure
<zenspider> was there ever a flag added to gem install to NOT reinstall if already there?
<zenspider> fuck that's dumb
<zenspider> --conservative ugh
_whitelogger has joined #ruby
agent_white has quit [Quit: brb]
uplime has quit [Quit: WeeChat 2.2]
<havenwood> zenspider: Err, yeah - that's an odd way to say --no-reinstall
<havenwood> zenspider: I scanned the options thinking I remembered one and didn't see it >.>
<havenwood> zenspider: I was gunna say: gem list -I hoe &> /dev/null && gem install hoe
<havenwood> `list -i` and `list -I` don't seem to actually consistently work, hrmm - odd
_whitelogger has joined #ruby
dellavg_ has quit [Ping timeout: 250 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 246 seconds]
aupadhye has joined #ruby
Puffball has quit [Remote host closed the connection]
Lytol has joined #ruby
eb0t has joined #ruby
eblip has joined #ruby
reber has joined #ruby
baweaver is now known as baweaver_away
baweaver_away is now known as baweaver
baweaver is now known as baweaver_away
baweaver_away is now known as baweaver
baweaver is now known as baweaver_away
istrasci has quit [Ping timeout: 256 seconds]
bkxd has joined #ruby
mroutis has joined #ruby
darkhanb has joined #ruby
cd has joined #ruby
duderonomy has joined #ruby
asphyxia has joined #ruby
MoritaShinobu has joined #ruby
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
baweaver_away is now known as baweaver
tdy has quit [Ping timeout: 252 seconds]
baweaver has quit [Remote host closed the connection]
edwardthefma has quit [Ping timeout: 272 seconds]
mroutis has quit [Remote host closed the connection]
stoffus has joined #ruby
BTRE has quit [Ping timeout: 268 seconds]
BTRE has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
snickers has joined #ruby
Yxhuvud has joined #ruby
duderonomy has joined #ruby
tdy has joined #ruby
aufi_ has joined #ruby
APK has joined #ruby
AKPWD has quit [Ping timeout: 245 seconds]
sarmiena_ has quit [Quit: sarmiena_]
aufi_ has quit [Ping timeout: 245 seconds]
Sina_ has joined #ruby
evdubs has quit [Remote host closed the connection]
evdubs has joined #ruby
beeman has quit [Write error: Connection reset by peer]
nemesit|znc has quit [Ping timeout: 252 seconds]
goez has quit [Ping timeout: 252 seconds]
lupine has quit [Remote host closed the connection]
oz has quit [Ping timeout: 252 seconds]
creat has quit [Ping timeout: 252 seconds]
beeman has joined #ruby
tjbp has quit [Ping timeout: 252 seconds]
Fridtjof has quit [Ping timeout: 252 seconds]
Guest48993 has quit [Ping timeout: 252 seconds]
x0f has quit [Ping timeout: 252 seconds]
bastilian has quit [Ping timeout: 252 seconds]
bastilian has joined #ruby
LiftLeft2 has quit [Ping timeout: 252 seconds]
larissa has joined #ruby
lupine has joined #ruby
tjbp has joined #ruby
x0f has joined #ruby
nemesit|znc has joined #ruby
creat has joined #ruby
oz has joined #ruby
Fridtjof has joined #ruby
michael_mbp has quit [Ping timeout: 252 seconds]
LiftLeft2 has joined #ruby
goez has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tdy has quit [Ping timeout: 252 seconds]
bak1an has joined #ruby
bak1an has quit [Client Quit]
baweaver has joined #ruby
mike11 has joined #ruby
michael_mbp has joined #ruby
clemens3 has joined #ruby
mike11 has quit [Ping timeout: 245 seconds]
agent_white has joined #ruby
baweaver has quit [Remote host closed the connection]
Guest48721 has joined #ruby
Guest48721 is now known as baweaver
tjbp has quit [Quit: No Ping reply in 180 seconds.]
lupine has quit [Remote host closed the connection]
lupine has joined #ruby
tjbp has joined #ruby
axsuul has quit [Ping timeout: 252 seconds]
axsuul has joined #ruby
sarmiena_ has joined #ruby
dinfuehr has quit [Ping timeout: 250 seconds]
dinfuehr has joined #ruby
sarmiena_ has quit [Client Quit]
tomaw- is now known as tomaw
solocshaw has joined #ruby
venmx has joined #ruby
dysfigured has joined #ruby
solocshaw has quit [Quit: solocshaw]
moei has quit [Read error: Connection reset by peer]
moei has joined #ruby
lxsameer has joined #ruby
Lytol has quit [Remote host closed the connection]
Lytol has joined #ruby
xfbs has joined #ruby
ur5us has quit [Remote host closed the connection]
aufi_ has joined #ruby
mikecmpbll has joined #ruby
aufi_ has quit [Ping timeout: 252 seconds]
deathwishdave has joined #ruby
dbz has joined #ruby
asphyxia has quit [Ping timeout: 246 seconds]
RougeR has joined #ruby
<RougeR> hello. need some advice with minitest/mocha. How do i stub a class instance method that is being called from a class instance method
dionysus69 has quit [Quit: ZNC 1.7.1+deb2 - https://znc.in]
<RougeR> we are using classes as tasks, with perform methods calling a load of private methods
dbz has quit [Ping timeout: 272 seconds]
ansraliant has quit [Quit: My planet needs me]
clemens3 has quit [Ping timeout: 244 seconds]
clemens3_ has joined #ruby
nickjj has joined #ruby
mikecmpbll has quit [Ping timeout: 252 seconds]
mikecmpb_ has joined #ruby
tdy has joined #ruby
guardian has joined #ruby
SuperL4g_ has joined #ruby
Sup3rLurk has joined #ruby
SuperL4g has quit [Ping timeout: 252 seconds]
<RougeR> anyone about
<RougeR> i think im stubbing these right, but its behaving so weirdly
SuperLag has quit [Ping timeout: 264 seconds]
<RougeR> anyone care to explain this
<ruby[bot]> RougeR: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<RougeR> yeah i know ruby[bot] im not signed into my git hub
SolarAquarion has quit [Excess Flood]
olspookishmagus has joined #ruby
SolarAquarion has joined #ruby
tdy has quit [Ping timeout: 268 seconds]
stoffus has quit [Ping timeout: 252 seconds]
aufi_ has joined #ruby
c0ncealed3 has quit [Remote host closed the connection]
roshanavand has quit [Quit: leaving]
c0ncealed3 has joined #ruby
stoffus has joined #ruby
<RougeR> for anyone who was about.
<RougeR> i had an expects assertion/stub overwiting my normal stub
<RougeR> didnt realise it would function the way it did
bkxd has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
agent_white has quit [Quit: later]
meinside has joined #ruby
aufi_ has quit [Ping timeout: 252 seconds]
ellcs has joined #ruby
ur5us has joined #ruby
moei has quit [Ping timeout: 252 seconds]
KrzaQ has quit [Ping timeout: 252 seconds]
<marahin> If I have two frozen constants, that are arrays, is there a point to freeze a third one, that is a sum of those?
<marahin> A = [1].freeze
<marahin> B = [2].freeze
<marahin> C = A + B
gheegh has joined #ruby
KrzaQ has joined #ruby
<marahin> s[5] pry(main)> C.frozen?
<marahin> => false
<marahin> seems like so.
ellcs has quit [Ping timeout: 244 seconds]
ur5us has quit [Remote host closed the connection]
InfinityFye has joined #ruby
MoritaShinobu has quit [Quit: Leaving]
bkxd has quit [Ping timeout: 252 seconds]
Blaguvest has joined #ruby
esrse has quit [Ping timeout: 264 seconds]
MoritaShinobu has joined #ruby
AJA4350 has joined #ruby
tdy has joined #ruby
GodFather has joined #ruby
roshanavand has joined #ruby
bkxd has joined #ruby
aufi has joined #ruby
queip has joined #ruby
<queip> are there some tools to externally modify an existing big program in rubby - like the GitLab software?
<queip> it works super slow, and not sure why
tdy has quit [Ping timeout: 252 seconds]
<mnemon> queip: what do you mean with "externally"? you can just rewrite the code
nine_milli has joined #ruby
<nine_milli> Hi, is PHP better than ruby?
lxsameer has quit [Ping timeout: 252 seconds]
<queip> nine_milli: nothing that is in popular use, is worse then PHP
<queip> mnemon: I mean I do not want to touch the gitlab program, can I somehow externally try to detect what is causing the problem
<queip> e.g. for C/C++ programs I could strace, gdb backtrace, maybe attack kernel probes / perf probes to detect what OS is doing.
<queip> finding out e.g. inside which ruby function it is most of the time
<nine_milli> queip, so PHP is better but by how much?
<queip> nine_milli: it is not, I just said
<queip> imo PHP is the worst
<surrounder> this again?
<surrounder> nine_milli: what's "better" ?
<nine_milli> PHP
<queip> lol
<surrounder> no, what's your definition of "better" ?
<nine_milli> PHP vs ruby
<surrounder> for what?
<nine_milli> you can do stuff better and faster and more accurate in PHP than ruby
<surrounder> !troll nine_milli
<surrounder> nine_milli: so enjoy PHP, what's the purpose for asking that question here in the first place except for trolling?
<nine_milli> trying to find out why people use inferior tech
<surrounder> right..
<queip> nine_milli: I rate your torlling as [Error: expected T_PAAMAYIM_NEKUDOTAYIM] / 10
<surrounder> hah been a while since I saw T_PAAMAYIM_NEKUDOTAYIM
<nine_milli> of course, you have an IQ of < 50 which the requirement of ruby
<queip> no, that is for rugby
<surrounder> small difference
bkxd has quit [Ping timeout: 252 seconds]
bkxd has joined #ruby
kurko_ has joined #ruby
<mnemon> queip: you can use the same things as for C(just trace the ruby process), there's also ruby-prof which gives you cachegrind calltrees for an example
lxsameer has joined #ruby
bkxd has quit [Read error: Connection reset by peer]
moei has joined #ruby
aupadhye has quit [Ping timeout: 252 seconds]
venmx has quit [Ping timeout: 244 seconds]
Mikasi has joined #ruby
stoffus has quit [Ping timeout: 272 seconds]
venmx has joined #ruby
bkxd has joined #ruby
moei has quit [Quit: Leaving...]
elfranne has joined #ruby
<elfranne> where can i find the docs for || ?
<elfranne> var = array[1] || false
<elfranne> for example
<RougeR> what do you want to know
<RougeR> that would always assign array[1] to var
danguita has quit [Ping timeout: 244 seconds]
aufi has quit [Ping timeout: 252 seconds]
<eam> RougeR: no, it will only assign array[1] to var if it evaluates to false
<eam> to a false value, I should say, which is more than just false
aufi has joined #ruby
<eam> elfranne: || is a boolean or, it's part of ruby's syntax
<elfranne> eam, yes but i want to read about it
<eam> I'm not sure where to point you, mostly because I'm not super familiar with ruby's documentation
<eam> but I could tell you about how it works if you have questions
<elfranne> what is wanted to do is a cleaner version of :
bkxd has quit [Read error: Connection reset by peer]
code_zombie has joined #ruby
<elfranne> if array[1] -> var= array[1] else var = false
<eam> that is what your expression above does
<eam> || works by returning the left side value if it is true, otherwise returning the right side value
<elfranne> so i was right, good.
<elfranne> just wanted to read about it and see if there was anything special about ruby
<eam> not too special, this is a pretty common operator found in many languages
<eam> there is also an ||= operator so you can write var = array[1]; var ||= false; for the same effect
<elfranne> oh thx !
<elfranne> only a few weeks into ruby and I kinda like it
aufi has quit [Ping timeout: 244 seconds]
<eam> it's a fun language, very flexible
alem0lars has joined #ruby
aufi has joined #ruby
bkxd has joined #ruby
venmx has quit [Ping timeout: 252 seconds]
venmx has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
alem0lars has quit [Remote host closed the connection]
dionysus69 has joined #ruby
nahra has quit [Ping timeout: 244 seconds]
snickers has quit [Ping timeout: 244 seconds]
bak1an has joined #ruby
nine_milli has left #ruby ["Leaving"]
venmx has quit [Ping timeout: 252 seconds]
aufi has quit [Ping timeout: 264 seconds]
venmx has joined #ruby
froyd has joined #ruby
vondruch_ has joined #ruby
venmx has quit [Ping timeout: 252 seconds]
bmurt has joined #ruby
vondruch has quit [Ping timeout: 268 seconds]
vondruch_ is now known as vondruch
bkxd has joined #ruby
jetchisel has joined #ruby
bkxd has quit [Read error: Connection reset by peer]
venmx has joined #ruby
Rapture has joined #ruby
moei has joined #ruby
tdy has joined #ruby
bkxd has joined #ruby
phaul has joined #ruby
Mikasi has quit [Ping timeout: 245 seconds]
snickers has joined #ruby
sarmiena_ has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Remote host closed the connection]
alem0lars has joined #ruby
sarmiena_ has quit [Client Quit]
improv42 has joined #ruby
akaiiro has joined #ruby
alem0lars has quit [Remote host closed the connection]
bkxd has quit [Read error: Connection reset by peer]
uplime has joined #ruby
savolla has joined #ruby
mr_brush has joined #ruby
savolla has quit [Ping timeout: 252 seconds]
bkxd has joined #ruby
bkxd has quit [Read error: Connection reset by peer]
orbyt_ has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
tdy has quit [Ping timeout: 268 seconds]
alem0lars has joined #ruby
bkxd has joined #ruby
sarmiena_ has joined #ruby
mr_brush has quit [Quit: —I-n-v-i-s-i-o-n— 3.5.1 (October '17)]
zapata has quit [Read error: Connection reset by peer]
zapata has joined #ruby
bkxd has quit [Read error: Connection reset by peer]
alem0lars has quit [Remote host closed the connection]
sarmiena_ has quit [Quit: sarmiena_]
alem0lars has joined #ruby
alem0lars has quit [Remote host closed the connection]
alem0lars has joined #ruby
alem0lars has quit [Remote host closed the connection]
alem0lars has joined #ruby
alem0lars has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
vondruch has quit [Quit: vondruch]
dmitch has joined #ruby
vondruch has joined #ruby
rippa has joined #ruby
ellcs has joined #ruby
clemens3_ has quit [Ping timeout: 245 seconds]
APK is now known as AKPWD
ellcs has quit [Ping timeout: 252 seconds]
DTZUZO_ has quit [Ping timeout: 272 seconds]
improv42 has quit [Remote host closed the connection]
duderonomy has joined #ruby
savolla has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
duderonomy has quit [Client Quit]
savolla has quit [Ping timeout: 252 seconds]
jcarl43 has joined #ruby
Puffball has joined #ruby
Pisuke has joined #ruby
MyMind has quit [Ping timeout: 260 seconds]
aufi has joined #ruby
bkxd has joined #ruby
kurko__ has joined #ruby
kurko_ has quit [Ping timeout: 252 seconds]
aufi has quit [Ping timeout: 252 seconds]
venmx has quit [Ping timeout: 252 seconds]
elfranne has quit [Quit: Leaving]
deathwishdave has quit [Max SendQ exceeded]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather has quit [Ping timeout: 244 seconds]
tdy has joined #ruby
bkxd has quit [Read error: Connection reset by peer]
KnownSyntax has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DTZUZO_ has joined #ruby
AJA4350 has quit [Quit: AJA4350]
kurko__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lunaphyte has joined #ruby
xfbs has quit [Quit: afk]
<lunaphyte> hi. i have a ruby program [for newrelic monitoring of rabbitmq] which complains because it's unable to verify the http certificate presented by rabbitmq, and i'm having trouble getting it to trust the certificate
AJA4350 has joined #ruby
<lunaphyte> it's a self signed cert, and i'd like to provide the cert to ruby, so it knows of it when connecting to rabbitmq
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
<lunaphyte> but i didn't write the program, and i don't know ruby, so i'm in search of some guidance
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
alem0lars has joined #ruby
xfbs has joined #ruby
za1b1tsu has quit [Ping timeout: 252 seconds]
ivanskie has joined #ruby
alem0lars has quit [Remote host closed the connection]
sonne has quit [Quit: ZNC - http://znc.in]
lxsameer has quit [Ping timeout: 244 seconds]
bkxd has joined #ruby
sonne has joined #ruby
kurko_ has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MoritaShinobu has quit [Ping timeout: 245 seconds]
bkxd has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ivanskie has joined #ruby
Creatornator has joined #ruby
<phaul> baweaver: hi, are you around? I would like to ask you about Qo...
mikecmpb_ has quit [Quit: inabit. zz.]
mtkd has joined #ruby
BTRE has quit [Remote host closed the connection]
d3d1rty has joined #ruby
darkhanb has joined #ruby
Sembei has joined #ruby
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
alem0lars has joined #ruby
Pisuke has quit [Ping timeout: 252 seconds]
sarmiena_ has joined #ruby
bkxd has quit [Read error: Connection reset by peer]
improv42 has joined #ruby
bkxd has joined #ruby
improv42 has quit [Remote host closed the connection]
improv42 has joined #ruby
improv42 has quit [Remote host closed the connection]
improv42 has joined #ruby
improv42 has quit [Remote host closed the connection]
ivanskie has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alem0lars has quit [Remote host closed the connection]
improv42 has joined #ruby
improv42 has quit [Remote host closed the connection]
alem0lars has joined #ruby
improv42 has joined #ruby
improv42 has quit [Remote host closed the connection]
bkxd has quit [Read error: Connection reset by peer]
improv42 has joined #ruby
improv42 has quit [Remote host closed the connection]
improv42 has joined #ruby
improv42 has quit [Remote host closed the connection]
<cthulchu> I have a suspicion that f.seek(-1, IO::SEEK_END) doesn't move the pointer to the eof
<cthulchu> cuz its address doesn't seem to change when the file changes
<cthulchu> I'll retest now, however
<apeiros_> uh, -1 wouldn't move to EOF anyway. it'd move it one byte before EOF.
RougeR has quit [Ping timeout: 252 seconds]
<phaul> hi apeiros_
<apeiros_> hi phaul
<phaul> fyi Ive written quite some code already, so evven if derpy is open, I don't want to just throw this away
<phaul> so in essence Im less interested in that code now
<phaul> I would like to continue with what i have
<phaul> I've chosen a different approach, the bot knows all classes, modules, instance methods, and class methods rather than just pasting text. It queries its database for info.
<phaul> I can also add commands like &list size, which would give you Array#size, Enumerable#size ...
kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<phaul> or we can allow % characters to match db LIKE queries
<phaul> but it's limited to core... at least at the moment
kurko_ has joined #ruby
Tempesta has quit [Remote host closed the connection]
beowuff has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<apeiros_> phaul: checked in my promise now and wrote adaedra :) hope he responds
<apeiros_> sounds nice re features
<apeiros_> I think adaedra used a local copy of yard's cache
sameerynho has joined #ruby
MIR100 has quit [Quit: Leaving]
<phaul> ok, if he responds I will definately take a look, I'm sure there are things I could steal from there :)
<apeiros_> I'd hope so :)
<apeiros_> what's your github handle btw.?
apeiros_ is now known as apeiros
sauvin has quit [Remote host closed the connection]
im0nde has joined #ruby
edwardthefma has joined #ruby
drbrain has quit [Quit: Goodbye]
sgen has joined #ruby
drbrain has joined #ruby
bkxd has joined #ruby
Tempesta has joined #ruby
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ivanskie has joined #ruby
akaiiro has quit [Ping timeout: 245 seconds]
bkxd has quit [Read error: Connection reset by peer]
gheegh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drbrain has quit [Ping timeout: 245 seconds]
improv42 has joined #ruby
drbrain has joined #ruby
improv42 has quit [Remote host closed the connection]
improv42 has joined #ruby
improv42 has quit [Remote host closed the connection]
improv42 has joined #ruby
improv42 has quit [Remote host closed the connection]
<cthulchu> no matter what I do, it's always 4544640
<cthulchu> weird
<cthulchu> and I do f.seek(-1, IO::SEEK_END)
<cthulchu> @@log_address = f.pos()
<phaul> cthulchu: Can you make your code publicly available. There is a lot of second guessing otherwise.
<cthulchu> err...
<cthulchu> it's an ugly function that has tons of unrelated stuff in it
<cthulchu> but I'll do it
kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<phaul> up to you. If you dont you don't it's just much harder to figure out what you do
duderonomy has joined #ruby
<cthulchu> @@log_address is 0 by default.
<phaul> there are race conditions there for sure..
<cthulchu> errr
<cthulchu> I really doubt it
<cthulchu> there's no async
<cthulchu> f.each_line is non-blocking???
kurko_ has joined #ruby
<cthulchu> I didn't expect it to be non-blocking
<phaul> but your log file is grown while this is running?
<cthulchu> yes
<cthulchu> I mean, I expect all functions I use to be blocking
<cthulchu> I didn't write this code with async in mind
duderonomy has quit [Read error: Connection reset by peer]
<phaul> I mean race condition between the script and the thing that is growing the file while the script is reading
duderonomy has joined #ruby
<cthulchu> I don't think so
<cthulchu> I mean there is for sure
<cthulchu> but I don't care about it
<cthulchu> no useful data appears in file while I'm here
<cthulchu> just rubbish
<cthulchu> so I don't care about where it ends up. I cut it off anyway in the parsing process
<cthulchu> also it doesn't explain why f.pos() is always the same regardless of the size
<apeiros> you're looking at the wrong file?
eckhardt has joined #ruby
<cthulchu> checking it now. getting the file size in every iteration to see
<cthulchu> the algo I get the file is a bit... twisted
<apeiros> also print the file path and make sure your script and you are looking at the same thing :)
<cthulchu> ok
<cthulchu> I use something like this: Dir[File.expand_path("~/.Genymobile/Genymotion/deployed/#{device_name}/logcat*.txt")].each{ | x |
<cthulchu> and then search for the largest file
doesntbyte has joined #ruby
<apeiros> Dir[…].each { --> Dir.glob(…) {
gheegh has joined #ruby
<cthulchu> what is that?
<cthulchu> --> Dir.glov?
<cthulchu> *glob
<apeiros> --> means "use this instead"
<cthulchu> ah, why?
<apeiros> because 1 instead of 2 methods and no useless temp array
* apeiros brb
<cthulchu> interesting
dbz has joined #ruby
chouhoulis has joined #ruby
dbz has quit [Remote host closed the connection]
tdy has quit [Ping timeout: 252 seconds]
<phaul> cthulchu: why do you need the seek (line 45) in the first place? Shouldn't you be at the end after each_line has finished?
InfinityFye has quit [Quit: Leaving]
mikecmpbll has joined #ruby
chouhoulis has quit [Ping timeout: 268 seconds]
chouhoulis has joined #ruby
<Eiam> apeiros: err whats --> called? thats not quite stabby cause its got one too many -
<phaul> what happens if you delete line 45?
MyMind has joined #ruby
wildermind has joined #ruby
Sembei has quit [Ping timeout: 252 seconds]
bmurt has joined #ruby
wildermind has quit [Client Quit]
<cthulchu> phaul, I am in the end every time, indeed, but I don't want to save the location in every line
<cthulchu> it's just an overkill
wildermind has joined #ruby
<cthulchu> and why would I do it if I can get the location without iterating through the file
<cthulchu> oh
<cthulchu> I see what you mean
<cthulchu> I don't need it at all since I'm here
<cthulchu> ha!
<cthulchu> cool thinking
<cthulchu> I'm gonna delete it
<apeiros> Eiam: it's not code. it's "A --> B" meaning "instead of A use B"
<apeiros> I truly didn't think that this was this confusing :D
<cthulchu> it is confusing
<cthulchu> in some languages --> means something
<cthulchu> or -> for sure
<cthulchu> reminds me of arrow functions in JS
chouhoulis has quit [Ping timeout: 246 seconds]
<apeiros> "or" also means something
<cthulchu> God I hate them
<apeiros> "for" too
<cthulchu> wel I know
<Eiam> yeah stabby is a thing
<Eiam> apeiros: i was excited to potentially learn something new about ruby =)
<cthulchu> hahahaha
<Eiam> i've found alot of random little things from this channel that i had no idea about
<apeiros> I'm sorry to let you down 😂
<Eiam> apeiros: im used to it
<phaul> only if we coult unary - a stabby ->
<phaul> :)
<phaul> *could
<apeiros> Eiam: hey now, that's a low punch :(
<Eiam> ;)
<Eiam> lol
<Eiam> only delivered with love
<apeiros> phaul: superators gem?
<Eiam> apeiros is best apeiros
tdy has joined #ruby
<phaul> hm. nice
<cthulchu> yes, I think I solved it
<cthulchu> thanks a lot guys
<cthulchu> now I can move to the actual testing framework. whew
<apeiros> phaul: btw., if we're picky, each_line will end up at fh.seek(0, IO::SEEK_END), not -1 :)
<apeiros> (but I think cthulchu read over that anyway before)
<phaul> I know...
<phaul> said it yesterday like 2 times
<cthulchu> yeah, I saw
<apeiros> some skulls are thick, I guess
<cthulchu> you said what would happen if the file is empty
<cthulchu> I commented out the whole seek_end thing
<cthulchu> cuz I don't need it
<apeiros> I said what now? :)
<cthulchu> I know, thanks
<cthulchu> also I suspect the each_line ends on the last line
<cthulchu> in the beginning of it
<cthulchu> I don't mind the eof actually
<cthulchu> but that would be weird since there's no last line there
<lunaphyte> could someone help me understand this: https://dpaste.de/NtPw ?
<cthulchu> actually I can test it
Tempesta has quit [Quit: See ya!]
<lunaphyte> i'm trying to understand where and how to set ssl_host_verification to test something
Tempesta has joined #ruby
DTZUZO_ has quit [Ping timeout: 252 seconds]
venmx has joined #ruby
DTZUZO_ has joined #ruby
<cthulchu> as expected
<cthulchu> each_line doesn't get to eof
<cthulchu> and that actually may be problematic...
<cthulchu> hm
<cthulchu> anyhow
<cthulchu> will deal with it later
* apeiros suspects this is a badly worded half-truth
<cthulchu> it is
<cthulchu> I meant that f.pos never gets to the eof :)
Spitfire has joined #ruby
<cthulchu> sorry
venmx has quit [Remote host closed the connection]
Dbugger has joined #ruby
bkxd has joined #ruby
<apeiros> in an ordinary file? or in an ever-growing file?
<cthulchu> I checked on ever-growing
<cthulchu> yeah
<cthulchu> you're right
<cthulchu> not a good idea to check on it
<apeiros> so as phaul said, you're losing the race. when you read it, it reads to EOF, when you check, it's already grown again.
<cthulchu> yea, yea
<Spitfire> Hey just doing some work with BigDecimal which I've not used much before, can anyone explain this to me?
<Spitfire> There's no reason why I shouldn't be able to take a BigDecimal of e.g. 0.0147, multiply it by 100 and get 1.47 right?
<apeiros> >> "%.60f" % 0.0147
<ruby[bot]> apeiros: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<apeiros> aw, come on eval.in
<apeiros> Spitfire: `"%.60f" % 0.0147` => "0.014699999999999999525379656972745578968897461891174316406250"
bkxd has quit [Read error: Connection reset by peer]
<apeiros> floats are approximations. never forget that.
<Spitfire> Yeah that's why I want to use a BigDecimal instead - I really don't want to use the float solution.
<apeiros> if you use a float in your calculation, you lost. if you want a specific precision, then don't use float anywhere.
<Spitfire> But I can't get the BigDecimal method to display my percentage correctly - it always shows as less than 1% - do you know why?
<apeiros> make your example reproducible and I might take a look.
<Spitfire> Gimme a sec then :)
sgen has quit [Remote host closed the connection]
sgen has joined #ruby
sgen has quit [Max SendQ exceeded]
sgen has joined #ruby
jcalla has joined #ruby
<Spitfire> apeiros, https://dpaste.de/w9Na
<Spitfire> The float method prints out the correct value, bigdecimal will multiply itself up but only as far as 0.n, won't go beyond a fraction of a percent.
<Spitfire> I'm probably doing something dumb, no? ^_^
<apeiros> you're reading it wrong
<apeiros> -0.1442163501760035358557876e1
<apeiros> take a look at the last two characters
<apeiros> you probably want #{perc.to_s('f')}
<Spitfire> Aaah yep, so why does converting to a string not multiply that up for me?
<apeiros> it uses scientific notation
<Spitfire> Right, thanks.
Creatornator has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mike11 has joined #ruby
Azure has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
Azure has joined #ruby
roshanavand has quit [Ping timeout: 252 seconds]
roshanavand has joined #ruby
dviola has joined #ruby
tdy has quit [Ping timeout: 244 seconds]
bkxd has quit [Read error: Connection reset by peer]
<WA9ACE> Anyone know if there's a project with any traction to compile Ruby to WASM?
roshanavand has quit [Ping timeout: 245 seconds]
<cthulchu> wow
<cthulchu> wasm
<cthulchu> that would imply having the whoole interpreter in wasm
roshanavand has joined #ruby
<cthulchu> or not
<cthulchu> hm
<cthulchu> I guess it depends
<WA9ACE> I mean, not that I'd recommend it. Just that it seems like a fun thing to work on
jcalla has quit [Ping timeout: 252 seconds]
tdy has joined #ruby
schneider has joined #ruby
roshanavand has quit [Ping timeout: 252 seconds]
<baweaver> phaul: On and off, what's up?
roshanavand has joined #ruby
xfbs has quit [Quit: afk]
Puffball has quit [Remote host closed the connection]
Puffball has joined #ruby
kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jcalla has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
kurko_ has joined #ruby
jcalla has quit [Ping timeout: 252 seconds]
<phaul> baweaver: might have been my fault etc. but would you expect Qo[:method] to work? Or in other word is it different from any other symbol, like Qo[:xxx]?
<havenwood> WA9ACE: Currently you can use MRuby and LLVM to go from Ruby to WebAssembly: http://www.blacktm.com/blog/ruby-on-webassembly
<baweaver> hrm
<baweaver> I'll need to play with that
<baweaver> Qo checks if something "responds to" something else
<phaul> Just tried Qo, and that was the first example I tried.. but if it's fine I totaly can beleive that it was my fault..
<baweaver> In the readme it shows the path it takes
akaiiro has joined #ruby
<baweaver> Na, it's fine, not sure if it'd work or not.
xfbs has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
cow[moo] has joined #ruby
roshanavand has quit [Ping timeout: 245 seconds]
roshanavand has joined #ruby
Dbugger has quit [Remote host closed the connection]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
mtkd has quit []
MyMind has quit [Quit: WeeChat 2.3-dev]
mike11 has quit [Ping timeout: 245 seconds]
divergence has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
reber has quit [Remote host closed the connection]
akaiiro has quit [Remote host closed the connection]
ur5us has joined #ruby
kujira has joined #ruby
akaiiro has joined #ruby
bkxd has joined #ruby
GodFather has joined #ruby
d3d1rty has quit [Ping timeout: 252 seconds]
bkxd has quit [Read error: Connection reset by peer]
jcalla has joined #ruby
rapha has left #ruby ["WeeChat 2.3-dev"]
bkxd has joined #ruby
jcalla has quit [Ping timeout: 252 seconds]
bkxd has quit [Read error: Connection reset by peer]
GodFather has quit [Ping timeout: 264 seconds]
GodFather has joined #ruby
tdy has quit [Ping timeout: 252 seconds]
bkxd has joined #ruby
SeepingN has joined #ruby
sgen has quit [Ping timeout: 246 seconds]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has joined #ruby
schneider has quit [Ping timeout: 245 seconds]
schneider has joined #ruby
bkxd has quit [Read error: Connection reset by peer]
kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather has quit [Ping timeout: 260 seconds]
schneider has quit [Ping timeout: 252 seconds]
schneider has joined #ruby
bkxd has joined #ruby
schneider has quit [Ping timeout: 252 seconds]
sameerynho has quit [Ping timeout: 276 seconds]
dviola has quit [Quit: WeeChat 2.2]
schneider has joined #ruby
tdy has joined #ruby
im0nde has quit [Quit: im0nde]
schneider has quit [Ping timeout: 252 seconds]
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has joined #ruby
asphyxia has joined #ruby
schneider has quit [Ping timeout: 252 seconds]
cpallares has quit [Ping timeout: 272 seconds]
Dimik has joined #ruby
schneider has joined #ruby
kurko_ has joined #ruby
cpallares has joined #ruby
planigan_ has quit [Ping timeout: 268 seconds]
xfbs has quit [Quit: afk]
schneider has quit [Ping timeout: 245 seconds]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
planigan has joined #ruby
schneider has joined #ruby
wildermind has quit [Quit: Connection closed for inactivity]
Dimik has quit [Ping timeout: 252 seconds]
xfbs has joined #ruby
schneider has quit [Ping timeout: 252 seconds]
schneider has joined #ruby
schneider has quit [Ping timeout: 244 seconds]
cow[moo] has joined #ruby
bak1an has quit [Quit: Textual IRC Client: www.textualapp.com]
tdy has quit [Ping timeout: 244 seconds]
schneider has joined #ruby
doesntbyte has quit [Quit: Connection closed for inactivity]
schneider has quit [Ping timeout: 246 seconds]
gheegh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has joined #ruby
Creatornator has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has quit [Ping timeout: 252 seconds]
gheegh has joined #ruby
schneider has joined #ruby
alem0lars has quit [Ping timeout: 252 seconds]
jcarl43 has quit [Ping timeout: 244 seconds]
bkxd has quit [Ping timeout: 252 seconds]
schneider has quit [Ping timeout: 245 seconds]
jcarl43 has joined #ruby
schneider has joined #ruby
schneider has quit [Ping timeout: 244 seconds]
code_zombie has quit [Quit: Leaving]
kurko_ has quit [Ping timeout: 252 seconds]
DTZUZO_ has quit [Ping timeout: 252 seconds]
schneider has joined #ruby
gheegh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has quit [Ping timeout: 272 seconds]
schneider has joined #ruby
tdy has joined #ruby
schneider has quit [Ping timeout: 268 seconds]
asphyxia has quit [Ping timeout: 246 seconds]
schneider has joined #ruby
schneider has quit [Ping timeout: 244 seconds]
froyd has left #ruby [#ruby]
bkxd has joined #ruby
schneider has joined #ruby
DTZUZO_ has joined #ruby
schneider has quit [Ping timeout: 252 seconds]
schneider has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.2]
schneider has quit [Ping timeout: 246 seconds]
schneider has joined #ruby
roshanavand has quit [Ping timeout: 252 seconds]
schneider has quit [Ping timeout: 252 seconds]
schneider has joined #ruby
schneider has quit [Ping timeout: 252 seconds]
uplime has quit [Ping timeout: 272 seconds]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has joined #ruby
xfbs has quit [Quit: afk]
kujira has quit []
schneider has quit [Ping timeout: 252 seconds]
BTRE has joined #ruby
schneider has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has quit [Ping timeout: 268 seconds]