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?
<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
<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]
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]
<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
<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.
<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?