<drbrain>
how do you build a dynamic app with a cartoon dog?
jackyalc- is now known as jackyalcine
jackyalcine has quit [Changing host]
jackyalcine has joined #ruby-lang
diegoviola has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
<zzak>
drbrain lots of treats and a little bacon
<drbrain>
you'll probably need a special keyboard too
<zzak>
the default layout wont support paws
woollyams has joined #ruby-lang
woollyams has quit [Read error: Connection reset by peer]
mdub has joined #ruby-lang
mdub has quit [Read error: Connection reset by peer]
woollyams has joined #ruby-lang
mykoweb has joined #ruby-lang
bnagy has joined #ruby-lang
makoto_ has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
Coincidental has quit [Remote host closed the connection]
jaimef has quit [Excess Flood]
postmodern has quit [Quit: Leaving]
makoto_ has quit [Ping timeout: 252 seconds]
robbyoconnor has quit [Ping timeout: 260 seconds]
<Senjai>
55How is all
mykoweb has quit [Remote host closed the connection]
jaimef has joined #ruby-lang
broconne has quit [Quit: Leaving.]
mykoweb has joined #ruby-lang
whatasunnyday has quit [Quit: whatasunnyday]
mykoweb has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
robbyoconnor has joined #ruby-lang
vpretzel has joined #ruby-lang
imperator has joined #ruby-lang
* centrx
cannie has joined #ruby-lang
cannie_ has joined #ruby-lang
cannie has quit [Read error: Connection reset by peer]
soba has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby-lang
saarinen has joined #ruby-lang
kurko__ has joined #ruby-lang
jonahR has quit [Quit: jonahR]
CaptainJet has quit []
soba has left #ruby-lang ["See you..."]
vlad_starkov has quit [Read error: Connection reset by peer]
mykoweb has joined #ruby-lang
saarinen has quit [Client Quit]
imperator has quit [Ping timeout: 245 seconds]
jamto11 has joined #ruby-lang
mistym has joined #ruby-lang
Coincidental has joined #ruby-lang
mistym has quit [Remote host closed the connection]
postmodern has joined #ruby-lang
postmodern has quit [Client Quit]
mistym has joined #ruby-lang
JohnBat26 has joined #ruby-lang
ender|dktm has joined #ruby-lang
skade has joined #ruby-lang
yfeldblu_ has quit [Remote host closed the connection]
nathanstitt has quit [Quit: I growing sleepy]
makoto_ has joined #ruby-lang
woollyams has joined #ruby-lang
makoto_ has quit [Ping timeout: 245 seconds]
mistym has quit [Remote host closed the connection]
kbarry has joined #ruby-lang
ikrima has quit [Ping timeout: 252 seconds]
Coincidental has quit [Remote host closed the connection]
elliotec has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 260 seconds]
guns has quit [Quit: guns]
albioner has joined #ruby-lang
bjh13_ has joined #ruby-lang
mistym has joined #ruby-lang
fuhgeddaboudit has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
jtw has quit []
vlad_starkov has quit [Read error: Connection reset by peer]
d4rkr4i has quit [Quit: Leaving.]
artm has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
kurko__ has quit [Ping timeout: 245 seconds]
kurko__ has joined #ruby-lang
centrx has quit [Quit: Leaving]
<kbarry>
is there a name for the characters that must be escaped in a string?
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
RobertBirnie has joined #ruby-lang
dm78 has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
dm78 has joined #ruby-lang
bjh13_ has quit [Quit: leaving]
bjh13_ has joined #ruby-lang
<drbrain>
kbarry: maybe "special"
bjh13_ has quit [Client Quit]
<drbrain>
but usually that refers to things like tabs and newlines (\t, \n)
skade has quit [Quit: Computer has gone to sleep.]
dm78 has quit [Ping timeout: 245 seconds]
postmodern has joined #ruby-lang
Pupeno_w has joined #ruby-lang
<kbarry>
drbrain good thing your still online
<kbarry>
so, i tried using
<kbarry>
%Q{}
<kbarry>
doesnt work,
<Mon_Ouie>
They don't "have to" be escaped, you can have a literal newline in a string too. The ones that need to be are backslashes and the characters used as delimiters for double/simply quoted strings
<kbarry>
add-content -path c:\\test.txt -value "starting move script" <-- works
makoto_ has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
<kbarry>
%Q{add-content -path c:\test.txt -value "starting move script"} <--doesnt work
<drbrain>
ah, you need to escape the \
jsullivandigs has joined #ruby-lang
<drbrain>
so try: %Q{add-content -path c:\\test.txt -value "starting move script"}
<kbarry>
I thought thats what the %Q{} was for
<drbrain>
%Q{} is like "" but you don't have to escape internal "
<kbarry>
I thought %Q{} says "DO NOT INTERPRET ANYTHING OR I KILL YOU!!!!!"
<yorickpeterse>
SAX works if you have 1 or 2 input sources
<ericwood>
scraping is tough because you get some of the shittiest markup
<yorickpeterse>
and a well formed structure of input
machindo has quit [Client Quit]
<ericwood>
I used to scrape a ton in my first internship and it was hell
<yorickpeterse>
I actually quite enjoy it
<yorickpeterse>
since it's a pretty webscale-ish setup that's actually interesting to develop
<yorickpeterse>
granted a lot of it is shit
<ericwood>
it's kind of a fun problem to solve but normalizing the data you pull out is tricky
relix has joined #ruby-lang
<yorickpeterse>
it's what we do :)
<ericwood>
eventmachine + nokogiri did have great results though :D
<yorickpeterse>
haha eventmachine
<ericwood>
it was the easiest option for asyncing the HTTP requests
<ericwood>
what are you using?
<yorickpeterse>
threads
<yorickpeterse>
on the highest level
<ericwood>
hardcore
<yorickpeterse>
The individual scraper code doesn't care nor deal with threading
<ericwood>
\m/
r0bgleeson has quit [Quit: WeeChat 0.4.2]
<yorickpeterse>
(I meant high level as in abstraction level)
<yorickpeterse>
that is, we get a job, shoot that to one of the N threads running and from there it's plain old sync code
<yorickpeterse>
Part of the idea was to make average Joe/Alice be able to deal with it without having to know a ton about threading
<ericwood>
yeah
<ericwood>
that's neat
momomomomo has quit [Quit: momomomomo]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jsullivandigs has joined #ruby-lang
adambeynon has quit [Excess Flood]
adambeynon has joined #ruby-lang
kurko______ has joined #ruby-lang
havenwood has joined #ruby-lang
kurko__ has quit [Ping timeout: 245 seconds]
sferik has joined #ruby-lang
momomomomo has joined #ruby-lang
<manveru>
yorickpeterse: ever thought about just using something like phantomjs instead? :)
<yorickpeterse>
Yes
<yorickpeterse>
It's slow as shit
<yorickpeterse>
Plus I'd have to write JS
<yorickpeterse>
Plus I'd then move the potential memory consumption to the part of serializing/deserializing input/output for Phantom
<yorickpeterse>
That is, it has to give back something Rubby can understand, which it then has to de-serialize
bantic has joined #ruby-lang
<yorickpeterse>
Phantom would solve the problem where you have JS heavy websites, though so far we've always been able to work around that by figuring out what exactly the underlying JS uses
<manveru>
ok...
kurko______ has quit [Ping timeout: 252 seconds]
<yorickpeterse>
(e.g. some hidden JSON API)
<manveru>
and doing a fork before invoking nokogiri?
<yorickpeterse>
same problem
senj has joined #ruby-lang
<manveru>
that would only leak in the new process, in theory
wallerdev has joined #ruby-lang
<yorickpeterse>
Yes, but you'd still have to serialize/de-serialize. Plus the overhead of fork() is probably even bigger than starting Phantom
<manveru>
fork has 0 overhead on linux
mistym has joined #ruby-lang
<yorickpeterse>
Another issue with fork() is that it would probably screw with our queue setup, plus you'd have to deal with potential runaway processes
<manveru>
well, not 0, but reeeealy little :)
<yorickpeterse>
I'd rather fix the source: more efficient parsing
<yorickpeterse>
Opposed to forking, sub-processes, Go, etc
<yorickpeterse>
Granted I'm not sure how much the DOM parsing is causing in terms of memory usage, might as well been the caching of CSS selectors (which I've since disabled)
<yorickpeterse>
Shouldn't take more than a few days before I have some better numbers on that
<yorickpeterse>
(we measure memory thank god)
<manveru>
well... good luck, i guess :)
<manveru>
you may now continue writing your ircblog
retro|cz has joined #ruby-lang
artm has quit [Ping timeout: 250 seconds]
heftig has quit [Quit: Quitting]
deepwater has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jperry_ has joined #ruby-lang
jperry_ has quit [Client Quit]
r0bby_ has joined #ruby-lang
r0bby_ has quit [Client Quit]
kbarry has joined #ruby-lang
loincloth has joined #ruby-lang
Elico has quit [Quit: Elico]
<yorickpeterse>
* blag
Elico has joined #ruby-lang
fuhgeddaboudit has joined #ruby-lang
Elico has quit [Client Quit]
Elico has joined #ruby-lang
|jemc| has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
benlovell has quit [Ping timeout: 272 seconds]
benlovell has joined #ruby-lang
ender|dktm has joined #ruby-lang
Elico has quit [Quit: Elico]
sferik has joined #ruby-lang
Elico has joined #ruby-lang
sferik has quit [Client Quit]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
mbj has quit [Quit: leaving]
jamto11 has quit [Remote host closed the connection]
Elico has quit [Quit: Elico]
mehlah has joined #ruby-lang
rondale_sc has joined #ruby-lang
michaeldeol has joined #ruby-lang
samsongz has joined #ruby-lang
makoto has joined #ruby-lang
r0bgleeson has joined #ruby-lang
makoto is now known as Guest51486
bin7me has joined #ruby-lang
feinbergscott has quit [Ping timeout: 245 seconds]
loincloth has quit []
rhodee has joined #ruby-lang
sqbell has joined #ruby-lang
Guest51486 has quit [Ping timeout: 245 seconds]
zoo-zed has joined #ruby-lang
tylersmith has joined #ruby-lang
sferik has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
<sqbell>
Hello. Did anyone managed to use systemtap with rvm installed ruby? If I compile ruby myself, it works, but with rvm installed ruby (even with --enable-dtrace) it doesn't list any probes.
vlad_starkov has quit [Remote host closed the connection]
sferik has quit [Client Quit]
DarkBushido has quit [Ping timeout: 264 seconds]
cannie has joined #ruby-lang
seanlinsley has joined #ruby-lang
kbarry_ has joined #ruby-lang
kbarry has quit [Ping timeout: 250 seconds]
jgpawletko has joined #ruby-lang
kbarry_ is now known as kbarry
verto has quit [Ping timeout: 264 seconds]
senj has quit [Quit: Sleep Now]
senj has joined #ruby-lang
cschneid has quit [Ping timeout: 264 seconds]
verto has joined #ruby-lang
DarkBushido has joined #ruby-lang
RobertBirnie has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<havenwood>
sqbell: I don't know why that would be. You might want to try the #rvm channel too.
cannie_ has joined #ruby-lang
cschneid has joined #ruby-lang
cannie has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby-lang
<sqbell>
havenwood: I just did that. One thing I noticed is that normally ruby compiles statically and rvm builds it dynamically linked. Don't know if this could be the reason it doesn't work with systemtap.
dm78 has quit [Remote host closed the connection]
dm78 has joined #ruby-lang
vondruch has quit [Ping timeout: 245 seconds]
dm78 has quit [Read error: No route to host]
jsrn_ has quit [Ping timeout: 245 seconds]
dm78 has joined #ruby-lang
<kbarry>
Hmmmm, i have an interesting problem,
<kbarry>
I have something like %q{\\remoteserver.com\$e\folder}
<kbarry>
but its being turned into "c:\remoteserver.com\$e\folder"
dm78 has quit [Remote host closed the connection]
dm78 has joined #ruby-lang
<kbarry>
Is there something I am not aware of regarding the use of "\\" inside of %q{} ?
dm78 has quit [Remote host closed the connection]
jvrmaia has joined #ruby-lang
dm78 has joined #ruby-lang
<kbarry>
actually, its %q{"\\remoteserver.com\'$e'\folder"}
dagobah has quit [Quit: Leaving...]
<manveru>
kbarry: ruby doesn't turn that into anything automatically
<manveru>
irb calls .inspect on the return value of what you enter, so it looks a bit weird
benlovell has quit [Ping timeout: 272 seconds]
<kbarry>
but why? I was sure, i mean SURE that %q{} meant quite literally "Ruby, if you touch ANYTHING inside these Braces, i will track you down and kill you"
<manveru>
no
<manveru>
%q{} is just like '', it won't interpret things like #{} or #$foo
<manveru>
but \ is still used to escape things
<manveru>
so you need to escape \ to get \, which means \\ is \
<manveru>
so to get two \ you have to write \\\\
rhodee has joined #ruby-lang
kurko______ has joined #ruby-lang
samsongz has quit [Read error: Connection reset by peer]
<manveru>
i don't think there is any literal string syntax in ruby that would turn \\ into \\ instead of \
samsongz has joined #ruby-lang
makoto has joined #ruby-lang
<manveru>
see, if you want to write a } inside %q{}, you still need to write %q{\}}
makoto is now known as Guest85615
sross07 has joined #ruby-lang
<bougyman>
manveru: puts %q!"\ "!
<bougyman>
"\ "
kurko__ has quit [Ping timeout: 250 seconds]
<bougyman>
er.
<manveru>
if it's unambigous, yeah
<manveru>
but try %q{\}
<bougyman>
crazy
<bougyman>
\\\ and \\\\ are the same.
<bougyman>
in this context: puts %q!"\\\ "!
<kbarry>
i was just going to tell you that
<manveru>
aye :)
<kbarry>
because when i was one \ short
<kbarry>
i added another
<bougyman>
it's farked
<kbarry>
I love ruby.
<manveru>
i guess it lets you be lazy in those cases
<kbarry>
Consistent and True to the end :)
<kbarry>
Nice PR spin :)
<manveru>
lol
fijimunkii has quit [Ping timeout: 265 seconds]
Guest85615 has quit [Ping timeout: 245 seconds]
deepwater has joined #ruby-lang
mistym has joined #ruby-lang
jackal has joined #ruby-lang
<jackal>
hello there fellow rubyists
<jackal>
Is this a good place to ask a question? I am struggling with a method :(
jackal is now known as Guest78749
Guest78749 is now known as trentont101
<trentont101>
i am trentont101 now :)
<kbarry>
this is a great place to ask question,
<kbarry>
the only rule is,
<kbarry>
Don't ask if its ok to ask questions.
senj has quit [Quit: Sleep Now]
<kbarry>
:)
senj has joined #ruby-lang
mikecmpbll has joined #ruby-lang
lsegal has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
<ericwood>
!ask
<ericwood>
oh
<ericwood>
no bot in here?
centrx has joined #ruby-lang
hfp is now known as hfp`away
pkrnj has joined #ruby-lang
VTLob has joined #ruby-lang
<trentont101>
got it!
Mon_Ouie has joined #ruby-lang
<trentont101>
on ruby channel
<trentont101>
i will ask 1 more time tho
<trentont101>
to see your opinion
<trentont101>
still here ericwood?
<trentont101>
I want to break for 1 secound between my fight rounds in my MUD, would kernel#sleep be the best option?
arBmind has joined #ruby-lang
<centrx>
I will say, sleep is the way
<ericwood>
I'm here
<ericwood>
why do you think I'll know the best answer to this lol
<ericwood>
sleep is what I'd use, though
<ericwood>
don't know of anything better
<trentont101>
ok thanks
<trentont101>
are there any other options?
<ericwood>
just use sleep already dammit
<trentont101>
lol
<trentont101>
there is a reason im hesitant
<trentont101>
ill try it though thank you
<centrx>
No, you don't need to set another thread with "alarm_clock"
<trentont101>
lol i wont
kurko___ has joined #ruby-lang
kurko___ has quit [Max SendQ exceeded]
kurko__ has joined #ruby-lang
<trentont101>
works great thanks yall!
kurko______ has quit [Ping timeout: 260 seconds]
trentont101 has quit [Quit: Leaving]
jamto11 has joined #ruby-lang
hahuang65 has joined #ruby-lang
albertgrala has quit [Quit: Leaving]
vky has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
arooni-mobile has joined #ruby-lang
centrx has quit [Quit: CHOOO CHOOOOOOOOOOOOOOOOOOOOOOOOOOO!!!!!!!!!!!!!!!!]
pabloh has quit [Quit: Saliendo]
smashwilson has quit [Ping timeout: 272 seconds]
anjen has quit [Quit: anjen]
yfeldblum has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
havenwood has quit [Remote host closed the connection]
sepp2k has joined #ruby-lang
fijimunkii has joined #ruby-lang
Mon_Ouie has quit [Read error: Operation timed out]
workmad3 has quit [Ping timeout: 246 seconds]
Coincidental has joined #ruby-lang
mehlah has joined #ruby-lang
sepp2k has quit [Ping timeout: 260 seconds]
sree has joined #ruby-lang
sepp2k has joined #ruby-lang
sferik has joined #ruby-lang
sferik has quit [Client Quit]
diegoviola has quit [Ping timeout: 250 seconds]
artm has joined #ruby-lang
rhodee has quit [Quit: rhodee]
michaeldeol has quit [Quit: Computer has gone to sleep.]
jamto11 has quit [Remote host closed the connection]
michaeldeol has joined #ruby-lang
makoto has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
makoto is now known as Guest93849
saarinen has quit [Quit: saarinen]
havenwood has joined #ruby-lang
saarinen has joined #ruby-lang
michaeldeol has quit [Read error: No route to host]
michaeldeol has joined #ruby-lang
mforrester has joined #ruby-lang
saarinen has quit [Client Quit]
Guest93849 has quit [Ping timeout: 272 seconds]
sree has quit []
rhodee has joined #ruby-lang
rh1n0 has quit [Remote host closed the connection]
machindo has quit [Quit: machindo]
artm has quit [Ping timeout: 250 seconds]
saarinen has joined #ruby-lang
mistym has quit [Remote host closed the connection]
elliotec has quit [Remote host closed the connection]