havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.1, 2.5.3, 2.4.5: 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!
mitescugd has left #ruby ["C-x k"]
agent_white has quit [Quit: bbl]
orbyt_ has joined #ruby
gix has quit [Ping timeout: 245 seconds]
s3nd1v0g1us has joined #ruby
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mangold has quit [Ping timeout: 258 seconds]
cd has quit [Ping timeout: 256 seconds]
my1es has quit [Remote host closed the connection]
cd has joined #ruby
priodev has quit [Ping timeout: 244 seconds]
blackmesa1 has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
priodev has joined #ruby
blackmesa has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
blackmesa1 has joined #ruby
s3nd1v0g1us has quit [Quit: WeeChat 2.2]
blackmesa has quit [Read error: Connection reset by peer]
venmx has quit [Ping timeout: 255 seconds]
Matadoer has joined #ruby
tdy has quit [Ping timeout: 250 seconds]
ogres has quit [Quit: Connection closed for inactivity]
stryek has quit [Quit: Connection closed for inactivity]
yokel has quit [Ping timeout: 258 seconds]
blackmesa has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
blackmesa1 has quit [Ping timeout: 258 seconds]
blackmesa has quit [Read error: Connection reset by peer]
Macrobiotic has joined #ruby
blackmesa has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
blackmesa has joined #ruby
al2o3-cr has quit [Ping timeout: 246 seconds]
knight33 has joined #ruby
al2o3-cr has joined #ruby
crankharder has joined #ruby
xlegoman has joined #ruby
awkwords has joined #ruby
tdy has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
blackmesa has joined #ruby
jokester has quit [Quit: reboot]
jokester has joined #ruby
crankharder has quit [Remote host closed the connection]
blackmesa has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
blackmesa1 has joined #ruby
blackmesa has quit [Read error: Connection reset by peer]
AJA4350 has quit [Quit: AJA4350]
Matadoer has quit [Quit: Going offline, see ya! (www.adiirc.com)]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
renich_ has quit [Ping timeout: 255 seconds]
renich_ has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
awkwords has quit [Quit: sleepy time]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tdy has quit [Ping timeout: 245 seconds]
Macrobiotic has quit [Quit: Connection closed for inactivity]
cd has quit [Quit: cd]
maryo has joined #ruby
maryo has quit [Remote host closed the connection]
knight33 has joined #ruby
t0xik has quit [Quit: Connection closed for inactivity]
dellavg__ has quit [Ping timeout: 255 seconds]
DTZUZO_ has quit [Ping timeout: 268 seconds]
wolfshappen has quit [Ping timeout: 272 seconds]
marz_d`ghostman has joined #ruby
<marz_d`ghostman> Anyone using Nokogiri, how do I extract a part of an xml file using the value like <cf>AVERAGE</cf><pdp_per_row>6</pdp_per_row>? I'd like to extract everyhing under that xml tags?
wolfshappen has joined #ruby
blackmesa1 has quit [Ping timeout: 244 seconds]
<mozzarella> marz_d`ghostman: not sure I understand the question
<marz_d`ghostman> mozzarella: https://termbin.com/atf1 I want to extract all data under <cf>AVERAGE</cf><pdp_per_row>6</pdp_per_row>. Is there a way I can filter other than using xml attributes?
<marz_d`ghostman> mozzarella: wrong link, this is the one: https://termbin.com/37wm
dviola has quit [Quit: WeeChat 2.3]
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
<mozzarella> marz_d`ghostman: you could probably do it using xpath, or just navigating the tree using ruby and a couple of css selectors
Jello_Raptor has quit [Ping timeout: 268 seconds]
Jello_Raptor has joined #ruby
[spoiler] has quit [Ping timeout: 268 seconds]
<marz_d`ghostman> mozzarella: yep, currently trying to do it via NOkogiri
[spoiler] has joined #ruby
<al2o3-cr> marz_d`ghostman: what particular part are you interested in?
<marz_d`ghostman> al2o3-cr: everything under <cf>AVERAGE</cf><pdp_per_row>6</pdp_pepr_row>.
<marz_d`ghostman> I'm trying out Nokogiri::XML::Node, I don't know what argument it's requiring with this 'name' and document. I'm getting `new': wrong argument type String (expected Data) (TypeError) https://gist.github.com/marzdgzmn/f3172fc544b5d9158250b764ecef8699
<al2o3-cr> marz_d`ghostman: hows about this: Nokogiri::XML(open("blah.xml")).css('rra')[1].text.split
<marz_d`ghostman> al2o3-cr: Wow. I'll work on this one. Thanks
<mozzarella> that's assuming the input will always be the same
<mozzarella> otherwise:
<mozzarella> doc.css('rra').select { |x| x.css('cf')[0].inner_text == 'AVERAGE' && x.css('pdp_per_row')[0].inner_text == '6' }
<al2o3-cr> mozzarella: he just said he wanted everything after :P
<mozzarella> I thought he meant the content?
<al2o3-cr> yeah, i think their graphing something.
<marz_d`ghostman> We're trying to sort out a graph from rrd :)
<marz_d`ghostman> parsing xml using other languages is a pain, good thing I found out about Nokogiri :)
prestorium has joined #ruby
<al2o3-cr> marz_d`ghostman: i'd go for mozzarella's way, it's far more sane.
skyikot has joined #ruby
prestorium has quit [Ping timeout: 250 seconds]
<marz_d`ghostman> al2o3-cr: mozzarella thanks guys
<al2o3-cr> marz_d`ghostman: np ;)
laaron has joined #ruby
xlegoman has quit [Quit: xlegoman]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #ruby
v01d4lph4 has joined #ruby
eckhardt has joined #ruby
renich has joined #ruby
renich_ has quit [Ping timeout: 246 seconds]
tdy has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
Swyper has joined #ruby
<Swyper> hi
<Swyper> how do I sort a hash based on value
<Swyper> hm
<sagax> hi all!
<sagax> how to hot reload code without rerun script?
govg has joined #ruby
DTZUZO_ has joined #ruby
cagomez has quit [Ping timeout: 255 seconds]
<Swyper> ??
DTZUZO_ has quit [Ping timeout: 245 seconds]
DTZUZO_ has joined #ruby
<al2o3-cr> Swyper: do you want the highest value first?
wilbert has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Swyper> I ended up getting it
<al2o3-cr> ah, ok.
<Swyper> though I'll post the code
<Swyper> if you have improvments
<Swyper> sec
<Swyper> x = hash.sort_by {|k, v| v }
<Swyper> x[-1][0]
<Swyper> these are the only lines in the code, same method
<Swyper> apart from naming the variable x which is bad, do you have anything else you think I could have done to improve code quality
<al2o3-cr> seems ok to me.
<al2o3-cr> this is what i had: h.sort_by { |_, v| -v }[0][0] # sort in decsending order so it looks like eyes ;)
<al2o3-cr> johnny five is alive :p
<al2o3-cr> &>> h = {a: 234, b: 23423, c: 4567}; h.keys.max_by &h
<rubydoc> # => :b (https://carc.in/#/r/6ajw)
<al2o3-cr> theres my two cent.
jcarl43 has joined #ruby
<al2o3-cr> &>> [{a: "hello", b: 0}, {a: "world", c: 1}].each_with_object(:a).map(&:[]) * ' '
<rubydoc> # => "hello world" (https://carc.in/#/r/6ajx)
<al2o3-cr> maybe that should've been good morning.
conta has joined #ruby
salasrod has quit [Read error: Connection reset by peer]
Swyper has quit [Remote host closed the connection]
salasrod has joined #ruby
<havenwood> &>> [{a: "hello", b: 0}, {a: "world", c: 1}].map { |a:, **| a }
<rubydoc> # => ["hello", "world"] (https://carc.in/#/r/6ak1)
<al2o3-cr> hehe nice!
sauvin has joined #ruby
<al2o3-cr> hey, havenwood, Enumerable#tally is this 2.7?
<al2o3-cr> or will it be in previews.
<havenwood> al2o3-cr: 2.7
<havenwood> al2o3-cr: oh, yeah - it'll be in 2.7 previews.
<havenwood> al2o3-cr: it's already landed on nightly
<al2o3-cr> nice ;)
catbusters has joined #ruby
laaron has quit [Ping timeout: 256 seconds]
ByronJohnson has quit [Ping timeout: 258 seconds]
code_zombie has quit [Quit: Leaving]
conta has quit [Ping timeout: 268 seconds]
conta has joined #ruby
laaron has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
aufi has joined #ruby
sauvin has quit [Ping timeout: 258 seconds]
wilbert has quit [Quit: wilbert]
eckhardt has quit [Ping timeout: 246 seconds]
clemens3 has joined #ruby
laaron- has joined #ruby
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
ByronJohnson has joined #ruby
sauvin has joined #ruby
renich_ has joined #ruby
renich has quit [Ping timeout: 246 seconds]
renich_ is now known as renich
kapil____ has joined #ruby
sauvin has quit [Ping timeout: 246 seconds]
marmotini_ has joined #ruby
clemens3 has quit [Ping timeout: 255 seconds]
sauvin has joined #ruby
bruce_lee has joined #ruby
clemens3 has joined #ruby
BH23 has joined #ruby
ansraliant has quit [Quit: My planet needs me]
status402 has joined #ruby
prestorium has joined #ruby
govg has quit [Ping timeout: 246 seconds]
yitsushi has quit [Quit: Bye o/]
segy has quit [Ping timeout: 245 seconds]
segy has joined #ruby
mikecmpbll has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.3]
mangold has joined #ruby
mangold has quit [Max SendQ exceeded]
<z64> havenwood: i've been meaning to write a benchmark purely using zlib, but if you're curious you can see the details of this issue (see the "references" bar) https://github.com/meew0/discordrb/issues/600 ; to put *some* numbers on it, this API requires us to send a PING every 41 seconds. using this streaming zlib method causes us to *drastically* fall behind in processing the incoming flow of events that a safety
<z64> feature that checks for PONG recipts would think our connection silently closed
<z64> whereas requesting the normal compression mode, which sends 99% text frames, we have no trouble at all keeping up
dionysus69 has quit [Read error: Connection reset by peer]
catbusters has quit [Quit: Connection closed for inactivity]
dionysus69 has joined #ruby
venmx has joined #ruby
wolfshappen has quit [Ping timeout: 255 seconds]
wolfshappen has joined #ruby
BH23 has quit [Ping timeout: 268 seconds]
awkwords has joined #ruby
lxsameer has joined #ruby
DTZUZO_ has quit [Ping timeout: 255 seconds]
BH23 has joined #ruby
venmx_ has joined #ruby
renich has quit [Ping timeout: 246 seconds]
venmx has quit [Ping timeout: 255 seconds]
fanta7531 has joined #ruby
venmx_ has quit [Quit: leaving]
venmx has joined #ruby
skyikot has quit [Ping timeout: 256 seconds]
deathwishdave has joined #ruby
Sina has joined #ruby
<dionysus69> i get method undefined
johnny56_ has quit [Ping timeout: 272 seconds]
<tbuehlmann> require the file
<tbuehlmann> it's even in the readme, read it
awkwords has quit [Quit: sleepy time]
conta1 has joined #ruby
johnny56_ has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dionysus69> :D ok thx
<dionysus69> I was in force majouaour :s
cgfbee has joined #ruby
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
deathwishdave has joined #ruby
tdy has quit [Ping timeout: 255 seconds]
drale2k_ has joined #ruby
BH23 has quit [Ping timeout: 250 seconds]
deathwishdave has quit [Quit: Textual IRC Client: www.textualapp.com]
fanta7531 has quit [Quit: fanta7531]
AJA4350 has joined #ruby
fanta7531 has joined #ruby
BH23 has joined #ruby
conta has quit [Quit: conta]
conta1 is now known as conta
conta1 has joined #ruby
mello has quit [Remote host closed the connection]
fanta7531 is now known as fanta7531|away
stryek has joined #ruby
lucasb has joined #ruby
conta has quit [Remote host closed the connection]
conta1 is now known as conta
CrazyEddy has quit [Ping timeout: 240 seconds]
AJA4350 has quit [Ping timeout: 250 seconds]
<z64> running this bm shows that sync inflating is only 1.11x slower on my machine.. seems like the issue might be somewhere else :/ https://git.io/fhdRH
AJA4350 has joined #ruby
xrexeon has joined #ruby
mangold has joined #ruby
<al2o3-cr> z64: i get "same-ish: difference falls within error" on my machine.
conta1 has joined #ruby
<z64> yeah. i'm really out of ideas on where to look now. i updated that gist to include WebSocket frames, and additionally testing several payload sizes, and that remains stable
blerrp has quit [Ping timeout: 272 seconds]
<z64> hm, i should have been testing text frames as well.. and that's kind of more like that we're seeing
<z64> SYNC_FLUSH messages being ~2x slower than TEXT
akem has quit [Quit: Leaving]
BH23 has quit [Ping timeout: 255 seconds]
orbyt_ has joined #ruby
<sagax> hi all!
<sagax> how to `symbolize_keys` total?
<sagax> because when i try `symbolize_keys` will convert as `sym` only first level
<sagax> from hash
<phaul> write a recursive algorithm?
<tbuehlmann> I assume you're talking about rails. if so: #deep_symbolize_keys
<sagax> yes, thanks
<sagax> it is what i need
BH23 has joined #ruby
alem0lars has joined #ruby
conta1 has quit [Quit: conta1]
v01d4lph4 has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
ams__ has joined #ruby
marmotini_ has quit [Ping timeout: 246 seconds]
BH23 has quit [Ping timeout: 246 seconds]
BH23 has joined #ruby
rippa has joined #ruby
gnufied has joined #ruby
jobewan has joined #ruby
conta has quit [Ping timeout: 240 seconds]
BH23 has quit [Ping timeout: 268 seconds]
Rapture has joined #ruby
renich has joined #ruby
BH23 has joined #ruby
MuffinPimp has quit [Read error: Connection reset by peer]
code_zombie has joined #ruby
MuffinPimp has joined #ruby
awkwords has joined #ruby
fanta7531|away has quit [Quit: fanta7531|away]
spacesuitdiver has joined #ruby
spacesuitdiver has quit [Client Quit]
spacesuitdiver has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
spacesuitdiver has quit [Client Quit]
skyikot has joined #ruby
awkwords_ has joined #ruby
awkwords has quit [Ping timeout: 245 seconds]
polishdub has joined #ruby
spacesuitdiver has joined #ruby
spacesuitdiver has quit [Client Quit]
szulak_ has joined #ruby
skryking has quit [Remote host closed the connection]
spacesuitdiver has joined #ruby
skwurl has joined #ruby
wolfshappen has quit [Ping timeout: 268 seconds]
spacesuitdiver has quit [Client Quit]
iMadper has joined #ruby
wolfshappen has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
spacesuitdiver has joined #ruby
dinfuehr has joined #ruby
spacesuitdiver has quit [Client Quit]
status402 has quit [Quit: status402]
awkwords_ has quit [Ping timeout: 250 seconds]
spacesuitdiver has joined #ruby
marmotini_ has joined #ruby
moei has quit [Quit: Leaving...]
agent_white has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
spiette has quit [Quit: ZNC 1.7.2 - https://znc.in]
spiette has joined #ruby
spiette has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spiette has joined #ruby
[Butch] has joined #ruby
BH23 has quit [Ping timeout: 268 seconds]
dviola has joined #ruby
xrexeon_ has joined #ruby
xrexeon has quit [Ping timeout: 240 seconds]
szulak_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
\void has joined #ruby
aufi has quit [Ping timeout: 246 seconds]
clemens3 has quit [Ping timeout: 255 seconds]
dinfuehr has quit [Ping timeout: 255 seconds]
KeyJoo has joined #ruby
skryking has joined #ruby
AJA4351 has joined #ruby
dinfuehr has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
lightstalker has quit [Ping timeout: 272 seconds]
nowhere_man has joined #ruby
dinfuehr has quit [Ping timeout: 244 seconds]
prestorium has quit [Ping timeout: 268 seconds]
dinfuehr has joined #ruby
<skwurl> WWWWOOOOOOOOOOOOOOOOOOOOOOOO!!!!!! YEAh!!!!!!!!!!!!!!!!
lightstalker has joined #ruby
dinfuehr has quit [Ping timeout: 257 seconds]
cd has joined #ruby
dinfuehr has joined #ruby
awkwords has joined #ruby
dinfuehr has quit [Ping timeout: 246 seconds]
dinfuehr has joined #ruby
sgen has joined #ruby
sgen has quit [Remote host closed the connection]
knight33 has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Fusl has quit [Ping timeout: 256 seconds]
Fusl has joined #ruby
dinfuehr has quit [Ping timeout: 244 seconds]
dinfuehr has joined #ruby
drale2k_ has joined #ruby
lxsameer has quit [Ping timeout: 246 seconds]
DTZUZO_ has joined #ruby
skyikot has quit [Ping timeout: 256 seconds]
tdy has joined #ruby
mikecmpbll has quit [Ping timeout: 246 seconds]
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
Eiam_ has quit [Ping timeout: 252 seconds]
gregf_ has quit [Ping timeout: 256 seconds]
tdy has quit [Read error: Connection timed out]
tdy has joined #ruby
blaguvest has quit [Ping timeout: 250 seconds]
alem0lars has quit [Ping timeout: 246 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 245 seconds]
AJA4351 is now known as AJA4350
szulak_ has joined #ruby
gix has joined #ruby
Creatornator has joined #ruby
KeyJoo has quit [Quit: KeyJoo]
conta has joined #ruby
ramfjord has joined #ruby
wilbert has joined #ruby
iMadper has quit [Ping timeout: 250 seconds]
lxsameer has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Creatornator has joined #ruby
nowhere_man has quit [Read error: Connection reset by peer]
nowhereman has joined #ruby
prestorium has joined #ruby
Creatornator has quit [Client Quit]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
Creatornator has joined #ruby
orbyt_ has quit [Ping timeout: 268 seconds]
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 has joined #ruby
spacesuitdiver has quit [Quit: Textual IRC Client: www.textualapp.com]
xlued has quit [Remote host closed the connection]
xlued has joined #ruby
AJA4351 is now known as AJA4350
prestorium has quit [Ping timeout: 250 seconds]
marmotini_ has quit [Ping timeout: 255 seconds]
marmotini_ has joined #ruby
sauvin has quit [Remote host closed the connection]
Rapture has joined #ruby
marmotini_ has quit [Ping timeout: 246 seconds]
szulak_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
wilbert has quit [Ping timeout: 250 seconds]
szulak_ has joined #ruby
FastJack has quit [Ping timeout: 264 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
awkwords has quit [Quit: sleepy time]
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
szulak_ has quit [Quit: Textual IRC Client: www.textualapp.com]
wilbert has joined #ruby
FastJack has joined #ruby
hiroaki has joined #ruby
kevinburke has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
xrexeon_ is now known as xrexeon
wilbert has quit [Read error: Connection reset by peer]
wilbert_ has joined #ruby
AJA4350 has quit [Ping timeout: 255 seconds]
agent_white has quit [Quit: brb]
clemens3 has joined #ruby
conta has quit [Quit: conta]
Creatornator has joined #ruby
ur5us has joined #ruby
Creatornator has quit [Client Quit]
lytol_ has joined #ruby
agent_white has joined #ruby
AJA4350 has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Creatornator has joined #ruby
spacesuitdiver has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
skryking has quit [Quit: Leaving]
venmx has quit [Ping timeout: 272 seconds]
orbyt_ has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dviola has quit [Quit: WeeChat 2.3]
Creatornator has joined #ruby
wilbert_ has quit [Ping timeout: 268 seconds]
skyikot has joined #ruby
ams__ has quit [Quit: Connection closed for inactivity]
t0xik has joined #ruby
wilbert_ has joined #ruby
AJA4351 has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4350 has quit [Ping timeout: 244 seconds]
AJA4351 is now known as AJA4350
ellcs1 has joined #ruby
Creatornator has joined #ruby
wolfshappen has quit [Ping timeout: 258 seconds]
wolfshappen_ has joined #ruby
clemens3_ has joined #ruby
clemens3 has quit [Ping timeout: 246 seconds]
wilbert_ has quit [Ping timeout: 244 seconds]
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Ping timeout: 246 seconds]
renich_ has joined #ruby
renich has quit [Ping timeout: 246 seconds]
orbyt_ has joined #ruby
renich has joined #ruby
renich_ has quit [Ping timeout: 244 seconds]
ellcs1 has quit [Ping timeout: 268 seconds]
AJA4350 has quit [Ping timeout: 240 seconds]
<havenwood> skwurl.squeeze
<havenwood> #=> "WO! YEAh!"
Creatornator has joined #ruby
orbyt_ has quit [Ping timeout: 246 seconds]
Creatornator has quit [Client Quit]
venmx has joined #ruby
orbyt_ has joined #ruby
<phaul> &fake HitchhikersGuideToTheGalaxy.marvin_quote
<rubydoc> You think you've got problems? What are you supposed to do if you are a manically depressed robot? No, don't try to answer that. I'm fifty thousand times...
<phaul> ah. shame. I should increase the allowed message size. Now we never now the punchline
lord4163 has quit [Ping timeout: 268 seconds]
cthu| has joined #ruby
cthulchu_ has quit [Ping timeout: 250 seconds]
polishdub has quit [Quit: leaving]
<havenwood> phaul: i'd say we should port this to Ruby, but license "Coming soon!" https://github.com/openai/gpt-2
gigetoo has quit [Ping timeout: 268 seconds]
<phaul> that looks very interesting. I'll read the paper tomorrow and we can disuss it further. atm it's past midnight here, so not today. but I don't have anything for tomorrow
gigetoo has joined #ruby
renich has quit [Ping timeout: 246 seconds]
Creatornator has joined #ruby
Anubix has joined #ruby
<Anubix> Hello, is there some method to change Host and Referrer of net/http request to server?
<havenwood> Anubix: Have you tried setting headers for Referer and X-Forwarded-Host?
lord4163 has joined #ruby
<havenwood> Anubix: It *should* work if you set those ^ headers with net/http.
<Anubix> havenwood: yea i used this code https://pastebin.com/hEZKKQX3
<ruby[bot]> Anubix: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<havenwood> Anubix: And neither seem to work from Rails?
<havenwood> Anubix: Or host works but referrer doesn't?
<Anubix> not a single one
<Anubix> and it is in rails application
<havenwood> Anubix: Hrm, well I'm assuming it's the same result from Curl or whatever else? I think #rubyonrails might be the right place after all. Sorry for the wild goose chase.
<havenwood> Anubix: Just curious, but have you tried setting Turbolinks-Referrer in addition to X-Forwarded-Host?
<Anubix> i remoed turbolinks from app
<havenwood> Anubix: What are host and referrer showing up as?
<Anubix> origin, localhost
<Anubix> from my dev computer
<havenwood> Anubix: Try adding the port to the X-Forwarded-Host?
<havenwood> Nvm.
AJA4350 has joined #ruby
skwurl has quit [Quit: WeeChat 2.3]
<havenwood> Anubix: This person seems to think it works, heh: https://github.com/rails/rails/issues/29893
<havenwood> Anubix: I dunno! ¯\_(ツ)_/¯
<havenwood> I'd suggest confirming with Curl to rule out that it's Net::HTTP-specific.
<Anubix> Iam reading that github
cthulchu has joined #ruby
cthu| has quit [Ping timeout: 245 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]