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