Inoperable has quit [Quit: All your buffer are belong to us!]
Inoperable has joined #ruby
vk has quit [Ping timeout: 240 seconds]
Technodrome has quit [Ping timeout: 240 seconds]
nicolas_ has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
<teardown>
Signal.list only show half of what 'kill -l' shows on this linux system. why would it do that
ChmEarl has quit [Quit: Leaving]
aremaref has quit [Ping timeout: 260 seconds]
Fusl has quit [Ping timeout: 268 seconds]
TCZ has quit [Quit: Diabe? tkwi w szczegó?ach]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
drincruz_ has joined #ruby
Fusl has joined #ruby
aremaref has joined #ruby
mroulston has joined #ruby
aremaref has quit [Ping timeout: 256 seconds]
mroulston has quit [Client Quit]
_whitelogger has joined #ruby
infernix has quit [Ping timeout: 264 seconds]
ruurd has quit [Read error: Connection reset by peer]
ruurd has joined #ruby
aremaref has joined #ruby
teardown_ has joined #ruby
teardown has quit [Ping timeout: 240 seconds]
centrx_ has quit []
jlindgren has joined #ruby
Fusl has quit [Excess Flood]
Fusl has joined #ruby
Technodrome has joined #ruby
aremaref has quit [Ping timeout: 240 seconds]
cthu| has quit [Ping timeout: 256 seconds]
Swyper has joined #ruby
crankharder has joined #ruby
crankharder has quit [Ping timeout: 240 seconds]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 272 seconds]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 240 seconds]
Swyper has quit [Remote host closed the connection]
elcuervo has joined #ruby
crankharder has joined #ruby
cuerbot has quit [Ping timeout: 260 seconds]
Swyper has joined #ruby
crankharder has quit [Ping timeout: 256 seconds]
crankharder has joined #ruby
nowhereman has quit [Remote host closed the connection]
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
nowhereman has joined #ruby
Swyper has quit [Ping timeout: 260 seconds]
crankharder has quit [Ping timeout: 256 seconds]
crankharder has joined #ruby
infernix has joined #ruby
akem_ has quit [Quit: Leaving]
crankharder has quit [Ping timeout: 264 seconds]
ur5us has quit [Ping timeout: 264 seconds]
ur5us has joined #ruby
crankharder has joined #ruby
akem has joined #ruby
crankharder has quit [Ping timeout: 240 seconds]
_whitelogger has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
crankharder has joined #ruby
teardown_ has quit [Ping timeout: 240 seconds]
essem has joined #ruby
crankharder has quit [Ping timeout: 272 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Iarfen has quit [Remote host closed the connection]
nowhereman has quit [Ping timeout: 272 seconds]
aremaref has joined #ruby
aremaref has quit [Ping timeout: 240 seconds]
drincruz_ has quit [Ping timeout: 256 seconds]
ur5us has joined #ruby
factormystic has quit [Ping timeout: 256 seconds]
blackmesa has joined #ruby
icarus has joined #ruby
jmcgnh has quit [Ping timeout: 256 seconds]
Zedgamer has joined #ruby
zenspider has quit [Quit: ZNC 1.6.6+deb1ubuntu0.2 - http://znc.in]
<Zedgamer>
hi
<Zedgamer>
this is zed from theodinproject
zenspider has joined #ruby
jmcgnh has joined #ruby
kristian_on_linu has joined #ruby
zacts has joined #ruby
zacts has quit [Client Quit]
ur5us has quit [Ping timeout: 264 seconds]
essem has quit [Ping timeout: 240 seconds]
nofxx__ has joined #ruby
nofxx_ has quit [Ping timeout: 256 seconds]
Zedgamer has quit [Read error: No route to host]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 240 seconds]
crankharder has joined #ruby
icarus has quit [Ping timeout: 240 seconds]
Xiti has quit [Quit: Leaving]
crankharder has quit [Ping timeout: 256 seconds]
Xiti has joined #ruby
crankharder has joined #ruby
crankharder has quit [Ping timeout: 265 seconds]
helpa-bot has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
helpa has quit [Remote host closed the connection]
helpa-bot has quit [Remote host closed the connection]
helpa has joined #ruby
Fusl has quit [Max SendQ exceeded]
Fusl has joined #ruby
cloud69 has joined #ruby
factormystic has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
orbyt_ has joined #ruby
woodruffw has quit [Ping timeout: 256 seconds]
woodruffw has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Changing host]
al2o3-cr has joined #ruby
akem_ has joined #ruby
Xiti has quit [Ping timeout: 246 seconds]
akem has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
infosec_yo has joined #ruby
<infosec_yo>
is ruby nice ?
cd has quit [Ping timeout: 264 seconds]
infosec_yo has left #ruby [#ruby]
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
howdoi has quit [Quit: Connection closed for inactivity]
crankharder has joined #ruby
Xiti has joined #ruby
arne_ has joined #ruby
<arne_>
does somebody know how i make Net::HTTP not unset the socket after the first request
blackmesa has joined #ruby
<arne_>
i tried "keep_alive_timeout = 300" but that doesn't do the trick
ellcs has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
blackmesa1 has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
postmodern has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
al2o3-cr has quit [Ping timeout: 256 seconds]
NeoThermic_II is now known as NeoThermic
roshanavand has joined #ruby
roshanavand has quit [Ping timeout: 256 seconds]
<nakilon>
arne_, IIRC it depends on methods that you use to read; there is some method #finish that you can dive into the source code to find the socket object variable
ellcs has quit [Read error: Connection reset by peer]
ellcs has joined #ruby
<arne_>
nakilon: bleh, i'd like the http connection to never close
<arne_>
and the internals aren't pretty
<arne_>
if i call .start on the http connection, it doesn't set Connection: close as a header, and that enables me to use the "keep_alive_timeout"
<arne_>
but that still gives me a limited time do to requests
<arne_>
this should be easier, imho
<nakilon>
arne_ from this old commit in my code I see that #start has a block form that closes connection while non-block form didn't and that was causing handlers leaks; not sure though was the socket still reusable
<boc_tothefuture>
Hey there.. I was playing around with something in ruby and trying to understand what exactly is going on.. because it was the opposite of what I expected. If I create an object in response to method_missing and that object defines the + method (which then ruby gives the +=) method.. what exactly is happening? I expected += to end up creating
<boc_tothefuture>
a variable and assigning the result of the operation to it.. But it doesn't seem to do that? Is that a special case of the += magic?
<leah2>
x.foo += 5 will send a method_missing for :foo, then for :foo=
<boc_tothefuture>
but lets say there is no x
<boc_tothefuture>
it's just foo
<boc_tothefuture>
so the base method_missing not in a particular class.
<leah2>
then it will not call method_missing but create a local variable
<leah2>
pretty sure
<boc_tothefuture>
it doesn't seem to create a local variable.
<leah2>
oh, it calls :foo and then creates a local variable maybe?
<boc_tothefuture>
which surprised me
<leah2>
foo = will never call :foo=
<leah2>
you need to write self.foo =
<leah2>
or +=
jkprg has quit [Quit: jkprg]
<boc_tothefuture>
but if you don't.. what exaclty is happening?
jkprg has joined #ruby
<boc_tothefuture>
ok, so if you do += on method missing.. it carries out the plus operation and skips the assignment?
<boc_tothefuture>
This is the behavior I am desiring, but it was just curious to me.
<boc_tothefuture>
let me share a gist.
nowhereman has quit [Ping timeout: 258 seconds]
<jhass>
boc_tothefuture: can you post an example of what you're looking at to https://carc.in/#/rb
<boc_tothefuture>
After line 17, I would think line 19 would return String as the class.
<boc_tothefuture>
But it doesn't. It calls method_missing again
<boc_tothefuture>
have to move locations.. bbiab.
boc_tothefuture has quit [Remote host closed the connection]
master_woo has joined #ruby
master_woo has quit [Remote host closed the connection]
jkprg has quit [Quit: jkprg]
ruurd has quit [Quit: ZZZzzz…]
ruurd has joined #ruby
kristian_on_linu has quit [Remote host closed the connection]
stryek has joined #ruby
mbrndtgn has joined #ruby
aremaref has joined #ruby
boc_tothefuture has joined #ruby
<boc_tothefuture>
@jhass - did you get a chance to look at that gist? Not sure if you know what is going on there.
<jhass>
sorry, not much
<jhass>
you probably ran into some edge cases here
<jhass>
so my answer would be "don't do this, you won't need this" :P
<boc_tothefuture>
well. I am not doing that particular thing.. but I was overriding method missing.. and the object I did it with has + defined.. so I was wondering what happened..
alexceder has joined #ruby
<boc_tothefuture>
Which seems to be nothing.. which is the right answer.. I just wanted to understand why.
<jhass>
yeah, not sure. Like I learning foo = anywhere in the scope should define the local variable and shadow any method call, but then https://carc.in/#/r/a2yj
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
davispuh has joined #ruby
orbyt_ has joined #ruby
<leah2>
boc_tothefuture: as said, foo= is only triggered with explicit receiver: https://carc.in/#/r/a2ya
<boc_tothefuture>
ok, so needs an explicit receiver.. that makes sense.. thanks!
<leah2>
then it should work fine
<leah2>
and will call without = before
<boc_tothefuture>
Shouldn't it raise an error? Unexpected operator?
<leah2>
where?
<boc_tothefuture>
When you do += without an explicit receiver..
<leah2>
no, it creates a local variable
<boc_tothefuture>
but it doesn't seem to.. becuase it doesn't exist the next line down because it calls method missing agian.
<Eiam>
" For example, the automotive industry has in recent years taken Qt as a fundamental technology for the development of digital entertainment and control systems. "
<Intelo>
by the way, I am doing all this to install redmine
<RickHull>
what OS?
<Intelo>
Ubuntu lts 20
<RickHull>
why not use ubuntu package manager for this stuff?
<Intelo>
that has old ruby and old redmine
<RickHull>
ok -- do you plan to upgrade today's install in the next year or so? you might give some thought to what that will be like. that's where using a package manager starts to pay off. are the old packages actually a problem?
<Intelo>
RickHull: you are absolutely correct but redmine features (latest) has this cost
<Intelo>
RickHull: the problem is that old versions don't have those features
<RickHull>
personally, I am fan of using ruby-install and chruby if I need to possibly use newer (or older) rubies
<Intelo>
hm
<RickHull>
if you don't expect to need a newer ruby later, then you're on a good track
<Intelo>
RickHull: I installed but when I do `ruby -v`, it says not installed
<RickHull>
likely because `ruby` is not currently in your PATH
<Intelo>
correct
<Intelo>
wil fix
<RickHull>
remember to reload your shell session after updating PATH (in whichever shell startup file)
<Intelo>
RickHull: so if I don't use chruby, but this one, I can always uninstall and install new one. No?
<Intelo>
RickHull: how to reload
<RickHull>
just start a new shell session is the easiest
<RickHull>
and yes, you can always install a newer ruby and point to it in your PATH
<RickHull>
chruby helps manage this for you, e.g. when project A needs ruby 2.5 and project B wants ruby 2.7
Swyper has quit [Remote host closed the connection]
<Intelo>
I got the ruby now
<Intelo>
2.7
teardown has joined #ruby
<RickHull>
how about `which gem` ?
rubydoc has quit [Ping timeout: 240 seconds]
phaul has quit [Ping timeout: 256 seconds]
<Intelo>
RickHull: Am.. I think I will soon be lost. Should I just git clone redmineRepo and then do some magic command like gem install rubyonrails?
<RickHull>
no clue. the redmine docs should explain how to set it up
<Intelo>
RickHull: at a glance, they show things for v2.5
<RickHull>
so it looks like redmine supports ruby 2.4
<RickHull>
i don't know why you aren't using OS packages
Swyper has quit [Ping timeout: 260 seconds]
akem_ has joined #ruby
Mia has joined #ruby
x0n has joined #ruby
akem__ has joined #ruby
akem has quit [Ping timeout: 246 seconds]
x0n- has quit [Ping timeout: 260 seconds]
<Intelo>
RickHull: to get latest redmine. thats why
Axy has quit [Ping timeout: 265 seconds]
<RickHull>
which version of redmine? the page you linked shows trunk still supports ruby 2.4
akem_ has quit [Ping timeout: 240 seconds]
<RickHull>
I found a bug in truffleruby, but trying to see if it's already known. what is the feature called that does range expansion inside an array literal?
<RickHull>
e.g. a = [*1..5, *7..10]
<RickHull>
should result in [1, 2, 3, 4, 5, 7, 8, 9, 10]
<Intelo>
RickHull: this is what I was telling you in start that I might not have write pemission in /opt https://imgur.com/gGFptvY.png
BenDover has quit [Quit: BenDover]
priodev has joined #ruby
<leftylink>
21:49:31 < RickHull> e.g. a = [*1..5, *7..10]
<leftylink>
that's most likelyto e called a range splat
phaul has joined #ruby
<RickHull>
thanks
<leftylink>
probably not the specific phrase "range splat"; just splat is the most well known name for that operator. and then it's being applied to a range
rubydoc has joined #ruby
roshanavand has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
braincrash has quit [Ping timeout: 256 seconds]
<Intelo>
RickHull: havenwood successfully isntalled ruby and redmine. Thanks
<RickHull>
:D
biggtimber has joined #ruby
TCZ has quit [Quit: Diabe? tkwi w szczegó?ach]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
rubydoc has quit [Ping timeout: 240 seconds]
phaul has quit [Ping timeout: 260 seconds]
roshanavand has quit [Quit: Quitting...]
roshanavand has joined #ruby
phaul has joined #ruby
rubydoc has joined #ruby
postmodern has joined #ruby
ruby[bot] has quit [Remote host closed the connection]