hightower3 has quit [Remote host closed the connection]
MyNetAz has quit [Write error: Connection reset by peer]
hightower3 has joined #ruby
Byteflux has joined #ruby
numlocked has joined #ruby
rhe has joined #ruby
Quiet-Oil9262 has joined #ruby
legahc has joined #ruby
caleb has joined #ruby
brw has joined #ruby
jasfloss has joined #ruby
hansolo has joined #ruby
finsternis has joined #ruby
coffeejunk has joined #ruby
nirix_ has joined #ruby
snonux has joined #ruby
FetidToot has joined #ruby
fourstepper has joined #ruby
matoro has joined #ruby
Milos has joined #ruby
Bounga has joined #ruby
alexisg has joined #ruby
srushe has joined #ruby
jmcgnh has joined #ruby
ollysmith has joined #ruby
foxxx0 has joined #ruby
lunarkitty has joined #ruby
splud has joined #ruby
ringo_ has joined #ruby
kjetilho has joined #ruby
oz has joined #ruby
Fusl has joined #ruby
Kamuela has joined #ruby
gr33n7007h has joined #ruby
ruby[bot] has joined #ruby
Rounin has joined #ruby
trillion_exabyte has joined #ruby
balrog has joined #ruby
CalimeroTeknik has joined #ruby
leah2 has joined #ruby
graaff has joined #ruby
tweaks has joined #ruby
cpach has joined #ruby
noahmg123 has joined #ruby
rhrf has joined #ruby
intelligent_boat has joined #ruby
sphex has joined #ruby
Liothen has joined #ruby
trillion_exabyte has quit [Max SendQ exceeded]
rvalue has joined #ruby
cnsvc- has joined #ruby
swee has joined #ruby
mweckbecker has joined #ruby
adam12 has joined #ruby
jetchisel has joined #ruby
mattf has joined #ruby
moo has joined #ruby
jposer has joined #ruby
deriamis has joined #ruby
Exa has joined #ruby
jess has joined #ruby
clemens3 has joined #ruby
wgwz has joined #ruby
rvalue has quit [Max SendQ exceeded]
jmcantrell has quit [Max SendQ exceeded]
jmcantrell has joined #ruby
mjanssen has joined #ruby
manveru has joined #ruby
jbg has joined #ruby
cappy has joined #ruby
sunyour has joined #ruby
weaksauce has joined #ruby
olusx has joined #ruby
pages has joined #ruby
Thanzex02 has joined #ruby
infernix has joined #ruby
braxas has joined #ruby
jmjl has joined #ruby
nikkys has joined #ruby
aindilis has joined #ruby
Arsen has joined #ruby
nakilon has joined #ruby
tsv has joined #ruby
chromis has joined #ruby
gigamo has joined #ruby
Doc_X has joined #ruby
jmcantrell has quit [Ping timeout: 260 seconds]
braxas has quit [Ping timeout: 272 seconds]
Furai has joined #ruby
olspookishmagus has joined #ruby
deadmarshal_ has joined #ruby
slothby has joined #ruby
kyber has joined #ruby
johnhamelink has joined #ruby
KOTP has joined #ruby
simonista has joined #ruby
matta has joined #ruby
vnpower has joined #ruby
peder has joined #ruby
jtperreault has joined #ruby
qsx has joined #ruby
bhaak has joined #ruby
kenyon has joined #ruby
roger_rabbit has joined #ruby
pavelz has joined #ruby
heinrich5991_ has joined #ruby
newton has joined #ruby
phryk has joined #ruby
cybniv has joined #ruby
rvalue has joined #ruby
kyber has quit [Max SendQ exceeded]
kyber has joined #ruby
braxas has joined #ruby
trillion_exabyte has joined #ruby
graywolf has joined #ruby
tsujp has joined #ruby
brokkoli_origin has joined #ruby
cappy has quit [Quit: Leaving]
MyNetAz has joined #ruby
jasfloss has quit [Ping timeout: 248 seconds]
jasfloss has joined #ruby
MsInput has joined #ruby
graywolf has quit [Quit: WeeChat 4.5.2]
shiru has joined #ruby
jmcantrell has joined #ruby
mahlon has joined #ruby
gemmaro has quit [Ping timeout: 245 seconds]
gemmaro has joined #ruby
ua_ has quit [Excess Flood]
ua_ has joined #ruby
jmcantrell has quit [Ping timeout: 244 seconds]
madcabbage has quit [Ping timeout: 260 seconds]
Linux_Kerio has joined #ruby
jmcantrell has joined #ruby
madcabbage has joined #ruby
jmcantrell has quit [Ping timeout: 248 seconds]
jmcantrell has joined #ruby
o0ox1eef has joined #ruby
o0ox1eef has quit [Client Quit]
o0ox1eef has joined #ruby
o0x1eef has quit [Ping timeout: 265 seconds]
kenyon has quit [Ping timeout: 246 seconds]
kenyon has joined #ruby
reset has quit [Quit: reset]
grenierm has joined #ruby
Tempesta_ has joined #ruby
Tempesta has quit [Ping timeout: 240 seconds]
jmcantrell has quit [Quit: WeeChat 4.5.2]
fantazo has joined #ruby
rhe has quit [Ping timeout: 248 seconds]
<nakilon>
not sure how it's "Schönhage–Strassen optimized" though
user71 has joined #ruby
TheManDay has joined #ruby
<TheManDay>
Hello, I'm trying to install the "asciidoctor-mathematical" gem on Fedora, and I'm not familiar with neither Fedora nor Ruby... I installed libxml2-devel (Fedora Package) but the gem installation still complains about missing -lxml2: checking for -lxml2; any idea why?
<gr33n7007h>
TheManDay: what version of fedora?
<TheManDay>
41
<TheManDay>
I just ran the entire `dnf install` suggestion from their GitHub and that got me past that problem with libxml
<TheManDay>
sadly the rendering in PDF is subpar and it's svg images.
<gr33n7007h>
it can generate PNG's too?
<gr33n7007h>
nothing else?
<gr33n7007h>
seems so, that's a shame.
<TheManDay>
yeah pngs and svgs.
<TheManDay>
I'm not sure what high expectations I should have for it all being mangled into a pdf anyway, but aestetically it's unsatisfactory
wbooze has joined #ruby
ih8u has quit [Ping timeout: 244 seconds]
ih8u2 has joined #ruby
<gr33n7007h>
doesn't seem to be any alternatives either :(
<TheManDay>
yeah it surprises me too. i mean asciidoctor is solid for html output, I'd have thought they had a big interest in making PDF equally good, seen how popular it is
ih8u2 is now known as ih8u
<gr33n7007h>
TheManDay: true.
infinityfye has joined #ruby
shiru has quit [Remote host closed the connection]
infinityfye has quit [Killed (NickServ (GHOST command used by infinity__fye))]
infinity__fye has joined #ruby
infinity__fye is now known as infinityfye
grenierm has quit [Ping timeout: 240 seconds]
infinityfye has quit [Killed (NickServ (GHOST command used by infinity__fye))]
infinity__fye has joined #ruby
TomyWork has joined #ruby
infinity__fye has quit [Ping timeout: 252 seconds]
infinityfye has joined #ruby
infinity__fye has joined #ruby
infinityfye has quit [Killed (NickServ (GHOST command used by infinity__fye))]
TheManDay has quit [Ping timeout: 240 seconds]
infinityfye has joined #ruby
infinity__fye has quit [Ping timeout: 248 seconds]
infinity__fye has joined #ruby
infinityfye has quit [Killed (NickServ (GHOST command used by infinity__fye))]
infinityfye has joined #ruby
infinity__fye has quit [Ping timeout: 260 seconds]
infinityfye has quit [Killed (NickServ (GHOST command used by infinity__fye))]
infinity__fye has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
TheManDay has joined #ruby
infinityfye has joined #ruby
infinity__fye has quit [Ping timeout: 245 seconds]
infinity__fye has joined #ruby
infinityfye has quit [Killed (NickServ (GHOST command used by infinity__fye))]
infinity__fye is now known as infinityfye
infinityfye has quit [Quit: Leaving]
CRISPR has joined #ruby
CRISPR has quit [Ping timeout: 252 seconds]
mange has quit [Quit: Zzz...]
levitating has joined #ruby
fantazo has quit [Quit: leaving]
infinityfye has joined #ruby
infinity__fye has joined #ruby
infinityfye has quit [Killed (NickServ (GHOST command used by infinity__fye))]
infinity__fye is now known as infinityfye
Linux_Kerio has quit [Ping timeout: 245 seconds]
infinityfye has quit [Ping timeout: 252 seconds]
infinityfye has joined #ruby
infinityfye has quit [Remote host closed the connection]
wbooze has quit [Read error: Connection reset by peer]
linuxator has joined #ruby
<linuxator>
how could I automatically modify certain entries in xls files?
<linuxator>
say 5 entries
<linuxator>
like atropine unit price ,isoflurane unit price and the summations concerned?
<linuxator>
i wanna do this to all fies in some folder
graywolf has joined #ruby
wbooze has joined #ruby
hwpplayer1 has joined #ruby
hwpplayer1 has quit [Read error: Connection reset by peer]
hwpplayer1 has joined #ruby
depesz has joined #ruby
<depesz>
hi. assuming I have program z.rb, and in there multiple def ... - how can I programmatically check if there is method "whatever"?
<kjetilho>
it's a lot easier if you put it in a class or module
<kjetilho>
then you can use #respond_to?
<depesz>
maybe next time :( so i guess I can't do it if the methods have just been "thrown" into z.rb ?
<kjetilho>
I'm not an expert, there may be a way.
<kjetilho>
at the very least you can just try it and catch the exception
FetidToot4 has joined #ruby
<o0ox1eef>
depesz: respond_to? , shell out to grep, TracePoint, Ruby parser like ripper. Many options. Can you provide more context?
FetidToot has quit [Ping timeout: 252 seconds]
FetidToot4 is now known as FetidToot
<depesz>
the context is that iu'm wrinting prograqm that interacts with aws. and it will get some "command" (think: ./my.rb list, or ./my.rb details) - and I'd like to be able to check if, assuming given command is in "command" variable, if there is do_COMMAND method.
<depesz>
if it was in a class - trivial. same for method.
<depesz>
because I'm lazy, and I don't want to put list of 'commands' in too many places :)
<o0ox1eef>
Where do you check from ? Why can't you use respond_to? ? It works on the top level as well.
<depesz>
i know there are libraries to do it, but given the environment (installing extra gems is (to put it lightly) complicated), i don't think i can use them.
<o0ox1eef>
Make sure you pass 'true' to respond_to?
<o0ox1eef>
respond_to?(:do_COMMAND, true)
<depesz>
`<main>': undefined method `respond_to' for main (NoMethodError)
<o0ox1eef>
With a question mark
<depesz>
aaah. thanks. sorry
<o0ox1eef>
Np
<o0ox1eef>
When you define a method at the top level it becomes a private method, and that's why you want to pass 'true' as a second argument to respond_to?. By default it does not exclude private methods
<o0ox1eef>
s/exclude/include/
<depesz>
nice. thanks for the extra explanation. was thinking why I need the true :)
<o0ox1eef>
Yw
hwpplayer1 has quit [Ping timeout: 252 seconds]
infinityfye has quit [Killed (NickServ (GHOST command used by infinity__fye))]
infinity__fye has joined #ruby
<depesz>
ok. one more question. given my situation, is there a way to call any do_ based on "command" variable?
<o0ox1eef>
respond_to?(:"do_#{command}", true)
<depesz>
that checks if I can call, but how do I call ?
<o0ox1eef>
Oh call? send("do_#{command}")
<depesz>
obviously. thanks.
graywolf has quit [Quit: WeeChat 4.5.2]
MsInput has quit [Quit: WeeChat 4.5.2]
denvermullets has joined #ruby
infinityfye has joined #ruby
linuxator has quit [Quit: Client closed]
jmcantrell has joined #ruby
infinity__fye has quit [Ping timeout: 252 seconds]
infinityfye has quit [Killed (NickServ (GHOST command used by infinity__fye))]
infinity__fye has joined #ruby
TheManDay has quit [Quit: Client closed]
testone has quit [Quit: Client closed]
testone has joined #ruby
jmcantrell has quit [Ping timeout: 260 seconds]
jmcantrell has joined #ruby
factor has quit [Remote host closed the connection]
factor has joined #ruby
crespire has joined #ruby
factor has quit [Remote host closed the connection]
testone has quit [Quit: Client closed]
testone has joined #ruby
factor has joined #ruby
factor has quit [Remote host closed the connection]
crespire1 has quit [Ping timeout: 252 seconds]
factor has joined #ruby
factor has quit [Remote host closed the connection]
wbooze has quit [Ping timeout: 260 seconds]
denvermullets has quit [Ping timeout: 252 seconds]
testone has quit [Quit: Client closed]
hwpplayer1 has joined #ruby
denvermullets has joined #ruby
testone has joined #ruby
denvermullets has quit [Ping timeout: 260 seconds]
Sheilong has joined #ruby
LainExperiments has joined #ruby
LainExperiments6 has joined #ruby
LainExperiments7 has joined #ruby
LainExperiments has quit [Ping timeout: 240 seconds]
LainExperiments6 has quit [Ping timeout: 240 seconds]
donofrio has quit [Read error: Connection reset by peer]
donofrio has joined #ruby
benjaminwil has quit [Quit: quitting.]
benjaminwil has joined #ruby
dstein64 has quit [Quit: ZNC 1.9.0+deb2build3 - https://znc.in]
dstein64 has joined #ruby
linuxator has joined #ruby
LainExperiments has joined #ruby
LainExperiments7 has quit [Ping timeout: 240 seconds]
ih8u2 has joined #ruby
ih8u has quit [Ping timeout: 248 seconds]
ih8u2 is now known as ih8u
infinity__fye has quit [Quit: Leaving]
user71 has quit [Quit: Leaving]
jmcantrell has quit [Ping timeout: 272 seconds]
jmjl has quit [Remote host closed the connection]
jmjl has joined #ruby
flod has joined #ruby
denvermullets has joined #ruby
brokkoli_origin has quit [Remote host closed the connection]