adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.1, 2.7.3, 2.6.7: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | BLM <3
jenrzzz has joined #ruby
patr0clus has joined #ruby
Azure has joined #ruby
explorier has joined #ruby
explorier has quit [Client Quit]
explorier has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
patr0clus has quit [Quit: Textual IRC Client: www.textualapp.com]
explorier has quit [Ping timeout: 240 seconds]
Na_Klar has joined #ruby
roshanavand_ has joined #ruby
<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]
supercoven has joined #ruby
supercoven has quit [Max SendQ exceeded]
supercoven has joined #ruby
supercoven has quit [Max SendQ exceeded]
supercoven has joined #ruby
reyfi9e has joined #ruby
cd has quit [Quit: cd]
zipkid has joined #ruby
ur5us has joined #ruby
gix- has quit [Ping timeout: 252 seconds]
AndreYuhai has joined #ruby
<AndreYuhai> I've got this test https://paste.ofcode.org/5jB38xKYkcS3VwsA2uX3SE from the book "Agile Web Development with Rails 5.1"
<AndreYuhai> However I am using RSpec
<AndreYuhai> and I am not sure where this test is supposed to go
<AndreYuhai> I mean in which file
<AndreYuhai> or where to test that, in request test, or view or system etc.
<AndreYuhai> In the book that snippet is from the file "../test/controllers/line_items_controller_test.rb"
yunta has quit [Quit: Idle for 30+ days]
lockweel has joined #ruby
supercoven has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
User4588 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
User4588 has joined #ruby
baojg_ has quit [Remote host closed the connection]
baojg has joined #ruby
ur5us has quit [Ping timeout: 258 seconds]
alexherbo2 has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
Rudd0 has joined #ruby
gearnode has quit [Ping timeout: 258 seconds]
gearnode has joined #ruby
ur5us has joined #ruby
AndreYuhai has quit [Ping timeout: 246 seconds]
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
AndreYuhai has joined #ruby
AndreYuhai has quit [Ping timeout: 246 seconds]
ur5us has quit [Ping timeout: 258 seconds]
AndreYuhai has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
AndreYuhai has quit [Ping timeout: 252 seconds]
MalkbabY_ has quit [Ping timeout: 268 seconds]
m27frogy has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
MalkbabY has joined #ruby
AndreYuhai has joined #ruby
maroloccio has joined #ruby
shtirlic has joined #ruby
<AndreYuhai> Is anyone using vim-rails plugin?
<AndreYuhai> I couldn't figure out how to open :Econtroller in a split window instead of replacing the current one
<AndreYuhai> That is being mentioned in the README but I couldn't understand what is meant there
jla has quit [Ping timeout: 252 seconds]
budonyc has joined #ruby
roshanavand_ has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
<adam12> AndreYuhai: :Scontroller ?
MalkbabY_ has joined #ruby
MalkbabY has quit [Ping timeout: 260 seconds]
roshanavand__ has joined #ruby
roshanavand_ has quit [Ping timeout: 260 seconds]
<AndreYuhai> adam12: Thank you!
roshanavand_ has joined #ruby
AndreYuhai has quit [Quit: leaving]
burak has joined #ruby
roshanavand__ has quit [Ping timeout: 240 seconds]
burak is now known as AndreYuhai
AndreYuhai has quit [Quit: Lost terminal]
burak has joined #ruby
burak is now known as AndreYuhai
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
AndreYuhai has quit [Quit: leaving]
AndreYuhai has joined #ruby
roshanavand_ has quit [Ping timeout: 240 seconds]
<AndreYuhai> On line 22
Technodrome has joined #ruby
<AndreYuhai> Which one is a better way of creating a cart?
<AndreYuhai> I've got a let which also creates a cart
<AndreYuhai> So basically I could just call get cart_url(cart) since cart will create a cart
<leah2> yeah, so why not use that?
<AndreYuhai> I was thinking whether that's confusing
<AndreYuhai> or I was wondering what would be the best practice
<leah2> i think that's what let is made for
<AndreYuhai> Okay I will be using let, thanks! I just wanted to ask you guys. :D
<adam12> `let` is easily abused, so just be aware that you are adding a level of indirection. In tests, sometimes WET is better than DRY. ;)
<AndreYuhai> adam12: What does WET stand for? :D
<AndreYuhai> And can you give me an example of where it would be an abuse?
<adam12> AndreYuhai: Nothing; it’s just the opposite of DRY :P
<AndreYuhai> Just to understand better
<AndreYuhai> adam12: That makes it even funnier lol
<adam12> AndreYuhai: describe “something”; let(:something) {}; context “”; context “”; context “”; something()
<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> pinkpandabot: rb (1..5).map { 11 ** _1 }
<pinkpandabot> [11, 121, 1331, 14641, 161051] - https://carc.in/#/r/aw20
<leftylink> okay you object it stops working at 11 ** 5...
<leftylink> but you can solve that problem
<leftylink> pinkpandabot: rb {5=>12, 6=>22}.map { (_2 ** _1).digits(_2 - 1) }
<pinkpandabot> [[1, 5, 10, 10, 5, 1], [1, 6, 15, 20, 15, 6, 1]] - https://carc.in/#/r/aw21
<adam12> Cork: Like `# some comment`?
<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> pinkpandabot: rb (0..6).map { |n| max = (1..n).to_a.combination(n / 2).size; ((max + 2) ** n).digits(max + 1).join(?,) }
<pinkpandabot> ["1", "1,1", "1,2,1", "1,3,3,1", "1,4,6,4,1", "1,5,10,10,5,1", "1,6,15,20,15,6,1"] - https://carc.in/#/r/aw22
<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.
<leftylink> &ri String#match
<leftylink> as noted there.
<snoyes> got it. thans.
<havenwood> snoyes: But there *is* a difference between these two:
<havenwood> /(?<greeting>.)\k<greeting>/ =~ "hello"
<havenwood> "hello" =~ /(?<greeting>.)\k<greeting>/
<havenwood> snoyes: So order of Regexp and String can matter, but it doesn't with your example.
<havenwood> Generally, puts Strings first.
ChmEarl has joined #ruby
mwlang has joined #ruby
hiroaki_ has quit [Ping timeout: 260 seconds]
cuerbot has joined #ruby
elcuervo has quit [Ping timeout: 240 seconds]
<Cork> adam12: cool, and yes that is exactly what i meant (documentation for functions)
<Cork> thx for the link btw
<AndreYuhai> \quit
<AndreYuhai> pff
dviola has quit [Ping timeout: 252 seconds]
<AndreYuhai> sorry :D
AndreYuhai has quit [Quit: leaving]
stryek has joined #ruby
shtirlic has quit [Ping timeout: 265 seconds]
shtirlic has joined #ruby
cd has joined #ruby
<Nowaker> hey guys. bumping to ruby 3 and having a problem with kwargs. this worked before:
<Nowaker> all = {via: [:get, :post]}
<Nowaker> match :something, **all
<Nowaker> what's the ruby 3.0 way of expressing the above?
<adam12> Nowaker: It depends.
<adam12> Nowaker: It’s probably the `match` method that you need to look at. Do you have a stack trace?
<Nowaker> it's "match" from rails routes
jenrzzz has joined #ruby
<Nowaker> looking for the relevant line of code
<adam12> Nowaker: You could try removing the `**` part of all.
<Nowaker> this doesn't work, already tried
<Nowaker> this works: match :something, via: [:get, :post]
<Nowaker> but i want to extract that common part to a variable
<Nowaker> and use of splat **all worked before ruby 3
<Nowaker> now i don't understand how i can pass a splat
<Nowaker> and i refuse to replace-all "**all" with "via: [:get, :post]", that's dumb
jenrzzz has quit [Ping timeout: 246 seconds]
jla has quit [Ping timeout: 260 seconds]
<havenwood> Nowaker: The `all` name seems odd, since it's not all.
<havenwood> Nowaker: Reading that, I'd expect: via: :all
<havenwood> Nowaker: A `via: %i[get post]` doesn't seem so bat to me.
<Nowaker> havenwood: I want all = {via: [:get, :post]}
<havenwood> Nowaker: I'm objecting to the name, "all" not the behavior.
<Nowaker> can you help with ruby 3.0 splat? don't need guidance on naming conentions ;)
<Nowaker> if i need the latter i'd ask about it
<havenwood> Seems you do need guidance on naming conventions. :P
<havenwood> That's a *terrible* name.
<havenwood> `via: :all` is a thing...
<havenwood> Anyways.
jla has joined #ruby
jetchisel has quit [Ping timeout: 252 seconds]
<nakilon> idk what's wrong with the 'all' var name
jetchisel has joined #ruby
<Nowaker> var name is offtopic. any suggestions how to use splat (or something) else correctly with rb3? :-)
<nakilon> it should work
<nakilon> idk about rails
<havenwood> Nowaker: What version of Rails. Looking at latest I don't see why that would fail. Maybe they updated?
<havenwood> Rails 6.1?
<nakilon> oh, they accept that arg without splatting
<nakilon> then really removing the ** should be ok
konsolebox has quit [Ping timeout: 240 seconds]
cuerbot has quit [Read error: Connection reset by peer]
elcuervo has joined #ruby
konsolebox has joined #ruby
MalkbabY has joined #ruby
<Nowaker> indeed it should, as per the code. yet it's complaining i did not pass "via" at all... looking closer
TomyWork has quit [Quit: Leaving]
MalkbabY_ has quit [Ping timeout: 240 seconds]
<Nowaker> def match(path, *rest, &block)
<Nowaker> this is the method called, not the one you pasted
<rapha> does ruby have a thing that allows adjusting the position of a single character in a PDF?
<havenwood> Nowaker: Look in that method, where it calls the one I linked.
<havenwood> rapha: Sure!
<Nowaker> havenwood: it won't get there
<havenwood> rapha: As long as it's text. Harder if it's an image.
<Nowaker> well it does
<havenwood> Nowaker: I'm multitasking, but seems like it does.
<Nowaker> anyway, it doesn't change the result: match :something, all does not work
<rapha> havenwood: nono, it's text. and the character in question seems to be in a "run" of its own.
<rapha> havenwood: so what's the thing called? :P
neshpion has joined #ruby
<Nowaker> code:
<Nowaker> all = {via: [:get, :post]}
<Nowaker> match :run, all
<Nowaker> when changed to:
<Nowaker> match :run, via: [:get, :post]
<Nowaker> the problem is gone
<Nowaker> so splats are effed up in rb3, it seems
<Nowaker> i've no idea what's happening here
<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
cthulchu_ has joined #ruby
<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
<havenwood> Nowaker: For example, if `rest` isn't empty, then `options = rest.pop` here: https://github.com/rails/rails/blob/v6.1.3.1/actionpack/lib/action_dispatch/routing/mapper.rb#L1656
<Nowaker> so it returns a fresh hash for each match call
<havenwood> Nowaker: So it really was getting deleted and via had no arguments.
<havenwood> Nowaker: {via: []}
<havenwood> Hence the error.
<havenwood> It's not a pretty pattern. I prefer functional style.
<havenwood> Alas.
<havenwood> Mutation!
<havenwood> Nowaker: Grats on the solution.
mwlang has quit [Quit: mwlang]
dinfuehr has joined #ruby
<nakilon> "STUPID RAILS" -- no shit, Sherlock )
howdoi has quit [Quit: Connection closed for inactivity]
snoyes has quit [Ping timeout: 252 seconds]
diego1 has joined #ruby
diego1 has left #ruby [#ruby]
dviola has joined #ruby
gix has joined #ruby
robotbee has joined #ruby
jenrzzz has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
mwlang has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
<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]
Rudd0 has quit [Ping timeout: 240 seconds]
baojg has joined #ruby
evdubs_ has joined #ruby
evdubs has quit [Ping timeout: 240 seconds]
jinie has quit [Quit: ZNC 1.8.2 - https://znc.in]
jenrzzz has joined #ruby
jinie has joined #ruby
reyfi9e has quit [Ping timeout: 258 seconds]
evdubs_ is now known as evdubs
evdubs has quit [Quit: Leaving]
drusepth has quit [Ping timeout: 240 seconds]
evdubs has joined #ruby
jla has joined #ruby
MalkbabY_ has joined #ruby
MalkbabY has quit [Ping timeout: 265 seconds]
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.
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo2 has joined #ruby
robotbee has joined #ruby
gearnode has quit [Ping timeout: 258 seconds]
jetchisel has quit [Ping timeout: 258 seconds]
ur5us_ has joined #ruby
ur5us has quit [Ping timeout: 258 seconds]
<adam12> Na_Klar: No. You want popen2e
<Na_Klar> what does popen2 do then different from popen3?