ljarvis changed the topic of #ruby-lang to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p547: http://ruby-lang.org || Paste code on http://gist.github.com
havenwood has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
klmlfl has joined #ruby-lang
AmBienCeD has quit []
emmesswhy has joined #ruby-lang
marr has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 260 seconds]
sharpmachine has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby-lang
sepp2k1 has quit [Ping timeout: 240 seconds]
klmlfl has quit [Ping timeout: 240 seconds]
sarkyniin has quit [Quit: Quitte]
klmlfl has joined #ruby-lang
ddv has quit [Ping timeout: 260 seconds]
pr0ton has quit [Quit: pr0ton]
ddv has joined #ruby-lang
stamina has quit [Ping timeout: 272 seconds]
klmlfl has quit [Ping timeout: 250 seconds]
sharpmachine has quit [Remote host closed the connection]
tdy has joined #ruby-lang
pr0ton has joined #ruby-lang
pr0ton has quit [Client Quit]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emmesswhy has quit [Quit: This computer has gone to sleep]
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
jxie has quit [Ping timeout: 260 seconds]
jxie has joined #ruby-lang
j4cknewt has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 240 seconds]
mistym has quit [Remote host closed the connection]
djbkd has quit [Quit: My people need me...]
sepp2k has quit [Read error: Connection reset by peer]
alexju has joined #ruby-lang
taylorrf has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
haraoka has joined #ruby-lang
diegoviola has joined #ruby-lang
j4cknewt has joined #ruby-lang
tkuchiki has joined #ruby-lang
Averna has joined #ruby-lang
parenjitsu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
migbar has quit [Remote host closed the connection]
migbar has joined #ruby-lang
mistym has joined #ruby-lang
alexju has quit [Remote host closed the connection]
migbar has quit [Ping timeout: 245 seconds]
postmodern has quit [Quit: Leaving]
j4cknewt has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
j4cknewt has joined #ruby-lang
chouhoulis has joined #ruby-lang
pabs__ is now known as pabs
king313 has quit [Quit: .]
saarinen has quit [Quit: saarinen]
taylorrf has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
kgrz has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
rsl has quit [Read error: Connection reset by peer]
goatish_mound has joined #ruby-lang
omosoj has quit [Quit: Leaving]
arBmind has joined #ruby-lang
womble has joined #ruby-lang
arBmind1 has quit [Ping timeout: 260 seconds]
jbardin has quit [Quit: jbardin]
lcdhoffman has quit [Quit: lcdhoffman]
kgrz has quit [Ping timeout: 250 seconds]
diegoviola has quit [Ping timeout: 260 seconds]
diegoviola has joined #ruby-lang
hahuang65 has quit [Ping timeout: 260 seconds]
havenwood has joined #ruby-lang
brixen has quit [Excess Flood]
brixen has joined #ruby-lang
karamazov has joined #ruby-lang
taylorrf has quit [Remote host closed the connection]
sindork_ is now known as sindork
sindork has quit [Changing host]
sindork has joined #ruby-lang
mistym has quit [Quit: Leaving...]
sharpmachine has joined #ruby-lang
karamazov has quit []
Lewix has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
dwknoxy has quit [Quit: Textual IRC Client: www.textualapp.com]
emmesswhy has joined #ruby-lang
hotpancakes has quit [Remote host closed the connection]
klmlfl has joined #ruby-lang
Boohbah has joined #ruby-lang
tectonic has joined #ruby-lang
davispuh has quit [Ping timeout: 260 seconds]
klmlfl has quit [Quit: klmlfl]
alexju has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
thomasxie has joined #ruby-lang
j4cknewt has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 260 seconds]
taylorrf has joined #ruby-lang
CaptainJet has quit []
havenwood has quit [Read error: Connection reset by peer]
j4cknewt has quit [Ping timeout: 260 seconds]
taylorrf has quit [Read error: No route to host]
taylorrf has joined #ruby-lang
thomasxie has quit [Quit: Leaving.]
Raynes has joined #ruby-lang
sharpmachine has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
tris has quit [Ping timeout: 272 seconds]
Lewix has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
benlovell has joined #ruby-lang
Lewix has joined #ruby-lang
kgrz has quit [Ping timeout: 240 seconds]
benlovell has quit [Ping timeout: 246 seconds]
j4cknewt has joined #ruby-lang
pr0ton has joined #ruby-lang
MouseTheLuckyDog has joined #ruby-lang
<MouseTheLuckyDog> Is there a way of listing all the varaibles available in an environment/scope/binding?
RobertBirnie has joined #ruby-lang
<womble> MouseTheLuckyDog: Local variables, or instance variables?
<MouseTheLuckyDog> womble: All variables. Essentially I want to print the environment.
<womble> The environment doesn't equal all variables.
<womble> It also includes all constants, and methods.
<womble> And all unary operators, technically.
<MouseTheLuckyDog> I did say "essentially"
shinnya has quit [Ping timeout: 272 seconds]
<womble> MouseTheLuckyDog: Please be specific about what you want. I'm not going to play 20 questions to work out what you're *actually* trying to achieve.
arooni-mobile has joined #ruby-lang
duderonomy has joined #ruby-lang
klmlfl has joined #ruby-lang
duderonomy has quit [Ping timeout: 260 seconds]
klmlfl_ has joined #ruby-lang
klmlfl has quit [Quit: klmlfl]
klmlfl_ has quit [Client Quit]
klmlfl has joined #ruby-lang
mistym has joined #ruby-lang
zz_rubydiamond is now known as anildigital
hahuang65 has joined #ruby-lang
kirin` has quit [Ping timeout: 255 seconds]
kirin` has joined #ruby-lang
gix has quit [Ping timeout: 240 seconds]
yatish27 has joined #ruby-lang
toastynerd has joined #ruby-lang
gix has joined #ruby-lang
havenwood has joined #ruby-lang
kirin` has quit [Read error: Connection reset by peer]
kirin` has joined #ruby-lang
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
klmlfl has left #ruby-lang [#ruby-lang]
klmlfl has joined #ruby-lang
pr0ton has quit [Quit: pr0ton]
tkuchiki_ has joined #ruby-lang
charliesome has joined #ruby-lang
pr0ton has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 250 seconds]
toastynerd has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 240 seconds]
ruskie has quit [Quit: ...]
tkuchiki_ has quit [Ping timeout: 250 seconds]
Mon_Ouie has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
spuk has quit [Ping timeout: 255 seconds]
danijoo has quit [Read error: Connection reset by peer]
hotpancakes has joined #ruby-lang
danijoo has joined #ruby-lang
ruskie has joined #ruby-lang
spuk has joined #ruby-lang
Miphix has joined #ruby-lang
jko_ has joined #ruby-lang
Miphix has quit [Client Quit]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Miphix has joined #ruby-lang
koderok has joined #ruby-lang
lsegal has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
spastorino has quit [Quit: Connection closed for inactivity]
RobertBirnie has joined #ruby-lang
kgrz has joined #ruby-lang
klmlfl has quit [Ping timeout: 264 seconds]
hotpancakes has quit []
imperator has joined #ruby-lang
<imperator> hola
<havenwood> aloha
benlovell has joined #ruby-lang
yatish27 has quit []
toastynerd has joined #ruby-lang
tectonic has quit []
benlovell has quit [Ping timeout: 240 seconds]
arooni-mobile has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
nhjk has joined #ruby-lang
jko_ has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
ta has quit [Remote host closed the connection]
arooni-mobile has joined #ruby-lang
<freedrull> i don't quite understand why URI.escape doesn't escape square brackets, yet URI.parse tells me they are invalid
anildigital is now known as zz_anildigital
* womble is pretty sure square brackets in a URL are fine
<freedrull> that would why URI.escape doesn't escape them
<freedrull> explain why*
macsplean1 has joined #ruby-lang
<freedrull> from rfc3986: gen-delims = ":" / "/" / "?" / "#" / "[" / "]" / "@"
zz_anildigital is now known as anildigital
<freedrull> i think they are reserved and should be escaped?
macsplean1 has quit [Client Quit]
<womble> freedrull: "If data for a URI component would conflict with a reserved character's purpose as a delimiter, then the conflicting data must be percent-encoded before the URI is formed."
<womble> Are you using '[' in a context where it would conflict with its purpose as a delimiter?
nhjk has quit [Remote host closed the connection]
arooni-mobile has quit [Remote host closed the connection]
klmlfl_ has joined #ruby-lang
<imperator> freedrull, got an example where uri.parse fails on square brackets? might be a bug worth reporting
mistym has quit [Remote host closed the connection]
sharpmachine has joined #ruby-lang
klmlfl_ has quit [Client Quit]
<freedrull> imperator: [62] pry(main)> URI.parse 'http://google.com/[blahblah]blah.html'
<freedrull> ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]
<freedrull> womble: is this a context where it would conflict?
<imperator> i must now look up the rfc...
pr0ton has quit [Quit: pr0ton]
<imperator> "Square brackets are now specified as reserved within the authority component and are not allowed outside their use as
<imperator> delimiters for an IP literal within host."
<imperator> oops, line break
taylorrf has quit [Ping timeout: 240 seconds]
<womble> imperator: Except the square bracket isn't being used in the authority section of the URL, so that's irrelevant.
<imperator> oh, i read that to mean they could only be used there
<imperator> nm
<womble> I read it as meaning "Within the authority component, square brackets are not allowed outside their use as delimiters"
nathanstitt has joined #ruby-lang
<imperator> womble, assuming you're correct, your wording is better
<womble> http://www.w3.org/Addressing/URL/uri-spec.html sez that a path must only comprise a-z A-Z 0-9 $-_@.&+-, !*"'(), or %NN
<womble> Which I reckon is completely full of shit, because ~ is in the same group as [ ], and people put ~ in their URL paths *all* *the* *time*
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RobertBirnie has joined #ruby-lang
toastynerd has joined #ruby-lang
tkuchiki has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
<womble> OK, RFC3986 says that a path can contain any unreserved (ALPHA / DIGIT / "-" / "." / "_" / "~"), pct-encoded ("%NN"), sub-delims (lots of punctuation, but notably *not* [ or ]), : or @.
<womble> So looks like you can't use ?, #, [ or ], but everything else is fair game
RobertBirnie has quit [Ping timeout: 245 seconds]
<womble> Looks like URI.escape is in the wrong, which I can't say I'm surprised about, since it's wickedly hard to get that sort of thing completely right for the general case.
* womble feels like putting square brackets in a few filenames, just to catch out people with dodgy escaping functions.
<womble> Part of the problem is that the rules are different in different parts of the URI, yet there's no way to tell URI.escape which part of the URI the data you're escaping will go
<womble> Interestingly, uri = URI(""); uri.path = "/[blahblah]blah.html" freaks out, too
djbkd has joined #ruby-lang
<womble> When it *should*, ideally, just escape it for you and let you get on with your day.
<imperator> so, wait, his url is invalid anyway according to the rfc?
<womble> Yes.
<womble> The square brackets need to be percent-encoded
<imperator> the square brackets that are illegal anyway?
<freedrull> URI.escape doesn't escape them though
<freedrull> should they be escaped or are they just flat out not allowed?
<womble> freedrull: Because it's either buggy, or it is assuming the wrong part of the URI space
<womble> freedrull: They should be escaped.
<womble> You can have *anything* in a URI, if it's escaped.
<imperator> i suspect others disagree
<womble> I'm sure they do.
<womble> However the RFC seems relatively clear on that point -- pct-encoded is % followed by *any* two hex characters
yfeldblu_ has joined #ruby-lang
<womble> Interestingly, the query portion of the URI *also* can't have unescaped [ and ], and yet URI.parse is quite OK with http://google.com/foo.html?bar[baz]=wombat
<freedrull> oh so certain parts of the URI allow brackets unescape?
<freedrull> hmm
<womble> freedrull: Yes, the authority portion, surrounding IP literals
<freedrull> interesting
yfeldblum has quit [Ping timeout: 240 seconds]
<womble> imperator: Looks like your interpretation of the "reserved within the authority component" was correct -- they're reserved, and only available for use in the authority component to surround IP literals.
mistym has joined #ruby-lang
<freedrull> hngggggggggggggggggh https://bugs.ruby-lang.org/issues/9990
toastynerd has quit [Remote host closed the connection]
yfeldblu_ has quit [Ping timeout: 240 seconds]
<imperator> womble, it's worded somewhat poorly, i agree
<imperator> <- dude who reads and writes rulebooks
<womble> Ain't it fun to try and write precisely in a language with such poorly defined semantics?
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
fenchurch_ has quit [Quit: Connection closed for inactivity]
wallerdev has joined #ruby-lang
<womble> https://bugs.ruby-lang.org/issues/2542#note-23 <--- YAY! SENSIBLENESS!
<freedrull> did you see this yet https://bugs.ruby-lang.org/issues/9990
sharpmachine has quit [Remote host closed the connection]
<womble> freedrull: Yes, that's how I found the older bug.
toastynerd has joined #ruby-lang
<womble> It's a poor situation all round -- people have been playing fast-and-loose with URLs for years (decades?), and now the common practices are so deeply ingrained that trying to follow the *actual* *standard* is practically impossible.
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby-lang
<womble> A strict RFC3986 URI parser/escaper will explode everything; a compromise parser will bite someone in the butt sooner or later.
kyb3r_ has joined #ruby-lang
<freedrull> true
<freedrull> ugh well i guess i have to get on with my day at some point
<freedrull> interesting as this all is
<womble> I hear ya
mfmfmfmfmfmf has joined #ruby-lang
<womble> It's bad when reading an RFC about URI syntax is more gripping than writing the test cases I'm supposed to be writing
_ht has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
nathanstitt has quit [Quit: I growing sleepy]
toastynerd has quit [Remote host closed the connection]
tkuchiki_ has joined #ruby-lang
[spoiler] has joined #ruby-lang
havenwood has quit []
tkuchiki has quit [Ping timeout: 255 seconds]
AKASkip has joined #ruby-lang
anildigital is now known as zz_anildigital
Savtech has joined #ruby-lang
nofxx_ has joined #ruby-lang
imperator has quit [Quit: Valete!]
benlovell has joined #ruby-lang
mfmfmfmfmfmf has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
Lewix has joined #ruby-lang
bsvineeth has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 264 seconds]
bsvineeth has joined #ruby-lang
relix has joined #ruby-lang
solars has joined #ruby-lang
RobertBirnie has joined #ruby-lang
mistym_ has joined #ruby-lang
mistym has quit [Ping timeout: 260 seconds]
diegoviola has quit [Remote host closed the connection]
eeezkil has joined #ruby-lang
alexju has quit [Remote host closed the connection]
bsvineeth has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
mkaesz has joined #ruby-lang
bsvineeth has joined #ruby-lang
Averna has quit [Quit: Leaving.]
futilegames has joined #ruby-lang
kwd has joined #ruby-lang
ta has joined #ruby-lang
ta has quit [Client Quit]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta has joined #ruby-lang
RobertBirnie has joined #ruby-lang
mistym_ has quit [Remote host closed the connection]
RobertBirnie has quit [Ping timeout: 260 seconds]
JoshuaPaling has joined #ruby-lang
Sphynx has joined #ruby-lang
ur5us has joined #ruby-lang
benlovell has joined #ruby-lang
goatish_mound has quit [Read error: Connection reset by peer]
rsl has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
benlovell has quit [Ping timeout: 260 seconds]
zz_anildigital is now known as anildigital
GaelanAintAround has quit [Quit: Bye!]
zz_dlu has quit [Quit: ZNC - http://znc.in]
j4cknewt has quit [Ping timeout: 250 seconds]
<maloik> Is there an opposite of "to incentivize" ?
chussenot has joined #ruby-lang
zz_dlu has joined #ruby-lang
<whitequark> maloik: disincentivize
<maloik> \o/ thank you
GaelanAintAround has joined #ruby-lang
chussenot has quit [Client Quit]
chussenot has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
zz_dlu has quit [Quit: ZNC - http://znc.in]
GaelanAintAround has quit [Quit: Bye!]
AKASkip has quit [Ping timeout: 260 seconds]
zz_dlu has joined #ruby-lang
jhass|off is now known as jhass
anildigital is now known as zz_anildigital
GaelanAintAround has joined #ruby-lang
lele has quit [Ping timeout: 260 seconds]
chussenot has quit [Quit: chussenot]
emmesswhy has quit [Quit: This computer has gone to sleep]
lele has joined #ruby-lang
ur5us has quit []
qba73 has joined #ruby-lang
zz_anildigital is now known as anildigital
benlovell has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
skade has joined #ruby-lang
mkaesz has quit [Ping timeout: 260 seconds]
wallerdev has quit [Quit: wallerdev]
skade_ has joined #ruby-lang
vereteran has quit [Quit: ZNC - http://znc.in]
naquad has joined #ruby-lang
mnngfltg has joined #ruby-lang
skade has quit [Ping timeout: 245 seconds]
havenwood has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby-lang
kith_ has joined #ruby-lang
jasiek has joined #ruby-lang
matled- has joined #ruby-lang
kgrz_ has joined #ruby-lang
jperry2 has joined #ruby-lang
ledestin_ has joined #ruby-lang
amerine has joined #ruby-lang
Xney2 has joined #ruby-lang
headius_ has joined #ruby-lang
r0bby_ has joined #ruby-lang
blowmage` has joined #ruby-lang
ericwood_ has joined #ruby-lang
yliu has joined #ruby-lang
cout_ has joined #ruby-lang
Kuukunen has joined #ruby-lang
jxie_ has joined #ruby-lang
joevandy1 has joined #ruby-lang
ohsix_ has joined #ruby-lang
ohsix has quit [Disconnected by services]
ohsix_ is now known as ohsix
Derander_ has joined #ruby-lang
mikecmpbll has joined #ruby-lang
dm78_ has joined #ruby-lang
dm78 has quit [Read error: Connection reset by peer]
yeltzooo has joined #ruby-lang
nopc0de- has joined #ruby-lang
skade_ has quit [Quit: Computer has gone to sleep.]
Cort3z has joined #ruby-lang
vlad_sta- has joined #ruby-lang
sonne_ has joined #ruby-lang
AKASkip has joined #ruby-lang
mnngfltg has quit [*.net *.split]
[spoiler] has quit [*.net *.split]
amerine_ has quit [*.net *.split]
maloik has quit [*.net *.split]
Derander has quit [*.net *.split]
cout has quit [*.net *.split]
Xney has quit [*.net *.split]
ledestin has quit [*.net *.split]
mfn has quit [*.net *.split]
vlad_starkov has quit [*.net *.split]
kith has quit [*.net *.split]
blowmage has quit [*.net *.split]
melter has quit [*.net *.split]
headius has quit [*.net *.split]
jperry has quit [*.net *.split]
yeltzooo9 has quit [*.net *.split]
_rgn has quit [*.net *.split]
robbyoconnor has quit [*.net *.split]
kgrz has quit [*.net *.split]
jxie has quit [*.net *.split]
heftig_ has quit [*.net *.split]
joevandyk has quit [*.net *.split]
matled has quit [*.net *.split]
joast has quit [*.net *.split]
yugui_zzz_ has quit [*.net *.split]
ericwood has quit [*.net *.split]
Kuukunen- has quit [*.net *.split]
dvorkbjel has quit [*.net *.split]
jasiek_ has quit [*.net *.split]
yliu_ has quit [*.net *.split]
sonne has quit [*.net *.split]
nopc0de has quit [*.net *.split]
matled- is now known as matled
jperry2 is now known as jperry
ledestin_ is now known as ledestin
anildigital is now known as zz_anildigital
maloik has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
_rgn has joined #ruby-lang
[spoiler] has joined #ruby-lang
mfn has joined #ruby-lang
melter has joined #ruby-lang
mnngfltg has joined #ruby-lang
<yorickpeterse> morning
heftig_ has joined #ruby-lang
yugui_zzz has joined #ruby-lang
dvorkbjel has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
zz_anildigital is now known as anildigital
kgrz_ has quit [Remote host closed the connection]
r0bby_ has quit [Excess Flood]
r0bby_ has joined #ruby-lang
<maloik> o/
<benlovell> /o/
sMecKs has quit [Read error: Connection reset by peer]
<yorickpeterse> "PUT https://reviewsites.olery.com/ali.txt: MultiJson::ParseError: lexical error: invalid char in json text. alihack<%eval request("alihack. (right here) "
<yorickpeterse> Stupid bots
<yorickpeterse> got the IP though, I can totally call the cyber police
koderok has quit [Quit: koderok]
<yorickpeterse> well, one more for the blacklist
r0bby_ is now known as robbyoconnor
eeezkil has quit [Quit: Leaving.]
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
sarkyniin has joined #ruby-lang
kek has joined #ruby-lang
arBmind has joined #ruby-lang
chussenot has joined #ruby-lang
koderok has joined #ruby-lang
Guest_ has joined #ruby-lang
robbyoconnor has quit [Quit: Konversation terminated!]
bsvineeth has quit [Ping timeout: 272 seconds]
Guest_ has quit [Client Quit]
loveablelobster has joined #ruby-lang
gregf_ has joined #ruby-lang
<yorickpeterse> (for the curious: we use rack-attack for that)
_lexjm has quit [Read error: No route to host]
<yorickpeterse> though in the future I should probably set up some kind of honey pot
bsvineeth has joined #ruby-lang
skade has joined #ruby-lang
rogaboru has joined #ruby-lang
rogaboru has quit [Remote host closed the connection]
rogaboru has joined #ruby-lang
<rogaboru> Hello
<rogaboru> May I ask for help?
marr has joined #ruby-lang
<rogaboru> I have a file with cyrillic text, and File.read reads it, dividing every word into several pieces by hyphens
loveablelobster has quit [Quit: Textual IRC Client: www.textualapp.com]
<rogaboru> What’s that? How I can fix it?
Lewix has quit [Remote host closed the connection]
<yorickpeterse> do you have a code snippet to show?
<yorickpeterse> File.read should just read the contents as is
<rogaboru> Yep
<rogaboru> file_info = File.read(“db/migrate/data.json”)
<jhass> rogaboru: are reading it in the right encoding?
<rogaboru> Yes
<rogaboru> Maybe it’s kinda miscoding?
<rogaboru> But every symbol is right, just hyphens all around
<rogaboru> And file is coded by UTF-8, so Ruby should read it right
<yorickpeterse> Are you using " for quotes, or “ ?
<jhass> maybe, what does Encoding.default_external say?
<yorickpeterse> Your past uses “, which aren't double quotes
<yorickpeterse> * paste
<yorickpeterse> >> '“' == '"'
<yorickpeterse> eval-in: yo wake up
<jhass> yorickpeterse: if that's the issue, it wouldn't parse
<jhass> not what he describes
<yorickpeterse> jhass: parsing would be fine, it seems Rubby treats it as a method
<yorickpeterse> Either way, from that snippet it's hard to tell
<jhass> well, NoMethodError then
<yorickpeterse> Either something patches File.read(), the input data is simply incorrect, or something later on is messing it up
<rogaboru> JSON parses file just fine
existensil has quit [Quit: WeeChat 0.4.2]
<rogaboru> Default encoding is UTF-8
<yorickpeterse> JSON?
<yorickpeterse> That snippet above doesn't include JSON parsing
<rogaboru> Well, JSON module
<yorickpeterse> Paste the *full* snippet if possible, that one line is most likely not the problem
<rogaboru> Yes, because file is full of hyphens after File.read
<rogaboru> Ok
<rogaboru> file_info = File.read(“db/migrate/initialdata.json”)
<rogaboru> data = JSON.parse(file_info)
<rogaboru> That’s all
<rogaboru> I don’t know, what’s wrong with my quotes. It’s “ “
<yorickpeterse> might be your IRC client
<yorickpeterse> Random guess, what happens if you use JSON.load instead of JSON.parse ?
<yorickpeterse> shouldn't make a difference but it's a guess
<yorickpeterse> Also what do you actually mean with the file contains hyphens. Do you mean that `data` contains strings with hyphens in it, that aren't there in the input file?
<rogaboru> data
<rogaboru> Yes, data
<rogaboru> When I use JSON.load, data is parsed
kgrz has joined #ruby-lang
chouhoulis has joined #ruby-lang
<rogaboru> It’s File.read issue, I checked in irb
<yorickpeterse> and you are sure the hyphens are not there in the actual file itself?
ItSANgo_ has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Ping timeout: 246 seconds]
Forgetful_Lion has quit [Remote host closed the connection]
<rogaboru> Yes
<rogaboru> Oh
<rogaboru> Python is reading file with hyphens too
<rogaboru> WTF
<rogaboru> And nano
<rogaboru> Sorry guys
<rogaboru> Seems like it isn’t ruby issue
<rogaboru> Thank you for help
<yorickpeterse> heh
molawson has joined #ruby-lang
<rogaboru> Maybe it’s Sublime messed all up
thoolihan has quit [Ping timeout: 263 seconds]
Miphix has quit [Quit: Leaving]
symm- has joined #ruby-lang
Siyfion has joined #ruby-lang
rogaboru has quit [Quit: rogaboru]
futilegames has quit [Quit: futilegames]
ItSANgo has joined #ruby-lang
Miphix has joined #ruby-lang
jxie_ has quit [Read error: Connection reset by peer]
MicD_ is now known as MichD
arBmind has quit [Quit: Leaving.]
jxie has joined #ruby-lang
kek has quit [Remote host closed the connection]
Cort3z has quit [Remote host closed the connection]
face has joined #ruby-lang
faces has quit [Ping timeout: 260 seconds]
molawson has quit [Ping timeout: 250 seconds]
rolfb has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
kyb3r_ has quit [Read error: Connection reset by peer]
ruby-lang268 has joined #ruby-lang
king313 has joined #ruby-lang
king313 has joined #ruby-lang
<ruby-lang268> hi what's the meaning of symbol in the name of a method?
haraoka has quit [Remote host closed the connection]
ruby-lang268 has left #ruby-lang [#ruby-lang]
stamina has joined #ruby-lang
rocky has joined #ruby-lang
tkuchiki has joined #ruby-lang
rocky has quit [Client Quit]
<yorickpeterse> well that was quick
Sphynx has quit [Remote host closed the connection]
tkuchiki_ has quit [Ping timeout: 246 seconds]
<rolfb> is there a ... tool for ruby which will analyze the code and let you see all the calls you make which an explicit dependency outside your own code?
tkuchiki has quit [Ping timeout: 240 seconds]
<yorickpeterse> rolfb: No
<yorickpeterse> rolfb: https://github.com/yorickpeterse/ruby-lint has basic foundations in place for method call tracking, but it does not yet track the source location (that is, file path, line, etc)
koderok has quit [Quit: koderok]
arBmind has joined #ruby-lang
<rolfb> yorickpeterse: where's the spec for basic method call tracking?
arBmind has quit [Client Quit]
taylorrf has joined #ruby-lang
chussenot has quit [Quit: chussenot]
migbar has joined #ruby-lang
kek has joined #ruby-lang
kek has quit [Remote host closed the connection]
kek has joined #ruby-lang
thoolihan has joined #ruby-lang
stamina has quit [Quit: WeeChat 0.4.3]
koderok has joined #ruby-lang
ddv has quit [Changing host]
ddv has joined #ruby-lang
bsvineeth has joined #ruby-lang
koderok has quit [Client Quit]
benlovell has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Remote host closed the connection]
Sphynx has joined #ruby-lang
tkuchiki has joined #ruby-lang
arBmind has joined #ruby-lang
molawson has joined #ruby-lang
thoolihan has quit [Ping timeout: 264 seconds]
benlovell has joined #ruby-lang
<yorickpeterse> oh it apparently does track line/column numbers
<rolfb> hah :)
<rolfb> i tried running it on the an app folder in rails
tkuchiki has quit [Remote host closed the connection]
<yorickpeterse> oh, and file paths too
<yorickpeterse> Yeah it's not exposed yet in any analysis
<rolfb> lots of missing definitions
dorei has joined #ruby-lang
<rolfb> it doesn't load gems?
<rolfb> I'm probably doing it wrong
<yorickpeterse> No, it doesn't load Gems
<yorickpeterse> That is, it doesn't do anything with require() calls
<rolfb> does that mean I have to hand it the gem path as well?
GaelanAintAround has quit [Ping timeout: 245 seconds]
zz_dlu has quit [Ping timeout: 240 seconds]
<yorickpeterse> No, that wouldn't make a difference as it doesn't process non-project source code
<yorickpeterse> it uses built-in definitions that have to be pre-generated
<yorickpeterse> you can run only specific analysis steps if you want using the CLI
<rolfb> this pre-generation, is that manual?
zz_dlu has joined #ruby-lang
GaelanAintAround has joined #ruby-lang
<yorickpeterse> It requires running a Rake task, that's it
amerine_ has joined #ruby-lang
<rolfb> hmm, that is interesting
kek_ has joined #ruby-lang
<rolfb> this creates a pseudo-version of the real thing?
amerine has quit [Ping timeout: 260 seconds]
<yorickpeterse> Basically it creates C header-like files
<yorickpeterse> It removes the need for loading all of, say, Rails, just to analyse a controller
<rolfb> right
Benstr_ has joined #ruby-lang
<rolfb> it checks if correct number of arguments is passed and such things?
<yorickpeterse> yup
<rolfb> that's very interesting in terms of verifying if an API changed between versions of a gem
<rolfb> I mean, can't check the return value, but can check if it's being called somewhat correctly
<yorickpeterse> Right now it doesn't really handle meta magic just yet (e.g. eval() isn't supported, injecting modules doesn't work reliably either)
kek has quit [Ping timeout: 264 seconds]
<yorickpeterse> it actually can check return values of methods that are documented using YARD
<rolfb> really?
<rolfb> interesting
Benstr has quit [Ping timeout: 250 seconds]
ldnunes has joined #ruby-lang
<yorickpeterse> it does have basic stuff set up so that when you have `foo = "xxxx"` it knows `foo` is a String
<yorickpeterse> (same goes when using foo = String.new("xxxxx"))
<rolfb> that's cool
Benstr_ has quit [Ping timeout: 240 seconds]
<yorickpeterse> You can just smack the file somewhere, require it in your config and then it should be good to go
<yorickpeterse> Hm, the docs of that class are out of date
<rolfb> trying to figure out if this could be of value when upgrading an app from rails 2.3.x to rails 3.x
<yorickpeterse> I'm not sure how useful it is for diffing Gem APIs, since the underlying data structures can't be compared easily
<rolfb> true enough, i'm mostly thinking about the public api, not what it returns
<rolfb> also identifying where the access points in the code are
yfeldblum has joined #ruby-lang
yell0wgh0st has joined #ruby-lang
yell0wgh0st has quit [Client Quit]
mkaesz has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
yell0wgh0st has joined #ruby-lang
<yell0wgh0st> hi all
<yorickpeterse> yell0wgh0st: hello fellow program
<yell0wgh0st> Can anyone please check this http://openpaste.org/2c859c5e if the comments statements are correct?
<yell0wgh0st> It is an excercise from learncodethehardway. Thx!
<yorickpeterse> correct as in?
<yorickpeterse> oh right
<yorickpeterse> line 8: the Dog < Animal thing is not entirely correct
<yorickpeterse> That is, Dog *is* an Animal, but it is so by extending it
<yorickpeterse> might just be the writing style
<yorickpeterse> basically it means that Dog can do everything Animal can do, and potentially more
marr has quit [Ping timeout: 272 seconds]
<rolfb> why is the initializer the same for every class that inherits Animal, but the initializer isn't inherited?
<rolfb> oh nvm, that's not the exercise here
<rolfb> :-)
Sgeo_ has quit [Read error: Connection reset by peer]
kek_ has quit [Remote host closed the connection]
kek has joined #ruby-lang
Benstr_ has joined #ruby-lang
scampbell has joined #ruby-lang
nofxx_ has quit [Ping timeout: 260 seconds]
yell0wgh0st has quit [Quit: yell0wgh0st]
yell0wgh0st has joined #ruby-lang
hellangel7 has joined #ruby-lang
jgpawletko has joined #ruby-lang
kek has quit [Remote host closed the connection]
kek has joined #ruby-lang
<yell0wgh0st> ok
<yell0wgh0st> yorickpeterse: so the class Dog < Animal is object?
<yorickpeterse> "is object"?
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<yell0wgh0st> In this excercise I should figure out if the class is class or object.
molawson has quit [Remote host closed the connection]
<yorickpeterse> Ah right
<yorickpeterse> In that case yes, it's correct
<yell0wgh0st> Gr8, I think I understand it but actually I am bit confused when and why I should use initializer,
<yorickpeterse> yell0wgh0st: an initializer is called whenever you create an instance of a class
<yorickpeterse> So if you want something to happen during that time, that's when you'd use one
<yell0wgh0st> oh so
<yell0wgh0st> How would you describe instance? The instance is created when I am pushing new with the .new method?
<yell0wgh0st> pushing new thing*
kek has quit [Remote host closed the connection]
kek has joined #ruby-lang
mkaesz has quit [Ping timeout: 240 seconds]
toretore has joined #ruby-lang
kwd has quit [Read error: Connection reset by peer]
chussenot has joined #ruby-lang
kwd has joined #ruby-lang
<yorickpeterse> When you do something like `String.new("foo")` that's when you're creating a new instance of String
jonathan_alban has joined #ruby-lang
JoshuaPaling has quit [Quit: Textual IRC Client: www.textualapp.com]
AKASkip1 has joined #ruby-lang
<canton7> yell0wgh0st, a class represents a thing, like a Cat or a Car. A Cat has an age and a name. An instance of a Cat is a specific cat. I can have one Cat instance with a name of Bob and an age of 18, and another Cat instance with a name of Joey and an age of 3. They're both Cat instances - that is, instances of the Cat class
AKASkip has quit [Ping timeout: 246 seconds]
<canton7> you create a new Cat instance - that is, a new Cat with a name an an age - using Cat.new(...)
<yell0wgh0st> Great I think I got it ;-)
yfeldblum has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
Sphynx has quit [Remote host closed the connection]
earthquake has joined #ruby-lang
<yell0wgh0st> so in the initializer there should be all of these specific attributes for the instance like age, color, cat’s name etc.
<yell0wgh0st> right?
yfeldblum has quit [Ping timeout: 272 seconds]
<canton7> so if you wanted to be able to create cats by writing 'Cat.new("Bob", 22)', then you'd have an initializer with the signature "def initialize(name, age)", and it would set the properties "@name = name" and "@age = age"
jonatha__ has joined #ruby-lang
jonathan_alban has quit [Ping timeout: 250 seconds]
Benstr_ has quit [Quit: Computer has gone to sleep.]
spastorino has joined #ruby-lang
Benstr_ has joined #ruby-lang
<yell0wgh0st> Thx, really usefull!
Benstr__ has joined #ruby-lang
<canton7> :)
futilegames has joined #ruby-lang
Benstr_ has quit [Ping timeout: 272 seconds]
ItSANgo has quit [Quit: Leaving...]
joast has joined #ruby-lang
Sphynx has joined #ruby-lang
yalue has joined #ruby-lang
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 245 seconds]
raggedjack has joined #ruby-lang
earthquake has quit [Quit: earthquake]
<darix> when using optionparser, is there no easy way to get the remaining command line arguments with all the arguments removed that were handled by optionparser already?
joast has quit [Quit: Leaving.]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
stef_204 has joined #ruby-lang
alexju has joined #ruby-lang
arBmind has joined #ruby-lang
arBmind1 has quit [Ping timeout: 246 seconds]
jonatha__ has quit [Quit: Textual IRC Client: www.textualapp.com]
malconis has joined #ruby-lang
chouhoulis has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
joast has joined #ruby-lang
ItSANgo has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
kgrz has joined #ruby-lang
yfeldblum has quit [Ping timeout: 250 seconds]
kgrz has quit [Ping timeout: 250 seconds]
taylorrf has quit [Remote host closed the connection]
taylorrf has joined #ruby-lang
michaeldeol has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
Gil has joined #ruby-lang
Gil has quit [Client Quit]
ta has quit [Remote host closed the connection]
[spoiler] has quit [Quit: Leaving]
Kabaka has quit [Ping timeout: 272 seconds]
enebo has joined #ruby-lang
enebo has quit [Client Quit]
enebo has joined #ruby-lang
banister is now known as banisterfiend
havenwood has joined #ruby-lang
marr has joined #ruby-lang
Lewix has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
yatish27 has joined #ruby-lang
JoshuaPaling has joined #ruby-lang
cout_ is now known as cout
JoshuaPaling has quit [Client Quit]
diegoviola has joined #ruby-lang
momomomomo has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
tkuchiki has joined #ruby-lang
badeball has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
charliesome has joined #ruby-lang
kgrz has quit [Client Quit]
kgrz has joined #ruby-lang
Benstr__ has quit [Quit: Computer has gone to sleep.]
karamazov has joined #ruby-lang
badeball has joined #ruby-lang
anildigital is now known as zz_anildigital
Benstr__ has joined #ruby-lang
loincloth has joined #ruby-lang
yfeldblum has joined #ruby-lang
loincloth has quit [Read error: Connection timed out]
loincloth has joined #ruby-lang
symm- has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Ping timeout: 250 seconds]
Kabaka has joined #ruby-lang
oPaxa has joined #ruby-lang
allomov has joined #ruby-lang
jxie has quit [Ping timeout: 250 seconds]
jxie has joined #ruby-lang
zz_anildigital is now known as anildigital
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sarkyniin has quit [Quit: Quitte]
sarkyniin has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
michaeldeol has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
mistym has joined #ruby-lang
bsvineeth has quit [Ping timeout: 250 seconds]
j4cknewt has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
|jemc| has joined #ruby-lang
Benny1993 has quit [Quit: leaving]
toastynerd has joined #ruby-lang
<akahn> I'm trying to write a web crawler in ruby and I'm having trouble figuring out how to represent the graph of pages. anyone done this before?
koos303 has joined #ruby-lang
j4cknewt has joined #ruby-lang
mkaesz has joined #ruby-lang
omosoj has joined #ruby-lang
kwd has quit [Quit: Sleeping now. ZZZzzz…]
hellangel7 has quit [Remote host closed the connection]
raggedjack has left #ruby-lang [#ruby-lang]
molawson has joined #ruby-lang
cmhobbs has joined #ruby-lang
cmhobbs has quit [Client Quit]
cmhobbs has joined #ruby-lang
jxie has quit [Ping timeout: 250 seconds]
yell0wgh0st has quit [Quit: yell0wgh0st]
jxie has joined #ruby-lang
yell0wgh0st has joined #ruby-lang
dwknoxy has joined #ruby-lang
<jo__> akahn that doesn't sound like a ruby problem, sounds like a graph / node visualization problem
rolfb has quit [Quit: Linkinus - http://linkinus.com]
mistym has joined #ruby-lang
AKASkip1 has quit [Ping timeout: 260 seconds]
<jo__> or do you mean you have a problem representing it in the database?
kgrz has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
koderok has joined #ruby-lang
koderok has quit [Client Quit]
ericwood_ is now known as ericwood
yfeldblum has quit [Ping timeout: 250 seconds]
momomomomo_ has joined #ruby-lang
mnngfltg has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 260 seconds]
momomomomo_ is now known as momomomomo
Rylee_ has quit [Excess Flood]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xsdg has quit [Ping timeout: 240 seconds]
xsdg has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
knu has quit [Remote host closed the connection]
omosoj has quit [*.net *.split]
zz_dlu has quit [*.net *.split]
king313 has quit [*.net *.split]
ohsix has quit [*.net *.split]
blowmage` has quit [*.net *.split]
relix has quit [*.net *.split]
ruskie has quit [*.net *.split]
drbrain has quit [*.net *.split]
MindfulMonk has quit [*.net *.split]
MichD has quit [*.net *.split]
nibbo_ has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
wmoxam has quit [*.net *.split]
funnel has quit [*.net *.split]
jsaak has quit [*.net *.split]
llakey has quit [*.net *.split]
hachiya has quit [*.net *.split]
Bwild_ has quit [*.net *.split]
eval-in has quit [*.net *.split]
oddmunds has quit [*.net *.split]
anekos_ has quit [*.net *.split]
certainty has quit [*.net *.split]
error404 has quit [*.net *.split]
benlovell has quit [Ping timeout: 250 seconds]
<crankharder> not sure I understand this error message
Rylee_ has joined #ruby-lang
<crankharder> requiring relative paths was removed in 1.9? really?
omosoj has joined #ruby-lang
ohsix has joined #ruby-lang
king313 has joined #ruby-lang
blowmage` has joined #ruby-lang
zz_dlu has joined #ruby-lang
ruskie has joined #ruby-lang
relix has joined #ruby-lang
funnel has joined #ruby-lang
MichD has joined #ruby-lang
nibbo_ has joined #ruby-lang
drbrain has joined #ruby-lang
wmoxam has joined #ruby-lang
Bwild_ has joined #ruby-lang
hachiya has joined #ruby-lang
llakey has joined #ruby-lang
error404 has joined #ruby-lang
certainty has joined #ruby-lang
eval-in has joined #ruby-lang
anekos_ has joined #ruby-lang
oddmunds has joined #ruby-lang
jsaak has joined #ruby-lang
MindfulMonk has joined #ruby-lang
samuelkadolph has joined #ruby-lang
<darix> crankharder: require_relative
solars has quit [Ping timeout: 253 seconds]
ohsix has quit [Excess Flood]
ohsix has joined #ruby-lang
<crankharder> odd. been bundling this thing for a while now on 1.9.3/2.0/2.1 without problems... I *think* this is the first time I've bundled on this computer with a new dev environment, which I'm sure is what triggered this
<darix> crankharder: well
<darix> do you have the rest of the error message?
<darix> that might give an idea :)
thomasxie has joined #ruby-lang
<havenwood> crankharder: "." was removed from $LOAD_PATH
<darix> havenwood: that is unrelated to require_relative no?
<darix> but was also a good change
<darix> imho
<akahn> jo__: no, just how to represent it in ruby objects. how to walk the links between pages in a way that prevents cycles and allows me to limit the maximum depth of the descent
anildigital is now known as zz_anildigital
<havenwood> darix: well, related a little bit at least :P
<jo__> how many pages are you planning to crawl btw?
<akahn> jo__: yes. it talks about how to get various data out of the page, but not how to represent the pages as a graph.
hellangel7 has joined #ruby-lang
<darix> and maybe use mechanize
<darix> but well
<darix> later
<darix> :)
<akahn> jo__: not a large amount of pages
<crankharder> looks like it was a circular dependency that resulted from bundling the first time ; this thing doesn't have standard dependencies
zenspider_ has joined #ruby-lang
jamo__ has joined #ruby-lang
AlJaMa has quit [Quit: No Ping reply in 180 seconds.]
AlJaMa has joined #ruby-lang
emmesswhy has joined #ruby-lang
emmesswhy has quit [Client Quit]
cantonic has joined #ruby-lang
marr has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby-lang
<jo__> akahn i'd try a simple approach first, creating page objects. each page has current_url, content, array of other urls
zenspider has quit [Ping timeout: 240 seconds]
duderonomy has joined #ruby-lang
<jo__> then you have a queue of urls to check
sarkyniin has quit [Quit: Quitte]
skade_ has joined #ruby-lang
brixen_ has joined #ruby-lang
brixen_ has quit [Quit: ZNC - http://znc.in]
saltsa_ has joined #ruby-lang
mbr__ has joined #ruby-lang
<jo__> before opening each url, look to see if there's a page with a matching current_url
<jo__> oh and also you would want a depth variable for the page
jamo_ has quit [Ping timeout: 240 seconds]
<jo__> does that answer your question?
brixen_ has joined #ruby-lang
brixen has quit [Excess Flood]
<jo__> you will also need to deal with edge cases, like how to handle javascript, ads, external vs internal links, etc
<jo__> and start small with maybe a depth of 1, then 2
skade has quit [Ping timeout: 240 seconds]
saltsa has quit [Ping timeout: 240 seconds]
Kuukunen has quit [Ping timeout: 240 seconds]
mbr has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: zzz]
Kuukunen- has joined #ruby-lang
kith_ is now known as kith
shinnya has joined #ruby-lang
__butch__ has joined #ruby-lang
ozzloy_ has joined #ruby-lang
charliesome has joined #ruby-lang
ozzloy has quit [Ping timeout: 240 seconds]
michaeldeol has joined #ruby-lang
nathanstitt has joined #ruby-lang
relix has quit [Ping timeout: 255 seconds]
kek has quit [Ping timeout: 264 seconds]
michaeldeol has quit [Client Quit]
relix has joined #ruby-lang
<akahn> I've gotten basically that far. but with the queue of URLs to check, how do I keep track of how deep I am?
mistym has quit [Remote host closed the connection]
diegoviola has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
toastynerd has joined #ruby-lang
<jo__> well, i think you could do it functionally, or object oriented
bsvineeth has joined #ruby-lang
<jo__> functionally, you have something like ParseUrl(array_of_urls, depth = 1, max_depth = 2) { if there's other urls and depth <= max_depth, then call ParseUrl(next_array_of_urls, depth += 1, max_depth)
j4cknewt has joined #ruby-lang
<jo__> that's probably the easiest way
wallerdev has joined #ruby-lang
<akahn> and as long as I don't go super deep I won't stack overflow?
yfeldblum has joined #ruby-lang
yell0wgh0st has quit [Quit: yell0wgh0st]
allomov has quit [Remote host closed the connection]
Sphynx has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
karamazo_ has joined #ruby-lang
Sphynx has joined #ruby-lang
rusty has joined #ruby-lang
karamazo_ has quit [Remote host closed the connection]
rusty is now known as Guest24483
michaeldeol has joined #ruby-lang
michaeldeol has quit [Client Quit]
Sphynx has quit [Remote host closed the connection]
Asher has joined #ruby-lang
karamazov has quit [Remote host closed the connection]
<jo__> you should be fine. if there are problems, bring them up here
knu has joined #ruby-lang
mkaesz has quit [Ping timeout: 246 seconds]
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
omosoj has quit [Ping timeout: 255 seconds]
centrx has joined #ruby-lang
sharpmachine has joined #ruby-lang
amsi has joined #ruby-lang
j4cknewt has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby-lang
skade_ has quit [Quit: Computer has gone to sleep.]
cantonic has quit [Quit: cantonic]
bantic has joined #ruby-lang
karamazov has joined #ruby-lang
knu has quit [Remote host closed the connection]
Dev-Gitter has joined #ruby-lang
FarlaTux has joined #ruby-lang
amerine has joined #ruby-lang
PHP4Ever has joined #ruby-lang
momomomomo_ has joined #ruby-lang
nertzy has joined #ruby-lang
momomomomo has quit [Ping timeout: 245 seconds]
momomomomo_ is now known as momomomomo
rcvalle has joined #ruby-lang
amerine_ has quit [Ping timeout: 240 seconds]
knu has joined #ruby-lang
Siyfion has quit []
Missphoenix has joined #ruby-lang
karamazov has quit [Remote host closed the connection]
amerine_ has joined #ruby-lang
bsvineeth has quit [Ping timeout: 260 seconds]
Miphix has quit [Read error: Connection reset by peer]
djbkd has joined #ruby-lang
amerine has quit [Ping timeout: 255 seconds]
pr0ton has joined #ruby-lang
cantonic has joined #ruby-lang
chussenot_ has joined #ruby-lang
knu has quit [Remote host closed the connection]
chussenot_ has quit [Client Quit]
oPaxa has quit [Ping timeout: 250 seconds]
chussenot has quit [Ping timeout: 250 seconds]
mikecmpbll has quit [Ping timeout: 250 seconds]
amerine_ is now known as amerine
rheddry is now known as levifig
<levifig> so, trying to execute a query using the pg gem and I'm not sure what the syntax is for using a variable in the query itself… Tried looking at the docs but not getting far…
<levifig> shouldn't it be blabla.exec("SELECT yada FROM woohoo WHERE id > #{lastId}")?
pr0ton has quit [Quit: pr0ton]
<centrx> levifig, Usually you want to use prepared statements or a library like an ORM that will escape and type cast the variable before interpolating it
bantic has quit [Ping timeout: 240 seconds]
<centrx> levifig, Interpolating a variable like that directly into the SQL string is a security issue and often results in messy code
Squarepy has joined #ruby-lang
<levifig> hmmm
mistym has joined #ruby-lang
jbardin has joined #ruby-lang
<levifig> centrx, well, I'm just running a simple query on a command-line script :)
shinnya has quit [Ping timeout: 244 seconds]
<levifig> looking at prepared statements now :)
<centrx> levifig, Also just look at the top of http://rubydoc.info/gems/pg/0.11.0/PGconn
djbkd has quit [Remote host closed the connection]
<centrx> levifig, or http://deveiate.org/code/pg/PGconn.html looks newer
saarinen has joined #ruby-lang
<levifig> oh nice
<levifig> perfect
<levifig> I was reading those docs but down at the exec* stuff
koderok has joined #ruby-lang
<levifig> not as clear
<levifig> those examples are perfect :)
wallerdev has quit [Quit: wallerdev]
koderok has quit [Client Quit]
t_ has quit [Ping timeout: 260 seconds]
matp has joined #ruby-lang
headius_ is now known as headius
Blaguvest has quit [Ping timeout: 272 seconds]
kgrz has quit [Remote host closed the connection]
momomomomo is now known as momomomomo`away
momomomomo`away has quit [Quit: momomomomo`away]
Lewix has joined #ruby-lang
thagomizer has joined #ruby-lang
RobertBirnie has joined #ruby-lang
knu has joined #ruby-lang
rsl has quit [Ping timeout: 260 seconds]
AlJaMa has quit [Read error: Connection reset by peer]
rsl has joined #ruby-lang
AlJaMa has joined #ruby-lang
lsegal has joined #ruby-lang
zz_anildigital is now known as anildigital
solars has joined #ruby-lang
hellangel7 has quit [Remote host closed the connection]
ta has joined #ruby-lang
wallerdev has joined #ruby-lang
hellangel7 has joined #ruby-lang
hellangel7 has quit [Read error: Connection reset by peer]
nertzy has quit [Quit: This computer has gone to sleep]
yell0wgh0st has joined #ruby-lang
vikasyaligar has joined #ruby-lang
yell0wgh0st has left #ruby-lang [#ruby-lang]
matp has quit [Quit: ZZZzzz…]
hellangel7 has joined #ruby-lang
dm78 has joined #ruby-lang
michaeldeol has joined #ruby-lang
vikasyaligar has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 240 seconds]
dm78_ has quit [Ping timeout: 272 seconds]
Lewix has quit [Remote host closed the connection]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
malconis has joined #ruby-lang
Lewix has joined #ruby-lang
cantonic has quit [Quit: cantonic]
AmBienCeD has joined #ruby-lang
AmBienCeD has quit [Changing host]
AmBienCeD has joined #ruby-lang
diegoviola has joined #ruby-lang
Missphoenix has quit [Quit: Leaving]
parenjitsu has joined #ruby-lang
qba73 has quit []
gix has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby-lang
araujo has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
araujo has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
gix has joined #ruby-lang
saabturbo has joined #ruby-lang
rsl has quit [Ping timeout: 240 seconds]
amerine_ has joined #ruby-lang
chussenot has joined #ruby-lang
saabturbo has quit [Remote host closed the connection]
amerine has quit [Ping timeout: 246 seconds]
skade has joined #ruby-lang
marr has joined #ruby-lang
nex has joined #ruby-lang
nex has joined #ruby-lang
<nex> hi
<nex> anyone?
sharpmachine has quit [Remote host closed the connection]
saabturbo has joined #ruby-lang
saabturbo has quit [Client Quit]
bsvineeth has joined #ruby-lang
saabturboX has joined #ruby-lang
<nex> hello
<saabturboX> i need some help about redis-rb
MouseTheLuckyDog has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
hahuang65 has joined #ruby-lang
symm- has joined #ruby-lang
<nex> ....
nex has quit [Quit: Leaving]
ianmcshane has joined #ruby-lang
djbkd has joined #ruby-lang
chussenot has quit [Quit: chussenot]
saabturboX has left #ruby-lang [#ruby-lang]
rsl has joined #ruby-lang
j4cknewt has joined #ruby-lang
thomasxie has quit [Ping timeout: 240 seconds]
molawson has quit [Quit: Leaving...]
MouseTheLuckyDog has joined #ruby-lang
cmhobbs has quit [Ping timeout: 240 seconds]
<Lewix> hola
stamina has joined #ruby-lang
momomomomo has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
koos303 has quit [Quit: Connection closed for inactivity]
sharpmachine has joined #ruby-lang
j4cknewt has joined #ruby-lang
io_syl has joined #ruby-lang
emmesswhy has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
<havenwood> hi
loincloth has quit [Remote host closed the connection]
_sillymarkets has joined #ruby-lang
Rylee_ is now known as Rylee
chussenot has joined #ruby-lang
Guest24483 has quit []
chussenot has quit [Client Quit]
<_sillymarkets> Can anyone help me out with this? I keep getting "udefined method 'empty?' URI error" in Ruby 1.9.3 for this: https://gist.github.com/sillymarketing/8988141144c09ce5fd03
<_sillymarkets> but it works in Ruby 2.0
cantonic has joined #ruby-lang
yfeldblum has joined #ruby-lang
AlJaMa has quit [Ping timeout: 240 seconds]
cantonic has quit [Read error: Connection reset by peer]
cantonic has joined #ruby-lang
AlJaMa has joined #ruby-lang
dorei has quit []
brixen_ is now known as brixen
nathanstitt has quit [Quit: I growing sleepy]
<centrx> _sillymarkets, What do the docs say about it?
<centrx> _sillymarkets, no error message and backtrace?
lexsys has joined #ruby-lang
cmhobbs has joined #ruby-lang
cmhobbs has quit [Changing host]
cmhobbs has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x0f has quit [Ping timeout: 260 seconds]
j4cknewt has quit [Remote host closed the connection]
x0f has joined #ruby-lang
j4cknewt has joined #ruby-lang
allomov has joined #ruby-lang
AKASkip has joined #ruby-lang
ianmcshane has quit [Read error: Connection reset by peer]
ianmcshane has joined #ruby-lang
lexsys has quit [Ping timeout: 246 seconds]
Benny1992 has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
loincloth has joined #ruby-lang
diegoviola has quit [Remote host closed the connection]
sharpmachine has quit [Remote host closed the connection]
taylorrf has quit [Ping timeout: 264 seconds]
bsvineeth has joined #ruby-lang
oPaxa has joined #ruby-lang
sharpmac_ has joined #ruby-lang
stamina has quit [Quit: WeeChat 0.4.3]
kgrz has joined #ruby-lang
kgrz has quit [Ping timeout: 244 seconds]
nertzy has joined #ruby-lang
scampbell has quit [Ping timeout: 250 seconds]
chussenot has joined #ruby-lang
matp has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
scampbell has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
scampbell has quit [Max SendQ exceeded]
j4cknewt has joined #ruby-lang
scampbell has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
chussenot has quit [Quit: chussenot]
chouhoul_ has joined #ruby-lang
yatish27 has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby-lang
mistym has quit [Remote host closed the connection]
matp has quit [Quit: ZZZzzz…]
chouhoulis has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby-lang
relix has joined #ruby-lang
mikecmpbll has joined #ruby-lang
matp has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
bsvineeth has quit [Ping timeout: 260 seconds]
Phrogz has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
arBmind has quit [Quit: Leaving.]
<Phrogz> Anyone here use Shoes v3 on Windows and able to create a package?
Lewix has joined #ruby-lang
mistym has joined #ruby-lang
yatish27 has joined #ruby-lang
__butch__ has quit [Read error: Connection reset by peer]
__butch__ has joined #ruby-lang
kedare has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
Dev-Gitter has quit [Ping timeout: 240 seconds]
amsi has quit [Ping timeout: 244 seconds]
amsi has joined #ruby-lang
oPaxa has quit [Quit: oPaxa]
yatish27 has quit [Remote host closed the connection]
PHP4Ever has quit [Ping timeout: 240 seconds]
FarlaTux has quit [Ping timeout: 240 seconds]
yatish27_ has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
dm78_ has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
momomomomo has quit [Ping timeout: 260 seconds]
dm78 has quit [Ping timeout: 260 seconds]
banister has quit [Max SendQ exceeded]
mikecmpbll has joined #ruby-lang
momomomomo has joined #ruby-lang
banister has joined #ruby-lang
mistym has quit [Remote host closed the connection]
MikaAK has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
enebo has quit [Ping timeout: 245 seconds]
cantonic has quit [Quit: cantonic]
enebo has joined #ruby-lang
emmesswhy has joined #ruby-lang
centrx has quit [Quit: Mead error: Connection reset by beer]
Savtech has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
amerine_ is now known as amerine
j4cknewt has joined #ruby-lang
chouhoul_ has quit [Remote host closed the connection]
_sillymarkets has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby-lang
cantonic has joined #ruby-lang
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
heftig_ has quit [Quit: Quitting]
charliesome has quit [Quit: zzz]
ianmcshane has quit [Remote host closed the connection]
arBmind has joined #ruby-lang
stef_204 has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
mistym has joined #ruby-lang
scampbell has quit [Quit: Leaving]
j4cknewt has joined #ruby-lang
mistym is now known as Misty
Misty is now known as mistym
mistym_ has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
Mon_Ouie has quit [Remote host closed the connection]
qba73 has joined #ruby-lang
davispuh has joined #ruby-lang
mistym has quit [Ping timeout: 245 seconds]
futilegames has quit [Quit: futilegames]
nofxx_ has joined #ruby-lang
Benstr__ has quit [Quit: Computer has gone to sleep.]
Benstr__ has joined #ruby-lang
anildigital is now known as zz_anildigital
allomov has quit [Remote host closed the connection]
ItSANgo has quit [Quit: Leaving...]
jbardin has quit [Quit: jbardin]
Benstr__ has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
jbardin has joined #ruby-lang
yell0wgh0st has joined #ruby-lang
djbkd has joined #ruby-lang
arooni-mobile has joined #ruby-lang
allomov has joined #ruby-lang
futilegames has joined #ruby-lang
allomov has quit [Remote host closed the connection]
emmesswhy has quit [Quit: Leaving]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
jakko has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
Squarepy has quit [Quit: Leaving]
ender|dkm has joined #ruby-lang
amerine has quit [Ping timeout: 244 seconds]
futilegames_ has joined #ruby-lang
jakko has quit [Client Quit]
jakko has joined #ruby-lang
futilegames has quit [Ping timeout: 260 seconds]
futilegames_ is now known as futilegames
havenwood has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
<yorickpeterse> argh, xpath
lsegal has joined #ruby-lang
<yorickpeterse> Nokogiri::XML('<root><a>1</a><b>2</b></root>').xpath('sum(root)') # => 12.0
<yorickpeterse> wat
<yorickpeterse> yet
<yorickpeterse> Nokogiri::XML('<root><a>1</a><b>2</b></root>').xpath('sum(root/*)') # => 3.0
<yorickpeterse> Ah ofc
<yorickpeterse> converts the node set to a string
<yorickpeterse> so you get sum("12") which is 12.0
solars has quit [Ping timeout: 260 seconds]
ItSANgo has joined #ruby-lang
amerine has joined #ruby-lang
momomomomo_ has joined #ruby-lang
momomomomo has quit [Ping timeout: 246 seconds]
momomomomo_ is now known as momomomomo
hellangel7 has quit [Remote host closed the connection]
skade has joined #ruby-lang
yell0wgh0st has quit [Quit: yell0wgh0st]
futilegames_ has joined #ruby-lang
futilegames has quit [Ping timeout: 260 seconds]
futilegames_ is now known as futilegames
centrx has joined #ruby-lang
futilegames has quit [Read error: Connection reset by peer]
futilegames has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
Benstr__ has joined #ruby-lang
yell0wgh0st has joined #ruby-lang
yatish27_ has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Phrogz> ha ha
<Phrogz> Nice one, yorickpeterse
centrx has quit [Quit: Mead error: Connection reset by beer]
yfeldblum has joined #ruby-lang
workmad3 has quit [Ping timeout: 255 seconds]
ldnunes has quit [Quit: Leaving]
sharpmac_ has quit [Remote host closed the connection]
allomov has joined #ruby-lang
mfmfmfmfmfmf has joined #ruby-lang
charliesome has joined #ruby-lang
Benstr__ has quit [Ping timeout: 250 seconds]
havenwood has joined #ruby-lang
_ht has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
Benstr__ has joined #ruby-lang
momomomomo has joined #ruby-lang
jakko has quit [Ping timeout: 260 seconds]
zenspider_ is now known as zenspider
<zenspider> Phrogz: hey
jds has quit [Quit: Connection closed for inactivity]
yatish27 has joined #ruby-lang
amerine has quit [Ping timeout: 250 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sharpmachine has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chouhoul_ has joined #ruby-lang
MichD is now known as michd
chouhou__ has joined #ruby-lang
chouhoul_ has quit [Read error: Connection reset by peer]
duderonomy has quit [Ping timeout: 246 seconds]
Lewix has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 255 seconds]
loincloth has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
amerine has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 240 seconds]
jgpawletko has quit [Quit: jgpawletko]
michaeldeol has joined #ruby-lang
thagomizer has quit [Quit: Leaving.]
brixen has quit [Excess Flood]
havenwood has quit []
brixen has joined #ruby-lang
enebo has quit [Quit: enebo]
momomomomo has quit [Quit: momomomomo]
cmhobbs has quit [Remote host closed the connection]
__butch__ has quit [Quit: Leaving.]
allomov has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
yell0wgh0st has quit [Quit: yell0wgh0st]
yell0wgh0st has joined #ruby-lang
allomov has joined #ruby-lang
allomov has quit [Remote host closed the connection]
Benstr__ has quit [Ping timeout: 250 seconds]
JoshuaPaling has joined #ruby-lang
cantonic has quit [Quit: cantonic]
AKASkip has quit [Ping timeout: 240 seconds]
sleepee has joined #ruby-lang
ParisDickinson has joined #ruby-lang
sleepee has quit [Client Quit]
sleepee has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
djbkd has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
duderonomy has joined #ruby-lang
mistym_ is now known as mistym
djbkd has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
Sgeo has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
yell0wgh0st has quit [Quit: yell0wgh0st]
toastynerd has quit [Remote host closed the connection]
arBmind has quit [Quit: Leaving.]
Sgeo has quit [Ping timeout: 264 seconds]
ur5us has joined #ruby-lang
matp has quit [Ping timeout: 260 seconds]
sleepee has quit [Quit: Leaving]
Sgeo has joined #ruby-lang
|jemc| has quit [Ping timeout: 240 seconds]
chussenot has joined #ruby-lang
djbkd has joined #ruby-lang
robbyoconnor has joined #ruby-lang
chussenot has quit [Quit: chussenot]
singleton has joined #ruby-lang