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
havenn has quit [Ping timeout: 240 seconds]
JoshWines has joined #ruby-lang
havenn has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
qwerxy has quit [Quit: offski]
deryl has quit [Quit: deryl]
cantonic has quit [Ping timeout: 240 seconds]
t8512 has quit [Remote host closed the connection]
t60034 has joined #ruby-lang
bfreeman has quit [Quit: bfreeman]
cantonic has joined #ruby-lang
brianpWins has joined #ruby-lang
deryl has joined #ruby-lang
mrsolo has quit [Quit: Leaving]
sailias has joined #ruby-lang
sailias1 has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
chimkan has left #ruby-lang [#ruby-lang]
AndChat| has joined #ruby-lang
masterkorp has joined #ruby-lang
sailias has quit [Ping timeout: 244 seconds]
tgriffin2081 has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
neocoin has joined #ruby-lang
<masterkorp> Guys i need an extra pair of eyes on a very simple script
<masterkorp> /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- file (LoadError)
<masterkorp> from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
<masterkorp> from templates/default/syllabus_pid.rb:2:in `<main>'
<masterkorp> while requiring the file class
tef_ has left #ruby-lang [#ruby-lang]
t60034 has quit [Remote host closed the connection]
t56223 has joined #ruby-lang
<havenn> masterkorp: The "O" in "file = File.Open" is caps
Banistergalaxy has quit [Ping timeout: 248 seconds]
banisterfiend has quit [Ping timeout: 268 seconds]
tef has joined #ruby-lang
<masterkorp> havenn: correct i still dont get with the require fails
tef has left #ruby-lang [#ruby-lang]
<masterkorp> oh its fileutils
<headius> Dunno who might be a JRuby user in here, but: http://blog.jruby.org/2012/08/a_last_hurrah_for_jruby_1_6/
<Spaceghostc2c> I are.
<Spaceghostc2c> :(
tenderlo_ has quit [Remote host closed the connection]
lcdhoffman has quit [Quit: lcdhoffman]
<Spaceghostc2c> headius: Been using JRuby with some graphdb's that aren't Neo4J to do some Business Intelligence application development.
isale-eko has quit [Quit: ChatZilla 0.9.88.2 [Firefox 12.0/20120420145725]]
<headius> ahh interesting
<headius> I'm not familiar with any other graph databases
<Spaceghostc2c> headius: OrientDB is my favorite.
<masterkorp> like graphite ?
<Spaceghostc2c> There's Titan, and a bunch of others.
<Spaceghostc2c> masterkorp: Nope.
<headius> Oh, I have heard of OrientDB
<headius> yeah, I figured there were more out there, but I know Neo4J the best because they have spent a lot of time making it work well with JRuby
<headius> or at least, Neo4J users have spent that time :)
<Spaceghostc2c> headius: It's pretty cool, the libs out there. I'm responsible for working on a jruby orientdb gem.
seanstickle has joined #ruby-lang
mark06 has joined #ruby-lang
<Spaceghostc2c> Flustrating stuff.
mark06 has left #ruby-lang [#ruby-lang]
dous has quit [Remote host closed the connection]
<headius> frustrating how?
sailias1 has quit [Quit: Leaving.]
headius has quit [Quit: headius]
S2kx has joined #ruby-lang
havenn has quit [Remote host closed the connection]
S1kx has quit [Ping timeout: 244 seconds]
deryl has quit [Quit: deryl]
cantonic has quit [Quit: cantonic]
AndChat| has quit [Ping timeout: 245 seconds]
<masterkorp> What happened to the File.Write ?
<masterkorp> not in here
<steveklabnik> masterkorp: i think write is part of io
<steveklabnik> which file is an implementation of
<masterkorp> So i have no idea why this is file is empty
neocoin has quit [Remote host closed the connection]
<masterkorp> Do you see any problem here ?
<masterkorp> yet the file is empty
<steveklabnik> are you sure that you're writing data?
<masterkorp> the pid does have output
t56223 has quit [Remote host closed the connection]
<masterkorp> but the file goes empty
t52017 has joined #ruby-lang
<masterkorp> is there any syntax error ?
bfreeman has joined #ruby-lang
<masterkorp> steveklabnik: how can i be sure ?
<steveklabnik> try to write with a string instead of something that could be nil
<steveklabnik> try to write 'hello' to the file
<steveklabnik> try to puts the pid
<masterkorp> its it not
<masterkorp> steveklabnik: http://pastie.org/4600769
<masterkorp> i tried
<masterkorp> line 10
sn0wb1rd has quit [Quit: sn0wb1rd]
<masterkorp> that is the output
<steveklabnik> you didnt put inside the write
<steveklabnik> line 19 of your script
<steveklabnik> puts what pid.gets dreturns
<masterkorp> oh
<masterkorp> why its empty there =
<masterkorp> ?
replore has joined #ruby-lang
ghanima has quit [Ping timeout: 248 seconds]
<masterkorp> Any help ?
<masterkorp> steveklabnik: ^
<masterkorp> oh weird
<masterkorp> pid IO object gets emptied out when i use any file
<masterkorp> i guess because i use it statically ?
<masterkorp> Any ideas ?
<steveklabnik> no idea.
wpaulson has joined #ruby-lang
<masterkorp> to the mailling lists !
<masterkorp> fuck me this was weird
WillMarshall has joined #ruby-lang
diegoviola has quit [Ping timeout: 272 seconds]
sn0wb1rd has joined #ruby-lang
banisterfiend has joined #ruby-lang
gmci has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
kingCrawlerx has joined #ruby-lang
kingCrawlerx has quit [Client Quit]
savage- has quit [Ping timeout: 245 seconds]
tenderlove has joined #ruby-lang
tenderlove has quit [Ping timeout: 244 seconds]
areil has joined #ruby-lang
alvaro_o has quit [Quit: Ex-Chat]
Bdawk has joined #ruby-lang
<Bdawk> `net rpc service status servicename -I #{ip} -U #{WINUSER}%#{WINPASS} | grep running` works, but if i replace servicename with a variable #{service} with the same string it doesnt. hmmm
kingCrawlerx has joined #ruby-lang
t52017 has quit [Remote host closed the connection]
t65440 has joined #ruby-lang
banisterfiend has quit [Ping timeout: 272 seconds]
lcdhoffman has joined #ruby-lang
ghanima has joined #ruby-lang
chimkan has joined #ruby-lang
dammitradar has quit [Remote host closed the connection]
havenn has joined #ruby-lang
slyphon has joined #ruby-lang
daidoji has joined #ruby-lang
codewrangler has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<daidoji> hello everyone
<daidoji> don't know if anyone in here knows it, but is there a gem or something that will generate the ruby-lang.org's code formatting?
<rhizmoe> is it ok to test on specific return values?
<daidoji> like I write ruby code in a text file then gem returns the markup?
<daidoji> that I can CSS and whatnot?
<rhizmoe> daidoji: you mean like the "Documentation" heading here where it says it's RDoc? http://www.ruby-lang.org/en/documentation/
<rhizmoe> oh, just code blocks
<rhizmoe> you can do it with css and <code> tags
<daidoji> no
<daidoji> well I mean I know I could do it myself
<daidoji> but I was hoping there was already a handy gem or something that wuold do it for me
<rhizmoe> you want syntax highlighting?
<daidoji> no I want to write ruby code in some kind of text format thats not too strenuous, and then have it generate those things inside the <code> tags that I can CSS
<daidoji> which is kind of how I imagined they generated those examples and whatnot
<daidoji> because I'd hate to think that someone did all that markup by hand
seanstickle has quit [Quit: seanstickle]
d3vic3 has quit [Ping timeout: 252 seconds]
havenn has quit [Remote host closed the connection]
d3vic3 has joined #ruby-lang
m3nd3s has quit []
tenderlove has joined #ruby-lang
tenderlove has quit [Ping timeout: 268 seconds]
anaconda99 has joined #ruby-lang
yankov has quit [Quit: yankov]
lsegal has joined #ruby-lang
yankov has joined #ruby-lang
WillMarshall has quit [Quit: Computer has gone to sleep.]
Bdawk has quit [Ping timeout: 245 seconds]
Kero has quit [Read error: Operation timed out]
t65440 has quit [Remote host closed the connection]
t83920 has joined #ruby-lang
gmci has joined #ruby-lang
Kero has joined #ruby-lang
schroedinbug has quit [Ping timeout: 272 seconds]
krz has quit [Quit: krz]
slyphon has quit [Quit: WeeChat 0.3.7]
Dreamer3 has quit [Ping timeout: 245 seconds]
Dreamer3 has joined #ruby-lang
schroedinbug has joined #ruby-lang
r0bby_ is now known as robbyoconnor
chimkan has quit [Quit: chimkan]
yankov has quit [Quit: yankov]
neocoin has joined #ruby-lang
WillMarshall has joined #ruby-lang
ghanima has quit [Quit: Leaving.]
tenderlove has joined #ruby-lang
kingCrawlerx has quit [Quit: Computer has gone to sleep]
banisterfiend has joined #ruby-lang
tenderlove has quit [Ping timeout: 240 seconds]
mistym has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
savage- has joined #ruby-lang
replore has quit [Remote host closed the connection]
dracco23 has quit [Quit: dracco23]
AntiTyping has quit [Quit: AntiTyping]
joshw668 has joined #ruby-lang
joshw668 has quit [Remote host closed the connection]
JoshWines has quit [Quit: Leaving]
d3vic3 has quit [Read error: Operation timed out]
d3vic3 has joined #ruby-lang
josh^ has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
<steveklabnik> daidoji: pygments
<steveklabnik> dammit
<steveklabnik> that
<steveklabnik> daidoji: ^
<postmodern> daidoji, there's also CodeRay (http://coderay.rubychan.de/), but pygments is probably a better choice
<postmodern> daidoji: also https://github.com/grosser/ultraviolet
neocoin has joined #ruby-lang
countdigi has quit [Quit: leaving]
countdigi has joined #ruby-lang
headius has joined #ruby-lang
yankov has joined #ruby-lang
replore has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
dc5ala has joined #ruby-lang
tenderlove has quit [Ping timeout: 252 seconds]
JohnBat26 has joined #ruby-lang
t83920 has quit [Remote host closed the connection]
t28189 has joined #ruby-lang
rue|w has joined #ruby-lang
headius has quit [Quit: headius]
sepp2k has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
burgestrand has joined #ruby-lang
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
|Vargas| has joined #ruby-lang
chendo_ has quit [Ping timeout: 246 seconds]
chendo_ has joined #ruby-lang
chendo_ has quit [Changing host]
chendo_ has joined #ruby-lang
yxhuvud has joined #ruby-lang
jackhammer2022 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<certainty> moin rubyiasts
<certainty> nice, coderay. I haven't talked to murphy in a while
saxy has quit [Remote host closed the connection]
saxy has joined #ruby-lang
rue|w has joined #ruby-lang
saxy has quit [Ping timeout: 272 seconds]
t28189 has quit [Remote host closed the connection]
t6632 has joined #ruby-lang
ruurd has joined #ruby-lang
flebel has quit [Ping timeout: 268 seconds]
foca_ has quit [Ping timeout: 246 seconds]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
foca has joined #ruby-lang
mytrile has joined #ruby-lang
neocoin has joined #ruby-lang
savage- has quit [Remote host closed the connection]
nazty has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
naz has quit [Ping timeout: 260 seconds]
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
rking has quit [Ping timeout: 246 seconds]
qwerxy has joined #ruby-lang
spuk has joined #ruby-lang
Quatrerwin has joined #ruby-lang
gnufied has joined #ruby-lang
t6632 has quit [Remote host closed the connection]
t77178 has joined #ruby-lang
Asher has quit [Ping timeout: 244 seconds]
kitallis has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
rking has joined #ruby-lang
banisterfiend has joined #ruby-lang
gsav has quit [Ping timeout: 252 seconds]
banisterfiend has quit [Ping timeout: 240 seconds]
solars has joined #ruby-lang
flebel has joined #ruby-lang
gsav has joined #ruby-lang
franckverrot has quit [Ping timeout: 264 seconds]
franckverrot has joined #ruby-lang
dhruvasagar has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
tgriffin2081 has quit [Ping timeout: 260 seconds]
tbuehlmann has joined #ruby-lang
tenku has joined #ruby-lang
rue|w has joined #ruby-lang
zmack has joined #ruby-lang
d3vic3 has quit [Quit: leaving]
d3vic3 has joined #ruby-lang
IPGlider has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
<yorickpeterse> Morning
<erikh> hi
<rue|w> HI THERE
judofyr has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
tbuehlmann has joined #ruby-lang
thone has quit [Ping timeout: 246 seconds]
thone has joined #ruby-lang
t77178 has quit [Remote host closed the connection]
t40246 has joined #ruby-lang
Musfuut has quit [Read error: Operation timed out]
CapnKernul has joined #ruby-lang
cschneid has quit [Ping timeout: 245 seconds]
tenku has quit [Remote host closed the connection]
WillMarshall has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
workmad3 has joined #ruby-lang
nXqd has joined #ruby-lang
<nXqd> hi guys
<nXqd> do we have any gem to replace textexpander
Tearan has quit [Quit: Sleepy Badger....]
rue|w has quit [Remote host closed the connection]
ioga_wrk has quit [Quit: Leaving]
just4dos_ has quit [Ping timeout: 272 seconds]
<gnufied> morning
replore has quit [Remote host closed the connection]
<gnufied> nXqd: can you elaborate more?
brianpWins has quit [Ping timeout: 244 seconds]
<gnufied> textexpander looks like a desktop app
<nXqd> yeah, I know but something work like a simple server to catch our typing :P. Just my thought
rolfb has joined #ruby-lang
t40246 has quit [Remote host closed the connection]
t28453 has joined #ruby-lang
<gnufied> nah, one can write a desktop app using macruby or gnome-ruby as well.
<gnufied> I have personally used gnome-ruby quite a bit and it is possible to do with gnome-ruby
rue|w has joined #ruby-lang
<nXqd> technically, can we write a simple server in commandline to catch key typing ?
ioga_wrk has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
runeb has joined #ruby-lang
<yorickpeterse> Depends on the platform
<nXqd> let's say it's mac
<yorickpeterse> I believe you could do so on Linux but you'll have to fuck around with the whole X stack most likely
<yorickpeterse> Not sure how it would work out on OS X
just4dos has joined #ruby-lang
yats has joined #ruby-lang
<nXqd> yorickpeterse: thanks :)
<gnufied> actually, I have already done it.
<gnufied> it is part of another app, but this extension can capture all keys and it sits in system-tray on gnome
yankov has quit [Quit: yankov]
<gnufied> not sure, if it is still working because I wrote it, 4 years ago
goshakkk has joined #ruby-lang
<nXqd> thanks for sharing
robotmay has joined #ruby-lang
gregmoreno has quit [Read error: Connection reset by peer]
gregmoreno has joined #ruby-lang
sora_h is now known as s0ra_h
rking has quit [Ping timeout: 245 seconds]
cdt has joined #ruby-lang
rue|w has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
<nXqd> t
<nXqd> exit
nXqd has quit [Quit: leaving]
banisterfiend has joined #ruby-lang
nXqd has joined #ruby-lang
t28453 has quit [Remote host closed the connection]
t62643 has joined #ruby-lang
qwerxy has joined #ruby-lang
s0ra_h is now known as sora_h
yankov has joined #ruby-lang
CapnKernul has quit [Quit: Leaving...]
zigidias has joined #ruby-lang
sora_h is now known as s0ra_h
kain has quit [Ping timeout: 268 seconds]
rue|w has joined #ruby-lang
runeb- has joined #ruby-lang
runeb has quit [Killed (calvino.freenode.net (Nickname regained by services))]
runeb- is now known as runeb
_guns_ has joined #ruby-lang
zmack_ has joined #ruby-lang
t62643 has quit [Remote host closed the connection]
t78476 has joined #ruby-lang
My_Hearing has joined #ruby-lang
banisterfiend` has joined #ruby-lang
sepp2k1 has joined #ruby-lang
areil_ has joined #ruby-lang
gix- has joined #ruby-lang
gix has quit [Disconnected by services]
banisterfiend has quit [*.net *.split]
cdt has quit [*.net *.split]
zmack has quit [*.net *.split]
foca has quit [*.net *.split]
Quatrerwin has quit [*.net *.split]
ruurd has quit [*.net *.split]
sepp2k has quit [*.net *.split]
dc5ala has quit [*.net *.split]
JohnBat26 has quit [*.net *.split]
areil has quit [*.net *.split]
Aphelion has quit [*.net *.split]
Nisstyre_ has quit [*.net *.split]
guns has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
beawesomeinstead has quit [*.net *.split]
jstemmer has quit [*.net *.split]
vlad_starkov has joined #ruby-lang
rue|w has quit [Ping timeout: 268 seconds]
dc5ala has joined #ruby-lang
cdt has joined #ruby-lang
t78476 has quit [Remote host closed the connection]
JohnBat26 has joined #ruby-lang
My_Hearing is now known as Mon_Ouie
t90815 has joined #ruby-lang
Quatrerwin has joined #ruby-lang
Quatrerwin has quit [Changing host]
Quatrerwin has joined #ruby-lang
Nisstyre_ has joined #ruby-lang
foca has joined #ruby-lang
Aphelion has joined #ruby-lang
Aphelion has quit [Changing host]
Aphelion has joined #ruby-lang
Aphelion has joined #ruby-lang
daidoji has quit [Ping timeout: 240 seconds]
robotmay_ has joined #ruby-lang
adambeynon has joined #ruby-lang
robotmay has quit [Ping timeout: 245 seconds]
justinmcp has joined #ruby-lang
ando_ has quit [Read error: Connection reset by peer]
s0ra_h is now known as sora_h
ando has joined #ruby-lang
sora_h is now known as s0ra_h
s0ra_h is now known as sora_h
shyouhei has quit [Ping timeout: 272 seconds]
jstemmer_ has joined #ruby-lang
yats has quit [Ping timeout: 245 seconds]
shyouhei has joined #ruby-lang
shyouhei has quit [Client Quit]
shyouhei has joined #ruby-lang
yankov has quit [Quit: yankov]
dhruvasagar has quit [Ping timeout: 265 seconds]
dhruvasagar has joined #ruby-lang
goshakkk has quit [Quit: Computer has gone to sleep.]
codewrangler has joined #ruby-lang
toertore has joined #ruby-lang
rue|w has joined #ruby-lang
t90815 has quit [Remote host closed the connection]
t99156 has joined #ruby-lang
Criztian has joined #ruby-lang
_guns_ has quit [Quit: _guns_]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
sora_h is now known as s0ra_h
rue|w has quit [Ping timeout: 272 seconds]
goshakkk has joined #ruby-lang
dkannan has joined #ruby-lang
cschneid has joined #ruby-lang
postmodern has quit [Quit: Leaving]
robotmay_ has quit [Remote host closed the connection]
seanstickle has joined #ruby-lang
Skif has quit [Ping timeout: 240 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
burgestrand has joined #ruby-lang
dhruvasagar has joined #ruby-lang
<masterkorp> Do i need to be subscribed to the ruby-talk mailing list to post ?
runeb has quit [Remote host closed the connection]
<chris2> iirc yes
burgestrand has quit [Quit: Leaving.]
<gnufied> not if you use ruby-forum
<gnufied> (not sure, if it is still operational)
<chris2> in the Good Old Days(TM), you could just post to comp.lang.ruby
s0ra_h is now known as sora_h
<gnufied> never used that one and unsubscribed from ruby-lang recently. :(
<gnufied> ruby-talk *
rking has joined #ruby-lang
<chris2> yeah
<chris2> done that long ago :P
runeb has joined #ruby-lang
limes has joined #ruby-lang
limes has quit [Client Quit]
s1n4 has joined #ruby-lang
<rolfb> anyone have experience upgrading system ruby from 1.8.6 to 1.8.7?
<rolfb> curious what might break
robotmay has joined #ruby-lang
<banisterfiend`> hehe
<gnufied> rails.
<gnufied> there was a .char or some method they were monkey patching, which was added in ruby itself later on.
<gnufied> also depends on which version of rails you are running.
<rolfb> gnufied: various versions :)
<rolfb> rails (2.3.10, 2.3.9, 2.3.8, 2.3.5, 2.3.2, 2.2.2, 2.1.2, 2.1.1, 2.1.0, 2.0.2, 1.2.6)
<rolfb> o_O
<rolfb> and that's not counting the vendored ones
<banisterfiend`> i wonder if this would do anything, sensible, my guess is no: binding.of_caller(1).eval "$c = callcc { |c| $c =c }"
<manveru> where do you get of_caller from?
<banisterfiend`> yeah
<manveru> ah
<banisterfiend`> i want to be able to save teh stack (using callcc) before an exception is raised so i can restore it later on
Musfuut has joined #ruby-lang
Musfuut is now known as Guest65367
<judofyr> banisterfiend`: not satisfied with overriding #raise?
<manveru> reinventing lisp... one feature at a time :)
<banisterfiend`> judofyr: i can't in this situation if i want to hook C stuff too
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
seanstickle has quit [Quit: seanstickle]
<masterkorp> famm handy
<masterkorp> manveru: i have question for you br0
<masterkorp> why does the io object goes nil after the file class usage
<masterkorp> ?
areil_ has quit []
areil has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
<manveru> how on earth do you return 0 from toplevel?
<banisterfiend`> judofyr: any idea what an iframe is?
<masterkorp> manveru: for script reading :p
<banisterfiend`> no, i func
<banisterfiend`> ifunc*
<manveru> masterkorp: you mean initctl_status becomes nil?
<judofyr> banisterfiend`: nope
<manveru> or that initctl_status.gets returns nil
<darix> masterkorp: if you comment out the first gets
<masterkorp> manveru: yes
<masterkorp> darix: if i ?
<darix> does it still return nil inside the block?
rue|w has joined #ruby-lang
<manveru> this isn't reddit... you can't just answer such a question with yes :P
<darix> also you cant answer multiple choice questions with yes
<masterkorp> manveru: what's reddit ?
<manveru> i hope you'll never find out
<masterkorp> i know
<masterkorp> no offroaders there
<manveru> anw, initctl_status can never become nil
<masterkorp> manveru: anyways, yes the inictl_status becomes nil
<masterkorp> just like that
<masterkorp> i have no idea why
<manveru> unless you assign nil to it, or use one of the evil banisterfiend` created
<masterkorp> manveru: try it and see :P
<manveru> i don't have initctl
<darix> masterkorp: i am sure you just meant to say "initctl_status.gets" becomes nil
<darix> which if you call it twice ... is to be expected imho
<masterkorp> darix: yeah ? why ?
<manveru> gets returns nil if there is nothing to get anymore
* masterkorp facepalms
<masterkorp> OFC
<masterkorp> how could i forget that
<masterkorp> i guess that why i never use gets
<manveru> i guess that's _because_ you never use gets :)
<masterkorp> yeah
<masterkorp> i am a gets noob
* masterkorp curses gets
<manveru> while line = gets; p line; end
<manveru> handy stuff
<masterkorp> anyways this kiled my curiosity
<masterkorp> finally
<masterkorp> manveru: thanks br0
<manveru> np
<masterkorp> manveru: btw my latest obsession http://freeems.org/
<manveru> how about a short sentence that explains what this is?
<masterkorp> Its a engine computer
<masterkorp> control all the aspects of an engine
<manveru> templating engine?
<masterkorp> real time campable
<masterkorp> manveru: a car engine
<manveru> oO
<masterkorp> petrol engines
<masterkorp> i am making diesel support
<manveru> like... a ROM for car engines?
<masterkorp> manveru: yeah, it uses the freescalse mcu with the XGATE coprossecor
<masterkorp> the first open source firmware
yats has joined #ruby-lang
<manveru> guess my car is the last place where i'd switch firmware :)
<matti> Hi manveru ;]]
<manveru> oi matti
<matti> manveru: LTNS here, been busy?
<manveru> very
t99156 has quit [Remote host closed the connection]
mytrile has quit [Remote host closed the connection]
t62418 has joined #ruby-lang
<manveru> doing almost no ruby these days though :(
<matti> WOT?
<matti> manveru: What do you do then?
<manveru> war on terror?
<manveru> web of trust?
<manveru> world of tanks?
<manveru> anw, i do Go mostly
<matti> Go.
<matti> I see.
<matti> Anything fun?
<manveru> couldn't find any ruby jobs that didn't involve rails
<matti> manveru: Puppet Labs in Portland?
<manveru> it's pretty fun, yeah :)
<matti> manveru: OpsCode?
<manveru> do they hire remote?
<matti> Not sure.
<matti> Move to Portland, its a decent place as I was told ;]
<matti> manveru: There is github, they have a lot remote.
<manveru> portland is in the US though
<manveru> moving there is not easy
<matti> Oh, your are in Germany?
<manveru> yeah
<matti> Oh dear.
<matti> manveru: .ch have some nice startups.
<matti> manveru: Zurich seems to be a nice place too.
<manveru> ch is damn expensive
<manveru> and i'm stuck here for another 2 years or so
justinmcp has quit [Ping timeout: 265 seconds]
<matti> ;/
<manveru> hehe
<manveru> exactly
justinmcp has joined #ruby-lang
<manveru> matti: i work at iron.io right now, and they're doing decently
Theueip has joined #ruby-lang
<erikh> opscode hires remote
<erikh> I need delicious lasagna
<matti> manveru: :)
josh^ has quit [Read error: Connection reset by peer]
<matti> manveru: It will cheer you up -- I wanted to get out of Systems, so I went for Java position. Ended up in support role coding in PHP.
dhruvasagar has quit [Ping timeout: 240 seconds]
<matti> manveru: I am considering committing sepuku.
<matti> manveru: :)
<manveru> ouh
<manveru> yeah... that's about the stuff i could get in my area
<manveru> that's why i only work remote
dhruvasagar has joined #ruby-lang
<manveru> europe is depressing :(
<manveru> "Opscode has employees in almost every time zone of the lower 48. We've worked hard to create a remote-friendly culture and believe you can have a big impact no matter where you live."
<matti> Nice.
<manveru> according to ddg, lower 48 only includes the US
<matti> manveru: Companies exhibit nasty hiring practices as of late in London -- they will get you in dangling a carrot in front of you, and then you will end up doing some awful shit.
<matti> manveru: :<
<manveru> i heard berlin is becoming a good place
<erikh> opscode is good people. i'd look into it.
<erikh> been trying to get in myself for a number of months.
_s1n4_ has joined #ruby-lang
<manveru> when my current contract is done i'll look into it
toertore has quit [Quit: This computer has gone to sleep]
<manveru> but ruby community these days is not pretty :(
s1n4 has quit [Ping timeout: 252 seconds]
kingCrawlerx has joined #ruby-lang
<erikh> devops stuff has so far been the exception to the rule as far as I've been concerned
<erikh> otherwise, yes, I agree.
<erikh> been tinkering with rust, a similar language to Go
<darix> erikh: i cant wait for mozilla foundation trying to redo all of firefox in it ;)
vlad_starkov has quit [Remote host closed the connection]
<manveru> i got into a fight with the rust people about the need for semicolons... :(
<erikh> darix: eh, that's far off.
<erikh> ah, you are pickier than I am
<darix> erikh: not sure it is a good idea to begin with ... given the amount of code in firefox
rue|w has quit [Remote host closed the connection]
<manveru> yeah, i hate that about me
<manveru> that's why go is a nice place... everybody has the same code style
<erikh> darix: I'm not a fan of the big rewrite, but I imagine a great deal of firefox code is safety checks and GC that rust could eliminate
<erikh> ... which is pretty standard for C and C++ programs
kingCrawlerx has quit [Client Quit]
<manveru> i pondered joining mozilla to work on b2g
<darix> b2g?
<erikh> man, mozilla work would be awesome]
<manveru> boot to gecko
t62418 has quit [Remote host closed the connection]
<darix> ah
<erikh> wish I had options like that.
yats has quit [Quit: Leaving]
t37871 has joined #ruby-lang
rue|w has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
<matti> :)
<manveru> i was mostly interested because of the webrtc stuff
<matti> Mozilla seems like a fun place.
<matti> I've meet some of folks from Mozilla in London.
<matti> All decent people with nice ideas.
<manveru> but mozilla is scary too, if google stops funding them
<gnufied> erikh: well, if you are looking for something in Leeds, Brightbox is pretty good place. been working them for a year, good folks.
<matti> And it still is amusing "We make no money" :)
yats has joined #ruby-lang
<matti> gnufied: Could services?
<gnufied> matti: http://brightbox.com/ (cloud Iaas)
<manveru> I standing for infrastructure?
<gnufied> apparently so!
<manveru> :)
kingCrawlerx has joined #ruby-lang
<manveru> a bottle of moretti on the frontpage, must be good
<matti> :)
<manveru> gnufied: do you do anything not involving rails too?
_s1n4_ has quit [Quit: leaving]
yats has quit [Client Quit]
<gnufied> manveru: yup.
<matti> Java?
<matti> Python?
<gnufied> lol.
<matti> Ocaml? :p
<manveru> Perl?
<matti> Erlang would be cool.
<matti> ;d
<erikh> gnufied: eh, i'm in the bay area, a bit away from leeds
yats has joined #ruby-lang
<matti> erikh: A throw of a stone ;p
<erikh> haha
<gnufied> ha ha.
<manveru> so you use pg internally but offer mysql only? :P
<matti> Haha
<erikh> speaking of which, i haven't been feeling well tonight and i think I'm actually tired now
<erikh> so night, folks.
<manveru> sleep well
<gnufied> nn
<masterkorp> manveru: so Are you doing Go?
<manveru> "As always, recruitment agents should e-mail our special recruitment company email address: root@localhost" :D
<masterkorp> i dont get why people like that
<jaska> heh
<manveru> masterkorp: it's the language i hate the least atm
<masterkorp> its like C without its lower side capabilities
<jaska> does it still have a conservative gc?:(
<manveru> jaska: yeah
<matti> manveru: They simply use THE real database ;d
<manveru> matti: it's just fun how everybody uses pg themselves, but offer only hosted mysql
<masterkorp> ahahah
<masterkorp> I wish i could start using pg here
<masterkorp> wish i going to have to happen sooner or later
<masterkorp> mysql percona just doesn't cut it
<matti> manveru: Because business has no idea what good DB is ;d
<matti> manveru: And since it sells ;p
<manveru> i heard it was because setting size limits on pg is harder
<manveru> mysql can just cut off random data, and nobody notices
<masterkorp> i lack high perfomance query analisys tools
yats has quit [Quit: Leaving]
<matti> manveru: Debugging what your DB is doing in PG is so much more pleasunt.
yats has joined #ruby-lang
<matti> manveru: http://www.depesz.com/ -- he writes a lot about PG.
IPGlider has quit []
<matti> Some nice hidden gems there.
<manveru> masterkorp: anw, go concurrency is nice, as is lack of inheritance and the way imports are done
<manveru> having no generics or polymorphism OTOH has caused me quite some headaches, but that's no better in C
<masterkorp> yeah but see was the low level capbilities
<masterkorp> to other stuff i can use C++ or ruby
<manveru> i mostly write servers in it, so not much i'm missing
rolfb_ has joined #ruby-lang
rolfb has quit [Read error: No route to host]
<darix> manveru: C just got Generics
toretore has joined #ruby-lang
<masterkorp> darix: silly idea
<masterkorp> C is for low level stuff
<masterkorp> period
<masterkorp> its not the right tool for the job on bigger apps
<darix> masterkorp: for stuff like math functions or so, generics seems to be nice
<masterkorp> I would prefer to use C++ with the boost libs
<masterkorp> nice math support
<manveru> well, the biggest gotcha with go math i had so far is that it's extremely hard to detect over/underflow
rolfb_ has quit [Client Quit]
<zzak> good morning!
<banisterfiend`> manveru: do u use that weird epsilon feature?
rue|w has joined #ruby-lang
<manveru> what do you mean?
dhruvasagar has quit [Ping timeout: 256 seconds]
<banisterfiend`> manveru: oh i think i meant iota
<manveru> sometimes
dhruvasagar has joined #ruby-lang
<banisterfiend`> seemed kind of a weird feature
<banisterfiend`> like useful in some circumstances, but def. not useful enough to be a language feature
<manveru> i tend to use typed string constants when it's not too much work
rolfb has joined #ruby-lang
<manveru> i hate debugging something and then having to compare the int to the const order
<manveru> bbl, lunch
KINGSABRI has quit [Quit: Leaving]
seanstickle has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
bytephilia has joined #ruby-lang
jxie has quit [Quit: leaving]
workmad3 has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby-lang
lcdhoffman has joined #ruby-lang
m3nd3s has joined #ruby-lang
fromhet has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 272 seconds]
dhruvasagar has joined #ruby-lang
Criztian has joined #ruby-lang
ghanima has joined #ruby-lang
t37871 has quit [Remote host closed the connection]
t2458 has joined #ruby-lang
banisterfiend` is now known as banisterfiend
viliny_^ has joined #ruby-lang
khoa has joined #ruby-lang
goshakkk has quit [Quit: Computer has gone to sleep.]
rue|w has joined #ruby-lang
viliny_^ has left #ruby-lang [#ruby-lang]
Viliny has joined #ruby-lang
<Viliny> can i speak now?
<Viliny> oh good.
<Viliny> Whats the goto-way of sending emails with attachments in ruby?
<Viliny> I found some 2008 forum posts with third party gems and junk, any modern day answers?
<judofyr> Viliny: Ctrl-F "add_file"
rue|w has quit [Remote host closed the connection]
<Viliny> that left me a little confused, but thank you.
khoa has quit [Quit: khoa]
<Viliny> ah okay, i missed the whole text below the files. Thanks :)
goshakkk has joined #ruby-lang
<judofyr> I should probably have linked to https://github.com/mikel/mail#readme
vlad_starkov has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
Viliny has quit [Quit: Page closed]
kvirani has joined #ruby-lang
tgriffin2081 has joined #ruby-lang
bytephilia has quit [Quit: Computer has gone to sleep.]
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
kvirani_ has joined #ruby-lang
kvirani has quit [Read error: Connection reset by peer]
zz_chrismcg is now known as chrismcg
t2458 has quit [Remote host closed the connection]
t10833 has joined #ruby-lang
seanstickle has quit [Quit: seanstickle]
AntiTyping has joined #ruby-lang
dracco23 has joined #ruby-lang
carloslopes has joined #ruby-lang
codewrangler has quit [Quit: Computer has gone to sleep.]
carloslopes has quit [Client Quit]
carloslopes has joined #ruby-lang
rue|w has joined #ruby-lang
s1n4 has joined #ruby-lang
t10833 has quit [Remote host closed the connection]
t72562 has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
rue|w has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
tgriffin2081 has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby-lang
bytephilia has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
yats has quit [Ping timeout: 272 seconds]
burgestrand has joined #ruby-lang
bytephilia has quit [Quit: Computer has gone to sleep.]
bytephilia has joined #ruby-lang
scampbell has joined #ruby-lang
t72562 has quit [Remote host closed the connection]
t44356 has joined #ruby-lang
bytephilia has quit [Quit: Computer has gone to sleep.]
slyphon has joined #ruby-lang
rippa has joined #ruby-lang
saxy has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
saxy has quit [Remote host closed the connection]
<voker57> how to convert Ruby string array to C char** in 1.9? to_ptr from 1.8 doesn't work.
m3nd3s has joined #ruby-lang
<yorickpeterse> I take it you mean in a C extension?
<yorickpeterse> if I'm not mistaken you'll have to take care of converting non scalar values to the C equilivants yourself
diegoviola has joined #ruby-lang
<Mon_Ouie> StringValueCStr(str) will get you a C string from a Ruby string object
<yorickpeterse> Depending on what he means with a string array that might not work
<yorickpeterse> if it's a string then yes, if it's `["hello", "world"]` then that will require some more work
<Mon_Ouie> Well yeah, but he will eventually use StringValueCStr
<Mon_Ouie> And as I understand, it is the latter
<Mon_Ouie> For the array, you'd just use RARRAY_LEN and rb_ary_aref
m3nd3s has quit [Ping timeout: 244 seconds]
m3nd3s has joined #ruby-lang
<voker57> I need to do it in Ruby code which uses C library
<voker57> and I'm already using StringValueCStr for strings
<voker57> rb_ary_aref is C function, I assume?
<Mon_Ouie> Yes, and RARRAY_LEN a macro
<banisterfiend> Mon_Ouie: why use StringValueCStr over RSTRING_PTR() ?
<banisterfiend> i've always used RSTRING_PTR
<Mon_Ouie> RSTRING_PTR was deprecated in favor of StringValuePtr (!= StringValueCStr) IIRC
<Mon_Ouie> And the point of StringValueCStr is that it is guaranteed to return a NULL-terminated string, and will other raise an exception
<mfn> On MRI 1.9.3 I tried to use Iconv and got a deprecation warning to use String#encode ; with Iconv I converted from iso-8859-15 to utf8 ; when I use String#force_encoding('iso-8859-15') (because it comes from database is and is 8bit) and then us String#encode('utf8') I get: code converter not found (ISO-8859-15 to utf8) . Any idea where I can look this information up? I'm reading
<banisterfiend> Mon_Ouie: let me check, sounds like lies 2 me
<banisterfiend> :P
<Mon_Ouie> (e.g. if the string contains 0-bytes as data, like strings in certain encodings migght)
<Mon_Ouie> mfn: It's called utf-8, not utf8
<mfn> fsck
<mfn> Mon_Ouie: thanks, you're right; works fine with utf<dash>8. Gnah, why did iconv accepted it in the first place
<voker57> is StringValueCStr a C function?
<banisterfiend> Mon_Ouie: you could be right actually
<banisterfiend> voker57: macro
<voker57> and there's no similar function in ruby stdlib?
sailias has joined #ruby-lang
<Mon_Ouie> Why would there be? Ruby manipulates Ruby objects, not C data types
<voker57> but there used to be to_ptr in 1.8, why did they remove it?
<Mon_Ouie> If you're using FFI, it has its own methods to manipulate them
tbuehlmann has quit [Remote host closed the connection]
<Mon_Ouie> Where was there ever a to_ptr in 1.8?
<judofyr> Mon_Ouie: I believe dl had to_ptr
lcdhoffman has quit [Ping timeout: 268 seconds]
diegoviola has quit [Quit: leaving]
<voker57> So, I'm porting some C-calling code from 1.8 to 1.9, should I rewrite to_ptr myself?
lcdhoffman has joined #ruby-lang
slyphon has quit [Quit: WeeChat 0.3.7]
<Mon_Ouie> judofyr: Yeah, that would make more sense; but it seems to still have to_ptr methods in 1.9
<Mon_Ouie> (in DL::CPtr)
<voker57> it's completely different method
danielvdotcom has joined #ruby-lang
<voker57> ones in 1.8 were in String and Array and allowed to easily convert them to C strings and string arrays
diegoviola has joined #ruby-lang
rue|w has joined #ruby-lang
<Mon_Ouie> But what libraries did you get them from?
rue|w has quit [Remote host closed the connection]
<Mon_Ouie> Ah, never mind, it *is* dl then
danielvdotcom has left #ruby-lang [#ruby-lang]
stardiviner has joined #ruby-lang
danielvdotcom has joined #ruby-lang
d3vic3 has quit [Ping timeout: 248 seconds]
s1n4 has quit [Quit: leaving]
d3vic3 has joined #ruby-lang
t44356 has quit [Remote host closed the connection]
t90491 has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
leonL has joined #ruby-lang
danielvdotcom_ has joined #ruby-lang
krawchyk has joined #ruby-lang
krawchyk has left #ruby-lang [#ruby-lang]
danielvdotcom_ has quit [Client Quit]
workmad3 has quit [Ping timeout: 252 seconds]
danielvdotcom_ has joined #ruby-lang
workmad3 has joined #ruby-lang
danielvdotcom has quit [Ping timeout: 244 seconds]
danielvdotcom_ is now known as danielvdotcom
bfreeman has quit [Quit: bfreeman]
deryl has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 252 seconds]
zmack_ is now known as zmack
nazty has quit [Read error: Connection reset by peer]
t4nkd has joined #ruby-lang
nazty has joined #ruby-lang
danielvdotcom has left #ruby-lang [#ruby-lang]
rolfb has quit [Quit: Linkinus - http://linkinus.com]
t90491 has quit [Remote host closed the connection]
t39921 has joined #ruby-lang
t4nkd has quit [Ping timeout: 265 seconds]
erichmenge has joined #ruby-lang
t4nkd has joined #ruby-lang
elux has joined #ruby-lang
saxy has joined #ruby-lang
|Vargas| has quit [Quit: ...]
yankov has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
areil has quit [Remote host closed the connection]
Jay_Levitt has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
burgestrand has quit [Quit: Leaving.]
dc5ala has quit [Quit: Ex-Chat]
t39921 has quit [Remote host closed the connection]
t15189 has joined #ruby-lang
headius has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
bryancp has joined #ruby-lang
yats has joined #ruby-lang
lsegal has joined #ruby-lang
joast has quit [Quit: Leaving.]
gnufied has joined #ruby-lang
nXqd_ has joined #ruby-lang
kvirani_ has quit [Remote host closed the connection]
nXqd has quit [Read error: Connection reset by peer]
alvaro_o has joined #ruby-lang
jxie has joined #ruby-lang
rue|w has joined #ruby-lang
joast has joined #ruby-lang
meisterT has joined #ruby-lang
s1n4 has joined #ruby-lang
rue|w has quit [Ping timeout: 252 seconds]
nXqd_ has quit [Ping timeout: 260 seconds]
kain has joined #ruby-lang
isale-eko has joined #ruby-lang
m3nd3s has joined #ruby-lang
t15189 has quit [Remote host closed the connection]
zmack has quit [Remote host closed the connection]
t93201 has joined #ruby-lang
codewrangler has joined #ruby-lang
bfreeman has joined #ruby-lang
kitallis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
runeb has quit [Remote host closed the connection]
neocoin has quit [Remote host closed the connection]
headius has quit [Ping timeout: 240 seconds]
carloslopes has quit [Ping timeout: 256 seconds]
goshakkk has quit [Quit: Computer has gone to sleep.]
slyphon has joined #ruby-lang
goshakkk has joined #ruby-lang
robotmay has quit [Remote host closed the connection]
limeds has joined #ruby-lang
Austin__ has joined #ruby-lang
kvirani has joined #ruby-lang
solars has quit [Ping timeout: 252 seconds]
Virunga has joined #ruby-lang
eevar has joined #ruby-lang
BigFatFatty has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
m3nd3s has joined #ruby-lang
t93201 has quit [Remote host closed the connection]
t16618 has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
seele1 has left #ruby-lang [#ruby-lang]
sora_h is now known as s0ra_h
Dreamer3 has quit [Quit: Leaving...]
kain has quit [Quit: exit]
kain has joined #ruby-lang
dhruvasagar has joined #ruby-lang
gsav has joined #ruby-lang
mrsolo has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
headius_ has joined #ruby-lang
richardjortega has joined #ruby-lang
headius__ has joined #ruby-lang
sepp2k has joined #ruby-lang
yankov has quit [Quit: yankov]
bfreeman has quit [Ping timeout: 244 seconds]
headius_ has quit [Ping timeout: 272 seconds]
bfreeman has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
sepp2k1 has quit [Ping timeout: 272 seconds]
t16618 has quit [Remote host closed the connection]
t22873 has joined #ruby-lang
carloslopes has joined #ruby-lang
cdt has quit [Quit: Ex-Chat]
neocoin has joined #ruby-lang
chimkan_ has joined #ruby-lang
slyphon has quit [Quit: WeeChat 0.3.7]
slyphon has joined #ruby-lang
runeb has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
ricardovaleriano has joined #ruby-lang
runeb has quit [Ping timeout: 272 seconds]
t22873 has quit [Remote host closed the connection]
t51106 has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
leonL has quit [Remote host closed the connection]
cantonic has joined #ruby-lang
limeds has quit [Quit: limeds]
chrismcg is now known as zz_chrismcg
yankov has joined #ruby-lang
gsav has quit [Quit: Lost terminal]
Dreamer3 has joined #ruby-lang
gsav has joined #ruby-lang
leonL has joined #ruby-lang
celinedior has joined #ruby-lang
burgestrand has joined #ruby-lang
richardjortega has left #ruby-lang [#ruby-lang]
dracco23 has quit [Quit: dracco23]
AntiTyping has quit [Quit: AntiTyping]
eevar has quit [Quit: Lost terminal]
leonL has quit [Remote host closed the connection]
savage- has joined #ruby-lang
t51106 has quit [Remote host closed the connection]
t73353 has joined #ruby-lang
Hakon has joined #ruby-lang
brianpWins has joined #ruby-lang
headius__ has quit [Quit: headius__]
GeekOnCoffee_ has joined #ruby-lang
RickHull has joined #ruby-lang
RickHull has quit [Changing host]
RickHull has joined #ruby-lang
<RickHull> injekt: slop is yours right?
<RickHull> i noticed with :strict => true, then :help => true is not automagically injected and i get InvalidOptionError
s0ra_h is now known as sora_h
ivanoats has joined #ruby-lang
dracco23 has joined #ruby-lang
AntiTyping has joined #ruby-lang
celinedior has left #ruby-lang [#ruby-lang]
celinedior has joined #ruby-lang
bfreeman_ has joined #ruby-lang
bfreeman has quit [Read error: Connection reset by peer]
<injekt> RickHull: that's correct, you should print it yourself
<injekt> RickHull: if you want the behaviour changed or think it's a bug then file an issue and I'll check it out
chimkan_ has quit [Quit: chimkan_]
GeekOnCoffee_ has left #ruby-lang [#ruby-lang]
<RickHull> it's certainly debatable. would you say that :help => true is only sensible if :strict => false ?
<RickHull> i'm new to slop so I want to make sure i'm on the same page with the intentions / conventions before judging the behavior :)
<RickHull> my initial statement was unclear. i have :help => true, and :strict => true, and I was hoping progname.rb -h would work, without an explicit help declaration (the intent of setting :help => true)
<RickHull> (or progname.rb --help)
<RickHull> maybe that's an unreasonable expectation, but it seems sensible to me. that :strict => true would not invalidate the "automaticness" of :help => true
Jay_Levitt has quit [Quit: Jay_Levitt]
elux has quit [Quit: Leaving...]
elux has joined #ruby-lang
elux has quit [Remote host closed the connection]
neocoin has quit [Remote host closed the connection]
gnufied has quit [Quit: Leaving.]
<RickHull> er, hm, maybe i am misunderstanding :help => true. it doesn't do what i expect with :strict => false
t73353 has quit [Remote host closed the connection]
t35140 has joined #ruby-lang
<RickHull> d'oh
<RickHull> PEBCAK, nevermind for a moment
qwerxy has quit [Ping timeout: 248 seconds]
<RickHull> i was setting the options, but not passing them into parse. help => true and strict => true works as i expect
<RickHull> /facepalm
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
m3nd3s has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
Jay_Levitt has joined #ruby-lang
hakunin has quit [Remote host closed the connection]
<RickHull> one thing that's a little tricky with :strict => true. you might be tempted to rescue InvalidOptionError and then print the help string
hakunin has joined #ruby-lang
hakunin has quit [Read error: Connection reset by peer]
<RickHull> but you don't have access to the return value of Slop.parse in that case, e.g. opts.help
hakunin has joined #ruby-lang
hakunin has quit [Remote host closed the connection]
judofyr has joined #ruby-lang
<RickHull> is there way to implement a similar strategy, where i could get the return value of Slop.parse (For the help string) but also know (automatically) that out-of-spec options have been supplied?
judofyr has quit [Remote host closed the connection]
<cschneid> Is there a not-too-incredibly-hacky way to add python style method decorators to ruby? Any gems to look at?
t4nkd has quit [Quit: Leaving...]
cantonic has quit [Quit: cantonic]
leonL has joined #ruby-lang
slyphon has quit [Quit: WeeChat 0.3.7]
Tearan has joined #ruby-lang
sora_h is now known as s0ra_h
krz has joined #ruby-lang
slyphon has joined #ruby-lang
<cschneid> RickHull: thanks for the link. Seems pretty straight forward to extend out to do trickier things. Ideally I want to implement a cache decorator, so the method itself doesn't have to know about caching
cantonic has joined #ruby-lang
<RickHull> are you familiar with memoization?
leonL has quit [Remote host closed the connection]
<RickHull> might be worth considering as a similar caching strategy
kvirani has joined #ruby-lang
leonL has joined #ruby-lang
headius has joined #ruby-lang
slyphon has quit [Ping timeout: 245 seconds]
Tearan has quit [Quit: Sleepy Badger....]
fromhet has quit [Quit: fromhet]
leonL has quit [Remote host closed the connection]
fromhet has joined #ruby-lang
t35140 has quit [Remote host closed the connection]
t71401 has joined #ruby-lang
celinedior has left #ruby-lang [#ruby-lang]
<cschneid> RickHull: yeah, it's a proper Redis backed cache. So it's a bit more complex than @foo ||= ...
<RickHull> are you trying to insulate your calling code from knowing about redis?
<RickHull> or from slower storage like db or filesystem?
mistym is now known as mistym_coffee
diegoviola has quit [Read error: Connection reset by peer]
<RickHull> the "closest" storage would be a variable within the program. so all memoization does is make it look like you're always getting program data, even though it has to fetch it the first time. it shouldn't matter what you're fetching from, semantics-wise
Criztian has quit [Remote host closed the connection]
havenn has joined #ruby-lang
diegoviola has joined #ruby-lang
<RickHull> injekt: i'm having a similar frustration in dealing with Slop::MissingArgumentError in a user-friendly way.
<RickHull> alternative "API" proposed above, that separates the slop spec from the slop parse
<RickHull> and the spec would own the help string
<matti> Slop?
<RickHull> and parse error would have access to the spec for a friendly error message
tbuehlmann has joined #ruby-lang
<RickHull> matti option parser http://rubydoc.info/gems/slop/3.3.2/frames
<matti> Oh dear ;]
<matti> There are so many nowadays.
<RickHull> trollop is on my radar too
<RickHull> i have my own hand-rolled monstrosity built on Getoptlog
<matti> OptParse is good-enoguh.
neocoin has joined #ruby-lang
<RickHull> Getoptlong is good enough
<RickHull> as is my hand-rolled monstrosity
<RickHull> *better* is my threshold ;)
Carnage\ has joined #ruby-lang
flak has joined #ruby-lang
flak is now known as Guest57566
t4nkd has joined #ruby-lang
rippa has quit [Ping timeout: 268 seconds]
r0bby has joined #ruby-lang
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
r0bby has quit [Client Quit]
s1n4 has quit [Quit: leaving]
lcdhoffman has quit [Quit: lcdhoffman]
totallymike has joined #ruby-lang
s0ra_h is now known as sora_h
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
t4nkd has quit [Quit: Leaving...]
sn0wb1rd has joined #ruby-lang
t4nkd has joined #ruby-lang
t4nkd has quit [Client Quit]
havenn has quit [Remote host closed the connection]
toretore has quit [Quit: Leaving]
Asher has joined #ruby-lang
slyphon has joined #ruby-lang
judofyr has joined #ruby-lang
solars has joined #ruby-lang
sora_h is now known as s0ra_h
judofyr has quit [Read error: Connection reset by peer]
judofyr has joined #ruby-lang
carloslopes has quit [Ping timeout: 252 seconds]
carloslopes has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
ivanoats has joined #ruby-lang
znake has joined #ruby-lang
lcdhoffman has joined #ruby-lang
judofyr has quit [Read error: Connection reset by peer]
deryl has quit [Quit: deryl]
judofyr has joined #ruby-lang
kain has quit [Ping timeout: 244 seconds]
<darix> RickHull: maybe injekt will wake up later and help with slop problems
headius_ has joined #ruby-lang
<RickHull> heh, i figured it out
<RickHull> i've had two problems. the first one very much my own making. the second one, i needed to read the docs
<RickHull> but now i think i've found a legitimate bug
<RickHull> gist in one sec
<RickHull> hm, probably I am using it incorrectly again
<RickHull> but it seems sensible
headius has quit [Ping timeout: 260 seconds]
headius_ is now known as headius
jbsan has joined #ruby-lang
dejongge has joined #ruby-lang
<RickHull> injekt (and darix): https://gist.github.com/3502629
Jay_Levitt has quit [Quit: Jay_Levitt]
Jay_Levitt has joined #ruby-lang
deryl has joined #ruby-lang
judofyr_ has joined #ruby-lang
judofyr has quit [Read error: Connection reset by peer]
totallymike has quit [Ping timeout: 244 seconds]
GeekOnCoffee has joined #ruby-lang
kain has joined #ruby-lang
dbussink has quit [Excess Flood]
dbussink has joined #ruby-lang
<RickHull> looks like a bug, no? can any slop users confirm? or tell me what i'm doing wrong?
tenderlove has quit [Remote host closed the connection]
yats has quit [Remote host closed the connection]
Criztian has joined #ruby-lang
t71401 has quit [Remote host closed the connection]
Tearan has joined #ruby-lang
t83762 has joined #ruby-lang
bryanl has quit [Ping timeout: 276 seconds]
chimkan_ has joined #ruby-lang
judofyr has joined #ruby-lang
judofyr_ has quit [Read error: Connection reset by peer]
Guest57566 has left #ruby-lang [#ruby-lang]
febuiles has joined #ruby-lang
febuiles has quit [Changing host]
febuiles has joined #ruby-lang
<febuiles> What's the "kosher" way of using String#downcase on non-ascii chars? (eg. "DÓwn" => "Dówn")
<febuiles> (using 1.9)
rippa has joined #ruby-lang
<manveru> there is nothing in stdlib or core to do it
bryanl has joined #ruby-lang
<febuiles> manveru: great, I'll take a look, thanks.
<manveru> iota ~ % ruby -r unicode_utils/downcase -e 'p UnicodeUtils.downcase("DÓwn")'
<manveru> "dówn"
judofyr_ has joined #ruby-lang
judofyr has quit [Read error: Connection reset by peer]
<manveru> if you know the language, you should pass that as well
kingCrawlerx has quit [Quit: [kingCrawlerx release]]
<febuiles> manveru: yup, passed :es and everything's fine now
judofyr_ has quit [Read error: Connection reset by peer]
<manveru> awesome :)
<febuiles> was going to ask why this was not part of core after reading the source a bit I understand :P
judofyr has joined #ruby-lang
s0ra_h is now known as sora_h
<manveru> yeah, no matter how you implement it, people will find fault
<manveru> it's easy for some languages, and an unsolvable problem for others
m3nd3s has joined #ruby-lang
<manveru> programming would be easy if it wasn't for all those pesky humans :)
znake has quit [Quit: znake]
<rhizmoe> i need to get schooled in algorithms, where should i start?
sockmonk has joined #ruby-lang
<manveru> at posts for this question on stackoverflow
<manveru> something like that
<rhizmoe> oh duh, didn't even think of SO. thanks :)
<manveru> though i find making 2d/3d games to be extremely good at teaching me that stuff
sailias has quit [Quit: Leaving.]
<manveru> only issue is that 90% of examples will be in C++ or Java :(
sailias has joined #ruby-lang
bryanl has quit [Ping timeout: 244 seconds]
<manveru> that book is awessome too
tbuehlmann has quit [Remote host closed the connection]
<manveru> and it's all
<manveru> ruby :D
<rhizmoe> nice :)
<rhizmoe> seems like the content is geared toward someone versed, though
<rhizmoe> already-versed
Bdawk has joined #ruby-lang
headius has quit [Quit: headius]
<Bdawk> Is there a ruby gem to control windows services from a linux host? It seems win32-service is windows only?
bryanl has joined #ruby-lang
isale-eko has quit [Quit: ChatZilla 0.9.88.2 [Firefox 12.0/20120420145725]]
RORgasm has joined #ruby-lang
mistym_coffee is now known as mistym
neocoin has quit [Remote host closed the connection]
sepp2k has quit [Remote host closed the connection]
sora_h is now known as s0ra_h
chimkan_ has quit [Quit: chimkan_]
dracco23 has quit [Quit: dracco23]
AntiTyping has quit [Quit: AntiTyping]
cczona has joined #ruby-lang
benanne has joined #ruby-lang
cczona has left #ruby-lang [#ruby-lang]
chimkan has joined #ruby-lang
bryanl has quit [Ping timeout: 244 seconds]
qpingu has quit [Quit: Leaving.]
<yorickpeterse> Is there a guide available that lists all the Ripper event names and a short description of them?
<yorickpeterse> Event names such as "mrhs_new_from_args" aren't really descriptive
<matti> What is Ripper?
<yorickpeterse> Ruby binding to the Bison parser used by YARV
goshakkk has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<matti> Oh.
<matti> ]
<judofyr> yorickpeterse: parse.y
<judofyr> yorickpeterse: and Ctrl-F :)
t83762 has quit [Remote host closed the connection]
t64735 has joined #ruby-lang
<yorickpeterse> doesn't contain any docs as far as I can tell
bryanl has joined #ruby-lang
<matti> THere should be a common way to define / call / whatnot an event.
judofyr has quit [Read error: Connection reset by peer]
<yorickpeterse> If there isn't any I suppose I'll have to compile a list myself
judofyr has joined #ruby-lang
<yorickpeterse> matti: I know how to use them and what not, I'd just like to have a reference as to what particular ones do
<yorickpeterse> without having to parse lumps of code to figure it out myself
<judofyr> docs? of the Ruby source code? you're a funny guy :)
<yorickpeterse> It's a sad truth
<yorickpeterse> For such a wonderful language the docs for core/stdlib are pretty shit
<matti> yorickpeterse: I see.
<matti> yorickpeterse: I feel your pain.
<matti> yorickpeterse: ... or in Japanese ;d
<matti> IIRC, drbrain is workin real hard on getting documentation in order.
<yorickpeterse> that would be awesome
matija has joined #ruby-lang
matija has left #ruby-lang [#ruby-lang]
<whitequark> matti: the fact that docs on the external interface are in Japanese doesn't help at all
<judofyr> yorickpeterse: Ripper is quite callback-based. so mrhs_new_from_args takes an args an converts it into a mhrs (multi right-hand side)
<whitequark> well, I used google translate back then, but source is like an order of magnitude easier to decipher
matija has joined #ruby-lang
<matti> whitequark: Hehe
<matti> whitequark: I guess that is a fair statement.
<matti> ;]
matija has left #ruby-lang [#ruby-lang]
limes has joined #ruby-lang
<whitequark> yorickpeterse: have you seen RXR? http://rxr.whitequark.org/
<matti> I can read a little Japanese, but some comments are beyond my skills.
<yorickpeterse> judofyr: in this particular case I knew what it did due to the sexp and the code used for it, this however may not be the case for future events
<matti> Wooot.
<matti> whitequark: +1 +1 +1
* matti gives whitequark a free hug
lcdhoffman has quit [Quit: lcdhoffman]
<yorickpeterse> whitequark: oooh
CapnKernul has joined #ruby-lang
judofyr has quit [Read error: Connection reset by peer]
<whitequark> updated weekly :)
judofyr has joined #ruby-lang
<matti> That's a bonus ;d
<judofyr> yorickpeterse: well, parse.y is my best advice
<whitequark> parse.y is not highlighed for some reason, let's see if I can fix this...
bytephilia has joined #ruby-lang
totallymike has joined #ruby-lang
<whitequark> yep, should be better now: http://rxr.whitequark.org/mri/source/parse.y
matija has joined #ruby-lang
bytephilia has quit [Client Quit]
febuiles has quit [Quit: febuiles]
judofyr has quit [Remote host closed the connection]
<matti> Um.
<matti> Ruby's C is hard to follow.
<steveklabnik> heh
<matti> Even Linux's kernel code is easier.
<yorickpeterse> It's a bit weird, yes
<yorickpeterse> Anybody who claims that code explains itself should read through the C code
<matti> Nicely written C is OK
chimkan has quit [Quit: chimkan]
chimkan has joined #ruby-lang
solars has quit [Ping timeout: 240 seconds]
matija has quit []
mister_x29 has joined #ruby-lang
mister_x29 has quit [Remote host closed the connection]
<matti> I'd love Dir.each / Dir[].each to yield path inside the block.
<yorickpeterse> Suppose I should start writing some blag stuff this weekend about my Ripper adventures so far
<matti> yorickpeterse: +1
limes has quit [Remote host closed the connection]
<erikh> gc.c is weird, the rest is not too bad
<rking> matti: I haven't found that at all to be the case.
<erikh> dunno. if you've written enough C extensions it's not that hard to read
Bdawk has quit [Ping timeout: 245 seconds]
<yorickpeterse> It's actually surprisingly easy to use Ripper, it's just that implementing custom token classes and what not for all syntax features takes a *lot* of time
<rking> I use pry-doc's "$ some_builtin" fairly regularly, and get almost every line I see.
<matti> rking: Sorry, case of what?
<matti> I might have lost the context.
<rking> matti: That Ruby's C is hard to read.
<matti> Ah.
<matti> rking: I was looking once at process.c
<matti> rking: Seemed hard to follow sometimes.
havenn has joined #ruby-lang
lcdhoffman has joined #ruby-lang
lcdhoffman_ has joined #ruby-lang
lcdhoffman has quit [Read error: Connection reset by peer]
<rking> matti: Well, process stuff can get weird. Is there an example of a place where you feel like the complexity of the implementation doesn't map to the essential complexity of the problem?
<matti> rking: I was looking at a Ruby bug.
<matti> rking: And trying to follow exec IIRC.
<matti> rking: I am not complaning, by any mean.
nXqd has joined #ruby-lang
<matti> rking: I just find it hard to follow sometimes.
burgestrand has quit [Quit: Leaving.]
<rking> matti: Yeah, no biggie. Most code is gross. I'm just piping in that the Ruby C is well above average, in my experience.
<matti> :>
s0ra_h is now known as sora_h
<yorickpeterse> Hmpf, the structure for Ripper operator calls is...weird
tenderlove has joined #ruby-lang
<rking> yorickpeterse: I think that was the intent. =)
<yorickpeterse> heh
<yorickpeterse> `10 and 20 and 30 and 40` results in something like [ [[10, :and, :20], :and, 30], :and, 40 ]
t64735 has quit [Remote host closed the connection]
t88611 has joined #ruby-lang
<yorickpeterse> for a linter I'd say simply [10, :and, 20, :and, 30, :and, 40] would be much easier to process
<rking> But then you've basically created a quaternary "x and y and z and α" operator.
<rking> The other way is all binary
lightcap has joined #ruby-lang
<yorickpeterse> hm
<zzak> yorickpeterse: i just got done patching the docs for Ripper
<yorickpeterse> zzak: :D
mister_x29 has joined #ruby-lang
<yorickpeterse> Nice work
<zzak> thank you!
<matti> :)
<matti> zzak: +1
CapnKernul has quit [Quit: Leaving...]
<zzak> matti: thanks!
<zzak> im working on pathname next
bryanl has quit [Read error: Connection reset by peer]
<matti> ;]
<matti> Interesting idea.
<matti> I was thinking recently that it would be nice if {l,r}strip could take integer argument as a count of how many characters strip.
sora_h is now known as s0ra_h
havenn has quit [Remote host closed the connection]
t88611 has quit [Remote host closed the connection]
t17187 has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
qpingu has joined #ruby-lang
sailias has quit []
petercooper has joined #ruby-lang
rippa has quit [Ping timeout: 246 seconds]
yxhuvud has quit [Ping timeout: 240 seconds]
mister_x29 has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
chimkan has quit [Quit: chimkan]
tenderlove has quit [Read error: Connection reset by peer]
tenderlo_ has joined #ruby-lang
Austin__ has quit [Quit: Leaving.]
CapnKernul has joined #ruby-lang
chimkan has joined #ruby-lang
<naquad> i have a string which is actually a bunch of hex numbers: '0a12ff' and i want to get [10, 18, 255]. atm i have this: ['string'].pack('H*').unpack('C*'), but that doesn't look good. any better way?
m3nd3s has quit [Remote host closed the connection]
banisterfiend has quit [Remote host closed the connection]
<lianj> naquad: nope, go with this
<naquad> :(
<naquad> ok
banisterfiend has joined #ruby-lang
<lianj> naquad: why the sad face
<naquad> that thing doesn't look good or simple :S
ivanoats has quit [Remote host closed the connection]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
<matled> naquad: you could also do .scan(/../).map { |s| s.to_i(16) }. I guess it is slower than the pack/unpack way.
<naquad> and looks worse
dhruvasagar has quit [Ping timeout: 268 seconds]
<matled> I find it more readable as I don't have to know what H and C do
<lianj> matled: pack/unpack are great :P
<matled> I know, it just requires to know or look up what the different characters mean :)
<matled> C is one of the few I actually know
banisterfiend has quit [Ping timeout: 244 seconds]
<drbrain> nNvV
<lianj> right, but you can find the docs fast, and get used to most of them soon
wpaulson has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
dejongge has quit [Quit: Leaving.]
brunocoelho has joined #ruby-lang
brunocoelho has quit [Remote host closed the connection]
* mistym has great fun trying to use POSIX open() to get a resource fork
s0ra_h is now known as sora_h
<matti> matled: CLOEXEC CLOEXEC!
Denommus has joined #ruby-lang
<Denommus> hello
<matti> Denommus: { :hello }
<Denommus> I'm trying to compile Ruby on a Minix system. The only pthread library I have is pth, but ./configure isn't capable of disabling it, and it seems that Ruby 1.9.X requires pthreads. Is there a way of telling ./configure which pthread library it should look for?
<matti> Denommus: Have you tried --help?
<Denommus> yup
<Denommus> it only says that --enable-pthread is deprecated and ignored
<Denommus> *obsolete
havenn has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
<zzak> Denommus: did you try --without-pthread ?
<Denommus> unrecognized option
chimkan has quit [Quit: chimkan]
<Denommus> I tried --disable-pthread, too. It is not unrecognized, but it does nothing
chimkan_ has joined #ruby-lang
saxy has quit [Remote host closed the connection]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<zzak> you tried this with optflags?
<Denommus> I think I discovered the problem
<Denommus> pthreads are in /usr/pkg/lib and /usr/pkg/include
<Denommus> which options should I use to set these paths?
havenn has quit [Ping timeout: 245 seconds]
<drbrain> you can use CFLAGS=-I/usr/pkg/include LDFLAGS=-L/usr/pkg/lib
<Denommus> let's see...
<Denommus> it's going to take a bit long
nXqd has quit [Ping timeout: 260 seconds]
t17187 has quit [Remote host closed the connection]
t86761 has joined #ruby-lang
carloslopes has quit [Quit: Leaving.]
Carnage\ has quit []
GeekOnCoffee has quit [Ping timeout: 244 seconds]
<Denommus> ...
<Denommus> so close
<Denommus> it configured, but it does not compile
<injekt> RickHull: ping
chimkan___ has joined #ruby-lang
sora_h is now known as s0ra_h
chimkan_ has quit [Ping timeout: 265 seconds]
Denommus has left #ruby-lang [#ruby-lang]
ricardovaleriano has quit [Remote host closed the connection]
ricardovaleriano has joined #ruby-lang
rue has quit [Remote host closed the connection]
slyphon has quit [Quit: WeeChat 0.3.7]
scampbell has quit [Remote host closed the connection]
ricardovaleriano has quit [Ping timeout: 264 seconds]
laszlokorte has joined #ruby-lang
totallymike has quit [Ping timeout: 272 seconds]
rue has joined #ruby-lang
headius has joined #ruby-lang
cyndis has quit [Read error: Operation timed out]
cyndis has joined #ruby-lang
ttilley has quit [Read error: Connection reset by peer]
ttilley has joined #ruby-lang
ttilley has quit [Changing host]
ttilley has joined #ruby-lang
ghanima has quit [Ping timeout: 260 seconds]
mistym has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
RORgasm has quit [Remote host closed the connection]
<cored> I have a little problem which don't know how to tackle down
totallymike has joined #ruby-lang
<cored> I'm trying to migrate my app to 1.9.2
<cored> after switching vm's and hitting bundle update
<steveklabnik> well, that's step 2
<steveklabnik> ;)
<cored> I get an error regarding rcov not supported for 1.9.2, I switched to simplecov but still getting the error
<cored> because of some deps on it
<cored> the question is, can I make the gem's on my dependencies list to just use simplecov instead of rcov without changing their code
<steveklabnik> not without a few pull requests.
<cored> crap
<steveklabnik> what gems?
<steveklabnik> there is one thing you CAN do
<cored> I have a bunch of dependnecies
<steveklabnik> but it's quite hacky
<cored> fork
<cored> and have my own version
<cored> right ?
<steveklabnik> sure, but which depend on simplecov? you can check your gemfile.lock
<steveklabnik> yes
<steveklabnik> err, rcov
<cored> hehehe
<cored> I did a cli hack
<cored> with awk and gem dependency --reverse dependencies
<cored> did not think in Gemfile.lock
sockmonk has quit [Ping timeout: 246 seconds]
<cored> I'm checking
<cored> metric_fu which is a dependency for metrical
<steveklabnik> oh man
s0ra_h is now known as sora_h
<steveklabnik> metric_fu is almost abandonded at this point
<steveklabnik> i had a very, very simple pull request open to help it work with rails 3.2 for like 6 months
<steveklabnik> with no comment.
<cored> in fact is metrical what we are using
<cored> that's bad
<cored> I think I have to keep an eye on the dependencies of this app
<steveklabnik> so from metrical
<steveklabnik> Warning: This gem is not being maintained anymore!
<steveklabnik> soooooo
<steveklabnik> I work exclusively with Ruby 1.9, and most tools included don't (fully) support it. If you want to take over the project, fork the project, and open an issue stating your intentions.
<cored> I see
stardiviner has joined #ruby-lang
macmartine has joined #ruby-lang
<cored> there's something weird regarding all this you said that most tools included are not supported
<cored> by 1.9.2
<cored> is that right?
<steveklabnik> that is a quite from the metrical docs
ghanima has joined #ruby-lang
s1n4 has joined #ruby-lang
<steveklabnik> quote
<cored> ok
<cored> another thing this guy is pointing out that he changed hashes syntax to 1.9.2 but that's not the problem
<cored> the problem is that metrical is using rcov
<cored> so I think the best approach is following the fork/local change stuff
<steveklabnik> maybe! just prepare for lots of bugs.
<steveklabnik> it might not even work.
bryancp has quit [Remote host closed the connection]
<steveklabnik> also, while you move to 1.9.2
<steveklabnik> note that rails 4 will only support 1.9.3
<steveklabnik> so keep that in mind as you upgrade
<steveklabnik> i dont know your app, so I don't know if going straight to 1.9.3 is better or worse.
bryancp has joined #ruby-lang
<cored> what
<cored> rails 4 will just support 1.9.3
<cored> :-/
<cored> why is that ? also my app is a Sinatra app
<cored> so don't big deal there
<steveklabnik> because 1.9.3 has lots of improvements, especially around speed.
<steveklabnik> and if you're gonna draw the line, might as well draw it.
<cored> I think that will be for next version
<steveklabnik> yeah, if you're on sinatra, that wont really affect you.
<cored> probably there won't be a lot of troubles doing an upgrade from 1.9.2 to 1.9.3
* cored hopes
<steveklabnik> but i figured it was irresponsible to not mention it
<steveklabnik> probably not, it was drop-in for all of my apps
<cored> nice
<cored> removing metrical from my Gemfile
<cored> finished the bundle update
<cored> let me run the tests now
CapnKernul has quit [Quit: Leaving...]
bryancp has quit [Ping timeout: 264 seconds]
sailias has joined #ruby-lang
<steveklabnik> zenspider: you around?
<steveklabnik> i have a minitest question
rue has quit [Remote host closed the connection]
<steveklabnik> or anyone else that knows a bunch about minitest, anyway
rue has joined #ruby-lang
icooba has quit [Ping timeout: 244 seconds]
s1n4 has quit [Quit: leaving]
Virunga has quit [Quit: Sto andando via]
rue has quit [Ping timeout: 268 seconds]
<drbrain> steveklabnik: ...
havenn has joined #ruby-lang
sora_h is now known as s0ra_h
CapnKernul has joined #ruby-lang
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
vlad_starkov has quit [Remote host closed the connection]
wpaulson has joined #ruby-lang
icooba has joined #ruby-lang
<steveklabnik> hey!
<steveklabnik> so
havenn has quit [Ping timeout: 248 seconds]
<steveklabnik> any thoughts on how I can cause https://github.com/jcasimir/draper/blob/master/lib/draper/test/minitest_integration.rb#L6 specifically to work well?
josh^ has joined #ruby-lang
rue has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 245 seconds]
DEac- has quit [Read error: Operation timed out]
chimkan___ has quit [Quit: chimkan___]
cczona has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
cczona has quit [Client Quit]
slyphon has joined #ruby-lang
justinmcp has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
DEac- has joined #ruby-lang
benanne has quit [Quit: kbai]
s0ra_h is now known as sora_h
WillMarshall has joined #ruby-lang
sailias has quit [Ping timeout: 260 seconds]
Bosox20051 has joined #ruby-lang
havenn has joined #ruby-lang
slyphon has quit [Quit: WeeChat 0.3.7]
chancancode has joined #ruby-lang
<chancancode> what's the best way to override (wrap) a method in a class without subclassing it?
<chancancode> I didn't want to use alias_method_chain, but if the class is not using the "include BaseMethods" pattern (so including a module won't work), what other options do I have?
Bosox20051 has quit [Ping timeout: 264 seconds]
t86761 has quit [Remote host closed the connection]
t20204 has joined #ruby-lang
<chancancode> I wanted to add support for pagination (more or less like this - https://github.com/twinturbo/active_model_serializers/commit/43d3233ed3c8e848141e853c7d5a544e232a7ff4)
erichmenge has quit [Quit: Linkinus - http://linkinus.com]
<steveklabnik> chancancode: instead of alias method chain, include a module and call super
<chancancode> steveklabnik That only works if the method I'm wrapping is implemented in a module / on the super class, no?
<steveklabnik> one moment
sailias has joined #ruby-lang
<steveklabnik> hmmm.
havenn has quit [Remote host closed the connection]
<steveklabnik> so my screwing around isn't working
<steveklabnik> but last time i asked on twitter
<steveklabnik> tenderlove said those exact words to me instead of alias_method_chain
<steveklabnik> so it must be right ;)
<steveklabnik> and it worked for me in that case
<chancancode> steveklabnik: It works in Rails because most classes are actually implemented like this:
<chancancode> class TheClasss
<chancancode> oops
<steveklabnik> right
<steveklabnik> zillions of modules
<steveklabnik> ;)
<chancancode> yeah
<steveklabnik> you can always use a decorator
<chancancode> so the method is not actually defined on the class, thus ruby will follow the ancestor chain so it hits whatever modules it included in reverse order
<steveklabnik> may or may not work
m3nd3s has joined #ruby-lang
sora_h is now known as s0ra_h
m3nd3s_ has joined #ruby-lang
m3nd3s_ has quit [Client Quit]
CapnKernul has quit [Quit: Leaving...]
m3nd3s has quit [Ping timeout: 256 seconds]
havenn has joined #ruby-lang
cored has quit [Quit: leaving]
butchanton has joined #ruby-lang
havenn_ has joined #ruby-lang
petercooper has quit [Remote host closed the connection]
seanstickle has joined #ruby-lang
butchanton has quit [Quit: Leaving.]
brianpWins has joined #ruby-lang
diegoviola has joined #ruby-lang
t20204 has quit [Remote host closed the connection]
t97782 has joined #ruby-lang
BigFatFatty has left #ruby-lang [#ruby-lang]
havenn_ has quit [Ping timeout: 265 seconds]
s0ra_h is now known as sora_h
chancancode has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
bfreeman_ has quit [Quit: bfreeman_]