<erikh>
it does that to avoid taking all your delicious ram
<erikh>
if the URI is huuuuuuge
<rue>
Harzilein: What did you expect?
tooky has joined #ruby-lang
<Harzilein>
rue: an io-like object with path = base_uri
<Harzilein>
rue: because that appears to be what nokogiri expects. but it does not seem to matter, as nokogiri does not set its url attribute from a file either :(
Criztian has quit [Remote host closed the connection]
<Harzilein>
which makes using their frontend program a bit clumsy, as they shift ARGV and the @doc object does not remember its url :(
jbsan has joined #ruby-lang
rippa has joined #ruby-lang
bglusman has joined #ruby-lang
d3vic3 has quit [Quit: leaving]
<rue>
You could just wrap that to pass in a URL, reading it, and then passing the data and URL to Nokogiri::HTML
dous has quit [Remote host closed the connection]
sora_h is now known as s0ra_h
karneisada has joined #ruby-lang
<Harzilein>
rue: yeah, but i can't use their frontend program
<rue>
I do not know of which you speak
<Harzilein>
bin/nokogiri
<Harzilein>
i found it just passes nil for the url parameter :(
jtoy has joined #ruby-lang
<Harzilein>
oh well, i guess i could use nokogiri_url=http://www.google.com nokogiri http://www.google.com :/
<rue>
Meh, just do it yourself. It doesn’t actually do anything
dejongge has joined #ruby-lang
bytephilia has quit [Remote host closed the connection]
karneisada has quit [Ping timeout: 246 seconds]
bytephilia has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
jtoy has quit [Quit: jtoy]
Criztian has joined #ruby-lang
dejongge has quit [Client Quit]
dejongge has joined #ruby-lang
igotnolegs has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
neocoin has quit [Remote host closed the connection]
jtoy has joined #ruby-lang
neocoin has joined #ruby-lang
tooky has quit [Remote host closed the connection]
itsmeduncan has joined #ruby-lang
neocoin has quit [Ping timeout: 260 seconds]
jackhammer2022 has joined #ruby-lang
savage- has quit [Remote host closed the connection]
jtoy has quit [Quit: jtoy]
wallerdev has joined #ruby-lang
pbjorklu1d has joined #ruby-lang
bytephilia has quit [Remote host closed the connection]
brdude has joined #ruby-lang
pbjorklund has quit [Ping timeout: 245 seconds]
dtribble has joined #ruby-lang
lsegal has joined #ruby-lang
jackhammer2022 has quit [Read error: Connection reset by peer]
burgestrand has joined #ruby-lang
Z33K|Lux has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
jackhammer2022 has joined #ruby-lang
bglusman has quit [Remote host closed the connection]
brdude has quit [Ping timeout: 268 seconds]
burgestrand has joined #ruby-lang
tenku has joined #ruby-lang
qwerxy has joined #ruby-lang
<tsou>
bli
<tsou>
(oops. sorry for that..
yxhuvud has joined #ruby-lang
<Harzilein>
one more nokogiri question
<Harzilein>
should Nokogiri::XML::Element#css not restrict the search to children of that node?
tooky has joined #ruby-lang
Criztian has joined #ruby-lang
<rue>
The doc suggests the node itself
kain has quit [Ping timeout: 252 seconds]
s0ra_h is now known as sora_h
<apeiros_>
Harzilein: it restricts it to descendants of that node
<apeiros_>
not just children
<Harzilein>
yeah, descendants is what i meant
<Harzilein>
turns out the page was actually nesting tables and i was just confused
Criztian has quit [Remote host closed the connection]
burgestrand has quit [Quit: Leaving.]
MouseTheLuckyDog has joined #ruby-lang
benanne has quit [Quit: kbai]
<MouseTheLuckyDog>
Is there some way of setting a date local, so that Date parses using "%M%D%Y" by default?
sora_h is now known as s0ra_h
s0ra_h is now known as sora_h
flak has joined #ruby-lang
flak is now known as Guest11049
rippa has quit [Ping timeout: 252 seconds]
tooky has quit [Remote host closed the connection]
burgestrand has joined #ruby-lang
tooky has joined #ruby-lang
Carnage` has quit [Ping timeout: 246 seconds]
crankharder has quit [Read error: Connection reset by peer]
brianpWins has quit [Quit: brianpWins]
sora_h is now known as s0ra_h
mistym has quit [Remote host closed the connection]
itsmeduncan has quit [Quit: itsmeduncan]
itsmeduncan has joined #ruby-lang
cantonic_ has joined #ruby-lang
workmad3 has joined #ruby-lang
cantonic has quit [Ping timeout: 245 seconds]
cantonic_ is now known as cantonic
tooky has quit [Remote host closed the connection]
retro|cz has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
itsmeduncan has quit [Quit: itsmeduncan]
<drbrain>
MouseTheLuckyDog: Date.strptime
bryancp has quit [Remote host closed the connection]
Criztian has joined #ruby-lang
slyphon has quit [Ping timeout: 245 seconds]
bryancp has joined #ruby-lang
spuk has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 272 seconds]
itsmeduncan has joined #ruby-lang
<MouseTheLuckyDog>
drbrain. That changes the default format for Date?
<drbrain>
MouseTheLuckyDog: no
<drbrain>
but if you want to parse all your dates that way, then that's what you should use
<drbrain>
there's no way to change the default
erpuds has joined #ruby-lang
<MouseTheLuckyDog>
drbrain, then why does rail do it?
<MouseTheLuckyDog>
s:/rail/rails/
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
s0ra_h is now known as sora_h
bryancp has quit [Remote host closed the connection]
superkabii has quit [Ping timeout: 244 seconds]
fayimora has quit [Quit: Busy…..zzzzz]
brianpWins has joined #ruby-lang
sush24_ has joined #ruby-lang
sush24_ has quit [Quit: Leaving]
sush24 has joined #ruby-lang
<sush24>
it seems I can't have "@" character in URI.user attribute
<manuw>
can someone say, how I get the SQLite3::Database.new back in getDb?
<manuw>
* explain
<flori>
manuw: spell initialize correctly
joast has quit [Ping timeout: 250 seconds]
lcdhoffman has joined #ruby-lang
flori has left #ruby-lang ["Client exiting"]
flori has joined #ruby-lang
<manuw>
img
<manuw>
omg
<Mon_Ouie>
Whenever it happens to me, I always think they should have called it init
<flori>
Mon_Ouie: me, too
rmascarenhas has joined #ruby-lang
<manuw>
flori: thank... shame on me
dfr|mac has joined #ruby-lang
cosah has joined #ruby-lang
qwerxy has quit [Quit: offski]
<cosah>
from the documentation i'm looking at, this should work. it's not recognizing Prime class for me. http://pastebin.com/mbcjikn2
Carnage\ has joined #ruby-lang
<apeiros_>
cosah: did you require 'prime'?
dvk_ has joined #ruby-lang
hipe has joined #ruby-lang
<cosah>
yes, prime being the largest prime factor of 600851475143
<apeiros_>
cosah: I don't see `require 'prime'` in your code
<cosah>
i think i misunderstood you
tenku has quit [Ping timeout: 276 seconds]
tonni has quit [Read error: Connection reset by peer]
tonni has joined #ruby-lang
<cosah>
now i have, thanks
bytephilia has joined #ruby-lang
<apeiros_>
cosah: also for future reference - do include your actual exception
<hipe>
greeting all, long time no see
<hipe>
i think that something fundamental about oniguruma (or is it pcre yet?) has escaped my considerable understanding, w/ re to the '\b' zero-width assertion
tooky has joined #ruby-lang
tooky has quit [Remote host closed the connection]
<hipe>
/a/ =~ 'a' and /a\b/ =~ 'a' and /a>/ =~ 'a>' #=> true (each match returned '0')
<hipe>
yet: /a>\b/ =~ 'a>' # => nil
<apeiros_>
hipe: \b is word boundary
<apeiros_>
there is no word boundary there
<hipe>
if my powers of deductive reasoning serve me, something aobut the combination of '>' ... ahhhhhh apeiros_ you still got it after all these years ^_^
<apeiros_>
> and \z are not start/end of a word
<hipe>
sure yeah they are start of string
<hipe>
ok excellent i'll figure out what i mean then. but that's my answer thx apeiros_ !
<hipe>
(apearios to be clear, i am trying to match the literal string "foo>" and also i am trying to have ">" occur as the rightmost side of a word boundary. but now that i see that '>' is never condidered to be part of a word or whatever, it's problematic to treat is as such)
<hipe>
but whatever i'm over it now. ok thx 1
<apeiros_>
/foo>\B/ then maybe? not sure what you're trying to match and what to avoid being matched
<rue>
Why do you want that?
<rue>
Maybe you just need a group…
<hipe>
it's an assertion in a unit text that is asserting that a command line app writes to $stderr the string "expecting file: <foo>" and i am in the habbbit of matching at least on word boundaries at such regexp like these
<hipe>
you know, i am in a habbbit
qwerxy has joined #ruby-lang
<hipe>
it's fine i'm just gonna match end of string thar. and, it was nice learning something about what a word boudary means ^_^ thx apeiros_, rue
s0ra_h is now known as sora_h
banisterfiend has joined #ruby-lang
qwerxy has quit [Client Quit]
perryh_away is now known as perryh
lcdhoffman has quit [Quit: lcdhoffman]
dtribble has quit [Ping timeout: 248 seconds]
yxhuvud has quit [Ping timeout: 252 seconds]
lun__ has joined #ruby-lang
sepp2k has joined #ruby-lang
lun_ has quit [Ping timeout: 244 seconds]
benanne has joined #ruby-lang
tooky has joined #ruby-lang
Axsuul has joined #ruby-lang
bytephilia has quit [Quit: Computer has gone to sleep.]
hinbody has quit [Ping timeout: 246 seconds]
sora_h is now known as s0ra_h
bytephilia has joined #ruby-lang
erpuds has quit [Quit: erpuds]
hachiya_ has left #ruby-lang [#ruby-lang]
kain has joined #ruby-lang
hachiya has joined #ruby-lang
kain has quit [Client Quit]
kain has joined #ruby-lang
cantonic has quit [Quit: cantonic]
brianpWins has joined #ruby-lang
cantonic has joined #ruby-lang
tooky has quit [Remote host closed the connection]
<andrewvos>
Arrr
<rue>
Go watch the ending ceremony
<rue>
If we have to watch it, you have to, too.
<rue>
This song…JFC.
dfr|mac has quit [Remote host closed the connection]
joekarma has joined #ruby-lang
d3vic3 has joined #ruby-lang
imajes has quit [Excess Flood]
dtribble has joined #ruby-lang
imajes has joined #ruby-lang
bytephilia has quit [Remote host closed the connection]
joast has joined #ruby-lang
tooky has joined #ruby-lang
tenku has joined #ruby-lang
<andrewvos>
rue: My British girlfriend is making me watch it.
<rue>
Serves you right
<andrewvos>
Yeah I probably should have thought that through.
cosah has quit [Ping timeout: 245 seconds]
qwerxy has joined #ruby-lang
tenku has quit [Ping timeout: 252 seconds]
s0ra_h is now known as sora_h
Hakon has joined #ruby-lang
tooky has quit [Remote host closed the connection]