havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.3, 2.5.5, 2.7.0-preview1: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
r29v has joined #ruby
gix has quit [Ping timeout: 268 seconds]
mcspud has joined #ruby
AJA4350 has quit [Ping timeout: 258 seconds]
Tibian has quit []
queip has quit [Ping timeout: 246 seconds]
code_zombie has joined #ruby
r29v has quit [Quit: r29v]
theRoUS has quit [Ping timeout: 246 seconds]
queip has joined #ruby
crankharder has quit [Ping timeout: 248 seconds]
ogres has joined #ruby
Sina has quit [Read error: Connection reset by peer]
Sina has joined #ruby
strmpnk has quit [Ping timeout: 258 seconds]
englishm has quit [Ping timeout: 258 seconds]
unixcat has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
unixcat has joined #ruby
strmpnk has joined #ruby
englishm has joined #ruby
tdy has joined #ruby
exmortus has quit [Quit: Leaving]
exmortus has joined #ruby
tdy has quit [Ping timeout: 246 seconds]
CCDelivery has joined #ruby
crankharder has joined #ruby
cschneid_ has joined #ruby
tranch has joined #ruby
cd has quit [Quit: cd]
CCDelivery has quit [Remote host closed the connection]
esrse has joined #ruby
crankharder has quit [Ping timeout: 248 seconds]
cschneid_ has quit [Ping timeout: 268 seconds]
cd has joined #ruby
sarink has joined #ruby
armyriad has joined #ruby
Azure|dc has quit [Ping timeout: 268 seconds]
unrael__ has joined #ruby
unrael__ is now known as unreal
bambanx has quit [Quit: Leaving]
cats has quit [Ping timeout: 258 seconds]
Azure has joined #ruby
cats has joined #ruby
Guest1 has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
cats has quit [Ping timeout: 258 seconds]
teardown has quit [Ping timeout: 268 seconds]
Guest1 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cats has joined #ruby
Guest1 has joined #ruby
ellcs has quit [Ping timeout: 268 seconds]
sauvin has quit [Read error: Connection reset by peer]
braincrash has quit [Quit: bye bye]
fphilipe_ has joined #ruby
tdy has joined #ruby
braincrash has joined #ruby
fphilipe_ has quit [Ping timeout: 276 seconds]
cschneid_ has joined #ruby
ellcs has joined #ruby
ellcs has quit [Max SendQ exceeded]
ellcs has joined #ruby
ellcs has quit [Max SendQ exceeded]
ellcs has joined #ruby
uranoss has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
tdy has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
tdy has joined #ruby
sarink has quit [Remote host closed the connection]
cschneid_ has quit [Ping timeout: 244 seconds]
sarink has joined #ruby
sarink has quit [Read error: Connection reset by peer]
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yokel has quit [Read error: Connection reset by peer]
yokel has joined #ruby
Guest1 has quit [Quit: Textual IRC Client: www.textualapp.com]
Azure has quit [Ping timeout: 245 seconds]
donofrio has quit [Remote host closed the connection]
Azure has joined #ruby
hutch has quit [Ping timeout: 244 seconds]
cschneid_ has joined #ruby
dviola has joined #ruby
tranch has quit [Quit: tranch]
hutch has joined #ruby
queip has quit [Ping timeout: 272 seconds]
queip has joined #ruby
ur5us has quit [Remote host closed the connection]
cd has quit [Quit: cd]
cschneid_ has quit [Ping timeout: 268 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zacts has joined #ruby
dellavg_ has joined #ruby
zacts has quit [Client Quit]
sarink has joined #ruby
zacts has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
Inline has quit [Quit: Leaving]
sarink has quit [Remote host closed the connection]
fphilipe_ has joined #ruby
agent_white has quit [Remote host closed the connection]
conta has joined #ruby
conta has quit [Client Quit]
conta has joined #ruby
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
tranch has joined #ruby
sarink has quit [Remote host closed the connection]
fphilipe_ has quit [Ping timeout: 250 seconds]
thunderbirdtr_ has quit [Quit: ZNC 1.7.3 - https://znc.in]
cschneid_ has joined #ruby
hutch has quit [Ping timeout: 246 seconds]
cschneid_ has quit [Ping timeout: 258 seconds]
fphilipe_ has joined #ruby
fphilipe_ has quit [Ping timeout: 258 seconds]
schne1der has joined #ruby
ghostlines has quit [Read error: Connection reset by peer]
ghostlin_ has joined #ruby
ZombieByte has joined #ruby
siasmj_ has joined #ruby
sarink has joined #ruby
peteretep_ has joined #ruby
lol768_ has joined #ruby
nirix has joined #ruby
afisher_ has joined #ruby
wbnns_ has joined #ruby
JayDoubleu_ has joined #ruby
d10n-work_ has joined #ruby
timeless_ has joined #ruby
tweeaks has joined #ruby
twe4ked_ has joined #ruby
vqrs_ has joined #ruby
Fusl has quit [*.net *.split]
galaxie has quit [*.net *.split]
iNs_ has quit [*.net *.split]
d10n-work has quit [*.net *.split]
twe4ked has quit [*.net *.split]
yxhuvud has quit [*.net *.split]
discopatrick_ has quit [*.net *.split]
peteretep has quit [*.net *.split]
afisher has quit [*.net *.split]
wbnns has quit [*.net *.split]
timeless has quit [*.net *.split]
Prira_ has quit [*.net *.split]
tweaks has quit [*.net *.split]
nirix_ has quit [*.net *.split]
siasmj has quit [*.net *.split]
JayDoubleu has quit [*.net *.split]
vqrs has quit [*.net *.split]
shenghi has quit [*.net *.split]
shortdudey123 has quit [*.net *.split]
goez has quit [*.net *.split]
VSpike has quit [*.net *.split]
lol768 has quit [*.net *.split]
wbnns_ is now known as wbnns
siasmj_ is now known as siasmj
afisher_ is now known as afisher
twe4ked_ is now known as twe4ked
d10n-work_ is now known as d10n-work
peteretep_ is now known as peteretep
timeless_ is now known as timeless
JayDoubleu_ is now known as JayDoubleu
shortdudey123 has joined #ruby
Tempesta has quit [Ping timeout: 248 seconds]
phage has quit [Ping timeout: 272 seconds]
phage has joined #ruby
VSpike has joined #ruby
shenghi has joined #ruby
sarink has quit [Remote host closed the connection]
sauvin has joined #ruby
sarink has joined #ruby
unreal has quit [Ping timeout: 248 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
cschneid has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
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.]
unixcat has left #ruby ["WeeChat 2.5"]
lxsameer has joined #ruby
ur5us has joined #ruby
schne1der has quit [Ping timeout: 268 seconds]
al2o3-cr has joined #ruby
ur5us has quit [Ping timeout: 258 seconds]
uranoss has quit [Quit: Connection closed for inactivity]
cschneid has quit [Ping timeout: 248 seconds]
mayurvpatil has joined #ruby
phaul has quit [Quit: :wq]
mayurvpatil has quit [Max SendQ exceeded]
reber has joined #ruby
sarink has quit [Remote host closed the connection]
phaul has joined #ruby
duderonomy has joined #ruby
mayurvpatil has joined #ruby
mayurvpatil has quit [Max SendQ exceeded]
aupadhye has joined #ruby
TomyWork has joined #ruby
sarink has joined #ruby
jinie has quit [Ping timeout: 246 seconds]
fphilipe_ has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sarink has quit [Remote host closed the connection]
deepreds1 has quit [Ping timeout: 272 seconds]
nolanv has quit [Read error: Connection reset by peer]
sarink has joined #ruby
nolanv has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
phaul has quit [Quit: :wq]
phaul has joined #ruby
cschneid has joined #ruby
mikecmpbll has joined #ruby
schne1der has joined #ruby
edwardly has quit [Ping timeout: 245 seconds]
riotjones has joined #ruby
mayurvpatil has joined #ruby
conta has quit [Ping timeout: 244 seconds]
deepreds1 has joined #ruby
mayurvpatil has quit [Client Quit]
TomyWork has quit [Remote host closed the connection]
TomyWork has joined #ruby
cats has quit [Ping timeout: 245 seconds]
edwardly has joined #ruby
cats has joined #ruby
conta has joined #ruby
queip has quit [Ping timeout: 268 seconds]
vondruch has joined #ruby
teclator has quit [Ping timeout: 245 seconds]
queip has joined #ruby
cschneid has quit [Ping timeout: 272 seconds]
mayurvpatil has joined #ruby
mayurvpatil has quit [Max SendQ exceeded]
rainer_tm has quit [Ping timeout: 258 seconds]
rainer_tm has joined #ruby
_axx has quit [Ping timeout: 258 seconds]
deepreds1 has quit [Ping timeout: 258 seconds]
deepreds1 has joined #ruby
riotjones has quit [Ping timeout: 258 seconds]
cats has quit [Ping timeout: 258 seconds]
riotjones has joined #ruby
cschneid has joined #ruby
alem0lars has joined #ruby
cats has joined #ruby
queip has quit [Ping timeout: 248 seconds]
queip has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
code_zombie has quit [Quit: Leaving]
<IGnorAND> morning
cschneid has quit [Ping timeout: 248 seconds]
mayurvpatil has joined #ruby
mayurvpatil has quit [Max SendQ exceeded]
NL3limin4t0r_afk is now known as NL3limin4t0r
conta has quit [Ping timeout: 244 seconds]
riotjones has quit [Ping timeout: 258 seconds]
TomyWork has quit [Ping timeout: 246 seconds]
Fusl has joined #ruby
TomyWork has joined #ruby
ghostlin_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tens0r has joined #ruby
conta has joined #ruby
tens0r has quit [Client Quit]
manakanapa has quit [Ping timeout: 245 seconds]
PaulePanter has quit [Ping timeout: 245 seconds]
SanguineAnomaly has quit [Ping timeout: 264 seconds]
LenPayne has quit [Quit: ZNC 1.7.3 - https://znc.in]
deepreds1 has quit [Ping timeout: 244 seconds]
AJA4350 has joined #ruby
IGnorAND has quit [Ping timeout: 264 seconds]
LenPayne has joined #ruby
PaulePanter has joined #ruby
cschneid has joined #ruby
conta has quit [Ping timeout: 244 seconds]
SanguineAnomaly has joined #ruby
deepreds1 has joined #ruby
unreal has joined #ruby
schne1der has quit [Quit: schne1der]
schne1der has joined #ruby
esrse has quit [Ping timeout: 248 seconds]
conta has joined #ruby
Bish_ has quit [Ping timeout: 245 seconds]
galaxie has joined #ruby
tranch has quit [Quit: tranch]
cschneid has quit [Ping timeout: 246 seconds]
tranch has joined #ruby
ghostlines has joined #ruby
dviola has quit [Quit: WeeChat 2.5]
cow[moo] has joined #ruby
sariyar has quit [Quit: Connection closed for inactivity]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
conta has quit [Ping timeout: 272 seconds]
conta has joined #ruby
IGnorAND has joined #ruby
victorqueiroz has quit [Quit: Connection closed for inactivity]
sandstrom has joined #ruby
tranch has quit [Quit: tranch]
<sandstrom> I'm having a weird issue where `my_var.is_a?(Time) == false` but when I print it `puts my_var.class #=> Time` it looks like it's the right class.
<sandstrom> Has anyone else had issues around this?
<sandstrom> It only occurs on some machines, which is super-weird, so I cannot reliably reproduce it
<phaul> sounds like a non deterministic issue that maybe is timing sensitive? Is there a possibility of race condition in you system?
<phaul> your*
cschneid has joined #ruby
cow[moo] has quit [Read error: Connection reset by peer]
Meanirelli has joined #ruby
lucasb has joined #ruby
jcalla has quit [Ping timeout: 246 seconds]
donofrio has joined #ruby
zodd_ has joined #ruby
jokke has joined #ruby
<jokke> heya
<jokke> ah nevermind
<jokke> i was too quick to give up researching
cschneid has quit [Ping timeout: 258 seconds]
sandstro_ has joined #ruby
sandstrom has quit [Ping timeout: 258 seconds]
sandstrom has joined #ruby
galaxie has quit [Remote host closed the connection]
crankharder has joined #ruby
galaxie has joined #ruby
sandstro_ has quit [Ping timeout: 252 seconds]
kyrylo has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4350 has joined #ruby
lxsameer has quit [Ping timeout: 245 seconds]
x0f_ has quit [Ping timeout: 245 seconds]
sudovancity has joined #ruby
sagax has quit [Ping timeout: 272 seconds]
x0f has joined #ruby
tweeaks is now known as tweaks
sagax has joined #ruby
schne1der has quit [Ping timeout: 245 seconds]
x0f has quit [Ping timeout: 245 seconds]
codefriar has joined #ruby
x0f has joined #ruby
ghostlines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vondruch_ has joined #ruby
ghostlines has joined #ruby
jcalla has joined #ruby
ghostlines has quit [Client Quit]
ghostlines has joined #ruby
ghostlines has quit [Client Quit]
dbugger has joined #ruby
ghostlines has joined #ruby
vondruch has quit [Ping timeout: 248 seconds]
vondruch_ is now known as vondruch
ghostlines has quit [Client Quit]
dbugger has quit [Remote host closed the connection]
ghostlines has joined #ruby
ghostlines has quit [Client Quit]
ghostlines has joined #ruby
ghostlines has quit [Client Quit]
GodFather has joined #ruby
ghostlines has joined #ruby
ghostlines has quit [Client Quit]
Rapture has joined #ruby
x0f has quit [Ping timeout: 258 seconds]
x0f_ has joined #ruby
<jokke> hm okay it seems that my issue is with celluloid::io
<jokke> i'm trying to setsockopt SO_REUSEPORT
<jokke> but i still get Errno::EADDRINUSE
<jokke> ah ok it seems that it raises the error already on the initialization of the TCPServer
Inline has joined #ruby
<jokke> i'm assuming it tries to bind immediately
nowhereman has joined #ruby
gb_away has joined #ruby
x0f_ has quit [Ping timeout: 258 seconds]
duderonomy has joined #ruby
x0f has joined #ruby
hutch has joined #ruby
cschneid has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
victorqueiroz has joined #ruby
mayurvpatil has joined #ruby
yokel has quit [Read error: Connection reset by peer]
nowhereman has quit [Ping timeout: 245 seconds]
yokel has joined #ruby
conta has quit [Ping timeout: 246 seconds]
lxsameer has joined #ruby
nowhereman has joined #ruby
hightower2 has joined #ruby
sarink has quit [Remote host closed the connection]
nowhereman has quit [Ping timeout: 246 seconds]
AJA4351 has joined #ruby
<jokke> ugh ok this is annoying. Celluloid::IO::TCPServer can be instanciated with a BasicSocket, but this has to be a TCPServer
<jokke> and TCPServer doesn't seem to allow setting SO_REUSEPORT before binding
AJA4350 has quit [Ping timeout: 245 seconds]
AJA4351 is now known as AJA4350
queip has quit [Ping timeout: 258 seconds]
<havenwood> jokke: whatcha making?
<jokke> i'm just trying to patch in this feature to an existing project
<jokke> it's a server for some embedded devices that stream data to it
<jokke> i'd like to be able to use the kernels own load balancing for socket
cschneid has quit [Ping timeout: 245 seconds]
<jokke> so that i can spawn up as many instances of the server as i like
queip has joined #ruby
GodFather has quit [Read error: No route to host]
<al2o3-cr> jokke: why do you want set REUSEPORT before binding?
<jokke> because otherwise i can't bind
<jokke> because the port is already in use
sudovancity has quit [Ping timeout: 245 seconds]
<al2o3-cr> ah, i see.
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has joined #ruby
<jokke> is there any way i can instanciate a TCPServer with a Socket?
<jokke> i already discovered that it's all c code
<jokke> so i can't monkey patch the initializer either
NL3limin4t0r has quit [Quit: WeeChat 1.9.1]
conta has quit [Quit: conta]
<al2o3-cr> jokke: s = Socket.new(...); s.setsockopt(...); s.bind(...); s.listen(...) ...
<jokke> yes, but the surrounding code expects to be working with a TCPServer so it calls methods like #closed? on it
<al2o3-cr> jokke: them methods work too.
queip has quit [Quit: bye, freenode]
cschneid has joined #ruby
<jokke> ah ok
<jokke> it's another issue then
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
<al2o3-cr> jokke: are you doing something like this: Celluloid::IO::TCPServer.new TCPServer.new(...) ?
<jokke> yeah
<jokke> right now i'm doing Celluloid::IO::Socket.new(socket)
<jokke> but now i'm getting the following errors
<jokke> E, [2019-06-24T17:00:52.044449 #28550] ERROR -- : !!! System Call Error while accepting new connection: #<Errno::EINVAL: Invalid argument - accept(2)> / Invalid argument - accept(2)
<jokke> ah forgot to call listen
<jokke> let's see
<jokke> alright, looking good
NL3limin4t0r has joined #ruby
schne1der has joined #ruby
cthu| has joined #ruby
cthulchu has quit [Ping timeout: 268 seconds]
<jokke> meh
<jokke> doesn't seem to be working with Celluloid::IO::SSLServer
rippa has joined #ruby
cek has joined #ruby
TomyWork has quit [Ping timeout: 246 seconds]
AJA4350 has quit [Ping timeout: 268 seconds]
cschneid has quit [Ping timeout: 248 seconds]
aupadhye has quit [Remote host closed the connection]
mayurvpatil has quit [Remote host closed the connection]
Macrobiotic has joined #ruby
<havenwood> jokke: Was the project already using Celluloid::IO or you're introducing it?
<jokke> havenwood: it was
<havenwood> jokke: I was just going to suggest looking at async-io if it wasn't, but it is so probably not worth porting.
mayurvpatil has joined #ruby
mayurvpatil has quit [Client Quit]
<jokke> yeah :/
<jokke> i guess i'll open an issue with Celluloid::IO then
<jokke> ah
<jokke> it's unmaintained
<jokke> great
hightower2 has quit [Ping timeout: 245 seconds]
Esa_ has joined #ruby
fphilipe_ has quit [Ping timeout: 272 seconds]
zodd_ has quit [Ping timeout: 248 seconds]
duderonomy has joined #ruby
cschneid has joined #ruby
duderonomy has quit [Ping timeout: 248 seconds]
Lyubo1 has quit [Ping timeout: 272 seconds]
orbyt_ has joined #ruby
Azure has quit [Ping timeout: 245 seconds]
alem0lars has quit [Ping timeout: 244 seconds]
fphilipe_ has joined #ruby
lord4163 has quit [Excess Flood]
lord4163 has joined #ruby
uranoss has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
mikecmpbll has quit [Quit: inabit. zz.]
dbugger has joined #ruby
deepreds1 has quit [Ping timeout: 258 seconds]
mrpropa has joined #ruby
troulouliou_dev has joined #ruby
cschneid has quit [Ping timeout: 258 seconds]
hiroaki has joined #ruby
sandstrom has joined #ruby
nowhereman has joined #ruby
AndreYuhai has joined #ruby
<AndreYuhai> Hi there, I am using Watir to navigate to Aliexpress but sometimes I get this slidebar to slide it to right, however even if slide it manually I still get the error message in the picture. Any idea as to why? This even happens when I am not using watir or any other automation but just manually navigating to Aliexpress https://imgur.com/a/FudHjFW
mikecmpbll has joined #ruby
alem0lars has joined #ruby
ramfjord has joined #ruby
shenghi has quit [Ping timeout: 272 seconds]
rippa has quit [Ping timeout: 245 seconds]
code_zombie has joined #ruby
cliluw has joined #ruby
rippa has joined #ruby
shenghi has joined #ruby
cschneid has joined #ruby
NL3limin4t0r is now known as NL3limin4t0r_afk
cgfbee has quit [Ping timeout: 245 seconds]
<havenwood> We just released a new beta Square Ruby SDK. I'd love any feedback on the user interface. (We're fixing all the implementation details during the beta, so we're focusing on the user-facing interface. https://developer.squareup.com/blog/announcing-square's-new-ruby-sdk
Macrobiotic has quit [Quit: Connection closed for inactivity]
alem0lars has quit [Ping timeout: 248 seconds]
cschneid has quit [Ping timeout: 248 seconds]
sauvin has quit [Ping timeout: 258 seconds]
nowhere_man has joined #ruby
nowhereman has quit [Read error: Connection reset by peer]
nowhere_man has quit [Ping timeout: 258 seconds]
ZombieByte has quit [Ping timeout: 246 seconds]
lxsameer has quit [Ping timeout: 248 seconds]
yokel has quit [Read error: Connection reset by peer]
yokel has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
exmortus has quit [Remote host closed the connection]
exmortus has joined #ruby
<AndreYuhai> how do I rescue net::readtimeout error?
wolfshappen_ has quit [Quit: Waffs have technical problems too]
wolfshappen has joined #ruby
cschneid has joined #ruby
n1v has joined #ruby
nowhere_man has joined #ruby
scp has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
duderonomy has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jmcgnh has quit [Ping timeout: 245 seconds]
duderonomy has quit [Client Quit]
altious2 has quit [Read error: Connection reset by peer]
jmcgnh has joined #ruby
GodFather has joined #ruby
m_antis has joined #ruby
troulouliou_dev has joined #ruby
m_antis_ has joined #ruby
n1v has quit []
n1v has joined #ruby
m_antis has quit [Ping timeout: 244 seconds]
cschneid has quit [Ping timeout: 248 seconds]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
ramfjord has quit [Ping timeout: 246 seconds]
deepreds1 has joined #ruby
unreal has quit [Read error: Connection reset by peer]
troulouliou_dev has quit [Quit: Leaving]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kyrylo has joined #ruby
troulouliou_dev has joined #ruby
Fernando-Basso has joined #ruby
schne1der has quit [Ping timeout: 268 seconds]
kyrylo has quit [Ping timeout: 258 seconds]
dellavg_ has quit [Ping timeout: 268 seconds]
cek has quit [Quit: Connection closed for inactivity]
sandstrom has quit [Quit: My computer has gone to sleep.]
nowhere_man has quit [Ping timeout: 248 seconds]
Azure has joined #ruby
cschneid has joined #ruby
nowhere_man has joined #ruby
Tempesta has joined #ruby
nowhere_man has quit [Remote host closed the connection]
ramfjord has joined #ruby
nowhere_man has joined #ruby
sarink has joined #ruby
doodlebug has joined #ruby
dbugger has quit [Quit: Leaving]
sarink has quit [Ping timeout: 258 seconds]
nowhere_man has quit [Ping timeout: 245 seconds]
yokel has quit [Ping timeout: 258 seconds]
yokel has joined #ruby
reber has quit [Remote host closed the connection]
AJA4350 has joined #ruby
dviola has joined #ruby
cschneid has quit [Ping timeout: 272 seconds]
GodFather has quit [Read error: No route to host]
kaleido has quit [Quit: out]
deepreds1 has quit [Ping timeout: 252 seconds]
kaleido has joined #ruby
GodFather has joined #ruby
duderonomy has joined #ruby
alem0lars has joined #ruby
duderonomy has quit [Client Quit]
SeepingN has joined #ruby
duderonomy has joined #ruby
alem0lars has quit [Ping timeout: 252 seconds]
duderonomy has quit [Client Quit]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Azure has quit [Ping timeout: 252 seconds]
duderonomy has joined #ruby
<havenwood> AndreYuhai: rescue Net::ReadTimeout => e
GodFather has quit [Ping timeout: 252 seconds]
GodFather has joined #ruby
Azure has joined #ruby
cd has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wrkrcoop has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
<wrkrcoop> i need to check that incoming data is json, can i do request.body.class and if its a Hash is that valid way of checking?
<havenwood> wrkrcoop: No.
<wrkrcoop> havenwood: how do i check if its json
<havenwood> wrkrcoop: To clarify, you're using Net::HTTP?
<wrkrcoop> mmmm
<wrkrcoop> im in rails world
<wrkrcoop> but figured i could ask here
<havenwood> wrkrcoop: Okay, so a Rails request?
<wrkrcoop> yeah someones making apost request
<havenwood> wrkrcoop: (So many things have a `request.body`, I wasn't sure.)
<wrkrcoop> ah got it
SeepingN has joined #ruby
<havenwood> wrkrcoop: I'd check the Content-Type rather than trying to type the body content.
<wrkrcoop> havenwood: mmm but im picking a piece off of the body
<wrkrcoop> so even if the content-type is json the thing on the body that im trying to save might not be
<havenwood> wrkrcoop: Ah, okay - then "magic" guessing might be your best bet.
<wrkrcoop> havenwood: what do u mean
<havenwood> wrkrcoop: I mean the `file` command's magic pattern. See: man magic
<havenwood> wrkrcoop: If it's *possibly* valid JSON, you want it to be `true`?
<wrkrcoop> mmm
<wrkrcoop> why can’t i just check if its a hash
nowhere_man has joined #ruby
cschneid has joined #ruby
wrkrcoop has quit [Quit: wrkrcoop]
orbyt_ has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
ramfjord has quit [Ping timeout: 258 seconds]
cschneid has quit [Ping timeout: 248 seconds]
hays_ is now known as hays
duderonomy has joined #ruby
ramfjord has joined #ruby
duderonomy has quit [Client Quit]
cthu| has quit [Ping timeout: 268 seconds]
houhoulis has joined #ruby
duderonomy has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
dviola has quit [Quit: WeeChat 2.5]
nowhereman has joined #ruby
nowhere_man has quit [Ping timeout: 258 seconds]
<havenwood> wrkrcoop: `request.body` wouldn't be a Hash until you deserialize it, right? Also, JSON doesn't always deserialize to a Hash.
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
duderonomy has joined #ruby
hightower2 has joined #ruby
<havenwood> Oh, they left. Anyway, I wonder what Content-Type is and am generally suspicious of the idea of magic mime type detection.
<hightower2> What's the standard File::Find module in ruby?
<havenwood> &ri Find.find
<havenwood> hightower2: It lets you start at the top of a set a file paths and traverse them while doing a thing.
duderonomy has quit [Client Quit]
<hightower2> just checked it, thanks. Still looking for a more robust/capable version though, if anyone is aware of one
duderonomy has joined #ruby
<havenwood> hightower2: For what purpose? Robust how so? You want options? Speed? Reliability?
<havenwood> hightower2: Is top down path traversal what you want at all?
nowhereman has quit [Ping timeout: 245 seconds]
<hightower2> various extra options, although just looking for more convenience and less code that I have to write. I don't argue that Find can be made to work any way a person wants, if extra code around it is added
<havenwood> hightower2: Hrmm. I've found it useable. What are you doing, exactly?
<hightower2> primarily I'd like for it to be able to automatically filter files found based on some regexes or globs, etc.
<hightower2> but as mentioned, it's nothing that can't be added manually with a couple more lines
duderonomy has quit [Client Quit]
doodlebug has quit [Read error: Connection reset by peer]
<havenwood> hightower2: It seems straightforward. ¯\_(ツ)_/¯
<havenwood> File.find(Dir.home) { |path| p path if path.match?(regexp) || File.fnmatch(glob, path) }
duderonomy has joined #ruby
<hightower2> nice one, thanks
doodlebug has joined #ruby
<havenwood> hightower2: String#match? and File.fnmatch should do the trick. :)
<havenwood> hightower2: You might want?: File.basename(path).match?(regexp)
<havenwood> hightower2: And: File.fnmatch(glob, File.basename(path))
<havenwood> (Intermediate variable is appropriate, in that case.)
<hightower2> yep, good one. Need the full path in my case
<havenwood> hightower2: 👍🏽
cschneid has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid has quit [Ping timeout: 252 seconds]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
troulouliou_dev has quit [Ping timeout: 272 seconds]
troulouliou_dev has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby