<Na_Klar>
I do a gtk2 application. I have a togglebutton list which gets generated in a loop. Whithin the loop there is a line to catch the "toggled" event. mybutton[x].signal_connect("toggled"). this works fine but of course when the event is fired the loop is already done and now I don't know which button fired the event. is there a way to tell signal_connect which instance triggered it?
explorier has joined #ruby
roshanavand_ has quit [Ping timeout: 268 seconds]
ur5us has joined #ruby
michael_mbp has quit [Ping timeout: 246 seconds]
matthewd has quit [Ping timeout: 246 seconds]
matthewd has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
malik has joined #ruby
michael_mbp has joined #ruby
<Na_Klar>
nvm, I simply passed the object to the signal catcher with |foo|
explorier has quit [Ping timeout: 265 seconds]
al2o3-cr-tmp has joined #ruby
al2o3-cr has quit [Ping timeout: 240 seconds]
budonyc has quit [Ping timeout: 246 seconds]
Na_Klar has quit [Quit: Leaving.]
electrostat has quit [Ping timeout: 246 seconds]
aef has quit [Ping timeout: 246 seconds]
jhass has quit [Ping timeout: 246 seconds]
jhass|off has joined #ruby
napcae- has joined #ruby
napcae has quit [Ping timeout: 246 seconds]
bhaak has quit [Ping timeout: 246 seconds]
j416 has quit [Ping timeout: 246 seconds]
apoc has quit [Ping timeout: 246 seconds]
jhass|off is now known as jhass
bukkitgerman8608 has quit [Ping timeout: 246 seconds]
rhe has quit [Ping timeout: 246 seconds]
electrostat has joined #ruby
aef has joined #ruby
bukkitgerman8608 has joined #ruby
bhaak has joined #ruby
rhe has joined #ruby
j416 has joined #ruby
apoc has joined #ruby
robotbee has quit [Ping timeout: 265 seconds]
elcuervo has quit [Read error: Connection reset by peer]
elcuervo has joined #ruby
robotbee has joined #ruby
mozzarella has quit [Ping timeout: 252 seconds]
mozzarella has joined #ruby
jenrzzz has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
neshpion has quit [Quit: neshpion]
jenrzzz has quit [Ping timeout: 240 seconds]
dinfuehr has quit [Ping timeout: 265 seconds]
dinfuehr has joined #ruby
m27frogy has quit [Ping timeout: 268 seconds]
MalkbabY has joined #ruby
dinfuehr has quit [Ping timeout: 252 seconds]
MalkbabY_ has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
TorpedoSkyline has joined #ruby
factormystic has quit [Read error: Connection reset by peer]
explorier has joined #ruby
factormystic has joined #ruby
jenrzzz has joined #ruby
explorier has quit [Ping timeout: 260 seconds]
dinfuehr has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
explorier has joined #ruby
maroloccio has quit [Ping timeout: 265 seconds]
dinfuehr has joined #ruby
explorier has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
gearnode has quit [Ping timeout: 250 seconds]
gawlinski has quit [Remote host closed the connection]
nofxx_ has joined #ruby
ChmEarl has quit [Quit: Leaving]
nofxx__ has quit [Ping timeout: 240 seconds]
dinfuehr has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
dinfuehr has quit [Ping timeout: 268 seconds]
duderonomy has quit [Ping timeout: 252 seconds]
dinfuehr has joined #ruby
ur5us has quit [Ping timeout: 258 seconds]
duderonomy has joined #ruby
robotbee has quit [Ping timeout: 252 seconds]
dinfuehr has quit [Ping timeout: 252 seconds]
slowly_stuck has quit [Quit: slowly_stuck]
dinfuehr has joined #ruby
postmodern has quit [Quit: Leaving]
nofxx__ has joined #ruby
nofxx_ has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
robotbee has joined #ruby
jenrzzz has joined #ruby
DTZUZU has quit [Read error: Connection reset by peer]
baojg has quit [Remote host closed the connection]
teclator has joined #ruby
jmcgnh has quit [Read error: Connection reset by peer]
baojg_ has joined #ruby
DTZUZU has joined #ruby
jmcgnh has joined #ruby
al2o3-cr-tmp is now known as al2o3-cr
vondruch has joined #ruby
Rounin has joined #ruby
TomyWork has joined #ruby
Rudd0 has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 265 seconds]
al2o3-cr has quit [Quit: WeeChat 3.1]
jla has joined #ruby
jla has quit [Ping timeout: 265 seconds]
gearnode has joined #ruby
zzak has joined #ruby
zzak has quit []
hiroaki_ has quit [Ping timeout: 260 seconds]
jla has joined #ruby
robotbee has quit [Ping timeout: 252 seconds]
reyfi9e has quit [Ping timeout: 258 seconds]
daemonwrangler has quit [Quit: ZNC 1.8.2 - https://znc.in]
MalkbabY_ has joined #ruby
MalkbabY has quit [Ping timeout: 260 seconds]
hiroaki_ has joined #ruby
supercoven has quit [Read error: Connection reset by peer]
<adam12>
AndreYuhai: In a scenario like that, I’d practically consider `something` a mystery guest. But this is also relevant to RSpec and how deeply nested people will make their specs.
<AndreYuhai>
adam12: oh so basically should we keep let closer to where we aare going to use it? Unless it's used in every example
<adam12>
AndreYuhai: Because it’s not a local, you can reach out and grab it from anywhere in the nesting scope, and that makes it sometimes harder to rationalize about. It’s usuaully nicer to follow a test that conforms to AAA (Arrange-Act-Assert)
<adam12>
This is all heavily opinionated of course.
<adam12>
Some people love deep nesting and it_behaves_like.
malik has quit [Remote host closed the connection]
roshanavand_ has joined #ruby
<AndreYuhai>
adam12: but can you not do AAA with let? I mean it's already handling the arrange part, no?
<AndreYuhai>
But yes in my case for example it was within the "Act" :D
<adam12>
AndreYuhai: It’s arranging it further away from the test/spec. I’m not sure I’d necessarily agree with it more than `cart = build_cart`.
<adam12>
Or to match your spec, `cart = create(:cart)`
jenrzzz has joined #ruby
<AndreYuhai>
So that might make things more obvious and readable I think than what I did in my example
roshanavand_ has quit [Ping timeout: 265 seconds]
<adam12>
I see some people call it DAMP and not WET. Oh well.
jenrzzz has quit [Ping timeout: 265 seconds]
<AndreYuhai>
WET is OK too I think, same number of letters. :D
<adam12>
:P
<adam12>
We love our 3 letter acronyms.
<adam12>
MVC, ADR, WET, DRY, SRP, IOC, JIT
<AndreYuhai>
Though I don't know most of them :D
<adam12>
Can’t forget about AAA and DDD.
<Cork>
Is there a way to get the global comments as an array or something from a module?
Tempesta has quit [Read error: Connection reset by peer]
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
croberts has joined #ruby
alexherbo27 has joined #ruby
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo27 is now known as alexherbo2
jla has joined #ruby
linoge has joined #ruby
<leftylink>
so uh
<leftylink>
jankiest way to generate pascal's triangle?
<leftylink>
now I just need to figure out the function that determines the correct number to associate with each row and we're golden
<adam12>
Cork: Nothing built in to Ruby (tho that might change? I saw discussion about adding it), tho you could probably get something using https://github.com/banister/method_source and some sort of hook to the methods (Module.instance_methods or something).
<leftylink>
okay, jankiest way to generate pascal's triangle
postmodern has joined #ruby
<Papa>
jankiest?
snoyes has joined #ruby
<snoyes>
both "hello".match(/(.)\1/) and /(.)\1/.match("hello") seem to work. Does it matter? Is there a scenario where they'd produce different results?
zipkid has quit [Quit: Connection closed for inactivity]
<leftylink>
according to the documentation, with the code given, not possible to produce different results.
<Nowaker>
i've read this all; still don't know how to get my thing working in rb3
<Nowaker>
maybe it's not possible to pass arguments from a hash as keyword arguments
<rapha>
oh my
TorpedoSkyline has quit [Ping timeout: 252 seconds]
<rapha>
it seems there are multiple methods of placing something in a PDF
<rapha>
this will become a *deep* deep dive ... like ... mariana trench deep
<Nowaker>
rapha: adding content to pdfs is deeper than that
<Nowaker>
unfortunately
<havenwood>
Nowaker: It's showing that `:via` is empty.
<havenwood>
Look at the method raising that error.
<havenwood>
It's called in the one I linked.
<rapha>
Nowaker: need to move an existing bit of text. not create a new one.
<havenwood>
rapha: Normally you'd use a gem, find the node, replace it. Alternatively just munge the text and replace. Whether you can do that depends on the text.
<rapha>
thing named iText 7 claims to have API for stuff like this, unfortunately it's .NET and Java only ... not sure if i even want to begin going that route
<Nowaker>
rapha: there's an old version of itext licensed under lgpl somewhere
<Nowaker>
itext 3 afair
<Nowaker>
should be somewhere in maven repos
<rapha>
also java :(
<havenwood>
rapha: Whatcha replacing?
<Nowaker>
i used it like 10 years ago
<Nowaker>
havenwood: i'm really not an idiot, is via really empty here? {via: [:get, :post]}
<nakilon>
if you want to move some text to the right, prepend some spaces to it )
<rapha>
havenwood: not replacing. i just want to move a certain character elswhere, i.e. change x and y coordinates. occurs around 10 times on each page, document has a couple hundred thousand pages. so would rather not have to do it with Acrobat.
<havenwood>
rapha: eww
<rapha>
yes.
<rapha>
that about sums it up.
<Nowaker>
OH WOW STUPID RAILS
<Nowaker>
first match :something, **all works
<Nowaker>
subsequent ones do not
<Nowaker>
because stupid rails MODIFIED my "all" hash
<Nowaker>
i just did all = {via: [:get, :post]}.freeze and now i see an exception because rails is trying to modify it
dinfuehr has quit [Ping timeout: 252 seconds]
<Nowaker>
fixed by changing "all" var to be a method - def all
<mwlang>
I’m having a really hard time finding the documentation for jRuby’s Profiler. Can anyone point me to the reference documentation for the built in profiler?
alexherbo2 has quit [Read error: Connection reset by peer]
alexherbo2 has joined #ruby
robotbee has joined #ruby
robotbee has quit [Changing host]
jla has quit [Ping timeout: 240 seconds]
AndreYuhai has joined #ruby
<nakilon>
there is #jruby channel IIRC
DTZUZU_ has joined #ruby
DTZUZU has quit [Read error: Connection reset by peer]
DTZUZU has joined #ruby
<mwlang>
thanks @nakilon I took my question there.
DTZUZU_ has quit [Ping timeout: 252 seconds]
explorier has joined #ruby
vondruch has quit [Read error: Connection reset by peer]
neshpion has quit [Remote host closed the connection]
neshpion has joined #ruby
dinfuehr_ has joined #ruby
dinfuehr has quit [Ping timeout: 268 seconds]
xxdxxd has joined #ruby
xxdxxd has quit [Client Quit]
lucasb has joined #ruby
roshanavand_ has joined #ruby
explorier has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
cthu| has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cthulchu_ has quit [Ping timeout: 260 seconds]
explorier has joined #ruby
roshanavand has joined #ruby
roshanavand_ has quit [Ping timeout: 240 seconds]
explorier has quit [Ping timeout: 268 seconds]
Technodrome has joined #ruby
explorier has joined #ruby
maroloccio has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
baojg has quit [Remote host closed the connection]
AndreYuhai has quit [Remote host closed the connection]
jla has quit [Ping timeout: 240 seconds]
lockweel has quit [Quit: Leaving]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has joined #ruby
hiroaki_ has joined #ruby
blackmesa1 has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
daemonwrangler has joined #ruby
al2o3-cr has joined #ruby
reyfi9e has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cthu| has quit [Ping timeout: 240 seconds]
maroloccio has joined #ruby
blackmesa1 has quit [Ping timeout: 258 seconds]
gearnode has quit [Ping timeout: 260 seconds]
robotbee has quit [Ping timeout: 246 seconds]
alexherbo27 has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
Rudd0 has joined #ruby
ruby[bot] has joined #ruby
alexherbo2 has quit [Ping timeout: 265 seconds]
alexherbo27 is now known as alexherbo2
explorier has quit [Ping timeout: 252 seconds]
Technodrome has joined #ruby
gearnode has joined #ruby
bonhoeffer has joined #ruby
jetchisel has quit [Ping timeout: 252 seconds]
bonhoeffer has quit [Ping timeout: 258 seconds]
Axy has quit [Ping timeout: 252 seconds]
linoge has quit [Remote host closed the connection]
explorier has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
explorier has quit [Ping timeout: 268 seconds]
explorie1 has joined #ruby
TCZ has joined #ruby
akem has joined #ruby
Mia has quit [Ping timeout: 268 seconds]
akem has quit [Client Quit]
coniptor has quit [Ping timeout: 240 seconds]
patr0clus has joined #ruby
linoge has joined #ruby
linoge has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has joined #ruby
jetchisel has joined #ruby
stryek has quit [Quit: Connection closed for inactivity]
drusepth has joined #ruby
maroloccio has quit [Quit: WeeChat 3.1]
Na_Klar has joined #ruby
<Na_Klar>
Is it a bug or do I get something wrong: popen2() should join stdout and stderr but when I command "shred" with popen2() it does not pass the output from shred. "shred -v" writes to stderr instead of stdout (for unknown reasons) but popen2 does not catch it.
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Na_Klar>
I have to join stderr with stdout within the command with 2>&1, which works, but as I did understand it, that is what popen2 should do itself.