apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p385: http://ruby-lang.org (ruby-2.0.0-rc1) || Paste >3 lines of text on http://gist.github.com
Patteh has joined #ruby
bedouin has quit [Ping timeout: 264 seconds]
BrindleFly has quit [Client Quit]
bedouin has joined #ruby
ryanf has quit [Read error: Connection reset by peer]
maxmanders has joined #ruby
_br_ has joined #ruby
ryanf has joined #ruby
<banister`sleep> IceDragon: i would probably decorate methods after the fact, not using method_added
<IceDragon> > catch definition > grab Method object > undefine original > define new function with alerting code > hook original method
<IceDragon> O: example?
backjlack has quit [Remote host closed the connection]
Jon30 has joined #ruby
l3ck has quit [Quit: Bye!]
<banister`sleep> IceDragon: like this: class Blah; def blah; end; def foo; end; end; Blah.before_methods(:blah, :foo) { puts "do this before you run the methods!" }
anonymuse has quit [Remote host closed the connection]
<Jon30> I am looking for a cross platform ruby gui, something that doesn't use jruby and well supported (constant bug fixes, documentation etc...)
<IceDragon> Oh cool banister
<IceDragon> :)
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
<IceDragon> on a side note Qt doesnt like me >_>
phantasm66 has quit [Client Quit]
<luckyruby> Jon30: maybe shoes?
moofy has quit [Quit: moofy]
danielpcox has joined #ruby
mercwithamouth has quit [Quit: leaving]
mercwithamouth has joined #ruby
artOfWar_ has quit [Remote host closed the connection]
heimark_ has joined #ruby
<Jon30> luckyruby: I believe it requires jruby and when i tried using one of the sample guis on windows, all the controls were blinking
dmiller2 has joined #ruby
AntiTyping has joined #ruby
<IceDragon> .-. Why not use good ol GTK?
<IceDragon> ruby-gtk
<Jon30> luckyruby: I tried installing it on windows by following this guide: http://shoesrb.com/manual/Installing.html
<Jon30> but the site is down.
<Jon30> ruby-gtk: wouldn't it require me to install gtk?
<Jon30> on windows
segv- has quit [Quit: segv-]
<_br_> luckyruby: Jon30: Try green shoes, its a bit less dated.
<IceDragon> yup
<IceDragon> ;x thats the downfall of it
<lewellyn> _br_: mind linking it?
icole has quit [Remote host closed the connection]
<lewellyn> searching for green shoes got me zappos ;)
danielpcox has quit [Ping timeout: 252 seconds]
<lewellyn> that still requires gtk :(
kofno has joined #ruby
<lewellyn> too bad there isn't something that can do like raw opengl stuff
<ShellFu> Is there a better way to handle this sort of scenario: >if condition then puts "error message" exit end< Should that be take care of with begin/rescue blocks?
jimeh has quit [Quit: Computer has gone to sleep.]
<IceDragon> I use rescue when I'm unsure what is going to happen
<_br_> ShellFu: Do you mean something like raise ArgumentError, "Blahbla" if( foobar )
mikalv has quit [Ping timeout: 245 seconds]
<IceDragon> I use a normal condition if I'm dead sure something should happen
<ShellFu> I think so _br_ . Basically checking arguments or checking results from searches out of mongodb etc.
<_br_> IceDragon: Well, rescue without anything raises StandardError. So all errors of it and derived ones are matched.
<lewellyn> i mean, something like FXRuby would be nice if maintained :(
<ShellFu> In shell scripting I typically do what I first stated. If condition print error exit(code)
<Jon30> _br_: what happens if I wanted to package my script into an executable. would it still require for users to install gtk?
<ShellFu> is raise the proper "ruby" way
<_br_> Btw. never ever ever do rescue Exception => e ... or someone will stab you
BadLarry has quit [Ping timeout: 252 seconds]
gabrielrotbart has quit [Remote host closed the connection]
<_br_> Jon30: I think you might want to check out jruby and its possilbities via the java packages instead of pure ruby.
<IceDragon> _br_ I do that for my game PROBLEM? # it opens my sublime to the error script :D
jimeh has joined #ruby
nateberkopec has joined #ruby
<Jon30> _br_: I already looked into it, but it limits me to only certain gems. for example I cannot use sqlite
beneggett has joined #ruby
<_br_> IceDragon: It catches everything also ctrl+c etc. well you get the gist of it
gyre008 has joined #ruby
ryanh has joined #ruby
ryanh has quit [Max SendQ exceeded]
<IceDragon> nah I handled interrupts and exits seperatley
atyz has quit [Quit: Leaving...]
DuoSRX has quit [Remote host closed the connection]
mikepack has quit [Read error: Connection reset by peer]
nateberkopec has quit [Client Quit]
<_br_> Jon30: Hm, well probably gtk or qt is most often drawn in as dependencies. I know many people dislike it but there is also wide support for tcl/tk based windowing which might not be so sleek but is an option
mikepack has joined #ruby
gabrielrotbart has joined #ruby
awarner has joined #ruby
<Jon30> hmm how about wxruby?
<_br_> IceDragon: It catches also SyntaxError, LoadError and a hole bunch of other stuff. It is bad practice. Dont do it.
maxmanders has quit [Ping timeout: 256 seconds]
<IceDragon> _br_ also all handled
<_br_> Jon30: never tried that, but if it rolls your dice why not
<IceDragon> The rescue block isn't done until 'all' the Game's scripts have been loaded
dv_ has quit [Read error: Connection reset by peer]
ryanh has joined #ruby
nari has quit [Ping timeout: 256 seconds]
* _br_ rolls eyes
* IceDragon noms a cookie
invisime has quit [Quit: Leaving.]
dv_ has joined #ruby
joshman_ has quit [Quit: Computer has gone to sleep.]
awarner_ has quit [Ping timeout: 256 seconds]
predator217 has joined #ruby
nilobject has quit [Quit: leaving]
nilobject has joined #ruby
forced_request has joined #ruby
Criztian has quit [Remote host closed the connection]
ryanh has quit [Ping timeout: 252 seconds]
skattyadz has quit [Quit: skattyadz]
predator117 has quit [Ping timeout: 248 seconds]
huoxito has quit [Ping timeout: 244 seconds]
jgarvey has quit [Quit: Leaving]
axl_ has quit [Quit: axl_]
skattyadz has joined #ruby
* shevy rolls _br_
lethjakman_lapto has quit [Ping timeout: 252 seconds]
_JamieD_ has quit [Quit: _JamieD_]
bawigga has quit [Quit: Textual IRC Client: www.textualapp.com]
Konboi has joined #ruby
karupanerura has quit [Excess Flood]
byped has quit [Quit: byped]
pac1 has joined #ruby
Kingy_ has quit [Quit: Leaving]
slainer68 has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
karupanerura has joined #ruby
mmitchell has quit [Remote host closed the connection]
<_br_> shevy: haha, you wish ! :)
martin_work has joined #ruby
icole has joined #ruby
bigkm has joined #ruby
huoxito has joined #ruby
nilobject has quit [Quit: leaving]
nilobject has joined #ruby
ephemerian has quit [Quit: Leaving.]
main has quit [Ping timeout: 255 seconds]
Criztian has joined #ruby
icole has quit [Read error: Connection reset by peer]
bttf has quit [Ping timeout: 256 seconds]
icole_ has joined #ruby
swex_ has quit [Read error: Operation timed out]
swex has joined #ruby
icole has joined #ruby
danneu has quit [Quit: WeeChat 0.3.8]
biff_tannen has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
idkazuma has quit [Remote host closed the connection]
QKO has joined #ruby
icole_ has quit [Ping timeout: 248 seconds]
icole has quit [Remote host closed the connection]
QKO_ has quit [Ping timeout: 252 seconds]
atyz has joined #ruby
dougireton has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
stkowski has quit [Quit: stkowski]
ryanf has quit [Read error: Connection reset by peer]
ryanf has joined #ruby
gyre008 has quit [Remote host closed the connection]
freakazoid0223 has quit [Quit: Leaving]
davidd12 has joined #ruby
poikon has joined #ruby
mercwith1mouth has joined #ruby
Konboi has quit [Quit: Leaving...]
davidd12 has quit [Remote host closed the connection]
Konboi has joined #ruby
mrsolo has quit [Quit: Leaving]
Criztian has quit [Remote host closed the connection]
ryanf has quit [Ping timeout: 255 seconds]
atyz has quit [Ping timeout: 260 seconds]
ryanf has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
hbpoison has quit [Ping timeout: 252 seconds]
banister`sleep has quit [Read error: Connection reset by peer]
banister`sleep has joined #ruby
hbpoison has joined #ruby
yshh has joined #ruby
etcetera has quit []
nilobject has quit [Quit: leaving]
dougireton has quit [Ping timeout: 240 seconds]
nilobject has joined #ruby
angusiguess has joined #ruby
djwonk has joined #ruby
digifiv5e_ has quit [Ping timeout: 260 seconds]
poikon has quit [Ping timeout: 260 seconds]
cableray has quit [Quit: cableray]
workmad3 has quit [Ping timeout: 260 seconds]
dmerrick has quit [Quit: dmerrick]
<Es0teric> ok so i installed ruby on my linux box and i get this -> Readline was unable to be required, if you need completion or history install readline then reinstall the ruby.
<Es0teric> what does that mean exactly?
djwonk has quit [Ping timeout: 252 seconds]
etcetera has joined #ruby
digifiv5e has joined #ruby
<tjbiddle> Hey guys - screwing around with method_missing. Would this work? https://gist.github.com/thomasbiddle/4949826
digifiv5e is now known as Guest92767
<tjbiddle> Es0teric: I think I ran into that once, can't remember the solution though. Are you using RVM or system ruby?
bigkm has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<Es0teric> tjbiddle rvm
rouss has joined #ruby
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
rouss is now known as Guest82793
maletor has joined #ruby
jonathanwallace has joined #ruby
<tjbiddle> Es0teric: Try apt-get install libreadline-dev
<Es0teric> tjbiddle sec
<Quadlex> tjbiddle: Nice question
<tjbiddle> Es0teric: If that doesn't work, give gem install rb-readline a try
billiam has joined #ruby
<Quadlex> I believe it ... will?
<tjbiddle> Es0teric: Nevermind - You don't have ruby installed, lol.
<Quadlex> Because magic
djwonk has joined #ruby
SeanLazer has joined #ruby
<tjbiddle> Quadlex: I like magic.
<lewellyn> you mean magnets.
piotr__ has quit [Ping timeout: 256 seconds]
<tjbiddle> Quadlex: The first implementation will work as well? I haven't tried the code - just assuming it would.
<Quadlex> lewellyn: stalker
<lewellyn> Quadlex: i bet i'm doing eviler things to ruby than you are. so meh. ;)
<Es0teric> tjbiddle i just have to reinstall ruby for it to recognize readline
<Quadlex> tjbiddle: I'm not sure, but it's something I'm intrigured about
bricker has joined #ruby
<Es0teric> and thats what i am doing
<tjbiddle> Quadlex: But I believe Ruby would just ignore all of the whitespace anyhow. IIRC when you override a setter you do something like `def myvar=`
<Quadlex> lewellyn: I'm just encouraging people to integration test their webapps
<Quadlex> So most likely
<tjbiddle> Quadlex: I shall give it a try and report back :)
Xeago_ has joined #ruby
Xeago is now known as Guest93077
Guest93077 has quit [Killed (verne.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<lewellyn> Quadlex: ruby 2.0.0dev (2012-05-30 trunk 35842) [arm-nto-qnx8.0.0eabi]
<lewellyn> that's evil ;)
<Quadlex> If only we had some sort of Read, Print, Evaluate Loop
joofsh has quit [Remote host closed the connection]
<Quadlex> lewellyn: {os: windows-8, browser: io-10}
<tjbiddle> Es0teric: Hm? Are you saying that the readline package won't go through until ruby does?
djwonk has quit [Read error: Connection reset by peer]
<lewellyn> Quadlex: pfft. that's not anything special. ;)
<tjbiddle> If that's the case, you installed a ruby system package - and not RVM. And that's what's crapping out.
<tjbiddle> Otherwise aptitude shouldn't be complaining about it
<Es0teric> tjbiddle well rvm tells me that if i recently installed it to just reinstall ruby
jimeh has quit [Quit: Computer has gone to sleep.]
<tjbiddle> Es0teric: rvm reinstall ruby1.9.3 (I think that would be the correct command)
<Es0teric> yeah, tjbiddle i did that already
<Es0teric> its compiling
<Es0teric> wtf? i am just installing ruby and i already got a threshold warning on my server?
bricker_ has quit [Ping timeout: 260 seconds]
<Quadlex> That's what I said
taoru has joined #ruby
joofsh has joined #ruby
<Quadlex> Sigh.
<Quadlex> I'm an Opera user
<Quadlex> today makes me sad
<Es0teric> yeah, tjbiddle
<Es0teric> that did the trick, man
<Es0teric> thanks
<tjbiddle> Quadlex: Works! I did switch the if/elsif though (So if it ends with = that will get called, otherwise it will always be skipped due to matching the other regex as well)
<tjbiddle> Es0teric: Np, have fun!
<Quadlex> tjbiddle: Sweet
stopbit has quit [Quit: Leaving]
marr has quit [Ping timeout: 256 seconds]
<tjbiddle> Quadlex: Gotta love metaprogramming :-) Just cut out a crap load of code that I was about to write lol
<Quadlex> My BF is a Ruby developer
gabrielrotbart has joined #ruby
<Quadlex> Hewas talking about monkeypatching a few years ago
<Quadlex> And didn't quite get why I was complaining about how horrible it was that that was seen as a good practice
<lewellyn> Quadlex: i gave up on opera when they gave up on my platforms of choice.
<Quadlex> Then everyone stopped doing it:P
<Quadlex> lewellyn: a *nix?
<lewellyn> Quadlex: i say this as someone who paid for opera in the early days
<lewellyn> yes.
<Quadlex> Sad, I didn't realize
<Quadlex> I bought it also
BeLucid_ has joined #ruby
<tjbiddle> Quadlex: Heh. Cool nonetheless. I'm actually purposefully implementing a way to monkey patch easily in this project (Writing an internal CLI tool and want the users to be able to add new commands on a per project basis)
<lewellyn> it may not have been the best browser on win3.1, but i was happier to pay for it than netscape.
DrCode has quit [Remote host closed the connection]
mercwith1mouth has quit [Quit: Lost terminal]
<lewellyn> (i bought netscape too, yes.)
<Es0teric> ewww netscape...
<Es0teric> that is so... 1998
<Es0teric> lol
<lewellyn> Es0teric: go back to 1995 and say ew ;)
<Es0teric> man... netscape was the first web browser i used
<Es0teric> i was like what? 10 or 12?
<martin_work> anyone know why this is not sorting? puts foo.to_yaml( :UseHeader => false, :SortKeys => true)
freakazoid0223 has joined #ruby
mercwith1mouth has joined #ruby
hmarr has quit [Ping timeout: 255 seconds]
<martin_work> actually it might be sorting just not sorting numerically
<Quadlex> tjbiddle: Oh, it's a powerful feature
<lewellyn> Es0teric: internet explorer (version 1, but 1 wasn't versioned) wasn't really that usable. it really was just a souped up mosaic. :)
<Quadlex> I just think that the way it was encouraged was somewhat terrible
mercwith1mouth has quit [Client Quit]
nari has joined #ruby
<lewellyn> now. coffee.
BeLucid has quit [Ping timeout: 248 seconds]
mercwith1mouth has joined #ruby
<tjbiddle> Quadlex: Yeah, haha. I wouldn't particularly encourage it - But nice to have.
Guest82793 has quit [Quit: Computer has gone to sleep.]
<tjbiddle> Heading out. Later.
blaxter has quit [Quit: foo]
mercwith1mouth has quit [Client Quit]
mercwith1mouth has joined #ruby
tjbiddle_ has joined #ruby
<Quadlex> So what do you do tjbiddle?
goraxe has quit [Read error: Connection reset by peer]
tcstar has joined #ruby
Virunga has quit [Remote host closed the connection]
lusory has quit [Remote host closed the connection]
etcetera has quit []
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
tylersmith has quit [Quit: tylersmith]
tjbiddle has quit [Ping timeout: 272 seconds]
whowantstolivefo has quit [Read error: Connection reset by peer]
EvanR has quit [Ping timeout: 255 seconds]
tjbiddle_ has quit [Ping timeout: 260 seconds]
tylersmith has joined #ruby
zeade has quit [Quit: Leaving.]
DrCode has joined #ruby
etcetera has joined #ruby
ngoldman has quit [Remote host closed the connection]
ogamita has quit [Ping timeout: 248 seconds]
erlingur has quit [Quit: Computer has gone to sleep.]
QKO_ has joined #ruby
mercwith1mouth has quit [Quit: leaving]
pskosinski has quit [Quit: Red Eclipse - Game where being from Pakistan is bad: http://pawelk.pl/racist-red-eclipse-quin-zeroknight-gingerbear/]
mercwith1mouth has joined #ruby
lusory has joined #ruby
emmanuelux has quit [Remote host closed the connection]
QKO has quit [Ping timeout: 252 seconds]
mikepack has quit [Remote host closed the connection]
daniel_- has quit [Ping timeout: 252 seconds]
mikepack has joined #ruby
beneggett has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
etcetera has quit [Read error: Operation timed out]
Aguy has joined #ruby
Es0teric has quit [Read error: Connection reset by peer]
martin_work has quit [Quit: martin_work]
quatar2 has quit [Remote host closed the connection]
<aedorn> I do believe all this refactoring is making me slowly go crazy. Maybe if I started coding with gloves on...
SeanLazer has quit [Quit: SeanLazer]
hmarr has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
mikepack has quit [Ping timeout: 264 seconds]
<_br_> aedorn: try oven mitts :D
timonv has joined #ruby
etcetera has joined #ruby
ebobby has joined #ruby
mahmoudimus has joined #ruby
huoxito has quit [Quit: Leaving]
<Aguy> anyone here every use mruby
<aedorn> That is a good idea. I approve.
mephux has quit [Excess Flood]
nat_home has joined #ruby
ryanf has quit [Read error: Connection reset by peer]
james has joined #ruby
ryanf has joined #ruby
james is now known as Guest23783
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
<aces1up> anyone know if there is a protocol for something like a remote gui?
<aces1up> kinda where an app sends messages and then a remote gui can connect to the app.
mephux has joined #ruby
<aces1up> then parse the messages for rendering on the gui front end?
<heftig> aces1up: X
<aces1up> i'm not really sure what this is called, just wondering what this type of protocol would be called.
<aces1up> is there anything like X protocol for ruby?
<aces1up> just so i'm not re-inventing something?
inokenty has quit [Remote host closed the connection]
wr has quit [Quit: Leaving]
<aces1up> I just have a console app that I would like to render data for on a remote machine.
skattyadz has quit [Quit: skattyadz]
dmiller2 has quit [Ping timeout: 256 seconds]
<heftig> eh, just bake your own stuff
<aces1up> heftig was about to.
<heftig> do all the rendering on the client, just send a minimum of data over the wire
Guest23783 has quit [Client Quit]
<aces1up> had a thought of running a simple http server on the console app.
<heftig> don't generalize into some kind of universal remote gui
<aedorn> heh... Ruby XwindowProtocol... I think I'd rather build a Sinatra app
<aces1up> heftig ok.
<aces1up> would you use just a tcpsocket? or use something like a built in http server?
<Aguy> does anyone know how to compile a ruby .rb to a linux executable
<heftig> DRB?
<aces1up> heftig i heard that was kinda slow.
<heftig> Aguy: for what purpose?
<Aguy> a self executable
<heftig> it's not possible in any way that hides the source code
<Aguy> yes it is
<Aguy> mruby
<Aguy> or ocra or crate
chendo_ has quit [Ping timeout: 252 seconds]
<Aguy> or rubyscript2exe
<heftig> nope
<Aguy> but I need another way
tealmage has quit [Remote host closed the connection]
agarie has quit [Remote host closed the connection]
meoblast001 has joined #ruby
<Aguy> yes u can
<Aguy> I have donejt plenty of times
icole has joined #ruby
<Aguy> I have done it*
<Aguy> but im trying to use mruby to do it
twoism has quit [Remote host closed the connection]
<Aguy> and I need help
chendo_ has joined #ruby
mlr has quit [Ping timeout: 252 seconds]
heimark_ has quit [Quit: Computer has gone to sleep.]
radic has joined #ruby
awarner has quit [Remote host closed the connection]
awarner has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
bradhe has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
agarie has joined #ruby
jpfuentes2 has joined #ruby
aantix has quit [Ping timeout: 272 seconds]
icole has quit [Ping timeout: 256 seconds]
Bosma has quit [Ping timeout: 245 seconds]
mikepack has joined #ruby
inao has joined #ruby
arya has quit [Ping timeout: 248 seconds]
chendo_ has quit [Ping timeout: 255 seconds]
Bosma has joined #ruby
chendo_ has joined #ruby
chrisja has quit [Quit: leaving]
nat_home has quit [Quit: Leaving.]
joeycarmello has quit [Remote host closed the connection]
crackfu has joined #ruby
Es0teric has joined #ruby
jlast has joined #ruby
josh_keith has quit [Ping timeout: 260 seconds]
arya has joined #ruby
radq has joined #ruby
baba has quit [Quit: WeeChat 0.4.0]
tomzx_mac has joined #ruby
mlr has joined #ruby
kenneth has quit [Ping timeout: 260 seconds]
Hanmac1 has joined #ruby
mahmoudimus has quit [Ping timeout: 252 seconds]
gabrielrotbart has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 276 seconds]
witchdoc has quit [Ping timeout: 260 seconds]
dmiller2 has joined #ruby
arya has quit [Ping timeout: 248 seconds]
crackfu is now known as fu
witchdoc has joined #ruby
witchdoc has quit [Changing host]
witchdoc has joined #ruby
kenneth has joined #ruby
ckrailo has quit [Ping timeout: 276 seconds]
fu is now known as Guest4710
Qwak has quit [Ping timeout: 252 seconds]
brianpWins has quit [Quit: brianpWins]
<jokke> heftig: you never sleep, do you
yxhuvud has quit [Quit: Nettalk6 - www.ntalk.de]
martin_work has joined #ruby
IceDragon has quit [Ping timeout: 260 seconds]
tylersmith has quit [Quit: tylersmith]
yxhuvud has joined #ruby
radq has quit [Remote host closed the connection]
josh_keith has joined #ruby
gabrielrotbart has joined #ruby
tylersmith has joined #ruby
Aguy has quit [Quit: .net .fakesplit]
hmarr has quit [Quit: Computer has gone to sleep.]
mockra has quit [Remote host closed the connection]
tylersmith has quit [Client Quit]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
pdamer has joined #ruby
d2dchat has joined #ruby
SCommette has quit [Quit: SCommette]
QKO has joined #ruby
QKO_ has quit [Ping timeout: 245 seconds]
chrishunt has quit [Read error: Connection reset by peer]
mrdtt has joined #ruby
cobragoat has quit [Remote host closed the connection]
arya has joined #ruby
angusiguess has quit [Ping timeout: 244 seconds]
benlieb has joined #ruby
chico_chicote has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 245 seconds]
chrishunt has joined #ruby
IceDragon has joined #ruby
arya_ has joined #ruby
peregrine81 has joined #ruby
dhruvasagar has joined #ruby
adeponte has quit [Remote host closed the connection]
bean has joined #ruby
mahmoudimus has joined #ruby
Xeago has quit [Remote host closed the connection]
yacks has joined #ruby
banjara has quit [Quit: Leaving.]
Xeago has joined #ruby
arya has quit [Ping timeout: 248 seconds]
subbyyy has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
hbpoison has quit [Quit: Lost terminal]
<aedorn> it's nil! It should be 8, but it's nil!
jlast has quit [Remote host closed the connection]
sn0wb1rd has quit [Quit: sn0wb1rd]
brianpWins has joined #ruby
aaronmacy has quit [Quit: Leaving.]
ahokaomaeha has quit [Ping timeout: 264 seconds]
Guest4710 is now known as crackfu
crackfu has quit [Changing host]
crackfu has joined #ruby
arya_ has quit [Ping timeout: 244 seconds]
banjara has joined #ruby
atyz has joined #ruby
joeycarmello has joined #ruby
nat_home has joined #ruby
danneu has joined #ruby
angusiguess has joined #ruby
etcetera has quit []
etcetera has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
arya has joined #ruby
gabrielrotbart has quit [Read error: Connection reset by peer]
io_syl has quit [Quit: Computer has gone to sleep.]
atyz has quit [Ping timeout: 240 seconds]
nat_home has quit [Client Quit]
gabrielr_ has joined #ruby
danieldocki has quit [Quit: Leaving...]
icole has joined #ruby
generalissimo has joined #ruby
sn0wb1rd has joined #ruby
tealmage has joined #ruby
multi_io has quit [Read error: Operation timed out]
chimmy has joined #ruby
baroquebobcat has joined #ruby
Hanmac1 has quit [Ping timeout: 255 seconds]
alvaro_o has quit [Quit: Ex-Chat]
Hanmac has joined #ruby
bradhe has joined #ruby
nfk has quit [Quit: yawn]
danielpcox has joined #ruby
tealmage has quit [Ping timeout: 260 seconds]
peregrine81 has quit [Quit: Computer sleeping.]
arya has quit [Ping timeout: 256 seconds]
dmiller2 has quit [Ping timeout: 256 seconds]
pac1 has quit [Quit: I got it one line of code at a time]
multi_io has joined #ruby
aapzak has quit [Ping timeout: 260 seconds]
mikepack has quit [Remote host closed the connection]
denom has quit [Ping timeout: 244 seconds]
mikepack has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
arya has joined #ruby
nga4 has quit [Ping timeout: 272 seconds]
cparen has joined #ruby
nga4 has joined #ruby
mikalv has joined #ruby
nga4 has quit [Client Quit]
chimmy has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
mikepack has quit [Ping timeout: 260 seconds]
danielpcox has quit [Ping timeout: 256 seconds]
<Quadlex> Anyone going to RubyConf.AU?
greenarrow has quit [Quit: IRC is just multiplayer notepad]
toekutr has quit [Remote host closed the connection]
QKO_ has joined #ruby
greenarrow has joined #ruby
QKO has quit [Ping timeout: 260 seconds]
mikepack has joined #ruby
toekutr has joined #ruby
segv- has joined #ruby
etcetera has quit []
w|t has quit [Quit: Cya.]
[[johnonymous]] has joined #ruby
w|t has joined #ruby
w|t has quit [Changing host]
w|t has joined #ruby
segv- has quit [Client Quit]
segv- has joined #ruby
etcetera has joined #ruby
segv- has quit [Client Quit]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
biff_tannen has quit [Ping timeout: 276 seconds]
adeponte has joined #ruby
aapzak has joined #ruby
aedorn has quit [Ping timeout: 272 seconds]
aedornm has quit [Ping timeout: 272 seconds]
joofsh has quit [Remote host closed the connection]
ryanf has quit [Read error: Connection reset by peer]
ryanf has joined #ruby
martin_work has quit [Quit: martin_work]
simonj27 has joined #ruby
ahokaomaeha has joined #ruby
brianpWins has quit [Quit: brianpWins]
etcetera has quit []
aedornm has joined #ruby
crackfu has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
simonj27 has quit [Remote host closed the connection]
<kenneth> hey all
mikepack has joined #ruby
<kenneth> am i correct in assuming that this would work?
crackfu has joined #ruby
<kenneth> puts "hello" unless ->{ (true && JSON.parse(opts[:query])) rescue false }.call
<kenneth> if the purpose is to check that opts[:query] is parsable as json, in a one liner
etcetera has joined #ruby
<kenneth> i guess this would be better, though:
joofsh has joined #ruby
<whitequark> 1) you never may need `true &&' something
<whitequark> that's a no-op
<whitequark> 2) don't write this as an one-liner
ryanf has quit [Read error: Connection reset by peer]
maletor has quit [Quit: Computer has gone to sleep.]
<kenneth> _ = JSON.parse(…) rescue puts "hello"
ryanf has joined #ruby
<whitequark> 3) don't write expressions with side effects in rescue
dhruvasagar has quit [Ping timeout: 260 seconds]
<whitequark> er, suffix rescue
<whitequark> 4) you don't need _ = here
<whitequark> but yes.
apok has quit [Quit: apok]
brianpWins has joined #ruby
dhruvasagar has joined #ruby
zeade has joined #ruby
sduckett has quit [Ping timeout: 246 seconds]
crackfu has quit [Ping timeout: 240 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
etcetera has quit [Client Quit]
mockra has joined #ruby
mikepack has quit [Ping timeout: 256 seconds]
mockra has quit [Remote host closed the connection]
cobragoat has joined #ruby
Lubinski has quit [Ping timeout: 260 seconds]
cobragoat has quit [Ping timeout: 252 seconds]
freakazoid0223 has quit [Ping timeout: 260 seconds]
skrewler has joined #ruby
ShellFu has quit [Read error: Connection reset by peer]
aytch_ has joined #ruby
icole_ has joined #ruby
aytch has quit [Read error: Connection reset by peer]
lethjakman_lapto has joined #ruby
benlieb has quit [Quit: benlieb]
icole has quit [Ping timeout: 260 seconds]
chimmy has joined #ruby
AndChat| has joined #ruby
meoblast001 has quit [Remote host closed the connection]
benlieb has joined #ruby
denom has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
a_a_g has joined #ruby
Banistergalaxy has quit [Ping timeout: 272 seconds]
ebobby has quit [Quit: Lost terminal]
bricker`1ork has joined #ruby
yakko_ has joined #ruby
agarie_ has joined #ruby
tealmage has joined #ruby
icole_ has quit [Ping timeout: 248 seconds]
wyhaines_ has quit [Ping timeout: 255 seconds]
aytch has joined #ruby
BeanDip__ has joined #ruby
agarie has quit [Read error: No route to host]
aytch_ has quit [Ping timeout: 248 seconds]
bricker`work has quit [Ping timeout: 260 seconds]
icole has joined #ruby
phwd has quit [Ping timeout: 264 seconds]
lethjakman_lapto has quit [Ping timeout: 252 seconds]
lethjakman has joined #ruby
blooberr has quit [Ping timeout: 276 seconds]
BeanDip_ has quit [Quit: No Ping reply in 180 seconds.]
phwd has joined #ruby
phwd has quit [Changing host]
phwd has joined #ruby
Beoran__ has joined #ruby
Yakko has quit [Ping timeout: 276 seconds]
Elfix has quit [Ping timeout: 276 seconds]
Elfix has joined #ruby
wyhaines has joined #ruby
hydrozen has joined #ruby
Beoran_ has quit [Ping timeout: 245 seconds]
chimkan_ has quit [Quit: chimkan_]
tealmage has quit [Remote host closed the connection]
xemu2 has quit [Quit: Nettalk6 - www.ntalk.de]
ericwood has quit [Ping timeout: 264 seconds]
ericwood has joined #ruby
plotter has quit [Ping timeout: 272 seconds]
jeekl has quit [Ping timeout: 276 seconds]
Trudko has joined #ruby
Trudko has quit [Quit: ChatZilla 0.9.89-rdmsoft [XULRunner 1.9.0.17/2009122204]]
Voodoofish430 has quit [Quit: Leaving.]
wargasm has quit [Read error: Connection reset by peer]
wargasm has joined #ruby
bricker has quit [Ping timeout: 252 seconds]
mercwith1mouth has quit [Quit: leaving]
ndboost has joined #ruby
mercwith1mouth has joined #ruby
rupee has quit [Ping timeout: 256 seconds]
jeekl has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
francisfish has joined #ruby
io_syl has joined #ruby
QKO has joined #ruby
Umren has joined #ruby
francisfish has quit [Remote host closed the connection]
QKO_ has quit [Ping timeout: 255 seconds]
yakko_ is now known as Yakko
octoberry has joined #ruby
cobragoat has joined #ruby
generalissimo has quit [Ping timeout: 260 seconds]
divout has joined #ruby
SeanLazer has joined #ruby
crackfu has joined #ruby
mrdtt has quit [Read error: Connection reset by peer]
IrishGringo has quit [Remote host closed the connection]
krz has joined #ruby
<danneu> x = ->(_) { JSON.parse(_) rescue nil }
AlSquirrel has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
<danneu> x.('{ "a": 1 }')
heimark has joined #ruby
IceDragon has quit [Quit: Space~~~]
<danneu> i don't remember what json looks like
mrdtt has joined #ruby
<danneu> oh duh, you need to `require 'json'` first or it'll rescue the load error
tjbiddle has joined #ruby
ndboost has quit [Remote host closed the connection]
AlSquirrel has quit [Ping timeout: 252 seconds]
cableray has joined #ruby
[[johnonymous]] has quit [Quit: Computer has gone to sleep.]
angusiguess has quit [Ping timeout: 252 seconds]
cparen has quit [Quit: cparen]
AlSquire has joined #ruby
tetsuseus is now known as tetsu
tetsu is now known as tetsuseus
joofsh has quit [Remote host closed the connection]
speakingcode-wor has quit [Ping timeout: 255 seconds]
tomzx_mac has quit [Read error: Operation timed out]
eroc has joined #ruby
mlr has quit [Ping timeout: 255 seconds]
<eroc> Okay, this might be the worlds dumbest question, but here goes.
chimmy has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<eroc> I have one class that looks like this: class MyClass; end
billiam has quit [Read error: Connection reset by peer]
<eroc> And another that looks like this: MyOtherClass < Sinatra::Base; end
<eroc> MyClass.new.class return MyClass
<eroc> MyOtherClass.new.class returns Sinatra::ExtendedRack
<eroc> I would have expected MyOtherClass.new.class to return MyOtherClass. Can anyone shed some light on what's going on?
nshbrown has joined #ruby
<nshbrown> how do I build a XML document in memory to post through to a web service? What library would work best for this
maletor has joined #ruby
emocakes has quit [Quit: emocakes]
AlSquirrel has joined #ruby
<eroc> Crap, figured it out. Sinatra redefines "new".
v0n has joined #ruby
AlSquirrel has quit [Read error: Connection reset by peer]
AlSquirrel has joined #ruby
sepp2k has quit [Remote host closed the connection]
ryanf has quit [Read error: Connection reset by peer]
AlSquire has quit [Read error: Connection reset by peer]
ryanf has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
tjbiddle_ has joined #ruby
forced_request has quit [Read error: Connection reset by peer]
Umren has quit [Read error: Connection reset by peer]
pdamer has quit [Quit: pdamer]
octoberry has quit [Ping timeout: 260 seconds]
tjbiddle has quit [Read error: Connection reset by peer]
tjbiddle has joined #ruby
tjbiddle_ has quit [Ping timeout: 260 seconds]
dmiller2 has joined #ruby
mockra has joined #ruby
brianpWins has quit [Ping timeout: 252 seconds]
arya has quit [Ping timeout: 240 seconds]
<danneu> nshbrown: haml, erb
generalissimo has joined #ruby
plotter has joined #ruby
eka has joined #ruby
mockra has quit [Ping timeout: 276 seconds]
mahmoudimus has joined #ruby
angusiguess has joined #ruby
replore has joined #ruby
replore has quit [Remote host closed the connection]
Jaxel has joined #ruby
<Jaxel> Hello, I'm having some trouble using OpenSSL encryption
<Jaxel> Whenever I attempt to do so, decrypting anything results in a 'wrong final block length' error
<Jaxel> Specifically when trying to add cipher.final
AlSquirrel has quit [Ping timeout: 255 seconds]
<Jaxel> I'm just using the encryptor gem
joeycarmello has quit [Remote host closed the connection]
mlr has joined #ruby
mlr_ has joined #ruby
angusiguess has quit [Ping timeout: 252 seconds]
replore_ has joined #ruby
elico has joined #ruby
mlr_ has quit [Client Quit]
replore_ has quit [Remote host closed the connection]
mlr_ has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
QKO_ has joined #ruby
mlr has quit [Ping timeout: 255 seconds]
chendo_ has quit [Remote host closed the connection]
Spooner has quit [Remote host closed the connection]
mahmoudimus has quit [Remote host closed the connection]
mrdtt has quit [Read error: Connection reset by peer]
chendo_ has joined #ruby
QKO has quit [Ping timeout: 252 seconds]
mrdtt has joined #ruby
mahmoudimus has joined #ruby
browndawg has joined #ruby
rburton- has joined #ruby
hydrozen has quit [Quit: Textual IRC Client: www.textualapp.com]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
uris has quit [Quit: Leaving]
pyrac has joined #ruby
ddv has quit [Ping timeout: 240 seconds]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
ananthakumaran has joined #ruby
mattbl has joined #ruby
mattbl is now known as MattRB
nomenkun has joined #ruby
browndawg1 has joined #ruby
theshow has quit [Ping timeout: 252 seconds]
chendo_ has quit [Ping timeout: 252 seconds]
io_syl has quit [Ping timeout: 252 seconds]
MattRB has quit [Quit: This computer has gone to sleep]
nomenkun has quit [Ping timeout: 255 seconds]
joeycarmello has joined #ruby
chendo_ has joined #ruby
one has joined #ruby
browndawg has quit [Ping timeout: 256 seconds]
Targen has joined #ruby
<aedornm> hmmmm.. I do believe Google's data calculator is wrong
io_syl has joined #ruby
nazty has quit [Ping timeout: 244 seconds]
hashmal has quit [Quit: Computer has gone to sleep.]
kstephens has quit [Read error: Connection reset by peer]
caleb_io has joined #ruby
agarie_ has quit [Remote host closed the connection]
AlSquire has joined #ruby
mattbl has joined #ruby
SeanLazer has quit [Quit: SeanLazer]
kstephens has joined #ruby
<kenneth> ugh i'm confused
<kenneth> what does it take to call define_method in the main scope of a script
elico has quit [Ping timeout: 252 seconds]
<kenneth> i'm trying to figure define a method with a lambda that captures a variable from the script (without making it a $global)
hbpoison has joined #ruby
elico has joined #ruby
<aedornm> yup.. it's using 10^(3,6,9...) instead of 1024. Do not approve.
<kenneth> i think i figured it out…
<kenneth> class Object; class << self; public :define_method; end; def def_with_lambda(*a); self.class.define_method(*a); end; end
<kenneth> not nasty at all…
pothibo has quit [Quit: pothibo]
AlSquirrel has joined #ruby
c0rn has joined #ruby
<Jonah11_> say i have types of class A and class B, and I want to define (a - b) and (b-a) where "a" is an "A" and "b" is a "B". Do I have to define the "-" operator on A (taking an arg of B) and on B (taking an arg of A) or is there a better way?
chendo_ has quit [Ping timeout: 260 seconds]
LouisRoR has joined #ruby
AlSquire has quit [Ping timeout: 245 seconds]
agarie has joined #ruby
yacks has quit [Quit: Leaving]
chendo_ has joined #ruby
AlSquirrel has quit [Read error: Operation timed out]
kenneth has quit [Quit: kenneth]
SCommette has joined #ruby
cparen has joined #ruby
elico has quit [Read error: Connection reset by peer]
elico has joined #ruby
caleb_io has quit [Quit: caleb_io]
etcetera has joined #ruby
aaronmacy has joined #ruby
AlSquire has joined #ruby
vikhyat has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
nat_home has joined #ruby
generalissimo has quit [Remote host closed the connection]
AlSquire has quit [Read error: Connection reset by peer]
icole has quit [Remote host closed the connection]
nilobject has quit [Quit: nilobject]
nilobject has joined #ruby
<aedornm> I see. They are using kibi/begi/gibibytes, but not specified, and it's inconsistent. Thanks Big G.
apok has joined #ruby
AlSquire has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
otherj has joined #ruby
zeade has quit [Quit: Leaving.]
icole has joined #ruby
<aedornm> been here trying to verify a test worked for the past hour, and the data conversion from Google was wrong. Always check your terms and math, people!
nshbrown has quit [Quit: nshbrown]
apok has quit [Quit: apok]
blooberr has joined #ruby
dayepa_ has joined #ruby
yacks has joined #ruby
dayepa has joined #ruby
kenneth has joined #ruby
<Quadlex> aedornm: Meh, I'll just google it
thone has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
angusiguess has joined #ruby
<aedornm> Quadlex: ...
QKO has joined #ruby
jonahR has quit [Quit: jonahR]
aaronmacy has quit [Quit: Leaving.]
aaronmacy has joined #ruby
Jon30 has quit [Ping timeout: 260 seconds]
thone_ has quit [Ping timeout: 255 seconds]
mikepack has joined #ruby
QKO_ has quit [Ping timeout: 256 seconds]
a_a_g has quit [Quit: Leaving.]
angusiguess has quit [Ping timeout: 252 seconds]
hbpoison has quit [Read error: Connection reset by peer]
cparen has quit [Quit: cparen]
hbpoison has joined #ruby
octoberry has joined #ruby
Monie has joined #ruby
<aedornm> mmm ice wine
mrdtt has quit [Remote host closed the connection]
agarie has quit [Remote host closed the connection]
mrdtt has joined #ruby
dmiller2 has quit [Ping timeout: 245 seconds]
SCommette has quit [Quit: SCommette]
joeycarmello has quit [Remote host closed the connection]
shock_one has joined #ruby
mahmoudimus has joined #ruby
divout has quit [Ping timeout: 252 seconds]
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
hbpoison has quit [Read error: Connection reset by peer]
cparen has joined #ruby
hbpoison has joined #ruby
chendo_ has quit [Ping timeout: 248 seconds]
elico has quit [Remote host closed the connection]
chendo_ has joined #ruby
cyong has joined #ruby
rippa has joined #ruby
mikepack has quit [Ping timeout: 260 seconds]
ryanf has quit [Ping timeout: 264 seconds]
gabrielr_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
icole has quit [Remote host closed the connection]
mlr_ has quit [Ping timeout: 264 seconds]
maletor has joined #ruby
one has quit []
braoru has joined #ruby
mattbl has joined #ruby
JohnBat26 has joined #ruby
mattbl has quit [Client Quit]
carraroj has joined #ruby
AlSquirrel has joined #ruby
AlSquirrel has quit [Read error: Connection reset by peer]
AlSquirrel has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
rburton- has quit [Quit: Linkinus - http://linkinus.com]
Asher has quit [Quit: Leaving.]
pyrac has quit [Quit: pyrac]
browndawg1 has quit [Ping timeout: 252 seconds]
baroquebobcat has joined #ruby
tagrudev has joined #ruby
a_a_g has joined #ruby
browndawg has joined #ruby
octoberry has quit [Ping timeout: 260 seconds]
shock_one has quit [Ping timeout: 245 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
fmcgeough has quit [Ping timeout: 272 seconds]
rippa has quit [Ping timeout: 240 seconds]
baroquebobcat has quit [Client Quit]
baroquebobcat has joined #ruby
divout has joined #ruby
mattbl has joined #ruby
mlr has joined #ruby
brianpWins has joined #ruby
shock_one has joined #ruby
arya has joined #ruby
baroquebobcat has quit [Client Quit]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
mcqueenorama has joined #ruby
v0n has quit [Read error: Operation timed out]
mattbl has quit [Quit: This computer has gone to sleep]
aaronmacy has quit [Quit: Leaving.]
danneu has quit [Ping timeout: 252 seconds]
mockra has joined #ruby
dkannan has joined #ruby
Asher has joined #ruby
browndawg has quit [Quit: Leaving.]
robbyoconnor has joined #ruby
aapzak has quit [Read error: Connection reset by peer]
aaronmacy has joined #ruby
QKO_ has joined #ruby
macmartine has joined #ruby
QKO has quit [Ping timeout: 264 seconds]
icole has joined #ruby
charliesome_ has joined #ruby
charliesome_ is now known as charliesome
aapzak has joined #ruby
angusiguess has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
AntiTyping has quit [Quit: AntiTyping]
JumpMast3r has joined #ruby
cyong has quit [Quit: Leaving.]
benlieb has quit [Quit: benlieb]
adman65 has joined #ruby
icole has quit [Ping timeout: 256 seconds]
b1rkh0ff has quit [Ping timeout: 272 seconds]
icole has joined #ruby
Gajanan has joined #ruby
danneu has joined #ruby
daniel_hinojosa has quit [Quit: Leaving.]
willbradley has left #ruby [#ruby]
coder__ has joined #ruby
beliveyourdream has joined #ruby
Mon_Ouie has quit [Ping timeout: 260 seconds]
crackfu has quit [Quit: Leaving...]
d2dchat has quit [Remote host closed the connection]
b1rkh0ff has joined #ruby
hbpoison has quit [Ping timeout: 260 seconds]
wargasm1 has joined #ruby
mcqueenorama has quit [Remote host closed the connection]
wargasm has quit [Ping timeout: 240 seconds]
tjbiddle has joined #ruby
Morkel has joined #ruby
joeycarmello has joined #ruby
caleb_io has joined #ruby
joeycarmello has quit [Read error: Operation timed out]
haxrbyte has joined #ruby
one has joined #ruby
dkannan_ has joined #ruby
ddv has joined #ruby
wallerdev has joined #ruby
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
puppeh has joined #ruby
haxrbyte has quit [Remote host closed the connection]
dkannan has quit [Ping timeout: 240 seconds]
dkannan_ is now known as dkannan
mafolz has joined #ruby
haxrbyte has joined #ruby
andikr has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
puppeh has quit [Quit: Leaving...]
spaceships has quit [Quit: leaving]
end_guy_ has quit [Remote host closed the connection]
aaronmacy has quit [Quit: Leaving.]
ddv has quit [Ping timeout: 240 seconds]
arya has quit [Ping timeout: 248 seconds]
ddv has joined #ruby
caleb_io has quit [Quit: caleb_io]
alup has joined #ruby
aetaric has quit [Ping timeout: 248 seconds]
end_guy has joined #ruby
etcetera has quit []
arya has joined #ruby
jgrevich has quit [Remote host closed the connection]
pyrac has joined #ruby
aaronmacy has joined #ruby
aetaric has joined #ruby
cableray has quit [Quit: cableray]
LouisRoR has quit [Ping timeout: 256 seconds]
hbpoison has joined #ruby
clooth has joined #ruby
vikhyat is now known as radq
bricker has joined #ruby
adeponte has quit [Remote host closed the connection]
mercwith1mouth has quit [Ping timeout: 245 seconds]
mercwithamouth has quit [Ping timeout: 260 seconds]
adeponte has joined #ruby
QKO has joined #ruby
locriani has quit [Read error: Connection reset by peer]
aganov has joined #ruby
Morkel_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
aetaric has quit [Ping timeout: 240 seconds]
QKO_ has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
hbpoison has quit [Ping timeout: 260 seconds]
locriani has joined #ruby
Morkel has quit [Ping timeout: 252 seconds]
Morkel_ is now known as Morkel
wallerdev has quit [Client Quit]
Proshot has quit [Quit: Leaving]
fmcgeough has joined #ruby
rakaar has joined #ruby
aetaric has joined #ruby
filipe has joined #ruby
main has joined #ruby
razibog has joined #ruby
taoru_ has joined #ruby
Jon30 has joined #ruby
solidoodlesuppor has joined #ruby
taoru_ has quit [Read error: Connection reset by peer]
taoru_ has joined #ruby
caleb_io has joined #ruby
icole has quit [Remote host closed the connection]
luddemen1 has joined #ruby
taoru has quit [Ping timeout: 260 seconds]
tjbiddle has quit [Quit: tjbiddle]
icole has joined #ruby
erlingur has joined #ruby
ryanf has joined #ruby
eldariof has joined #ruby
icole has quit [Remote host closed the connection]
subbyyy has quit [Ping timeout: 244 seconds]
aryatosh has joined #ruby
ryanf has quit [Client Quit]
josh_keith has quit [Ping timeout: 260 seconds]
jjang has quit [Remote host closed the connection]
samuel02 has joined #ruby
jprovazn has joined #ruby
Gajanan1 has joined #ruby
Gajanan has quit [Read error: Connection reset by peer]
TheFuzzball has joined #ruby
Guest39035 is now known as ixx
kop__ has joined #ruby
<kop__> can anyone explain to me why i can see my number with pretty print, but I can't use an if to test against it?
fwaokda has quit []
kristofers has joined #ruby
<kop__> nm i think i figured it otu
<kop__> out
Jon30 has quit []
solidoodlesuppor has quit [Remote host closed the connection]
zigomir has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
hbpoison has joined #ruby
Evixion has quit []
josh_keith has joined #ruby
rismoney has quit []
palyboy has quit []
Myconix has quit [Read error: Connection reset by peer]
rakaar has quit [Ping timeout: 256 seconds]
Guest35194 has quit [Read error: Connection reset by peer]
<nat_home> how can I make that http://pastie.org/6161179 prettier ? I don't like the fact that I call ssh explicitly, I wanted to use yield
<nat_home> but it doesn't seem like I'm providing the block
main has quit [Ping timeout: 252 seconds]
stormetrooper has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
evenix has joined #ruby
stormetrooper has quit [Client Quit]
Hypn has joined #ruby
Monie has quit [Read error: Connection reset by peer]
predator217 is now known as predator117
caleb_io has quit [Quit: caleb_io]
blaxter has joined #ruby
aryatosh has quit [Ping timeout: 244 seconds]
ephemerian has joined #ruby
decoponio has joined #ruby
jimeh has joined #ruby
taoru_ has quit [Read error: No route to host]
taoru has joined #ruby
lkba has joined #ruby
taoru has quit [Remote host closed the connection]
shock_one has quit [Ping timeout: 260 seconds]
atyz has joined #ruby
evenix has quit [Ping timeout: 255 seconds]
taoru has joined #ruby
maxmanders has joined #ruby
aryatosh has joined #ruby
monkegjinni has joined #ruby
vierja has quit [Ping timeout: 252 seconds]
jimeh has quit [Ping timeout: 252 seconds]
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
QKO_ has joined #ruby
jimeh has joined #ruby
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
QKO has quit [Ping timeout: 260 seconds]
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
nomenkun has joined #ruby
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
goganchic has joined #ruby
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
vierja has joined #ruby
Marco has quit [Ping timeout: 272 seconds]
marr has joined #ruby
atyz has quit [Quit: Leaving...]
adeponte has quit [Remote host closed the connection]
atyz has joined #ruby
TheFuzzball has quit [Quit: Computer has gone to sleep.]
anderse has joined #ruby
hbpoison has joined #ruby
Elhu has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
aryatosh has quit [Ping timeout: 256 seconds]
aryatosh has joined #ruby
francisfish has joined #ruby
arya has quit [Ping timeout: 248 seconds]
cobragoat has quit [Remote host closed the connection]
cobragoat has joined #ruby
maxmanders has quit [Ping timeout: 252 seconds]
dr_bob has joined #ruby
maxmanders has joined #ruby
Proshot has joined #ruby
theRoUS has joined #ruby
arya has joined #ruby
poikon_work has quit [Read error: Connection reset by peer]
aryatosh has quit [Ping timeout: 252 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
toekutr has quit [Read error: Connection reset by peer]
cobragoat has quit [Ping timeout: 256 seconds]
angusiguess has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
main has joined #ruby
aryatosh_ has joined #ruby
chichou has joined #ruby
octoberry has joined #ruby
codecop has joined #ruby
daniel_- has joined #ruby
hmarr has joined #ruby
bean has quit [Read error: Connection reset by peer]
blacktulip has joined #ruby
elico has joined #ruby
elico has quit [Remote host closed the connection]
mrdtt_ has joined #ruby
cparen has quit [Quit: cparen]
mrdtt has quit [Read error: Connection reset by peer]
mrdtt_ is now known as mrdtt
nari has quit [Ping timeout: 276 seconds]
elico has joined #ruby
lethjakman has quit [Ping timeout: 256 seconds]
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
adeponte has joined #ruby
danneu1 has joined #ruby
aaronmacy has quit [Quit: Leaving.]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
hbpoison has quit [Ping timeout: 260 seconds]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
danneu has quit [Ping timeout: 252 seconds]
mockra has quit [Remote host closed the connection]
dr_bob has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
Vainoharhainen has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
aryatosh_ has quit [Ping timeout: 255 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
lele has quit [Ping timeout: 246 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
dr_bob has joined #ruby
monkegjinni has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
nomenkun_ has joined #ruby
<hackeron> anyone know of some kind of DSL or ruby library to partition a hard drive?
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
rakaar has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
DuoSRX has joined #ruby
adeponte has quit [Ping timeout: 252 seconds]
lele has joined #ruby
monkegjinni has joined #ruby
one has quit [Ping timeout: 260 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
Jonah11_ has quit [Ping timeout: 252 seconds]
QKO has joined #ruby
monkegjinni has joined #ruby
Jonah11_ has joined #ruby
QKO_ has quit [Ping timeout: 245 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
matthewrobbins has joined #ruby
monkegjinni has joined #ruby
monkegj__ has joined #ruby
monkegj__ has quit [Read error: Connection reset by peer]
monkegj__ has joined #ruby
monkegj__ has quit [Read error: Connection reset by peer]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
octoberry has quit [Ping timeout: 256 seconds]
heimark has quit [Quit: Computer has gone to sleep.]
monkegjinni has joined #ruby
elico has quit [Quit: elico]
dawkirst has quit [Ping timeout: 248 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
rdark has joined #ruby
monkegj__ has joined #ruby
monkegj__ has quit [Read error: Connection reset by peer]
puppeh has joined #ruby
monkegj__ has joined #ruby
monkegj__ has quit [Read error: Connection reset by peer]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
mikecmpbll has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
noxoc has joined #ruby
monkegjinni has joined #ruby
monkegj__ has joined #ruby
monkegj__ has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
monkegj__ has joined #ruby
icole has joined #ruby
monkegj__ has quit [Read error: Connection reset by peer]
stormetrooper has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
browndawg has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
guilleiguaran has quit [Ping timeout: 276 seconds]
guilleiguaran has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
hbpoison has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
icole has quit [Ping timeout: 256 seconds]
<puppeh> on CoW: the copy happens regardless of whether it's the master or the child that tries to modify it?
dmonjo has joined #ruby
monkegjinni has joined #ruby
coder__ has quit [Quit: Leaving]
monkegjinni has quit [Read error: Connection reset by peer]
elaptics`away is now known as elaptics
monkegjinni has joined #ruby
ozgura has quit [Remote host closed the connection]
monkegjinni has quit [Read error: No route to host]
dawkirst has joined #ruby
monkegjinni has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
hmarr has quit [Quit: Computer has gone to sleep.]
nomenkun_ has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
timmow has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
timmow has quit [Remote host closed the connection]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
timmow has joined #ruby
nat_home has quit [Quit: Leaving.]
LouisRoR has joined #ruby
dmonjo has quit [Ping timeout: 255 seconds]
poikon has joined #ruby
nomenkun has joined #ruby
dr_bob has quit [Quit: Leaving.]
timmow has quit [Remote host closed the connection]
Al___ has joined #ruby
yacks has quit [Quit: Leaving]
mlr has quit [Ping timeout: 260 seconds]
dmonjo_ has joined #ruby
timmow has joined #ruby
dr_bob has joined #ruby
adeponte has joined #ruby
D4T has joined #ruby
maxmanders has joined #ruby
lkba has quit [Ping timeout: 255 seconds]
angusiguess has joined #ruby
Konboi has quit [Remote host closed the connection]
rupee has joined #ruby
adeponte has quit [Ping timeout: 240 seconds]
arya has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby
angusiguess has quit [Ping timeout: 256 seconds]
rupee has quit [Ping timeout: 252 seconds]
Criztian has joined #ruby
yacks has joined #ruby
adambeynon has joined #ruby
arturaz has joined #ruby
emocakes has joined #ruby
divout1 has joined #ruby
fixl has joined #ruby
vierja has quit [Quit: Computer has gone to sleep.]
arturaz has quit [Read error: Connection reset by peer]
arturaz has joined #ruby
divout has quit [Ping timeout: 256 seconds]
khismetix has joined #ruby
radq_ has joined #ruby
ahokaomaeha has quit [Ping timeout: 252 seconds]
divout has joined #ruby
monkegjinni has quit [Remote host closed the connection]
radq has quit [Ping timeout: 260 seconds]
divout1 has quit [Ping timeout: 256 seconds]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
QKO_ has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
browndawg has quit [Quit: Leaving.]
QKO has quit [Ping timeout: 252 seconds]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
ozgura has joined #ruby
FloatingWeed has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
banjara has quit [Quit: Leaving.]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
Criztian has quit [Remote host closed the connection]
monkegjinni has joined #ruby
Konboi has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
Virunga has joined #ruby
monkegjinni has joined #ruby
Morrolan has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
nkr has joined #ruby
monkegjinni has joined #ruby
FloatingWeed has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
hmarr has joined #ruby
gosshedd has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
slainer68 has joined #ruby
monkegjinni has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
poikon_ has joined #ruby
maxmanders has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegj__ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegj__ has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
adambeynon has quit [Ping timeout: 240 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
chussenot has joined #ruby
monkegjinni has joined #ruby
Criztian has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
brianpWins has quit [Quit: brianpWins]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
poikon_ has quit [Ping timeout: 260 seconds]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
Choobie has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
cdt has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
dr_bob has quit [Quit: Leaving.]
monkegjinni has joined #ruby
backjlack has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
whowantstolivefo has joined #ruby
monkegjinni has joined #ruby
Xeago has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
io_syl has quit [Quit: Computer has gone to sleep.]
Qwak has joined #ruby
monkegjinni has joined #ruby
danneu1 has quit [Ping timeout: 255 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
denom has quit [Remote host closed the connection]
dr_bob has joined #ruby
Criztian has quit [Remote host closed the connection]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
krz has quit [Ping timeout: 260 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
mikekelly has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
skattyadz has joined #ruby
danieldocki has joined #ruby
rakaar has quit [Ping timeout: 256 seconds]
banseljaj is now known as imami|afk
krz has joined #ruby
monkegjinni has joined #ruby
afd__ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
mikekelly has joined #ruby
yacks has quit [Quit: Leaving]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
taoru has quit [Remote host closed the connection]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
monkegjinni has quit [Read error: Connection reset by peer]
main has quit [Ping timeout: 252 seconds]
mvangala has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
monkegjinni has quit [Read error: No route to host]
mvangala has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: No route to host]
browndawg has joined #ruby
monkegjinni has joined #ruby
browndawg has quit [Max SendQ exceeded]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
danneu1 has joined #ruby
mikekelly has quit [Ping timeout: 252 seconds]
main has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
monkegjinni has joined #ruby
matthewrobbins has quit [Quit: matthewrobbins]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
one has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
psyprus has quit [Ping timeout: 248 seconds]
monkegjinni has joined #ruby
psyprus has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
mikekelly has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
angusiguess has joined #ruby
monkegjinni has joined #ruby
LouisRoR has quit [Ping timeout: 245 seconds]
LouisRoR has joined #ruby
danieldocki has quit [Quit: Leaving...]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
adambeynon has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: No route to host]
TheFuzzball has joined #ruby
himsin has quit [Ping timeout: 260 seconds]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
atyz has quit [Quit: Leaving...]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
arturas_ has joined #ruby
monkegjinni has joined #ruby
mikekelly has quit [Ping timeout: 252 seconds]
arturaz has quit [Read error: Connection reset by peer]
monkegjinni has quit [Read error: Connection reset by peer]
QKO_ has quit [Read error: Operation timed out]
monkegjinni has joined #ruby
fermion has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<dmonjo_> hi the following code is ony reading the first line of the file
<dmonjo_> i need to read all the file
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
mikekelly has joined #ruby
<multi_io> dmonjo_: lines = f.readlines
monkegjinni has joined #ruby
<multi_io> (if you want to read all lines at once into an array)
monkegjinni has quit [Read error: Connection reset by peer]
dmonjo__ has joined #ruby
QKO has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<multi_io> otherwise while line=f.gets; .... end
a_a_g1 has joined #ruby
<dmonjo__> use while f != nul
<dmonjo__> il*
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
atyz has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
a_a_g has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
dmonjo_ has quit [Ping timeout: 252 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<dmonjo__> getting this error : http://pastebin.com/AVGThDeS
monkegjinni has quit [Read error: Connection reset by peer]
<dmonjo__> code is posted
monkegjinni has joined #ruby
xclite has quit [Ping timeout: 246 seconds]
monkegj__ has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
monkegj__ has quit [Read error: Connection reset by peer]
xclite has joined #ruby
monkegj__ has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
monkegj__ has quit [Read error: Connection reset by peer]
monkegj__ has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
monkegj__ has quit [Read error: No route to host]
hemanth has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
skattyadz has quit [Quit: skattyadz]
dkannan has quit [Ping timeout: 252 seconds]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: No route to host]
lkba has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
poikon_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<multi_io> dmonjo__: while line=f.gets
monkegjinni has quit [Read error: Connection reset by peer]
<multi_io> not while f != nil
buibex has joined #ruby
<multi_io> f will never be nil, so you loop runs until EOF error
<multi_io> *your
danieldocki has joined #ruby
monkegjinni has joined #ruby
pyrac has quit [Quit: pyrac]
yacks has joined #ruby
poikon_ has quit [Ping timeout: 252 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
one has quit []
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
Jaxel has quit [Quit: Leaving]
<dmonjo__> reading ruby the programming language
monkegjinni has quit [Read error: No route to host]
monkegjinni has joined #ruby
danieldocki has quit [Ping timeout: 260 seconds]
pedda has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
carloslopes has joined #ruby
binaryplease has joined #ruby
dkannan has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
fuzai has joined #ruby
nfk has joined #ruby
angusiguess has quit [Ping timeout: 256 seconds]
hemanth has quit [Read error: Connection reset by peer]
monkegjinni has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
danneu1 has quit [Ping timeout: 252 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
staafl has joined #ruby
monkegjinni has joined #ruby
danneu1 has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
yshh has quit [Remote host closed the connection]
Loaft has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
gosshedd has quit [Quit: Lost terminal]
danieldocki has joined #ruby
mengu has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
banister`sleep has quit [Remote host closed the connection]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
banister`sleep has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
tealmage has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
binaryplease has quit [Ping timeout: 276 seconds]
gosshedd has joined #ruby
monkegjinni has joined #ruby
tealmage has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
tealmage has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
adman65 has quit [Read error: Connection reset by peer]
embs_ has quit [Ping timeout: 245 seconds]
monkegjinni has joined #ruby
tealmage has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
staafl has quit [Quit: Leaving]
Paraxial has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
Paraxial has left #ruby [#ruby]
monkegjinni has joined #ruby
tealmage has joined #ruby
monkegjinni has quit [Read error: No route to host]
dmonjo__ has quit [Ping timeout: 252 seconds]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
hbpoison has quit [Ping timeout: 244 seconds]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
banister`sleep has quit [Remote host closed the connection]
banister`sleep has joined #ruby
bradleyprice has quit [Remote host closed the connection]
icco has quit [Read error: Operation timed out]
samphippen has joined #ruby
jsmonkey has joined #ruby
<jsmonkey> Hi, I have a regexp, ^[0-31]{1,2}[0-12]{1,2}[0-9999]{1,4}$ I want to match DDMMYYYY but it won't work if I do 14022013 but everything below 12 for the first 2 numbers. I am bad a regexp, can anyone tell me why?
chimmy has joined #ruby
danneu1 has quit [Ping timeout: 255 seconds]
alup has quit [Read error: Connection reset by peer]
puppeh has quit [Read error: Connection reset by peer]
ozgura has quit [Remote host closed the connection]
QKO has quit [Read error: Operation timed out]
alup has joined #ruby
QKO has joined #ruby
puppeh has joined #ruby
evenix has joined #ruby
poikon_ has joined #ruby
dmonjo__ has joined #ruby
embs_ has joined #ruby
icco has joined #ruby
wf2f has quit [Ping timeout: 248 seconds]
<shevy> no idea, I hate regexes
<shevy> my brain can not parse them easily
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
<shevy> I understand that ^ means the beginning of a regex
dmonjo__ has quit [Client Quit]
<shevy> wtf is [0-31], is that a character class matching from 0 (one character) to 31 (two characters)... would that even work?
BeLucid has joined #ruby
<shevy> then I guess {} is used for repetitions
<shevy> no idea what 1,2 means here, I always thought the repetition only wants one number
<Zelest> 1,2 is the range
<Zelest> (length)
adman65 has joined #ruby
goganchic has quit []
a_a_g1 has quit [Read error: Connection reset by peer]
Gajanan1 has quit [Read error: Connection reset by peer]
<Zelest> e.g, [a-z]{1,2} means any char between a and z.. and 1 to 2 characters long
radq_ has quit [Remote host closed the connection]
a_a_g has joined #ruby
<Zelest> no idea what [0-31] .. as far as I know, ranges doesn't work like that :o
<Zelest> but then again, i'm clueless :)
Gajanan has joined #ruby
BeLucid_ has quit [Ping timeout: 260 seconds]
jibi has joined #ruby
browndawg has quit [Ping timeout: 252 seconds]
chussenot has quit [Quit: chussenot]
radq has joined #ruby
krz has quit [Ping timeout: 244 seconds]
<shevy> ah I see
<shevy> so {1,2} is a bit like a mini ruby-range
<shevy> in a regex
bricker has quit [Ping timeout: 252 seconds]
<shevy> (1..2).class # => Range
<shevy> see jsmonkey? we started sherlock holmes your regex!
nari has joined #ruby
<shevy> aha
yacks has quit [Remote host closed the connection]
<shevy> x = "1234"; x =~ /[0-31]{1,2}/; $1
<shevy> jsmonkey seems your [0-31]{1,2} is not matching anything at all
buibex has quit []
skattyadz has joined #ruby
chussenot has joined #ruby
banister`sleep is now known as banisterfiend
chimmy has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
kofno has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
<fuzai> is there a limit to how long a line in a ruby script can be?
kofno has joined #ruby
hmarr has quit [Quit: Computer has gone to sleep.]
browndawg has joined #ruby
<jsmonkey> shevy: I solved it thanks
<jsmonkey> I suck at regexp!
irving_ has quit [Ping timeout: 252 seconds]
daniel_- has quit [Ping timeout: 252 seconds]
<shevy> jsmonkey yippie \o/
hbpoison has joined #ruby
nazty has joined #ruby
hmarr has joined #ruby
Stilo has joined #ruby
carraroj has quit [Read error: Connection reset by peer]
carraroj has joined #ruby
bluOxigen has joined #ruby
divout has quit [Read error: Connection reset by peer]
<atmosx> fuzai: no. Of course not.
irving has joined #ruby
bricker has joined #ruby
<atmosx> fuzai: but if a script is "long enough" and uses classes it's not considered a "script".
<fuzai> a line in a script, not it itself
Konboi has quit [Remote host closed the connection]
<atmosx> fuzai: again, no. Out of curiosity how long is that line?
hybris has joined #ruby
<fuzai> well right now it's four when statements
<fuzai> but i figured i could combine all of those into one if ()||()||()||()
<fuzai> but each () is about 80 characters
<atmosx> I've used strings a long as 4.000.000 characters
<atmosx> ...
yshh has joined #ruby
<atmosx> they are processed extremely fast even if you need to iterated through them in 2011 hardware (i5 1.7 Ghz/SSD HD)
segv- has joined #ruby
<fuzai> is there an easy way to figure out how much memory ruby is using?
<fuzai> i mean i see some things with ps
sailias has joined #ruby
<fuzai> but is there an easy way to get a hard number?
m3pow has quit [Read error: Connection reset by peer]
cousine has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<atmosx> fuzai: what system are you on?
<fuzai> open shift red hat linux setup
<fuzai> that is secured pretty tight
<fuzai> i've basically made a little robot
cousine has quit [Remote host closed the connection]
<fuzai> and were going to try and fire 10 here soon with the idea of scaling 100+, i'm just curious what i'm going to see for real world memory usage
<fuzai> right now i think i'm reading about 27mb used per ruby process
<atmosx> top will tell you in real time
<fuzai> yea that's where i'm getting my numbers
<atmosx> however, macosx has DTrace for very accurate measurements.
<fuzai> i'm just wondering if it's 30mb per ruby process or they are all using the same libraries that oppupy 30mb?
angusiguess has joined #ruby
<atmosx> don't know.
<atmosx> launch two of them in a 2 screens and see
<atmosx> again with top
<fuzai> i remember a long time ago reading that processes with the same libraries share the same so in memory so they don't have to be duplicated in memory
<atmosx> might be, but since I'm not sure, I can't tell :-)
maycon has quit [Read error: Connection reset by peer]
<atmosx> there's an awesome tool in MacOSX called "instruments" which runs dtrace scripts. It's a guy, pretty slick for mem measurements
<fuzai> but that isn't the platform i'm deploying on
geekbri has joined #ruby
<fuzai> thats like measuring a boat in a bathtub when i wanna know how it does in the lake
maycon has joined #ruby
maycon has quit [Changing host]
maycon has joined #ruby
<fuzai> and i doubt osx does it's libraries the same say
<fuzai> :)
<fuzai> but other then that i haven't tried ruby on osx yet
<atmosx> oh okay
<fuzai> i have an mbp
ozgura has joined #ruby
<atmosx> if you're not bored and want to go into deep, try this https://github.com/dtrace4linux
angusiguess has quit [Ping timeout: 260 seconds]
dawkirst has quit [Remote host closed the connection]
RurouniJones has joined #ruby
Gajanan has quit [Quit: Leaving.]
jonathanwallace has joined #ruby
wf2f has quit []
sayan has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
radq has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
QKO_ has joined #ruby
bricker has quit [Ping timeout: 252 seconds]
radq has joined #ruby
monkegjinni has quit [Remote host closed the connection]
QKO has quit [Ping timeout: 256 seconds]
monkegjinni has joined #ruby
monkegj__ has joined #ruby
monkegj__ has quit [Read error: Connection reset by peer]
khismetix has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
banisterfiend has quit [Remote host closed the connection]
buibex has joined #ruby
monkegj__ has joined #ruby
monkegj__ has quit [Read error: Connection reset by peer]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
kold has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
pskosinski has joined #ruby
monkegjinni has joined #ruby
Targen has quit [Ping timeout: 252 seconds]
rakaar has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
skattyadz has quit [Quit: skattyadz]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
D4T has quit [Ping timeout: 252 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
carraroj has quit [Read error: Operation timed out]
carraroj has joined #ruby
postmodern has quit [Quit: Leaving]
a_a_g has quit [Quit: Leaving.]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
Mon_Ouie has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
D4T has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
Qwak has quit [Ping timeout: 256 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
danneu1 has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
EPIK has quit [Ping timeout: 276 seconds]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
skattyadz has joined #ruby
ozgura has quit [Remote host closed the connection]
monkegjinni has joined #ruby
queequeg1 has quit [Ping timeout: 276 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
sthulbourn has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
mrdtt has left #ruby [#ruby]
robustus has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
monkegjinni has joined #ruby
queequeg1 has joined #ruby
ozgura has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
muro has joined #ruby
muro has left #ruby [#ruby]
monkegjinni has joined #ruby
willob has joined #ruby
willob has quit [Max SendQ exceeded]
danneu1 has quit [Ping timeout: 252 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
robustus has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
willob has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
monkegjinni has joined #ruby
chimmy has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<sthulbourn> Hey, I'm using sessions in Sinatra, but the session_id is *always* different, any idea how to make it generate consistent ids?
monkegjinni has quit [Read error: Connection reset by peer]
mark_locklear has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
monkegjinni has joined #ruby
subbyyy has joined #ruby
hashmal has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<JonnieCa1he> theres also something on osx called "dtruss" which is like halfway between raw dtrace and instruments.app
<JonnieCa1he> its a command line tool still, just friendlier than dtrace, with shortcuts for common tasks
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
DrCode has quit [Ping timeout: 276 seconds]
<JonnieCa1he> ive probably defined it wrongly there but whatever, its damn useful
monkegjinni has quit [Read error: Connection reset by peer]
kold has quit [Remote host closed the connection]
monkegjinni has joined #ruby
jonathanwallace has quit [Ping timeout: 256 seconds]
<csmrfx> sthulbourn: session id's are SUPPOSED to be changing
monkegjinni has quit [Read error: Connection reset by peer]
<csmrfx> in fact, should be hard to forge
browndawg has quit [Ping timeout: 255 seconds]
monkegjinni has joined #ruby
<sthulbourn> csmrfx: should they change for one user on every request?
jjbohn has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<csmrfx> sthulbourn: depends
DrCode has joined #ruby
m3pow has joined #ruby
<csmrfx> sthulbourn: supposedly you'd have one for each session, right
monkegjinni has quit [Read error: Connection reset by peer]
<csmrfx> but you might have a running reference to that session id on the client side to keep it secret
chussenot has quit [Quit: chussenot]
monkegjinni has joined #ruby
bricker has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<csmrfx> "running reference" meaning a reference that does change on every http request
<sthulbourn> csmrfx: I know the session id is meant to be different for each user/browser, but when I visit my app, I get a different session id every request
<sthulbourn> and it drops my defined keys
tealmage has quit [Remote host closed the connection]
monkegjinni has joined #ruby
<csmrfx> well, your problem description is too vague to make anything of it
monkegjinni has quit [Read error: Connection reset by peer]
chimmy has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
monkegjinni has joined #ruby
<sthulbourn> Ok. I visit my app, with sessions enabled, I set a few session vars, refresh the page, my variables are dropped and I have a different id
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
Akuma has quit [Ping timeout: 252 seconds]
browndawg has joined #ruby
chussenot has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<JonnieCa1he> when you say refresh the page, is that a normal get request youre making there?
monkegjinni has joined #ruby
<sthulbourn> yep
<JonnieCa1he> because if you trip the csrf protection, it can drop the session
Qwak has joined #ruby
<JonnieCa1he> but that isnt something that happens with GETs
x0F has quit [Disconnected by services]
monkegjinni has quit [Read error: Connection reset by peer]
x0F_ has joined #ruby
x0F_ is now known as x0F
whitedawg has joined #ruby
whitedawg has quit [Max SendQ exceeded]
monkegjinni has joined #ruby
atyz has quit [Quit: Linkinus - http://linkinus.com]
monkegjinni has quit [Read error: Connection reset by peer]
carraroj has quit [Ping timeout: 252 seconds]
whitedawg has joined #ruby
whitedawg has quit [Max SendQ exceeded]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
whitedawg has joined #ruby
monkegjinni has joined #ruby
whitedawg has quit [Max SendQ exceeded]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
xemu has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
whitedawg has joined #ruby
whitedawg has quit [Max SendQ exceeded]
monkegjinni has joined #ruby
whitedawg has joined #ruby
whitedawg has quit [Max SendQ exceeded]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
whitedawg has joined #ruby
whitedawg has quit [Max SendQ exceeded]
AlSquirrel has quit [Read error: Connection reset by peer]
hbpoison has quit [Ping timeout: 240 seconds]
megha has joined #ruby
QKO has joined #ruby
radq has quit [Read error: Connection reset by peer]
angusiguess has joined #ruby
inokenty has joined #ruby
whitedawg has joined #ruby
whitedawg has quit [Max SendQ exceeded]
whitedawg has joined #ruby
QKO_ has quit [Ping timeout: 252 seconds]
a_a_g has joined #ruby
whitedawg has quit [Max SendQ exceeded]
jjbohn has quit [Quit: Leaving...]
a_a_g1 has joined #ruby
chussenot has quit [Quit: chussenot]
jjbohn has joined #ruby
whitedawg has joined #ruby
whitedawg has quit [Max SendQ exceeded]
<Nom-> Evening... hopefully someone can point me in the right direction here... I've got a really simple extension which I want to break up into multiple files, but it's complaining about symbols not being defined when linking... is there something special I need to do so that the C files are linked correctly?
<Nom-> Using 'mkmf' i probably should have mentioned
chussenot has joined #ruby
Proshot is now known as statarb3
fteem has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
fuzai has quit [Quit: fuzai]
subbyyy has quit [Ping timeout: 260 seconds]
a_a_g has quit [Ping timeout: 256 seconds]
tommyvyo has joined #ruby
a_a_g has joined #ruby
cupakromer has joined #ruby
jaimef has quit [Ping timeout: 245 seconds]
AlSquire has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
poikon_ has quit [Ping timeout: 260 seconds]
a_a_g2 has joined #ruby
jjbohn has quit [Quit: Leaving...]
a_a_g1 has quit [Ping timeout: 256 seconds]
mklappstuhl has joined #ruby
emocakes has quit [Quit: emocakes]
otherj has quit []
subbyyy has joined #ruby
otherj has joined #ruby
a_a_g has quit [Ping timeout: 256 seconds]
mikecmpbll has joined #ruby
<mklappstuhl> Having a conditional callback (changed? must be true) how would I test that it is only called when the condition is true?
<mklappstuhl> stubbing .changed? and then what?
noop has quit [Remote host closed the connection]
gtc has joined #ruby
<mklappstuhl> How do I do something like "must receive function call xy on save" ?
jjbohn has joined #ruby
<mklappstuhl> Do I need to mock the object to do that?
AlSquirrel has joined #ruby
the_mentat has quit [Quit: Computer has gone to sleep.]
Jackneill has joined #ruby
poikon_ has joined #ruby
AlSquirrel has quit [Read error: Connection reset by peer]
Jackneill has quit [Max SendQ exceeded]
hbpoison has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<Qwak> mklappstuhl i dont understand what you need :(
banisterfiend has joined #ruby
monkegjinni has joined #ruby
<cupakromer> mklappstuhl possibly either verify the assertion that the callback makes or if it's calling external services, verify those calls are made
krawchyk has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
AlSquire has quit [Ping timeout: 252 seconds]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
tomzx_mac has joined #ruby
mlr has joined #ruby
Squarepy has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<cupakromer> mklappstuhl i.e. verify the expected state or expected message passing
Squarepy has quit [Changing host]
Squarepy has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
Virunga has quit [Remote host closed the connection]
<mklappstuhl> cupakromer: Qwak: ^
ffranz has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
emocakes has joined #ruby
monkegjinni has joined #ruby
mlr has quit [Ping timeout: 244 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
pyrac has joined #ruby
Jackneill has joined #ruby
<mklappstuhl> cupakromer: I thought about testing that the methods within the callback function but that seems to be clutter. I just want to make sure that the function is only called in a certain case not what the function actually does
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
pavilionXP has quit [Quit: Forget progress by proxy. Land on your own moon.]
monkegjinni has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
banisterfiend has quit [Remote host closed the connection]
monkegjinni has joined #ruby
davetherat has quit [Remote host closed the connection]
chussenot__ has joined #ruby
chussenot has quit [Read error: No route to host]
davetherat has joined #ruby
<cupakromer> mklappstuhl it can clutter, it just depends on your setup. internal vs external messages. what do you own, etc.
chussenot__ is now known as chussenot
SeanLazer has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
willob has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
Guest92767 has quit [Changing host]
Guest92767 has joined #ruby
Guest92767 is now known as guyz
monkegjinni has quit [Read error: Connection reset by peer]
Uranio has joined #ruby
Lubinski has joined #ruby
Lubinski has quit [Changing host]
Lubinski has joined #ruby
monkegjinni has joined #ruby
<mklappstuhl> cupakromer: did you take a look at the gist?
monkegjinni has quit [Read error: Connection reset by peer]
<cupakromer> mklappstuhl yes, that's the test. not the callback
invisime1 has joined #ruby
monkegjinni has joined #ruby
<cupakromer> mklappstuhl without knowing details about the callback and what you own, it's hard to make a general recommendation
<cupakromer> the test looks ok
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegji_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
zerba has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
<mklappstuhl> cupakromer: except that there is no such thing as "must_receive". me and my coworker are really confused how to test this apparently simple thing
monkegjinni has joined #ruby
Vert has joined #ruby
<cupakromer> mklappstuhl oooh :-)
monkegjinni has quit [Read error: Connection reset by peer]
<cupakromer> mklappstuhl minitest spec? or rspec?
ananthakumaran has quit [Quit: Leaving.]
<mklappstuhl> minitest spec
F1skr has joined #ruby
jonathanwallace has joined #ruby
monkegjinni has joined #ruby
josh_keith has quit [Ping timeout: 256 seconds]
Konboi has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<mklappstuhl> cupakromer: would I need to mock the object to do such things?
joofsh has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
gtc has quit [Quit: kill -9 gtc]
monkegjinni has joined #ruby
shorts has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<cupakromer> with minitest I believe so
v0n has joined #ruby
<cupakromer> you can use the object.expect syntax
<cupakromer> object.expect :message, args
monkegjinni has joined #ruby
robbyoconnor has joined #ruby
megha has quit [Quit: WeeChat 0.4.0]
monkegjinni has quit [Read error: Connection reset by peer]
<cupakromer> *I'm not a minitest expect so there may be another way
monkegjinni has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
subbyyy has quit [Ping timeout: 252 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
<mklappstuhl> cupakromer: the problem with that is that how would I trigger the .save?
<cupakromer> Just call it at the end of the test
monkegjinni has joined #ruby
sailias has joined #ruby
<cupakromer> address.save
gtc has joined #ruby
robbyoconnor has quit [Client Quit]
<cupakromer> Also there is the Mocha gem which adds more sugar (such as Class.any_instance) see https://github.com/freerange/mocha
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
gtc has left #ruby [#ruby]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
Mattix has joined #ruby
monkegjinni has joined #ruby
gtc has joined #ruby
<mklappstuhl> cupakromer: but I cannot .save a mock object as it doesn't have the callback logic etc. right?
<mklappstuhl> I'm terribly confused I guess
<cupakromer> Don't use a mock for the address object use a real object
monkegjinni has quit [Read error: Connection reset by peer]
<cupakromer> mklappstuhl in general, you don't want to mock the object under test. Just it's collaborators.
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
tcstar has quit [Ping timeout: 260 seconds]
jerius has joined #ruby
monkegjinni has joined #ruby
<mklappstuhl> cupakromer: yeah exactly. so then I'm back at the problem that I cannot check if function xy on the object under test gets called
monkegjinni has quit [Read error: Connection reset by peer]
a_a_g2 has quit [Quit: Leaving.]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
radq has joined #ruby
nari has quit [Ping timeout: 255 seconds]
monkegjinni has joined #ruby
hbpoison has quit [Ping timeout: 245 seconds]
jpfuentes2 has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
monkegjinni has quit [Read error: Connection reset by peer]
daniel_- has joined #ruby
the_mentat has joined #ruby
monkegjinni has joined #ruby
josh_keith has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
gtc has quit [Quit: kill -9 gtc]
eroc has quit [Quit: eroc]
monkegjinni has joined #ruby
<cupakromer> mklappstuhl assert_send?
monkegjinni has quit [Read error: Connection reset by peer]
monkegji_ has joined #ruby
solidoodlesuppor has joined #ruby
jjbohn has quit [Quit: Leaving...]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
willob has joined #ruby
otherj has quit []
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
Targen has joined #ruby
hemanth has joined #ruby
dustint has joined #ruby
Virunga has joined #ruby
QKO_ has joined #ruby
gtc has joined #ruby
philcrissman has joined #ruby
slainer68 has quit [Ping timeout: 255 seconds]
hemanth has quit [Read error: Connection reset by peer]
asdfqwer has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
tealmage has joined #ruby
slainer68 has joined #ruby
tealmage has quit [Remote host closed the connection]
jjbohn has joined #ruby
banisterfiend has joined #ruby
QKO has quit [Ping timeout: 260 seconds]
gtc has quit [Client Quit]
jeffreybaird has joined #ruby
davetherat has quit [Read error: Connection reset by peer]
davetherat has joined #ruby
mephux has quit [Excess Flood]
mephux has joined #ruby
angusiguess has quit [Read error: Connection reset by peer]
monkegji_ has quit [Remote host closed the connection]
danieldocki has quit [Quit: Leaving...]
<mklappstuhl> cupakromer: yeah, this seemed to be what I'm looking for but I can't get it to work and the documentation is close to nothing
jrajav has joined #ruby
gtc has joined #ruby
Nisstyre has quit [Ping timeout: 272 seconds]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
ndboost has joined #ruby
monkegjinni has joined #ruby
Criztian has joined #ruby
codecop has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
angusiguess has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
jcblitz has joined #ruby
<cupakromer> mklappstuhl sent a comment to your gist
chichou has quit [Remote host closed the connection]
monkegjinni has joined #ruby
Gu_______ has joined #ruby
Gu_______ is now known as Guest123
monkegjinni has quit [Read error: Connection reset by peer]
jjbohn has quit [Quit: Leaving...]
zerba has quit [K-Lined]
monkegjinni has joined #ruby
chichou has joined #ruby
io_syl has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
sepp2k has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
hybris has quit [Quit: Leaving]
__BigO__ has joined #ruby
hybris has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
hybris has quit [Read error: Connection reset by peer]
hybris has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
aquaranto has joined #ruby
aquaranto has left #ruby [#ruby]
monkegjinni has joined #ruby
geekbri_ has joined #ruby
arya has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
geekbri has quit [Read error: Operation timed out]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
gtc has quit [Quit: kill -9 gtc]
<jcblitz> This is flagged as an invalid URL, but works fine. Is there another ruby class/method I can use to parse this URL without it failing? URI.parse('http://www.target.com/p/nutribullet-by-magic-bullet/-/A-13969043#?lnk=Other_HP_P1_ESPOT-0|ESPOT-0')
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
gtc has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
Nisstyre has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<csmrfx> jcblitz: the query string should be before the anchor afaics
monkegjinni has joined #ruby
Hanmac_ has joined #ruby
<csmrfx> jcblitz: you can split off by the anchor and the query
monkegjinni has quit [Read error: Connection reset by peer]
<jcblitz> csmrfx: There is nothing I can do about the format of the URL, I have to take it as is. But the URL works if you put it into the browser
<csmrfx> perhaps re-attach the query
sayan has quit [Read error: Protocol not available]
monkegjinni has joined #ruby
<csmrfx> jcblitz: it probably doesn't adhere to the URI RFC
<csmrfx> iow, invalid url
geekbri_ has quit [Remote host closed the connection]
<jcblitz> ah, that makes sense. Thanks
<csmrfx> you want to parse it? get that query before the hash
monkegjinni has quit [Read error: Connection reset by peer]
Jonah11_ has quit [Read error: Connection reset by peer]
geekbri has joined #ruby
monkegjinni has joined #ruby
<csmrfx> some 2 penny javascript scripter working on a history function, by the looks of it...
monkegjinni has quit [Read error: Connection reset by peer]
<jcblitz> actually, I deleted the hash all together and it doesn't make a difference
<banisterfiend> csmrfx: how come u're so aggressive these days, u used to be sweet and polite
monkegjinni has joined #ruby
<csmrfx> arrrg
CreativeEmbassy has joined #ruby
<csmrfx> WHOS ARRRGHESSIVE!
monkegjinni has quit [Read error: Connection reset by peer]
* csmrfx tears up couple of urls with history hash tags with his bare hands
monkegjinni has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
monkegjinni has quit [Read error: Connection reset by peer]
carloslopes has quit [Remote host closed the connection]
<jcblitz> it's the pipe it doesn't like
monkegjinni has joined #ruby
mcatch has quit [Quit: Page closed]
monkegjinni has quit [Read error: Connection reset by peer]
krz has joined #ruby
Virunga has quit [Remote host closed the connection]
frem has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<csmrfx> jcblitz: yeah, shouldn't that be url-escaped
<csmrfx> (as per RFC)
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
tomzx_mac has quit [Ping timeout: 245 seconds]
lethjakman has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
dkannan has quit [Quit: dkannan]
monkegjinni has joined #ruby
baroquebobcat has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
codecop has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<Hanmac_> csmrfx do you mean this RFC? http://www.ietf.org/rfc/rfc1149.txt
monkegjinni has quit [Read error: Connection reset by peer]
<csmrfx> No, that describes my foods source
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
mengu_ has joined #ruby
monkegjinni has joined #ruby
mengu has quit [Quit: Konversation terminated!]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
vlad_starkov has joined #ruby
stopbit has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
jlast has joined #ruby
monkegjinni has joined #ruby
Mohan has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
Marco has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
arya has quit [Ping timeout: 248 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<csmrfx> OK monkegjinni
shorts has quit [Quit: shorts]
monkegjinni has quit [Read error: Connection reset by peer]
DavidLevin has joined #ruby
DavidLevin has quit [Max SendQ exceeded]
hbpoison has joined #ruby
monkegjinni has joined #ruby
shorts has joined #ruby
<csmrfx> get your conn working or autojoin off, monkegjinni
snuglepuss has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
plotter has quit [Remote host closed the connection]
dmiller2 has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
jpfuentes2 has joined #ruby
monkegjinni has joined #ruby
<Hanmac_> https://tools.ietf.org/html/rfc6592 << "The Null Packet cannot have the Evil Bit ("E") [RFC3514] set, by definition (see Section 2.1). Consequently, it is rather clear and undeniable that theNull Packet is harmless, having no evil intent."
monkegjinni has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
tommyvyo has quit [Read error: No route to host]
tommyvyo has joined #ruby
joofsh has quit [Remote host closed the connection]
wyhaines has quit [Read error: Operation timed out]
lethjakman has quit [Ping timeout: 252 seconds]
breakingthings has joined #ruby
monkegjinni has joined #ruby
Marco has quit [Ping timeout: 248 seconds]
fmcgeough has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
nga4 has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
arya has joined #ruby
wyhaines has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<csmrfx> https://tools.ietf.org/html/rfc5841 RFC 5841 TCP Option to Denote Packet Mood 1 April 2010 4.9. Angry Packets Packets that are retransmitted SHOULD be marked as angry.
megha has joined #ruby
monkegjinni has joined #ruby
<csmrfx> ARRRR
browndawg has left #ruby [#ruby]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
inao has quit [Quit: Leaving...]
monkegjinni has quit [Read error: Connection reset by peer]
EvanR has joined #ruby
peregrine81 has joined #ruby
monkegjinni has joined #ruby
EvanR is now known as Guest54578
monkegjinni has quit [Read error: Connection reset by peer]
<Hanmac_> https://tools.ietf.org/html/rfc6593 "Service Undiscovery Using Hide-and-Go-Seek for the Domain Pseudonym System"
QKO has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
frogstarr78 has quit [Quit: Leaving]
monkegjinni has joined #ruby
banisterfiend has quit [Remote host closed the connection]
jimeh has quit [Ping timeout: 260 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
_nitti has joined #ruby
monkegjinni has joined #ruby
QKO_ has quit [Ping timeout: 252 seconds]
rippa has joined #ruby
khimera has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
tetley has quit []
<mklappstuhl> cupakromer: do you think this is clear to understand?
hbpoison has quit [Read error: Connection reset by peer]
joshman_ has joined #ruby
d1zzYLuLz has joined #ruby
monkegjinni has joined #ruby
hbpoison has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegji_ has joined #ruby
poikon_ has quit [Remote host closed the connection]
monkegji_ has quit [Read error: Connection reset by peer]
joofsh has joined #ruby
spaceships has joined #ruby
monkegjinni has joined #ruby
miskander has joined #ruby
monkegji_ has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
monkegji_ has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
monkegji_ has quit [Read error: Connection reset by peer]
Monie has joined #ruby
monkegji_ has joined #ruby
JohnBat26 has quit [Read error: Operation timed out]
monkegji_ has quit [Read error: Connection reset by peer]
bean has joined #ruby
jonahR has joined #ruby
GreekFreak has joined #ruby
<GreekFreak> hi all
<GreekFreak> I have 2 transactions, the one nested in the other. However, when the inner transaction raises an exception, the outer one still commits. That's not what I want. But I still want the inner transaction so that I can see the caught errors.
monkegji_ has joined #ruby
interactionjaxsn has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
<Hanmac_> GreekFreak: is this an rails question? if yes #rubyonrails
monkegji_ has joined #ruby
wargasm1 has quit [Ping timeout: 256 seconds]
monkegjinni has quit [Ping timeout: 248 seconds]
Kuifje has joined #ruby
Kuifje has quit [Changing host]
Kuifje has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
wargasm has joined #ruby
monkegjinni has joined #ruby
Fraeon has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
braoru has quit [Remote host closed the connection]
monkegjinni has joined #ruby
megha has quit [Quit: WeeChat 0.4.0]
oposomme has joined #ruby
carraroj has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<oposomme> hi, I would like to know how do I get the first 2 lines of a string?
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<csmrfx> oposome str.spl("\n")[0..1] perhaps
snuglepuss has quit [Remote host closed the connection]
shock_one has joined #ruby
monkegjinni has joined #ruby
* csmrfx ARRR tears couple strings into two with his bare hands
adambeynon has quit [Quit: Computer has gone to sleep.]
tcstar has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
AndChat| has quit [Ping timeout: 260 seconds]
<oposomme> csmrfx: ok thx
monkegjinni has joined #ruby
arturas_ has quit [Ping timeout: 260 seconds]
tagrudev has quit [Read error: Connection reset by peer]
arya has quit [Ping timeout: 248 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
puppeh has quit [Remote host closed the connection]
monkegjinni has joined #ruby
jjbohn has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<GreekFreak> Hanmac, I am developing in Rails, but I was under the impression that Transactions were part of Ruby classes
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<csmrfx> nope
io_syl has quit [Quit: Computer has gone to sleep.]
monkegjinni has joined #ruby
<Hanmac_> GreekFreak not in the ruby core or ruby stdlib ... DatabaseTransactions are 3rd party stuff
<csmrfx> well, not ruby core anyway
decoponio has quit [Read error: Connection reset by peer]
<GreekFreak> Hanmac, thank you
monkegjinni has quit [Read error: Connection reset by peer]
mattbl has joined #ruby
monkegjinni has joined #ruby
decoponio has joined #ruby
<jacobw> hi, i have a problem in a script that i don't have in irb
monkegjinni has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
mlr has joined #ruby
GreekFreak has quit [Quit: Leaving]
monkegjinni has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
monkegjinni has quit [Read error: Connection reset by peer]
sayan has joined #ruby
baroquebobcat has joined #ruby
monkegjinni has joined #ruby
generalissimo has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
erlingur has quit [Quit: Computer has gone to sleep.]
<jacobw> in irb, i can do this just fine, when i try to do this from a file it returns the undefined method for nil:NilClass
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
renanoronfle has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
jprovazn has quit [Quit: Leaving]
anonymuse has joined #ruby
nidhimj22 has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
arya has joined #ruby
casheew has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
DavidLevin has joined #ruby
DavidLevin has quit [Max SendQ exceeded]
tacey has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
tacey has quit [Max SendQ exceeded]
casheew has joined #ruby
monkegjinni has joined #ruby
angusiguess has quit [Read error: Connection reset by peer]
plotter has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
nidhimj22 has left #ruby [#ruby]
monkegjinni has joined #ruby
casheew has quit [Read error: Connection reset by peer]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
JonnieCa1he has quit [Quit: Reconnecting]
monkegjinni has quit [Read error: Connection reset by peer]
JonnieCache has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
spider-mario has joined #ruby
ZoffixWeb has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegji_ has joined #ruby
angusiguess has joined #ruby
d2dchat has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
casheew has joined #ruby
<d1zzYLuLz> I know that ruby is a "high-level" language..but how low level could one get with ruby? I need to do data destruction and verify that it is destroyed w/ a qc process...I am doing this now with a bash script and writing to files but am running into some conflicts...I think it'd be a lot easier and beneficial if I could write them to a database and put a web front end to it for the warehouse employees that will be using it (they're not SUPE
<d1zzYLuLz> or that would be good to read all the bytes on a drive and look for things that are not-zero?
monkegjinni has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ananthakumaran has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
baroquebobcat has quit [Quit: baroquebobcat]
carloslopes has joined #ruby
gouthamvel has joined #ruby
monkegjinni has joined #ruby
pavilionXP has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
casheew has quit [Read error: Connection reset by peer]
monkegjinni has quit [Read error: Connection reset by peer]
<Hanmac_> dlzzYLulz with FFI/DL/ or bindings you can call C functions ... (i have sawn a script where you can manipulate the internal structure of rubyvalues itself :D)
ZoffixWeb has quit [Client Quit]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
miskander has quit [Quit: miskander]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
casheew has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<csmrfx> you probably want to use dd anyway
<csmrfx> d1zzYLuLz:
<Hanmac_> d1zzyLulz how does your bash script looks like? normaly ruby should can do nearly anything as bash can do (File manipulation for sample)
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
miskander has joined #ruby
BadLarry has joined #ruby
<csmrfx> or bleachbit, or wipe, etc
<d1zzYLuLz> my bash script is ugly lol
hackeron has quit [Ping timeout: 255 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
<d1zzYLuLz> csmrfx: we're using ATA's Secure Erase
mmitchell has joined #ruby
the_mentat has quit [Quit: Computer has gone to sleep.]
<d1zzYLuLz> not something like dban that just overwrites w/ 0s
jgrevich has joined #ruby
<csmrfx> which OS is that?
<d1zzYLuLz> secure erase is an on-board call that is wayyy faster
monkegjinni has joined #ruby
<d1zzYLuLz> windows has an exe, hdderase..linux uses hdparm
wargasm has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<JonnieCache> just as long as youre not doing that 7 writes "NSA spec" nonsense
<csmrfx> so, have solution, why rebuild it
Monie has quit [Quit: Quit]
<JonnieCache> you only need one write
<d1zzYLuLz> well, we're doing mass drives
ner0x has joined #ruby
monkegjinni has joined #ruby
<d1zzYLuLz> i have it written in bash but the logging portion is ugly and i think i'm going to run into issues once it goes into full use-mode
<JonnieCache> in os x (and i guess bsd) one can just do rm -P
<JonnieCache> little known fact
monkegjinni has quit [Read error: Connection reset by peer]
hackeron has joined #ruby
monkegjinni has joined #ruby
<d1zzYLuLz> what does -P do?
<JonnieCache> "Overwrite regular files before deleting them. Files are overwritten three times, first with the byte pattern 0xff, then 0x00, and then 0xff again, before they are deleted."
monkegjinni has quit [Read error: Connection reset by peer]
<d1zzYLuLz> oh, yeah
<d1zzYLuLz> similar to shred
monkegjinni has joined #ruby
<d1zzYLuLz> like i said though, this isn't just overwriting...
<Hanmac_> you could also use dd to copy from zero or random to sda directly :P
pdamer has joined #ruby
<d1zzYLuLz> secure erase is a firmware command
razibog has quit [Ping timeout: 256 seconds]
SCommette has joined #ruby
<d1zzYLuLz> i can do a 500GB drive in a little over 90min
monkegjinni has quit [Read error: Connection reset by peer]
miskander has quit [Client Quit]
monkegjinni has joined #ruby
<shevy> hmm
<shevy> can I do:
gouthamvel has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
<shevy> begin require 'extension_that_may_not_exist' rescue LoadError end
<shevy> in one line, without any ; ?
<shevy> or is there another way
<JonnieCache> yeah just remove the rescue/end
<shevy> basically, I want to just require something and continue, with as little effort
<JonnieCache> and that should work fine
monkegjinni has joined #ruby
<shevy> JonnieCache hmm oh you mean
<shevy> hmm no that would fail I think, if it is not installed
miskander has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<Hanmac_> shevy did you tested named parameters in ruby2? :P
<shevy> rescue(require 'foo') that would be cool haha
samphippen has joined #ruby
monkegjinni has joined #ruby
<shevy> Hanmac hmm no, I dont have ruby2 yet, I will wait until it is heavily tested
<JonnieCache> shevy: youre right it doesnt work with require
geggam has joined #ruby
<JonnieCache> it generally works though
* Hanmac_ is doing heavily testing
<JonnieCache> >> 1/0 rescue nil
<eval-in> JonnieCache: Output: "" (http://eval.in/9860)
<d1zzYLuLz> anyway, i was just thinking storing the data we want to store for logging would be best done in a database rather than just writing command output to files..it gets ugly..especially when we have multiple machines running and doing 10+ drives at a time..
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<JonnieCache> d1zzYLuLz: you definitely want a log server
<shevy> JonnieCache hmm well it is ok to begin/rescue, I just wondered if there was a shorter way
<d1zzYLuLz> i know how to write and read code and throw things together to ge tthings done if i'm on a pentest or soemthing but i'm not a developer ..
monkegjinni has quit [Read error: Connection reset by peer]
<shevy> I just add a real tiny gem to a big script, and it is ok if this gem does not work, it is very unimportant and does only a small task
<shevy> only continue is important
monkegjinni has joined #ruby
<shevy> d1zzYLuLz I dont think it has much to do with a developer, you only have to "think" within a specific problem domain
<JonnieCache> shevy: i have that kind of thing in my ~/.pryrc a lot eg http://www.hastebin.com/ququrumafa.sql
monkegjinni has quit [Read error: Connection reset by peer]
gosshedd has quit [Ping timeout: 256 seconds]
<shevy> one pattern I love very much is to simplify things as much as possible
mattaf123 has joined #ruby
<shevy> ok JonnieCache
monkegjinni has joined #ruby
<Hanmac_> shevy so you can do: def func(a,b=2,*vargs,**kargs) in ruby2 :P imo its very fun
<shevy> yeah
monkegjinni has quit [Read error: Connection reset by peer]
<shevy> you give feedback to the user here JonnieCache. I do that sometimes too, but with this tiny gem, I am fine with silent rescues
<shevy> Hanmac_ can kargs be a hash?
aaronmacy has joined #ruby
<mattaf123> ok say i have an array "a" that has tons of data in it (say 100,000 hashes or something). my ram usages goes up to 300 mb for the ruby process. if i then run "a = []", when will garbage collection run and lessen the ram usage for the ruby process? or does ruby just hold on to the memory until the os wants it back?
Dreamer3 has quit [Quit: Leaving...]
<d1zzYLuLz> to be honest, i think a db would be better too for research purposes...for example, secure erase is supposed to be so effective that a qc process isn't needed (according to NIST standards)...we've found NUMEROUS drives that fail the secure erase process that shouldn't according to NIST standards and their are a ton of companies out there using this technologya dn not QCing...i'm wondering how many drives are going back out into production
monkegjinni has joined #ruby
etcetera has joined #ruby
<JonnieCache> mattaf123: GC doesnt run right away but yes that should happen
<d1zzYLuLz> a lot of industries require 3rd party verification that data is destroyed, adn this data is probably leaving there because they're not Qc
Hypn has quit [Remote host closed the connection]
<d1zzYLuLz> and if i could find a pattern to which drives, that'd be a great white paper...
buibex has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
<JonnieCache> mattaf123: even when its run your OS might not immediately report that the memory usage has changed though. modern OS memory management algorithms are incredibly complex
<csmrfx> mattaf123: you wont know when
monkegjinni has joined #ruby
<csmrfx> !g ruby gc fire
monkegjinni has quit [Read error: Connection reset by peer]
<shevy> mattaf123 there is not much control you have over the GC
monkegjinni has joined #ruby
<JonnieCache> you can fire it manually with GC.run! or something like that, but you shouldnt
<csmrfx> d1zzYLuLz: pardon my directness, but to me it sounds like you have no way of knowing what fails: your code, it's components, the OS, or the drive.
monkegjinni has quit [Read error: Connection reset by peer]
<Hanmac_> shevy kargs is ALWAYS a hash :P
<JonnieCache> youre in a dynamic interpreted language dude. let the OS and the interpreter manage memory, and be thankful for it
<csmrfx> JonnieCache: that depends on ruby implementation
monkegjinni has joined #ruby
<JonnieCache> csmrfx: exactly :D
monkegjinni has quit [Read error: Connection reset by peer]
<csmrfx> s/that/whether you can fire gc manually/
Jake232 has joined #ruby
monkegjinni has joined #ruby
roflmaus has quit [Read error: Connection reset by peer]
<shevy> you get about as much control as
<shevy> GC.enable
<shevy> GC.disable
<shevy> hahaha :D
monkegjinni has quit [Read error: Connection reset by peer]
<mattaf123> shevy: awesome, thanks - hadn't seen that
* Hanmac_ wishs there where a way so you could get the info if you should store something in memory or if you should store it in a tmp file ... (wich is often in memory too) ...
monkegjinni has joined #ruby
QKO_ has joined #ruby
<shock_one> shevy, can I delete the object manually, like in Python?
<shevy> Hanmac_ perhaps in ruby 3.0
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<shevy> shock_one hmm I dont think so... I have seen people try to do: a = []; a = nil ... but I think the GC runs when it wants to, and not when a nil is assigned to a variable
fteem has quit [Ping timeout: 252 seconds]
Umren has joined #ruby
<shevy> shock_one perhaps via yarv or what the name was... this bytecode thingy in ruby
lethjakman has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<JonnieCache> why on earth would you want to tear a hole through a carefully assigned abstraction
<shock_one> shevy, yeah, every nil assignment definitely doesn't run GC.
<shevy> RubyVM::InstructionSequence.disasm proc { |x| y = x + 2; puts y }
<JonnieCache> if you want to do this kind of thing, use C or golang
main has quit [Read error: Operation timed out]
monkegjinni has joined #ruby
CreativeEmbassy has joined #ruby
<shevy> I havent understood RubyVM yet
<JonnieCache> s/assigned/designed
<shevy> I am not even sure when to use it :\
monkegjinni has quit [Read error: Connection reset by peer]
<d1zzYLuLz> csmrfx: well before i implemented the logging part, i know it wasn't code..it was a simple for loop to execute one command on each device /dev/sd[a-z] then i would run through the hex and look for anything that was not a zero, if itw asn't a zero, it failed
<d1zzYLuLz> the logging is the part i'm confused on
QKO has quit [Ping timeout: 256 seconds]
monkegjinni has joined #ruby
<csmrfx> d1zzYLuLz: exactly, how do you know *what* failed
jcblitz has quit [Quit: jcblitz]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
swex_ has joined #ruby
ylluminate has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
swex has quit [Ping timeout: 260 seconds]
jsmonkey has quit [Quit: Lost terminal]
monkegjinni has joined #ruby
jjbohn is now known as jjbohn|afk
pothibo has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
maxmanders has quit [Quit: Computer has gone to sleep.]
uris has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
BaxZzZz has joined #ruby
monkegjinni has joined #ruby
d_roge has joined #ruby
nat_home has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
jjbohn|afk is now known as jjbohn
monkegjinni has joined #ruby
eldariof has quit [Ping timeout: 256 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
rakaar has quit [Ping timeout: 252 seconds]
monkegjinni has joined #ruby
etcetera has quit []
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
mlr has quit [Ping timeout: 252 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
Asher has quit [Quit: Leaving.]
monkegjinni has quit [Read error: Connection reset by peer]
casheew has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
casheew has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<Hanmac_> shevy i think you are not allowed to know about the RubyVM module :P
monkegjinni has quit [Read error: Connection reset by peer]
<JonnieCache> what shevy in particular
BaxZzZz has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Coolhand has quit [Remote host closed the connection]
<JonnieCache> has he pissed off the core team
monkegjinni has joined #ruby
arya_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
casheew has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
arya has quit [Ping timeout: 248 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
<JonnieCache> sorry, i should punctuate my jokes better if i want them to make sense.
Spooner has joined #ruby
Jake232 has quit [Quit: Computer has gone to sleep.]
monkegjinni has joined #ruby
baroquebobcat has joined #ruby
GreekFreak has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<GreekFreak> How do I convert the class reference #<Class:0x007f48f0045a70> to a proper class object?
monkegjinni has joined #ruby
Coolhand has joined #ruby
<JonnieCache> that is a class object
monkegjinni has quit [Read error: Connection reset by peer]
d1zzYLuLz has left #ruby [#ruby]
<JonnieCache> ruby doesnt have a separation between values and references
casheew has joined #ruby
monkegjinni has joined #ruby
billiam has joined #ruby
<GreekFreak> JonnieCache, it's in the string of an error I get. I want to convert it into a class to get the class name
<JonnieCache> that string youre seeing is just how ruby prints class objects
jibi has quit [Quit: .]
<JonnieCache> oh i see
<rking> Hey. Just spamming this: Vote banister http://www.rubyheroes.com/nominations (Because Pry rocks, and has advanced in rockishness all year)
<JonnieCache> rking: 404
<shock_one> JonnieCache, technically, every object in a reference (with some exceptions, like integers), but they're automatically dereferenced.
<JonnieCache> shock_one: i was simplifying :)
<GreekFreak> JonnieCache, It would be better if I could do "e.get_class_name" but I can't
<GreekFreak> I can only get the error message
monkegjinni has quit [Read error: Connection reset by peer]
monkegji_ has joined #ruby
BaxZzZz has joined #ruby
<rking> JonnieCache: D'oh!
mlr_ has joined #ruby
<shock_one> GreekFreak, e.class.name
end_guy has quit [Ping timeout: 276 seconds]
kylewiest has quit [Quit: Leaving.]
<Hanmac_> JonnieCache for sample you cant turn an an proc into an compiled InstructionSequence ... and bad that you can dump it or create it an Sequence object from an Array if sequences ...
maxmanders has joined #ruby
adambeynon has joined #ruby
aganov has quit [Quit: aganov]
<Hanmac_> shock_one that does not work on anonymous classes like rails use often
<Hanmac_> GreekFreak: on ruby classes not need a "name" in the meaning of a asigned constant ...
<JonnieCache> rking: you should also point out in your spam that banisterfiend's github username is just "banister"
<shock_one> Hanmac_, well, you can't get the *name* of *anonymous* class, that makes sense.
<GreekFreak> shock_one, that gives me the name of the error's class, not the name of the class that threw the error
aedornm has quit [Quit: Leaving]
tcstar has quit [Quit: Leaving]
tcstar has joined #ruby
d_roge has left #ruby [#ruby]
weox has joined #ruby
<JonnieCache> rking: oh you did put that in, sorry
<shock_one> GreekFreak, classes don't raise exceptions, bad code fragments do.
benlieb has joined #ruby
mlr_ has quit [Client Quit]
<GreekFreak> ok. what I mean is this. I get this error. How do I get which class it refers to? I get this error : #<NameError: undefined local variable or method `create_transation' for #<Class:0x007f48e8058bf0>> I want to know which Class it refers to
tcstar has quit [Read error: Connection reset by peer]
<shock_one> GreekFreak, it would be much easier if you gist the code.
mlr_ has joined #ruby
havenwood has joined #ruby
chrishunt has quit [Quit: zZzZzZ...]
<GreekFreak> shock_one, I know where the error is. I'm trying to create a generic error handler cause I do a lot of stuff in transactions. Which is why I don't have code
<Hanmac_> GreekFreak i think this is a rails question again ..
tcstar has joined #ruby
d_roge has joined #ruby
<GreekFreak> Hanmac, I'm asking there too. My problem is that I don't know what is rails and what is ruby, so I ask both in the hopes of a more complete answer.
mlr_ is now known as mlr
<GreekFreak> Thanks for trying guys
hashpuppy has joined #ruby
chrishunt has joined #ruby
BrianJ has joined #ruby
chrishunt has quit [Client Quit]
<shock_one> GreekFreak, you can change the error string in the place, where you throw it (method_missing), or you can monkey patch NameError.
jgrevich_ has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
weox has quit [Quit: Leaving]
<shock_one> throw -> raise
a_a_g has joined #ruby
<GreekFreak> let me try that
<GreekFreak> thanks
<shock_one> GreekFreak, no problem
mercwith1mouth has joined #ruby
mercwithamouth has joined #ruby
jgrevich has quit [Ping timeout: 248 seconds]
jgrevich_ is now known as jgrevich
<Hanmac_> shevy when a umethod shows #<UnboundMethod: C(B)#bla_init(init)> do you know that the four parts mean? :P
<Hanmac_> and yes this is a difference to 1.9
Targen has quit [Ping timeout: 245 seconds]
jimeh has joined #ruby
d_roge has quit [Remote host closed the connection]
katherinem13 has quit [Ping timeout: 255 seconds]
warreng has joined #ruby
nateberkopec has joined #ruby
maxmanders has joined #ruby
danneu1 has joined #ruby
cupakromer has quit []
mattaf123 has quit [Quit: mattaf123]
Yakko has quit [Remote host closed the connection]
Yakko has joined #ruby
katherinem13 has joined #ruby
eroc has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
BRMatt has joined #ruby
mahmoudimus has joined #ruby
banisterfiend has joined #ruby
failshell has joined #ruby
arya_ has quit [Ping timeout: 245 seconds]
graft_ has quit [Read error: Connection reset by peer]
arya has joined #ruby
Qwak has quit [Ping timeout: 256 seconds]
Dwarf has quit [Quit: By the way; I love Universe.. :) *DON'T TELL HIM!*]
workmad3 has quit [Ping timeout: 260 seconds]
zorbyte has joined #ruby
wargasm has joined #ruby
fteem has joined #ruby
ahokaomaeha has joined #ruby
danneu1 has quit [Quit: WeeChat 0.3.8]
<shevy> Hanmac_ what
<shevy> I dont even know what means anything in this
paolooo has joined #ruby
<shevy> why is there even a #
<Hanmac_> the method is defined in B but requested from C
graft_ has joined #ruby
<shevy> aha
<Hanmac_> the method orginal name was init, but it was aliased as bla_int
Yakko has quit [Remote host closed the connection]
cparen has joined #ruby
<Hanmac_> http://bugs.ruby-lang.org/issues/7806 << there is a bugticket from a user you know about that #inspect and #name on method objects does Differ
Fraeon has joined #ruby
Targen has joined #ruby
Vert has quit [Ping timeout: 252 seconds]
RurouniJones has quit [Remote host closed the connection]
banisterfiend has quit [Ping timeout: 252 seconds]
cparen has quit [Client Quit]
[[johnonymous]] has joined #ruby
daniel_hinojosa has joined #ruby
nomenkun has quit [Remote host closed the connection]
Qwak has joined #ruby
mattaf123 has joined #ruby
andikr has quit [Remote host closed the connection]
oposomme has quit [Quit: Leaving...]
<Hanmac_> shevy did you get it?
Xeago has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
<nat_home> Hi, I'm not sure how to do my thing exactly, here is the code http://pastie.org/6165609 basically I'm building an array with the output of the command executed, the problem is that inside my block, the array looks (line 17) good but as soon as I'm out of that channel.exec(command) I'm losing the elements
<nat_home> how do I make that work ?
joofsh_ has joined #ruby
wargasm has joined #ruby
krz has quit [Quit: krz]
luckyruby has quit [Remote host closed the connection]
QKO_ has quit [Read error: Operation timed out]
dmerrick has joined #ruby
<shevy> Hanmac_ hmmm
<shevy> I am confused
Banistergalaxy has joined #ruby
<shevy> so we have:
dallasm has joined #ruby
<shevy> class A; def xyz; end; alias ver xyz; end
joofsh has quit [Ping timeout: 256 seconds]
<shevy> so A.new.xyz() should behave like A.new.ver()
workmad3 has joined #ruby
<shock_one> nat_home, so, on line 36 it's empty?
etcetera has joined #ruby
graft_ has quit [Read error: Connection reset by peer]
<robert_> shevy: hai. :D
<Hanmac_> >> class A; def xyz; end; alias ver xyz; end; p A.instance_method(:ver), A.instance_method(:ver).name
<eval-in> Hanmac_: Output: "#<UnboundMethod: A#xyz>\n:ver\n" (http://eval.in/9861)
<shevy> Hanmac, that means #inspect on 1.8.x will behave incorrectly?
<shevy> hey robert_ old man, how's the age treating you :P
<nat_home> shock_one: yes, you can see the output bellow it's the one line 1
<robert_> :p
<Hanmac_> shevy its also incorrect on 1.9 too imo
<robert_> shevy: my arthritis sucks and I need my geritol!
<robert_> :p
<shevy> hmm yeah, good point Hanmac
<Hanmac_> as you can see in my evalin
filipe has quit [Read error: Connection reset by peer]
<shevy> robert_ hahaha that so reminds me of an old adage
asobrasil has quit [Read error: Operation timed out]
<Hanmac_> thats why i maked this ticket, and thats what it shows on 2.0 like : aliasname(orginalname)
<shevy> I cannot see, I cannot pee.
<shevy> I cannot chew, I cannot screw.
<shevy> My memory shrinks, My hearing stinks.
<shevy> No sense of smell, I look like hell.
QKO has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<shevy> My body's drooping, Have trouble pooping.
<shevy> The Golden Years have come at last.
<shevy> The Golden Years can kiss my ass.
<shevy> I <3 it :)
<robert_> xD :D
<shevy> gonna recite this until I am 150 years old
<robert_> lmao
<Hanmac_> shevy it seems that ups has encoding problems too: http://frapzzt.de/share/ups_umlautfail.jpg :P
<shock_one> nat_home, try to inspect the ret near the end of the method. Maybe it's some scope issue.
end_guy has joined #ruby
ananthakumaran has joined #ruby
Targen has quit [Ping timeout: 256 seconds]
mattaf123 has quit [Quit: mattaf123]
<shevy> "encoding is the nigger of the world"
<JonnieCache> hahahahahahaha
<JonnieCache> nice reference
<shevy> I am making a stab here at the old song from john lennon, "woman is the nigger of the world"
ananthakumaran has quit [Client Quit]
gosshedd has joined #ruby
<shevy> well
<JonnieCache> it was originally a quote from some famous feminist. she got in trouble for it
<shevy> at least encoding leads to so many problems... I'd wish we would all use only one language :(
D4T has quit [Quit: Computer has gone to sleep.]
<shevy> JonnieCache ah, I did not know that
<JonnieCache> as you can imagine there was a certain section of the population that wasnt happy with the comparison
<Hanmac_> shevy yeah, let us use latin :P
<shevy> thought john lennon originated it... now it sounds as if he "reused" the idea of someone else hehe
<nat_home> shock_one: as soon as I'm out of that bloc the content of my array disappear
graft_ has joined #ruby
graft_ has quit [Changing host]
graft_ has joined #ruby
<JonnieCache> oh apparently yoko ono said it. makes sense
ozgura has quit [Remote host closed the connection]
<shock_one> nat_home, which block, channel.on_data?
<shevy> JonnieCache, yeah, well I guess it must have been correct in the 1970s too, that people try to provoke with bold statements and theories, and in doing so gain attention
alvaro_o has joined #ruby
<shevy> yoko ono was so ugly :P
<JonnieCache> yoko OH NOES
<shevy> Hanmac_ actually, I would be in favour of eliminating german umlauts
<nat_home> shock_one: yes
<JonnieCache> i used to have a t shirt that said that. it had an upside down picture of her face on it
<shevy> I think that written english is superior to written german
<shevy> some german dialects are cool though
noxoc has quit [Ping timeout: 256 seconds]
<shevy> JonnieCache hehehe
<shevy> perhaps I should get a t shirt with matz on it
<shevy> 99.99% of the people here would never have a chance to know who that man would be
<shock_one> nat_home, which ruby version?
<shevy> without ruby on rails, I think noone would even know ruby here
oposomme has joined #ruby
<nat_home> shock_one: 1.9.3
<shevy> nat_home in which line does it disappear?
<shock_one> shevy, looks like on line 16 new local variable ret is created
<shevy> Hanmac, with .instance_method() I can create an UnboundMethod object?
<Hanmac_> shevy the german ones are not the worst ... while this is possible in UTF ụ̣̣̈̄ọ̈̄ạ̈̄ụ̈̌
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
<Hanmac_> shevy yeah, didnt you know that?
<shevy> Hanmac_ I can't read anything after the "UTF" there :\
<shevy> Hanmac_ not sure... sometimes I forget things I once knew...
aedorn has joined #ruby
dr_bob has left #ruby [#ruby]
<nat_home> shock_one: I updated the pastie http://pastie.org/6165869 with more debug, you can see line 20, the array printed is empty
maletor has joined #ruby
aantix has joined #ruby
<shock_one> >> def foo; x = 2; [2].each { |a| x = 1}; x; end; puts foo
<eval-in> shock_one: Output: "1\n" (http://eval.in/9862)
<shock_one> nat_home, it should work
razibog has joined #ruby
<shock_one> nat_home, your method is async, right?
<shock_one> That's a problem
<nat_home> shock_one: what is that ?
<shock_one> nat_home, in the output temp array is after final array. It means your channel.on_data runs in separate thread or something.
d_roge has joined #ruby
Mon_Ouie has quit [Remote host closed the connection]
pyrac has quit [Ping timeout: 245 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
<nat_home> arf… is there a way to work around tht ?
<nat_home> *that
d_roge has quit [Client Quit]
muminz has joined #ruby
<shock_one> nat_home, you can join it. But you have to know what to join.
<shock_one> nat_home, I made your code more rubish https://gist.github.com/shockone/4c2cb2573dfc7a044971
Mon_Ouie has joined #ruby
Dwarf has joined #ruby
joeycarmello has joined #ruby
psyprus has quit [Changing host]
psyprus has joined #ruby
muminz has quit [Quit: Changing server]
monkegji_ has quit [Remote host closed the connection]
Voodoofish430 has joined #ruby
miskander has quit [Quit: miskander]
Voodoofish430 has left #ruby [#ruby]
banisterfiend has joined #ruby
dmiller2 has quit [Ping timeout: 240 seconds]
muminz has joined #ruby
<muminz> test
spinagon has joined #ruby
tenmilestereo has joined #ruby
oposomme is now known as oposomme|away
rippa has quit [Read error: Connection reset by peer]
arya_ has joined #ruby
joofsh_ has quit [Ping timeout: 255 seconds]
artOfWar has joined #ruby
tjbiddle has joined #ruby
tjbiddle has quit [Remote host closed the connection]
arya has quit [Ping timeout: 256 seconds]
mafolz has quit [Remote host closed the connection]
bradhe has joined #ruby
io_syl has joined #ruby
DaltonUS has joined #ruby
bradhe has quit [Remote host closed the connection]
<_br_> muminz: NameError: name 'test' is not defined
adeponte has joined #ruby
zigomir has quit [Quit: zigomir]
timmow has quit [Read error: Connection reset by peer]
tjbiddle has joined #ruby
dallasm has quit [Remote host closed the connection]
timmow has joined #ruby
freakazoid0223 has joined #ruby
<shock_one> _br_, ArgumentError: wrong number of arguments (0 for 2..3)
francisfish has quit [Remote host closed the connection]
bluenemo has quit [Remote host closed the connection]
JumpMast3r has joined #ruby
<shevy> I love simplicity
<shevy> like lego building bricks, you can build something complicated from simple building units
mockra has joined #ruby
<gf3> shevy: You must enjoy functional programming
<aedorn> I used to have a ton of legos ... then they got expensive
workmad3 has quit [Ping timeout: 240 seconds]
Hanmac_ has quit [Ping timeout: 245 seconds]
daniel_-_ has joined #ruby
<GeekOnCoffee> shevy: http://littlebits.cc/
fedza has joined #ruby
Yakko has joined #ruby
Voodoofish430 has joined #ruby
ni291187 has joined #ruby
bradhe has joined #ruby
niklasb has joined #ruby
skattyadz has quit [Quit: skattyadz]
forrest has joined #ruby
Yakko is now known as Yakko
maxmanders has quit [Quit: Computer has gone to sleep.]
daniel_- has quit [Ping timeout: 252 seconds]
timmow has quit [Ping timeout: 252 seconds]
<shevy> gf3 not sure yet... I did not find the functional languages very elegant :(
<shevy> and haskell is unfortunately not understandable for everyone
nuba has joined #ruby
ni291187 has left #ruby [#ruby]
ngoldman has joined #ruby
<shevy> aedorn my ancient room when I was a kid was full with lego!
<gf3> shevy: Say whaaaaaat
chrishunt has joined #ruby
<gf3> shevy: Perhaps it's just my preference, but most that I've tried I've found to be extremely elegant due to their simplicity
<shevy> gf3 hmm what language?
actcoolordie has joined #ruby
<aedorn> you should try Go ... I don't know why, but it does seem awfully trendy.
<shevy> I dont have much experience with them
pu22l3r has joined #ruby
<shevy> dunno, why should one not use C instead of Go?
<gf3> shevy: The lisps especially (also schemes)
actcoolordie has left #ruby [#ruby]
<nat_home> shock_one: thanks, that's exactly my problem (I reread the doc about net-ssh) … I think I have to find a better way to do my thing
Vert has joined #ruby
<shock_one> nat_home, no problem
danneu has joined #ruby
Yakko_ has joined #ruby
<aedorn> shevy: Don't have to worry (too much) about memory management, it's cross platform by default, it's decently quick, it pulls libs into your executable from outside sources so you don't have to have them on the systems you distribute to...
Yakko has quit [Ping timeout: 255 seconds]
Yakko_ is now known as Yakko
DaltonUS has quit [Quit: DaltonUS]
<Mortchek> I have a list of lists. Is there a standard function that concats this list's elements together?
<shock_one> shevy, the main advantage of functional languages is data immutability. Because of it programs can be paralelled automatically and they have much less errors.
<shock_one> parallelized
heyitsdave has joined #ruby
mikepack has joined #ruby
eldariof has joined #ruby
<shock_one> shevy, true higher order functions (with currying and shit) are also very cool
<shevy> aedorn yeah, memory management is the single one thing I hate the most about C
mephux has quit [Excess Flood]
<shock_one> shevy, use stack :)
<shevy> Mortchek you could .flatten it always. btw I think you mean array rather than a list?
<shevy> shock_one hmm but one needs a pointer for this or? I never understood them completely :(
etcetera has quit []
mephux has joined #ruby
<shock_one> for using stack?
<Mortchek> shevy, okay, array. But I don't want to do this to the arrays contained by the arrays contained by that array.
breakingthings has quit []
<shevy> shock_one I think so?
<Mortchek> Oh, never mind, it has an argument that seems to make it do what I want.
sn0wb1rd has joined #ruby
<Mortchek> Thanks.
<shevy> there are so cool things you can do with C, like http://paco.sourceforge.net/doc/README ... I wanted to use that from pure ruby too, and have a package manager that way
<shevy> but C is over my head still
<shevy> Mortchek how many arrays do you have :P like those babuschka dolls
asobrasil has joined #ruby
<shock_one> shevy, no, if you create, say, int i = 2; it will be deallocated automatically. You only need to free (delete) the objects you have created with alloc (new)
<shevy> oh no sorry ... matryoshka ... http://en.wikipedia.org/wiki/Matryoshka_doll
etcetera has joined #ruby
<Mortchek> shevy, I am working with arrays of arrays of arrays of fixnums.
<shevy> shock_one ah ok
sn0wb1rd has quit [Remote host closed the connection]
<aedorn> meh, C is actually rather easy. It's keeping up with all the external libraries you could use is when it begins to get difficult.. artificial difficulty.
aaronmacy has quit [Quit: Leaving.]
<shevy> Mortchek like: array = [[1],[2,3],[4,[5,6]]] ?
tjbiddle has quit [Remote host closed the connection]
Vainoharhainen has quit [Quit: Leaving...]
<shock_one> aedorn, what is the standard practice to avoid name clashes in C?
locriani has quit [Read error: Connection reset by peer]
clooth has quit [Quit: clooth]
locriani has joined #ruby
<Mortchek> As an example, [[[1, 2], [2, 1]], [[0, 0]], [[3, 2], [4, 2]]]
<Mortchek> The innermost arrays are always two Fixnums (I wasn't sure if there was a more appropriate type for this already)
<shock_one> shevy, babuschka is grandma in Russian :)
<shevy> hehe
<Mortchek> And since they represent coordinates, it's very important that they not be splayed apart :P
<shevy> now I know two words
<shevy> druschba... and babuschka
<banisterfiend> Mortchek: Point = Struct.new(:x, :y)
<shevy> ah... and vodka or voda or however you write this in latin chars
mikepack has quit [Read error: Connection reset by peer]
QKO_ has joined #ruby
<shock_one> shevy, I can teach you how to say to someone to fuck off
<Mortchek> banisterfiend, thanks.
<shevy> shock_one cool! how?
caleb_io has joined #ruby
<shevy> I can say "four" in russian... tschetiri
twoism has joined #ruby
mikepack has joined #ruby
<shevy> youtube really is awesome for learning simple things :P
<shock_one> shevy, idi nahuj. I'm not sure how do you pronounce it, though.
nat_home has quit [Quit: Leaving.]
benlieb has quit [Quit: benlieb]
kenneth has quit [Quit: kenneth]
<shevy> hmm... "idi" seems simple... nahuj... is that "nahutsch" or "nahujjj", j... like in jaja or yes
joofsh has joined #ruby
<shevy> "nahui"
QKO has quit [Ping timeout: 244 seconds]
monkegjinni has joined #ruby
jankly has joined #ruby
zeade has joined #ruby
<shock_one> nakhui
_nitti_ has joined #ruby
<aedorn> shock_one: No idea.. it's been X years where X is greater than 15. At least I hope you aren't asking for the wonders that are underscore prefixing ... something must have changed since then
emocakes has quit [Quit: emocakes]
c0rn has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
brianpWins has joined #ruby
<shock_one> aedorn, there are still no namespaces, right?
_nitti has quit [Ping timeout: 256 seconds]
<shevy> shock_one ok
<shevy> shock_one I try to remember the full phrase i one go, seems easier
miskander has joined #ruby
cdt has quit [Remote host closed the connection]
<aedorn> shock_one: Unless they decided to implement one from C++ ... functions in structs will get you close...ish.
Qwak has quit [Ping timeout: 256 seconds]
ferdev has quit [Quit: Linkinus - http://linkinus.com]
octoberry has joined #ruby
io_syl_ has joined #ruby
jaimef has joined #ruby
the_mentat has joined #ruby
arturaz has joined #ruby
<shock_one> shevy, http://translate.google.com/#ru/en/%D0%B8%D0%B4%D0%B8%20%D0%BD%D0%B0%D1%85%D1%83%D0%B9
<shock_one> press the volume icon
io_syl has quit [Ping timeout: 248 seconds]
io_syl_ is now known as io_syl
banjara has joined #ruby
joofsh has quit [Read error: Connection reset by peer]
mephux has quit [Excess Flood]
QKO has joined #ruby
Yakko_ has joined #ruby
QKO_ has quit [Ping timeout: 248 seconds]
oposomme|away has quit [Read error: Connection reset by peer]
elux has joined #ruby
mephux has joined #ruby
Yakko has quit [Ping timeout: 255 seconds]
rupee has joined #ruby
ozgura has joined #ruby
eroc has quit [Quit: eroc]
Yakko has joined #ruby
monkegjinni has quit [Remote host closed the connection]
joofsh has joined #ruby
<aedorn> After all these years, the most annoying thing about building servers/desktops is still the case ... now there's an industry that could benefit from some social interaction.
sayan has quit [Ping timeout: 248 seconds]
anderse has quit [Quit: anderse]
AlSquire has quit [Ping timeout: 255 seconds]
sandGorgon has joined #ruby
Yakko_ has quit [Ping timeout: 252 seconds]
rdark has quit [Ping timeout: 252 seconds]
pyrac has joined #ruby
muminz has quit [Remote host closed the connection]
mityaz has joined #ruby
muminz has joined #ruby
<shevy> shock_one cool... that is very difficult to pronounce... I can hear that the speaker emphasizes it very differently from how I can speak that
elaptics is now known as elaptics`away
_nitti_ has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
AlSquire has joined #ruby
<shevy> aedorn what is the most annoying thing?
<shevy> compiling? :)
<shock_one> shevy, if you only know how hard for me it is to pronounce this fucking english.
kirun has joined #ruby
<shevy> shock_one haha :D yeah... english is sometimes strange. the word "decay", I used to pronounce it "deee-say". then a professor said "deee-kay"
<shevy> but "decent", you speak "deeee-seeeeend"
<shock_one> shevy, the most difficult is the phonems that we don't have. Like th and r (or, er...),
carlyle has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
<shevy> cool
<shevy> the french are especially funny, when they must pronounce "h"
nat_home has joined #ruby
daniel_-_ has quit [Quit: WeeChat 0.3.9.2]
kenneth has joined #ruby
hbpoison has quit [Read error: Connection reset by peer]
graft_ has quit [Read error: Connection reset by peer]
hbpoison has joined #ruby
teod has joined #ruby
<aedorn> shevy: no, no just the case. For instance, this one has welded motherboard stands. Unfortunately there's some that don't actually get used, and since they can't be removed they're basically sitting on an electrical pathway. The power supply is in an awkward position, so to route the 24pin connector you have to either go straight over the CPU, or route it around the PCIE slots, which means you won't be able to use them. So then y
<aedorn> ou have to buy an extension, just so you can route it around the front of the case, then bind it to the base so you don't block the air flow, and back over to the 24 pin slot. The only expansion slots are 5.25", and no adapter included for 3.5 or 2.5" drives. So you have to order one of those, then mount it, but then the holes aren't properly aligned, so you have to bend it back in order to mount said adapter.... the list goes on
slainer68 has quit [Remote host closed the connection]
<shock_one> aedorn, is it some metaphor about C?
<aedorn> The worst part is, when you find a case that you love to work with, it tends to go out of production. Then you gotta start the search all over again, and since none are perfect, you just get decide what annoying thing you want to live with!
<aedorn> shock_one: no, but I guess it could apply haha
ananthakumaran has joined #ruby
chrisnicola has joined #ruby
chrisnicola has quit [Client Quit]
chrisnicola_ has joined #ruby
zeade has quit [Quit: Leaving.]
chrisnicola_ has left #ruby [#ruby]
chrisnicola has joined #ruby
<shevy> aedorn hehe sounds like a nightmare
dallasm has joined #ruby
<aedorn> I really am just ranting about PC/server cases, but I guess some languages could feel the same. Oh, like Ruby and GUI libraries
<shevy> aedorn I hope that we will all have 3D printers one day, printing everything for us
DuoSRX has quit [Remote host closed the connection]
<shock_one> shevy, I would print a 3D printer
<shevy> then we will have a corrupt elite forbidding it due to trademark and copyright issues
<shevy> shock_one hahaha yeah
<aedorn> shevy: they're already using 3d printers to print drugs, rockets, cars, and even 3d printers... so soon.
<shevy> in biology, we'd have a "printer"... a cell can copy itself to generate a new cell...
<aedorn> Oh, and food
sayan has joined #ruby
<aedorn> That one company is using 3d printers for food
graft_ has joined #ruby
graft_ has quit [Changing host]
graft_ has joined #ruby
<aedorn> and kidneys (and other organs)
Yakko_ has joined #ruby
Yakko_ has quit [Remote host closed the connection]
<Drewch> Does anyone know why Ruby Logger gives this: `log shifting failed. comparison of Fixnum with String failed` --- I seem to see online that it might be related to timezone, but I can't find any good details
<shevy> aedorn hehe I think people in the future will solve that one day
workmad3 has joined #ruby
sn0wb1rd has joined #ruby
<shock_one> Can't wait to see 3D printers print Terminators and stuff.
<shevy> Drewch not very specific without more info... for instance, where does it fail, how does it fail
himsin has joined #ruby
<Drewch> Sorry about that
<shevy> all I know how to reproduce that would be ... perhaps a .sort
<Drewch> It prints that message everytime I do logger.error or logger.info
dallasm has quit [Ping timeout: 248 seconds]
Yakko has quit [Ping timeout: 248 seconds]
Catbuntu has joined #ruby
<shevy> ok but where is the "comparison of Fixnum with String"
<Drewch> I've created logger like such: @logger = Logger.new "test.log", 14, "daily")
<Drewch> so perhaps the 14 might be my error actually
<shevy> puts 'test' if 5 == '5' # this works
<shevy> hmm
<shevy> if you make it "14" what error will you get
<Drewch> I saw that you can have the consturction: logname, days to keep, max file size
<shock_one> aedorn, this one can't take my clothes, boots and motorcycle
<Drewch> I just assumed you could also put the daily/weekly part in there too
nobitanobi has joined #ruby
<shevy> Drewch, I show you how to cause that error in pure ruby
<shevy> array = [1,'2',3] # => [1, "2", 3]
<aedorn> lol
<shevy> array.sort # ArgumentError: comparison of Fixnum with String failed
<shevy> Drewch if nothing else helps, you could try to grep for ".sort" in the codebase of Logger
<shevy> or perhaps just "sort" alone
<workmad3> or grep for '<=>
<workmad3> '
<shevy> ah yeah good point
<workmad3> as that's what sort uses in the default sort method, and is what ultimately causes the invalid comparison error
enroxorz-work has joined #ruby
<Drewch> shevy it works when its a string
<aedorn> Drewch: name, age, size ... you seem to have name, age, and ... age...
<shevy> workmad3 I see
<Drewch> but what I'm looking to do is make a logger that creates a new log everyday, and only keeps logs for 14 days
<workmad3> >> [1, '2', 3].sort
<eval-in> workmad3: Output: "/tmp/execpad-d10359245fce/source-d10359245fce:1:in `sort': comparison of Fixnum with String failed (ArgumentError)\n\tfrom /tmp/execpad-d10359245fce/source-d10359245fce:1:in `<main>'\n" (http://eval.in/9863)
<workmad3> :)
<shevy> wow 869 people here
<shevy> have there always been that many?
interactionjaxsn has quit [Remote host closed the connection]
<workmad3> it's always pretty high in here
N4sh_ has joined #ruby
<shevy> I always thought we are around 600-700 hehe... but now we would not be that far away from 1000, the magic number!
nomenkun has joined #ruby
timonv_ has joined #ruby
<shevy> #php is at around 570, #perl at around 689,
hbpoison has quit [Read error: Connection reset by peer]
<shevy> and #python at around 1186
timonv has quit [Read error: Connection reset by peer]
<shevy> damn snakes
hbpoison has joined #ruby
<aedorn> Drewch: Unless you're using a different logger than the one in the standard lib, you aren't going to get that. It's number of logs to keep OR the rotation timeframe, and if it's a count like you have (14), it's expecting a size to know when to shift. Thus you're getting an error
osama has joined #ruby
skattyadz has joined #ruby
<Drewch> Yup aedorn thakns I took a look at the constructor more closely
<Drewch> I'll just swap to file size
<Drewch> Thanks guys!
teod has quit [Quit: Page closed]
nomenkun_ has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
tommyvyo has joined #ruby
<osama> hey guys i need some support i'm novel here ,
dmonjo has joined #ruby
<shevy> osama let me read your mind...
* shevy concentrates silently.
<shevy> ok...
<shevy> osama you need more chocolate
sayan has quit [Read error: Connection reset by peer]
<shevy> I send you a package
Monie has joined #ruby
d_roge has joined #ruby
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
jlast_ has joined #ruby
nomenkun has quit [Ping timeout: 252 seconds]
sn0wb1rd has quit [Remote host closed the connection]
cableray has joined #ruby
sn0wb1rd has joined #ruby
<osama> i recently web programmer but using .net and i need to switch to open source using ruby how should be the beginning ؟ :(
jlast has quit [Ping timeout: 244 seconds]
<danneu> osama: install it. :) what OS?
<danneu> shevy: i'm new to irc (about a year, came here for #rubyonrails when i was learning) but i love the
<danneu> async nature of irc.
<shevy> osama start with small tasks in ruby. (1) how to create files and directories in ruby (2) how to read in a file (3) how to use Array String Hash
<danneu> everyone's just sorta chillin going about their day. pop in every once in a while to share a morsel of wisdom
<shevy> danneu you came here because of #rubyonrails? I mean, on IRC?
<shevy> I cant even remember why I came to use freenode IRC
thillux has joined #ruby
<shevy> I remember I started with galaxynet IRC because other people were using it for an ancient browsergame
apok has joined #ruby
<Voodoofish430> freenode is a popular irc hub
<shevy> mIRC as client :)
<danneu> yeah, i never used irc much before. but the ror channel was really active and friendly so i decided it was something i'd like to keep on in the background
<aedorn> I came here specifically for #ruby and #ruby-lang, because I knew of nobody locally that used Ruby. Those were sad times.
<shevy> mIRC taught me how to use colours
<Voodoofish430> and default on pigeon client
decoponio has quit [Quit: Leaving...]
Astralum has joined #ruby
<danneu> i use a terminal irc client called Weechat (similar to irssi). it looks really cool and irc-y.
<shevy> danneu cool, can I ask how old you are roughly? like 15-20 or 20-25 or something like that?
icole has joined #ruby
<danneu> yeah, 24
<shevy> cool :)
etcetera has quit []
Squarepy has quit [Quit: Leaving]
Hanmac_ has joined #ruby
_nitti has joined #ruby
<shevy> hmm I think I was around 22 or 23 too when I started to use IRC
<danneu> prob has more to do with me learning programming late and not being in any real tech community in my life
danieldocki has joined #ruby
<shevy> same here danneu
chichou has quit [Remote host closed the connection]
<shevy> I can only learn when something is either fun, or interesting (and not too difficult at the same time, I gave up on haskell after a few tries)
heimark has joined #ruby
otherj has joined #ruby
Rizzle has quit [Read error: Connection reset by peer]
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
pyrac has quit [Quit: pyrac]
colonolGron has joined #ruby
QKO has quit [Read error: Operation timed out]
DrCode has quit [Ping timeout: 276 seconds]
muminz has quit [Ping timeout: 276 seconds]
Bry8Star has quit [Ping timeout: 276 seconds]
QKO has joined #ruby
osama has left #ruby [#ruby]
muminz has joined #ruby
etcetera has joined #ruby
fteem has quit [Ping timeout: 248 seconds]
hashpuppy has quit [Quit: hashpuppy]
francisfish has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
cantonic has quit [Quit: cantonic]
Al___ has quit [Quit: Al___]
_nitti has quit [Ping timeout: 252 seconds]
c0rn has quit [Ping timeout: 252 seconds]
maxmanders has joined #ruby
DrCode has joined #ruby
c0rn has joined #ruby
maxmanders has quit [Max SendQ exceeded]
slainer68 has joined #ruby
wr has joined #ruby
maxmanders has joined #ruby
sn0wb1rd has quit [Read error: Operation timed out]
maxmanders has quit [Max SendQ exceeded]
chussenot has quit [Quit: chussenot]
maxmanders has joined #ruby
bubblehead has joined #ruby
sn0wb1rd has joined #ruby
breakingthings has joined #ruby
ckrailo has joined #ruby
jlast_ has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
interactionjaxsn has joined #ruby
radq has quit [Remote host closed the connection]
pyrac has joined #ruby
bricker has quit [Ping timeout: 256 seconds]
jlast has joined #ruby
radq has joined #ruby
Bry8Star has joined #ruby
jgarvey has joined #ruby
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
icole has quit [Remote host closed the connection]
pdamer has quit [Quit: pdamer]
IceDragon has joined #ruby
mlr has quit [Quit: leaving]
hbpoison has quit [Read error: Connection reset by peer]
huoxito has joined #ruby
havenwood has quit [Remote host closed the connection]
mlr has joined #ruby
<Dwarf> *cough*
tjbiddle has joined #ruby
toekutr has joined #ruby
predator117 has quit [Ping timeout: 240 seconds]
poikon has quit [Remote host closed the connection]
hbpoison has joined #ruby
predator117 has joined #ruby
jromine has joined #ruby
stkowski has joined #ruby
vierja has joined #ruby
vierja has quit [Excess Flood]
nga4 has quit [Ping timeout: 255 seconds]
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
otherj has quit []
_nitti has joined #ruby
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
etcetera has quit []
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
predator117 has quit [Ping timeout: 244 seconds]
Catbuntu has quit [Quit: Auf wiedersehen]
<tjbiddle> Can I unpack a gem I write, into another gem's folder? Trying to think of how to write a gem that can be extensible - Was thinking of having a plugins/ directory that the gem would include any files in there, but afaik I wouldn't be able to install the plugins via a gem, I would have to copy the file(s) to that directory manually to 'install' them.
danielpcox has joined #ruby
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
Catbuntu has joined #ruby
predator117 has joined #ruby
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
<dmonjo> BIN = "\000\001\002\003\004\005\006\007\010\011"
<dmonjo>
<dmonjo> why cant we use 008 009
<dmonjo> is it utf?
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
havenwood has joined #ruby
tvw has joined #ruby
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
vierja has joined #ruby
<canton7> dmonjo, without context that question's impossible to even begin to answer
<dmonjo> canton7: i am trying to create an ascii to bin conversion
<dmonjo> ascii = ".123456789"|
<danneu> tjbiddle: what about `gem 'mygem', path 'vendor/mygem'` in the host gem's Gemfile?
<dmonjo> somehow inthe book i am reading the author jumps from 007 to 010
atyz has joined #ruby
<danneu> maybe it's like, the 13th floor
<havenwood> >> p ".123456789".encoding
<eval-in> havenwood: Output: "#<Encoding:US-ASCII>\n" (http://eval.in/9867)
<tjbiddle> danneu: Will check into that - Thanks!
vlad_starkov has joined #ruby
otherj has joined #ruby
otherj has quit [Max SendQ exceeded]
zastern has joined #ruby
radq has quit [Remote host closed the connection]
<zastern> If I define a class - classname - and then later do something like classname.new - am I just creating a new instance of that class? I'm reading the docs and it's just not clicking for me. (learning ruby, first language)
<danneu> tjbiddle: that kind of stuff is all done by Bundler, so you can look up more solutions on its website. http://gembundler.com/v1.2/gemfile.html
otherj has joined #ruby
<canton7> dmonjo, still not enough context.... different to "a".ord for example?
<shock_one> zastern, yes.
<canton7> zastern, Classname.new returns a new instance of the class, yes
radq has joined #ruby
<zastern> but what's the use of that, exactly?
<canton7> zastern, have you done OO at all before?
<danneu> zastern: mycat = Cat.new; yourcat = Cat.new; mycat.eat(yourcat)
<zastern> canton7: i haven't really done *programming* before.
<zastern> i'm on lesson 37 of LRTHW though
<shock_one> danneu, you're cruel
<zastern> hahaa
<canton7> zastern, object-orientated programming is a whole mindset that revolves around the definition and creation of objects. there isn't a simple "answer" or "point", really
<IceDragon> ;-; Catabalism
mklappstuhl has quit [Ping timeout: 260 seconds]
<canton7> and almost every example you see is going to be a bit contrived. it's only when the problems start getting more complex that OO starts to shine
<IceDragon> think in blocks!
<zastern> so yourcat becomes an instance of the class?
<shock_one> zastern, think of classes as of fabrics that make things
<danneu> zastern: both of our cats are Cat instances. they each have their own variables and stuff.
<zastern> shock_one: Yeah, I sort of understand waht classes are, I just don't totally get what just doing classname.new achieves.
<zastern> danneu: and I can call yourcat as a class?
<canton7> each instance of the class has its own state
<zastern> so after the yourcat = cat.new; I could do yourcat()?
<canton7> mycat.name = "Fred"; yourcat.name = "Bob";
<zastern> ahhhhhh
ddv has joined #ruby
ddv has quit [Changing host]
<zastern> Ok, so just doing classname.new is basically useless
<canton7> yeah
<zastern> but foo = classname.new
<zastern> ok
<shock_one> zastern, class is a blueprint of a house, object is an actual house. Makes sense?
<zastern> I get it!
<canton7> mylogger = Logger.new('path/to/log/to'); mylogger.log('something to say') # => could write to 'path/to/log/to'
<zastern> shock_one: yes, maybe :). I think I get it enough to proceed with this anyway
<zastern> thanks folks!
<zastern> I'm just a dumb sysadmin, but I need to start automating things
<danneu> zastern: the Cat class is like the factory that makes cats. Cat.new is like a lever you pull that pumps out a new cat bred from the Cat class cookiecutter.
Rizzle has joined #ruby
<zastern> danneu: that makes sense
<danneu> tldr you sysadmin workflow needs more Cat.new
freakazoid0223 has quit [Quit: Leaving]
<oz> what about updating the topic? ruby 2.0's rc2 has been out for a while now
<zastern> hahaha
<canton7> oz, it isn't the latest stable, though
<zastern> danneu: I think what it needs is more catabalisjm
<zastern> catabalism*
<oz> canton7: what do you mean?
<canton7> cataclism? catajism? hmm?
fmcgeough has quit [Read error: Connection reset by peer]
<oz> ruby 2.0 rc1 is stable ?
<canton7> oz, release candidates aren't final, stable releases
fmcgeough has joined #ruby
<oz> I know, I merely meant to s/rc1/rc2/ in the current topic. :)
<canton7> oz, aah missed that, my bad
<epta> What command line option parser should I use?
<canton7> hrm, seems the normal mod isn't around
ryanf has joined #ruby
<oz> canton7: nvm :)
<canton7> epta, take your pick of OptionParser, trollop, or that other one hmm...
etcetera has joined #ruby
<canton7> slop! that's it
<IceDragon> Doesn't ruby already break down the commands in ARGV ?
<canton7> well, if you're after choice, see https://www.ruby-toolbox.com/categories/CLI_Option_Parsers
<epta> canton7: nice
<canton7> IceDragon, it won't turn ['--flag', 'arg'] into {:flag => 'arg'} though
<IceDragon> >.> bleh
<canton7> epta, personally I'm a trollop fan, but take your pick
Ontolog has joined #ruby
<IceDragon> good point, I usually just walk through the commands using a: while argv.shift
<epta> canton7: name of this lib is disgusting :[
<danneu> zastern: here's a simple example using a more useful analogy: https://gist.github.com/danneu/5cb518a01e699b4d7bd6
carraroj has quit [Ping timeout: 252 seconds]
brospin has joined #ruby
davetherat has quit [Remote host closed the connection]
<canton7> IceDragon, they also handle things like automatically printing usage, flags, args, validation, etv
davetherat has joined #ruby
<zastern> danneu: I haven't used @ with varaibles yet. Is there somethign special about it?
<canton7> just automating all the extra boilerplate you normally need to add manually
<canton7> zastern, @ denotes instance variables - variables which form part of an object's state
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
etcetera_ has joined #ruby
<IceDragon> I feel like half my life has been wasted then...
bean has quit [Ping timeout: 248 seconds]
<danneu> zastern: ah. it's just an 'instance variable'. it's unique to an instance. p1's @text is different from p2's @text
<canton7> similarly, THESE_ARE_CONSTANTS, these_are_local_variables
_nitti has quit [Remote host closed the connection]
<canton7> and $these_are_globals
<zastern> ah i see thanks
<IceDragon> @@these_are_class_variables
<canton7> ^^ try not to use
emmanuelux has joined #ruby
<zastern> The problem I'm having also is that some of these things are hard to google
<zastern> e.g. ".new"
<workmad3> IceDragon: don't you mean @@thes_are_never_used :P
<IceDragon> I use em
_nitti has joined #ruby
<zastern> but im trying to search ruby-dolc
<zastern> doc
<IceDragon> P: They have their uses
<canton7> zastern, that's why a good book is important :P
<dmonjo> BIN = "\008" print BIN is returning 0 "\009" is returning 56 what is this enumeration?
<canton7> ruby-doc.org is amazing
<banisterfiend> workmad3: JS question: how do i list the functions defined on an object?
<zastern> canton7: heh, yeah, that's why I'm using LRTHW but it lets you figure out quite a bit on your own. But I'm mostly getting it so far. Like I said I'm up to exercize 37
Catbuntu has quit [Ping timeout: 256 seconds]
Asher has joined #ruby
<zastern> Thank god for a job that lets me do this at work
<canton7> nice
<workmad3> banisterfiend: iterate over the properties on the object checking to see if they are functions
<danneu> ;)
etcetera has quit [Ping timeout: 255 seconds]
etcetera_ is now known as etcetera
shevy has quit [Ping timeout: 245 seconds]
<zastern> as long as I have no pressing tasks
<workmad3> IceDragon: I've yet to find a use myself for @@class_variables as opposed to class instance variables
_nitti_ has joined #ruby
<IceDragon> A in class Cache
<IceDragon> "in class"
skattyadz has quit [Quit: skattyadz]
<dmonjo> any difference between s.tr and s.tr! methods?
<IceDragon> destructive
Mattix has quit [Ping timeout: 256 seconds]
<dmonjo> ?
axl_ has quit [Quit: axl_]
erlingur has joined #ruby
<IceDragon> bang (!) tend to operate on the current object
krawchyk_ has joined #ruby
<IceDragon> And will make permanent changes
mklappstuhl has joined #ruby
<IceDragon> Those without the bang will return a clone/duplicate of the object with the changes
Uranio has quit [Quit: while you reading this, a kitty dies]
D4T has joined #ruby
N4sh_ has quit [Quit: leaving]
<dmonjo> so the original string is not changed in this example s
<dmonjo> can you still reference the old string if not using the ! bang
<IceDragon> yes
cableray has quit [Quit: cableray]
<dmonjo> how?
krawchyk_ has quit [Remote host closed the connection]
<Hanmac_> dmonjo some ! methods does return nil when they change nothing , so beware
_nitti has quit [Ping timeout: 252 seconds]
otherj has quit []
<IceDragon> a = "Your Old String"; puts a.gsub("Old", "New"), a #=> ["Your New String", "Your Old String"]
<zastern> Is it possible to have a def ... end function access a variable outside it's own scope, e.g. something I set for my whole .rb file, that I don't have to pass as function(the, vars, go, here)? silly questions i know
krawchyk_ has joined #ruby
<dmonjo> ok
squidBits has joined #ruby
<Hanmac_> but this can be cool in an condition
<IceDragon> zastern in that case, you could use a Global Variable
cableray has joined #ruby
alup_ has joined #ruby
<dmonjo> IceDragon: thats a powerful feature
<IceDragon> adding to what Hanmac_ said: gsub! does that for instance
<dmonjo> non existent in java/perl as far as i know
icole has joined #ruby
krawchyk has quit [Ping timeout: 252 seconds]
jjbohn is now known as jjbohn|afk
<IceDragon> It could be done in Java and Perl probably... (never tried em)
bean has joined #ruby
<banisterfiend> workmad3: thanks
ahokaomaeha is now known as lolcathost|afk
tjbiddle_ has joined #ruby
<danneu> .gsub returns a mutated copy of the receiver, .gsub! mutates the receiver.
<banisterfiend> workmad3: is this right? for(v in object) { if(typeof(v) == "function") { console.log("v"); } }
<banisterfiend> err without quoting v
<IceDragon> ._. that looks weird
cableray has quit [Client Quit]
monkegjinni has joined #ruby
carraroj has joined #ruby
lolcathost|afk has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
tjbiddle has quit [Ping timeout: 255 seconds]
tjbiddle_ is now known as tjbiddle
<workmad3> IceDragon: banisterfiend I think so
<dmonjo> how can i know if a method is built in for example .respond_to? ri ::.respond_to?
francisfish has quit [Remote host closed the connection]
<banisterfiend> dmonjo: very hard to know
<banisterfiend> dmonjo: impossible actually
QKO_ has joined #ruby
<dmonjo> since i am importing modules i want to know the method belongs to what and if it actually exist
<dmonjo> i see in some code example lines.respond_to? :join
<shock_one> banisterfiend, does it iterate only over own properties?
tjbiddle has quit [Read error: Connection reset by peer]
tjbiddle has joined #ruby
QKO has quit [Ping timeout: 248 seconds]
brospin is now known as Catbuntu
tjbiddle_ has joined #ruby
shevy has joined #ruby
martin_work has joined #ruby
slainer68 has quit [Remote host closed the connection]
Mattix has joined #ruby
<Hanmac_> dmonjo you can do something like that Enumerator.instance_method(:to_a).owner #=> Enumerable
<banisterfiend> shock_one: i think it goes over all inherited properties too
<shock_one> banisterfiend, I don't remember how, but there is a way to return a name of the file (with a path) of method definition. He could use it to check if the method is built in
<banisterfiend> Hanmac_: that doesnt tell you if they're built in :)
ryanf has quit [Read error: Connection reset by peer]
<banisterfiend> Hanmac_: monkeypatches, etc
ryanf has joined #ruby
<banisterfiend> shock_one: it returns nil for C-backed methods though, so not much use
<IceDragon> Hanmac_: I must tell you, everytime you write something, I'm amazed O: thank you!
<shock_one> banisterfiend, I don't think so. I may include prototype reference, but nothing more.
<shock_one> banisterfiend, well, if respond_to & !definition_path then built in
GreekFreak has quit [Quit: Leaving]
<banisterfiend> shock_one: no
<banisterfiend> shock_one: anyone can write a c-backed method :)
<Hanmac_> hm you could ask about .source_location but it does not work on compiled functions
<shock_one> banisterfiend, right.
tjbiddle has quit [Ping timeout: 252 seconds]
tjbiddle_ is now known as tjbiddle
<dmonjo> .respond_to? :join is a know one ? :)
<dmonjo> knwon|*
<banisterfiend> shock_one: so how do you tell the difference between Enumerable#map and Enumerable#babble if babble is also C-backed ?
<banisterfiend> shock_one: i mean how do you know which one is built in?
goganchic has joined #ruby
<shock_one> banisterfiend, you're right.
<Xeago> does anyone know if you can git-add interactively with diff-settings like word-diff=color?
a_a_g has quit [Quit: Leaving.]
<Xeago> or if you can get diffs like googlecode shows them (combination of normal block diff and word-diff=color)
niklasb has quit [Ping timeout: 264 seconds]
spinagon has quit [Ping timeout: 240 seconds]
Monie has quit [Quit: Quit]
Mattix has quit [Ping timeout: 260 seconds]
<Hanmac_> banisterfiend: hm can you ask RDoc & RI ?
<Hanmac_> i currrently searching the modules but i dont find an function that returns something usefull for me ...
bricker has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Catbuntu is now known as Camel`
helvete has joined #ruby
Stilo has joined #ruby
Mattix has joined #ruby
akl_ has joined #ruby
jonahR has quit [Quit: jonahR]
pothibo has quit [Quit: pothibo]
jonahR has joined #ruby
atyz has quit [Ping timeout: 244 seconds]
chrisnicola has quit [Quit: This computer has gone to sleep]
rupee has quit [Quit: Leaving]
josh_keith has quit [Read error: Operation timed out]
jromine has quit [Remote host closed the connection]
svandiepen has quit [Read error: Operation timed out]
stormetrooper has quit [Quit: Lunch bitches]
arya_ has quit [Ping timeout: 244 seconds]
jromine has joined #ruby
t0rc has joined #ruby
jromine has quit [Read error: Connection reset by peer]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
interactionjaxsn has quit [Read error: Connection reset by peer]
bricker has quit [Ping timeout: 255 seconds]
maletor has joined #ruby
d_roge has quit [Remote host closed the connection]
jromine has joined #ruby
Konboi_ has joined #ruby
erlingur has quit [Quit: Computer has gone to sleep.]
interactionjaxsn has joined #ruby
erlingur has joined #ruby
_bart has joined #ruby
arya_ has joined #ruby
philcrissman has quit [Remote host closed the connection]
Konboi has quit [Ping timeout: 252 seconds]
etcetera has quit []
jacktrick has joined #ruby
fredzy has joined #ruby
<fredzy> hi, how do we read this line please: lines.respond_to? :join what is :join? a parameter?
<shock_one> fredzy, a method
<fredzy> :join is a method?
<shock_one> lines.join
svandiepen has joined #ruby
jjbohn|afk is now known as jjbohn
maycon has quit [Quit: Saindo]
banisterfiend has quit [Read error: Connection reset by peer]
backjlack has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
ewilliam has quit [Quit: WeeChat 0.3.7]
<fredzy> lines.join ok, but what is :join
<fredzy> how do you read that line?
<Hanmac_> fredzy :join is a symbol as parameter
caption has joined #ruby
<Hanmac_> fredzy symbols are like frozen unchangeable strings
<fredzy> constant
caption is now known as ewilliam
moshee has quit [Ping timeout: 252 seconds]
<Hanmac_> hm yeah they are constant ... more than the Constants :P
moshee has joined #ruby
Bosma has quit [Ping timeout: 256 seconds]
<fredzy> isnt join a reserve3d name in ruby?
<arturaz> no
<fredzy> :join is like the method named .join
josh_keith has joined #ruby
ewilliam has left #ruby [#ruby]
<arturaz> irb(main):001:0> "join".object_id == "join".object_id
<arturaz> => false
<arturaz> irb(main):002:0> :join.object_id == :join.object_id
<arturaz> => true
<arturaz> this is the essence of Symbols
Bosma has joined #ruby
<arturaz> fast comparisons using references, instead of comparing them by characters
<arturaz> and they are immutable
<arturaz> not like strings
bawigga has joined #ruby
cableray has joined #ruby
<Hanmac_> fredzy addional ruby uses symbols as names for methods and variables
Ontolog has quit [Read error: Connection reset by peer]
generalissimo has quit [Read error: Connection reset by peer]
jjbohn has quit [Read error: Connection reset by peer]
generali_ has joined #ruby
<fredzy> hmmmmm ok
nat_home has quit [Quit: Leaving.]
axl_ has joined #ruby
<Hanmac_> think about Symbols like enum values in C and C++ ... they repesend integers but has a name
<fredzy> so mainly lines.respond_to? :join will check line to see if it empty or not
mattbl has quit [Quit: This computer has gone to sleep]
benlieb has joined #ruby
Apocalypse has quit [Ping timeout: 245 seconds]
svandiepen has quit [Read error: Operation timed out]
tcstar has quit [Read error: Connection reset by peer]
<Hanmac_> fredzy hm no, it checks if lines is an object that has an join method defined
<Hanmac_> (or returns true on the magic function)
shock_one has quit [Ping timeout: 248 seconds]
tcstar has joined #ruby
Monie has joined #ruby
Apocalypse has joined #ruby
anderse has joined #ruby
moshee has quit [Ping timeout: 252 seconds]
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
philcrissman has joined #ruby
goganchic has quit []
<fredzy> where can i read about that? sooooo confused with that .respond_to? and that :join
etcetera has joined #ruby
<fredzy> as far as i know .respond_to? is used to check if a method exist
<Hanmac_> Array has a join instance method, File has a class method, URI has a class method too, Pathname has a instance method too
<fredzy> now with the :join we checking if that join method exist
bawigga has quit [Ping timeout: 244 seconds]
Camel` has quit [Quit: Auf wiedersehen]
carloslopes has quit [Remote host closed the connection]
samuel02 has quit [Remote host closed the connection]
<Hanmac_> yeah you guess it right, (it seems that you are not so confused than you thought)
backjlack has joined #ruby
cableray has quit [Ping timeout: 252 seconds]
Catbuntu has joined #ruby
ngoldman has quit [Remote host closed the connection]
bawigga has joined #ruby
Mattix has quit [Ping timeout: 264 seconds]
t0rc has quit [Quit: WeeChat 0.4.0]
bigkm has joined #ruby
Catbuntu has quit [Remote host closed the connection]
Catbuntu has joined #ruby
sn0wb1rd has quit [Remote host closed the connection]
sn0wb1rd has joined #ruby
<fredzy> hmmmm ok
Mattix has joined #ruby
<fredzy> and mainly the join method exist when you have an array of lines
<fredzy> no strings
<fredzy> correct?
<Hanmac_> yeah
dmiller2 has joined #ruby
<fredzy> thats so dynamic, depending on the content the methods are defined or not
svandiepen has joined #ruby
Jackneill has quit [Ping timeout: 244 seconds]
chrishunt has quit [Quit: zZzZzZ...]
miskander has quit [Quit: miskander]
kirun has quit [Quit: Client exiting]
Catbuntu has quit [Client Quit]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
axl_ has quit [Quit: axl_]
chrishough has joined #ruby
Catbuntu has joined #ruby
<fredzy> if i have a hash instead of an array will i have a join method defined?
<Hanmac_> yeah, because its posible for most of the objects that they define methods that the parent class does not have, so checking only the class, or calling is_a? is maybe not enouth
<Hanmac_> no, Hash objects does not have a join method (but both has a map method)
jjbohn has joined #ruby
Myconix has joined #ruby
<fredzy> cool, so only arrays have join methods
miskander has joined #ruby
anderse has quit [Quit: anderse]
QKO has joined #ruby
<Hanmac_> pathname objects has join too , (and user defined classes maybe too)
tvw has quit [Ping timeout: 248 seconds]
QKO_ has quit [Ping timeout: 240 seconds]
paolooo has quit [Quit: Page closed]
clooth has joined #ruby
eldariof has quit [Read error: Connection reset by peer]
jacktrick has quit [Quit: Leaving]
s0ber_ has joined #ruby
francisfish has joined #ruby
kold has joined #ruby
predator217 has joined #ruby
ryanf has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
ryanf has joined #ruby
katherinem13_ has joined #ruby
s0ber has quit [Ping timeout: 256 seconds]
aantix_ has joined #ruby
s0ber_ is now known as s0ber
<tjbiddle> Someone answered this for me earlier - but can't find any references to it online. Is there a way, and if there is, how can I specify where my gem should unpack itself?
txbahai has joined #ruby
mengu__ has joined #ruby
m8 has joined #ruby
katherinem13_ has quit [Client Quit]
mengu_ has quit [Ping timeout: 248 seconds]
predator117 has quit [Killed (kornbluth.freenode.net (Nickname regained by services))]
predator217 is now known as predator117
francisfish has quit [Remote host closed the connection]
aantix has quit [Ping timeout: 248 seconds]
aantix_ is now known as aantix
roger_padactor has joined #ruby
<roger_padactor> if you install a gem how do you find out what name to require it by?
Morkel_ has joined #ruby
ngoldman has joined #ruby
bean has joined #ruby
ngoldman has quit [Remote host closed the connection]
starburst has joined #ruby
<banisterfiend> roger_padactor: should just be the name of the gem
<banisterfiend> roger_padactor: if it's not then look in the Readme
<havenwood> roger_padactor: usually the name is the same as the gem itself, unless the gem author is being evil >.>
<Hanmac_> otherwise do gem contents gem_name
<fredzy> Hanmac_: so wouldnt be a better idea if we test the type of lines ubstead of checking if it has a join method to see if it is an array of lines?
eldariof has joined #ruby
Bry8Star has quit [Remote host closed the connection]
end_guy has quit [Remote host closed the connection]
muminz has quit [Write error: Broken pipe]
DrCode has quit [Remote host closed the connection]
BadLarry has quit [Ping timeout: 256 seconds]
_nitti_ has quit [Remote host closed the connection]
eldariof has quit [Client Quit]
sintrix has joined #ruby
ngoldman has joined #ruby
<roger_padactor> ok odd… now I'm getting this.. never seen it before. gem_original_require': no such file
_nitti has joined #ruby
DrCode has joined #ruby
icole has quit [Read error: Connection reset by peer]
Morkel has quit [Ping timeout: 264 seconds]
Morkel_ is now known as Morkel
elux has quit [Read error: Connection reset by peer]
icole has joined #ruby
jjbohn has quit [Read error: Connection reset by peer]
chrisnicola has joined #ruby
elux has joined #ruby
<Hanmac_> fredzy what do you do when the object does not respond to join? raise an error or another way?
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
ozgura has quit [Remote host closed the connection]
<fredzy> i would do a lines.dup
<fredzy> means i would not join the lines to the string i want
<fredzy> s = lines.join if it respond and s = lines.dup if it doesnt
skcin7 has joined #ruby
end_guy has joined #ruby
kold has quit [Remote host closed the connection]
joshman_ has quit [Ping timeout: 240 seconds]
<Hanmac_> fredzy: what about: Array(lines).join
etcetera has quit []
ebobby has joined #ruby
timonv_ has quit [Ping timeout: 256 seconds]
nomenkun_ has quit [Remote host closed the connection]
timonv has joined #ruby
D4T has quit [Quit: Computer has gone to sleep.]
Xeago has quit [Remote host closed the connection]
renanoronfle has quit [Quit: This computer has gone to sleep]
rupee has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
etcetera has joined #ruby
BadLarry has joined #ruby
Bry8Star has joined #ruby
luckyruby has joined #ruby
<dmonjo> s.index(/[^123\.]/) the ^ stands for not? or starts with ?
<dmonjo> means check if s does not contain 123 or . ?
hybris has quit [Ping timeout: 256 seconds]
<dmonjo> ^ means start of i dont know if in index it means something else
khismetix has joined #ruby
tcurdt has joined #ruby
radq has quit [Remote host closed the connection]
bawigga has quit [Quit: Computer has gone to sleep.]
chrishunt has joined #ruby
<khismetix> In this code… sorting by value and key : http://pastebin.com/H24tEb83
arturaz has quit [Ping timeout: 276 seconds]
<Hanmac_> dmonjo outside of [] it means start of line, at the beginning of [] it means negation
<khismetix> one thing I am wondering about is why [0] and [1] indices… is that key , value
joshman_ has joined #ruby
radq has joined #ruby
<Hanmac_> fredzy: Array is one of the methods that can be missguessed as Classes, in this case, Array() does allways returns an Array
tcurdt has quit [Client Quit]
danielpcox has quit [Ping timeout: 248 seconds]
BadLarry has quit [Ping timeout: 244 seconds]
<fredzy> ruby is not an easy language! this is a misconception!
<banisterfiend> fredzy: i think it's easy, but i dont think it's simple :)
<banisterfiend> it's a bit subtle, but "easy" in so far as it's quick to pick up
bradleyprice has joined #ruby
Catbuntu has quit [Quit: T'estimo ILVerano!]
<Hanmac_> khismetix: h.sort{|a,b| a[0] <=> b[0]} #better: h.sort_by{|k,v| k}
<fredzy> new concepts of programming!
<banisterfiend> Hanmac_: sort_by(&:first)
<khismetix> Hanmac_ +1
<fredzy> breaking the rules i acquired from java perl
lancepantz_ is now known as lancepantz
<Hanmac_> banisterfiend: yeah but for the values i cant use &:second
danieldocki has quit [Quit: Leaving...]
<banisterfiend> Hanmac_: you can use &:last
<Hanmac_> ups yeah you are right
<khismetix> so is a[0], b[0] less clear
muminz has joined #ruby
<Hanmac_> yeah, sort_by is better when you can use it
Bry8Star has quit [Excess Flood]
<khismetix> is it just convention that a hashes keys and values can be accessed using 0,1 index ?
angusiguess has quit [Ping timeout: 264 seconds]
caleb_io has quit [Quit: caleb_io]
<Hanmac_> or you can do this if you want: h.sort{|(ak,av),(bk,bv)| ak <=> bk}# it may be a bit more clear than using 0,1
Mattix has quit [Ping timeout: 240 seconds]
razibog has quit [Ping timeout: 240 seconds]
thillux_ has joined #ruby
elaptics`away is now known as elaptics
thillux has quit [Read error: Operation timed out]
jeffreybaird has quit [Quit: jeffreybaird]
Xeago has joined #ruby
<roger_padactor> i don't get why when I remove the require 'gem-name' my script works. but then when I add require 'gem-name' i get the /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- bundler/setup (LoadError)
<yxhuvud> I don't get it. why do sort_by &:first when #sort without arguments work just as fine?
Bry8Star has joined #ruby
<banisterfiend> Hanmac_: what is ups
akl_ has quit [Remote host closed the connection]
<shevy> yxhuvud not sure myself either, I usually use .sort
<havenwood> roger_padactor: Use 1.9!
<havenwood> roger_padactor: Are you doing a `require 'rubygems'` above the require 'gem-name'?
failshell has quit [Ping timeout: 248 seconds]
<banisterfiend> yxhuvud: i always wondered, what does your nickname mean?
Lubinski has quit [Quit: Leaving]
timonv has quit [Read error: Connection reset by peer]
banjara has quit [Quit: Leaving.]
timonv has joined #ruby
thomasfedb has quit [Ping timeout: 276 seconds]
banjara has joined #ruby
<yxhuvud> it is pretty much nonsense. literally it means 'axe head'. it is a play on words with a common meme meaning a nonsense answer that answer a totally different thing to what was asked for
<Hanmac_> yxhuvud sort_by can use a nicer block, you could do h.sort_by {|k,v| k.ord}
mattbl has joined #ruby
<dmonjo> s.index([987]/ will iterate internally and check if 9 or 8 or 7 is contained in any place of s
<dmonjo> right
autumn has quit [Ping timeout: 260 seconds]
waxjar has quit [Ping timeout: 276 seconds]
otters has quit [Ping timeout: 255 seconds]
<yxhuvud> hanmac: sure, if you need to process it further than just the first element, then sort_by is a lot nicer. but if you are just sorting on the first key then the block is not needed.
Mattix has joined #ruby
<banisterfiend> yxhuvud: in swedish?
<Hanmac_> yeah but i still like the symytry
<yxhuvud> yes
nkr has quit [Ping timeout: 244 seconds]
TomRone has quit [Ping timeout: 248 seconds]
<Hanmac_> shevy what about a IkeaOS? where everything need to be build yourself and then some parts are missing and other parts are leftover :P
TomRone has joined #ruby
cheekee has joined #ruby
tvw has joined #ruby
krawchyk_ has quit [Remote host closed the connection]
CreativeEmbassy has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
pyrac has quit [Quit: pyrac]
bawigga has joined #ruby
BadLarry has joined #ruby
invisime1 has left #ruby [#ruby]
<dmonjo> what is the use of dimentional array on string? for example s = "123456" put #{s[1]} or put #{s[1,1]} return the same result
Es0teric has joined #ruby
cheekee has quit [Quit: leaving]
philsturgeon has joined #ruby
<philsturgeon> hey, how does autoload work? i see that autoload itself is deprecated, but is there a modern approach?
<philsturgeon> i googled around, dont know enough to find anything other than autoload
fedza has quit [Ping timeout: 248 seconds]
<philsturgeon> ahh, this
ylluminate has quit [Quit: Bye!]
nobitanobi has quit [Quit: Page closed]
khismetix has quit [Quit: Computer has gone to sleep.]
BRMatt has quit [Quit: Leaving]
BRMatt has joined #ruby
<Hanmac_> dmonjo: s[2,3]#=> "345" s[2..3]#=> "34" and there is an []= method where the difference may be important
<dmonjo> ok
<dmonjo> :)
angusiguess has joined #ruby
niklasb has joined #ruby
miskander has quit [Quit: miskander]
<dmonjo> s[3,2] = 3
QKO_ has joined #ruby
<danneu> philsturgeon is deprecating codeigniter for rails? seems so
<danneu> the end of an era
<Hanmac_> dmonjo: the [] method of string can do magic with regexp too ... like "#a123b#"[/a(\w+)b/,1] #=> "123"
<Hanmac_> and when you use a string it react like include?
<philsturgeon> danneu: what are you talking about?
<Hanmac_> >> p "123"["2"]
<eval-in> Hanmac_: Output: "\"2\"\n" (http://eval.in/9872)
QKO has quit [Ping timeout: 256 seconds]
<philsturgeon> 1) I quit the CI team last year. 2) I havent said anything about using rails 3) I do more python than ruby :p
mengu__ has quit [Quit: Konversation terminated!]
tcstar has quit [Ping timeout: 255 seconds]
mark_locklear has quit [Read error: Operation timed out]
<Hanmac_> philsturgeon: he means that autoload is heavy used by rails stuff, so if autoload is droped, rails would get a problem
br1an has joined #ruby
rheoli has joined #ruby
<Hanmac_> philsturgeon: you can use ruby in python too :DD
rheoli has quit [Client Quit]
<philsturgeon> Hanmac: i dont think thats what he meant. just because i used to be a CI dev people seem to freak out when i do anything in another language
<philsturgeon> anybody have a good resource on autoloading with const_missing? http://wondible.com/2011/12/23/give-rails-autoloading-a-boot-to-the-head/ this is mostly a list of complaints or vague suggestions, but something more concrete would be wonderful
pkrnj has joined #ruby
<fredzy> def dup copy = super => in this case copy gets the result of the parent dup method? if super is supplied like that plain? if we had def x copy = super would super try to call parent.x ?
the_mentat has quit [Quit: Computer has gone to sleep.]
heyitsdave has quit [Ping timeout: 245 seconds]
<Hanmac_> fredzy yeah
<TTilus> fredzy: yes
heimark has quit [Quit: Computer has gone to sleep.]
<TTilus> :)
Umren has quit [Read error: Connection reset by peer]
<Hanmac_> PS: super can manipulate the parameter count ... so super() is not the same as super
danielpcox has joined #ruby
ebobby has quit [Ping timeout: 252 seconds]
<fredzy> if super is called from an inner method (method embeded inside another method) what is called then?
bawigga has quit [Ping timeout: 252 seconds]
<Hanmac_> the name of the inner method
<fredzy> super.super would call the root parent right
<Hanmac_> the funny thing is that the inner method can overwrite the outer one :P
danieldocki has joined #ruby
mityaz has quit [Quit: See ya!]
<fredzy> too much for me today
chrishough has quit [Quit: chrishough]
Michael__ has joined #ruby
<fredzy> going fredzy
aantix has quit [Remote host closed the connection]
Michael__ has quit [Remote host closed the connection]
aantix has joined #ruby
<Hanmac_> no ... super only accesses the directly parent (or the one in the ancestor chain)
bawigga has joined #ruby
<fredzy> for example:def dup copy = super @grid= @grid.dup copy end
<fredzy> in this case grid.dup is called a recursion?
<fredzy> or the dup on the parent?
<Hanmac_> if you want to call the method from parents parent you need to do more ugly stuff
brandon has joined #ruby
brandon has quit [Client Quit]
<Hanmac_> yeah in this case you call copy inside copy, so its an endless loop
<fredzy> in this case grid.dup refers to the method dup it is declared in it? does it overwrite the parent dup ?
tvw has quit [Ping timeout: 244 seconds]
cableray has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
<Hanmac_> ups sorry ... i missread it
gabrielrotbart has joined #ruby
niklasb has quit [Ping timeout: 252 seconds]
<Hanmac_> freadzy overwritnig dup or close is a bad idea ... please read about inititalize_copy
<fredzy> for the sake of understanding in this code, @grid = @grid.dup which dup method is called?
CreativeEmbassy has joined #ruby
<Hanmac_> the method defined on dup ... its the first one in the ancestor chain
baotrungtn has joined #ruby
prime has quit [Changing host]
prime has joined #ruby
philsturgeon has left #ruby [#ruby]
baotrungtn has quit [Remote host closed the connection]
PanPan has quit [Remote host closed the connection]
<fredzy> ok so it will call the def dup i did, means always the methods that are deeper are the ones called first
axl_ has quit [Quit: axl_]
nfk has quit [Quit: yawn]
<Hanmac_> yeah
Guest54578 is now known as EvanR
EvanR has quit [Changing host]
EvanR has joined #ruby
ahokaomaeha has joined #ruby
jonahR has quit [Quit: jonahR]
carloslopes has joined #ruby
axl_ has joined #ruby
robbyoconnor has joined #ruby
geggam has quit [Remote host closed the connection]
bubblehead has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 260 seconds]
<Hanmac_> shevy what do you think about prepending modules?
emocakes has joined #ruby
ebobby has joined #ruby
Virunga has joined #ruby
willob has quit [Quit: Leaving.]
willob has joined #ruby
willob has quit [Max SendQ exceeded]
willob has joined #ruby
<shevy> Hanmac_ what does that mean?
willob has quit [Max SendQ exceeded]
daniel_- has joined #ruby
_br_ has quit [Excess Flood]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
willob has joined #ruby
Yakko has joined #ruby
willob has quit [Max SendQ exceeded]
_br_ has joined #ruby
willob has joined #ruby
willob has quit [Max SendQ exceeded]
<havenwood> Hanmac_: I've never run into a case where I've wanted to prepend a module. Seems nice to be able to fiddle. Will you actually use it do you think?
pavilionXP has quit [Quit: Forget progress by proxy. Land on your own moon.]
willob has joined #ruby
<fredzy> s.include? /regex/ does not work should i use s.index(regex) instead?
willob has quit [Max SendQ exceeded]
geekbri has quit [Remote host closed the connection]
<Hanmac_> shevy: A includes B A.ancestors #=> A , B , ... A prepends B A.ancestors: #=> B , A , ...
willob has joined #ruby
willob has quit [Max SendQ exceeded]
idkazuma has joined #ruby
_br_ has quit [Excess Flood]
erlingur has quit [Quit: http://erlingur.is]
willob has joined #ruby
the_mentat has joined #ruby
willob has quit [Max SendQ exceeded]
<dmonjo> ("test").include? "/[test]/" returns false
<dmonjo> soerry without the " "
_br_ has joined #ruby
_br_ has quit [Excess Flood]
willob has joined #ruby
TomRone has quit [Ping timeout: 248 seconds]
<Hanmac_> dmonjo you need match or []
erlingur has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
enroxorz-work has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Yakko has quit [Ping timeout: 252 seconds]
_br_ has joined #ruby
etcetera has quit []
<Hanmac_> =~ would work too, but i often dont like it
generali_ has quit [Remote host closed the connection]
<dmonjo> ("test").include? /["test"]/
dmerrick has quit [Quit: dmerrick]
<dmonjo> cant convert regexp to string
etcetera has joined #ruby
Dwarf has quit [Quit: I LOVE UNIVERSE!]
internet_user has joined #ruby
<Hanmac_> dmonjo you cant use include?
TomRone has joined #ruby
internet_user has quit [Remote host closed the connection]
<dmonjo> nop
<dmonjo> `include?': can't convert Regexp into String (TypeError)
idkazuma has quit [Remote host closed the connection]
beliveyourdream has quit [Remote host closed the connection]
<dmonjo> i think i should use index
chrishough has joined #ruby
martin_work has quit [Quit: martin_work]
<Hanmac_> dmonjo i said dont use include?
<Hanmac_> >> p ("test")[/["test"]/]
<eval-in> Hanmac_: Output: "\"t\"\n" (http://eval.in/9875)
vlad_starkov has quit [Remote host closed the connection]
BadLarry has quit [Ping timeout: 256 seconds]
fmcgeough has quit [Quit: fmcgeough]
ewokchewy has joined #ruby
<dmonjo> the inner [] would be for an if ?
<Hanmac_> no the inner [] is part of the regex
jeffreybaird has joined #ruby
<dmonjo> and the outer?
<Hanmac_> the outer is the method of the strign
lancepantz is now known as lancepantz_
jerius has quit [Ping timeout: 260 seconds]
robbyoconnor has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby
IcyDragon has joined #ruby
<Hanmac_> shevy what about:
<Hanmac_> >> p "hello there"[/(?<vowel>[aeiou])(?<non_vowel>[^aeiou])/, "vowel"]
<eval-in> Hanmac_: Output: "\"e\"\n" (http://eval.in/9876)
IceDragon has quit [Ping timeout: 248 seconds]
carlyle has quit [Remote host closed the connection]
colonolGron has quit [Quit: Lost terminal]
Matip has joined #ruby
philcrissman has quit [Remote host closed the connection]
lancepantz_ is now known as lancepantz
helvete has quit [Quit: Leaving...]
Xeago has quit [Remote host closed the connection]
Mattix has quit [Ping timeout: 256 seconds]
philcrissman has joined #ruby
brianpWins has quit [Quit: brianpWins]
backjlack has quit [Remote host closed the connection]
jekotia has joined #ruby
tjbiddle has quit [Remote host closed the connection]
tjbiddle has joined #ruby
axl_ has quit [Quit: axl_]
freakazoid0223 has joined #ruby
nilobject has quit [Quit: leaving]
timonv has quit [Remote host closed the connection]
idkazuma has joined #ruby
danbell has joined #ruby
QKO has joined #ruby
<danbell> Can anyone explain the attr keyword to me? I know about attr_writer, _accessor, and _reader, but just vanilla-lonesome attr? All my googling just takes me to the other three.
QKO_ has quit [Ping timeout: 245 seconds]
otters has joined #ruby
elux has quit [Quit: Bye!]
cableray has quit [Quit: cableray]
chrishough has quit [Quit: chrishough]
jeffreybaird has left #ruby [#ruby]
nilobject has joined #ruby
ryanf has quit [Read error: Connection reset by peer]
chrishough has joined #ruby
ryanf has joined #ruby
lancepantz is now known as lancepantz_
<Hanmac_> danbell: attr itself is an old-dated imo
<danbell> are the others preferred over it?
tenmilestereo has quit [Quit: Leaving]
jarjar_prime has joined #ruby
Dwarf has joined #ruby
<Hanmac_> yeah the others are prefered
tommyvyo has joined #ruby
miskander has joined #ruby
<danbell> k, thanks
<shevy> Hanmac_ hmmm
<shevy> Hanmac_ I am not too happy with the whole class vs. module distinction
otherj has joined #ruby
thillux_ has quit [Remote host closed the connection]
lancepantz_ is now known as lancepantz
vlad_starkov has joined #ruby
fredjean has joined #ruby
<shevy> Hanmac_ I think a problem is that there is only one main chain of inheritance, which is subclassing. but many people love include... now prepending module seems to further strengthen the whole include model
<shevy> which I feel is kind of at odds with subclassing
bluOxigen has quit [Ping timeout: 256 seconds]
<shevy> I remember matz once said that he didn't like the complexity of C++
<shevy> yet ruby as a whole is quite complex too
jlast has quit [Read error: Operation timed out]
<otters> ruby isn't that complex
codecop has quit [Remote host closed the connection]
<otters> maybe I'm just a genuis
<otters> genius
Guest123 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
robbyoconnor has quit [Ping timeout: 260 seconds]
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 256 seconds]
ewokchewy has quit [Ping timeout: 244 seconds]
<Hanmac_> shevy there are current open bugs about the prepending, so it is not finish yet
ssvo has quit [Ping timeout: 252 seconds]
joshman_ has quit [Quit: Computer has gone to sleep.]
<shevy> that is because you are a very clever otter, otters!
<danbell> lol, from SO:
<danbell> "Simple difference. One, attr_accessor and friends are clearer, and the optional boolean argument to attr is now deprecated. Other then that, and the fact that attr has no documentation, that's it."
<otters> you're right shevy
<danbell> no s*** it has no documentation, ha
<otters> misspelling "genius" makes me feel silly
thomasfedb has joined #ruby
<shevy> danbell lol
jaredrhine_ is now known as jaredrhine
<shevy> danbell I always used attr_reader attr_writer and attr_accessor. when I first saw other people use attr alone, I wondered
huoxito has quit [Ping timeout: 248 seconds]
<shevy> but I cant remember attr due to the name alone
<danbell> even ri failed me
<shevy> with reader, I know it is a getter, with writer, I know it is a getter, and accessor is just the combination of getter and setter, the other two attrs
<otters> attr is a method itself?
alvaro_o has quit [Ping timeout: 252 seconds]
<shevy> hmm isn't attr alone attr_reader ?
<danbell> not sure
<danbell> wait, I think so
<Hanmac_> shevy not if the second paramter is true
<epta> `predicate.(value, expected)' where predicate is a lambda works fine on 1.9. With 1.8 I have a error 'syntax error, unexpected '(''. How can I handle that?
ewokchewy has joined #ruby
<danbell> and if you add a second true, then it's writer too
<shevy> ah Hanmac I see
<otters> epta: predicate[value, expected]
ryanf has quit [Read error: Connection reset by peer]
<epta> otters: will it works in 1.9?
<otters> yeah
ryanf has joined #ruby
<danbell> tys
<otters> any advice I give you will be 1.8 and 1.9 compatible
<shevy> hehe
roger_padactor has quit [Quit: roger_padactor]
<shevy> otters can you advice me on encoding in 1.8 pretty please?
<otters> I like the syntax refinements in 1.9 and 2.0 but they are even more depressing because you can't use them
erlingur has quit [Quit: http://erlingur.is]
miskander has quit [Quit: miskander]
<epta> otters: nice, thanks
<otters> shevy: probably not
<otters> I am just an otter
<otters> what's your question
phantasm66 has quit [Quit: *sleeeep….]
LouisRoR has quit []
huoxito has joined #ruby
wallerdev has joined #ruby
<shevy> lol no sorry
<shevy> I wanted to trick an otter here
<shevy> I hate encoding so much that I dont want to know more about it
<shevy> I just want it to go away...
<shevy> one language, one alphabet, one people
EPIK has joined #ruby
<otters> i speak utf-8
<shevy> those otters of today are multilingual indeed
cableray has joined #ruby
<shevy> It's usually like this with Encoding. "I gots problems." -"Do you use UTF-8?" --"No." ---"That is your problem!"
<otters> hello!æø how are you doing ê?è
lancepantz is now known as lancepantz_
<shevy> you just used alien characters
skattyadz has joined #ruby
<otters> ♥
<Hanmac_> otters this are easy chars, what about ụ̈̄ ?
<otters> Hanmac_: yes
postmodern has joined #ruby
otherj has quit []
<Hanmac_> ǖ ű or other funny one
lancepantz_ is now known as lancepantz
<Hanmac_> otters can you see this: 
<otters> yeah it's a box
radq has quit [Remote host closed the connection]
bawigga has quit [Quit: Textual IRC Client: www.textualapp.com]
LouisRoR has joined #ruby
<Hanmac_> my char table shows an ubuntu logo as one char :P
tvw has joined #ruby
<otters> Hanmac_: http://puu.sh/22CVU
<shevy> I cant see anything
<Hanmac_> otters yeah it was part of the <For private Use> sector
larissa has joined #ruby
vierja has quit [Ping timeout: 252 seconds]
benlieb has quit [Quit: benlieb]
radq has joined #ruby
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
chrishough has quit [Quit: chrishough]
vierja has joined #ruby
chrishough has joined #ruby
vierja has quit [Max SendQ exceeded]
vierja has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
Jamone has joined #ruby
__BigO__ has quit [Remote host closed the connection]
Monie has quit [Ping timeout: 256 seconds]
<Hanmac_> shevy did you know that you can unlock an iPhone when you do an kombo that is more difficult than the Konami code? but when you do you get full access, even when it was locked :P
_nitti_ has joined #ruby
chrisnicola has quit [Quit: This computer has gone to sleep]
philcrissman has quit [Remote host closed the connection]
_nitti has quit [Write error: Broken pipe]
vierja has quit [Client Quit]
pkrnj has quit [Quit: Computer has gone to sleep.]
Monie has joined #ruby
ssvo has joined #ruby
nimred has quit [Ping timeout: 244 seconds]
Jamone has quit [Ping timeout: 248 seconds]
txbahai has quit [Quit: Leaving]
alvaro_o has joined #ruby
dustint has quit [Read error: Operation timed out]
ssvo has quit [Client Quit]
mmitchell has quit [Read error: Operation timed out]
ssvo has joined #ruby
forrest has quit [Quit: Leaving]
alanp_ has joined #ruby
alanp_ has quit [Read error: Connection reset by peer]
alanp_ has joined #ruby
alanp has quit [Disconnected by services]
breakingthings has quit []
Monie has quit [Ping timeout: 248 seconds]
ssvo has quit [Client Quit]
alanp_ is now known as alanp
ssvo has joined #ruby
dmiller2 has quit [Ping timeout: 264 seconds]
<shevy> Hanmac_ no idea about smartphones, I hate them like the plague
<shevy> everyone has one, it's like a disease
<shevy> one day I will become a hermit
arya_ has quit [Ping timeout: 248 seconds]
<shevy> somehow the future is designed for us :(
alvaro_o has quit [Client Quit]
punkrawkR^Home has quit [Ping timeout: 276 seconds]
thomasfedb has quit [Ping timeout: 245 seconds]
arya_ has joined #ruby
<Hanmac_> smartphones are only a middle step until the cool stuff appears like neural interfaces :P
Onii-san has quit [Ping timeout: 276 seconds]
maetthew has quit [Ping timeout: 276 seconds]
tjbiddle_ has joined #ruby
arusso has quit [Ping timeout: 245 seconds]
ddv has quit [Ping timeout: 240 seconds]
justsee has joined #ruby
Apocalypse has quit [Ping timeout: 276 seconds]
wudofyr_ has quit [Ping timeout: 276 seconds]
libryder has quit [Ping timeout: 276 seconds]
Bosma has quit [Ping timeout: 264 seconds]
thorncp has quit [Ping timeout: 245 seconds]
jpun has quit [Ping timeout: 240 seconds]
PhilK has quit [Ping timeout: 245 seconds]
maetthew has joined #ruby
jpun has joined #ruby
Rix has quit [Ping timeout: 276 seconds]
_nitti_ has quit [Remote host closed the connection]
khimera has quit [Quit: khimera]
chrisnicola has joined #ruby
joofsh has quit [Remote host closed the connection]
Bosma has joined #ruby
v0n has quit [Ping timeout: 244 seconds]
libryder has joined #ruby
Apocalypse has joined #ruby
arusso has joined #ruby
zastern has quit [Remote host closed the connection]
tjbiddle has quit [Ping timeout: 248 seconds]
tjbiddle_ is now known as tjbiddle
thorncp has joined #ruby
PhilK has joined #ruby
Onii-san has joined #ruby
ddv has joined #ruby
ssvo has quit [Quit: leaving]
sn0wb1rd_ has joined #ruby
dmonjo has quit [Quit: Leaving]
lancepantz has quit [Quit: ZNC - http://znc.in]
willob has quit [Quit: Leaving.]
Rix has joined #ruby
[[johnonymous]] has quit [Quit: Computer has gone to sleep.]
lancepantz has joined #ruby
clooth has quit [Quit: clooth]
thomasfedb has joined #ruby
gabrielrotbart has joined #ruby
nateberkopec has quit [Quit: Leaving...]
peregrine81 has quit [Quit: Computer sleeping.]
nateberkopec has joined #ruby
nateberkopec has quit [Client Quit]
sn0wb1rd has quit [Ping timeout: 248 seconds]
sn0wb1rd_ is now known as sn0wb1rd
bradleyprice has quit [Remote host closed the connection]
zorbyte has quit [Read error: Operation timed out]
maletor has quit [Quit: Computer has gone to sleep.]
interactionjaxsn has quit [Remote host closed the connection]
kristofers has quit []
wudofyr_ has joined #ruby
jeffreybaird has joined #ruby
brianpWins has joined #ruby
<Hanmac_> shevy did you hear that piratebay gets illegal copied from the music industry? :P
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
bricker has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
Xeago has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
chrishunt has quit [Quit: zZzZzZ...]
ryanf has quit [Read error: Connection reset by peer]
ozgura has joined #ruby
stormetrooper has joined #ruby
ryanf has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
mercwith1mouth has quit [Quit: leaving]
AlSquire has joined #ruby
stopbit has quit [Quit: Leaving]
stormetrooper has quit [Client Quit]
banjara has quit [Client Quit]
banjara has joined #ruby
banjara has quit [Client Quit]
havenwood has joined #ruby
banjara has joined #ruby
fteem has joined #ruby
alup_ has quit [Quit: Leaving]
elico has joined #ruby
octoberry has quit [Ping timeout: 248 seconds]
ryanf has quit [Read error: Connection reset by peer]
AlSquirrel has joined #ruby
banjara has quit [Client Quit]
AlSquire has quit [Read error: Connection reset by peer]
banjara has joined #ruby
banjara has quit [Client Quit]
chrisnicola has quit [Quit: This computer has gone to sleep]
banjara has joined #ruby
ryanf has joined #ruby
etcetera has quit []
mephux has quit [Excess Flood]
fredjean has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
elico has quit [Client Quit]
ssvo has joined #ruby
martin_work has joined #ruby
mephux has joined #ruby
dku has joined #ruby
<dku> Hi all, I'm getting a buffer overflow of some sort on 1.9.3p327: https://gist.github.com/dkulchenko/afaf86fa3a7324d47875
ffranz has quit [Quit: Leaving]
waxjar has joined #ruby
pu22l3r has quit [Ping timeout: 244 seconds]
cobragoat has joined #ruby
ssvo has quit [Client Quit]
tjbiddle_ has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
fredzy has quit [Quit: Page closed]
vlad_starkov has quit [Remote host closed the connection]
adman65 has quit [Quit: adman65]
nari has joined #ruby
benlieb has joined #ruby
<shevy> Hanmac_ hehehe
chrisnicola has joined #ruby
radq has quit [Remote host closed the connection]
ssvo has joined #ruby
ssvo has quit [Client Quit]
tensil has joined #ruby
dipperdan has joined #ruby
ssvo has joined #ruby
dipperdan has left #ruby [#ruby]
<Hanmac_> shevy do look at this page: http://piraattilahti.fi/ ... imo this page is more illegal than piratebay itself :D
tjbiddle has quit [Ping timeout: 264 seconds]
tjbiddle_ is now known as tjbiddle
love_color_text has joined #ruby
frem has quit [Quit: Computer has gone to sleep.]
hmarr has quit [Read error: Operation timed out]
<Hanmac_> imo this page looks more like a phishing page :P
Konboi_ has quit [Remote host closed the connection]
moos3 has quit [Quit: Computer has gone to sleep.]
ssvo has quit [Client Quit]
chrisnicola has quit [Client Quit]
ssvo has joined #ruby
ssvo has quit [Client Quit]
stormetrooper has joined #ruby
banjara1 has joined #ruby
ndboost has quit [Remote host closed the connection]
blaxter has quit [Quit: foo]
pyx has joined #ruby
havenwood has quit [Remote host closed the connection]
banjara has quit [Ping timeout: 240 seconds]
ssvo has joined #ruby
pyx has quit [Client Quit]
miskander has joined #ruby
maletor has joined #ruby
ssvo has quit [Client Quit]
ssvo has joined #ruby
jkeith has joined #ruby
<jkeith> before I file a bug, I want to make sure my understanding is correct
<jkeith> Dir.mkdir(path, 1777) *should* open all permissions and apply the sticky bit
<Hanmac_> jkeith what did you do?
<jkeith> ruby 1.9.3
ngoldman has quit [Remote host closed the connection]
ssvo has quit [Client Quit]
<jkeith> 1.9.3p194 to be exact
monkegjinni has quit [Remote host closed the connection]
<Hanmac_> what happends if you try: Dir.mkdir(path, 01777) ?
<jkeith> Hanmac, let me try
_br_ has quit [Excess Flood]
<jkeith> Hanmac, drwxr-xr-t 2 jkeith jkeith 4.0K Feb 14 17:47 sources
chussenot has joined #ruby
<jkeith> that's the resulting directory
chussenot has quit [Client Quit]
miskander has quit [Quit: miskander]
ephemerian has quit [Quit: Leaving.]
m8 has quit [Quit: Sto andando via]
carloslopes has quit [Remote host closed the connection]
miskander has joined #ruby
<Hanmac_> i think it is not currrect yet ?
monkegjinni has joined #ruby
Hien has quit [Ping timeout: 264 seconds]
squidBits has quit [Quit: squidBits]
ssvo has joined #ruby
asdfqwer has quit [Ping timeout: 252 seconds]
jlast has joined #ruby
ssvo has quit [Client Quit]
<jkeith> Hanmac, mkdir test --mode 1777 && ls -lh; yields drwxrwxrwt 2 jkeith jkeith 4.0K Feb 14 17:49 test
<jkeith> ruby is not picking up group and world bits on the mask
chrisnicola has joined #ruby
mengu has joined #ruby
_br_ has joined #ruby
forced_request has joined #ruby
steven___ has joined #ruby
_br_ has quit [Excess Flood]
benlieb has quit [Quit: benlieb]
maxmanders has quit [Quit: Computer has gone to sleep.]
<steven___> i have an array and i want to iterate over the first K elements of it, or over the entire thing if there are less than K elements, how should i do this?
Chiku|dc has joined #ruby
ner0x has quit [Quit: Leaving]
<Hanmac_> i tryed it in /tmp where ruby was picking the write-group
ssvo has joined #ruby
chrisnicola has quit [Client Quit]
<jkeith> Hanmac, what version are you using?
idkazuma has quit [Remote host closed the connection]
hmarr has joined #ruby
<Hanmac_> 2.0
SCommette has quit [Quit: SCommette]
<jkeith> well, at least I know it's already been fixed
<Hanmac_> jkeith hm try FileUtils.mkdir("abc", :mode=>01777) ... it does set all flags i want
<jkeith> Hanmac, what about Dir.mkdir?
<Hanmac_> it seems that FileUtils is better
nanothief has joined #ruby
_br_ has joined #ruby
Morkel has quit [Quit: Morkel]
<jkeith> Hanmac, I'll modify and see if that works. Is Dir.mkdir still broken in 2.0?
<jkeith> I don't want to send a useless bug report in :D
elico has joined #ruby
sandGorgon has quit [Ping timeout: 248 seconds]
<Hanmac_> i dont know if "broken" is the right word, but it does still not set the all-write right currectly ... (so it is not an 777)
elico has quit [Client Quit]
<Hanmac_> you could try to make a ticket and look what happends
chrishunt has joined #ruby
<jkeith> Hanmac, will do, thanks!
<jkeith> FileUtils is not working correctly for me either, so I'm going to grab the latest and compile it from source
<Chiku|dc> when do you think 2.0 stable will be release ?
bean has joined #ruby
julian-delphiki has joined #ruby
chrisnicola has joined #ruby