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
ap4y has quit [Remote host closed the connection]
Darkspiel has quit [Client Quit]
_br_ has quit [Excess Flood]
mercwithamouth has quit [Ping timeout: 265 seconds]
_br_ has joined #ruby-lang
workmad3 has quit [Quit: Lost terminal]
_br_ has quit [Excess Flood]
_br_ has joined #ruby-lang
stevechiagozie has quit [Ping timeout: 255 seconds]
mercwithamouth has joined #ruby-lang
stevechiagozie has joined #ruby-lang
srbaker has joined #ruby-lang
agarie has quit [Remote host closed the connection]
Rarrikins_g has joined #ruby-lang
Rarrikins has quit [Ping timeout: 245 seconds]
<imperator> meat in cages? jesus, talk about melodramatic
agarie has joined #ruby-lang
<Aria> naquad: I don't think rmagick is the right tool for that job. It's kinda image-focused.
<naquad> mmm then what can i use to do this?
<imperator> prawn maybe?
<naquad> hm, could work out
<naquad> thanks
<Aria> Or the xmp gem
ap4y has joined #ruby-lang
s1n4 has joined #ruby-lang
ruurd has quit [Read error: Connection reset by peer]
ap4y has quit [Ping timeout: 252 seconds]
Rarrikins has joined #ruby-lang
aef has quit [Ping timeout: 244 seconds]
Rarrikins_g has quit [Ping timeout: 265 seconds]
m3nd3s has joined #ruby-lang
jbsan_ has joined #ruby-lang
jbsan has quit [Ping timeout: 252 seconds]
jbsan_ is now known as jbsan
m3nd3s has quit [Remote host closed the connection]
Rarrikins_s has joined #ruby-lang
marr has quit [Ping timeout: 260 seconds]
Rarrikins has quit [Ping timeout: 260 seconds]
seanstickle has joined #ruby-lang
meatballhat has joined #ruby-lang
meatballhat has joined #ruby-lang
spuk has joined #ruby-lang
kurko_ has joined #ruby-lang
spuk has quit [Client Quit]
Asher has joined #ruby-lang
chekcmate has quit [Ping timeout: 245 seconds]
xalei has quit [Remote host closed the connection]
ap4y has joined #ruby-lang
<naquad> is there something like Hash#detect but returning only value not array with key and value?
srbaker has quit [Quit: Computer has gone to sleep.]
Rarrikins_s has quit [Ping timeout: 260 seconds]
Rarrikins has joined #ruby-lang
<darix> naquad: values_at
sailias has quit [Ping timeout: 255 seconds]
<naquad> docs say it doesn't take block
<naquad> forgot to mention, that i need block
s1n4 has quit [Quit: leaving]
mercwithamouth has quit [Ping timeout: 276 seconds]
<darix> so just add a .map {} block after it that drops the keys
kain__ has left #ruby-lang [#ruby-lang]
<micaeked> not #map, since #detect returns `[k, v]`... just #last after #detect is enough
<micaeked> hmm... actually, `#try(:last)` because it might be nil
andrewhl has quit [Remote host closed the connection]
drbrain has joined #ruby-lang
srbaker has joined #ruby-lang
emocakes has quit [Quit: emocakes]
<darix> try() requires active support if i recall correctly
<micaeked> it's a simple method and i find it very useful. i think there is a gem with just a few of these really useful core extensions, but i forget what it was called
drbrain has quit [Ping timeout: 252 seconds]
mistym has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
<zzak> you might want Hash#one?
<zzak> but idk what you're trying to do really
<yfeldblum> naquad, my_hash.select{|k, v| cool_key?(k)}.map{|k, v| v}
<yfeldblum> micaeked, activesupport has the really useful core extensions
<naquad> in the end i've defined Object#try as in ActiveSupport
<naquad> thanks everyone
mercwithamouth has joined #ruby-lang
Nisstyre-laptop has quit [Quit: Leaving]
<naquad> i need a singleton class. i did it with Singleton module, but i have a question: maybe i should better use a module + module_function + forbid extend/include?
neocoin has joined #ruby-lang
sepp2k has quit [Remote host closed the connection]
matip_ has joined #ruby-lang
matip has quit [Ping timeout: 252 seconds]
davidbalber|away is now known as davidbalbert
CapnKernul has quit [Quit: Linkinus - http://linkinus.com]
cirwin has quit [Quit: sleep....ping!]
Rarrikins has quit [Remote host closed the connection]
s1n4 has joined #ruby-lang
Rarrikins has joined #ruby-lang
megharsh has joined #ruby-lang
davidbalbert is now known as davidbalber|away
davidbalber|away is now known as davidbalbert
kurko_ has quit [Ping timeout: 252 seconds]
aef has joined #ruby-lang
<naquad> is there any way to validate hierarchical structure (gem or something in stdlib)? i mean that for example hash contains specified keys, their values have specified type and match regexp or predicate
<agarie> for specified keys, depending on your use case, you might prefer to use a Struct
<agarie> for the specified type/matching of regexp or predicate I don't know, you might need to implement it yourself
<naquad> i don't have a struct, i have a hash parsed from yaml file
ryez has joined #ruby-lang
s1n4 has quit [Quit: peace fuckin out]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
wallerdev has left #ruby-lang [#ruby-lang]
wallerdev has joined #ruby-lang
<buzz__> where can i learn how to make my own gem and figure out hosting on rubygems?
madish has quit [Remote host closed the connection]
nazty has quit [Read error: Connection reset by peer]
setmeaway has quit [Read error: Connection reset by peer]
setmeaway has joined #ruby-lang
andrewhl has joined #ruby-lang
dhsmith has joined #ruby-lang
jbsan has quit [Quit: jbsan]
<agarie> this should be enough for you to start. `bundle gem` will create a directory structure where you can put your code, etc
rebelcan has quit [Quit: leaving]
<agarie> buzz__: use the `gem` command to deal with rubygems. http://guides.rubygems.org/command-reference/
jbsan has joined #ruby-lang
<buzz__> Thank you
<havenn> buzz__: +1 `bundle gem` to build initial gem structure. I like the gem-release gem for the ease of: `gem bump --tag --release`.
<buzz__> the gem bundler reference is especially helpful
nazty has joined #ruby-lang
meatballhat has quit [Ping timeout: 255 seconds]
<havenn> buzz__: Bundler gem: http://gembundler.com/rubygems.html
<havenn> buzz__: Nice free RailsCasts about creating a new gem with bundler: http://railscasts.com/episodes/245-new-gem-with-bundler
<havenn> agarie: Oops, missed that you'd already linked bundle gem. :P
ap4y has quit [Remote host closed the connection]
<agarie> np :P
meatballhat has joined #ruby-lang
meatballhat has joined #ruby-lang
meatballhat has quit [Changing host]
charliesome has joined #ruby-lang
Rarrikins has quit [Ping timeout: 276 seconds]
rebelcan has joined #ruby-lang
Rarrikins has joined #ruby-lang
serhart has joined #ruby-lang
<buzz__> gem release will help me as well when I'm ready to update my gem
<buzz__> thanks!
<buzz__> oh i love railscasts!
<buzz__> !
<buzz__> epic!
<buzz__> thanks havenn
swarley is now known as swarley-freenode
drbrain has joined #ruby-lang
swarley-freenode is now known as swarles
gix has quit [Ping timeout: 255 seconds]
drbrain has quit [Ping timeout: 244 seconds]
buzz__ has quit [Quit: buzz__]
serhart has quit [*.net *.split]
msch has quit [*.net *.split]
brixen has quit [*.net *.split]
Silex has quit [*.net *.split]
linc01n has quit [*.net *.split]
benwoody has quit [*.net *.split]
djinni` has quit [*.net *.split]
unsymbol has quit [*.net *.split]
threeday1onk has quit [*.net *.split]
faen has quit [*.net *.split]
sora_h has quit [*.net *.split]
mfn has quit [*.net *.split]
llakey has quit [*.net *.split]
dagobah_ has quit [*.net *.split]
Caius has quit [*.net *.split]
ggreer has quit [*.net *.split]
linc01n has joined #ruby-lang
djinni` has joined #ruby-lang
llakey has joined #ruby-lang
threedaymonk has joined #ruby-lang
benwoody_ has joined #ruby-lang
sora_h has joined #ruby-lang
mfn has joined #ruby-lang
Silex has joined #ruby-lang
ggreer has joined #ruby-lang
gix has joined #ruby-lang
buzz_ has joined #ruby-lang
faen has joined #ruby-lang
brixen has joined #ruby-lang
rebelcan has quit [Quit: Using Circe, the loveliest of all IRC clients]
dagobah has joined #ruby-lang
mercwithamouth has quit [Read error: Operation timed out]
tsou has quit [Remote host closed the connection]
mercwithamouth has joined #ruby-lang
rebelcan has joined #ruby-lang
Aria has quit [Remote host closed the connection]
meatballhat has quit [Ping timeout: 244 seconds]
serhart has joined #ruby-lang
agarie has quit [Remote host closed the connection]
serhart has left #ruby-lang [#ruby-lang]
jbsan has quit [Quit: jbsan]
meatballhat has joined #ruby-lang
Rarrikins_l has joined #ruby-lang
Rarrikins has quit [Ping timeout: 265 seconds]
srbaker has quit [Quit: Computer has gone to sleep.]
Rarrikins_l has quit [Remote host closed the connection]
Rarrikins has joined #ruby-lang
rebelcan has quit [Remote host closed the connection]
rebelcan has joined #ruby-lang
dalai has joined #ruby-lang
vesan has quit [Ping timeout: 260 seconds]
dalai has left #ruby-lang [#ruby-lang]
vesan has joined #ruby-lang
jonahR has joined #ruby-lang
andrewhl has quit [Ping timeout: 252 seconds]
davidbalbert is now known as davidbalber|away
gnufied1 has joined #ruby-lang
meatballhat has quit [Ping timeout: 265 seconds]
mercwithamouth has quit [Ping timeout: 245 seconds]
seanstickle has quit [Quit: seanstickle]
briantrust has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
gnufied1 has quit [Quit: Leaving.]
rebelcan has quit [Remote host closed the connection]
dkannan has joined #ruby-lang
drbrain has joined #ruby-lang
davidbalber|away is now known as davidbalbert
drbrain has quit [Ping timeout: 265 seconds]
bryno has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
davidbalbert is now known as davidbalber|away
stevechiagozie has quit [Quit: leaving]
mjio has quit []
Nisstyre-laptop has joined #ruby-lang
Asher has quit [Quit: Leaving.]
rebelcan has joined #ruby-lang
tdy has joined #ruby-lang
tdy_ has quit [Read error: Connection reset by peer]
kain has joined #ruby-lang
blahwoop has joined #ruby-lang
rebelcan has quit [Remote host closed the connection]
rebelcan has joined #ruby-lang
megharsh has quit [Ping timeout: 255 seconds]
blahwoop has quit [Ping timeout: 276 seconds]
bryno has joined #ruby-lang
megharsh has joined #ruby-lang
jbsan has joined #ruby-lang
Rarrikins_p has joined #ruby-lang
dkannan has quit [Read error: Connection reset by peer]
Rarrikins has quit [Ping timeout: 276 seconds]
Asher2 has joined #ruby-lang
methods has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
dkannan has joined #ruby-lang
Asher2 has quit [Quit: Leaving.]
postmodern has joined #ruby-lang
stonerfish has quit [Quit: Leaving.]
sagar_junnu has joined #ruby-lang
<ryanf> zenspider: hey, is minitest/bacon a thing that's actually going to happen?
<ryanf> if so, that's pretty cool
charliesome has joined #ruby-lang
Rarrikins_p_b has joined #ruby-lang
Rarrikins_p has quit [Ping timeout: 255 seconds]
Rarrikins_p_b has quit [Ping timeout: 255 seconds]
drbrain has joined #ruby-lang
gnufied1 has joined #ruby-lang
drbrain has quit [Ping timeout: 276 seconds]
megharsh has quit [Ping timeout: 264 seconds]
micaeked has quit [Quit: WeeChat 0.3.9.2]
Glass_saga has quit [Remote host closed the connection]
<charliesome> ruby pop quiz
dmwuw has joined #ruby-lang
<charliesome> why does Thread.start { eval "exit!" } work, but Thread.start("exit!", &method(:eval)) not
gsav has joined #ruby-lang
<ryanf> charliesome: I just spent a pretty long time thinking about it
<ryanf> before trying it out
<ryanf> to find that it does actually work
<ryanf> fu
<charliesome> what ruby version?
<ryanf> oh, 1.8.7 by accident, as usual
<charliesome> rvm --default would like a word with you
<ryanf> hmm. so it's something specific to Method#to_proc I guess
<ryanf> something about arity? that doesn't seem right though
faces has joined #ruby-lang
<charliesome> vm_eval.c:1190
<charliesome> rb_raise(rb_eRuntimeError, "Can't eval on top of Fiber or Thread");
<ryanf> what
<charliesome> haha
<charliesome> pretty obscure
<ryanf> wow, that is quite a function
setmeaway has quit [Read error: Connection reset by peer]
setmeaway2 has joined #ruby-lang
facest has quit [Ping timeout: 265 seconds]
MrWGW- has joined #ruby-lang
<MrWGW-> hey there
<MrWGW-> is there an easy way to pipe the contents of an array into more, and then when more exits have control return to your program?
<MrWGW-> I can't do myprogram | more from the shell, because when more was finished in that manner, control would return to shell, and I want it to just return to my program
<MrWGW-> and I want to control the output, i.e. just output a specific array
<Paradox> MrWGW-, i believe pry does something similar with less
<Paradox> might want to ask Mon_Ouie
<Paradox> i think thats it
<MrWGW-> I did actually a long time ago write my own pager in ruby
<MrWGW-> which was fun
<MrWGW-> but I didn't use curses
<MrWGW-> and it doesn't work as well as more
<MrWGW-> but worst case, I'll write a proper one
<Paradox> look at systempager
<Paradox> it uses less
<ryanf> MrWGW-: what the file Paradox linked to boils down to is just
<ryanf> IO.popen("less -R -S -F -X", "w") { |io| io.write @text }
<MrWGW-> I specifically want to use more
<Paradox> thats basically it
<Paradox> so replace less with more
<MrWGW-> because I'm targeting this app for embedded busybox systems
<MrWGW-> which generally have more, but not less
<ryanf> how ironic
<MrWGW-> also for that reason, I'm trying to avoid any external rubygems
<MrWGW-> so that all that's needed in the embedded image is just a barebones ruby interpreter
<MrWGW-> I'm specifically writing this program to scratch my own itch by the way
<ddfreyne> I need to process a multi-GB file in Ruby, kB per kB. How would I go on doing that? My GC starts thrashing…
<MrWGW-> its a line oriented text editor kind of like ed
<MrWGW-> I have these busybox appliances that have ruby for their web UI, but no ed
<MrWGW-> so I'm exploiting it by writing a text editor for them
<MrWGW-> but I figure there are other similiar systems where it might be applicable
<ryanf> that's funny. what is the web ui written in?
<MrWGW-> for example, Mandriva Linux historically omitted ed from their single-CD distro, and I would assume Mageia is the same way
<MrWGW-> ryanf: the web UI is written in vanilla ruby with a custom, poorly implemented webserver
<MrWGW-> its complete crap
<ryanf> nice
<MrWGW-> these are shitty Asian-made network managmenet appliances from an obscure vendor
<ryanf> do they build it on TCPServer or something?
<ryanf> or even lower-level than that?
<MrWGW-> but they're cheap and I've repurposed them into DNS servers
<MrWGW-> for my branch offices
<MrWGW-> ryanf: think of it as being like netcat, only in ruby
gsav has quit [Ping timeout: 276 seconds]
emocakes has joined #ruby-lang
<MrWGW-> so ryanf, looking at the above method call you posted
<MrWGW-> would that work with more in lieu of less, and the various less-specific arugments omitted?
<Paradox> should
<MrWGW-> IO.popen("more") { |io| io.write @text }
<ryanf> I'm sure it can be made to work. you probably want to look at less's manpage to make sure none of those arguments are doing things you care about
<ryanf> I think it's probably mostly stuff related to color escapes
<MrWGW-> more by default does what I want, in its default mode of execution
<MrWGW-> also more doesn't mess with color escapes
<MrWGW-> if its fed text containing them, it preserves them
<MrWGW-> whereas less by default doesn't IIRC
<MrWGW-> oh btw fun fact, one guy wrote a fairly popular less alternative called most, which I've played with
<ryanf> yeah, I actually just switched from most back to less
<Paradox> -F terminates if the contents can be shown on one screen
<Paradox> and just echos it
<Paradox> -R doesnt escape ansii color codes
<Paradox> -S chops long lines
<Paradox> -X disables termcap init and deinit
<Paradox> less always did what i wanted
<Paradox> so i've never felt the need to switch
<Paradox> unlike tmux or zsh
<Paradox> which fix flaws in screen and bash
<MrWGW-> more automatically terminates if th econtents can be shown on one screen
<MrWGW-> more is really very nice; its only downside is it doesn't allow backscrolling
<MrWGW-> but its extremely simple and ubiquitous; I never install less on a linux box that has more simply because I don't need less
<MrWGW-> although less is nice, its a big hairy bloated application
<MrWGW-> its like the difference between the classic ed editor and vim, for example
<MrWGW-> Paradox: owwww
<MrWGW-> my genitalia aches just looking at that
<MrWGW-> Paradox: indeed it does, but more does that automatically
<MrWGW-> err sorry
<MrWGW-> so if I might ask a stupid question by the way
<MrWGW-> and I apologize for this - its late and I am also extremely ill; this is the first time I've been able to program in a week
<MrWGW-> how would I actually get that to output a given array
<MrWGW-> IO.popen("more") { |io| io.write myArray } # ?
<Paradox> replace @text with something that turns your array to a string
<Paradox> probably want to use join
<Paradox> but to_s works too
<MrWGW-> ok
<MrWGW-> hmm for some reason, it just hangs if I go IO.popen("more") { |io| io.write text.to_s }
<MrWGW-> note that i'm in irb
<MrWGW-> all I did was create a dummy array called text, manually, via text = [ '1','2','3' ]
<MrWGW-> and then entered in that line
<MrWGW-> I figured I'd test this out in irb before attempting to bolt it into my program
<Paradox> you need 'w'
<Paradox> IO.popen("less", 'w')
<MrWGW-> success
<MrWGW-> so by the way, one amusing thing/annoyance
<MrWGW-> these devices have /sbin set with 0777 permissions for some reason
<MrWGW-> I fear to change it, lest I brick them
<MrWGW-> but ruby complaints about it every time I run the program
<MrWGW-> with some justification
<MrWGW-> but is there any way I can suppress that?
<MrWGW-> if it was for any reason other than the demented nature of these nasty little appliances, rest assured tha tI would not
leopard_me has joined #ruby-lang
<emocakes> omg
<emocakes> kim and kanye!!
<emocakes> isn't that like, so cray?
adambeynon has joined #ruby-lang
solars has joined #ruby-lang
<Paradox> ruby doesnt make very good turkey sandwiches
<Paradox> they're too dry
jxie has quit [Quit: leaving]
marr has joined #ruby-lang
<MrWGW-> so it works, somewhat
<MrWGW-> the only problem is that its not passing the /n characters to more i na fashion more can understand
<MrWGW-> I suspect this is a problem wit hthe .to_s
drbrain has joined #ruby-lang
drbrain has quit [Ping timeout: 265 seconds]
Elico1 has joined #ruby-lang
dkannan has quit [Quit: dkannan]
Nisstyre-laptop has quit [Quit: Leaving]
Nisstyre-laptop has joined #ruby-lang
MrWGW- has quit [Quit: "Great Scot, you're right, it IS a sea serpent!"]
rindolf has joined #ruby-lang
jbsan has quit [Quit: jbsan]
<rindolf> Hi all. Is there anything like http://wiki.cpantesters.org/ - CPAN smoke testers, where they test new uploads to the CPAN repository on many systems to see if the tests pass - only for Ruby gems?
jonahR has quit [Quit: jonahR]
<rindolf> Happy new year too.
rindolf has quit [Read error: Connection reset by peer]
rindolf has joined #ruby-lang
ttilley has joined #ruby-lang
unsymbol has joined #ruby-lang
unsymbol has joined #ruby-lang
unsymbol has quit [Changing host]
Caius has joined #ruby-lang
tbuehlmann has joined #ruby-lang
DefV has quit [Quit: leaving]
Jan_ has joined #ruby-lang
Jan_ is now known as Guest39927
Guest39927 is now known as DefV
m3nd3s has joined #ruby-lang
Nisstyre-laptop has quit [Quit: Leaving]
vlad_starkov has joined #ruby-lang
<injekt> rindolf: there was test.rubygems.org but it looks like it's down
<rindolf> injekt: ah, sucks.
<rindolf> injekt: thanks for your reply.
rindolf has quit [Read error: Connection reset by peer]
rindolf has joined #ruby-lang
rebelcan has quit [Ping timeout: 244 seconds]
m3nd3s has quit []
m3nd3s has joined #ruby-lang
msch has joined #ruby-lang
Glass_saga has joined #ruby-lang
rindolf has quit [Read error: Connection reset by peer]
rindolf has joined #ruby-lang
gnufied1 has quit [Quit: Leaving.]
io_syl has quit [Quit: Computer has gone to sleep.]
unsymbol has quit [Quit: ZNC - http://znc.in]
megharsh has joined #ruby-lang
gnufied has joined #ruby-lang
unsymbol has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rindolf has quit [Read error: Connection reset by peer]
rindolf has joined #ruby-lang
Rarrikins has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
megharsh has quit [Ping timeout: 252 seconds]
rindolf has quit [Read error: Connection reset by peer]
rindolf has joined #ruby-lang
Oloryn_lt2 has joined #ruby-lang
drbrain has joined #ruby-lang
marr has quit [Ping timeout: 265 seconds]
Oloryn_lt2 has quit [Ping timeout: 255 seconds]
drbrain has quit [Ping timeout: 265 seconds]
megharsh has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
rindolf has quit [Read error: Connection reset by peer]
rindolf has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
Elico1 has quit [Quit: Elico1]
vlad_starkov has joined #ruby-lang
wallerdev has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
MaddinXx has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
rindolf has quit [Read error: Connection reset by peer]
rindolf has joined #ruby-lang
cirwin has joined #ruby-lang
goshakkk has joined #ruby-lang
goshakkk has quit [Client Quit]
goshakkk has joined #ruby-lang
postmodern has quit [Quit: Leaving]
Rarrikins_m has joined #ruby-lang
<imperator> "lib/irb/inspector.rb:36:36: Couldn't find INSPECTORS. Assuming it's a module" - no clue what that is, hope it's harmless
madish has joined #ruby-lang
Rarrikins has quit [Ping timeout: 255 seconds]
<injekt> imperator: what are you doing to get that? and what ruby version
rindolf has quit [Read error: Connection reset by peer]
rindolf has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<imperator> injekt, p362 on snow leopard
<imperator> just a configure; make; make install
madish has quit [Ping timeout: 252 seconds]
Rarrikins_m has quit [Ping timeout: 245 seconds]
Rarrikins has joined #ruby-lang
seanstickle has joined #ruby-lang
goshakkk has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<ddfreyne> no rvm/rbenv/…?!
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
wnd has quit [Ping timeout: 252 seconds]
<imperator> don't use them
gix- has joined #ruby-lang
gix has quit [Disconnected by services]
<rindolf> Would anyone like to contribute a page about working on Ruby using Vim to http://vim.begin-site.org/ ? If so - send me a pull request.
leopard_me has quit [Quit: Computer has gone to sleep.]
rindolf has quit [Read error: Connection reset by peer]
rindolf has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
marr has joined #ruby-lang
madish has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
rsl__ has joined #ruby-lang
ruby-lang707 has joined #ruby-lang
rsl__ has left #ruby-lang [#ruby-lang]
rsl has joined #ruby-lang
Rarrikins has quit [Ping timeout: 256 seconds]
sulo has joined #ruby-lang
Rarrikins has joined #ruby-lang
srbaker has joined #ruby-lang
drbrain has joined #ruby-lang
goshakkk has joined #ruby-lang
rindolf has quit [Read error: Connection reset by peer]
rindolf has joined #ruby-lang
ruby-lang707 has quit [Ping timeout: 245 seconds]
drbrain has quit [Ping timeout: 260 seconds]
sulo has quit [Remote host closed the connection]
sepp2k has joined #ruby-lang
ebouchut has joined #ruby-lang
sagar_junnu has quit [Quit: Leaving]
rindolf has quit [Read error: Connection reset by peer]
rindolf has joined #ruby-lang
daro_ has joined #ruby-lang
larrylv has joined #ruby-lang
larrylv has quit [Remote host closed the connection]
larrylv has joined #ruby-lang
matip_ has quit [Read error: Connection reset by peer]
blacktulip has joined #ruby-lang
stardiviner has joined #ruby-lang
kurko_ has joined #ruby-lang
larrylv has quit [Ping timeout: 264 seconds]
sailias has joined #ruby-lang
breakingthings has joined #ruby-lang
<zzak> good morning!
<rindolf> zzak: hi.
<rindolf> zzak: what's up?
blahwoop has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
jonahR has joined #ruby-lang
Nisstyre has quit [Quit: Leaving]
<zzak> rindolf: freezing, decided to go for a jog this morning at 10F.. you?
<rindolf> zzak: it's not so cold here.
<rindolf> zzak: but I live in Tel Aviv.
<zzak> oh, cool!
<rindolf> zzak: I've been working on http://vim.begin-site.org/ - I think I'll create pages for editing files of different types (XML , C, Ruby, Perl, Lisp, Scheme, Python etc.)
rindolf has quit [Read error: Connection reset by peer]
rindolf has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
davidbalber|away is now known as davidbalbert
<zzak> nice
rindolf has quit [Read error: Connection reset by peer]
rindolf has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
meatballhat has joined #ruby-lang
meatballhat has joined #ruby-lang
meatballhat has quit [Changing host]
vlad_starkov has joined #ruby-lang
matip has joined #ruby-lang
__BigO__ has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
__BigO__ has quit [Remote host closed the connection]
__BigO__ has joined #ruby-lang
leopard_me has joined #ruby-lang
gsav has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
thone has joined #ruby-lang
thone_ has quit [Ping timeout: 265 seconds]
gsav has quit [Quit: Lost terminal]
larrylv has joined #ruby-lang
gsav has joined #ruby-lang
ryez has quit [Ping timeout: 245 seconds]
rindolf has quit [Read error: Connection reset by peer]
rindolf has joined #ruby-lang
sush24 has joined #ruby-lang
jtoy has joined #ruby-lang
ruby-lang842 has joined #ruby-lang
larrylv has quit [Ping timeout: 245 seconds]
__BigO__ has quit [Remote host closed the connection]
leopard_me has quit [Quit: Computer has gone to sleep.]
ruby-lang842 has quit [Ping timeout: 245 seconds]
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
jtoy has quit [Quit: jtoy]
jxie has joined #ruby-lang
MaddinXx has joined #ruby-lang
bryanl has quit [Ping timeout: 264 seconds]
Marco has quit [Remote host closed the connection]
bryanl has joined #ruby-lang
drbrain has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
rindolf has quit [Quit: Yay! I'm a llama again. http://www.shlomifish.org/]
Banistergalaxy has joined #ruby-lang
<andrewvos> Happy new years!
<seanstickle> Not yet!
m3nd3s has joined #ruby-lang
drbrain has quit [Ping timeout: 265 seconds]
llaskin has joined #ruby-lang
AndChat- has quit [Ping timeout: 260 seconds]
llaskin has quit [Changing host]
llaskin has joined #ruby-lang
<llaskin> https://gist.github.com/ec9846179b8e1ae3a6a4 can anyone help me understand modules....I figured this would work?
<llaskin> i figured given the input I provided IRB, it would work...
blazes816 has joined #ruby-lang
ebouchut has quit [Quit: This computer has gone to sleep]
wnd has joined #ruby-lang
imperator has quit [Quit: Leaving]
Banistergalaxy has quit [Read error: Connection reset by peer]
ebouchut has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
Rarrikins has quit [Read error: Connection reset by peer]
Rarrikins has joined #ruby-lang
jonahR has quit [Read error: Connection reset by peer]
jonahR has joined #ruby-lang
<llaskin> yfeldblum: so i thsould be like this? https://gist.github.com/40c690dcf752b15cd1d8
<llaskin> this doesn't work
<llaskin> so I must be missing something
<yfeldblum> llaskin, what's with the @@ ?
<llaskin> instance var
<yfeldblum> llaskin, that's not instance var
<yfeldblum> llaskin, @my_ivar is an instance var; @@my_ivar is not
briantrust has joined #ruby-lang
<kurko_> Guys, I have a segfault that's 3000+ lines long. I can't copy the stacktrace because my terminal won't scroll that far (I have to research on this ) and using > and &> file won't output the trace to a file.
<kurko_> The failures happens on bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile &> segfault.txt
<kurko_> is there a ruby log somewhere with this segfault stack trace?
<yfeldblum> kurko_, segfaults are probably printed to stderr, which is FD 2
wyhaines has quit [Remote host closed the connection]
<yfeldblum> kurko_, cmd --with segfault 2>/path/to/segfault.txt
<kurko_> interesting.
nertzy2 has joined #ruby-lang
nertzy has quit [Ping timeout: 265 seconds]
megharsh is now known as superbot
Ridders24 has joined #ruby-lang
<llaskin> yfeldblum: so given this new gist: https://gist.github.com/e79fbcb5f45ae7b6b6ac which method1 definition will line 26 call? Or do method names have to be unique between classes?
<goshakkk> yfeldblum, > redirects stdout, 2> redirects stderr; &> redirects both
<Ridders24> Hi guys
<yfeldblum> 6> redirects FD 6
<Ridders24> is it possible to write a script that expands all tweets and then saves the webpage?
mistym has quit [Remote host closed the connection]
<yfeldblum> llaskin, the one declared in B
sailias has quit [Quit: Leaving.]
<darix> Ridders24: it would be much more useful to use the twitter API for that.
<llaskin> yfeldblum: why does B take precedence? Is the only solution to this to have unique method names?
<darix> there are various gems and tools to work with it.
<Ridders24> darix: yh already done that, and have a script that dumps out the time line, but I also wanted to see if it could be possible to save the html page with exactly how it looks
<darix> Ridders24: mechanize maybe
larrylv has joined #ruby-lang
<Ridders24> darix: thats a gem?
<darix> depends on how much JS stuff they use
<yfeldblum> llaskin, "solution" implies there's a problem
<goshakkk> yfeldblum, it wasn't 6>, it was &>
<darix> Ridders24: yes.
<Ridders24> darix: ok thanks I'll have a look into that
<yfeldblum> llaskin, there's no problem; there's only the way mixin modules work in ruby
<yfeldblum> llaskin, and they work a little bit like inheritance: methods with the same name override each other
tbuehlmann has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
larrylv has quit [Ping timeout: 245 seconds]
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
Rarrikins_q has joined #ruby-lang
Rarrikins has quit [Ping timeout: 276 seconds]
<llaskin> yfeldblum: https://gist.github.com/4421089 why does this not work but if the class and irb input are all just fed into IRB, works fine
<zzak> check out irb_load
<zzak> it is not the same thing as ruby's load
<zzak> essentially when you use 'load' in irb, thats what you're using
<llaskin> zzak: yea but the same error as described above happens when I run test.rb (which has the text that I input into IRB in it)
<zzak> try it in another file (not irb)
<zzak> i bet it works
<llaskin> C:\temp>ruby test.rb
<llaskin> test.rb:3: undefined method `method1' for #<Foo:0x2445cd8 @var="init_value"> (NoMethodError)
<yfeldblum> llaskin, you didn't include the module Foo::A into the class Foo
<llaskin> yfeldblum: but I defined A inside of Foo
<llaskin> isn't that enough?
<yfeldblum> llaskin, no
<llaskin> https://gist.github.com/2fe8717d54908ca415ab this isn't working either tho
JMcAfreak has quit [Quit: leaving]
<yfeldblum> llaskin, A has to exist and be a module before you can include it
<zzak> oh, and i think you need def A.method1
<llaskin> zzak didn't have to do that
<zzak> wait nvm
agile has joined #ruby-lang
<llaskin> ty yfeldblum and zzak
<zzak> yfeldblum: was right, im an idiot
<zzak> you needed to define A before including it
io_syl has joined #ruby-lang
<zzak> i saw 'load' and red flags went off haha
Ridders24 has quit [Ping timeout: 252 seconds]
<injekt> yay fucked up indenting :D
<yfeldblum> injekt, it's like reading English with. periods in. the wrong places,
<zzak> yay
<injekt> D:
<injekt> gtfo
<yfeldblum> zzak, ialsolikereadinglongsentenceswherepeoplesimplyforgettousespacestoseparatethewords
<injekt> wait
<injekt> zzak: how does your class def return the class?
meatballhat has quit [Ping timeout: 245 seconds]
<yfeldblum> injekt, apparently Module#include returns self
<zzak> :(
<yfeldblum> injekt, class Foo ; include(A).include(B).include(C) ; end
<injekt> ah yes
<injekt> tbh I thought that wouldn't work anyway
<zzak> i just noticed the indenting thing
<zzak> mondays suck
<injekt> aye
davidbalbert is now known as davidbalber|away
<zzak> fwiw, 1.8.7 is the same as 1.9.3-p362
<zzak> it doesnt outdent on 'end'
<zzak> but 2.0 just plain has no indentation
<injekt> so, we're going backwards?
<zzak> probably
<zzak> i will have to file a ticket
outoftime has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
nyuszika7h has quit [Read error: Connection reset by peer]
ebouchut has quit [Quit: This computer has gone to sleep]
nyuszika7h has joined #ruby-lang
Ridders24 has joined #ruby-lang
jonahR has quit [Quit: jonahR]
methods has joined #ruby-lang
mistym has quit [Remote host closed the connection]
methods has left #ruby-lang [#ruby-lang]
Nisstyre-laptop has joined #ruby-lang
larrylv has joined #ruby-lang
breakingthings has quit []
larrylv has quit [Ping timeout: 245 seconds]
thufir_ has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
Ridders24 has quit [Ping timeout: 252 seconds]
drbrain has joined #ruby-lang
wyhaines has joined #ruby-lang
francisfish has joined #ruby-lang
Aria has joined #ruby-lang
drbrain has quit [Ping timeout: 264 seconds]
kain has quit [Quit: exit]
mistym has joined #ruby-lang
davidbalber|away is now known as davidbalbert
llaskin has left #ruby-lang [#ruby-lang]
davidbalbert is now known as davidbalber|away
larrylv has joined #ruby-lang
davidbalber|away is now known as davidbalbert
davidbalbert is now known as davidbalber|away
larrylv has quit [Remote host closed the connection]
solars has quit [Ping timeout: 244 seconds]
breakingthings has joined #ruby-lang
<yfeldblum> IO.pipe gives a r stream and a w stream; it looks like the r stream is not sync, but the w stream is; what's the reason?
Axsuul has joined #ruby-lang
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
havenn has quit [Ping timeout: 245 seconds]
mistym has quit [Remote host closed the connection]
thufir_ has quit [Ping timeout: 255 seconds]
stonerfish has joined #ruby-lang
thufir_ has joined #ruby-lang
solars has joined #ruby-lang
blahwoop has quit [Ping timeout: 276 seconds]
Rarrikins has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 245 seconds]
Rarrikins_q has quit [Ping timeout: 255 seconds]
Banistergalaxy has joined #ruby-lang
gaveen has joined #ruby-lang
goshakkk has quit [Quit: Computer has gone to sleep.]
goshakkk has joined #ruby-lang
sepp2k has quit [Ping timeout: 265 seconds]
goshakkk has quit [Client Quit]
JoelMcCracken has joined #ruby-lang
__butch__ has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 245 seconds]
cirwin has quit [Quit: Leaving.]
Banistergalaxy has joined #ruby-lang
havenn has joined #ruby-lang
sepp2k has joined #ruby-lang
vlad_starkov has joined #ruby-lang
outoftime has quit [Ping timeout: 255 seconds]
blahwoop has joined #ruby-lang
briantrust has quit [Remote host closed the connection]
dous has joined #ruby-lang
wallerdev has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
drbrain has joined #ruby-lang
slyphon has quit [Ping timeout: 245 seconds]
thufir_ has left #ruby-lang [#ruby-lang]
sailias has joined #ruby-lang
outoftime has joined #ruby-lang
dous has quit [Remote host closed the connection]
larrylv has joined #ruby-lang
omnibenevolent has joined #ruby-lang
kurko_ has quit [Ping timeout: 265 seconds]
omnibenevolent has left #ruby-lang [#ruby-lang]
larrylv has quit [Ping timeout: 255 seconds]
daro_ has quit [Quit: Leaving]
dous has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
srbaker has quit [Quit: Computer has gone to sleep.]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
kurko_ has joined #ruby-lang
jondot` has joined #ruby-lang
havenn has quit [Ping timeout: 255 seconds]
vlad_starkov has joined #ruby-lang
Aria has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 244 seconds]
neocoin has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
ivanoats has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
meatballhat has joined #ruby-lang
meatballhat has quit [Changing host]
meatballhat has joined #ruby-lang
jbsan has joined #ruby-lang
toretore has joined #ruby-lang
micaeked has joined #ruby-lang
havenn has joined #ruby-lang
davidbalber|away is now known as davidbalbert
yfeldblum has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
pkrnj has joined #ruby-lang
kurko_ has quit [Ping timeout: 264 seconds]
kurko_ has joined #ruby-lang
JoelMcCracken has quit [Ping timeout: 244 seconds]
headius has joined #ruby-lang
outoftime has quit [Ping timeout: 255 seconds]
meatballhat has quit [Ping timeout: 252 seconds]
srbaker has joined #ruby-lang
outoftime has joined #ruby-lang
gaveen has quit [Remote host closed the connection]
outoftime has quit [Read error: Operation timed out]
havenn has quit [Ping timeout: 245 seconds]
richardjortega has joined #ruby-lang
mercwithamouth has joined #ruby-lang
outoftime has joined #ruby-lang
kurko_ has quit [Ping timeout: 245 seconds]
nyuszika7h has quit [Remote host closed the connection]
JMcAfreak has joined #ruby-lang
nyuszika7h has joined #ruby-lang
lsegal has joined #ruby-lang
dous has quit [Ping timeout: 245 seconds]
kurko_ has joined #ruby-lang
blahwoop has quit [Ping timeout: 276 seconds]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
lsegal has joined #ruby-lang
lupine is now known as RJ11_
RJ11_ is now known as lupine
<rue> yfeldblum: Dunno, sounds odd. You can sync it manually
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
fowl has left #ruby-lang ["Leaving"]
vlad_starkov has joined #ruby-lang
postmodern has joined #ruby-lang
seanstickle has quit [Quit: seanstickle]
yfeldblum has quit [Ping timeout: 245 seconds]
kurko_ has quit [Ping timeout: 252 seconds]
drbrain has quit [Remote host closed the connection]
srbaker has quit [Quit: Computer has gone to sleep.]
kurko_ has joined #ruby-lang
drbrain has joined #ruby-lang
johnnyporkchop has joined #ruby-lang
outoftime has quit [Ping timeout: 255 seconds]
Nisstyre-laptop has quit [Read error: Connection reset by peer]
JMcAfreak has quit [Quit: leaving]
Ridders24 has joined #ruby-lang
rsl has quit [Quit: Computer has gone to sleep.]
srbaker has joined #ruby-lang
blacktulip has quit [Remote host closed the connection]
s1n4 has joined #ruby-lang
outoftime has joined #ruby-lang
yfeldblum has joined #ruby-lang
meatballhat has joined #ruby-lang
meatballhat has quit [Changing host]
meatballhat has joined #ruby-lang
havenn has joined #ruby-lang
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 245 seconds]
m3nd3s has quit [Remote host closed the connection]
srbaker has quit [Quit: Computer has gone to sleep.]
neocoin has joined #ruby-lang
marr has quit []
rebelcan has joined #ruby-lang
slyphon has joined #ruby-lang
Ridders24 has quit [Ping timeout: 276 seconds]
micaeked has quit [Ping timeout: 252 seconds]
sush24 has quit [Quit: This computer has gone to sleep]
wyhaines has quit [Read error: Connection reset by peer]
meatballhat has quit [Ping timeout: 265 seconds]
wyhaines has joined #ruby-lang
meatballhat has joined #ruby-lang
meatballhat has quit [Changing host]
meatballhat has joined #ruby-lang
Ridders24 has joined #ruby-lang
outoftime has quit [Ping timeout: 245 seconds]
Banistergalaxy has quit [Ping timeout: 245 seconds]
Banistergalaxy has joined #ruby-lang
wyhaines has quit [Read error: Connection reset by peer]
wyhaines has joined #ruby-lang
headius has quit [Quit: headius]
znouza has quit [*.net *.split]
Makiavel has quit [*.net *.split]
shaman42 has quit [*.net *.split]
Swimming_Bird has quit [*.net *.split]
rking has quit [*.net *.split]
s4muel has quit [*.net *.split]
CoverSlide has quit [*.net *.split]
matled has quit [*.net *.split]
joschi_ has quit [*.net *.split]
jnoon has quit [*.net *.split]
zcl0ud has quit [*.net *.split]
meizaps has quit [*.net *.split]
epitron has quit [*.net *.split]
madveru has quit [*.net *.split]
Pricey has quit [*.net *.split]
foca has quit [*.net *.split]
matled has joined #ruby-lang
shaman42 has joined #ruby-lang
Ridders24 has quit [Ping timeout: 252 seconds]
joschi_ has joined #ruby-lang
epitron has joined #ruby-lang
epitron has quit [Changing host]
epitron has joined #ruby-lang
znouza has joined #ruby-lang
s4muel has joined #ruby-lang
Swimming_Bird has joined #ruby-lang
madveru has joined #ruby-lang
Makiavel has joined #ruby-lang
jnoon has joined #ruby-lang
meizaps has joined #ruby-lang
rking has joined #ruby-lang
Pricey has joined #ruby-lang
Makiavel is now known as Guest22294
foca has joined #ruby-lang
nertzy2 has quit [Ping timeout: 260 seconds]
Nisstyre-laptop has joined #ruby-lang
CoverSlide has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
slyphon has quit [Ping timeout: 245 seconds]
sustainableweb has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
meatballhat has quit [Ping timeout: 264 seconds]
breakingthings has quit []
kurko_ has quit [Ping timeout: 252 seconds]
intellitech has joined #ruby-lang
seanstickle has joined #ruby-lang
sailias has quit [Quit: Leaving.]
banisterfiend has joined #ruby-lang
<banisterfiend> happy new year frens
jondot` has quit [Ping timeout: 276 seconds]
<seanstickle> Goodbye to the dead year
<emocakes> long live the new year!
<seanstickle> Until we kill that one too
bryno has quit [Read error: Operation timed out]
bryno has joined #ruby-lang
seanstickle has quit [Quit: seanstickle]
JMcAfreak has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
sailias has joined #ruby-lang
spuk has joined #ruby-lang
nazty has quit [Read error: Connection reset by peer]
superbot has quit [Ping timeout: 245 seconds]
nazty has joined #ruby-lang
nignaztic has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 252 seconds]
s1n4 has quit [Ping timeout: 265 seconds]
rebelcan has quit [Ping timeout: 255 seconds]
vlad_starkov has quit [Ping timeout: 265 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
superbot has joined #ruby-lang