oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid_ has joined #ruby
anjen has joined #ruby
bmurt has joined #ruby
icarus has joined #ruby
nowhere_man has quit [Ping timeout: 252 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
nowhere_man has joined #ruby
rubycoder37 has joined #ruby
gizmore has joined #ruby
John__ has quit [Read error: Connection reset by peer]
KeyJoo has quit [Ping timeout: 264 seconds]
rubycoder37 has quit [Quit: Lost terminal]
gizmore|2 has quit [Ping timeout: 252 seconds]
nowhere_man has quit [Ping timeout: 240 seconds]
mistergibson has joined #ruby
drbrain has quit [Quit: Goodbye]
icarus has quit [Ping timeout: 272 seconds]
drbrain has joined #ruby
drbrain has quit [Changing host]
drbrain has joined #ruby
nowhere_man has joined #ruby
eightlimbed has joined #ruby
chocoelho has joined #ruby
Dimik has quit [Ping timeout: 246 seconds]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Ping timeout: 252 seconds]
alex``` has quit [Quit: WeeChat 1.9]
cschneid_ has quit [Remote host closed the connection]
nofxx_ has quit [Read error: Connection reset by peer]
nofxx_ has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chocoelho has quit [Quit: chocoelho]
nit3rid3 has quit [Quit: Leaving]
ta_ has joined #ruby
garyserj has joined #ruby
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
cremes has quit [Quit: cremes]
sspreitz has quit [Ping timeout: 248 seconds]
sspreitz has joined #ruby
dviola has quit [Quit: WeeChat 2.0.1]
bruce_lee has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 240 seconds]
cschneid_ has joined #ruby
pilne has quit [Quit: Quitting!]
mtkd has quit [Ping timeout: 248 seconds]
mtkd has joined #ruby
leitz has quit [Quit: Nappy time]
cschneid_ has quit [Remote host closed the connection]
mistergibson has quit [Quit: Leaving]
jtdoncas_ has quit [Ping timeout: 256 seconds]
drbrain has quit [Quit: Goodbye]
ta_ has joined #ruby
darkhanb has joined #ruby
drbrain has joined #ruby
drbrain has quit [Changing host]
drbrain has joined #ruby
jtdoncas_ has joined #ruby
mjolnird has joined #ruby
ta_ has quit [Ping timeout: 248 seconds]
jtdoncas_ has quit [Ping timeout: 248 seconds]
uZiel has joined #ruby
mtkd has quit [Remote host closed the connection]
jtdoncas_ has joined #ruby
guardianx has joined #ruby
bmurt has joined #ruby
nwm has quit [Ping timeout: 255 seconds]
DTZUZU has joined #ruby
jtdoncas_ has quit [Ping timeout: 260 seconds]
mjolnird has quit [Remote host closed the connection]
pastorinni has joined #ruby
pastorinni has quit [Remote host closed the connection]
jtdoncas_ has joined #ruby
jtdoncas_ has quit [Ping timeout: 248 seconds]
pastorinni has joined #ruby
ta_ has joined #ruby
howdoi has joined #ruby
alfiemax has joined #ruby
jtdoncas_ has joined #ruby
jtdoncas_ has quit [Ping timeout: 256 seconds]
AJA4350 has quit [Quit: AJA4350]
guardianx has quit [Ping timeout: 260 seconds]
jtdoncas_ has joined #ruby
ta_ has quit [Ping timeout: 264 seconds]
theRealGent has joined #ruby
aupadhye has joined #ruby
jtdoncas_ has quit [Ping timeout: 252 seconds]
jtdoncas_ has joined #ruby
roger_rabbit has quit [Ping timeout: 250 seconds]
r3kz has quit []
r3kz has joined #ruby
roger_rabbit has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
tdy has quit [Read error: Connection reset by peer]
cdg has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
paulrf has quit [Quit: Leaving]
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dinfuehr has quit [Ping timeout: 240 seconds]
minimalism has joined #ruby
iamarun has joined #ruby
iamarun has quit [Client Quit]
alfiemax has joined #ruby
dinfuehr has joined #ruby
alfiemax_ has quit [Ping timeout: 248 seconds]
ta_ has joined #ruby
meesles has joined #ruby
cdg has joined #ruby
eightlimbed has quit [Ping timeout: 264 seconds]
cdg_ has joined #ruby
za1b1tsu has joined #ruby
<za1b1tsu>
Hello and Happy New Year
<za1b1tsu>
Im trying to convert [[1, 2], [7, 8], [9, 10]] into {1=>{:z=>2}, 7=>{:z=>8}, 9=>{:z=>10}}, but I can't seem to get the desired result: z = y.map { |x,y| x => {z:y} } give me an error, while other combinations just creates an array of hashes
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LocaMocha has joined #ruby
naprimer3 has joined #ruby
ta_ has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
alfiemax_ has quit [Ping timeout: 260 seconds]
naprimer2 has quit [Ping timeout: 260 seconds]
abraham_ has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
alfiemax_ has joined #ruby
rabajaj has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
dn` has quit [Remote host closed the connection]
garyserj has quit [Ping timeout: 240 seconds]
anisha has joined #ruby
abraham_ has quit [Quit: abraham_]
InfinityFye has quit [Ping timeout: 248 seconds]
ta_ has joined #ruby
dn` has joined #ruby
alex`` has joined #ruby
aufi has joined #ruby
kies has joined #ruby
alex`` is now known as alexherbo2
KeyJoo has joined #ruby
nwm has joined #ruby
kculpis has quit [Ping timeout: 248 seconds]
romankapitonov has joined #ruby
romankapitonov has quit [Client Quit]
jtdoncas has joined #ruby
jtdoncas_ has quit [Ping timeout: 264 seconds]
alfiemax has joined #ruby
alfiemax_ has quit [Ping timeout: 256 seconds]
deafscribe has quit [Ping timeout: 248 seconds]
conta has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
dionysus69 has joined #ruby
samort7 has quit [Quit: Leaving]
deafscribe has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
DmitryBochkarev has joined #ruby
ta_ has quit [Remote host closed the connection]
InfinityFye has joined #ruby
ta_ has joined #ruby
rippa has joined #ruby
ta_ has quit [Ping timeout: 248 seconds]
InfinityFye has quit [Quit: Leaving]
jaruga has joined #ruby
InfinityFye has joined #ruby
yeticry has quit [Ping timeout: 268 seconds]
yeticry has joined #ruby
darkhanb has joined #ruby
deafscribe has quit [Ping timeout: 240 seconds]
hyperreal has joined #ruby
alfiemax_ has quit [Ping timeout: 264 seconds]
alexherbo2 has quit [Quit: WeeChat 1.9]
jtdoncas has quit [Ping timeout: 268 seconds]
alfiemax has joined #ruby
mark_66 has joined #ruby
sent-hil has quit [Quit: Connection closed for inactivity]
RovingWriter has quit []
InfinityFye has left #ruby ["Leaving"]
nofxx__ has joined #ruby
nofxx_ has quit [Ping timeout: 260 seconds]
dogweather has joined #ruby
cschneid_ has joined #ruby
Dimik has joined #ruby
TomyWork has joined #ruby
mikhael_k33hl has joined #ruby
<mikhael_k33hl>
Anyone using beaneater? how do I include configuration when calling Beaneater::Pool.new?
cschneid_ has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
ech042 has joined #ruby
amatas has joined #ruby
t0adst00l has quit [Ping timeout: 272 seconds]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax_ has joined #ruby
claudiuinberlin has joined #ruby
alfiemax has quit [Ping timeout: 255 seconds]
BTRE has quit [Ping timeout: 252 seconds]
BTRE has joined #ruby
milardovich has joined #ruby
elphe has quit [Ping timeout: 240 seconds]
BTRE has quit [Ping timeout: 255 seconds]
BTRE has joined #ruby
Liothen has quit [Remote host closed the connection]
alfiemax has joined #ruby
alfiemax_ has quit [Ping timeout: 256 seconds]
drcode has quit [Ping timeout: 248 seconds]
no-dashes has quit [Ping timeout: 240 seconds]
alfiemax_ has joined #ruby
no-dashes has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
alfiemax_ has quit [Ping timeout: 248 seconds]
marr has joined #ruby
nwm has quit [Ping timeout: 240 seconds]
Dimik has quit [Ping timeout: 248 seconds]
alfiemax_ has joined #ruby
mikecmpbll has joined #ruby
Guest87912 is now known as Tristan-Speccy
Liothen has joined #ruby
alfiemax has quit [Ping timeout: 265 seconds]
elphe has joined #ruby
biberu has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
nadir has quit [Quit: Connection closed for inactivity]
alfiemax has joined #ruby
dogweather has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 248 seconds]
ta_ has joined #ruby
rfoust has quit [Ping timeout: 248 seconds]
Psybur has quit [Ping timeout: 268 seconds]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
linduxed has joined #ruby
Ltem has joined #ruby
blackmesa has joined #ruby
<Veejay>
Hello everyone, when using queues, is there a better way to "initialize" them than something to the tune of queue = Queue.new; items.each {|item| queue.push(item)}
<Veejay>
Ruby being Ruby, there's gotta be some more elegant way to achieve that
blackmesa has quit [Client Quit]
blackmesa has joined #ruby
TheBrayn has quit [Ping timeout: 248 seconds]
milardovich has quit []
guille-moe has joined #ruby
deadnull has joined #ruby
deadnull has quit [Client Quit]
deadnull has joined #ruby
<Pierreb|home>
im having issues, im fetching data from a website and trying to do some calculations, using regular numbers works fine but when i try to use the saved vars i get typeerror. code and all in here https://gist.github.com/anonymous/504b2aa127020db94c8290ac4ad184c0
Beams has joined #ruby
<Veejay>
Pierreb|home: Try to add .to_f on your numbers
cdg has joined #ruby
conta has quit [Remote host closed the connection]
<Pierreb|home>
Veejay i had done it to the second one
<Pierreb|home>
not to both
conta has joined #ruby
cdg_ has joined #ruby
<Pierreb|home>
thanks for the help, ive spent 2-3 hours on this not been able to get it working.
mikhael_k33hl has quit [Ping timeout: 260 seconds]
<Veejay>
Also, check the gem called "pry", it allows you to stop the execution flow at any point in your program
<Veejay>
And try things on the fly
<Veejay>
It makes it much easier to debug issues
<Pierreb|home>
nice, ill do that thanks
<Veejay>
Basically you add "binding.pry" to your code and during execution it will stop there and allow you to execute statements in the exact context of your program at that point
<Veejay>
No worries
drewmcmillan has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
cdg_ has quit [Ping timeout: 252 seconds]
Riddell has quit [Ping timeout: 248 seconds]
Riddell has joined #ruby
Riddell has quit [Ping timeout: 248 seconds]
Riddell has joined #ruby
despai has joined #ruby
mikhael_k33hl has joined #ruby
<mikhael_k33hl>
I have a ruby program that creates threads and run rsync process from beanstalkd jobs, what the best way of testing it though?
Riddell has quit [Changing host]
Riddell has joined #ruby
t0adst00l has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
TheBrayn has joined #ruby
thinkpad has joined #ruby
tomphp has joined #ruby
blackmesa has joined #ruby
nerium has joined #ruby
prutheus has joined #ruby
<prutheus>
Hello! I am working with GTK. want to create a dialog window (https://ruby-gnome2.osdn.jp/hiki.cgi?Gtk%3A%3ADialog) The style Dialog.new('title', parent, ...) is deprecated, so I want to use Dialog.new(title: 'title
<prutheus>
', parent: parent, ...
<prutheus>
But with the buttons I dont know how to do it
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
selim has quit [Ping timeout: 248 seconds]
selim has joined #ruby
luna_x has joined #ruby
deadnull has quit [Quit: deadnull]
ferr has joined #ruby
tomphp has joined #ruby
ferr has left #ruby [#ruby]
nerium has quit [Quit: nerium]
mikecmpbll has quit [Ping timeout: 256 seconds]
Ltem has quit [Quit: bbl]
tomphp_ has joined #ruby
despai has quit [Quit: ...]
tomphp has quit [Ping timeout: 255 seconds]
uZiel has quit [Ping timeout: 272 seconds]
tomphp_ has quit [Ping timeout: 255 seconds]
tomphp has joined #ruby
DmitryBochkarev has joined #ruby
ctp_ has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschnei__ has joined #ruby
tvw has quit []
tvw has joined #ruby
elphe has quit [Ping timeout: 248 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
tomphp has quit [Client Quit]
cschnei__ has quit [Ping timeout: 265 seconds]
tomphp has joined #ruby
alex`` has joined #ruby
prometheus_falli has joined #ruby
t0adst00l has quit [Ping timeout: 272 seconds]
elphe has joined #ruby
jnyw has quit [Quit: WeeChat 2.0.1]
dinfuehr has quit [Ping timeout: 256 seconds]
dinfuehr has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
Liothen has quit [Quit: The Dogmatic Law of Shadowsong]
Liothen has joined #ruby
Liothen has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
bkxd has quit [Max SendQ exceeded]
bkxd has joined #ruby
bkxd has quit [Max SendQ exceeded]
vichib has quit [Remote host closed the connection]
<prutheus>
Hello! I am working with GTK. want to create a dialog window (https://ruby-gnome2.osdn.jp/hiki.cgi?Gtk%3A%3ADialog) The style Dialog.new('title', parent, ...) is deprecated, so I want to use Dialog.new(title: 'title
<prutheus>
', parent: parent, ...
<prutheus>
But with the buttons I dont know how to do it
<prutheus>
Hello! I am working with GTK. want to create a dialog window (https://ruby-gnome2.osdn.jp/hiki.cgi?Gtk%3A%3ADialog) The style Dialog.new('title', parent, ...) is deprecated, so I want to use Dialog.new(title: 'title
<prutheus>
', parent: parent, ...
<prutheus>
But with the buttons I dont know how to do it
<za1b1tsu>
I'm making a complex raw sql and even though the code will be ugly I want some nice structure when attaching values to it, anyone has an example or seen some nice doe where they us a complex raw sql?
cdg_ has joined #ruby
dcluna has quit [Ping timeout: 256 seconds]
cdg has quit [Ping timeout: 252 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bkxd_ has joined #ruby
dcluna has joined #ruby
cdg_ has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
DmitryBochkarev has joined #ruby
<za1b1tsu>
I find this syntax a lot <<-SQL .... SQL, can't find it in the documentation? Anybody knows that it is?
alfiemax has joined #ruby
BTRE has quit [Ping timeout: 264 seconds]
<tbuehlmann>
za1b1tsu: search for "heredoc"
BTRE has joined #ruby
bkxd_ has quit []
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<za1b1tsu>
tbuehlmann: oh I see, thank you. So the SQL tags simply mean to_sql>
<za1b1tsu>
?
guardianx has quit []
IsoLinCHiP has joined #ruby
<tbuehlmann>
no, that's just a way to write multiline strings
tomphp has joined #ruby
aupadhye has quit [Quit: Leaving]
<za1b1tsu>
I understand, thanks
reber has joined #ruby
<IsoLinCHiP>
Hi, I am trying to use the builtin PrettyPrint to create some readable output of nested hashes, which I then would like to prepend with email like quoting ("> "). I tryed passing a block to the PrettyPrint.new() {|w| "> #{' ' * w}"} but it didnt have the desired effect. Did I interpret the docs wrong, or does someone have an alternativ suggestion?
Mortomes|Work has quit [Ping timeout: 260 seconds]
jrafanie has joined #ruby
jrafanie has quit [Client Quit]
naprimer3 has quit [Quit: Leaving]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has quit [Ping timeout: 272 seconds]
<prutheus>
Hello! I am working with GTK. want to create a dialog window (https://ruby-gnome2.osdn.jp/hiki.cgi?Gtk%3A%3ADialog) The style Dialog.new('title', parent, ...) is deprecated, so I want to use Dialog.new(title: 'title
<prutheus>
', parent: parent, ...
<prutheus>
But with the buttons I dont know how to do it
<prutheus>
How to parse arguments like buttons* correctly via :buttons syntax?
tomphp has joined #ruby
InfinityFye has joined #ruby
InfinityFye has left #ruby [#ruby]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<prutheus>
Please guys, someone of you must know the solution!
InfinityFye has joined #ruby
sleetdrop has joined #ruby
vondruch has quit [Ping timeout: 248 seconds]
vondruch has joined #ruby
cremes has joined #ruby
vondruch has quit [Client Quit]
AJA4350 has joined #ruby
naprimer2 has joined #ruby
vondruch has joined #ruby
elphe has quit [Ping timeout: 272 seconds]
InfinityFye has left #ruby ["Leaving"]
tomphp has joined #ruby
elphe has joined #ruby
<prutheus>
please .... need to continue working ...
IsoLinCHiP has quit [Ping timeout: 264 seconds]
<tbuehlmann>
oO
<prutheus>
hey, u can help me tbuehlmann ?
<tbuehlmann>
no, sorry, need to continue working
<prutheus>
are you trolling me? :D
<prutheus>
I just said that because I asked 3 hours ago already and can only continue my work when i can fix that
ctp_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Quit: dionysus69]
sleetdrop has quit [Quit: Computer has gone to sleep.]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ctp_ has joined #ruby
szulak has joined #ruby
mtkd has joined #ruby
guille-moe has joined #ruby
<canton7>
prutheus, try and debug the issue yourself. Remove things. What do you have to remove to make the problem go away? Can you find a similar example which works? If so, change it piece-by-piece into what you pasted, and see which step causes it to fail. Have you tried googling? Has anyone else had the same issue?
alfiemax has quit [Remote host closed the connection]
anisha has quit [Quit: This computer has gone to sleep]
<prutheus>
canton7: when i do the deprecated method by giving all arguments after each other without a key it works
sylario has joined #ruby
<prutheus>
i just have the problem with the keys arguments
Psybur has joined #ruby
<canton7>
prutheus, OK, so you need to give an argument which you aren't, giving, presumably
<canton7>
like I said, start with something that works, then change it bit-by-bit until it stops working
bmurt has joined #ruby
<canton7>
so start by giving all arguments, and remove them one-by-one until your problem appears
<prutheus>
but the problem is the argument buttons*
<prutheus>
i think i cant give it as buttons: [...]
<canton7>
do you have a working example of using buttons?
rwb has quit [Ping timeout: 272 seconds]
<prutheus>
yes, without the style of keyword argument list
<prutheus>
you did not understand my problem, right?
<canton7>
I've never used ruby+gtk, I'm trying to give you some general debugging tips, since your toolkit seems to consist solely of posting the same question with insufficient information multiple times over :)
<canton7>
my understanding of what you've said is that it works fine if you specify all parameters, but fails to work if you use keyword args to specify only some parameters
<canton7>
now, did you understand my suggestion?
<prutheus>
canton7: it has nothing to do with gtk i think. listen again please:
jeffreylevesque has joined #ruby
<prutheus>
when i fill the arguments of Gtk::Dialog.new(title = nil, parent = nil, flags = nil, [button_face1, response_id1], [button_face2, response_id2], .....) like .new('title', parent, flags, [btn, response]) it works
<prutheus>
if I do .new(title: 'title', parent: parent, flags: flags, buttons: [btn, response]) it fails
<canton7>
are you actually passing *all* parameters when you use the keyword args? Or just some?
<canton7>
can you pastebin the full working version and the full non-working version?
<mozzarella>
prutheus: paste some actual code, dude
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
qba73 has joined #ruby
ewaters has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<prutheus>
I want to merge all csv files and apply a header to my new file. But for some reasons, the header sting is inserted 2 times, at the beginning of my new file and in the middle somewhere
<prutheus>
why?
marr has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
despai has quit [Client Quit]
prutheus has quit [Client Quit]
krawchyk has joined #ruby
headius has joined #ruby
jrafanie has joined #ruby
nwm has joined #ruby
krawchyk has quit [Client Quit]
ldepandis has quit [Ping timeout: 240 seconds]
despai has joined #ruby
ldepandis has joined #ruby
blackmesa has joined #ruby
despai has quit [Client Quit]
aScottishBoat has quit [Quit: aScottishBoat]
raynold has quit [Quit: Connection closed for inactivity]
alex`` has quit [Ping timeout: 255 seconds]
krawchyk has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gix- has quit [Quit: Client exiting]
alex`` has joined #ruby
heliumk has quit [Quit: heliumk]
jrafanie has joined #ruby
kculpis has joined #ruby
DTZUZU has quit [Ping timeout: 256 seconds]
sonOfRa has quit [Remote host closed the connection]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
blackmesa has quit [Ping timeout: 272 seconds]
<llua>
heh
despai has joined #ruby
gix has joined #ruby
dionysus69 has joined #ruby
despai has quit [Client Quit]
cschneid_ has joined #ruby
qba73 has quit [Ping timeout: 240 seconds]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
[Butch] has joined #ruby
banisterfiend has joined #ruby
sonOfRa has joined #ruby
c785127 has joined #ruby
cdolan has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 248 seconds]
konsolebox has quit [Ping timeout: 240 seconds]
DTZUZU has joined #ruby
workmad3 has joined #ruby
rwb has joined #ruby
konsolebox has joined #ruby
alfiemax has joined #ruby
chocoelho has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
Ltem has joined #ruby
jamesaxl has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
vipaca has joined #ruby
deafscribe has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
mtkd has joined #ruby
mark_66 has quit [Remote host closed the connection]
conta has quit [Quit: conta]
conta has joined #ruby
heliumk has joined #ruby
heliumk has quit [Remote host closed the connection]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nwm has quit [Ping timeout: 255 seconds]
jrafanie has joined #ruby
conta has quit [Ping timeout: 248 seconds]
tomphp has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
TomyWork has quit [Remote host closed the connection]
alex`` has quit [Quit: WeeChat 1.9]
<cschneid_>
Is there a built-in way to have a proc that runs only once? my_proc.call #=> runs, my_proc.call #=> nil, since it ran already
<dminuoso>
cschneid_: class SingletonProc < Proc; def call ...
<cschneid_>
dminuoso: sure, I know I can write it myself, I was wondering if it existed before I did :)
<cschneid_>
it's a built-in in some other languages
<dminuoso>
Oh good.. I really wasnt sure whether you were drunk or something.
IsoLinCHiP has joined #ruby
<dminuoso>
cschneid_: The closest trick I can think of is using a trick based on Ox0dea's magic var hack.
<dminuoso>
He did a really minor monkey patch to tap into $
<cschneid_>
too early to be drunk :) That seems way too fancy, I'll just do a @foo ||= begin/end block instead
<dminuoso>
Think you could do some ||= memoization trick with that
<dminuoso>
Yeah
<cschneid_>
its been interesting using rust recently, which has some of these kinds of tools in its syncronization library
<dminuoso>
cschneid_: Im not sure whether such a proc is good style.
<dminuoso>
Users are free to use localhost names as they would any other domain names. Users may assume that IPv4 and IPv6 address queries for localhost names will always resolve to the respective IP loopback address.
<dminuoso>
Application software MAY recognize localhost names as special, or MAY pass them to name resolution APIs as they would for other domain names.
<dminuoso>
These two paragraphs are relevant.
<_aeris_>
.onion is a pretty good example because it *MUST NOT* be resolve client side !
<_aeris_>
never
<dminuoso>
_aeris_: Please check the RFC and the cited paragraphs.
<_aeris_>
dminuoso > you speak IP and DNS here, not TCP
<_aeris_>
you don't have to apply 6761 for http proxying
<dminuoso>
_aeris_: How do you think HTTP is transmitted..
Vapez has joined #ruby
<_aeris_>
HTTP is transmitted on TCP link
<_aeris_>
but on remote proxy TCP link
<dminuoso>
And how do you think TCP is transmitted.
<dminuoso>
And strictly speaking HTTP doesnt care whatsoever.
<_aeris_>
no relation between the "localhost" in the *HTTP* part and the TCP/IP part
<dminuoso>
_aeris_: And the RFC is not about TCP or IP, its about DNS and nothing else.
<_aeris_>
if you use TLS, you don't even know the name inside the HTTP socket
<dminuoso>
_aeris_: localhost is just a domain name, but its a special oine.
Emmanuel_Chanel has quit [Ping timeout: 268 seconds]
<_aeris_>
yep, and with HTTP proxying, there is NO DNS nor IP resolution for the HTTP part
<dminuoso>
18:16 dminuoso | Application software MAY recognize localhost names as special, or MAY pass them to name resolution APIs as they would for other domain names.
<dminuoso>
18:16 dminuoso | Application software MAY recognize localhost names as special, or MAY pass them to name resolution APIs as they would for other domain names.
<dminuoso>
"Application software MAY [..."
<dminuoso>
See that?
workmad3 has quit [Ping timeout: 240 seconds]
<_aeris_>
yep but you *DONT* see the localhost part when you proxying !
<dminuoso>
So essentially any software that sees "localhost" in a spot where it suspects a domain name is free to do magic.
<dminuoso>
_aeris_: Ruby does.
<dminuoso>
Ruby sees it.
<_aeris_>
you just forward a bunch of HTTP packets
<dminuoso>
And ruby uses the freedom given by RFC 6761.
<dminuoso>
_aeris_: My point is: Its reasonable for Ruby to assume that if it sees its intended for localhost that the proxy couldnt possibly satisfy the request, it might do the "nice thing"
<_aeris_>
no
ewaters has quit [Quit: This computer has gone to sleep]
<_aeris_>
you can't guess if the proxy could or couldn't satisfy the request
wolfshappen has quit [Ping timeout: 256 seconds]
<_aeris_>
perhaps it can, perhaps it can't
<dminuoso>
_aeris_: The HTTP RFC forces proxies to respect the URI and forward it to the system the client wants. And since the client wants localhost, it couldnt possibly satisfy that request in all likelihood
<dminuoso>
You can in reality because localhost is almost always mapped to the loopback device
<dminuoso>
Besides the RFC 6761 gives Ruby the freedom to behave specially.
<_aeris_>
A proxy is a
ewaters has joined #ruby
<_aeris_>
forwarding agent, receiving requests for a URI in its absolute form,
<_aeris_>
rewriting all or part of the message, and forwarding the reformatted
<_aeris_>
request toward the server identified by the URI.
<dminuoso>
_aeris_: "toward the server identified by the URI"
darkhanb has joined #ruby
<_aeris_>
URI in *absolute form*
<_aeris_>
server indentified by url is "localhost" from the remote part
<_aeris_>
not the local part
workmad3 has joined #ruby
<dminuoso>
_aeris_: Absolute uri does not mean a perspective.
<dminuoso>
_aeris_: It just means following 4.3 as per RFC 3986
<dminuoso>
Which basically means absolute-URI = scheme ":" hier-part [ "?" query ]
<_aeris_>
yep, so just forward the uri and don't try to guess what the server could do
<dminuoso>
_aeris_: Except that tiny bit about RFC 6761.
<_aeris_>
not at all
<dminuoso>
_aeris_: HTTP does not prevent application software from looking at the request before sending it into its HTTP stack
blackmesa has joined #ruby
<_aeris_>
you don't have to mitm every connection to fight localhost inside
<_aeris_>
i could ask domain name resolving to localhost too
<_aeris_>
not a problem
<_aeris_>
i could ask not resolvable domain from my part
<dminuoso>
_aeris_: language barrier is hitting here I think
<dminuoso>
_aeris_: Can you rephrase your point?
<_aeris_>
6761 is *ONLY* application when *YOU* have to handle an *IP* or *DNS* job
Rapture has quit [Ping timeout: 240 seconds]
<_aeris_>
you don't have to apply 6761 if you are on HTTP or more generally application level
<_aeris_>
I could pass localhost on a TLS session
<dminuoso>
_aeris_: From the perspective of the Ruby program, Ruby is the application program.
<dminuoso>
Forget HTTP for a moment.
<_aeris_>
or "foo.bar" resolving to "127.0.0.1"
<dminuoso>
What happens is that there's a program trying to interact with a server using DNS.
<_aeris_>
no, ruby is not the application program
<dminuoso>
It is from a different perspective
<_aeris_>
if you try to resolve special domain, 6761 apply
guille-moe has quit [Ping timeout: 272 seconds]
<dminuoso>
According to what?
<dminuoso>
_aeris_: Application software is not involved in name resolution
<_aeris_>
your resolver (the application program) would
<dminuoso>
_aeris_: So explain to me this:
<_aeris_>
application software is the part of software handle the IP or DNS
<_aeris_>
not any upper level…
<dminuoso>
2. Application software MAY recognize localhost names as special, or MAY pass them to name resolution APIs as they would for other domain names.
<_aeris_>
here application software is request or faraday
<dminuoso>
This is straight from 6761
<dminuoso>
It talks about software that somehow knows theres a domain name involved
<dminuoso>
when you do
<_aeris_>
and in this case, it doen't do IP or DNS, so 6761 not applicable
<dminuoso>
_aeris_: Its not about HTTP, its about Ruby being application software.
<_aeris_>
nope
<dminuoso>
6761 does not apply to just name resolvers, which is why it talks about application software.
<dminuoso>
2. Application software MAY recognize localhost names as special, or MAY pass them to name resolution APIs as they would for other domain names.
<_aeris_>
6761 apply only to software doing IP or DNS
blackmesa has quit [Ping timeout: 240 seconds]
<dminuoso>
_aeris_: ^--
<dminuoso>
read that cited paragraph
<dminuoso>
until the end.
<dminuoso>
[...] or MAY pass them to name resolution APIs as they would for other domain names.
<dminuoso>
Its just application software.
<_aeris_>
…
<_aeris_>
I work with the tor project and rfc-writer about 6761
<_aeris_>
I perfectly understand what the 6761 say
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
reber__ has joined #ruby
guille-moe has joined #ruby
Barrt has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 260 seconds]
cloaked1 has joined #ruby
cloaked1 has quit [Changing host]
cloaked1 has joined #ruby
reber has quit [Ping timeout: 252 seconds]
ongolaBoy has joined #ruby
ongolaBoy has quit [Client Quit]
alfiemax has joined #ruby
Beams has quit [Quit: .]
darkhanb has joined #ruby
bortzmeyer has joined #ruby
<_aeris_>
dminuoso > a good example is with the .onion address
<_aeris_>
from the ruby point of view, the only moment you have to apply 6761 is if you have to *RESOLV* such domain
<_aeris_>
as far the domain stay inside the content or anything else, you have nothing to do
<_aeris_>
only when you have to resolve it, you apply 6761 and reply with a NXDOMAIN without accessing the system resolver
<_aeris_>
you can have it inside http request, no problem, nothing to do
<_aeris_>
in this case, you will certainly have a HTTP proxy (HTTP or SOCKS proxy of tor) and have to forward it "as is" inside
<dminuoso>
_aeris_: Okay so the part about HTTP I revise my standpoint and accept that at least the proxy should do this bizarre thing of forwarding it to its own loopback as strange as it sounds.
<dminuoso>
_aeris_: Ive went through the RFC and there really does not seem to be even the subtlest point that the proxy must be transparent in the "clients expectations" of the URI
<_aeris_>
this is the same for every parts : you only apply 6761 when you have to handle directly the domain or IP
<dminuoso>
_aeris_: But the thing I cant agree on, is that 6761 is limited to just resolvers. The reason is that it makes a few statements about application software itself.
<_aeris_>
(RFC reviewer)
<dminuoso>
I dont speak French. :|
<dminuoso>
But I guess I could google translate.
<_aeris_>
example he quote : application manipulating dns, recursive dns, caching dns
<dminuoso>
_aeris_: Note in all fairness, Im not arguing that the change is sane.
<dminuoso>
_aeris_: Im just arguing that I think it's valid.
<dminuoso>
Just so there's no misconception.
<_aeris_>
during an HTTP request, if you define a proxy, ruby decide to bypass the http proxy if requested URL resolve to localhost
<_aeris_>
from the dminuoso PoV, it's valid because 6761, and localhost is a special domain, and must not be forwarded through the proxy
<dminuoso>
In particular
<dminuoso>
I consider it as allowed under the paragraph 6.3p2 (in conjunction with 6.3p1) of that RFC.
<_aeris_>
from my PoV, 6761 doesn't apply here because at this part, this is just HTTP/OSI-7, 6761 only apply for "application software" related to IP or DNS
<dminuoso>
I consider Ruby to be application software.
<bortzmeyer>
_aeris_: the patch does not handle localhost, it tests the IP address, that's quite different
alex`` has quit [Quit: WeeChat 1.9]
<dminuoso>
Huh.
<dminuoso>
bortzmeyer makes a very valid point there..
<dminuoso>
(o:
<_aeris_>
yep, it's worse here
<dminuoso>
Okay I may have just lost that argument there.
<_aeris_>
but imagine it test only for "localhost" or "*.onion"
<bortzmeyer>
_aeris_: then, I have to think harder
luna_x has quit [Quit: WeeChat 2.0.1]
totolo has joined #ruby
<_aeris_>
and localhost/onion must be treated differently here as 6761/7686 :P
<_aeris_>
(not exactly here, but not too far)
<bortzmeyer>
_aeris_: no, localhost and onion are very different
<dminuoso>
bortzmeyer: I think treating onion specially would be invalid, but the main point of contention is localhost.
tomphp has joined #ruby
<bortzmeyer>
_aeris_: MAY for localhost MUST for onion
<_aeris_>
if no proxy configure, "*.onion" will certainly be resolved here, and so must be NXDOMAIN immedialty
<bortzmeyer>
_aeris_: we should go back to the goals. The goal of .onion is security/privacy/etc. Leaking .onion names is bad
hahuang65 has joined #ruby
<bortzmeyer>
_aeris_: localhost has different goals
<_aeris_>
yes
<dminuoso>
bortzmeyer: If Ruby did treat localhost in the URI specially to bypass proxies, would this be legitimate from the perspective of all relevant RFCs?
<bortzmeyer>
dminuoso: may be "legal" but I fail to see WHY this special case.
orbyt_ has joined #ruby
<dminuoso>
bortzmeyer: Well I think the idea being that a proxy couldnt sensibly forward it to loopback since its reasonable to expect that the client wanted to connect to its own loopback interface.
<_aeris_>
for me, 6761 will be applied here only if you have to manage a DNS resolution or IP routing
<_aeris_>
if not, you are not the "application software" (not well) defined in 6761
<dminuoso>
_aeris_: I think this point is really important. Its not very clearly defined what constitutes as "application software"
<_aeris_>
until you have no other choice than doing IP/DNS, 6761 is not applicable
totolo has quit [Quit: Page closed]
<_aeris_>
or saying differently, as far you can handle the URI "as is", no 6761
<dminuoso>
_aeris_: I understand what you are trying to convey, and I do see how you could interpret 6761 in that manner.
<dminuoso>
_aeris_: There's enough to imply that its about software that somehow needs to figure out the IP address in order to work, and that would be free to behave differently if it had to resolve localhost.
<dminuoso>
_aeris_: But otoh its not well defined, and there's this bit at the topc:
<dminuoso>
Application Software: Are writers of application software expected to make their software recognize these names as special and treat them differently? [...]
blackmesa has joined #ruby
<dminuoso>
One could easily interpret this as "well if the application happens to see that domainname it does [magic]"
<_aeris_>
this is not a real definition, because this is a question :P
<dminuoso>
(in conjunction with the previously mentioned paragraphs)
<dminuoso>
Yeah
<dminuoso>
_aeris_: But there's no real definition for your point either.
<_aeris_>
yep
_sfiguser has joined #ruby
<dminuoso>
_aeris_: I mean the real nasty counter example for my original point
<dminuoso>
Is if you defined some custom entry: magick 127.0.0.1
<dminuoso>
in your /etc/hosts
<dminuoso>
which would still trigger this.
vipaca has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<_aeris_>
yep :P
ech042 has quit [Remote host closed the connection]
theo__ has joined #ruby
vipaca has joined #ruby
<dminuoso>
_aeris_: If it actually acted on localhost I think it'd be fine. Perhaps even desirable to a certain extend.
<dminuoso>
(Which is my personal opinion)
Emmanuel_Chanel has joined #ruby
sanscoeur has joined #ruby
<_aeris_>
I use a lot proxying to "resolve" resources available only on localhost on the remote proxy :D
<dminuoso>
Mind my asking, what for?
eightlimbed has quit [Ping timeout: 264 seconds]
<dminuoso>
This sounds a bit unusual
<_aeris_>
not at all
<_aeris_>
for example, running imaps or http admin system only on localhost
<_aeris_>
and available only through a bastion proxy
mikecmpbll has joined #ruby
<_aeris_>
can also be not only localhost but any private IP or domain
<dminuoso>
_aeris_: Yeah but why use an actual proxy? You could just set up an nginx reverse proxy.
<_aeris_>
will have the same trouble with the nginx
<_aeris_>
can't be publicly available because of security
<dminuoso>
_aeris_: but your proxy is publicly available.
<dminuoso>
_aeris_: If this is about authentication, nginx can handle this too.
<_aeris_>
yep, but hardly securized
<_aeris_>
with only SSH available for example
<dminuoso>
_aeris_: okay so you are presuming some special proxy software.
<_aeris_>
not at all :D
<_aeris_>
just plain ssh proxy feature
<_aeris_>
ssh -L or ssh -D
<dminuoso>
Ahh.
<_aeris_>
in this case, it's SOCKS proxy, but i have a HTTP to SOCKS proxy for application not able to talk SOCKS
<dminuoso>
_aeris_: but thats just forwarding and not HTTP proxying.
<dminuoso>
Well what is the socks proxy for then?
<dminuoso>
I mean if you have an SSH tunnel you're already on the other machine.
<_aeris_>
i'm already on the other machine, but application run on my desktop :P
<_aeris_>
for example if I run a ruby from my desktop consuming remote http resource
jaruga has quit [Quit: jaruga]
<_aeris_>
very usefull too to debug not accessible resources behind DMZ or firewall
<_aeris_>
hitting internal API from your IDE <3
alex`` has joined #ruby
<dminuoso>
_aeris_: I gotta run, but Im not sure I fully understand.
<dminuoso>
Needs pretty pictures I think.
<_aeris_>
:D
blackmesa has quit [Ping timeout: 255 seconds]
<_aeris_>
i'm able to ssh to a machine running a private api
<_aeris_>
but those private api not exposed publicly
<_aeris_>
with proxying, i can troubleshoot from my desktop
<_aeris_>
accessing "localhost" through the proxy :D
nwm has joined #ruby
blindmoe has joined #ruby
<blindmoe>
Since the newer version of rubocop wants methods to be implicitly defined in controllers if they are used in an action filter, should I basically just be adding lines like: def show; super; end to appease rubocop?
<blindmoe>
my controllers for my API all inherit from a main api_controller.rb which inherits from ActionController::Base so when I create a resource in the routes.rb I am not implicitly defining those methods.. yet rubocop wants me to
reber has joined #ruby
Ltem has quit [Quit: bbl]
mtkd has quit [Ping timeout: 240 seconds]
conta2 has joined #ruby
mtkd has joined #ruby
jrafanie has joined #ruby
troys has joined #ruby
conta2 has quit [Ping timeout: 250 seconds]
claudiuinberlin has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
SeepingN has joined #ruby
guille-moe has quit [Ping timeout: 264 seconds]
marxarelli|afk is now known as marxarelli
xorgnak_ has quit [Ping timeout: 265 seconds]
<blindmoe>
Could really use some help on this? Also, I meant to say explicitly not implicitly
<c-c>
Railsisms? Whats the rails chan, #rubyonrails perhaps
<tobiasvl>
I didn
<tobiasvl>
't even understand that it was rails
alfiemax has joined #ruby
<c-c>
blindmoe: also note that inheritance pattern is kind of masochistic way
<tobiasvl>
maybe I should learn enough about rails one day to recognize it when people ask about it here so I can direct them to #RubyOnRails
alfiemax_ has quit [Ping timeout: 250 seconds]
<blindmoe>
c-c: yeah I don't like it.. I am actually just thinking of disabling that rubocop rails. Didn't realize this was a rails specific issue but I can see it not since it is inherting from ActionController::base and using its resource magic
<blindmoe>
s/rubocop rails/rubocop rule/
<c-c>
tobiasvl: see ActionController module name there?
troulouliou_div2 has joined #ruby
alex`` has quit [Quit: WeeChat 1.9]
<c-c>
blindmoe: I was taught to use modules instead of inheritance where possible
Statler_ has joined #ruby
oetjenj has joined #ruby
<blindmoe>
c-c: yeah unfortunately this is a new company I am working with and it isn't my choice... right now I am just updating rubocop from 0.42 to 0.52.1 and there are a ton of new rules
chocoelho has quit [Quit: chocoelho]
eightlimbed has joined #ruby
theo__ has quit [Ping timeout: 248 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
anisha has joined #ruby
guille-moe has joined #ruby
marr has quit [Ping timeout: 248 seconds]
guille-moe has quit [Ping timeout: 265 seconds]
krawchyk_ has joined #ruby
krawchyk has quit [Ping timeout: 252 seconds]
alfiemax has quit [Remote host closed the connection]
aScottishBoat has quit [Quit: aScottishBoat]
krawchyk_ has quit [Client Quit]
alfiemax has joined #ruby
nchambers has quit [Ping timeout: 248 seconds]
sameerynho has joined #ruby
dinfuehr has quit [Ping timeout: 260 seconds]
alfiemax has quit [Ping timeout: 268 seconds]
nchambers has joined #ruby
dinfuehr has joined #ruby
hanmac has quit [Ping timeout: 252 seconds]
lola1212 has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
mikecmpbll has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
dionysus69 has quit [Ping timeout: 248 seconds]
dionysus69 has joined #ruby
lola1212 has quit [Quit: Leaving]
randomstrangerb has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 252 seconds]
randomstrangerb has joined #ruby
DLSteve has joined #ruby
troulouliou_div2 has quit [Ping timeout: 240 seconds]
beauby has quit [Ping timeout: 252 seconds]
alfiemax has joined #ruby
dinfuehr has quit [Ping timeout: 248 seconds]
rwb has quit [Ping timeout: 248 seconds]
dinfuehr has joined #ruby
hanmac has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
raynold has joined #ruby
LocaMocha has quit [Ping timeout: 268 seconds]
dinfuehr has quit [Ping timeout: 248 seconds]
guille-moe has joined #ruby
dinfuehr has joined #ruby
krawchyk has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
alfiemax_ has quit [Ping timeout: 264 seconds]
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
guille-moe has quit [Ping timeout: 260 seconds]
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
Statler_ has quit [Quit: Leaving]
krawchyk has quit [Client Quit]
oetjenj has quit [Client Quit]
pilne has joined #ruby
eckhardt has joined #ruby
elphe has joined #ruby
krawchyk has joined #ruby
aScottishBoat has joined #ruby
krawchyk has quit [Client Quit]
cremes has quit [Quit: cremes]
lytol_ has joined #ruby
krawchyk has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
jrafanie_ has joined #ruby
jrafanie has quit [Ping timeout: 248 seconds]
DmitryBochkarev has joined #ruby
elphe has quit [Ping timeout: 268 seconds]
jeffreylevesque has joined #ruby
DmitryBochkarev has quit [Client Quit]
jeffreylevesque_ has quit [Ping timeout: 248 seconds]
marr has joined #ruby
c785127 has quit [Read error: Connection reset by peer]
c785127 has joined #ruby
ewaters has quit [Quit: This computer has gone to sleep]
aScottishBoat has quit [Quit: aScottishBoat]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jeffreylevesque_ has joined #ruby
jeffreylevesque has quit [Ping timeout: 248 seconds]
deafscribe has quit [Ping timeout: 272 seconds]
blackmesa has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
Ltem has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta1 has joined #ruby
<c-c>
I'm considering leaving freenode. People on freenode take harassment and censorship against others granted, and as a "right" and I cannot accept that. Which other forums do you recoomend for ruby talk & support?
<c-c>
*reccomned
<c-c>
lol typoitis today
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
elphe has joined #ruby
<havenwood>
c-c: This is the official channel. There isn't an equivalent Slack channel like for Ruby on Rails.
eckhardt has joined #ruby
Vapez has quit [Ping timeout: 240 seconds]
cagomez has quit [Remote host closed the connection]
conta1 has quit [Ping timeout: 248 seconds]
<havenwood>
c-c: Please bring it to the channel op's attention if you see harassment or unwarranted censorship here!
eightlimbed has quit [Ping timeout: 248 seconds]
<havenwood>
c-c: They do discuss a little Ruby in the Rails Slack channel.
za1b1tsu has quit [Ping timeout: 272 seconds]
<havenwood>
c-c: There are various Gitter channels around the Ruby ecosystem, but again, not an official Ruby lang one.
dinfuehr has quit [Ping timeout: 256 seconds]
<havenwood>
c-c: The mailing lists are a good bet, but not realtime.
Dimik has joined #ruby
krawchyk has quit [Quit: krawchyk]
<c-c>
I actually had a talk with freenode staffers. Most popular response was the xkcd comic where "they are showing you the door" because "people" "think you're an asshole", and accepting that as a response to someone who has been harassed or censored because of their opinion is imo insane. Rotten. Morally bankrupt.
elphe has quit [Ping timeout: 248 seconds]
dinfuehr has joined #ruby
<nixy>
Is your issue in this channel or somewhere else? It seems like if it's in this channel you should talk to this channel's op. If it isn't in this channel then I see no reason to leave
<c-c>
(As if the priviledge of speech or position made it OK to harass or censor people, based on their opinion)
<havenwood>
c-c: We try very hard to responsibly moderate this channel.
<c-c>
nixy: another channel. This is a mellow channel.
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
warreng_ has joined #ruby
jnyw has joined #ruby
pastorinni has quit [Remote host closed the connection]
pastorinni has joined #ruby
bortzmeyer has quit [Quit: Leaving.]
<warreng_>
given that Net::HTTP supports returning chunks of a response at a time via response.read_body { |chunk| ... } and given that Zlib::GzipReader.new takes an IOStream and has a each_line method, how can i combine the two so that i can process one line of a gzip'd response at a time?
guille-moe has joined #ruby
<warreng_>
can i create an enumerator out of the response.read_body { |block| ... } somehow and pass that to Zlib::GzipReader ?