<leftylink>
sorry, that's just the first thing that comes to mind if someone just says "boy" in one sentence with no other context
graft has quit [Ping timeout: 272 seconds]
skryking has quit [Ping timeout: 258 seconds]
skryking has joined #ruby
planigan has quit [Read error: Connection reset by peer]
leitz has quit [Quit: Leaving]
planigan has joined #ruby
esp32_prog has joined #ruby
esp32_prog has quit [Ping timeout: 272 seconds]
Vingador has joined #ruby
weteamsteve has joined #ruby
codefriar has joined #ruby
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
renich has quit [Remote host closed the connection]
codefriar has quit [Ping timeout: 246 seconds]
Mrbuck has quit [Remote host closed the connection]
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
renich has joined #ruby
code_zombie has quit [Quit: Leaving]
morozovm has joined #ruby
graft has quit [Ping timeout: 246 seconds]
morozovm has quit [Ping timeout: 258 seconds]
evdubs has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
evdubs has joined #ruby
leftylink has quit [Ping timeout: 244 seconds]
leftylink has joined #ruby
ellcs1 has joined #ruby
planigan has quit [Ping timeout: 245 seconds]
brool has joined #ruby
planigan has joined #ruby
renich has quit [Remote host closed the connection]
codefriar has joined #ruby
codefriar has quit [Remote host closed the connection]
<haxx0r>
americans... always doing their own shit. lol :)
<haxx0r>
no 00 for me
<haxx0r>
american roulette actually bigger edge for the house
braincrash has quit [Quit: bye bye]
bambanx has quit [Quit: Leaving]
<haxx0r>
american roulette is a total scam, would never play. 1/35 payout for 1/37 chance vs european 1/35 pay for 1/36...
<haxx0r>
and for red/black it's insane
<haxx0r>
the edge on european tables are 2.7%, while american roulette is 5.26%. who the heck plays on american tables?
brool has quit [Ping timeout: 248 seconds]
haxx0r88 has joined #ruby
braincrash has joined #ruby
haxx0r has quit [Ping timeout: 245 seconds]
<Eiam>
everyone in las vegas?
wald0 has quit [Quit: Lost terminal]
AJA4350 has quit [Quit: AJA4350]
<haxx0r88>
guess what, there is european roulette in vegas and atlantic city
morozovm has quit [Remote host closed the connection]
morozovm has joined #ruby
morozovm has quit [Remote host closed the connection]
morozovm has joined #ruby
morozovm has quit [Remote host closed the connection]
morozovm has joined #ruby
morozovm has quit [Remote host closed the connection]
morozovm has joined #ruby
<Eiam>
shows how much I gamble
<Eiam>
(never)
morozovm has quit [Remote host closed the connection]
morozovm has joined #ruby
morozovm has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gix has joined #ruby
gix- has quit [Ping timeout: 258 seconds]
<baweaver>
Na, SF. We tend to gamble on the stock market along with our friends in NYC
jenrzzz has joined #ruby
esp32_prog has joined #ruby
tdy has joined #ruby
esp32_prog has quit [Ping timeout: 272 seconds]
_whitelogger has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
haxx0r88 has quit [Quit: Ping timeout (120 seconds)]
jenrzzz has joined #ruby
nowhere_man has joined #ruby
nowhereman has quit [Ping timeout: 258 seconds]
houhoulis has quit [Remote host closed the connection]
weteamsteve has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
kyrylo has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
Freshnuts has quit [Read error: Connection reset by peer]
Freshnuts has joined #ruby
vondruch has quit [Quit: vondruch]
<m17>
I am trying got mimic bash shell at /bin/sh using ruby I.e create a PTY in ruby and display the shell. I am able to write and read and write to the Pty but can't do it in realtime, plus not able to get the output of the terminal until I write into it.
esp32_prog has joined #ruby
<m17>
What am I missing here?
blackmesa has joined #ruby
esp32_prog has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
blackmesa has quit [Ping timeout: 258 seconds]
Ai9zO5AP has joined #ruby
haxx0r has joined #ruby
vondruch has joined #ruby
vondruch has quit [Client Quit]
schne1der has joined #ruby
vondruch has joined #ruby
<haxx0r>
is there a function to find the next 10ths number for an integer? for 102 it's 110, for 109 it's 110 ?
envex has quit [Remote host closed the connection]
envex has joined #ruby
<phaul>
shortCircuit__: what are you trying to achieve? this sounds like xy problem
<phaul>
HTTPResponse is given to you by the library, not something that you create...
arahael1 is now known as Arahael
<phaul>
note the " #:nodoc: internal use only " at the documentation
<shortCircuit__>
phaul the problem is a little deep. I have to introduce hystrix in an existing rails project. The project uses faraday as an http client. So I wrote a middleware that wraps the faraday's http call (@app.call env). The problem is if the request fails, and it goes to fallback, I can't just return false, I need to return a, say, mock http response object that has success? and status, body etc
<shortCircuit__>
so that the whole thing is backward compatible
Swyper has quit [Remote host closed the connection]
blackmesa1 has joined #ruby
leitz has joined #ruby
<phaul>
does it work if you set body to '' ? r = Net::HTTPResponse.new("1.1", 503, "hello") ; r.body = ''; r
<rubydoc>
stderr: /usr/lib/ruby/2.6.0/net/http/response.rb:333:in `stream_check': private method `closed?' called for... check link for more (https://carc.in/#/r/70ej)
<al2o3-cr>
ah, oh well.
haxx0r has joined #ruby
<phaul>
but you are setting socket to be the sym :closed? or am I reading that wrong
FastJack has joined #ruby
<al2o3-cr>
phaul: i tested in irb
<phaul>
but def returns :closed?
<al2o3-cr>
phaul: hows that working in pry
<phaul>
let me try here...
<al2o3-cr>
i'm confused
<phaul>
me too
<phaul>
it works here too
<al2o3-cr>
weird hey
<phaul>
but we also defined an instance method closed? on HTTPResponse, maybe that's something to do with it
<al2o3-cr>
hmm, i'm not sure why that should work now
<al2o3-cr>
i thinks it's to do with bindings
<phaul>
I said that wrong. we defined closed? on whatever the self was there. but not HTTPResponse
<leftylink>
so that seems like a good place to look
Ekho has joined #ruby
AndreYuhai has quit [Remote host closed the connection]
AndreYuhai has joined #ruby
jenrzzz has joined #ruby
matheusmoreira has quit [Ping timeout: 246 seconds]
<leitz>
leftylink, thanks! It took me a bit to figure out, I've slowed down on drinking coffee... There were some "require" statements that should have been removed. They are gone and the circular requires went with them.
<ngw>
not sure I understand `Hash.new { |h, key| h[key] = Hash.new(0) }`, what would be in h and key?
octos has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
cow[moo] has joined #ruby
<ngw>
MAGIC! adam12 thanks!
<ngw>
my understanding is that it says whatever is in [whatever][whatever] is 0, is this correct?
<ngw>
didn't know I could do that
<ngw>
thanks!
freddykiks has joined #ruby
rippa has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
<phaul>
ngw, is there a good reason why you need two layers of hash? (going back to what I suggested). if you can make that move of removing the extra layer that would simplify the code everywhere
<ngw>
well because I need to know page_url AND ip
<phaul>
yeah. a hash that maps pairs of page_url and ip to count
<ngw>
the final hash looks like {page_url => { ip1 => 3 visits, ip2 => 1 visit}}
<ngw>
I'm parsing a file that is lines of "url ip"
<ngw>
oh I see what you mean
<phaul>
this has disadvantages too, for instance queries like is page_url hit cannot be easily queried any more. but querying with both url and ip is ok. depends on how you use the hash
houhoulis has joined #ruby
<matheusmoreira>
havenwood: `&.+= 1` what does this mean exactly?
al2o3-cr has quit [Quit: If the universe is a machine where the future is uniquely determined by its present state, it would not be possible to calculate what the future will be.]
dviola has joined #ruby
octos has joined #ruby
al2o3-cr has joined #ruby
voodoofish430 has quit [Ping timeout: 258 seconds]
dbugger has quit [Remote host closed the connection]
mkaito has joined #ruby
mkaito has joined #ruby
mkaito has quit [Changing host]
salerace has joined #ruby
ngw has joined #ruby
orbyt_ has joined #ruby
ngw has quit [Ping timeout: 246 seconds]
BH23 has joined #ruby
_joes_ has joined #ruby
jeremycw has joined #ruby
Ai9zO5AP has quit [Quit: WeeChat 2.4]
BH23 has quit [Remote host closed the connection]
blackmesa1 has quit [Quit: WeeChat 2.4]
ngw has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
dviola has quit [Quit: WeeChat 2.4]
ngw has quit [Ping timeout: 272 seconds]
schne1der has quit [Ping timeout: 272 seconds]
octos has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
FrankDW has quit [Read error: Connection reset by peer]
FrankDW has joined #ruby
FrankDW has quit [Read error: Connection reset by peer]
FrankDW2 has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 258 seconds]
edwardly has quit [Ping timeout: 258 seconds]
ngw has joined #ruby
jenrzzz has joined #ruby
morozovm has joined #ruby
Ai9zO5AP has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
ngw has quit [Ping timeout: 272 seconds]
morozovm has quit [Ping timeout: 248 seconds]
octos has joined #ruby
telnet is now known as uplime
ur5us has joined #ruby
cliluw has quit [Ping timeout: 245 seconds]
cliluw has joined #ruby
ngw has joined #ruby
_joes_ has quit [Quit: _joes_]
ngw has quit [Ping timeout: 246 seconds]
teeigeryuh has joined #ruby
<teeigeryuh>
and so i wake up on the morning and i step outside
<teeigeryuh>
anjd i take a deep breath
<teeigeryuh>
and i get real high
<teeigeryuh>
and i scream from the top of my lungs
<teeigeryuh>
WHAT'S GOING ON?
axsuul has joined #ruby
<teeigeryuh>
wait wrong server
jenrzzz has joined #ruby
<SeepingN>
I said hey
ngw has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ngw has quit [Ping timeout: 272 seconds]
catbusters has joined #ruby
cthu| has quit [Ping timeout: 248 seconds]
esp32_prog has joined #ruby
cliluw has quit [Ping timeout: 268 seconds]
cliluw has joined #ruby
octos has quit [Remote host closed the connection]
<graft>
Mrgoose: you can require 'socket' and use TCPSocket#open
esp32_prog has quit [Ping timeout: 258 seconds]
jcalla has quit [Ping timeout: 246 seconds]
octos has joined #ruby
octos has quit [Remote host closed the connection]
octos has joined #ruby
kyrylo has joined #ruby
ngw has joined #ruby
edwardly has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
kyrylo has quit [Client Quit]
reber has joined #ruby
ngw has quit [Ping timeout: 258 seconds]
cliluw has quit [Ping timeout: 245 seconds]
cliluw has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
reber has quit [Remote host closed the connection]
morozovm has joined #ruby
morozovm has quit [Remote host closed the connection]
morozovm has joined #ruby
ngw has joined #ruby
cliluw has quit [Ping timeout: 268 seconds]
cliluw has joined #ruby
ngw has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
shortCircuit__ has quit [Ping timeout: 272 seconds]
pebble2016 has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
Phil0s0rapt0r has joined #ruby
sameerynho has joined #ruby
Iarfen has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
graft has quit [Ping timeout: 245 seconds]
jeremycw has quit [Ping timeout: 248 seconds]
Ltem has quit [Quit: bye]
morozovm has quit [Remote host closed the connection]
<leftylink>
... well we are quickly getting into #ruby-offtopic category but in response to the above comments about screaming, I submit http://www.poorlydrawnlines.com/comic/goat/
i9zO5AP has joined #ruby
Ai9zO5AP has quit [Ping timeout: 272 seconds]
code_zombie has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 248 seconds]
<phaul>
&fake Movies::BackToTheFuture.quote
<rubydoc>
Next saturday night we're sending you back to the future!
wald0 has joined #ruby
jenrzzz has joined #ruby
<al2o3-cr>
Anthony Joshua v Andy Ruiz Jr what a shit fight that's gonna be
SCHAPiE has quit [Ping timeout: 258 seconds]
graft has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
morozovm has joined #ruby
jinie has joined #ruby
SCHAPiE has joined #ruby
jinie has quit [Client Quit]
polishdub has quit [Quit: leaving]
rafadc has quit [Ping timeout: 244 seconds]
jinie has joined #ruby
rafadc has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
morozovm has quit []
jenrzzz has joined #ruby
esp32_prog has joined #ruby
esp32_prog has quit [Ping timeout: 245 seconds]
shah^ has quit []
vs^ has joined #ruby
Phil0s0rapt0r has quit [Remote host closed the connection]
graft has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
brool has joined #ruby
i9zO5AP has quit [Quit: WeeChat 2.4]
_whitelogger has joined #ruby
cloaked1 has joined #ruby
cloaked1 has quit [Changing host]
cloaked1 has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
catbusters has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
sameerynho has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
budonyc has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]