ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
toretore has quit [Quit: Leaving]
s0ra_h is now known as sora_h
JoshWines has joined #ruby-lang
ilyam has quit [Remote host closed the connection]
gsav has joined #ruby-lang
ilyam has joined #ruby-lang
gsav_ has quit [Ping timeout: 268 seconds]
jtoy has quit [Ping timeout: 248 seconds]
jtoy has joined #ruby-lang
cored has quit [Quit: leaving]
savage-_ has quit [Read error: Connection reset by peer]
savage- has joined #ruby-lang
khoa has quit [Read error: Connection timed out]
khoa has joined #ruby-lang
znz_jp has joined #ruby-lang
ryez has joined #ruby-lang
Dreamer3 has quit [Remote host closed the connection]
Dreamer3 has joined #ruby-lang
sora_h is now known as s0ra_h
Dwarf has quit [Quit: poop]
wmoxam has quit [Remote host closed the connection]
wmoxam has joined #ruby-lang
stardiviner has joined #ruby-lang
jtoy_ has joined #ruby-lang
jtoy has quit [Ping timeout: 245 seconds]
jtoy_ is now known as jtoy
goshakkk has quit [Quit: Computer has gone to sleep.]
postmodern has joined #ruby-lang
khoa has quit [Read error: Connection timed out]
khoa has joined #ruby-lang
jtoy_ has joined #ruby-lang
jtoy has quit [Ping timeout: 244 seconds]
jtoy_ is now known as jtoy
Marc3000 has quit [Quit: Leaving.]
robbyoconnor has quit [Ping timeout: 276 seconds]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
apeiros_ has quit [Remote host closed the connection]
Erlkoenig has quit [Quit: Leaving.]
ilyam has quit [Quit: ilyam]
khoa has quit [Read error: Connection timed out]
havenn has joined #ruby-lang
khoa has joined #ruby-lang
spuk has quit [Ping timeout: 240 seconds]
chimkan has quit [Quit: chimkan]
S1kx has quit [Ping timeout: 246 seconds]
goshakkk has joined #ruby-lang
s0ra_h is now known as sora_h
desmondmonster has joined #ruby-lang
t44879 has quit [Remote host closed the connection]
nirix has joined #ruby-lang
t70675 has joined #ruby-lang
khoa has quit [Read error: Connection timed out]
ilyam has joined #ruby-lang
khoa has joined #ruby-lang
crankharder has quit [Ping timeout: 248 seconds]
crankharder has joined #ruby-lang
havenn has quit [Remote host closed the connection]
<seanstickle> steveklabnik: yt?
ryez has quit [Quit: Page closed]
ilyam has quit [Quit: ilyam]
chessguy has quit [Remote host closed the connection]
kingCrawlerx has quit [Quit: Computer has gone to sleep]
Tearan has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
<steveklabnik> huh?
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
dous has quit [Remote host closed the connection]
savage- has quit [Ping timeout: 265 seconds]
<banisterfiend> seanstickle: sup stick
khoa has quit [Read error: Connection timed out]
khoa has joined #ruby-lang
<seanstickle> steveklabnik: hi! just wanted to thank you for the recommendation of "Protocol"
<seanstickle> steveklabnik: reading it today, quite good
<seanstickle> banisterfiend: hey pry guy!
robbyoconnor has joined #ruby-lang
gsav has joined #ruby-lang
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby-lang
<banisterfiend> seanstickle: wats up
<steveklabnik> awesome!
<steveklabnik> glad you're enjoying it
<steveklabnik> i was just confused as to what yt? meant
<steveklabnik> oh, you there?
<steveklabnik> i bet
<seanstickle> steveklabnik: it helps that it's written a little more accessibly than raw Deleuze
<seanstickle> steveklabnik: yt = you there, yes
<seanstickle> Good lord, trying to read "The Fold" had my brain all seized up
<seanstickle> banisterfiend: reading critical theory applied to networking protocols, thanks to steveklabnik
robbyoconnor has quit [Read error: Connection reset by peer]
<banisterfiend> lol is that kind of like the quantum mechanics of potatoes
<seanstickle> banisterfiend: ah, no,
<seanstickle> banisterfiend: more about how distributed systems can be mechanisms of social control
<seanstickle> Sort of like Lessig's "Code", but with a French analytic twist
<seanstickle> Basically, anti-utopianism for the Internet
<banisterfiend> "french" and "analytic" dont go well together in my mind
<banisterfiend> in my experience the french just write 'mush'
<seanstickle> banisterfiend: aw, you don't read the good people then
<steveklabnik> heh
<steveklabnik> no, i bet he's talking about the same people
<steveklabnik> you're right, it's way more accesible than straight deleuze. i havent read the fold, but i did recently finish both volumes of capitalism and schizophrenia
<steveklabnik> and by 'finish' i mean 'say wtf repeatedly'
<seanstickle> I just started Anti-Oedipus
<seanstickle> Which is quite shocking
<steveklabnik> i hope you have a background in freud!
<seanstickle> A fair bit, yes.
<seanstickle> We read him in college, and then I have read him since
<steveklabnik> you'll be far better equipped than me
<steveklabnik> but i guess if you've already started than you know that
<seanstickle> We'll see.
<seanstickle> So you list Critical Code Studies as an interest on your site.
<seanstickle> Can you point me to good examples of that?
<seanstickle> That is, non-bullshit stuff (no phallocentric virus readings, please)
spuk has joined #ruby-lang
robbyoconnor has joined #ruby-lang
khoa has quit [Read error: Connection timed out]
khoa has joined #ruby-lang
<steveklabnik> welllllllll
<steveklabnik> just because i'm interested doesnt mean i find things GOOD
<steveklabnik> heh
<seanstickle> Ha
<seanstickle> Least worst then?
<steveklabnik> i wrote this a while back, which sorta fits the genre: http://blog.steveklabnik.com/posts/2011-05-21-single-text-many-masters
<seanstickle> Or do you just like the idea (which I certainly do)
<steveklabnik> i participated in a few online discussions
<steveklabnik> i almost got an english degree
<steveklabnik> so i like the idea
<steveklabnik> and i see good things from time to time
<steveklabnik> but i dont like have a list handy
<seanstickle> No worries.
<seanstickle> I got my degree, basically, in reading books really really closely.
<seanstickle> So I like the idea of applying that to code.
<steveklabnik> i gave this talk a while back which is sorta some musings on the topic: https://vimeo.com/31204088
<steveklabnik> sorta an extension of the blog post
rwilcox has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<seanstickle> I shall read the post and watch the video.
<steveklabnik> fat's blog recently has been good
<steveklabnik> byfat.xxx
<steveklabnik> (don't type fat.xxx)
<seanstickle> Ha
apeiros_ has joined #ruby-lang
<steveklabnik> and of course, my most recent blog post is in a way too: http://blog.steveklabnik.com/posts/2012-08-13-protological-control--an-introduction
<steveklabnik> with more coming as soon as some tech details get handeld
tenderlove has quit [Remote host closed the connection]
<steveklabnik> i think thats how we got on this topic in the first place
seoaqua has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
<seoaqua> which ruby book do u guys suggest
desmondmonster has quit [Quit: desmondmonster]
<erikh> are you new to programming or just ruby?/
<seoaqua> one for fast learning ,one for reference
<seoaqua> not much
<seanstickle> seoaqua: the draft ISO spec
<seoaqua> seanstickle, i don't get it :S
<seanstickle> That's how I learned Ruby, and it worked fine.
<steveklabnik> haha
desmondmonster has joined #ruby-lang
apeiros_ has quit [Ping timeout: 252 seconds]
<seoaqua> erikh, i have one man that programmed php for years, but now i need him to learn ruby
m3nd3s has quit [Remote host closed the connection]
<erikh> the pickaxe is a nice book.
<erikh> corundum: pickaxe?
<corundum> pickaxe is Programming Ruby, 3rd ed. by Dave Thomas, et al. Available for purchase (tree and pdf) at http://www.pragprog.com/ or at http://www.rubycentral.com/book/ (in first edition form) if you are a cheap bastard and hate kittens. or http://ruby-doc.org/docs/ProgrammingRuby/
<seoaqua> erikh, thansk
<erikh> yep
<seoaqua> erikh, thanks
<seoaqua> if only there is an authentic guide of links to all the ruby resources
sora_h is now known as s0ra_h
khoa has quit [Read error: Connection timed out]
khoa has joined #ruby-lang
ilyam has joined #ruby-lang
stardiviner has joined #ruby-lang
krz has quit [Quit: krz]
seoaqua has quit [Ping timeout: 256 seconds]
erichmenge has joined #ruby-lang
jtoy has quit [Quit: jtoy]
erichmenge has quit [Client Quit]
wmoxam has quit [Quit: leaving]
bhrgunatha has joined #ruby-lang
RORgasm has joined #ruby-lang
RORgasm has quit [Remote host closed the connection]
RORgasm has joined #ruby-lang
desmondmonster has quit [Read error: Connection reset by peer]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
bhrgunatha has quit [Client Quit]
banisterfiend` has joined #ruby-lang
banisterfiend has quit [Ping timeout: 256 seconds]
khoa has quit [Read error: Connection timed out]
khoa has joined #ruby-lang
dous has quit [Ping timeout: 276 seconds]
wpaulson has joined #ruby-lang
Tearan has quit [Quit: Sleepy Badger....]
redgetan has joined #ruby-lang
t70675 has quit [Remote host closed the connection]
t45274 has joined #ruby-lang
macmartine has joined #ruby-lang
Tearan has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
goshakkk has quit [Quit: Computer has gone to sleep.]
khoa has quit [Read error: Connection timed out]
khoa has joined #ruby-lang
diegoviola has quit [Ping timeout: 272 seconds]
neocoin has joined #ruby-lang
jmcphers has quit [Ping timeout: 268 seconds]
jmcphers has joined #ruby-lang
tenderlove has joined #ruby-lang
s0ra_h is now known as sora_h
cantonic has joined #ruby-lang
khoa has quit [Read error: Connection timed out]
banisterfiend` has quit [Remote host closed the connection]
deryl has joined #ruby-lang
RORgasm has quit [Remote host closed the connection]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
seanstickle has quit [Quit: seanstickle]
jxie has quit [Ping timeout: 244 seconds]
tenderlove has quit [Remote host closed the connection]
stardiviner has quit [Ping timeout: 245 seconds]
jxie has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
cantonic has quit [Quit: cantonic]
Nisstyre has quit [Quit: Leaving]
Nisstyre_ has joined #ruby-lang
sora_h is now known as s0ra_h
ilyam has quit [Quit: ilyam]
alvaro_o_ has quit [Quit: Ex-Chat]
savage- has joined #ruby-lang
dous has quit [Ping timeout: 276 seconds]
macmartine has quit [Quit: Computer has gone to sleep.]
radar_ has quit [Remote host closed the connection]
woollyams has joined #ruby-lang
saxy has joined #ruby-lang
milesforrest has joined #ruby-lang
milesforrest has left #ruby-lang [#ruby-lang]
t45274 has quit [Remote host closed the connection]
t19463 has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
woollyams has joined #ruby-lang
woollyams has quit [Client Quit]
igotnolegs has joined #ruby-lang
woollyams has joined #ruby-lang
banisterfiend has joined #ruby-lang
jperry2 has quit [Read error: Connection reset by peer]
jperry2 has joined #ruby-lang
sepp2k has joined #ruby-lang
t19463 has quit [Remote host closed the connection]
t97904 has joined #ruby-lang
tenderlove has joined #ruby-lang
ryanf has quit [Quit: leaving]
Dreamer3 has quit [Remote host closed the connection]
burgestrand has quit [Quit: Leaving.]
Dreamer3 has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
cantonic has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
fgomez has joined #ruby-lang
codewrangler has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
cha1tanya has joined #ruby-lang
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby-lang
t97904 has quit [Remote host closed the connection]
t24060 has joined #ruby-lang
Defusal has quit [Read error: Connection reset by peer]
Defusal has joined #ruby-lang
Defusal has quit [Changing host]
Defusal has joined #ruby-lang
rohit has joined #ruby-lang
daidoji has joined #ruby-lang
tgriffin2081 has joined #ruby-lang
chimkan_ has joined #ruby-lang
yankov has joined #ruby-lang
r0bby has joined #ruby-lang
jperry2 has quit [Read error: Connection reset by peer]
jperry2 has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 272 seconds]
rohit has quit [Quit: Leaving]
r0bby has quit [Read error: Connection reset by peer]
andrewhl has quit [Remote host closed the connection]
jmcphers has quit [*.net *.split]
jxie has quit [*.net *.split]
ged has quit [*.net *.split]
mahlon has quit [*.net *.split]
publicvoid_ has quit [*.net *.split]
Skif has quit [*.net *.split]
deryl has quit [Quit: deryl]
cantonic has quit [Quit: cantonic]
saxy has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Remote host closed the connection]
ryanf has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
msch has quit [Ping timeout: 276 seconds]
jwollert has quit [Ping timeout: 276 seconds]
khoa has joined #ruby-lang
rohit has joined #ruby-lang
jwollert has joined #ruby-lang
khoa has quit [Client Quit]
Dreamer3 has quit [Quit: Leaving...]
Dreamer3 has joined #ruby-lang
ryanf has quit [Quit: broken pipes |||]
lukekhamilton has quit [Read error: Connection reset by peer]
jackhammer2022 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
ivanoats has quit [Remote host closed the connection]
chimkan_ has quit [Remote host closed the connection]
chimkan_ has joined #ruby-lang
yxhuvud has joined #ruby-lang
rohit has quit [Ping timeout: 252 seconds]
apeiros_ has joined #ruby-lang
burgestrand has joined #ruby-lang
tgriffin2081 has quit [Ping timeout: 260 seconds]
burgestrand has quit [Client Quit]
Muz has quit [Remote host closed the connection]
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
|Vargas| has joined #ruby-lang
Muz has joined #ruby-lang
acyed has joined #ruby-lang
Dreamer3 has quit [Remote host closed the connection]
Dreamer3 has joined #ruby-lang
msch has joined #ruby-lang
burgestrand has joined #ruby-lang
banisterfiend has joined #ruby-lang
rohit has joined #ruby-lang
tjadc has joined #ruby-lang
vinirodr has joined #ruby-lang
ruurd has joined #ruby-lang
vinirodr has left #ruby-lang [#ruby-lang]
apeiros_ has quit [Remote host closed the connection]
d3vic3 has quit [Ping timeout: 240 seconds]
d3vic3 has joined #ruby-lang
Tearan has quit [Quit: Sleepy Badger....]
t24060 has quit [Remote host closed the connection]
t77951 has joined #ruby-lang
havenn has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
solars has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
acyed has left #ruby-lang ["Leaving..."]
banisterfiend has quit [Ping timeout: 240 seconds]
rohit has quit [Quit: Leaving]
ivanoats has quit [Ping timeout: 272 seconds]
burgestrand has quit [Quit: Leaving.]
<bnagy> whoa
<bnagy> in what case, ever, would str.slice!(-1,1) not change the length of str?
<bnagy> it's a utf-16le collection of nasty shuffled codepoints
mytrile has joined #ruby-lang
<rue> It should work with characters
<rue> So…buggy cases?
<bnagy> wacky
<bnagy> s=(0..65535).to_a.shuffle.map {|i| i.chr 'utf-16le'}.compact.join
<bnagy> until s.empty?; p s.slice!(-1,1); end
<bnagy> "\u3548"
<bnagy> loop for me
havenn has quit [Remote host closed the connection]
drollwit has joined #ruby-lang
apeiros_ has joined #ruby-lang
s0ra_h is now known as sora_h
solars has quit [Ping timeout: 246 seconds]
woollyams has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby-lang
<bnagy> think I'll see if anyone in #ruby is around for this...
iterion has joined #ruby-lang
iterion has quit [Client Quit]
tenderlove has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
t77951 has quit [Remote host closed the connection]
sora_h is now known as s0ra_h
t28186 has joined #ruby-lang
Dreamer3 has quit [Remote host closed the connection]
Dreamer3 has joined #ruby-lang
nirix has quit [Quit: Computer has gone to s…zZzZz]
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
stardiviner has joined #ruby-lang
kitallis has joined #ruby-lang
tmartiro has joined #ruby-lang
tenderlove has quit [Ping timeout: 245 seconds]
khoa has joined #ruby-lang
macmartine has joined #ruby-lang
dan|el has joined #ruby-lang
perryh is now known as perryh_away
t28186 has quit [Remote host closed the connection]
runeb has joined #ruby-lang
drollwit has quit [Read error: Connection reset by peer]
drollwit has joined #ruby-lang
kitallis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
vesan has quit [Read error: Connection reset by peer]
drollwit has quit [Read error: Connection reset by peer]
drollwit has joined #ruby-lang
solars has joined #ruby-lang
khoa has quit [Read error: Connection timed out]
t1782 has joined #ruby-lang
Skif has joined #ruby-lang
mahlon has joined #ruby-lang
woollyams has joined #ruby-lang
publicvoid_ has joined #ruby-lang
ged has joined #ruby-lang
jmcphers has joined #ruby-lang
jxie has joined #ruby-lang
ivanoats has joined #ruby-lang
t1782 has quit [Write error: Broken pipe]
t61209 has joined #ruby-lang
ged is now known as Guest23084
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
vesan has joined #ruby-lang
fgomez has quit [Ping timeout: 248 seconds]
fgomez has joined #ruby-lang
ivanoats has quit [Ping timeout: 246 seconds]
stardiviner is now known as NagatoPain
NagatoPain is now known as stardiviner
cha1tanya has quit [Read error: Connection reset by peer]
cha1tanya has joined #ruby-lang
igotnolegs has quit [Quit: Computer has gone to sleep.]
havenn has quit [Remote host closed the connection]
|Vargas| has quit [Quit: ...]
drollwit has quit [Remote host closed the connection]
<yorickpeterse> HELLO
thone_ has joined #ruby-lang
arquebus has joined #ruby-lang
qwerxy has joined #ruby-lang
runeb has quit [Remote host closed the connection]
macmartine has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby-lang
tbuehlmann has joined #ruby-lang
thone has quit [Ping timeout: 265 seconds]
setmeaway has joined #ruby-lang
runeb has joined #ruby-lang
IPGlider has joined #ruby-lang
qwerxy has quit [Quit: offski]
kitallis has joined #ruby-lang
t61209 has quit [Remote host closed the connection]
t25202 has joined #ruby-lang
runeb has quit [Remote host closed the connection]
arquebus has quit [Quit: Konversation terminated!]
chimkan_ has quit [Quit: chimkan_]
guns has joined #ruby-lang
kitallis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
chimkan_ has joined #ruby-lang
Criztian has joined #ruby-lang
yankov has quit [Quit: yankov]
chimkan_ has quit [Client Quit]
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
|Vargas| has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
banisterfiend has joined #ruby-lang
dan|el has quit [Ping timeout: 272 seconds]
dc5ala has joined #ruby-lang
znake has joined #ruby-lang
dan|el has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
cdt has joined #ruby-lang
ivanoats has quit [Ping timeout: 245 seconds]
neocoin has quit [Remote host closed the connection]
gnufied has joined #ruby-lang
tonni has quit [Remote host closed the connection]
robotmay has joined #ruby-lang
fgomez has quit [Quit: leaving]
fgomez has joined #ruby-lang
heftig has quit [Quit: leaving]
qqq has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
limes has joined #ruby-lang
dhruvasagar has quit [Read error: Connection reset by peer]
qqq has quit [Ping timeout: 245 seconds]
kedare has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
tonni has joined #ruby-lang
lukekhamilton has joined #ruby-lang
znake has quit [Quit: znake]
kain has quit [Ping timeout: 268 seconds]
zmack has joined #ruby-lang
dejongge has joined #ruby-lang
areil has joined #ruby-lang
wallerdev has joined #ruby-lang
banisterfiend has joined #ruby-lang
runeb- has joined #ruby-lang
runeb- is now known as runeb
gnufied has quit [Quit: Leaving.]
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby-lang
gnufied has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
lukekhamilton has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
banisterfiend has quit [Ping timeout: 252 seconds]
nirix has joined #ruby-lang
qwerxy has joined #ruby-lang
banisterfiend has joined #ruby-lang
kitallis has joined #ruby-lang
dhruvasagar has joined #ruby-lang
postmodern has quit [Quit: Leaving]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
s0ra_h is now known as sora_h
ivanoats has quit [Ping timeout: 246 seconds]
limes has quit [Quit: limes]
neocoin has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
t25202 has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
t34364 has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
sora_h is now known as s0ra_h
Dwarf has joined #ruby-lang
Dwarf has quit [Changing host]
Dwarf has joined #ruby-lang
cha1tanya has quit [Read error: Connection reset by peer]
cha1tanya has joined #ruby-lang
workmad3 has joined #ruby-lang
bytephilia has joined #ruby-lang
dan|el has quit [Ping timeout: 240 seconds]
Criztian has quit []
workmad3 has quit [Ping timeout: 245 seconds]
kedare has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby-lang
flori has quit [Ping timeout: 252 seconds]
flori has joined #ruby-lang
goshakkk has joined #ruby-lang
rue has quit [Remote host closed the connection]
rolfb has joined #ruby-lang
chendo_ has quit [Ping timeout: 248 seconds]
chendo has joined #ruby-lang
goshakkk has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Read error: Connection reset by peer]
t34364 has quit [Remote host closed the connection]
t311 has joined #ruby-lang
dhruvasagar has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
seanstickle has joined #ruby-lang
x0F_ is now known as x0F
toretore has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
s0ra_h is now known as sora_h
judofyr has joined #ruby-lang
_whitelogger has joined #ruby-lang
dominikh has joined #ruby-lang
chendo has quit [Ping timeout: 240 seconds]
Leeky_afk has joined #ruby-lang
chendo has joined #ruby-lang
goshakkk has joined #ruby-lang
S1kx has joined #ruby-lang
S1kx has joined #ruby-lang
jarib has quit [Read error: Operation timed out]
mortice has quit [Ping timeout: 252 seconds]
sora_h is now known as s0ra_h
mortice has joined #ruby-lang
jarib has joined #ruby-lang
dejongge has quit [Remote host closed the connection]
lzhz_ has left #ruby-lang [#ruby-lang]
ammar has joined #ruby-lang
lzhz has joined #ruby-lang
<lzhz> is there some builtin way to inspect a hash getting the syntax introduced in 1.9?
khoa has quit [Read error: Connection timed out]
mortice has quit [Ping timeout: 245 seconds]
goshakkk has quit [Quit: Computer has gone to sleep.]
<yorickpeterse> What?
khoa has joined #ruby-lang
<lzhz> h = {a: 1, b: 2} # what do I type to get "{a: 1, b: 2}" as output?
<lzhz> h.inspect yields the old syntax, ie. {:a => 1, :b => 2}
robbyoconnor has joined #ruby-lang
<yorickpeterse> I don't think there's a way for that
whitequark has joined #ruby-lang
heftig has joined #ruby-lang
<lzhz> are people still using the new syntax, or was it just a quick fad?
jarib has quit [Ping timeout: 244 seconds]
<yorickpeterse> The Ruby code itself is not exposed to the syntax used for it, the only way would be to override #inspect and hard code the syntax
<banisterfiend> yorickpeterse: can you tell me what country the domain '.ra' relates to?
<banisterfiend> i seem to have trouble googling it
chendo has quit [Ping timeout: 248 seconds]
kvirani has joined #ruby-lang
dan|el has joined #ruby-lang
<matled> banisterfiend: do you know any domain under this tld?
bytephilia has quit [Remote host closed the connection]
chendo has joined #ruby-lang
<foucist> banisterfiend: might be roma
<matled> dig -t NS ra. doesn't show any nameserver for this tld
<yorickpeterse> banisterfiend: .ra doesn't exist as far as I'm aware of
goshakkk has joined #ruby-lang
seanstickle has quit [Quit: seanstickle]
t97393 has quit [Remote host closed the connection]
mortice has joined #ruby-lang
t29826 has joined #ruby-lang
bytephilia has joined #ruby-lang
jarib has joined #ruby-lang
khoa has quit [Read error: Operation timed out]
khoa has joined #ruby-lang
<gnufied> lzhz: quite a lot of projects have switched to new hash syntax. to my horror even libraries. so the only reason for them to stop supporting 1.8 is - gotta use new hash syntax
<gnufied> "support of ruby 1.8 has been dropped due to Mongoid 3.0 that only supports 1.9 new hash syntax"
<banisterfiend> gnufied: in a way it's good, as it may force people to move OFF 1.8, and therefore other libraries dont have to concern themselves with supporting 1.8 in the future ;)
<banisterfiend> 1.8 support is a PITA
<yorickpeterse> judofyr: madness!
<matled> 1.9 support, too
rue has joined #ruby-lang
chendo has quit [Ping timeout: 256 seconds]
<gnufied> banisterfiend: I understand, but I have a largish project still on 1.8, so i am being selfish I guess
<banisterfiend> gnufied: how much of an effort is it for you to upgrade to 1.9?
<banisterfiend> just curious..
<whitequark> 1.8 is past its end of life
<whitequark> you don't have a choice to migrate or not to migrate off 1.8
<whitequark> you have to.
<gnufied> we just upgraded to rails 3 and it took a month. product owners won't be happy, if we ask another 10 days for upgrading to 1.9
<judofyr> yorickpeterse: madness?
<foucist> seems like there should be an oldruby2newruby tool, like html2haml
<gnufied> banisterfiend: small team, really and lot of critical stuff. not typical crud app.
<judofyr> foucist: Python tried that (2to3) , but it didn't work out
<whitequark> foucist: stdlib changes cannot be automatically applied to the code
<whitequark> and there are quite a few things except the syntax. Encoding to say at least.
<foucist> well i wouldn't expect it to work 100%
rolfb has quit [Quit: Linkinus - http://linkinus.com]
chendo has joined #ruby-lang
<foucist> i.e. just apply a pile of the most basic changes and then leave the rest to the coders, with warnings or inserted comments "FIXME" etc
<foucist> heh
rue has quit [Remote host closed the connection]
rue has joined #ruby-lang
<gnufied> whitequark: tell that to github folks, for example.
<gnufied> afaik, they are sticking the github frontend to 1.8, whatever may come
justinmcp has joined #ruby-lang
<gnufied> *I could be wrong though, if things changed*
d3vic3 has quit [Ping timeout: 252 seconds]
<whitequark> gnufied: what
<whitequark> as per "tell that to...", you don't seem to understand the state of 1.8
<whitequark> it is not updated anymore at all, including security issues.
<whitequark> 1.8.7 is FOUR YEARS old. you have had four years to plan your 1.9 migration.
d3vic3 has joined #ruby-lang
<foucist> lol.. plans
<gnufied> well, I do understand and I am just saying that, for whatever reason - lot of companies are sticking with 1.8
JoshWines has quit [Remote host closed the connection]
<gnufied> it is purely, organisational problem and has less to do with technology
goshakkk has quit [Quit: Computer has gone to sleep.]
<gnufied> and the four thing is plain wrong
<gnufied> year*
<gnufied> I will have to call you on that. Four year back. i.e - 2008. 1.9 wasn't remotely ready for production usage
eydaimon has joined #ruby-lang
eydaimon has quit [Changing host]
eydaimon has joined #ruby-lang
<gnufied> 2006-7. dominant version of Ruby was 1.8.5. which had tons of bugs in IO
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
s0ra_h is now known as sora_h
<gnufied> also, they did release a security fix for 1.8.7 just last month
dan|el has quit [Ping timeout: 248 seconds]
<whitequark> sorry, very crappy internet connection here. I'll bbiab
eyda|mon has joined #ruby-lang
eyda|mon has quit [Changing host]
eyda|mon has joined #ruby-lang
khoa has quit [Read error: Connection timed out]
eydaimon has quit [Ping timeout: 240 seconds]
khoa has joined #ruby-lang
ivanoats has quit [Ping timeout: 276 seconds]
EvilJStoker has joined #ruby-lang
fgomez has quit [Quit: leaving]
dan|el has joined #ruby-lang
eydaimon has joined #ruby-lang
eydaimon has quit [Changing host]
eydaimon has joined #ruby-lang
eyda|mon has quit [Ping timeout: 260 seconds]
daidoji has quit []
eyda|mon has joined #ruby-lang
eyda|mon has quit [Changing host]
eyda|mon has joined #ruby-lang
bytephilia has quit [Remote host closed the connection]
dan|el has quit [Ping timeout: 246 seconds]
Dwarf has quit [Quit: Leaving]
Dwarf has joined #ruby-lang
Dwarf has quit [Changing host]
Dwarf has joined #ruby-lang
eydaimon has quit [Ping timeout: 246 seconds]
eyda|mon has quit [Ping timeout: 268 seconds]
<lzhz> judofyr: neat, but nothing in core/stdlib then I guess.
shevy has joined #ruby-lang
qwerxy has quit [Ping timeout: 240 seconds]
sora_h is now known as s0ra_h
qwerxy has joined #ruby-lang
eyda|mon has joined #ruby-lang
eyda|mon has quit [Changing host]
eyda|mon has joined #ruby-lang
khoa has quit [Read error: Connection timed out]
goshakkk has joined #ruby-lang
d3vic3 has quit [Ping timeout: 268 seconds]
khoa has joined #ruby-lang
khoa has quit [Client Quit]
poga has joined #ruby-lang
cantonic has joined #ruby-lang
d3vic3 has joined #ruby-lang
<darix> whitequark: wasnt EOL for security only fixes 2013?
<certainty> it may be a stupid question, but why can't i add a singleton method to let's say 5?
<darix> whitequark: http://www.ruby-lang.org/en/news/2011/10/06/plans-for-1-8-7/ - get your facts right
<darix> certainty: hm?
<certainty> def 5.a_method; "yeah"; end doesn't work here
<certainty> don't ask if that's a sane idea. It's just something i expected to work
<shevy> certainty I think because 5 is not a real object
<certainty> why is it?
<Mon_Ouie> It only works on objects that have a singleton class
<certainty> Mon_Ouie: what depends that on?
<judofyr> certainty: symbols and fixnums don't have singleton classes
<Mon_Ouie> Because of a performance trick most implementations use, a fixnum can't have one
<certainty> how do i know an object has a singleton class?
<judofyr> and floats
<certainty> so fixnums symbols and floats behave differently? Are that the only exceptions?
<shevy> certainty, x = 5; def x.hi; puts "hi"; end # TypeError: can't define singleton method "hi" for Fixnum
goshakkk has quit [Quit: Computer has gone to sleep.]
<shevy> certainty I think it is because of some reason with memory usage that ruby cheats here
<shevy> certainty, yeah I think they are the only exceptions
<judofyr> shevy: not only memory usage, but also performance
<certainty> ok, thanks for your answers. Suprising nevertheless
<shevy> certainty, well just say that... "(almost) everything in ruby is a real object" :)
<judofyr> certainty: true/false/nil are also special (their singleton class is the same as the class), but they do have a singleton class
<Mon_Ouie> It's more integers in general (that's mostly for consistency I guess, since those are full-fleged objects)
<judofyr> numbers*
khoa has joined #ruby-lang
<certainty> ok i will remember that.
<certainty> shevy: yeah that's basically the sentence i've taken literally, without the "almost" :)
<shevy> I did so too once!
<shevy> sometimes things get attributed to people without them having said that ever. like, "ruby follows the principle of least surprise"
canton7 has joined #ruby-lang
<certainty> exactly
<judofyr> certainty: well, numbers still have an identity, a class and some internal data (although it's not mutable)
<judofyr> which makes them pretty object-like in my head
seanstickle has joined #ruby-lang
seanstickle has quit [Client Quit]
<certainty> judofyr: they certainly are, but they're not blessed with a singleton class
<certainty> and well, i didn't expect that :)
<certainty> well one would rarely want to do what i've asked but still :)
<judofyr> certainty: you can "fake" it by adding a method on the real class and just checking if self == thing
<certainty> judofyr: yeah, but that's not the same. I don't have a real usecase anyway
t29826 has quit [Remote host closed the connection]
t59832 has joined #ruby-lang
IPGlider has quit []
eyda|mon has quit [Ping timeout: 268 seconds]
dhruvasagar has quit [Ping timeout: 252 seconds]
eyda|mon has joined #ruby-lang
eyda|mon has quit [Changing host]
eyda|mon has joined #ruby-lang
dhruvasagar has joined #ruby-lang
Hakon has joined #ruby-lang
khoa has quit [Quit: khoa]
cschwartz has joined #ruby-lang
xxxx has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
xxxx has quit [Changing host]
xxxx has joined #ruby-lang
banisterfiend has joined #ruby-lang
xxxx has left #ruby-lang [#ruby-lang]
khoa has joined #ruby-lang
workmad3 has joined #ruby-lang
retro|cz has quit [Ping timeout: 265 seconds]
jxie has quit [Quit: leaving]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
s0ra_h is now known as sora_h
woollyams has joined #ruby-lang
eyda|mon has quit [Ping timeout: 245 seconds]
andrewhl has joined #ruby-lang
ivanoats has quit [Ping timeout: 252 seconds]
khoa has quit [Quit: khoa]
woollyams has quit [Quit: Computer has gone to sleep.]
retro|cz has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
soup-nazi has joined #ruby-lang
shevy has left #ruby-lang ["I'll be back ... maybe"]
t59832 has quit [Remote host closed the connection]
t20659 has joined #ruby-lang
retro|cz has quit [Ping timeout: 265 seconds]
eyda|mon has joined #ruby-lang
eyda|mon has quit [Changing host]
eyda|mon has joined #ruby-lang
nazty has joined #ruby-lang
Jay_Levitt has quit [Quit: Jay_Levitt]
gentz_ has joined #ruby-lang
savage-_ has joined #ruby-lang
gregmore_ has joined #ruby-lang
jmeeuwen_ has joined #ruby-lang
cha1tanya has quit [Quit: Leaving]
carloslopes has joined #ruby-lang
d3vic3 has quit [Ping timeout: 256 seconds]
sora_h is now known as s0ra_h
d3vic3 has joined #ruby-lang
diegoviola has joined #ruby-lang
oddmunds_ has joined #ruby-lang
bougyman_ has joined #ruby-lang
qwerxy_ has joined #ruby-lang
eyda|mon has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
bytephilia has joined #ruby-lang
TorpedoSkyline_ has joined #ruby-lang
qwerxy has quit [*.net *.split]
charliesome has quit [*.net *.split]
savage- has quit [*.net *.split]
gregmoreno has quit [*.net *.split]
qpingu has quit [*.net *.split]
naz has quit [*.net *.split]
anekos has quit [*.net *.split]
gentz has quit [*.net *.split]
TorpedoSkyline has quit [*.net *.split]
jmeeuwen has quit [*.net *.split]
oddmunds has quit [*.net *.split]
bougyman has quit [*.net *.split]
t20659 has quit [Write error: Broken pipe]
t94087 has joined #ruby-lang
jmeeuwen_ is now known as jmeeuwen
qpingu has joined #ruby-lang
eyda|mon has joined #ruby-lang
eyda|mon has quit [Changing host]
eyda|mon has joined #ruby-lang
anekos has joined #ruby-lang
m3nd3s has joined #ruby-lang
codewrangler has joined #ruby-lang
EvilJStoker has quit [*.net *.split]
anaconda99 has quit [*.net *.split]
EvilJStoker has joined #ruby-lang
anaconda99 has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
m3nd3s has quit [Ping timeout: 248 seconds]
dejongge has joined #ruby-lang
m3nd3s has joined #ruby-lang
rippa has joined #ruby-lang
eyda|mon has quit [Ping timeout: 245 seconds]
m3nd3s has quit [Remote host closed the connection]
eyda|mon has joined #ruby-lang
fgomez has joined #ruby-lang
s0ra_h is now known as sora_h
m3nd3s has joined #ruby-lang
jbwiv has joined #ruby-lang
kain has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
fgomez has quit [Ping timeout: 240 seconds]
fedorc has joined #ruby-lang
t94087 has quit [Remote host closed the connection]
t72910 has joined #ruby-lang
totallymike has quit [Quit: WeeChat 0.3.7]
sora_h is now known as s0ra_h
guns has quit [Quit: guns]
Criztian has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
m3nd3s has quit [Read error: Connection timed out]
s0ra_h is now known as sora_h
dous has quit [Ping timeout: 264 seconds]
retro|cz has joined #ruby-lang
m3nd3s has joined #ruby-lang
itcharlie has joined #ruby-lang
d3vic3 has quit [Quit: leaving]
elux has joined #ruby-lang
ivanoats has quit [Ping timeout: 240 seconds]
vbatts has quit [Ping timeout: 245 seconds]
m3nd3s has quit [Remote host closed the connection]
jbwiv has quit [Ping timeout: 276 seconds]
m3nd3s_ has joined #ruby-lang
lun_ has quit [Remote host closed the connection]
goshakkk has joined #ruby-lang
deryl has joined #ruby-lang
voker57 has quit [Read error: Connection reset by peer]
savage-_ has quit [Remote host closed the connection]
Dreamer3 has quit [Ping timeout: 245 seconds]
<zzak> good morning!
<rue> HI
soup-nazi has quit [Ping timeout: 245 seconds]
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 260 seconds]
<cschwartz> hi
bryancp has joined #ruby-lang
Dreamer3 has joined #ruby-lang
eyda|mon has quit [Ping timeout: 272 seconds]
eyda|mon has joined #ruby-lang
eyda|mon has quit [Changing host]
eyda|mon has joined #ruby-lang
sora_h is now known as s0ra_h
<zzak> happy fridays
<rue> Meh
<zzak> yah, could be better
* zzak hugs a rue
<zzak> look on the brightside you handsome son of a bitch
nazty has quit [Ping timeout: 272 seconds]
eyda|mon has quit [Ping timeout: 268 seconds]
eyda|mon has joined #ruby-lang
eyda|mon has quit [Changing host]
eyda|mon has joined #ruby-lang
itcharlie has left #ruby-lang [#ruby-lang]
itcharlie has joined #ruby-lang
<rue> I was. I had to get up to pull down the blinds
<whitequark> 'a' rue?..
<rue> An rue
dan|el has joined #ruby-lang
<foucist> An Rue
<rue> No, no, that’s grammatically whatnot
<foucist> if it's "an" then it's gotta be a name for something, so Rue gets capitalized
<yorickpeterse> LE RUE
<zzak> harhar
eyda|mon has quit [Ping timeout: 264 seconds]
naz has joined #ruby-lang
t72910 has quit [Remote host closed the connection]
t65405 has joined #ruby-lang
dan|el has quit [Ping timeout: 260 seconds]
dan|el has joined #ruby-lang
EvilJStoker has quit [Ping timeout: 244 seconds]
eydaimon has joined #ruby-lang
eydaimon has quit [Changing host]
eydaimon has joined #ruby-lang
zmack has quit [Remote host closed the connection]
dan|el has quit [Ping timeout: 256 seconds]
dan|el has joined #ruby-lang
eydaimon has quit [Ping timeout: 240 seconds]
eydaimon has joined #ruby-lang
eydaimon has quit [Changing host]
eydaimon has joined #ruby-lang
solars has quit [Ping timeout: 245 seconds]
dhruvasa1ar has joined #ruby-lang
kvirani has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 264 seconds]
dan|el has quit [Ping timeout: 260 seconds]
oddmunds_ has left #ruby-lang [#ruby-lang]
oddmunds has joined #ruby-lang
runeb has quit [Remote host closed the connection]
eyda|mon has joined #ruby-lang
eyda|mon has quit [Changing host]
eyda|mon has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
ruby-lang299 has joined #ruby-lang
eydaimon has quit [Ping timeout: 240 seconds]
dan|el has joined #ruby-lang
<zzak> someone should change the motd for this channel
itcharlie has left #ruby-lang [#ruby-lang]
<zzak> ChanServ(ChanServ@services.)- [#ruby-lang] Ruby - The programming language, http://ruby-lang.org | Ruby 1.9.2 is out | Read http://ruby.stadik.net/ | Paste >3 Lines of Text on http://pastie.org
ruurd has quit [Quit: Leaving...]
LanceHaig has left #ruby-lang ["Leaving"]
s0ra_h is now known as sora_h
chendo has quit [Changing host]
chendo has joined #ruby-lang
tjadc has quit [Ping timeout: 265 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
eyda|mon has quit [Ping timeout: 272 seconds]
eydaimon has joined #ruby-lang
eydaimon has quit [Changing host]
eydaimon has joined #ruby-lang
runeb has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
khoa has joined #ruby-lang
dan|el has quit [Ping timeout: 252 seconds]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
zmack_ has joined #ruby-lang
EvilJStoker has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
khoa has quit [Client Quit]
chendo has quit [Ping timeout: 256 seconds]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
eyda|mon has joined #ruby-lang
eyda|mon has quit [Changing host]
eyda|mon has joined #ruby-lang
wpaulson has joined #ruby-lang
zmack has joined #ruby-lang
eydaimon has quit [Ping timeout: 265 seconds]
chendo has joined #ruby-lang
cantonic has quit [Quit: cantonic]
zmack_ has quit [Ping timeout: 256 seconds]
ivanoats has quit [Ping timeout: 240 seconds]
kvirani has quit [Remote host closed the connection]
Hakon has quit [Quit: Leaving...]
qwerxy_ has quit [Quit: offski]
fedorc has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
elux has quit [Quit: Leaving...]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
elux has joined #ruby-lang
kvirani has joined #ruby-lang
chendo has quit [Changing host]
chendo has joined #ruby-lang
r0bby has joined #ruby-lang
qwerxy has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 244 seconds]
totallymike has joined #ruby-lang
t65405 has quit [Remote host closed the connection]
t25400 has joined #ruby-lang
yankov has joined #ruby-lang
wallerdev has joined #ruby-lang
andrewhl has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
<rue> It’s cool
qpingu has quit [Ping timeout: 260 seconds]
erichmenge has joined #ruby-lang
kitallis has quit [Quit: Computer has gone to sleep.]
m3nd3s_ has quit []
eyda|mon has quit [Ping timeout: 265 seconds]
|Vargas| has quit [Quit: ...]
EvilJStoker has quit [Excess Flood]
alvaro_o has joined #ruby-lang
bougyman_ has quit [Changing host]
bougyman_ has joined #ruby-lang
bougyman_ is now known as bougyman
gnufied has joined #ruby-lang
EvilJStoker has joined #ruby-lang
tenderlove has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
gnufied has quit [Client Quit]
dhruvasa1ar has quit [Ping timeout: 245 seconds]
gnufied has joined #ruby-lang
outoftime has joined #ruby-lang
areil has quit [Remote host closed the connection]
eyda|mon has joined #ruby-lang
eyda|mon has quit [Changing host]
eyda|mon has joined #ruby-lang
dhruvasagar has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
cschwartz has quit [Ping timeout: 256 seconds]
ivanoats has joined #ruby-lang
Erlkoenig has joined #ruby-lang
ivanoats has quit [Ping timeout: 246 seconds]
heftig has quit [Ping timeout: 245 seconds]
heftig has joined #ruby-lang
goshakkk has quit [Ping timeout: 244 seconds]
<Erlkoenig> is there a way to tell wether a specific `Class' instance refers to a class thats derived from another one? Like, given B is derived from A, something like A.is_a?(B) => true -- just that this is_a? works on the `Class' class and not on the `A' class...
elux has quit [Quit: Leaving...]
<Erlkoenig> argh, i mean the other way round: B.is_a?(A)
<judofyr> Erlkoenig: wat? you can use "Fixnum < Integer" to check if something is a subclass of something
<judofyr> or
tmartiro has quit [Quit: Leaving]
<judofyr> do you mean kind_of?
<judofyr> 123.kind_of?(Object)
<judofyr> # => true
<judofyr> beacuse 123.class < Object
dhruvasa1ar has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 256 seconds]
tallship has joined #ruby-lang
<Erlkoenig> ah, the "<" is what i was looking for
<Erlkoenig> "<" is a very descriptive name
<Erlkoenig> thanks ;-)
<judofyr> Erlkoenig: they also work the other way around: "Integer > Fixnum"
<Mon_Ouie> It just comes from the syntax for defining subclasses
<Mon_Ouie> (class Foo < Bar; …; end)
goshakkk has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
<Erlkoenig> okay makes sense... but isn't easy to find :D
<judofyr> can't disagree with that ;)
<Erlkoenig> wouldn't it be "Integer < Fixnum"? From the doc: mod < other Returns true if mod is a subclass of other.
neocoin has quit [Read error: Connection reset by peer]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
cjs226 has joined #ruby-lang
<judofyr> Erlkoenig: Fixnum is subclass of Integer
neocoin has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
diegoviola has quit [Quit: leaving]
<Erlkoenig> judofyr: oh, okay...
<judofyr> Erlkoenig: Integer has two subclasses: Fixnum and Bignum
<Erlkoenig> i intuitively thought it would be the other way round :D
neocoin has quit [Remote host closed the connection]
macmartine has joined #ruby-lang
cantonic has joined #ruby-lang
enroxorz-work has left #ruby-lang ["Leaving"]
dan|el has joined #ruby-lang
eyda|mon has quit [Read error: Operation timed out]
t25400 has quit [Remote host closed the connection]
t75800 has joined #ruby-lang
dhruvasa1ar has quit [Ping timeout: 246 seconds]
carloslopes has quit [Quit: Leaving.]
dhruvasagar has joined #ruby-lang
neocoin has joined #ruby-lang
naz has quit [Read error: No route to host]
gsav has joined #ruby-lang
Criztian has quit [Read error: Connection reset by peer]
Criztian_ has joined #ruby-lang
wpaulson has joined #ruby-lang
<rue> “Local man failed by intuition”
Criztian_ has quit [Read error: Connection reset by peer]
Criztian has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
erichmenge has quit [Quit: Linkinus - http://linkinus.com]
radar_ has joined #ruby-lang
robotmay has quit [Remote host closed the connection]
radar_ has quit [Remote host closed the connection]
runeb has quit [Remote host closed the connection]
rararadar has joined #ruby-lang
dfr|mac has joined #ruby-lang
cantonic has quit [Quit: cantonic]
wpaulson_ has joined #ruby-lang
cantonic has joined #ruby-lang
wpaulson_ has quit [Client Quit]
wpaulson has quit [Ping timeout: 276 seconds]
erichmenge has joined #ruby-lang
erichmenge has quit [Client Quit]
vbatts has joined #ruby-lang
savage- has joined #ruby-lang
gmci has joined #ruby-lang
toretore has quit [Quit: This computer has gone to sleep]
ruby-lang299 has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby-lang
<vlad_starkov> Question: When I start Rails console with https://github.com/bernerdschaefer/tiff gem it raises error "Library not loaded: /opt/local/lib/libffi.5.dylib (LoadError)". Does anyone know this issue?
tommylommykins has joined #ruby-lang
<mistym> vlad_starkov: That tiff gem uses the ffi gem, which requires libffi. Looks like you built the gem against a copy of libffi that's no longer available?
goshakkk has quit [Quit: Computer has gone to sleep.]
<vlad_starkov> mistym: I'll check it..
<mistym> vlad_starkov: If you remove and reinstall the ffi gem, you should be okay. Try that first.
cantonic has quit [Quit: cantonic]
<mistym> (Assuming you still have a version of libffi installed at all! What OS are you on?)
chendo has quit [Ping timeout: 268 seconds]
butchanton has joined #ruby-lang
<vlad_starkov> mistym: OSX Mountain
<mistym> vlad_starkov: Oh, you should be okay then. libffi comes with Mac OS X. Your ffi was linked against some other libffi (the Macports version?), which I guess you don't have installed anymore.
chendo has joined #ruby-lang
chendo has quit [Changing host]
chendo has joined #ruby-lang
elux has joined #ruby-lang
t75800 has quit [Remote host closed the connection]
ilyam has joined #ruby-lang
t81531 has joined #ruby-lang
m3nd3s has joined #ruby-lang
<vlad_starkov> mistym: I'll check that lib in a little while. I run 'port update outdated' to make sure that everything is up to date, maybe after it finishes the error will disappear.
brianpWins has joined #ruby-lang
goshakkk has joined #ruby-lang
<zzak> "found decapitated by mountain lion"
andrewhl has quit [Remote host closed the connection]
cdt has quit [Quit: Ex-Chat]
titaniumNoob has joined #ruby-lang
yankov has quit [Quit: yankov]
chendo has quit [Ping timeout: 248 seconds]
heftig has quit [Quit: leaving]
chendo has joined #ruby-lang
chendo has quit [Changing host]
chendo has joined #ruby-lang
fgomez has joined #ruby-lang
apeiros_ has joined #ruby-lang
eydaimon has joined #ruby-lang
eydaimon has joined #ruby-lang
eydaimon has quit [Changing host]
neocoin has joined #ruby-lang
dan|el has quit [Read error: Operation timed out]
workmad3 has joined #ruby-lang
carloslopes has joined #ruby-lang
carloslopes has quit [Client Quit]
m3nd3s has quit [Read error: Connection timed out]
carloslopes has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
bryancp_ has joined #ruby-lang
bryancp has quit [Ping timeout: 276 seconds]
jtoy has joined #ruby-lang
m3nd3s has joined #ruby-lang
_soupnazi has joined #ruby-lang
andrewhl has joined #ruby-lang
t81531 has quit [Remote host closed the connection]
t11565 has joined #ruby-lang
alex_kira has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 260 seconds]
alex_kira has joined #ruby-lang
eydaimon has quit [Ping timeout: 244 seconds]
jtoy has quit [Quit: jtoy]
t4nkd has joined #ruby-lang
qwerxy has quit [Ping timeout: 244 seconds]
m3nd3s has quit [Read error: Connection timed out]
m3nd3s has joined #ruby-lang
workmad3 has joined #ruby-lang
yankov has joined #ruby-lang
justinmcp has joined #ruby-lang
benanne has joined #ruby-lang
alex_kir_ has joined #ruby-lang
voker57 has quit [Remote host closed the connection]
titaniumNoob has quit [Ping timeout: 276 seconds]
t11565 has quit [Remote host closed the connection]
t2869 has joined #ruby-lang
justinmcp has quit [Ping timeout: 244 seconds]
alex_kira has quit [Ping timeout: 246 seconds]
chendo has quit [Ping timeout: 252 seconds]
gnufied has quit [Quit: Leaving.]
chendo has joined #ruby-lang
chendo has quit [Changing host]
chendo has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
fgomez has quit [Quit: leaving]
chimkan has joined #ruby-lang
bytephilia has quit [Quit: Computer has gone to sleep.]
m3nd3s has quit [Read error: Connection timed out]
jxie has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
titaniumNoob has joined #ruby-lang
krz has joined #ruby-lang
JustinCampbell has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
m3nd3s has joined #ruby-lang
t2869 has quit [Remote host closed the connection]
ricardovaleriano has joined #ruby-lang
t94877 has joined #ruby-lang
ricardovaleriano has quit [Remote host closed the connection]
ricardovaleriano has joined #ruby-lang
m3nd3s_ has joined #ruby-lang
ricardovaleriano has quit [Remote host closed the connection]
ricardovaleriano has joined #ruby-lang
m3nd3s has quit [Ping timeout: 264 seconds]
elux has quit [Quit: Leaving...]
zmack has quit [Remote host closed the connection]
dous has quit [Remote host closed the connection]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
dous has quit [Remote host closed the connection]
iterion has joined #ruby-lang
dejongge has quit [Quit: Leaving.]
diegoviola has joined #ruby-lang
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
iterion has quit [Client Quit]
yats has joined #ruby-lang
Tearan has joined #ruby-lang
redgetan has quit [Quit: This computer has gone to sleep]
<rue> Might as well get rid of ports while you’re at it
m3nd3s_ has quit [Read error: Connection timed out]
malev has joined #ruby-lang
wpaulson has joined #ruby-lang
<erikh> but how will I talk to the rest of the internet then
BigFatFatty has joined #ruby-lang
wallerdev has joined #ruby-lang
ilyam has quit [Quit: ilyam]
m3nd3s has joined #ruby-lang
Hakon has joined #ruby-lang
<vlad_starkov> Just finished updating ports on OSX Mountain Lion. Now when running rails console I get this error "Could not open library 'libtiff.dylib': dlopen(libtiff.dylib, 5): image not found". Does anyone familiar with it?
titaniumNoob has quit [Quit: Leaving]
savage-_ has joined #ruby-lang
<erikh> same problem, just with libtiff this time instead of libffi.
chimkan has quit [Quit: chimkan]
savage- has quit [Read error: Connection reset by peer]
<erikh> expect to see more than a few of these.
Tearan has quit [Quit: Sleepy Badger....]
<vlad_starkov> erikh: I wanted to use "tiff" gem to have ability to inspect TIFF files to get pages count of it. Maybe there is another gem for this purpose?
t94877 has quit [Remote host closed the connection]
t75681 has joined #ruby-lang
<drbrain> vlad_starkov: you just need to build libtiff then rebuild the tiff gem
<erikh> this has absolutely nothing to do with gems really
<drbrain> the gem doesn't read tiff files all by itself, it depends on libtiff which you are now missing
<erikh> somewhere along the line you deleted a ton of system libraries, and now you have to recreate them
eydaimon has joined #ruby-lang
eydaimon has quit [Changing host]
eydaimon has joined #ruby-lang
<erikh> it's not a leap of hyperbole to suggest you should probably just reinstall your OS at this point, but try and fix it first.
wpaulson_ has joined #ruby-lang
ilyam has joined #ruby-lang
<drbrain> OS X 10.8 doesn't ship with a libtiff, so it must have been installed via home-brew or ports
<rue> OS reinstall is
<rue> Just nuke everything to do with ports and start over :)
<zzak> dang fangled new technology
wpaulson has quit [Ping timeout: 272 seconds]
wpaulson_ is now known as wpaulson
<erikh> what I'm suggesting is that it might be less trouble for someone who's encountering linker errors
<erikh> and doesn't understand how to resolve them.
<erikh> not that it wouldn't be a learning experience, but yeah.
<vlad_starkov> ports does not see libtiff in repositories. Do you recommend homebrew?
<drbrain> vlad_starkov: try installing tiff?
<erikh> at this point, switching is going to result in more problems
<drbrain> (the port)
<erikh> anyhow, 3 days of freeballin' says I should probably do laundry
<erikh> bbl
eydaimon has quit [Ping timeout: 265 seconds]
<vlad_starkov> drbrain: Computing dependencies for tiff. Cleaning tiff. Scanning binaries for linking errors: 100.0%. No broken files found.
heftig has joined #ruby-lang
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<vlad_starkov> TaDaa:) `brew install libtiff` solved it!
m3nd3s has quit [Read error: Connection timed out]
m3nd3s has joined #ruby-lang
Criztian has quit []
wpaulson has joined #ruby-lang
yats has quit [Quit: Leaving]
flak has joined #ruby-lang
flak is now known as Guest57421
crankharder has quit [Ping timeout: 265 seconds]
savage-_ has quit [Read error: Connection reset by peer]
savage- has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
runeb has joined #ruby-lang
sora_h is now known as s0ra_h
s0ra_h is now known as sora_h
sora_h is now known as s0ra_h
m3nd3s has quit [Read error: Connection timed out]
crankharder has joined #ruby-lang
nirix has quit [Quit: Computer has gone to s…zZzZz]
m3nd3s has joined #ruby-lang
carloslopes has quit [Quit: Leaving.]
<vlad_starkov> Question: does anyone know what gem to use to easily get page count of TIFF file?
butchanton has quit [Quit: Leaving.]
nibbo has quit [Quit: leaving]
nibbo has joined #ruby-lang
nibbo has quit [Client Quit]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<mistym> Is Ernno::ENOENT portable? Or is it not available on non-*nix systems?
yankov has quit [Quit: yankov]
<mistym> irb
<mistym> Arg. Wrong window.
<apeiros_> mistym: ri Errno
<apeiros_> afaik it should be portable
judofyr has quit [Remote host closed the connection]
g0bl1n has joined #ruby-lang
<mistym> apeiros_: Well, I saw that it's built dynamically based on the OS, so I read it as meaning that the available constants are OS-dependent.
<apeiros_> yes
<mistym> But I see that ENOENT is available on Windows. (Could have just fired up a Windows VM before asking!)
malev has quit [Remote host closed the connection]
<apeiros_> ri Errno lists which are commonly available on what OS
nibbo has joined #ruby-lang
jensn has joined #ruby-lang
m3nd3s has quit [Read error: Connection timed out]
<mistym> I'm not seeing anything more specific than "On a typical Unix or Windows platform, there are Errno classes such as Errno::EACCES, Errno::EAGAIN, Errno::EINTR, and so on."
bryancp_ has quit [Remote host closed the connection]
chimkan has joined #ruby-lang
yankov has joined #ruby-lang
t75681 has quit [Remote host closed the connection]
t14997 has joined #ruby-lang
<Erlkoenig> mistym: windows error codes look like that http://msdn.microsoft.com/en-us/library/windows/desktop/ms681382%28v=vs.85%29.aspx ... but ruby might wrap them
<apeiros_> hm, there has been a list…
<apeiros_> maybe it was/is in the source code
<mistym> Erlkoenig: Thanks!
solars has joined #ruby-lang
<Erlkoenig> just googled "win32 api error codes" ;-)
<mistym> apeiros_: Would certainly not go amiss in the ri documentation.
Tearan has joined #ruby-lang
<Erlkoenig> well i dunno whether you'll ever see such errors within ruby
sepp2k1 has quit [Remote host closed the connection]
<apeiros_> mistym: yes, the ri isn't what I remember to have seen
Guest57421 has left #ruby-lang [#ruby-lang]
rippa has joined #ruby-lang
m3nd3s has joined #ruby-lang
Tearan has quit [Client Quit]
anannie has joined #ruby-lang
elux has joined #ruby-lang
redgetan has joined #ruby-lang
burgestrand has joined #ruby-lang
reactormonk has quit [Ping timeout: 276 seconds]
chimkan has quit [Quit: chimkan]
m3nd3s has quit [Read error: Connection timed out]
redgetan has quit [Ping timeout: 252 seconds]
<mistym> I'm wrapping a C library with FFI. The C library's functions write stuff to stderr when there's an error (even though it has exception handling) and I don't think there's a builtin way to make it shut up. Can I silence it from Ruby?
chimkan has joined #ruby-lang
<Erlkoenig> close (2); :-D
s0ra_h is now known as sora_h
bryancp has joined #ruby-lang
zommi has joined #ruby-lang
rolfb has joined #ruby-lang
workmad3 has quit [Ping timeout: 240 seconds]
<rue> You could reopen it at the C level
<Erlkoenig> or: int fd = dup(2); close (2); ... call to library ... dup2 (fd, 2); close (fd);
reactormonk has joined #ruby-lang
rolfb has quit [Client Quit]
t14997 has quit [Remote host closed the connection]
<anannie> Can someone please explain me what "non-recursive, non-associative data structures" are? It doesn't make sense to me because data structures are non-recursive by default and they aren't array like/associative unless you make them so...
m3nd3s has joined #ruby-lang
<mistym> Erlkoenig: I'm using FFI's attach_function wrapping. It would be pretty tedious to do that for every single function call. :(
t11621 has joined #ruby-lang
<Erlkoenig> mistym: if you don't use stderr, you could just close(2); to kill it completely
<erikh> fd 2 is fd 2 no matter where it's being written to from
<drbrain> anannie: trees are recursive, lists are not
<Erlkoenig> i dunno about FFI, you might write some convinience wrapper method
<anannie> hi drbrain
<drbrain> I think a hash is associative
<mistym> Erlkoenig: Seems like users of my Ruby wrapper library would hate me for that.
<anannie> may I quickly PM drbrain?
<drbrain> anannie: I prefer discussing things in-channel
havenn has joined #ruby-lang
<anannie> drbrain: Okay.
<Erlkoenig> mistym: not your fault, if the library is that screwed...
<mistym> It's true!
<mistym> So convenience wrapper method's probably the short-term way to go, yeah.
<anannie> drbrain: Do you know any resources where I can read up about such data structures? A book or anything? I've tried searching and I couldn't find a good resource
<Erlkoenig> couldn't you modify the library code?
<mistym> Long-term: ask the author for a function to shut up stderr.
<erikh> how far are you into the FFI version?
<mistym> Pretty far.
<erikh> this would be pretty easy to do as a normal extension
<mistym> Basically done the first revision, hoenstly. I ran into this when I was writing some tests that deliberately did stuff to induce exceptions in the C library.
<anannie> drbrain: Hrm the list doesn't have this class..
<anannie> drbrain: Except for reflexive which are similar if you don't allow a set to contain a subset
<drbrain> anannie: which class?
diegoviola has quit [Ping timeout: 272 seconds]
<anannie> drbrain: a data structure which is "non recursive non associative"
<erikh> an array.
ivanoats has quit [Remote host closed the connection]
<drbrain> http://c2.com/cgi/wiki/wiki?LinkedList fits that definition
<anannie> erikh: An array is associative as it has an index associated with it...
<erikh> bah, that's why the almighty ritchie made pointer arithmetic
<anannie> drbrain: I'm guessing that the end result is something like a set which is not allowed to contain subsets and doesn't have an associated index or a key->value pair
wpaulson has joined #ruby-lang
<deryl> then a linked list would also be associative would it not since it knows about the existance of the previous and next link in the list?
<anannie> deryl: Yes if you strictly look at it that way. I don't think it's possible to make a useful non associative data structure. It has to have some associations to let you find the data
<mistym> I think I see what's going on here. An exception is being thrown at the C++ level, and it looks like the defined catch is to announce it on stderr with no C-level way of changing that.
<drbrain> I think "associative" means "some kind of index"
<drbrain> a linked list item doesn't have such an association
<anannie> drbrain: but a key value pair is considered associative as well and arguably in a linked list you have a key that points to the next value.
<deryl> anannie: hmm then even a variable is associative since the var name is associated with the memory location that holds the actual value, under that logic, would it not? (asking not telling)
<deryl> might be a tangental question there
<drbrain> even a cell would be associative by this definition
<anannie> deryl: Yup. This is a pointless exercise I guess and is the computing equivalent of something that violates the second law of thermodynamics
sora_h is now known as s0ra_h
<drbrain> anannie: I think "associative" should mean "contains some kind of reference for easy lookup"
<deryl> hehe, took me a second to grok that reference :)
havenn has quit [Remote host closed the connection]
<deryl> i'm slow today
goshakkk has quit [Quit: Computer has gone to sleep.]
<drbrain> an Array can fit that definition (through the index) but a linked-list or tree cannot
<anannie> All data is associative at some level at the hardware, you just can't have a non associative data set.
<anannie> drbrain: That makes much more sense.
goshakkk has joined #ruby-lang
<drbrain> since you don't know if the next pointer of a linked list or the leaves of a tree will have the item you're looking for without looking at the following item
m3nd3s has quit [Read error: Connection timed out]
<erikh> but that doesn't satisfy the recursion requirement, though.
<anannie> drbrain: But how could you practically use such a thing?
<erikh> linked lists?
<anannie> erikh: The only thing that fits is a linked list, and I'm quite sure that the author isn't talking about linked lists. I don't know, it's confusing what the person has done and they haven't even written down too many details. Seems to be a bit on the fraudulent side to me.
<burgestrand> mistym: attach them to another object and delegate all method calls to it. That allows you to wrap the call with your silencing code.
macmartine has joined #ruby-lang
<erikh> anannie: head -> next = head
<burgestrand> mistym: either that, or redefine attach_function to define the wrapper method directly after defining the real method
tbuehlmann has joined #ruby-lang
<anannie> thanks for your help :)
<deryl> interesting question to say the least
m3nd3s has joined #ruby-lang
isale-eko has joined #ruby-lang
yankov has quit [Quit: yankov]
<burgestrand> mistym: could do something like this: http://pastie.org/4582262
<burgestrand> Oups. define_singleton_method, not define_method. Also depends on if you use the instance methods or not of your module.
bryancp has quit [Remote host closed the connection]
t11621 has quit [Remote host closed the connection]
t67629 has joined #ruby-lang
Mellett68 has joined #ruby-lang
_soupnazi has quit [Ping timeout: 245 seconds]
<savage-> burgestrand: that's what I love about ruby.
elux has quit [Quit: Leaving...]
<savage-> burgestrand: in that pastie, you really have to grok ruby's method lookup path as it relates to singleton classes to see how that works.
<burgestrand> savage-: for many things you can just fix it™ (:
yankov has joined #ruby-lang
<savage-> burgestrand: (the fact that the singleton class's superclass of a class is the superclass's singleton class) :-)
<savage-> or in the case of a module, the module's singleton class' superclass is the next ancestor up from the module.
<savage-> sorry, the superclass of the next ancestor up from the module.
<burgestrand> I wouldn’t know, it just feels like it should work this way :p
adambeynon has joined #ruby-lang
<savage-> burgestrand: actually I'm wrong about that last bit. Sorry.
redgetan has joined #ruby-lang
_soupnazi has joined #ruby-lang
reactormonk has quit [Ping timeout: 276 seconds]
r0bby is now known as robbyoconnor
lun_ has joined #ruby-lang
m3nd3s has quit [Read error: Connection timed out]
cantonic has joined #ruby-lang
lun__ has joined #ruby-lang
m3nd3s has joined #ruby-lang
diegoviola has joined #ruby-lang
t67629 has quit [Remote host closed the connection]
t56865 has joined #ruby-lang
alex_kir_ has quit [Remote host closed the connection]
lun_ has quit [Ping timeout: 276 seconds]
elux has joined #ruby-lang
cjs226 has quit []
reactormonk has joined #ruby-lang
diegoviola has quit [Quit: leaving]
jensn has left #ruby-lang [#ruby-lang]
r0bby has joined #ruby-lang
abstr4ct has joined #ruby-lang
<abstr4ct> Looking for a way to have nokogiri get all the elements until it sees a pattern.
robbyoconnor has quit [Ping timeout: 245 seconds]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
s0ra_h is now known as sora_h
publicvoid_ has quit [Ping timeout: 240 seconds]
Guedes is now known as Guedes_out
alex_kira has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
redgetan has quit [Quit: This computer has gone to sleep]
<drbrain> abstr4ct: SAX?
r0bby has quit [Ping timeout: 240 seconds]
t56865 has quit [Remote host closed the connection]
postmodern has joined #ruby-lang
t95286 has joined #ruby-lang
<mistym> burgestrand: Thanks! </late>
Nisstyre has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
publicvoid_ has joined #ruby-lang
<abstr4ct> i have this path '//*[text()="Monday"]/following::p' but that get the value of p tag, but i have many p tags until i reach a span tag... so i want to find the string "monday" then get all the values of all the <p> tags that come after, until i reach a span tag
<abstr4ct> im looking to have a start here, get all of these and stop here logic
<drbrain> abstr4ct: sounds like you want SAX
<abstr4ct> but i am missing something so nothing is working
<abstr4ct> im using nokogiri
<drbrain> abstr4ct: nokogiri supports SAX
<abstr4ct> how does one use this SAX
redgetan has joined #ruby-lang
reactormonk has quit [Ping timeout: 276 seconds]
sora_h is now known as s0ra_h
robbyoconnor has joined #ruby-lang
gsav has joined #ruby-lang
jensn has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
jensn has quit [Client Quit]
Tearan has joined #ruby-lang
eam has joined #ruby-lang
<eam> Is Thread.list.length == 1 the best way to tell if any other threads have been created?
bytephilia has joined #ruby-lang
chimkan has quit [Quit: chimkan]
t95286 has quit [Remote host closed the connection]
t51097 has joined #ruby-lang
Tearan has left #ruby-lang [#ruby-lang]
_soupnazi has quit [Ping timeout: 245 seconds]
wpaulson has joined #ruby-lang
workmad3 has joined #ruby-lang
<drbrain> eam: yes, according to `ri Thread.list`
chimkan_ has joined #ruby-lang
elux has quit [Quit: Bye!]
isale-eko has quit [Quit: ChatZilla 0.9.88.2 [Firefox 12.0/20120420145725]]
rippa has quit [Ping timeout: 264 seconds]
redgetan has quit [Quit: This computer has gone to sleep]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<mistym> burgestrand: Don't suppose you'd have an idea why this isn't shutting it up? http://pastie.org/4582653
alex_kira has quit [Remote host closed the connection]
<matti> Shut what up?
<mistym> stderr from the C library I'm wrapping.
t51097 has quit [Remote host closed the connection]
t79464 has joined #ruby-lang
<drbrain> mistym: try STDERR
<drbrain> mistym: I don't think it'll make a difference, though
<matti> It won't
<drbrain> matti: yeah, due to the reopen
chessguy has joined #ruby-lang
<matti> Indeed.
richardjortega has left #ruby-lang [#ruby-lang]
apeiros_ has quit [Remote host closed the connection]
<matti> :)
<mistym> Hm, so what would the right way be?
<drbrain> mistym: are you sure it's dumping to stderr and not stdout? or an internally cloned stderr?
tbuehlmann has quit [Remote host closed the connection]
tgriffin2081 has joined #ruby-lang
<mistym> drbrain: It's a C/C++ library, which is writing to stderr via fprintf()
<drbrain> huh
s0ra_h is now known as sora_h
<mistym> I'm attaching to it via ffi, which as far as I know doesn't affect it?
JustinCampbell has quit [Read error: Connection reset by peer]
<drbrain> shouldn't
wpaulson has joined #ruby-lang
richardjortega has joined #ruby-lang
Dreamer3 has quit [Ping timeout: 264 seconds]
gsav has quit [Ping timeout: 240 seconds]
Dreamer3 has joined #ruby-lang
<Defusal> the Sequel API changed didn't it...
<erikh> mistym: strace should sort that out in seconds
<Defusal> suddenly i notice when using my code from a few months ago that it doesn't work, at all
<Defusal> methods like #query that existed at the time are simply gone
zommi has quit [Remote host closed the connection]
<Defusal> now i have to learn the new api and rewrite all that code :/
<erikh> mistym: if it helps, strace/dtruss the program exhibiting the problem and check the fd's the write() calls use when emitting the message
<erikh> if it's 2, you should be golden
woollyams has joined #ruby-lang
jackhammer2022 has joined #ruby-lang
alex_kira has joined #ruby-lang
nibbo has quit [Quit: Lost terminal]
t79464 has quit [Remote host closed the connection]
t71570 has joined #ruby-lang
anannie has quit [Remote host closed the connection]
woollyams has quit [Quit: Computer has gone to sleep.]
gsav has joined #ruby-lang
totallymike has quit [Quit: WeeChat 0.3.7]
<mistym> Aha. It *is* 2. And if I just do IO.new(2).reopen("/dev/null"), it works fine. So I guess my wrapper and/or shutup! method isn't doing its jpb.
sora_h is now known as s0ra_h
<mistym> Yeah. So the problem wasn't actually that it's not stderr, but that my attach_function wrapper wasn't being used properly! Hm.
<drbrain> heh
<drbrain> I hate that
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<mistym> Got it. I feel kinda silly now.
runeb has quit [Remote host closed the connection]
<mistym> http://pastie.org/4582815 - look sane enough? Or is reopening 2 to STDERR not a good idea?
<drbrain> mistym: seems fine to me
t4nkd has quit [Quit: Linkinus - http://linkinus.com]
naz has joined #ruby-lang
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<mistym> Is this possibly thread-unsafe? Another thread might theoretically be using 2 while a C function is doing something.
<drbrain> mistym: you'd have to dig through man pages to find out
<mistym> I also guess redirecting to "/dev/null" isn't terribly friendly for Windows folks.
ricardovaleriano has quit [Remote host closed the connection]
chimkan_ has left #ruby-lang [#ruby-lang]
Guest82894 has quit [Quit: Connection closed for inactivity]
<drbrain> I forget when IO::NUL appeared
<drbrain> after 1.8
<mistym> Oh, sweet. I didn't even know that existed!
cantonic has quit [Quit: cantonic]
m3nd3s has quit [Remote host closed the connection]
<mistym> Hm. Not in 1.8.6 (Windows). Will have to try 1.8.7.
<mistym> Ah, 1.8.7. I have no intention of supporting 1.8.6, and maybe not even 1.8.7. So that's fine!
cjs226 has joined #ruby-lang
gregmore_ has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
wpaulson has joined #ruby-lang
<erikh> drbrain: IO::NUL is what I think it is?
<erikh> I've always worked around that for cross-platform stuff
<erikh> I probably have luis to thank for this fine addition
cjs226 has quit []
<mistym> I didn't check, I wonder what IO::NULL is on Windows. "/dev/null" on *nix.
<eam> NUL
yxhuvud has quit [Ping timeout: 248 seconds]
Mellett68 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<erikh> eam: ohai
<eam> o sup
<erikh> nice to see you in here
havenn has joined #ruby-lang
<eam> I need to do more and more ruby stuff
<erikh> this is a pretty clueful place.
<mistym> #ruby-lang is the place to do ruby stuff
dfr|mac has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
<drbrain> mistym: on Windows it's "NUL"
<mistym> drbrain eam: Thanks
<drbrain> mistym: to be evil, you could set it to "PRN"
<eam> heh
<erikh> hehehehhe
goshakkk has quit [Quit: Computer has gone to sleep.]
bosent has joined #ruby-lang
bosent has left #ruby-lang [#ruby-lang]
t71570 has quit [Remote host closed the connection]
t65735 has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<eam> is there a better way to structure this platform conditional? https://gist.github.com/3456311
<drbrain> eam: I have a hard time believing set*id functions on FreeBSD do not have reliable behavior
<eam> drbrain: unreliable as in, there is no conformat spec in POSIX
<eam> and I haven't gotten my hands on a freebsd box yet to add support
<eam> every system is a snowflake
<erikh> heh
<erikh> shit, laundry
<erikh> anyhow, I have an idea and give me 10 minutes and I'll communicate it to you
<eam> sweet
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
deryl has quit [Quit: deryl]
<eam> drbrain: there's way more detail on that here btw http://static.usenix.org/events/sec02/full_papers/chen/chen.pdf
s0ra_h is now known as sora_h
<drbrain> eam: graphs and everything!
<eam> drbrain: :)
<eam> I found inaccuracies in that paper as well, but it may be due to its age
woollyams has joined #ruby-lang
totallymike has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
gmci has quit [Ping timeout: 260 seconds]
petercooper has joined #ruby-lang
t65735 has quit [Remote host closed the connection]
t48890 has joined #ruby-lang
workmad3 has quit [Ping timeout: 245 seconds]
sora_h is now known as s0ra_h
<erikh> eam: needs some refinement, but this is the idea: https://gist.github.com/974dc9c5724194fd0b4d
aef has quit [Remote host closed the connection]
aef has joined #ruby-lang
solars has quit [Ping timeout: 260 seconds]
havenn has quit [Remote host closed the connection]
gmci has joined #ruby-lang
codewrangler has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
outoftime has quit [Quit: Leaving]
codewrangler has joined #ruby-lang
havenn has joined #ruby-lang
eydaimon has joined #ruby-lang
eydaimon has quit [Changing host]
eydaimon has joined #ruby-lang
khoa has joined #ruby-lang
khoa has quit [Client Quit]
tgriffin2081 has quit [Ping timeout: 260 seconds]
ezkl has joined #ruby-lang
g0bl1n has quit [Quit: g0bl1n]
<eam> erikh: rad, I will apply those ideas thanks :)
toretore has joined #ruby-lang
benanne has quit [Quit: kbai]
vlad_starkov has quit [Remote host closed the connection]
fgomez has joined #ruby-lang
havenn_ has joined #ruby-lang
totallymike has quit [Quit: WeeChat 0.3.7]
<erikh> eam: the important concept to take away from it is the lookup table that points at executable code, and the start-time evaluation of said lookup tables
t48890 has quit [Remote host closed the connection]
t59063 has joined #ruby-lang
havenn_ has quit [Read error: Connection reset by peer]
havenn_ has joined #ruby-lang
havenn has quit [Remote host closed the connection]
richardjortega has quit [Quit: richardjortega]
kvirani has joined #ruby-lang
<eam> erikh: yeah I know how I'd do this in perl, but I don't quite know ruby syntax yet. lambda {} = sub {} is important :)
s0ra_h is now known as sora_h
<erikh> yeah, there's also proc { }, which is similar to lambda { } but without parameter validation
seanstickle has joined #ruby-lang
Dwarf has quit [Quit: Leaving]
t59063 has quit [Remote host closed the connection]
t75876 has joined #ruby-lang
Dwarf has joined #ruby-lang
Dwarf has quit [Changing host]
Dwarf has joined #ruby-lang
flebel has quit [Ping timeout: 268 seconds]
flebel has joined #ruby-lang
havenn_ has quit [Remote host closed the connection]
sora_h is now known as s0ra_h
<abstr4ct> I want to grab everything below monday on this page http://ruckuspizza.com/raleigh-nc/specials i am using the xpath '//*[text()="Monday"]/following::p1]' but it gets tuesday and wednesday and so forth.. any ideas?
<abstr4ct> i am using nokogiri
fgomez has quit [Quit: Lost terminal]
bytephilia has quit [Quit: Computer has gone to sleep.]
<drbrain> abstr4ct: use SAX?
<abstr4ct> still not able to work that out
<abstr4ct> but i do think that is the best strategy
<drbrain> abstr4ct: what did you try?
<abstr4ct> so far i have just been reading/thinking... dont know enough yet to make it work
<abstr4ct> but it seems to be exactly what i need
Dwarf has quit [Quit: Leaving]
Dwarf has joined #ruby-lang
Dwarf has quit [Changing host]
Dwarf has joined #ruby-lang
BigFatFatty has left #ruby-lang [#ruby-lang]
eydaimon has quit [Ping timeout: 246 seconds]
gsav has quit [Ping timeout: 260 seconds]
gsav has joined #ruby-lang
toretore has quit [Quit: This computer has gone to sleep]