imperator changed the topic of #ruby-lang to: Ruby 1.9.3-p362: http://ruby-lang.org (ruby-2.0.0-preview2) || Paste >3 lines of text on http://gist.github.com
srbaker has quit [Quit: Computer has gone to sleep.]
sulo has joined #ruby-lang
imperator has joined #ruby-lang
sulo has quit [Ping timeout: 245 seconds]
jost has quit [Quit: jost]
sn0wb1rd has joined #ruby-lang
blahwoop has quit [Ping timeout: 260 seconds]
srbaker has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
Oloryn_lt2 has quit [Quit: Leaving.]
nignaztic has quit [Quit: plz die k thx]
lordnaz has quit [Quit: Lost terminal]
nazty has quit [Remote host closed the connection]
Guedes has joined #ruby-lang
cout has quit [Ping timeout: 255 seconds]
cout has joined #ruby-lang
rking has quit [Ping timeout: 264 seconds]
tpope has quit [Read error: Connection reset by peer]
tpope has joined #ruby-lang
solars has quit [Ping timeout: 255 seconds]
briantrust has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
swav has joined #ruby-lang
rking has joined #ruby-lang
chendo_ has quit [Read error: Connection reset by peer]
swav has quit [Remote host closed the connection]
irb has quit [Quit: irb]
m3nd3s has joined #ruby-lang
dous has quit [Ping timeout: 248 seconds]
dous has joined #ruby-lang
jonahR has quit [Quit: jonahR]
ryanf_ has joined #ruby-lang
JoelMcCracken has joined #ruby-lang
nazty has joined #ruby-lang
havenn has quit [Ping timeout: 252 seconds]
m3nd3s has quit [Remote host closed the connection]
jondot` has quit [Ping timeout: 255 seconds]
wyhaines has quit [Remote host closed the connection]
ryanf_ has quit [Quit: broken pipes |||]
jbsan_ has joined #ruby-lang
blazes816 has quit [Quit: blazes816]
jbsan has quit [Ping timeout: 250 seconds]
jbsan_ is now known as jbsan
dous has quit [Remote host closed the connection]
leopard_me has quit [Quit: Computer has gone to sleep.]
blahwoop has joined #ruby-lang
swav has joined #ruby-lang
swav has quit [Remote host closed the connection]
nazty has quit [Quit: Leaving]
agile has quit [Remote host closed the connection]
dankest has quit [Quit: Leaving...]
agile has joined #ruby-lang
nazty has joined #ruby-lang
wallerdev has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby-lang
havenn has joined #ruby-lang
JoelMcCracken has quit [Ping timeout: 248 seconds]
__butch__ has quit [Quit: Leaving.]
tdy has quit [Ping timeout: 248 seconds]
Axsuul has joined #ruby-lang
retro|cz has joined #ruby-lang
nertzy3 has quit [Ping timeout: 252 seconds]
yankeefan04 has joined #ruby-lang
tdy has joined #ruby-lang
JoelMcCracken has joined #ruby-lang
marr has quit [Ping timeout: 255 seconds]
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
kentos has quit [Ping timeout: 245 seconds]
benanne has quit [Quit: kbai]
kentos has joined #ruby-lang
<zenspider> can someone explain if this is a bug or a "feature"? http://p.zenspider.com/trunk_bug.rb.html
<zenspider> I keep getting bit by method_missing in ruby2
mercwithamouth has joined #ruby-lang
<havenn> zenspider: Getting a 403 Forbidden
<zenspider> damnit
yankeefan04 has quit [Remote host closed the connection]
kentos has quit [Ping timeout: 248 seconds]
<zenspider> fuck I hate apache
<zenspider> the ".rb" means it tried to execute it
<zenspider> in the middle of the file
<Rarrikins> Hmm...#marshal_dump probably offers a class the opportunity to output a programmer-defined format or something.
<zenspider> yup
<zenspider> but why do I need to define a useless respond_to? to make it work?
<zenspider> bbiab
matip_ has joined #ruby-lang
reppard has quit [Ping timeout: 252 seconds]
xalei has joined #ruby-lang
lcdhoffman has joined #ruby-lang
matip__ has quit [Ping timeout: 265 seconds]
CapnKernul has joined #ruby-lang
sepp2k has quit [Remote host closed the connection]
<zenspider> b
cirwin has quit [Quit: sleep...ping!]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
CapnKernul has quit [Quit: Leaving...]
kevin has joined #ruby-lang
havenn has quit [Ping timeout: 265 seconds]
lynnux has joined #ruby-lang
* fowl yawns extra-loud
kevin has quit [Remote host closed the connection]
flip_digits has joined #ruby-lang
lynnux has quit [Quit: leaving]
JoelMcCracken has quit [Ping timeout: 248 seconds]
diogofriggo has joined #ruby-lang
flip_digits has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
diogofriggo has left #ruby-lang [#ruby-lang]
spuk has joined #ruby-lang
spuk has quit [Client Quit]
madish has quit [Remote host closed the connection]
stonerfish has quit [Quit: Leaving.]
stonerfish has joined #ruby-lang
srbaker has joined #ruby-lang
swav has joined #ruby-lang
lynnux has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
lynnux has left #ruby-lang [#ruby-lang]
lynnux has joined #ruby-lang
postmodern has joined #ruby-lang
GarethAdams has quit [Quit: Leaving...]
Aria has joined #ruby-lang
Rarrikins has quit [Changing host]
Rarrikins has joined #ruby-lang
reppard has joined #ruby-lang
davidbalbert is now known as davidbalber|away
mercwithamouth has quit [Ping timeout: 244 seconds]
srbaker has joined #ruby-lang
CapnKernul has joined #ruby-lang
mercwithamouth has joined #ruby-lang
gix has quit [Ping timeout: 265 seconds]
felipe_Brz has joined #ruby-lang
<felipe_Brz> could someone tell me why I get this error message when trying to run this file as root (sudo) ? http://pastie.org/5591712
gsj has joined #ruby-lang
gsj has quit [Excess Flood]
<fowl> felipe_Brz: the error means it cannot find unicode.(rb|so) on $LOAD_PATH
<Rarrikins> felipe_Brz: You're requiring unicode, and it can't find that.
elico has joined #ruby-lang
<felipe_Brz> yes but I only get that error msg when trying to run it as root (sudo onlinux)
gsj has joined #ruby-lang
<felipe_Brz> when I run it as my normal user I have no problems
gsj has quit [Max SendQ exceeded]
gsj has joined #ruby-lang
gsj has quit [Max SendQ exceeded]
gsj has joined #ruby-lang
gsj has quit [Max SendQ exceeded]
davidbalber|away is now known as davidbalbert
davidbalbert is now known as davidbalber|away
methods1 has joined #ruby-lang
methods1 has left #ruby-lang [#ruby-lang]
GarethAdams has joined #ruby-lang
reppard has quit [Ping timeout: 265 seconds]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
jtoy has joined #ruby-lang
voker57 has joined #ruby-lang
felipe_Brz has quit [Quit: ChatZilla 0.9.89 [Firefox 17.0.1/20121129162756]]
gaveen has joined #ruby-lang
gaveen has quit [Changing host]
gaveen has joined #ruby-lang
MrWibbles has joined #ruby-lang
<MrWibbles> is there anyway i can patch hash in 1.8.7 to preserve order
<Aria> Hashes don't preserve order.
<MrWibbles> yes they do
<Aria> You need an entirely different data structure to do so.
<MrWibbles> in 1.9
<MrWibbles> they don't in 1.8
<Aria> Those aren't actually hashes ;-)
<MrWibbles> yes but by context
<MrWibbles> i'm sure you can realise i'm talking about ruby's Hash class and not some generic computing concept
<MrWibbles> :)
GarethAdams has quit [Quit: Leaving...]
<MrWibbles> not having ordering is so annoying
<Aria> Kinda. But ... what I said stands. It means reworking the underlying datastructure almost entirely.
<MrWibbles> yeah.. but they've fixed it in 1.8
<MrWibbles> 1.9*
<Aria> Yeah, they reworked the underlying datastructures ;-)
<MrWibbles> much nicer
<aedorn> MrWibbles: ActiveSupport has an OrderedHash class
<Aria> What order would you want them in? Insertion or key?
<MrWibbles> aedorn: anyway of monkey patching that into hash?
<Aria> Why patch?
<Aria> Why not just use the other class?
<aedorn> it inherits from Hash already
seanstickle has quit [Quit: seanstickle]
<MrWibbles> hmm.. i'd have to go swap out all the code
<MrWibbles> i suppose i could
<Aria> It's not that hard. Also, if you've namespaced your code well, just YourModule::Hash = OrderedHash
<MrWibbles> ohhh
<MrWibbles> yes i like that idea
<MrWibbles> awesome
<MrWibbles> :D
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
MrWibbles has quit [Read error: Connection reset by peer]
mistym has quit [Remote host closed the connection]
<mercwithamouth> can someone tell me how to access @data http://pastie.org/5591894
ivanoats has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
Rarrikins_r has joined #ruby-lang
Rarrikins has quit [Ping timeout: 265 seconds]
swav has quit [Remote host closed the connection]
blahwoop has quit [Ping timeout: 264 seconds]
jhn has joined #ruby-lang
srbaker has joined #ruby-lang
gnufied1 has joined #ruby-lang
<reactormonk> mercwithamouth, a) try x.data b) x.instance_variable_get(:@data)
ivanoats has quit [Ping timeout: 265 seconds]
jtoy has quit [Quit: jtoy]
jonahR has joined #ruby-lang
unlikely_monkey has quit [Remote host closed the connection]
davidbalber|away is now known as davidbalbert
linc01n has joined #ruby-lang
davidbalbert is now known as davidbalber|away
eydaimon has left #ruby-lang ["WeeChat 0.3.9"]
vlad_starkov has joined #ruby-lang
davidbalber|away is now known as davidbalbert
vlad_starkov has quit [Ping timeout: 248 seconds]
jhn has quit [Ping timeout: 245 seconds]
davidbalbert is now known as davidbalber|away
Aria has quit [Remote host closed the connection]
gaveen has quit [Ping timeout: 245 seconds]
xyzodiac has joined #ruby-lang
charliesome has joined #ruby-lang
briantrust has quit [Remote host closed the connection]
gaveen has joined #ruby-lang
gaveen has quit [Changing host]
gaveen has joined #ruby-lang
s0ber has quit [Read error: Connection reset by peer]
s0ber_ has joined #ruby-lang
s0ber_ is now known as s0ber
SkyEye has joined #ruby-lang
gaveen has quit [Ping timeout: 252 seconds]
srbaker has quit [Quit: Computer has gone to sleep.]
gaveen_ has joined #ruby-lang
gaveen_ has joined #ruby-lang
gaveen_ has quit [Changing host]
yeltzooo has quit [Ping timeout: 246 seconds]
SkyEye has quit [Ping timeout: 260 seconds]
srbaker has joined #ruby-lang
yeltzooo has joined #ruby-lang
io_syl has quit [Quit: Computer has gone to sleep.]
xyzodiac has quit [Quit: Computer has gone to sleep.]
io_syl has joined #ruby-lang
brixen has quit [Ping timeout: 246 seconds]
Nisstyre-laptop has joined #ruby-lang
tdy has quit [Quit: WeeChat 0.3.9.2]
brixen has joined #ruby-lang
SkyEye has joined #ruby-lang
lynnux has quit [Quit: leaving]
gaveen_ has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby-lang
SkyEye has quit [Ping timeout: 255 seconds]
larrylv has joined #ruby-lang
larrylv has quit [Remote host closed the connection]
elight has joined #ruby-lang
rippa has joined #ruby-lang
lempface has quit [Ping timeout: 245 seconds]
msch has quit [Ping timeout: 246 seconds]
larrylv has joined #ruby-lang
larrylv has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
elico has quit [Quit: Elico]
CapnKernul has quit [Quit: Leaving...]
mercwithamouth has quit [Ping timeout: 255 seconds]
megharsh has quit [Quit: WeeChat 0.3.9.2]
Axsuul has quit [Ping timeout: 252 seconds]
apeiros_ has quit [Remote host closed the connection]
mercwithamouth has joined #ruby-lang
ddfreyne has quit [Excess Flood]
ddfreyne has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
setmeaway has quit [Ping timeout: 252 seconds]
soahccc has quit [Ping timeout: 246 seconds]
gnufied1 has quit [Quit: Leaving.]
achiu has quit [Ping timeout: 246 seconds]
achiu has joined #ruby-lang
vlad_starkov has joined #ruby-lang
gsav has joined #ruby-lang
setmeaway has joined #ruby-lang
larrylv has joined #ruby-lang
rue has quit [Remote host closed the connection]
rue has joined #ruby-lang
larrylv has quit [Ping timeout: 248 seconds]
Rarrikins_r has quit [Ping timeout: 264 seconds]
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
elight has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 248 seconds]
chendo_ has joined #ruby-lang
xalei has quit [Remote host closed the connection]
stonerfish has quit [Ping timeout: 276 seconds]
CapnKernul has joined #ruby-lang
tdy has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
vlad_sta_ has quit [Remote host closed the connection]
gnufied has joined #ruby-lang
chendo_ has quit [Quit: Computer has gone to sleep.]
solars has joined #ruby-lang
ebouchut has joined #ruby-lang
chrismcg is now known as zz_chrismcg
msch has joined #ruby-lang
tenderlove has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
lynnux has joined #ruby-lang
tenderlove has quit [Ping timeout: 244 seconds]
sush24 has joined #ruby-lang
francisfish has joined #ruby-lang
heftig has quit [Quit: leaving]
zmack has joined #ruby-lang
marr has joined #ruby-lang
ebouchut has quit [Quit: This computer has gone to sleep]
Spaceghostc2c has quit [Excess Flood]
retro|cz has quit [Ping timeout: 244 seconds]
Spaceghostc2c has joined #ruby-lang
lynnux has quit [Quit: Leaving]
havenn has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 248 seconds]
sulo has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
havenn has quit [Ping timeout: 252 seconds]
tenderlove has joined #ruby-lang
sulo has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
adambeynon has joined #ruby-lang
david_ has joined #ruby-lang
david_ has left #ruby-lang [#ruby-lang]
<injekt> blah
marr has quit []
Rarrikins_r has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
futurama has joined #ruby-lang
Rarrikins_r has quit [Ping timeout: 265 seconds]
jondot` has joined #ruby-lang
CapnKernul has quit [Quit: Leaving...]
richardjortega has left #ruby-lang [#ruby-lang]
Rarrikins_r has joined #ruby-lang
gix has joined #ruby-lang
blacktulip has joined #ruby-lang
blacktulip has quit [Remote host closed the connection]
blacktulip has joined #ruby-lang
Nisstyre-laptop has quit [Ping timeout: 264 seconds]
<gnufied> bleh
cirwin has joined #ruby-lang
blahwoop has joined #ruby-lang
ebouchut has joined #ruby-lang
cyri_ has joined #ruby-lang
emocakes has joined #ruby-lang
marr has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
sulo has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
heftig has joined #ruby-lang
sulo has quit [Ping timeout: 250 seconds]
MaddinXx has joined #ruby-lang
blahwoop has quit [Ping timeout: 246 seconds]
Raven_ has joined #ruby-lang
leopard_me has joined #ruby-lang
Raven_ has quit [Client Quit]
sepp2k has joined #ruby-lang
zmack has quit [Remote host closed the connection]
cyri_ has quit [Quit: cyri_]
ebouchut has quit [Quit: This computer has gone to sleep]
futurama has quit [Quit: ChatZilla 0.9.89 [Firefox 17.0.1/20121129162756]]
leopard_me has quit [Quit: Computer has gone to sleep.]
leopard_me has joined #ruby-lang
cyri_ has joined #ruby-lang
havenn has joined #ruby-lang
leopard_me has quit [Quit: Computer has gone to sleep.]
ebouchut has joined #ruby-lang
havenn has quit [Ping timeout: 250 seconds]
madish has joined #ruby-lang
francisfish has joined #ruby-lang
Guedes has quit [Ping timeout: 265 seconds]
Guedes has joined #ruby-lang
leopard_me has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
<imperator> blurgh
vlad_starkov has quit [Remote host closed the connection]
benanne has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
sush24 has joined #ruby-lang
jxie has quit [Quit: leaving]
ebouchut has quit [Quit: This computer has gone to sleep]
gnufied has quit [Quit: Leaving.]
reppard has joined #ruby-lang
tjadc_ has joined #ruby-lang
tjadc has quit [Ping timeout: 264 seconds]
benanne has quit [Quit: kbai]
postmodern has quit [Quit: Leaving]
GarethAdams has joined #ruby-lang
kennyvb has quit [Ping timeout: 252 seconds]
unlikely_monkey has joined #ruby-lang
jonahR has quit [Quit: jonahR]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
kennyvb has joined #ruby-lang
cyri_ has quit [Quit: cyri_]
gnufied1 has joined #ruby-lang
unlikely_monkey has quit [Remote host closed the connection]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
spinagon has joined #ruby-lang
rippa has quit [Read error: Connection reset by peer]
retro|cz has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
krz has joined #ruby-lang
leopard_me has quit [Quit: Computer has gone to sleep.]
spinagon has quit [Ping timeout: 240 seconds]
s1n4 has joined #ruby-lang
seanstickle has joined #ruby-lang
s1n4 has quit [Quit: leaving]
lcdhoffman has joined #ruby-lang
Rarrikins_r has quit [Ping timeout: 255 seconds]
havenn has joined #ruby-lang
chendo_ has joined #ruby-lang
havenn has quit [Ping timeout: 248 seconds]
stardiviner has quit [Ping timeout: 256 seconds]
sush24 has quit [Quit: This computer has gone to sleep]
stardiviner has joined #ruby-lang
matip_ has quit [Read error: Connection reset by peer]
matip_ has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
Weems has quit []
srbaker has joined #ruby-lang
srbaker has quit [Client Quit]
kurko_ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
sush24 has joined #ruby-lang
mercwithamouth has joined #ruby-lang
zmack has joined #ruby-lang
davidbalber|away is now known as davidbalbert
[dmp] has quit [Remote host closed the connection]
reppard has quit [Ping timeout: 244 seconds]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
LineByLine has joined #ruby-lang
reppard has joined #ruby-lang
scottschecter has quit [Quit: WeeChat 0.3.9.2]
jxie has joined #ruby-lang
gnufied1 has quit [Quit: Leaving.]
m3nd3s has joined #ruby-lang
larrylv has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
LineByLine has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
arooni-mobile has joined #ruby-lang
reppard has quit [Ping timeout: 248 seconds]
thone has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
thone_ has quit [Ping timeout: 250 seconds]
larrylv has quit [Remote host closed the connection]
larrylv has joined #ruby-lang
chendo_ has quit [Quit: Computer has gone to sleep.]
larrylv has quit [Ping timeout: 248 seconds]
reppard has joined #ruby-lang
zmack_ has joined #ruby-lang
sailias has joined #ruby-lang
zmack has quit [Ping timeout: 244 seconds]
sailias has quit [Client Quit]
sailias has joined #ruby-lang
zmack has joined #ruby-lang
davidbalbert is now known as davidbalber|away
zmack_ has quit [Ping timeout: 244 seconds]
sush24 has joined #ruby-lang
reppard has quit [Ping timeout: 244 seconds]
MaddinXx has quit [Remote host closed the connection]
MaddinXx has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
AndChat| has joined #ruby-lang
cultureulterior_ has quit [Client Quit]
Banistergalaxy has quit [Ping timeout: 248 seconds]
nettsundere has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
havenn has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
tockitj has quit [Remote host closed the connection]
jbsan_ has joined #ruby-lang
jbsan has quit [Ping timeout: 264 seconds]
jbsan_ is now known as jbsan
scottschecter has joined #ruby-lang
xyzodiac has joined #ruby-lang
ronaldo__ has joined #ruby-lang
srbaker has joined #ruby-lang
reppard has joined #ruby-lang
ronaldo__ has quit [Client Quit]
ronaldo__ has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
reppard has quit [Ping timeout: 248 seconds]
ronaldo__ has left #ruby-lang [#ruby-lang]
ronaldo__ has joined #ruby-lang
ronaldo__ has quit [Remote host closed the connection]
zmack_ has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 252 seconds]
davidbalber|away is now known as davidbalbert
zmack has quit [Ping timeout: 248 seconds]
kivi has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
kivi has quit [Ping timeout: 255 seconds]
GarethAdams has quit [Ping timeout: 264 seconds]
krz has quit [Quit: krz]
kurko_ has joined #ruby-lang
<dominikh> whitequark: thanks again for SSE :)
Rarrikins has joined #ruby-lang
mistym has joined #ruby-lang
kivi has joined #ruby-lang
zmack_ has quit [Remote host closed the connection]
zmack has joined #ruby-lang
kivi has quit [Ping timeout: 252 seconds]
tjadc_ has quit [Ping timeout: 255 seconds]
vlad_starkov has quit [Remote host closed the connection]
agile has left #ruby-lang ["Ex-Chat"]
reppard has joined #ruby-lang
zmack has quit [Remote host closed the connection]
kivi has joined #ruby-lang
reppard has quit [Read error: Operation timed out]
breakingthings has joined #ruby-lang
glebm has joined #ruby-lang
zmack has joined #ruby-lang
sush24 has quit [Ping timeout: 250 seconds]
srbaker has joined #ruby-lang
kivi has quit [Ping timeout: 244 seconds]
leopard_me has joined #ruby-lang
LineByLine has joined #ruby-lang
tbuehlmann has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 248 seconds]
xyzodiac has quit [Quit: Computer has gone to sleep.]
LineByLine has quit [Client Quit]
arooni-mobile has joined #ruby-lang
JoelMcCracken has joined #ruby-lang
xyzodiac has joined #ruby-lang
zmack has quit [Ping timeout: 265 seconds]
zmack has joined #ruby-lang
reppard has joined #ruby-lang
erikh has joined #ruby-lang
<erikh> hey dudes,
thisirs has joined #ruby-lang
<erikh> I'm trying to get the effect of perl's 'tie' for ruby core types
<erikh> and I'm wondering how it might be done, or if not trivial, what involvement would be required
reppard has quit [Ping timeout: 245 seconds]
reppard has joined #ruby-lang
hazel_eyed has joined #ruby-lang
hazel_eyed has left #ruby-lang [#ruby-lang]
arooni-mobile has quit [Ping timeout: 260 seconds]
slyphon has joined #ruby-lang
<cirwin> erikh: I'm trying to understand what tie does in <2minutes
francisfish has joined #ruby-lang
<erikh> so perl's tie takes a package and a data structure
<erikh> and basically proxies all I/O to the data structure through the package
<erikh> now, it's possible to kind-of tie with things like Delegator, Forwardable and so on
<cirwin> so in ruby I guess you just 'def []()' ?
<erikh> it's a little more complicated than that
<erikh> Hash and Array have numerous methods to manipulate their contents
<erikh> so all of them have to be proxied.
<erikh> and of course, it's hardly future-proof
<cirwin> I see
<erikh> oh well, I'll probably get un-lazy and take my query to the core list
<erikh> just kind of wondering what this venture would be like and whether or not it'd be a desired feature
* slyphon looks at his watch
<cirwin> it's pretty backwards-feeling
<erikh> cirwin: how so?
<slyphon> erikh: might be a little early for the left coast, no?
<cirwin> erikh: I might just be misunderstanding it
<erikh> slyphon: almost 10am, but it is saturday
<slyphon> yeah
<injekt> it's about 10am there
<injekt> eh
<cirwin> it feels like you're trying to fill in a box, instead of stack boxes
<cirwin> if that makes any sense
<erikh> no, it doesn't.
<cirwin> ah well
<erikh> :P
* cirwin goes to re-learn perl
<slyphon> :)
<erikh> tie just circumvents the i/o part of the whole thing.
francisfish has quit [Remote host closed the connection]
Rarrikins has quit [Read error: Connection reset by peer]
<erikh> retains the rest of the logic and interface
Rarrikins has joined #ruby-lang
flaguy48 has joined #ruby-lang
<injekt> tie $foo, "Dog"; $foo = "hello" #=> $obj->STORE("hello")
<injekt> eh the call to tie calls Dog->TIESCALAR() iirrc
<erikh> e.g., you call hash[:foo] = 1, and if it was tied, it would execute its set routine. as I understand it, MRI at least doesn't define what "set" really means, so the only real way to change how things get set in a ruby hash is to "monkeypatch" the C setter that they all call
<erikh> (which is very unlikely to be exposed)
<slyphon> erikh: that's always bugged me
<cirwin> erikh: exposing it in a way that can be overriden in a subclass would be cool
<slyphon> erikh: python even has a single-point-to-override
<injekt> lol
<erikh> slyphon: yep, that's really what it comes down to
<erikh> but there are other considerations with doing it in the pure-C implementation, especially WRT performance I bet
<slyphon> hrm
<cirwin> erikh: I'd have thought the method caches would be able to deal with it like they do with Fixnum#+
<erikh> the nice thing about perl's tie is that it actually sets a magic bit on the hash itself that says "delegate all your i/o here" and then perl itself just does its own thing if it isn't set
<erikh> i mean, having a single point of entry would definitely be ideal; it may just not be performance-effective.
sulo has joined #ruby-lang
<erikh> cirwin: I have no idea what method caches have to do with this, to be honest.
<slyphon> erikh: i wonder if it's actually performance, though
<slyphon> also
* slyphon snickers @ "single point of entry"
* slyphon likes to keep it professional
<erikh> well, my brain is bascially telling me something like delete would end up being like this: hash.delete -> C implementation of Hash#delete -> Ruby Implementation of Hash#perform_delete -> C implementation that actually deletes from the hash
francisfish has joined #ruby-lang
<erikh> poorly named methods, but, that presumes the "point of entry" for Hash key deletion would be Hash#perform_delete
<slyphon> sure
<erikh> (consider delete_at and friends)
<slyphon> ther's probably a Hash#perform_delete2 in there too
<slyphon> :)
<erikh> haha
<erikh> well yeah, I imagine right now delete and delete_at have no common method exposed in ruby
<erikh> I can check, but I don't know if I really need to, to know that :P
* slyphon nods
<injekt> here's a shit example if anyone is interested https://gist.github.com/fd7ccd21d4956a7ac31d
<erikh> injekt: jesus could you make it any more useless
<erikh> :P
<injekt> i tried
<injekt> i couldn't think of a time i used it for anything useful tbh
<slyphon> hrm
<slyphon> oh, i guess there's "concurrency" to think about
<erikh> cirwin: if it helps any, tie is frequently used in perl to do things like present databases as a hash.
<injekt> ah that was it
<injekt> db
<injekt> yeah im not spending time on an example for that :D
<slyphon> then again, ruby's a little loosey-goosey when it comes to memory consistency
<erikh> slyphon: well, that could be the writer of the tie interface's responsibility
<slyphon> for the internal state of the hash?
<erikh> I mean, if I'm sending all my writes to a sqlite db, chances are it's going to be more stable than ruby anything anyhow
<slyphon> or you're just providing a hash-like interface?
<slyphon> ha!
sulo has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
<slyphon> erikh: careful, i see a man in the crowd swinging a rope
<erikh> slyphon: right; that's what tie does really, just proxies the i/o for a data strcuture
ebouchut has joined #ruby-lang
<erikh> injekt's example is a little convoluted, but it takes any change to the string and pushes it as a new string in a list, and returns a random element from that list on read
<erikh> it's circumvented the i/o for writing to that string.
<erikh> well, and reading of course.
<erikh> oh
<erikh> it just shifts it
<erikh> even more useless
<erikh> :P
zmack has quit [Remote host closed the connection]
<erikh> oh well, I'll ping -core when I'm less tired
<erikh> thanks for the effort, folks
erikh has left #ruby-lang ["WeeChat 0.3.9.2"]
<injekt> hey im just pleased i managed to write it all and it run first time without issues having not written perl for a while
<injekt> even if it is pointless and in some terms harmful to understand
thisirs has quit [Ping timeout: 250 seconds]
Rarrikins_r has joined #ruby-lang
Rarrikins has quit [Ping timeout: 250 seconds]
m3nd3s has quit [Remote host closed the connection]
m3nd3s has joined #ruby-lang
sush24 has joined #ruby-lang
reppard has quit [Ping timeout: 252 seconds]
tbuehlmann has quit [Remote host closed the connection]
blacktul_ has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
blacktulip has quit [Ping timeout: 260 seconds]
sush24 has quit [Ping timeout: 244 seconds]
sush24 has joined #ruby-lang
stonerfish has joined #ruby-lang
megharsh has joined #ruby-lang
megharsh has quit [Client Quit]
megharsh has joined #ruby-lang
sulo has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 252 seconds]
drbrain has joined #ruby-lang
achiu has quit [Ping timeout: 252 seconds]
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
jonahR has joined #ruby-lang
ebouchut has quit [Quit: This computer has gone to sleep]
Asher has joined #ruby-lang
sepp2k has joined #ruby-lang
francisfish has joined #ruby-lang
nmeum has joined #ruby-lang
nmeum has left #ruby-lang [#ruby-lang]
srbaker has quit [Quit: Computer has gone to sleep.]
sulo has quit [Remote host closed the connection]
larrylv has joined #ruby-lang
<whitequark> dominikh: you're welcome :)
<dominikh> even tho they are mostly causing me problems right now :P
<whitequark> why are they?
wallerdev has joined #ruby-lang
<dominikh> well, first they didn't work properly because nginx was buffering. that was easy to fix. now I am facing a problem where two EventSources in a single script don't work in chrome but work in firefox. wireshark tells me that chrome does send the 2nd request correctly, but it never reaches the backend server, so only the first source works
<rue> Everybody with Perl problems I assume from the context
<whitequark> dominikh: oooh, nginx buffering :) didn't I say about it? proxy_buffering off; ftw
<whitequark> hm
<whitequark> version of chrome? chrome 6 advertises support, but it seems that chrome <9 doesn't actually work
Asher has quit [Quit: Leaving.]
<whitequark> also.
<dominikh> whitequark: as for buffering, I disable it just for the SSE bits, with a special header. I do like buffering for other parts :P
<whitequark> pipelining.
sulo has joined #ruby-lang
<dominikh> chromium 24
<whitequark> chrome has pipelining which is really FUBAR with SSE for some reason
<dominikh> mhm
<whitequark> namely, for me, it sends an SSE request and then seemingly pipelines some other one (eg favicon) _after_ it
<whitequark> so until the first SSE request expires after 30s of inactivity, the second one won't get to loading
<whitequark> this kinda annoys me
<dominikh> well that doesn't exactly work well with something that doesn't time out
<whitequark> I'm not sure why it expires after 30s of inactivity for me
<dominikh> http://stuff.fork-bomb.org/2012-12-29_20h-24m-44s.png definitely no timeout here ;)
<whitequark> well, that could be either nginx or thin
<whitequark> it does happen with thin on localhost, I think
<whitequark> let me check.
larrylv has quit [Ping timeout: 250 seconds]
<whitequark> dominikh: hint: use "X-Accel-Buffering: no" header in your backend to avoid messing with nginx settings
<dominikh> exactly the the header I was talking about ;)
<whitequark> oh, right
sepp2k has quit [Read error: Connection reset by peer]
[dmp] has joined #ruby-lang
sepp2k has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<dominikh> whitequark: okay, seems to be nginx here that is messing with two SSE streams. at least it seems to work fine when bypassing nginx and talking to the backend directly
<whitequark> strange
<dominikh> yeah, especially because it works in firefox :D
sulo has quit [Remote host closed the connection]
retro|cz has quit [Remote host closed the connection]
<whitequark> dominikh: I'd say it is pipelining again. what does wireshark say about that?
soahccc has joined #ruby-lang
<dominikh> whitequark: chrome sends a normal http request, nothing ever responds.
stardiviner has quit [Ping timeout: 248 seconds]
<dominikh> to make things worse, I don't see anything in nginx's logs
<whitequark> weird
wmoxam has quit [Remote host closed the connection]
<whitequark> chrome://net-internals ?
kennyvb has quit [Ping timeout: 244 seconds]
ebouchut has joined #ruby-lang
<dominikh> yeaah, that doesn't really help :>
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 255 seconds]
<dominikh> whitequark: disabling pipelining in chrome fixes the issue
<whitequark> dominikh: I knew.
<dominikh> that's bloody stupid
<whitequark> yeah
<whitequark> and the thing you need to do is, probably, make a few CNAMEs
<dominikh> yeah, definitely won't do that
stardiviner has joined #ruby-lang
<dominikh> luckily this is a project where I can say "shit happens" if it doesn't work for others.
<dominikh> it's internal
<whitequark> why don't do that? it's fairly trivial, no?
<dominikh> because I want my router to have a single name only ;)
<dominikh> it's also fairly trivial to combine both event sources into one. this was more about knowing WHY it didn't work
<whitequark> ah, right
<Paradox> #rails seems dead this morning, but i've got a small sticky point
<Paradox> i'm trying to move from a many-to-one to a many-to-many relationship
<Paradox> but i already have code in the m2o
<Paradox> what would be the best way to migrate this in the migration
<telemachus> Paradox: Another good channel for rails is (or was - haven't been there in a while) #railsbridge
<telemachus> less crowded, less troll-y
<tpope> wtf is #rails? #rubyonrails is the official channel
nyuszika7h has quit [Read error: Connection reset by peer]
<chris2> rubyists always need two channels
<havenn> #railsnoob
nyuszika7h has joined #ruby-lang
MaddinXx_ has joined #ruby-lang
davidbalbert is now known as davidbalber|away
breakingthings has quit []
msch has quit [Quit: Coyote finally caught me]
cyri_ has joined #ruby-lang
<darix> tpope: you sure that #rails isnt just a redirection to #rubyonrails?
<dominikh> #ror is, #rails is not
<darix> ah
<dominikh> #rails is some almost always dead channel
<emocakes> Paradox a shell script?
msch has joined #ruby-lang
<Paradox> emocakes, nah, i figured it out
solars has quit [Ping timeout: 244 seconds]
<Paradox> tpope, #ruby has more people than #ruby-lang too
<dominikh> yeah, keeps the outcasts away from the real channel
<Paradox> people seem to find it so difficult to read topics
<Paradox> its always been amusing
<Paradox> emocakes, nah, im going to do it in the migration
<emocakes> makes sense
<Paradox> i just have to think about the proper way to do it on the down
<Paradox> gurh
<tpope> last I checked (many years ago), #ruby was basically a bunch of people that were too dumb to find the offical channel
<Paradox> some nice people hang out in ruby
<Paradox> banisterfield, Mon_ouie
<tpope> I don't really need more ruby channels :|
<dominikh> Mon_Ouie hangs out here, too.
<dominikh> and banister is a stoner :P
<Mon_Ouie> Yeah, and banister used to be here too
<tpope> I'll migrate if that's the thing to do
<Mon_Ouie> He actually used to be here but not on #ruby
wallerdev has quit [Quit: wallerdev]
havenn has quit [Remote host closed the connection]
lcdhoffman has joined #ruby-lang
<darix> Mon_Ouie: do you need more infos for the coolline bug?
<Mon_Ouie> I think it's more of a Pry bug still
<matti> Mon_Ouie: ;]
solars has joined #ruby-lang
<Mon_Ouie> When did it happen though?
Nisstyre-laptop has joined #ruby-lang
<Mon_Ouie> (I mean, how to reproduce)
wallerdev has joined #ruby-lang
msch has quit [Quit: Coyote finally caught me]
msch has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
lcdhoffman has quit [Quit: lcdhoffman]
ericwood has quit [Remote host closed the connection]
Rarrikins_r has quit [Ping timeout: 265 seconds]
ebouchut has quit [Quit: This computer has gone to sleep]
sailias has quit [Ping timeout: 248 seconds]
CapnKernul has joined #ruby-lang
wyhaines has joined #ruby-lang
Spaceghostc2c has quit [Excess Flood]
vlad_starkov has joined #ruby-lang
ryanf has quit [Ping timeout: 252 seconds]
lcdhoffman has joined #ruby-lang
Spaceghostc2c has joined #ruby-lang
postmodern has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
vlad_starkov has quit [Ping timeout: 255 seconds]
sush24 has joined #ruby-lang
s0ber_ has joined #ruby-lang
tdy has quit [Read error: Connection reset by peer]
tdy_ has joined #ruby-lang
s0ber has quit [Ping timeout: 265 seconds]
s0ber_ is now known as s0ber
reppard has joined #ruby-lang
achiu has joined #ruby-lang
achiu has quit [Client Quit]
achiu has joined #ruby-lang
reppard has quit [Ping timeout: 250 seconds]
Asher has joined #ruby-lang
leopard_me has quit [Quit: Computer has gone to sleep.]
CapnKernul has quit [Quit: Leaving...]
xalei has joined #ruby-lang
holgerno has joined #ruby-lang
reppard has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
kennyvb has joined #ruby-lang
jonahR has quit [Ping timeout: 252 seconds]
sulo has joined #ruby-lang
lsegal has joined #ruby-lang
sulo has quit [Remote host closed the connection]
<darix> Mon_Ouie: moment
tenderlove has quit [Remote host closed the connection]
<darix> see query
ryanf has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
ryanf has quit [Ping timeout: 244 seconds]
ryanf has joined #ruby-lang
reppard has quit [Quit: leaving]
stonerfish has quit [Quit: Leaving.]
mccraig_ has left #ruby-lang [#ruby-lang]
mccraig has joined #ruby-lang
stonerfish has joined #ruby-lang
mccraig has left #ruby-lang [#ruby-lang]
CapnKernul has joined #ruby-lang
workmad3 has joined #ruby-lang
tdy_ has quit [Ping timeout: 245 seconds]
tdy_ has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
stonerfish has quit [Quit: Leaving.]
sailias has joined #ruby-lang
havenn has joined #ruby-lang
stonerfish has joined #ruby-lang
francisfish has joined #ruby-lang
CapnKernul has quit [Quit: Leaving...]
stonerfish has quit [Client Quit]
stonerfish has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
leopard_me has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
leopard_me has quit [Quit: Computer has gone to sleep.]
havenn has quit [Ping timeout: 260 seconds]
s1n4 has joined #ruby-lang
MaddinXx_ has quit [Remote host closed the connection]
s1n4 has quit [Client Quit]
s1n4 has joined #ruby-lang
Nisstyre-laptop has quit [Quit: Leaving]
nyuszika7h has quit [Quit: Here we are, going far to save all that we love - If we give all we've got, we will make it through - Here we are, like a star shining bright on your world - Today, make evil go away!]
nyuszika7h has joined #ruby-lang
Asher has quit [Quit: Leaving.]
blacktul_ has quit [Remote host closed the connection]
CapnKernul has joined #ruby-lang
cyri_ has quit [Quit: cyri_]
Rarrikins has joined #ruby-lang
s1n4 has quit [Quit: leaving]
havenn has joined #ruby-lang
jondot` has quit [Ping timeout: 255 seconds]
leopard_me has joined #ruby-lang
drbrain has quit [Remote host closed the connection]
xyzodiac has quit [Quit: Computer has gone to sleep.]
AndChat| has quit [Ping timeout: 250 seconds]