J-Lawson has quit [Remote host closed the connection]
J-Lawson27 has quit [Remote host closed the connection]
_whitelogger has joined #ruby
rrichardsr3 has joined #ruby
sphex has joined #ruby
queip has quit [Ping timeout: 276 seconds]
rusbu has quit [Ping timeout: 265 seconds]
queip has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
drincruz has quit [Ping timeout: 276 seconds]
poontangmessiah has quit [Read error: Connection reset by peer]
rusbu has joined #ruby
drincruz has joined #ruby
queip has quit [Ping timeout: 240 seconds]
chalkmonster has joined #ruby
queip has joined #ruby
bambanx has quit [Quit: Leaving]
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4350 has joined #ruby
tpanarch1st_ has joined #ruby
beanie__ has quit [Ping timeout: 240 seconds]
baojg has quit [Remote host closed the connection]
queip has quit [Ping timeout: 240 seconds]
baojg has joined #ruby
queip has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
sh7d has quit [Ping timeout: 252 seconds]
MrCrackPot has quit [Remote host closed the connection]
MrCrackPot has joined #ruby
kobain has quit [Ping timeout: 240 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
rrichardsr3 has quit [Quit: Apparantly my attempt to stay awake has failed...]
rwb has quit [Ping timeout: 245 seconds]
unreal_ has quit [Ping timeout: 240 seconds]
unreal has joined #ruby
AJA4350 has quit [Quit: AJA4350]
gavlee has quit [Excess Flood]
gavlee has joined #ruby
alfiemax has joined #ruby
cthulchu has quit [Ping timeout: 240 seconds]
rrichardsr3 has joined #ruby
queip has quit [Ping timeout: 276 seconds]
queip has joined #ruby
drincruz has quit [Ping timeout: 240 seconds]
drincruz has joined #ruby
rrichardsr3 has quit [Quit: He who dares .... wins.]
code_zombie has quit [Quit: Leaving]
drincruz has quit [Ping timeout: 240 seconds]
queip has quit [Ping timeout: 240 seconds]
laudecay has joined #ruby
queip has joined #ruby
imtravis has quit [Ping timeout: 276 seconds]
dellavg has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.6]
imtravis has joined #ruby
drincruz has joined #ruby
queip has quit [Ping timeout: 240 seconds]
queip has joined #ruby
Swyper has quit [Remote host closed the connection]
imtravis has quit [Ping timeout: 252 seconds]
drincruz has quit [Ping timeout: 252 seconds]
tpanarch1st_ has quit [Ping timeout: 240 seconds]
tpanarch1st_ has joined #ruby
queip has quit [Ping timeout: 245 seconds]
queip has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
jacksoow has quit [Ping timeout: 252 seconds]
Swyper has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has quit [Ping timeout: 252 seconds]
drincruz has joined #ruby
cxl has quit [Quit: bye]
Technodrome has quit [Read error: Connection reset by peer]
drincruz has quit [Ping timeout: 250 seconds]
cxl has joined #ruby
dionysus69 has joined #ruby
SeepingN has quit [Ping timeout: 240 seconds]
queip_ has joined #ruby
queip has quit [Ping timeout: 240 seconds]
queip_ is now known as queip
conta has joined #ruby
cxl has quit [Quit: bye]
cxl has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
conta has quit [Remote host closed the connection]
lineus has quit [Ping timeout: 260 seconds]
sandstrom has joined #ruby
znz_jp has quit [Remote host closed the connection]
znz_jp has joined #ruby
conta has joined #ruby
Intelo has joined #ruby
shaman42 has quit [Remote host closed the connection]
sandstrom has quit [Quit: My computer has gone to sleep.]
Mia has quit [Read error: Connection reset by peer]
sauvin has joined #ruby
ravenousmoose has joined #ruby
chalkmonster has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
laudecay has quit [Read error: Connection reset by peer]
mniip has joined #ruby
queip_ has joined #ruby
queip has quit [Ping timeout: 276 seconds]
queip_ is now known as queip
queip has quit [Ping timeout: 276 seconds]
causasui has quit [Ping timeout: 246 seconds]
queip has joined #ruby
laudecay has joined #ruby
sandstrom has joined #ruby
queip has quit [Ping timeout: 245 seconds]
queip has joined #ruby
causasui has joined #ruby
laudecay has quit [Read error: Connection reset by peer]
sandstrom has quit [Quit: My computer has gone to sleep.]
TomyWork has joined #ruby
sandstrom has joined #ruby
drincruz has joined #ruby
queip has quit [Ping timeout: 246 seconds]
drincruz has quit [Ping timeout: 240 seconds]
queip has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
queip has quit [Ping timeout: 265 seconds]
tpanarch1st_ has quit [Ping timeout: 240 seconds]
laudecay has joined #ruby
Intelo has quit [Ping timeout: 265 seconds]
_Joes_ has joined #ruby
BH23 has joined #ruby
ellcs has joined #ruby
laudecay has quit [Read error: Connection reset by peer]
Intelo has joined #ruby
laudecay has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
lineus has joined #ruby
FlorianFa has joined #ruby
mikecmpbll has joined #ruby
<dionysus69>
Hello everyone, I am looking for a rails developer who is looking for remote work, the pay isn't high though, let me know in PM if interested
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
schne1der has joined #ruby
sandstrom has joined #ruby
causasui has quit [Ping timeout: 252 seconds]
Jonopoly has joined #ruby
Intelo has quit [Ping timeout: 240 seconds]
Intelo has joined #ruby
cd has quit [Quit: cd]
lxsameer has joined #ruby
Intelo has quit [Ping timeout: 250 seconds]
phaul_ has joined #ruby
drincruz has joined #ruby
strika has joined #ruby
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drincruz has quit [Ping timeout: 252 seconds]
Intelo has joined #ruby
wnd-trans has joined #ruby
wnd has quit [Read error: No route to host]
phaul_ has quit [Ping timeout: 276 seconds]
phaul_ has joined #ruby
wnd-trans is now known as wnd
lalitmee has joined #ruby
ua has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
phaul_ has quit [Quit: WeeChat 2.6]
BH23 has quit [Read error: Connection reset by peer]
_Joes_ has quit [Write error: Connection reset by peer]
suukim has joined #ruby
lalitmee has quit [Quit: Leaving]
laudecay has quit [Ping timeout: 250 seconds]
conta has quit [Quit: conta]
conta has joined #ruby
salerace has joined #ruby
beefjoe has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
infinityfye has joined #ruby
Nicmavr has joined #ruby
alfiemax has joined #ruby
drincruz has joined #ruby
akemhp_ has joined #ruby
drincruz has quit [Ping timeout: 265 seconds]
akem has quit [Ping timeout: 240 seconds]
rwb has joined #ruby
akem__ has joined #ruby
stryek has joined #ruby
akemhp_ has quit [Ping timeout: 240 seconds]
drincruz has joined #ruby
salerace has quit [Quit: salerace]
drincruz has quit [Ping timeout: 265 seconds]
akemhp has joined #ruby
akem__ has quit [Ping timeout: 265 seconds]
akemhp has quit [Ping timeout: 265 seconds]
ua has joined #ruby
Swyper has quit [Remote host closed the connection]
infinityfye has quit [Ping timeout: 245 seconds]
Swyper has joined #ruby
rwb has quit [Ping timeout: 276 seconds]
sagax has quit [Quit: Konversation terminated!]
AJA4350 has joined #ruby
sagax has joined #ruby
infinityfye has joined #ruby
infinityfye has quit [Client Quit]
strika has quit [Ping timeout: 260 seconds]
alfiemax has quit [Remote host closed the connection]
Macrobiotic has joined #ruby
ravenousmoose has joined #ruby
ravenousmoose has quit [Ping timeout: 276 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
strika has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
clemens3 has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
DaniG2k has joined #ruby
beefjoe has quit [Ping timeout: 245 seconds]
strika has left #ruby [#ruby]
bsdbandit-01 has joined #ruby
AJA4351 has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
Swyper has quit [Remote host closed the connection]
DaniG2k has quit [Quit: leaving]
beefjoe has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
<Bish>
what's a good way to get only selected things from a hash
<Bish>
{a:3,b:2,c:1}
<Bish>
and i only want [:a,:b]
<Bish>
sure i could .select { |k| [:a,:b].include?(k) }
<Bish>
but is there a better way?
<Bish>
"better"
linuxdaemon has quit [Quit: Updating details, brb..]
<adam12>
Bish: Hash.slice if you're version of Ruby supports it.
drincruz has joined #ruby
<Bish>
im not a ruby version :(
<adam12>
Bish: Hah.
lucasb has joined #ruby
Swyper has joined #ruby
linuxdaemon has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
vondruch_ has joined #ruby
vondruch_ is now known as vondruch
drincruz has quit [Ping timeout: 246 seconds]
Mia has quit [Ping timeout: 265 seconds]
drincruz has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
Axy has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
dviola has joined #ruby
DTZUZO has quit [Ping timeout: 250 seconds]
conta has quit [Ping timeout: 250 seconds]
krawchyk has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
Axy has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
yann-kaelig has joined #ruby
skryking has joined #ruby
suukim has quit [Quit: Konversation terminated!]
Rapture has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
ogres has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
dviola has quit [Quit: WeeChat 2.6]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akemhp has joined #ruby
clemens3 has quit [Quit: WeeChat 1.6]
Intelo has quit [Ping timeout: 265 seconds]
Intelo has joined #ruby
al2o3-cr has quit [Remote host closed the connection]
Intelo has quit [Ping timeout: 276 seconds]
al2o3-cr has joined #ruby
krawchyk has quit [Quit: krawchyk]
krawchyk has joined #ruby
grilix has joined #ruby
alfiemax has joined #ruby
al2o3-cr has quit [Ping timeout: 260 seconds]
Intelo has joined #ruby
krawchyk has quit [Quit: krawchyk]
Swyper has quit [Remote host closed the connection]
snickers has joined #ruby
Macrobiotic has quit [Quit: Connection closed for inactivity]
akemhp_ has joined #ruby
akem__ has joined #ruby
AJA4351 has joined #ruby
akem__ has quit [Remote host closed the connection]
krawchyk has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
akemhp has quit [Ping timeout: 265 seconds]
akem__ has joined #ruby
akemhp_ has quit [Ping timeout: 240 seconds]
krawchyk has quit [Client Quit]
Intelo has quit [Ping timeout: 240 seconds]
akemhp_ has joined #ruby
akem__ has quit [Ping timeout: 265 seconds]
akemhp has joined #ruby
akemhp_ has quit [Ping timeout: 240 seconds]
akemhp_ has joined #ruby
ellcs has quit [Ping timeout: 245 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
akemhp has quit [Ping timeout: 250 seconds]
alfiemax has quit [Remote host closed the connection]
beefjoe has quit [Remote host closed the connection]
DTZUZO has joined #ruby
al2o3-cr has joined #ruby
Intelo has joined #ruby
ellcs has joined #ruby
rippa has joined #ruby
DTZUZO has quit [Quit: WeeChat 2.0]
Jonopoly has quit [Quit: WeeChat 2.5]
AJA4351 has joined #ruby
AJA4351 has quit [Read error: Connection reset by peer]
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4350 has joined #ruby
imtravis has joined #ruby
bsdband22 has joined #ruby
krawchyk has joined #ruby
TomyWork has quit [Ping timeout: 246 seconds]
bsdbandit-01 has quit [Ping timeout: 276 seconds]
causasui has joined #ruby
imtravis has quit [Ping timeout: 276 seconds]
akem__ has joined #ruby
bitwinery has joined #ruby
akemhp_ has quit [Ping timeout: 240 seconds]
wildtrees has joined #ruby
GodFather has quit [Remote host closed the connection]
GodFather has joined #ruby
sandstrom has joined #ruby
AJA4351 has joined #ruby
poontangmessiah has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
bsdbandit-01 has joined #ruby
cesario_ has joined #ruby
cesario has joined #ruby
cthulchu has joined #ruby
bsdband22 has quit [Ping timeout: 276 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
Intelo has quit [Ping timeout: 245 seconds]
akem__ has quit [Ping timeout: 246 seconds]
RougeRR has joined #ruby
<RougeRR>
hi
<RougeRR>
anyone got experience with fluentd gem/log driver?
<RougeRR>
im struggling with buffer overflow handling. seems to only raise an exception every other time
sh7d has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
<teardown>
isnt the correct way to this to use IO.select ?
<adam12>
teardown: A few different ways. IO.select being one of them.
<teardown>
adam12: ok thanks, i'll read about IO.select then
<adam12>
teardown: Do you get any output from the loop? My guess it's blocked by the server.
<teardown>
adam12: yes, i get all the output the server generates, but then once there is nothing else coming from the server the loop hangs
<adam12>
teardown: Presumably the socket is still open then, so the client doesn't know to end. gets blocks forever.
<teardown>
yeah. i tried to break if r.nil? but couldnt get it to work
<adam12>
teardown: You'd want a more non-naieve solution.
<adam12>
teardown: gets is just sitting there. If the server doesn't send anything else, or close the socket, it won't exit. Does the server send some sort of EOM flag?
cesario_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sh7d>
teardown, then, when connection is closed, and if i remeber correctly, when you will call to read method, you will get exception that you have to handle
<teardown>
adam12: yes i know gets is causing it to hang, i just havent been able to figure out how to test and break or timeout when it happens
<sh7d>
or readline, or gets, etc
<teardown>
sh7d: thanks, i'll try that
<teardown>
setting a timeout like that should work here. thank you
<sh7d>
anyway, read about socket options, SO_KEEPALIVE can be sufficient for your case
<sh7d>
but experiment with that as you want :)
cgibsonmm has joined #ruby
cgibsonmm has quit [Remote host closed the connection]
sagax has quit [Quit: Konversation terminated!]
buckworst has quit [Quit: WeeChat 2.6]
<al2o3-cr>
teardown: while data = s.gets; p data; break if s.nread.zero?; end
AJA4351 has joined #ruby
_mak has left #ruby [".."]
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
<teardown>
al2o3-cr: perfect, thank you! looks like i need to read all the socket documentaiton
<sh7d>
al2o3-cr, it will work ?
<al2o3-cr>
sh7d: yes.
akemhp has joined #ruby
<sh7d>
>Returns number of bytes that can be read without blocking.
<sh7d>
i think this depends of the case then :)
<teardown>
hm. where does that #nread method come from? is it in core
<sh7d>
al2o3-cr, tell me if i'm wrong, but if for example there is implemented chat protocol, and the client may have to wait to write message, nread returns zero and break the loop
vrih has quit [Ping timeout: 240 seconds]
vrih has joined #ruby
sameerynho has joined #ruby
<al2o3-cr>
sh7d: nread check whether there is anything in the buffer, if there is, returns number of bytes that can be read without blocking, otherwize return 0 (buffer empty)
<sh7d>
and the buffer may be empty after you read line
<sh7d>
but the connection is not closed
<al2o3-cr>
sh7d: then close the connection
zenspider has quit [Ping timeout: 265 seconds]
<sh7d>
but you dont want to, you want to wait for another party to send data to you
<al2o3-cr>
sh7d: what are you even asking?
gix has joined #ruby
<sh7d>
i just dont think that is good solution, but i'm to lazy to test that so i'm just theorize :)
sauvin has quit [Read error: Connection reset by peer]
zenspider has joined #ruby
ellcs1 has joined #ruby
<teardown>
hm, break if s.nread.zero? didnt work in my case
<al2o3-cr>
well, well, well... that obviously won't work.
<al2o3-cr>
teardown: you didn't put a sleep in the paste.
AJA4350 has quit [Ping timeout: 252 seconds]
<sh7d>
but sleep is not a right solution :)
<sh7d>
IMO
<al2o3-cr>
in actual fact, you only pasted the client part.
<_phaul>
select is for optimizing the active polling on your socket. Instead of periodically checking if something is available you want to be woken only when something comes in. That's what select is for.
AJA4350 has joined #ruby
<_phaul>
but periodic checking can also work, but if you say sleep 5 seconds and something comes in after 2 secs you would still sleepanother 3 seconds
<al2o3-cr>
teardown: what happened?
Technodrome has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
imtravis has joined #ruby
poontangmessiah has quit [Ping timeout: 246 seconds]
<al2o3-cr>
teardown: if that didn't work you're lines are not ending in a separator.
<al2o3-cr>
*your
<al2o3-cr>
until you show us a definitive example, this is the blind leading the blind :P
_phaul is now known as phaul
<teardown>
sorry, experimenting with setsockopts
<teardown>
yeah, it's a primitive, custom service running on top of tcp for a boot2root
<teardown>
i can show you the output if you want, one secr
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
dionysus70 is now known as dionysus69
<sh7d>
al2o3-cr, yea, and i thought about case of breaking suddendly connection without FIN packet, and you thougt it about simple timeout in case of no data
<al2o3-cr>
sh7d: where did i say that?
<sh7d>
your solution work like that
<al2o3-cr>
sh7d: there is no timeout in why example.
<al2o3-cr>
*my
<al2o3-cr>
its hard to type with a snapped extensor tendon :(
<sh7d>
al2o3-cr, mental shortcut: zero data in buffer -> server is not sending data in x second so, break the loop
<sh7d>
i know there was no infamous Timeout.timeout in your code :)
ogres has joined #ruby
<teardown>
the output of the service => termbin.com/k9f4, and a hexdump of the same output termbin.com/9kmn
<sh7d>
wooo, some telnet-bbs like shit
<dr_mdma_md>
<3 telnet
<teardown>
lol yep
<teardown>
obviously im adding the 'r: ' in my code
MrCrackPot has quit [Remote host closed the connection]
<dr_mdma_md>
remember back in the highschool days
MrCrackPot has joined #ruby
<dr_mdma_md>
when making out with girls gave that extra purple/red feeling
<dr_mdma_md>
and scamming shell providers for telnet accounts was a way of making time go by
<dr_mdma_md>
when girls wern't around
<sh7d>
dr_mdma_md, and there is no usable telnet nvt server implementation in ruby
<dr_mdma_md>
sh7d: true true
<dr_mdma_md>
the progression of mankind is also visible in his or her ability to connect to a server =)
<dr_mdma_md>
consolally speaking
<dr_mdma_md>
is that a word?
<dr_mdma_md>
:D
<sh7d>
wanted to wrote some creepy-halloween telnet server in ruby using ncurses
<dr_mdma_md>
sorry i thought i was in another channel
<dr_mdma_md>
we dont have halloween in norway
<sh7d>
and that was fucking harder than i thought
<dr_mdma_md>
or wait
<dr_mdma_md>
i think we do because of you americans
<teardown>
phaul: thanks, i think i will try IO.select
<dr_mdma_md>
fucking americans
<sh7d>
i'm from poland
<sh7d>
land of the onion
<dr_mdma_md>
there are more norwegian-americans in the US than there are norwegians in norway
<sh7d>
and hallowen is unofficaly there too
<dr_mdma_md>
sh7d: much love to poland tho :D
<dr_mdma_md>
lots of them over here in norway
<dr_mdma_md>
my neighbors are polish
<dr_mdma_md>
and their daughter is
<dr_mdma_md>
well
<dr_mdma_md>
mmm
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
<sh7d>
teardown, anyway, you want read that splash, put it on the screen, and disconnect, yep ?
Ai9zO5AP has joined #ruby
<teardown>
sh7d: yeah that's right. i want to break after reading the full response
<sh7d>
so, al2o3-cr was right
<teardown>
i just want to write a function that reads from the socket until timeout
<teardown>
looks like your 'break if s.nread.zero?' works even without IO.select, you just cant use it inside 'while r = s.gets', but it works with recv() instead of gets()
rrichardsr3 has quit [Quit: Apparantly my attempt to stay awake has failed...]
mn3m has quit [Ping timeout: 245 seconds]
JohanP has joined #ruby
skryking has quit [Quit: WeeChat 1.9.1]
<al2o3-cr>
teardown: because all lines must end with "\r\n" or "\n"
sammi` has quit [Read error: Connection reset by peer]
sammi` has joined #ruby
<teardown>
al2o3-cr: yeah because that's what gets tests for, right?
<al2o3-cr>
teardown: yes. if not, it tries to read the whole stream.
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JohanP has joined #ruby
<ta>
can anyone explain the rationale behind Syslog::Logger#error maps log level to Syslog::LOG_WARNING?
akemhp has quit [Ping timeout: 276 seconds]
<ta>
"Messages from Ruby applications are not considered as critical as messages from other system daemons using syslog(3), so most messages are reduced by one level."
<leftylink>
amazing
vondruch has quit [Remote host closed the connection]
akemhp_ has quit [Ping timeout: 265 seconds]
vondruch has joined #ruby
<ta>
why are a ruby application not consideren as critical as other system daemons, I'd like to ask :)
<ta>
also, when making that decision and when having a LEVEL_MAP, why not make that map configurable (besides monkey patching)
ogres has quit [Quit: Connection closed for inactivity]
akem__ has quit [Ping timeout: 265 seconds]
Azure|dc has joined #ruby
Azure has quit [Ping timeout: 240 seconds]
Nicmavr has quit [Read error: Connection reset by peer]
laudecay has joined #ruby
Nicmavr has joined #ruby
krawchyk has quit [Quit: krawchyk]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
jenrzzz has quit [Ping timeout: 240 seconds]
laudecay has quit [Quit: WeeChat 1.6]
Swyper has joined #ruby
jenrzzz has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
brool has joined #ruby
ellcs1 has quit [Ping timeout: 240 seconds]
Swyper has quit [Remote host closed the connection]
<RougeRR>
anyone used fluentd
<RougeRR>
because im about to start submitting lots of shitty documentation update requests to them
<RougeRR>
its so useless....
<RougeRR>
its like the entirely of their docs are written short hand with zero explanation
<RougeRR>
ive had to pour over their source code to begin to get to grips with it
<ta>
havenwood: yes, but I just don't like having to replace constants in dependency code :)
poontangmessiah has joined #ruby
hiroaki has quit [Ping timeout: 246 seconds]
JohanP has quit [Ping timeout: 276 seconds]
<havenwood>
ta: It'd be easy to add an keyword argument option for not reducing levels, which would probably be accepted if it doesn't change default behavior and others want the feature.
Swyper has joined #ruby
davidw has joined #ruby
AJA4351 has joined #ruby
<havenwood>
ta: Yeah, if it's a thing folk want to adjust, nice to not be constant without an easy override.
<havenwood>
To not warn, you can first remove the const, fwiw. Syslog::Logger.send(:remove_const, :LEVEL_MAP)
yann-kaelig has quit [Quit: yann-kaelig]
AJA4350 has quit [Ping timeout: 276 seconds]
Swyper has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
cd has joined #ruby
lxsameer has quit [Ping timeout: 276 seconds]
gigetoo has quit [Ping timeout: 268 seconds]
crella133 has joined #ruby
<ta>
havenwood: aha, nifty!
JohanP has joined #ruby
poontangmessiah_ has joined #ruby
Technodrome has joined #ruby
<Technodrome>
Good day
poontangmessiah has quit [Ping timeout: 276 seconds]
<crella133>
How can the code 'puts obj; puts obj.class' generate => #<struct type="seq", seq_name="j", seq_exp="4.0,7.0,11.0,8.141592653589793"> ;; #<Class:0x0000000004eb9ef8>
<crella133>
??? I wrote the code in another subroutine to define the struct.
JohanP has quit [Ping timeout: 265 seconds]
<SeepingN>
ap obj
<SeepingN>
or just p obj or pp obj
akemhp has joined #ruby
<crella133>
&>> ap '2'
<rubydoc>
stderr: -e:4:in `<main>': undefined method `ap' for main:Object (NoMethodError)... check link for more (https://carc.in/#/r/81r5)
schne1der has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
<crella133>
Oh no ,because I have to check the input param 'obj' and make sure the class is '$Sseqq' . I tested the same code on irb and got the wanted result. But in the project, the struct was stored in yaml file and loaded afterwards, and was processed in different subroutines. So I wondererd whether the struct had lost its class name '$Sseqq'. By the way , I am a really newbie...
lucasb has quit [Quit: Connection closed for inactivity]