apeiros changed the topic of #ruby to: Ruby 2.0.0-p353: http://ruby-lang.org (Ruby 1.9.3-p484) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
petey has joined #ruby
Davey has joined #ruby
moneydouble has quit [Quit: Leaving.]
jhamm has joined #ruby
AlSquirikou has quit [Quit: This computer has gone to sleep]
heidi has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
mikestok has joined #ruby
petey has quit [Read error: Connection reset by peer]
petey has joined #ruby
Cazic has quit [Changing host]
Cazic has joined #ruby
kofno has quit [Ping timeout: 252 seconds]
Reach has quit [Ping timeout: 260 seconds]
jhamm has quit [Client Quit]
zomgbie has quit [Ping timeout: 265 seconds]
havenwood has quit []
someish has joined #ruby
noyb has joined #ruby
ItSANgo has quit [Quit: Leaving...]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s_e has quit [Read error: Operation timed out]
madb055 has quit [Ping timeout: 240 seconds]
nomadic has quit [Ping timeout: 245 seconds]
heidi has quit [Ping timeout: 272 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zz_michael_mbp is now known as michael_mbp
Deciphered is now known as DecipheredAFK
Monie has joined #ruby
GoodTimes has quit []
GoodTimes has joined #ruby
nomadic has joined #ruby
s_e has joined #ruby
someish has quit [Quit: someish]
dagnachew has joined #ruby
michael_mbp is now known as zz_michael_mbp
wald0 has quit [Ping timeout: 246 seconds]
timonv has joined #ruby
madb055 has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
greenrose has quit [Remote host closed the connection]
adkron has joined #ruby
testslave has quit [Read error: Operation timed out]
ItSANgo has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
wildroman2 has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 272 seconds]
greenrose has joined #ruby
Monie has joined #ruby
iliketurtles has joined #ruby
vinay_ has quit [Quit: Leaving]
pskosinski has joined #ruby
tessi has quit [Ping timeout: 252 seconds]
kalleth has quit [Ping timeout: 252 seconds]
kalleth_ has joined #ruby
fivethre1o has quit [Ping timeout: 245 seconds]
tessi has joined #ruby
zombiebit has quit [Remote host closed the connection]
zz_CripperZ is now known as CripperZ
zombiebit has joined #ruby
CripperZ is now known as N00D
fedesilva has joined #ruby
vlad_starkov has joined #ruby
someish has joined #ruby
jhamm has joined #ruby
Mapley has quit [Ping timeout: 252 seconds]
dagnachew has quit [Quit: Leaving]
phrozen77 has quit [Ping timeout: 252 seconds]
zombiebit has quit [Ping timeout: 246 seconds]
phrozen77 has joined #ruby
Mapley has joined #ruby
RubyRonin has joined #ruby
BombStrike has quit [Ping timeout: 264 seconds]
jkhwan has joined #ruby
predator117 has joined #ruby
capicue has quit [Quit: Leaving...]
justsee has quit [Ping timeout: 246 seconds]
timonv has joined #ruby
Mapley has quit [Excess Flood]
<RubyRonin> good evening/good morning
<RubyRonin> a little assistance please
testslave has joined #ruby
capicue has joined #ruby
<RubyRonin> I don't understand the splat operator as described in ruby monk
estebistec has joined #ruby
<RubyRonin> def add(*numbers)
<RubyRonin> numbers.inject(0) { |sum, number| sum + number }
<RubyRonin> end
<RubyRonin> puts add(1)
<RubyRonin> puts add(1, 2)
<RubyRonin> puts add(1, 2, 3)
<RubyRonin> puts add(1, 2, 3, 4)
<bnagy> stop it
hogeo has joined #ruby
predator217 has quit [Ping timeout: 272 seconds]
<RubyRonin> can someone please expalin
<bnagy> so splat is just a way of turning a list of stuff into an array
<Radar> RubyRonin: 1) don't spam. It's rude 2) https://gist.github.com
<RubyRonin> aahh ok
<bnagy> so for things like argument lists, especially
Mapley has joined #ruby
<bnagy> but also like this
<bnagy> >> a, *b = 1,2,3,4; b
<eval-in> bnagy => [2, 3, 4] (https://eval.in/74257)
timonv has quit [Ping timeout: 246 seconds]
<RubyRonin> I still don't understand
BombStrike has joined #ruby
bubu\a_ has quit [Remote host closed the connection]
petey has quit [Remote host closed the connection]
<RubyRonin> maybe it's the inject thats throwing me off
<bnagy> yes we saw it before
<RubyRonin> I don't understand y the results are what they are
petey has joined #ruby
<bnagy> forget the inject, that's a different story
<RubyRonin> and how the sum variable is used
<bnagy> that's all mixed up with inject
<galef0rce> bnagy you mine?
<bnagy> what splat does is taking add(1,2,3,4) and turning those four args into one splatted array [1,2,3,4]
<galef0rce> wrong chat
<bnagy> which is what inject is operating on
<RubyRonin> ok
<RubyRonin> I get it now
sailias has quit [Ping timeout: 240 seconds]
sayan has joined #ruby
<RubyRonin> the inject part is what through me off
<RubyRonin> thanks all
<RubyRonin> and I'll remember to use gitub in the future
<RubyRonin> my apologies
iliketurtles has quit [Quit: zzzzz…..]
mojjojo has joined #ruby
pel_daniel has left #ruby [#ruby]
petey has quit [Ping timeout: 265 seconds]
gstamp has quit [Ping timeout: 256 seconds]
kofno has joined #ruby
justsee has joined #ruby
deever_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
DecipheredAFK is now known as Deciphered
nhhagen has quit [Remote host closed the connection]
N00D is now known as CripperZ
nhhagen has joined #ruby
Soda has quit [Read error: Connection reset by peer]
deever has quit [Read error: Connection reset by peer]
gstamp has joined #ruby
funburn has joined #ruby
nhhagen__ has joined #ruby
robustus has quit [Ping timeout: 245 seconds]
nari has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
robustus has joined #ruby
gstamp has quit [Ping timeout: 256 seconds]
sergicles has joined #ruby
zomgbie has joined #ruby
mojjojo has quit [Quit: mojjojo]
nhhagen__ has quit [Ping timeout: 252 seconds]
jamesaanderson has joined #ruby
jamesaanderson has quit [Client Quit]
tedstriker has joined #ruby
stevenhaddox has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
gstamp has joined #ruby
Deciphered is now known as DecipheredAFK
euclides has quit [Remote host closed the connection]
heidi has joined #ruby
someish has quit [Quit: someish]
euclides has joined #ruby
zomgbie has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
Davey has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
zombiebit has joined #ruby
mojjojo has joined #ruby
Cazic has quit [Quit: Leaving]
gstamp has quit [Ping timeout: 256 seconds]
blackmes1 has quit [Ping timeout: 240 seconds]
heidi has quit [Ping timeout: 246 seconds]
amacgregor has joined #ruby
iliketurtles has joined #ruby
euclides has quit [Ping timeout: 272 seconds]
amacgregor__ has joined #ruby
amacgregor_ has quit [Ping timeout: 246 seconds]
gstamp has joined #ruby
zombiebit has quit [Ping timeout: 252 seconds]
noyb has quit [Ping timeout: 264 seconds]
Davey has joined #ruby
myappleguy has joined #ruby
amacgregor has quit [Ping timeout: 246 seconds]
mojjojo has quit [Quit: mojjojo]
subbyyy has joined #ruby
jhamm has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
estebistec has quit [Remote host closed the connection]
gstamp has quit [Ping timeout: 256 seconds]
jhamm has joined #ruby
threesome has quit [Ping timeout: 248 seconds]
fschuindt has quit [Quit: Computer has gone to sleep.]
jamesaanderson has joined #ruby
kure_ has joined #ruby
yfeldblum has joined #ruby
kofno has quit [Ping timeout: 246 seconds]
realDAB has joined #ruby
Snaury1 has joined #ruby
funburn has quit [Quit: funburn]
nhhagen has joined #ruby
smathieu has quit [Remote host closed the connection]
pleal has joined #ruby
kure__ has quit [Ping timeout: 264 seconds]
smathieu has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nari has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 260 seconds]
euclides has joined #ruby
Snaury has quit [Ping timeout: 272 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
smathieu_ has joined #ruby
smathieu has quit [Read error: Connection reset by peer]
madb055 has quit [Ping timeout: 265 seconds]
myappleguy has quit [Ping timeout: 272 seconds]
kofno has joined #ruby
zz_tsykoduk is now known as tsykoduk
nhhagen has quit [Ping timeout: 252 seconds]
realDAB has quit [Quit: realDAB]
wildroman2 has joined #ruby
sevenseacat has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
smathieu_ has quit [Remote host closed the connection]
smathieu has joined #ruby
culturelabs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fridim__ has joined #ruby
wildroman2 has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
moneydouble has joined #ruby
smathieu has quit [Ping timeout: 252 seconds]
madb055 has joined #ruby
gstamp has joined #ruby
tenjack has joined #ruby
lyanchih has joined #ruby
Jetchisel has joined #ruby
pwh has joined #ruby
pleal has quit [Remote host closed the connection]
ravster has left #ruby [#ruby]
capicue has quit [Quit: Leaving...]
culturelabs has joined #ruby
CripperZ is now known as N00D
gstamp has quit [Ping timeout: 256 seconds]
tenjack has quit [Ping timeout: 265 seconds]
Guest42302 has joined #ruby
<Guest42302> ruby is shit
Guest42302 has left #ruby ["Leaving"]
thejoecarroll has quit [Quit: ZNC - http://znc.in]
araujo has quit [Ping timeout: 248 seconds]
DecipheredAFK is now known as Deciphered
Reach has joined #ruby
tsykoduk is now known as zz_tsykoduk
hamakn has joined #ruby
sparrovv has quit [Quit: sparrovv]
<pontiki> well, i'm slain
<pontiki> guess i can't use ruby anymore
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
zomgbie has joined #ruby
_HolyCow has joined #ruby
smathieu has joined #ruby
ambushsabre has joined #ruby
araujo has joined #ruby
iliketurtles has joined #ruby
thejoecarroll has joined #ruby
nari has joined #ruby
<RubyRonin> ?
pen has quit [Remote host closed the connection]
* jrobeson waves to pontiki
pen has joined #ruby
<pontiki> hihi jrobeson
michael_lee has joined #ruby
araujo has quit [Read error: Connection reset by peer]
<pontiki> RubyRonin: we all been told
<pontiki> ruby is shit
<RubyRonin> and who told you this?
dr0ff has joined #ruby
araujo has joined #ruby
<RubyRonin> ruby is "the shit"! :-D
<JBlazeCo_> so how do you check what current version of ruby you have installed
<jrobeson> Guest42302
<RubyRonin> lol
wallerdev has joined #ruby
<JBlazeCo_> within terminal
<jrobeson> JBlazeCo_, ruby --version will tell you which ruby you're using
<RubyRonin> ruby -v
<JBlazeCo_> ok
<JBlazeCo_> thanks
<jrobeson> installed... depends on what you're using to manage ruby versions
zomgbie has quit [Ping timeout: 272 seconds]
<pontiki> and ruby -h will tell you the command line switches and parameters
<pontiki> which ruby will tell you where the executable lives
<jrobeson> pontiki, what have you been doing today?
iliketurtles has quit [Quit: zzzzz…..]
Deciphered is now known as DecipheredAFK
zz_michael_mbp is now known as michael_mbp
<pontiki> [:cleaning, :cooking] * 10
<jrobeson> i stayed home.. didn't wanna go to the big family thing hosted at my racist uncles house
ewnd9 has joined #ruby
<pontiki> everything tasted wonderful
<jrobeson> i'm not able to keep my mouth shut very well
Lewix has quit [Remote host closed the connection]
<pontiki> hehe
smathieu has quit []
<pontiki> well you shouldn't!
<jrobeson> pontiki, what did you make?
pencilcheck has joined #ruby
<jrobeson> i just ate hamburgers ..
<pontiki> apricot-glazed turkey, cornbread/sagebread dressing, roasted brussels sprouts with shallots and bacon, steamed rutabaga, cranberry sauce, onion gravy
<jrobeson> well thing is.. usually topics just don't come up .. so it's never been a problem.. but ever since the last two presidental elections.. he's gone way overboard ..
<JBlazeCo_> what is the latest version of Ruby?
<jrobeson> wow
<jrobeson> latest stable.. it's on ruby-lang.org
<pontiki> 2.0.0 but i can't remember the build number off hand
<jrobeson> you should always look there JBlazeCo_
<pontiki> yes, i cooked all that
<jrobeson> 353 now pontiki iirc
<JBlazeCo_> I have version 2.0.0p247
<jrobeson> there's a slightly newer one with various fixes.. take a llook
N00D is now known as CripperZ
<pontiki> i'm running 247
<jrobeson> pontiki, i wanna eat that stuffing!
<JBlazeCo_> yea
<pontiki> it's nommy
<JBlazeCo_> I know
<jrobeson> i'll have to think about the apricot turkey tho
<emocakes> im still on 247
zombiebit has joined #ruby
<JBlazeCo_> for some reason I could not instal last time
<pontiki> with onions, celery, raisins, turkey broth
<emocakes> for development
<JBlazeCo_> I think there was a patch
<JBlazeCo_> ?
gstamp has joined #ruby
iliketurtles has joined #ruby
<jrobeson> JBlazeCo_, is this on fedora or rhel?
iliketurtles has quit [Max SendQ exceeded]
pen has quit [Ping timeout: 252 seconds]
<pontiki> the hardest part of cooking turkey is the basting, which i can't do bent over, and it's hard to lift it out of the oben
michael_lee has quit [Remote host closed the connection]
<JBlazeCo_> @jrobeson not sure
michael_mbp is now known as zz_michael_mbp
<pontiki> i mean, seriously, roasting a turkey is p.easy
iliketurtles has joined #ruby
<jrobeson> you don't bend?
<JBlazeCo_> I did run rub -h like @pontiki suggested
<pontiki> bad back
pencilcheck has quit [Client Quit]
gstamp has quit [Read error: Connection reset by peer]
<jrobeson> guess you need a little stool to sit on
pen has joined #ruby
<pontiki> JBlazeCo_: 247 should be fine for most things
<jrobeson> sit down and paste :)
estebistec has joined #ruby
<jrobeson> baste*
<jrobeson> perhaps you need one of those ovens higher up
CripperZ is now known as N00D
Lewix has joined #ruby
<pontiki> this looks like the lastest official release: https://github.com/ruby/ruby/releases/tag/v2_0_0_353
<JBlazeCo_> so what is ruby -h supposed to tell me @pontiki
<jrobeson> you made quite the meal there tho pontiki .. whoo :)
heidi has joined #ruby
<pontiki> it's the ruby command help text, JBlazeCo_
<jrobeson> JBlazeCo_, how you could know how to find out the version of ruby without us telling you
N00D is now known as CripperZ
zombiebit has quit [Ping timeout: 260 seconds]
axilla has quit [Quit: Lost terminal]
<JBlazeCo_> well I did it before
pwh has quit []
mikestok has quit [Quit: Computer has gone to sleep.]
<JBlazeCo_> the ruby command help that @pontiki suggested
sayan has quit [Ping timeout: 272 seconds]
randomnick_ has quit [Quit: Leaving]
<JBlazeCo_> I was not sure about the command, and wanted to make sure it was correct
Hanmac1 has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
jhamm has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gstamp has joined #ruby
<JBlazeCo_> So can anyone tell me if there is a major difference
<JBlazeCo_> between what I have and the latest version?
heidi has quit [Ping timeout: 252 seconds]
Hanmac has quit [Ping timeout: 246 seconds]
mercwithamouth has quit [Ping timeout: 252 seconds]
gstamp has quit [Read error: Connection reset by peer]
giardina has quit [Remote host closed the connection]
<jrobeson> JBlazeCo_, it says the changelong right on ruby-lang.org
<JBlazeCo_> thanks for the link @pontiki is there a reason you have not downloaded the latest version?
<pontiki> i just started installing it
<pontiki> so, i suppose sheer cussed laziness?
RubyRonin has quit [Ping timeout: 240 seconds]
<JBlazeCo_> lol
capicue has joined #ruby
zz_tsykoduk is now known as tsykoduk
vayner has joined #ruby
<JBlazeCo_> speaking of, any thoughts on the site redesign on ruby-lang.org
<JBlazeCo_> that @jrobeson looking there right now
danshultz has joined #ruby
julweber has quit [Remote host closed the connection]
gstamp has joined #ruby
<JBlazeCo_> hey @jrobeson the changelong is just on the main page
<jrobeson> ok?
<jrobeson> this isn't twitter, no need for @
maroloccio has joined #ruby
spike|spiegel has joined #ruby
<JBlazeCo_> lol
<JBlazeCo_> ok my man
<ddd> hehe i had my client set like that for awhile too
jhamm has joined #ruby
fedesilva has quit [Remote host closed the connection]
gstamp has quit [Ping timeout: 256 seconds]
capicue has quit [Ping timeout: 240 seconds]
michael_lee has joined #ruby
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
myappleguy has joined #ruby
jhamm has quit [Client Quit]
Aryasam has joined #ruby
nhhagen has joined #ruby
DecipheredAFK has quit [Ping timeout: 252 seconds]
forced_request has joined #ruby
timonv has joined #ruby
gstamp has joined #ruby
dhruvasagar has joined #ruby
timonv has quit [Read error: Operation timed out]
nhhagen has quit [Ping timeout: 252 seconds]
tedstriker has quit [Quit: Anti-Fraping status set.]
gstamp has quit [Ping timeout: 256 seconds]
michael_lee has quit [Quit: Ex-Chat]
michael_lee has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
akhet has joined #ruby
vlad_starkov has joined #ruby
psyl0n has quit [Remote host closed the connection]
endash has quit [Read error: No route to host]
browndawg has joined #ruby
amacgregor has joined #ruby
endash has joined #ruby
madb055 has quit [Read error: Connection reset by peer]
petey has joined #ruby
ewnd9 has quit [Remote host closed the connection]
timonv has joined #ruby
julweber has joined #ruby
amacgregor__ has quit [Ping timeout: 246 seconds]
capicue has joined #ruby
madb055 has joined #ruby
<emocakes> hey @JBlazeCo_
<emocakes> #tgif what are you doing @JBlazeCo_
gstamp has joined #ruby
petey has quit [Ping timeout: 246 seconds]
<JBlazeCo_> lol
<JBlazeCo_> funny
timonv has quit [Ping timeout: 248 seconds]
jonathanwallace has joined #ruby
<JBlazeCo_> I want to try to upgrade my version of Ruby
zomgbie has joined #ruby
CripperZ is now known as N00D
<ambushsabre> use rvm
myappleguy has quit [Ping timeout: 252 seconds]
<JBlazeCo_> does it matter if I do this in the terminal or download through Ruby-lang
<ambushsabre> you should do it through the terminal through rvm
<sevenseacat> how did you install it originally?
pskosinski has quit [Quit: Til rivido Idisti!]
<JBlazeCo_> already installed I beleive
nisstyre has joined #ruby
moneydouble1 has joined #ruby
<JBlazeCo_> using a Mac
<JBlazeCo_> yet did get some help
hiyosi has joined #ruby
<pontiki> JBlazeCo_: running mavericks?
<JBlazeCo_> and upgraded in the terminal
<JBlazeCo_> for the current version I have now. I had 1.9 something b4
hogeo has quit [Remote host closed the connection]
gstamp has quit [Ping timeout: 256 seconds]
julweber has quit [Ping timeout: 246 seconds]
<ambushsabre> do you have homebrew installed?
zombiebit has joined #ruby
moneydouble has quit [Ping timeout: 272 seconds]
gstamp has joined #ruby
hogeo has joined #ruby
<JBlazeCo_> maybe
<ambushsabre> type brew doctor and see what happens
<JBlazeCo_> whats the command to find out homebrew -v
<ambushsabre> just do brew
zomgbie has quit [Ping timeout: 245 seconds]
<ambushsabre> 'brew'
<JBlazeCo_> I typed brew doctor
amacgregor_ has joined #ruby
<JBlazeCo_> I got a few warning messages
<ambushsabre> ok, but that means it's installed
<ambushsabre> fix those warning messages first off, that will make things easier down the road, ruby or not
<JBlazeCo_> ok
<JBlazeCo_> someone helped me with that too
amacgregor has quit [Ping timeout: 246 seconds]
<JBlazeCo_> first one says broken symlinks
zombiebit has quit [Ping timeout: 252 seconds]
<JBlazeCo_> 2nd msg /usr/bin occurs before /usr/local/bin
<JBlazeCo_> 3rd msg Your Homebrew is outdated
moneydouble has joined #ruby
mercwithamouth has joined #ruby
<JBlazeCo_> it says to run 'brew update'
eka has quit [Quit: Computer has gone to sleep.]
asteros has quit [Quit: asteros]
moneydouble1 has quit [Ping timeout: 272 seconds]
_maes_ has joined #ruby
dhruvasa1ar has joined #ruby
caesura has quit [Quit: i'm no simpleton]
heidi has joined #ruby
Aryasam has quit [Ping timeout: 240 seconds]
<JBlazeCo_> just have one warning now
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Ping timeout: 272 seconds]
gstamp has quit [Ping timeout: 256 seconds]
Hanmac has joined #ruby
<JBlazeCo_> it looks like brew is using a different path
gstamp has joined #ruby
dypsilon has joined #ruby
<dypsilon> Hi, I'm new to the ruby stack and just trying to install Jekyll but getting this error: "(NoMethodError) undefined method `name' for #<RDoc::RubyToken::TkLPAREN:0x000000078f7eb8>"
soba has joined #ruby
estebistec has quit [Remote host closed the connection]
<dypsilon> I've installed ruby 1.9.3 with rvm so far and nothing else.
Hanmac1 has quit [Ping timeout: 272 seconds]
madb055 has quit [Read error: Connection reset by peer]
Aryasam has joined #ruby
tharindu has joined #ruby
<Lewix> what's Class.new - end.new; I came accross end.new today
<sevenseacat> just tacks new onto the return value of the block
<Lewix> ahh
<Lewix> stupid I
heidi has quit [Ping timeout: 246 seconds]
polaco is now known as polaco_zZz
matheuscaceres has quit [Quit: matheuscaceres]
Guest80789 has quit [Quit: Leaving]
<dypsilon> Could you at least point me to some direction? Can't find anything usefull through Google. I just want to install a standard gem in a standard environment.
madb055 has joined #ruby
radic has joined #ruby
subbyyy has quit [Ping timeout: 246 seconds]
<dypsilon> Ok, it worked after running " rvm docs generate-ri", nevermind.
closures999 has joined #ruby
closures999 has quit [Remote host closed the connection]
radic_ has quit [Ping timeout: 246 seconds]
DecipheredAFK has joined #ruby
kobain has quit []
funburn has joined #ruby
dypsilon has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
_maes_ has quit [Ping timeout: 245 seconds]
nhhagen has joined #ruby
dhruvasa1ar has quit [Ping timeout: 245 seconds]
JBlazeCo_ has quit [Remote host closed the connection]
tharindu has quit [Ping timeout: 240 seconds]
Aryasam has quit [Ping timeout: 252 seconds]
kevinykchan has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
fedesilva has joined #ruby
hogeo has quit [Remote host closed the connection]
euclides has quit [Remote host closed the connection]
euclides has joined #ruby
myappleguy has joined #ruby
vlad_starkov has joined #ruby
danshultz has quit [Remote host closed the connection]
fedesilva has quit [Ping timeout: 272 seconds]
tsykoduk is now known as zz_tsykoduk
danshultz has joined #ruby
varfoo has joined #ruby
euclides has quit [Ping timeout: 264 seconds]
funburn has quit [Quit: funburn]
<Lewix> anyone know about nil_or?
Arzaga has joined #ruby
cascalheira has quit [Quit: Leaving...]
<Lewix> nil_or vs :try
<banister> they're all just poor man's Maybe monad
danshultz has quit [Ping timeout: 264 seconds]
<Lewix> banister: I see
kofno has quit [Ping timeout: 246 seconds]
jamesaanderson has joined #ruby
kure_ has quit [Ping timeout: 246 seconds]
ewnd9 has joined #ruby
zz_michael_mbp is now known as michael_mbp
sheap has joined #ruby
jamesaanderson has quit [Ping timeout: 245 seconds]
s2013 has joined #ruby
zombiebit has joined #ruby
Aryasam has joined #ruby
michael_mbp is now known as zz_michael_mbp
zomgbie has joined #ruby
zombiebit has quit [Ping timeout: 264 seconds]
ewnd9 has quit [Ping timeout: 245 seconds]
iliketurtles has quit [Quit: zzzzz…..]
cads has quit [Ping timeout: 252 seconds]
jhamm has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zomgbie has quit [Ping timeout: 248 seconds]
jhamm has quit [Client Quit]
timonv has joined #ruby
mercwithamouth has quit [Ping timeout: 265 seconds]
iliketurtles has joined #ruby
akhet is now known as bender183
bender183 has quit [Changing host]
bender183 has joined #ruby
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
timonv has quit [Ping timeout: 260 seconds]
hogeo has joined #ruby
lyanchih has quit [Quit: lyanchih]
bender183 is now known as akhet
dhruvasagar has joined #ruby
akhet has quit [Changing host]
akhet has joined #ruby
dhruvasagar has quit [Client Quit]
mercwithamouth has joined #ruby
Snaury1 has quit [Read error: Connection reset by peer]
hogeo has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
sayan has joined #ruby
ananthakumaran has joined #ruby
Snaury has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
kitak has quit [Remote host closed the connection]
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
vlad_starkov has quit [Read error: Connection reset by peer]
timonv has joined #ruby
ananthakumaran has joined #ruby
braincra- has quit [Quit: bye bye]
galef0rce has quit []
mikestok has joined #ruby
heidi has joined #ruby
kizzx2 has joined #ruby
braincrash has joined #ruby
jonathanwallace has quit [Ping timeout: 246 seconds]
hogeo has joined #ruby
timonv has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby
heidi has quit [Ping timeout: 265 seconds]
dhruvasagar has quit [Ping timeout: 252 seconds]
sayan has quit [Read error: Operation timed out]
osvico has quit [Ping timeout: 272 seconds]
timonv has joined #ruby
sayan has joined #ruby
GoodTimes has quit [Ping timeout: 246 seconds]
Skylab has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
Reach has quit [Remote host closed the connection]
ewnd9 has joined #ruby
funburn has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
funburn has quit [Client Quit]
fschuindt has joined #ruby
JohnBat26 has joined #ruby
akhet has quit [Quit: leaving]
dekz has joined #ruby
OdNairy has joined #ruby
nhhagen has joined #ruby
Jetchisel has quit [Ping timeout: 260 seconds]
RubyRonin has joined #ruby
funburn has joined #ruby
wpaulson has joined #ruby
DecipheredAFK is now known as Deciphered
mikestok has quit [Quit: Computer has gone to sleep.]
dwgill has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
browndawg has quit [Quit: Leaving.]
ananthakumaran has quit [Quit: Leaving.]
marcgg has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
wpaulson has quit [Read error: Connection reset by peer]
marcgg has joined #ruby
dr0ff has quit []
fridim__ has quit [Ping timeout: 260 seconds]
ananthakumaran has joined #ruby
Jetchisel has joined #ruby
Deciphered is now known as DecipheredAFK
kofno has joined #ruby
zombiebit has joined #ruby
myappleguy has quit [Ping timeout: 272 seconds]
dwgill has quit [Quit: Leaving]
ewnd9 has quit [Remote host closed the connection]
kofno has quit [Ping timeout: 245 seconds]
ewnd9 has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
varfoo has quit [Quit: WeeChat 0.4.0]
varfoo has joined #ruby
petey has joined #ruby
zombiebit has quit [Ping timeout: 252 seconds]
euclides has joined #ruby
euclides has quit [Remote host closed the connection]
kofno has joined #ruby
timonv has joined #ruby
endash has quit [Quit: endash]
petey has quit [Ping timeout: 272 seconds]
justsee has quit [Ping timeout: 248 seconds]
zomgbie has joined #ruby
kofno has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 240 seconds]
jonahR has joined #ruby
justsee has joined #ruby
iliketurtles has joined #ruby
zomgbie has quit [Ping timeout: 246 seconds]
pen has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
iliketurtles has quit [Client Quit]
vlad_starkov has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Quit: Leaving.]
lyanchih has joined #ruby
rainbyte has quit [Quit: Leaving]
kitak has joined #ruby
timonv has joined #ruby
rainbyte has joined #ruby
noyb has joined #ruby
jkhwan has quit [Remote host closed the connection]
osvico has joined #ruby
browndawg has joined #ruby
jkhwan has joined #ruby
heidi has joined #ruby
capicue has quit [Read error: Connection reset by peer]
Paradox has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
madb055 has quit [Read error: Connection reset by peer]
timonv has quit [Ping timeout: 264 seconds]
rainbyte has left #ruby ["Leaving"]
nhhagen has joined #ruby
yacks has quit [Quit: Leaving]
Monie has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
heidi has quit [Ping timeout: 252 seconds]
tjad has joined #ruby
iliketurtles has joined #ruby
nhhagen_ has quit [Read error: Operation timed out]
madb055 has joined #ruby
ewnd9 has quit [Ping timeout: 260 seconds]
ewnd9 has joined #ruby
iliketurtles has quit [Client Quit]
funburn has quit [Ping timeout: 265 seconds]
blaskovicz has joined #ruby
gverri_ has joined #ruby
sheap has quit [Quit: Lost terminal]
petey has joined #ruby
Paradox has joined #ruby
meddle has joined #ruby
meddle is now known as akhet
akhet has quit [Changing host]
akhet has joined #ruby
osvico has quit [Ping timeout: 252 seconds]
jeffdb has joined #ruby
blaskovicz has quit [Quit: Leaving.]
DecipheredAFK is now known as Deciphered
rjhunter has joined #ruby
bigmac has joined #ruby
jeffdb has quit [Ping timeout: 252 seconds]
nhhagen_ has joined #ruby
bigmac is now known as i8igmac
havenwood has joined #ruby
ewnd9 has quit [Read error: Connection reset by peer]
fixl has joined #ruby
rje4242 has joined #ruby
<RubyRonin> good morning/evening...the .call method? and lamba's...just a little confusing
scottstamp is now known as zz_scottstamp
nhhagen_ has quit [Ping timeout: 252 seconds]
<RubyRonin> can anyone explain the .call method
cantonic has quit [Quit: cantonic]
Deciphered is now known as DecipheredAFK
zz_michael_mbp is now known as michael_mbp
jeffdb has joined #ruby
s2013 has quit [Ping timeout: 240 seconds]
<rjhunter> RubyRonin: when you tell a lambda to 'call', that actually executes the code inside the lambda
Lewix has joined #ruby
<RubyRonin> thanks rjhunter
<RubyRonin> these tutorials are great, but sometimes assume certain understandings
justsee has quit [Ping timeout: 265 seconds]
<havenwood> RubyRonin: Like for example `example = puts 'hi'` the first time will print 'hi' but after than you type `example` and `nil` is returned (since #puts returns nil), but `example = ->{ puts 'hi' }` will print 'hi' every time you call `example.call` because the block is actually executed not just the return value returned.
asteros has joined #ruby
mothball has quit [Ping timeout: 272 seconds]
zombiebit has joined #ruby
moneydouble1 has joined #ruby
sheap has joined #ruby
OdNairy has joined #ruby
<havenwood> >> example = ->{ puts 'hi' }; example.call
<eval-in> havenwood => hi ... (https://eval.in/74277)
<RubyRonin> @havenwood ...newsflash to me. So your saying after I call the variable, the value stored in the vaiable is gone?
<havenwood> example = puts 'hi'; example
<havenwood> >> example = puts 'hi'; example
<eval-in> havenwood => hi ... (https://eval.in/74278)
hogeo has joined #ruby
<havenwood> RubyRonin: No, just the block isn't re-run, its return value is saved in the variable.
michael_mbp is now known as zz_michael_mbp
justsee has joined #ruby
<havenwood> RubyRonin: So like every time you call the #call method on a lambda or proc, the code is run. A variable saves the result of the code that is run, doesn't actually run the code again,
<RubyRonin> smh...so the second time I type example I'm going to get nil...because the result is now saved? but the result should be the string that was run
moneydouble has quit [Ping timeout: 264 seconds]
<havenwood> RubyRonin: I prolly chose a bad example, because the return value of #puts isn't intuitive.
<havenwood> RubyRonin: #puts always returns `nil`
ewnd9 has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
zombiebit has quit [Ping timeout: 241 seconds]
<RubyRonin> hmm...using the xample I posted, if I place puts d several times I'll get the string inside the variable d. However if I just type the variable name d, I get nothing after the first invocation
<RubyRonin> is that what you mean?
asteros has quit [Quit: asteros]
<havenwood> RubyRonin: yeah, when you run code and assign its value to a variable that is the only time that code will be run, even if you call the variable over and over
<RubyRonin> now lamba's make since
ewnd9 has quit [Max SendQ exceeded]
<RubyRonin> y only one and done?
<havenwood> RubyRonin: A proc or lamba called runs the whole block of code, not just fetching the result of the first run where the variable was assigned.
ewnd9 has joined #ruby
<havenwood> RubyRonin: Often you want to run a thing once and point to the return value. It is quite useful.
justsee has quit [Ping timeout: 265 seconds]
amacgregor has joined #ruby
<havenwood> RubyRonin: A proc and lambda are quite similar, they vary in arity and locality of return value but you could just pretend one or the other exists and be just fine.
ewnd9 has quit [Max SendQ exceeded]
amacgregor__ has joined #ruby
amacgregor_ has quit [Ping timeout: 246 seconds]
amoli has joined #ruby
kizzx2 has quit [Ping timeout: 246 seconds]
matchaw has joined #ruby
<RubyRonin> thanks havenwood, now I see why lamba's are useful and realize a limitation of variables
<havenwood> RubyRonin: Both local variables and instance variables are quite common. Running a thing once and saving the result is a common use case. In some cases though, yeah, lambdas let you have a closure that runs a block of code on call.
kizzx2 has joined #ruby
matchaw_ has quit [Ping timeout: 252 seconds]
amacgregor has quit [Ping timeout: 245 seconds]
<RubyRonin> I'm running through the rubymonk course now
<havenwood> RubyRonin: nice
dhruvasagar has joined #ruby
ewnd9 has joined #ruby
<havenwood> i haven't gone through it, but did take a look and it seemed engaging
<RubyRonin> got into this to get a better understanding of the code in the ruby.railstutorial.orgh
ewnd9 has quit [Max SendQ exceeded]
schaary has joined #ruby
<RubyRonin> haenwood what tools did you use to obtain your mastery of ruby?
<havenwood> RubyRonin: I like Pry (a alternative REPL to irb): http://pryrepl.org/
Aryasam has quit [Ping timeout: 240 seconds]
<havenwood> RubyRonin: It makes it easy to explore Ruby code.
<havenwood> RubyRonin: Worth learning right away.
<havenwood> RubyRonin: Also get a nice text editor.
<havenwood> RubyRonin: What operating system are you on?
Aryasam has joined #ruby
<RubyRonin> windows at the moment
timonv has joined #ruby
<RubyRonin> back to mac in two weeks
<RubyRonin> running sublime text 2
<havenwood> RubyRonin: I think that is a good cross platform option.
<havenwood> RubyRonin: Get Ruby 2.0 installed and working with Pry and Sublime and you're in good shape.
<havenwood> RubyRonin: Nice because you can still use it on OS X or Linux. I use and like Textmate 2, which is open source but OS X only - but similar to Sublime Text.
popl has quit [Ping timeout: 264 seconds]
kizzx21 has joined #ruby
<RubyRonin> nice
<havenwood> RubyRonin: Read lots of code on Github, learn to use Pry to explore code, and get familiar with common tasks in Sublime.
Aryasam has quit [Ping timeout: 246 seconds]
zomgbie has joined #ruby
jonahR has quit [Quit: jonahR]
pen has joined #ruby
Aryasam has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
BizarreCake has joined #ruby
kizzx2 has quit [Ping timeout: 264 seconds]
<havenwood> RubyRonin: ^ I think that'd be a good start. :)
<RubyRonin> much appreciated, looking at pry right now
ananthakumaran has joined #ruby
pwh has joined #ruby
kcombs has joined #ruby
nisstyre has quit [Quit: Leaving]
dhruvasagar has quit [Read error: Connection reset by peer]
phansch has joined #ruby
sheap has quit [Quit: Lost terminal]
dhruvasagar has joined #ruby
FL1SK has quit [Ping timeout: 248 seconds]
Snaury1 has joined #ruby
amoli has quit [Ping timeout: 246 seconds]
lemonsparrow has joined #ruby
zz_michael_mbp is now known as michael_mbp
FL1SK has joined #ruby
julweber has joined #ruby
phansch has quit [Quit: Leaving]
Snaury has quit [Ping timeout: 272 seconds]
shime has joined #ruby
DecipheredAFK is now known as Deciphered
zz_tsykoduk is now known as tsykoduk
sayan has quit [Ping timeout: 246 seconds]
julweber has quit [Ping timeout: 252 seconds]
jonahR has joined #ruby
rjhunter has quit [Remote host closed the connection]
Aryasam has quit [Ping timeout: 246 seconds]
heftig has quit [Quit: Quitting]
Aryasam has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
katterstrophe has joined #ruby
LexicalScope has joined #ruby
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
pwh has quit []
sergicles has quit [Quit: sergicles]
s00pcan_ has joined #ruby
julian` has joined #ruby
<julian`> hey can someone help me i want to make it so that when i lose internet my ruby script doesnt terminate - any ideas?
JohnBat26 has joined #ruby
katterstrophe has quit [Client Quit]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
Deciphered is now known as DecipheredAFK
nhhagen_ has joined #ruby
ddd has quit [Quit: bedtime]
VTLob has joined #ruby
zombiebit has joined #ruby
nhhagen_ has quit [Ping timeout: 252 seconds]
pranny has joined #ruby
vlad_starkov has joined #ruby
zombiebit has quit [Ping timeout: 260 seconds]
btanaka has quit [Ping timeout: 272 seconds]
Aryasam has quit [Ping timeout: 246 seconds]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
zipper has joined #ruby
tagrudev has joined #ruby
popl has quit [Client Quit]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
Aryasam has joined #ruby
LexicalScope has quit [Ping timeout: 248 seconds]
euclides has joined #ruby
noop has joined #ruby
justsee has joined #ruby
nbrosnahan has joined #ruby
shime has quit [Ping timeout: 252 seconds]
nisstyre has joined #ruby
zigomir has joined #ruby
mengu has joined #ruby
Kabaka has quit [Remote host closed the connection]
Aryasam has quit [Ping timeout: 245 seconds]
<shevy> julian` just begin/rescue and resume once it is available again?
<shevy> you were not too specific in "terminate", it could mean anything
Kabaka has joined #ruby
Aryasam has joined #ruby
julian-delphiki has joined #ruby
fivethreeo has joined #ruby
rjhunter has joined #ruby
bean has joined #ruby
bean__ has quit [Ping timeout: 248 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
julian-delphiki has quit [Ping timeout: 240 seconds]
<julian`> shevy i just want it to catch everything that would break the loop of my script and restart the ruby script
<julian`> from time to time it breaks or due to loss of internet etc
brianpWins has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
<shevy> hmm
<shevy> that is not easily possible to restart it
sevenseacat has left #ruby [#ruby]
<shevy> you would have to use something like daemons
rjhunter has quit [Ping timeout: 272 seconds]
weems has quit [Quit: Leaving]
weems has joined #ruby
weems has joined #ruby
weems has quit [Changing host]
sheap has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
<shevy> and you still did not explain why your script breaks when internet is not available
<shevy> my ruby scripts work online and offline :D
Aryasam has quit [Ping timeout: 272 seconds]
<julian`> the purpose of the script involves being online
<julian`> that daemons thing looks promising
petey has quit [Remote host closed the connection]
Aryasam has joined #ruby
<julian`> would simply looping it do the job though? and could i still monitor the console
zombiebit has joined #ruby
noyb has quit [Ping timeout: 246 seconds]
apeiros has quit [Ping timeout: 252 seconds]
<shevy> you'd have to log the output, either into a file or to $stdout
dangerousdave has joined #ruby
<shevy> simply looping would barely be enough once you were disconnected, you'd have to reconnect
wallerdev has quit [Quit: wallerdev]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Read error: Connection reset by peer]
epscy has quit [Ping timeout: 245 seconds]
Hien has quit [Ping timeout: 260 seconds]
roolo has joined #ruby
Dwarf has quit [Ping timeout: 240 seconds]
Aryasam has quit [Ping timeout: 245 seconds]
Hien has joined #ruby
Aryasam has joined #ruby
Dwarf has joined #ruby
zombiebit has quit [Remote host closed the connection]
_5kg has quit [Read error: Connection reset by peer]
madb055 has quit [Ping timeout: 246 seconds]
fierycatnet has quit []
DecipheredAFK is now known as Deciphered
Aryasam has quit [Ping timeout: 240 seconds]
Elhu has joined #ruby
cads has joined #ruby
bluOxigen has joined #ruby
Gonzih has quit [Ping timeout: 240 seconds]
gverri_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Monie has joined #ruby
rjhunter has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
Gonzih has joined #ruby
tylersmith has joined #ruby
Aryasam has joined #ruby
VTLob has quit [Quit: VTLob]
tsykoduk is now known as zz_tsykoduk
vayner has quit [Remote host closed the connection]
Al_ has joined #ruby
Deciphered is now known as DecipheredAFK
fomatin has joined #ruby
limle has joined #ruby
asteros has joined #ruby
shime has joined #ruby
Kneferilis has quit [Quit: Leaving]
timonv has joined #ruby
fomatin has quit [Client Quit]
zomgbie has quit [Ping timeout: 264 seconds]
nhhagen_ has joined #ruby
adkron has quit [Ping timeout: 264 seconds]
nomadic has quit [Ping timeout: 245 seconds]
bigkevmcd has quit [Ping timeout: 245 seconds]
nisstyre has quit [Quit: Leaving]
falood has joined #ruby
nomadic has joined #ruby
nhhagen_ has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby
threesome has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
skaflem has joined #ruby
bigkevmcd has joined #ruby
dhruvasagar has joined #ruby
cek has joined #ruby
yfeldblum has joined #ruby
nhhagen_ has joined #ruby
julian-delphiki has joined #ruby
vlad_sta_ has joined #ruby
timonv_ has joined #ruby
Dwarf has quit [Ping timeout: 240 seconds]
timonv has quit [Read error: Connection reset by peer]
adkron has joined #ruby
phansch has joined #ruby
Dwarf has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
dagobah has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
nhhagen has quit [Ping timeout: 264 seconds]
bean has quit [Ping timeout: 264 seconds]
DouweM has quit [Ping timeout: 264 seconds]
<pontiki> when dealing with the internet, there are any number of things that can break a loop
<pontiki> the program should deal with whatever exceptions can happen, resuming when appropriate, and bubbling the exception when not
<pontiki> there may be legitimate times you want it to stop
hiyosi has quit [Read error: Operation timed out]
<pontiki> but generally, it should be able to handle internet problems on it's own
<emocakes> unless you use node.js
<emocakes> its web 3.0 ready
Al_ has quit [Quit: Al_]
zomgbie has joined #ruby
<pontiki> node.js presents a whole different paradigm with asynchronicity
<pontiki> fun fun
<pontiki> irc botting with node.js should be quite interesting
pranny has quit [Quit: Leaving.]
tjad has quit [Ping timeout: 260 seconds]
morenoh149 has joined #ruby
ewnd9 has joined #ruby
<shevy> omg
_5kg has joined #ruby
h_kon has joined #ruby
ahawkins has joined #ruby
_5kg has quit [Client Quit]
emocakes has quit [Quit: Leaving...]
_5kg has joined #ruby
<pontiki> nini rubyland
<lagweezle> double, double toil and trouble; interwebz churn, and exception bubble...
<pontiki> well done, lagweezle
<popl> lagweezle: That's a long way to go for an exception pun.
euclides has quit [Quit: Leaving...]
<lagweezle> =D
<popl> lagweezle: B-
<lagweezle> If I weren't exhausted and partially food coma'd, I'd have come up with something more code related than "interwebz churn". :/
<lagweezle> I'm very glad you enjoyed it, though! =D
<pontiki> not all that far, the prompt is only 10 lines above it...
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
tvw has joined #ruby
jhamm has joined #ruby
<pontiki> i still say, well played
<pontiki> and to bed
TheHodge has joined #ruby
jhamm has quit [Client Quit]
tenjack has joined #ruby
<lagweezle> I should, but too much caffeine in system from the drive home. >.<
claymore has joined #ruby
<popl> lagweezle: To be fair, I think of that play when I think of bubbling.
* lagweezle is a happy weezle.
<popl> It's one of my favorites.
<shevy> wtf
<shevy> you guys are so hipster high
tylersmith has quit [Remote host closed the connection]
<lagweezle> Pardon? Shakespeare is hipster?
<popl> I'm not a fucking hipster shevy. :P
cek has quit [Ping timeout: 260 seconds]
mercwithamouth has quit [Ping timeout: 264 seconds]
<shevy> Shakespeare was the original hipster back in his days
zigomir has quit [Ping timeout: 272 seconds]
<popl> I know the play because my high school had a production and I was in it. :P
<shevy> to be or not to be
<shevy> then came sinatra with Do Be Do
<shevy> and finally Scooby Dooby Do
<shevy> popl what part did you play?
tenjack has quit [Remote host closed the connection]
topher has joined #ruby
<popl> One of the Scottish noblemen.
mercwithamouth has joined #ruby
adkron has quit [Ping timeout: 248 seconds]
jbpros has joined #ruby
aganov has joined #ruby
zomgbie has quit [Ping timeout: 246 seconds]
DecipheredAFK is now known as Deciphered
vlad_starkov has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
ephemerian has joined #ruby
hogeo has joined #ruby
timonv_ has quit [Remote host closed the connection]
Elhu has quit [Quit: Computer has gone to sleep.]
echevemaster has quit [Quit: Leaving]
limle has quit [Remote host closed the connection]
brtdv has joined #ruby
Liothen has quit [Quit: System of a down……]
rjhunter has quit [Remote host closed the connection]
charliesome has joined #ruby
nhhagen has joined #ruby
mawhorter has joined #ruby
<GreatSUN> good morning
drumusician has joined #ruby
xp_prg has joined #ruby
relix has joined #ruby
vlad_starkov has joined #ruby
cads has quit [Quit: Leaving]
Deciphered is now known as DecipheredAFK
cek has joined #ruby
st_iron has joined #ruby
dEPy has joined #ruby
jeffdb has quit [Quit: jeffdb]
nhhagen has quit [Ping timeout: 252 seconds]
RichardBaker has joined #ruby
<st_iron> hello
binaryplease has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
browndawg has quit [Ping timeout: 264 seconds]
mawhorter has quit [Remote host closed the connection]
<RubyRonin> hi
andikr has joined #ruby
A124 has quit [Ping timeout: 260 seconds]
browndawg has joined #ruby
roolo has quit [Quit: Leaving...]
heftig has joined #ruby
alup has joined #ruby
gulledge has joined #ruby
timonv has joined #ruby
olivier_bK has quit [Ping timeout: 252 seconds]
hiyosi has joined #ruby
amund_ has joined #ruby
falood has quit [Remote host closed the connection]
falood has joined #ruby
subbyyy_ has joined #ruby
<shevy> die
<popl> shevy: Eventually.
michael_mbp is now known as zz_michael_mbp
<RubyRonin> gimme five minutes
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
wildroman2 has joined #ruby
unRealElite has joined #ruby
bluehavana has joined #ruby
falood has quit [Ping timeout: 240 seconds]
julweber has joined #ruby
finnomenon has quit [Ping timeout: 264 seconds]
RichardBaker has quit [Quit: RichardBaker]
pen has quit [Remote host closed the connection]
pen has joined #ruby
subbyyy_ has quit [Ping timeout: 246 seconds]
zomgbie has joined #ruby
nhhagen has joined #ruby
diegoviola has joined #ruby
Xeago has joined #ruby
troessner has joined #ruby
nvrch has joined #ruby
Dwarf has quit [Ping timeout: 240 seconds]
zomgbie has quit [Ping timeout: 252 seconds]
Hien has quit [Ping timeout: 264 seconds]
A124 has joined #ruby
Dwarf has joined #ruby
Hien has joined #ruby
Hien has quit [Changing host]
Hien has joined #ruby
dEPy has quit [Quit: Computer has gone to sleep.]
xiphias has quit [Ping timeout: 240 seconds]
kaspergrubbe has joined #ruby
dEPy has joined #ruby
colonolGron has joined #ruby
xiphias has joined #ruby
fschuindt has quit [Quit: Computer has gone to sleep.]
ewnd9 has quit [Read error: Connection reset by peer]
culturelabs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
justsee has quit [Ping timeout: 272 seconds]
rickruby has joined #ruby
jamesaanderson has joined #ruby
niklasb has joined #ruby
rje4242 has quit [Quit: Leaving.]
katterstrophe_ has joined #ruby
epscy has joined #ruby
nhhagen_ has quit [Quit: Leaving]
rjhunter has joined #ruby
einarj has quit [Remote host closed the connection]
katterstrophe_ has quit [Client Quit]
unRealElite has left #ruby ["Leaving"]
einarj has joined #ruby
culturelabs has joined #ruby
zipper has quit [Quit: Lost terminal]
culturelabs has quit [Max SendQ exceeded]
culturelabs has joined #ruby
rjhunter has quit [Ping timeout: 252 seconds]
rjhunter has joined #ruby
Elhu has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
einarj has quit [Ping timeout: 265 seconds]
petey has joined #ruby
DecipheredAFK is now known as Deciphered
nbrosnahan has quit [Ping timeout: 252 seconds]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
zz_michael_mbp is now known as michael_mbp
morenoh149 has quit [Ping timeout: 260 seconds]
morenoh149 has joined #ruby
zipper has joined #ruby
ro9 has joined #ruby
olivier_bK has joined #ruby
petey has quit [Ping timeout: 240 seconds]
tjad has joined #ruby
<ro9> hi
nbrosnahan has joined #ruby
<ro9> is there a setup where i don't need internet conn. for rails new app
charliesome has joined #ruby
tedstriker has joined #ruby
sparrovv has joined #ruby
Deciphered is now known as DecipheredAFK
jibi has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
obs has joined #ruby
ananthakumaran has joined #ruby
charliesome has quit [Ping timeout: 260 seconds]
roolo has joined #ruby
<ro9> noobyruby
colonolGron has quit [Quit: Lost terminal]
amritanshu_RnD has joined #ruby
AndreyLvov has quit [Quit: ChatZilla 0.9.90.1 [Firefox 25.0.1/20131112160018]]
tjad has quit [Read error: No route to host]
ghr has joined #ruby
Ch4rAss has joined #ruby
justsee has quit [Ping timeout: 252 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jhaals has joined #ruby
joonty_ has quit [Quit: WeeChat 0.4.2]
zomgbie has joined #ruby
<shime> ro9: rails new <app_name> --skip-bundle
marcgg_ has joined #ruby
akhet_ has joined #ruby
<ro9> thanx shime
<ro9> shime: thanks
hogeo_ has joined #ruby
RTG has joined #ruby
AntelopeSalad_ has joined #ruby
uxp_ has joined #ruby
<shime> ro9: happy to help
RTG is now known as Guest28391
mengu has quit [Remote host closed the connection]
ro9 has left #ruby [#ruby]
sindork_ has joined #ruby
joonty has joined #ruby
eregon_ has joined #ruby
Xuerian_ has joined #ruby
Chris- has joined #ruby
einarj has joined #ruby
crazymykl has joined #ruby
kaichanvong___ has joined #ruby
fudanchi1 has joined #ruby
jabular_ has joined #ruby
vaicine_ has joined #ruby
raar has joined #ruby
maddog_ has joined #ruby
pureluck_ has joined #ruby
angelixd_ has joined #ruby
magbeat has joined #ruby
monomyth has joined #ruby
jinxD has joined #ruby
zzak_ has joined #ruby
Sourcele1s_ has joined #ruby
raar is now known as Guest23956
wildroman2 has quit [Remote host closed the connection]
RubyRonin00 has joined #ruby
_jesse__ has joined #ruby
msuszczy_ has joined #ruby
parus_ has joined #ruby
PaulePan1er has joined #ruby
Ch4rAss` has joined #ruby
joelio_ has joined #ruby
mahlon_ has joined #ruby
drowl_ has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
bigkevmcd has quit [Quit: Ex-Chat]
bigkevmcd has joined #ruby
zipper has quit [Ping timeout: 252 seconds]
steinsgate has joined #ruby
steinsgate has quit [Changing host]
steinsgate has joined #ruby
KernelPone has joined #ruby
Kudos_ has joined #ruby
MetaCosm_ has joined #ruby
elaptics` has joined #ruby
tr4656_ has joined #ruby
zmansiv_ has joined #ruby
KevinSjoberg_ has joined #ruby
undert has joined #ruby
noxgirl has joined #ruby
paul_k_ has joined #ruby
bahar_ has joined #ruby
nbouscal_ has joined #ruby
Ch4rAss has quit [*.net *.split]
obs has quit [*.net *.split]
hogeo has quit [*.net *.split]
tvw has quit [*.net *.split]
_5kg has quit [*.net *.split]
Aryasam has quit [*.net *.split]
threesome has quit [*.net *.split]
weems has quit [*.net *.split]
RubyRonin has quit [*.net *.split]
marcgg has quit [*.net *.split]
akhet has quit [*.net *.split]
michael_lee has quit [*.net *.split]
gr33n7007h has quit [*.net *.split]
Alina-malina has quit [*.net *.split]
mikemac has quit [*.net *.split]
zzak has quit [*.net *.split]
alvaro_o has quit [*.net *.split]
DaZ has quit [*.net *.split]
bier has quit [*.net *.split]
Guest85294 has quit [*.net *.split]
KevinSjoberg has quit [*.net *.split]
Soliah has quit [*.net *.split]
RTG` has quit [*.net *.split]
DrOwl has quit [*.net *.split]
vaicine has quit [*.net *.split]
paul_k has quit [*.net *.split]
sindork has quit [*.net *.split]
Sourceless has quit [*.net *.split]
parus has quit [*.net *.split]
nbouscal has quit [*.net *.split]
pureluck has quit [*.net *.split]
autumn has quit [*.net *.split]
_jesse_ has quit [*.net *.split]
MetaCosm has quit [*.net *.split]
zeusmns has quit [*.net *.split]
Kilo`byte has quit [*.net *.split]
eregon has quit [*.net *.split]
bahar has quit [*.net *.split]
x0nic_ has quit [*.net *.split]
monomyth_ has quit [*.net *.split]
fudanchii has quit [*.net *.split]
kaichanvong has quit [*.net *.split]
Xuerian has quit [*.net *.split]
dreamchaser has quit [*.net *.split]
msuszczy has quit [*.net *.split]
joelio has quit [*.net *.split]
tr4656 has quit [*.net *.split]
Kudos has quit [*.net *.split]
jinxD_ has quit [*.net *.split]
magbeat_ has quit [*.net *.split]
zarul has quit [*.net *.split]
angelixd has quit [*.net *.split]
Catie has quit [*.net *.split]
AntelopeSalad has quit [*.net *.split]
darrik has quit [*.net *.split]
elaptics has quit [*.net *.split]
uxp has quit [*.net *.split]
mahlon has quit [*.net *.split]
jabular has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
zmansiv has quit [*.net *.split]
Nuck has quit [*.net *.split]
undert_ has quit [*.net *.split]
maddog__ has quit [*.net *.split]
KernelPone is now known as Catie
kaichanvong___ is now known as kaichanvong
drowl_ is now known as DrOwl
Kudos_ is now known as Kudos
nbouscal_ is now known as nbouscal
Kudos has quit [Changing host]
Kudos has joined #ruby
RubyRonin00 is now known as RubyRonin
Alina-malina has joined #ruby
x0nic has joined #ruby
bier_ has joined #ruby
Kilobyte|StupidC has joined #ruby
DaZ has joined #ruby
PLejeck has joined #ruby
elaptics` is now known as elaptics
tylersmith has joined #ruby
zomgbie has left #ruby [#ruby]
TMM has joined #ruby
julweber has quit [Remote host closed the connection]
steinsgate has quit [Client Quit]
dhruvasagar has joined #ruby
i8igmac has quit [Ping timeout: 240 seconds]
shaunbaker has joined #ruby
gasbakid has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_lee has joined #ruby
jamesaanderson has joined #ruby
tylersmith has quit [Ping timeout: 264 seconds]
gr33n7007h has joined #ruby
zarul has joined #ruby
threesome has joined #ruby
obs has joined #ruby
Aryasam has joined #ruby
sparrovv_ has joined #ruby
dreamchaser has joined #ruby
dreamchaser has joined #ruby
dreamchaser has quit [Changing host]
darrik has joined #ruby
_5kg has joined #ruby
Dwarf has quit [Ping timeout: 240 seconds]
fudanchi1 has left #ruby [#ruby]
zeusmns has joined #ruby
alvaro_o has joined #ruby
timonv has quit [Remote host closed the connection]
ewnd9 has joined #ruby
shaunbaker has quit [Ping timeout: 245 seconds]
Xiti has quit [Read error: Connection reset by peer]
fudanchii has joined #ruby
Shidash has quit [Ping timeout: 246 seconds]
Hien has quit [Ping timeout: 245 seconds]
xiphias has quit [Ping timeout: 240 seconds]
sparrovv has quit [Ping timeout: 264 seconds]
sparrovv_ is now known as sparrovv
rdark has joined #ruby
hamakn has quit [Remote host closed the connection]
TigerWolf has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
zipper has joined #ruby
jamesaanderson has quit [Ping timeout: 251 seconds]
epscy has quit [Ping timeout: 251 seconds]
aspiers has joined #ruby
hamakn has joined #ruby
Hien has joined #ruby
ciampix has joined #ruby
morenoh159 has joined #ruby
morenoh149 has quit [Ping timeout: 260 seconds]
Xiti has joined #ruby
h_kon has quit [Remote host closed the connection]
phansch has quit [Remote host closed the connection]
nhhagen has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 272 seconds]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
xiphias has joined #ruby
timonv has joined #ruby
morenoh159 has quit [Ping timeout: 272 seconds]
Dwarf has joined #ruby
morenoh149 has joined #ruby
h_kon_ has joined #ruby
hamakn has quit [Ping timeout: 272 seconds]
ewnd9 has quit [Ping timeout: 252 seconds]
nari has quit [Ping timeout: 264 seconds]
Al_ has joined #ruby
drumusician has quit [Ping timeout: 245 seconds]
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
asteros has quit [Quit: asteros]
yfeldblum has quit [Ping timeout: 260 seconds]
sheap has quit [Read error: Operation timed out]
shaunbaker has joined #ruby
user258467 has quit [Quit: Quitte]
camilasan has joined #ruby
user258467 has joined #ruby
kitak has quit [Remote host closed the connection]
DecipheredAFK is now known as Deciphered
rhunter has joined #ruby
ewnd9 has joined #ruby
epscy has joined #ruby
maroloccio has quit [Ping timeout: 248 seconds]
hiall has joined #ruby
jonahR has quit [Quit: jonahR]
vaicine_ is now known as vaicine
vaicine has quit [Changing host]
vaicine has joined #ruby
rhunter has quit [Ping timeout: 246 seconds]
kitak has joined #ruby
julweber has joined #ruby
liamkeily has joined #ruby
Deciphered is now known as DecipheredAFK
asteros has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
hogeo_ has quit [Remote host closed the connection]
asteros has quit [Client Quit]
osccar has joined #ruby
charliesome has joined #ruby
asteros has joined #ruby
hogeo has joined #ruby
morenoh149 has quit [Ping timeout: 272 seconds]
dhruvasagar has quit [Quit: leaving]
osccar has left #ruby [#ruby]
nhhagen has joined #ruby
dhruvasagar has joined #ruby
asteros has quit [Ping timeout: 246 seconds]
moneydouble has joined #ruby
moneydouble1 has quit [Ping timeout: 246 seconds]
shime has quit [Ping timeout: 246 seconds]
sawtooth has joined #ruby
mojjojo has joined #ruby
klaut has joined #ruby
marr has joined #ruby
Speed has joined #ruby
hiall has quit [Quit: hiall]
avril14th has joined #ruby
kizzx21 has quit [Quit: Leaving.]
einarj has quit [Ping timeout: 265 seconds]
Aryasam has quit [Ping timeout: 264 seconds]
sayan has joined #ruby
Aryasam has joined #ruby
hogeo has quit [Remote host closed the connection]
inad922 has joined #ruby
ewnd9 has quit [Ping timeout: 265 seconds]
realDAB has joined #ruby
Soda has joined #ruby
adambeynon has joined #ruby
dhruvasagar has quit [Quit: leaving]
dhruvasagar has joined #ruby
tylersmith has joined #ruby
dhruvasagar has quit [Client Quit]
dhruvasagar has joined #ruby
mojjojo has quit [Quit: mojjojo]
GoodTimes has joined #ruby
mojjojo has joined #ruby
nhhagen has quit [Remote host closed the connection]
hogeo has joined #ruby
mojjojo has quit [Client Quit]
wildroman2 has joined #ruby
tylersmith has quit [Ping timeout: 252 seconds]
N00D is now known as zz_N00D
lyanchih has quit [Ping timeout: 245 seconds]
Kneferilis has joined #ruby
mojjojo has joined #ruby
Guest29791 has joined #ruby
Guest29791 has quit [Changing host]
Guest29791 has joined #ruby
shime has joined #ruby
wildroman2 has quit [Ping timeout: 265 seconds]
diegoviola is now known as Guest37293
Guest29791 is now known as diegoviola
Guest37293 has quit [Ping timeout: 265 seconds]
shaunbaker has quit [Remote host closed the connection]
shaunbaker has joined #ruby
dEPy has quit [Quit: Computer has gone to sleep.]
dev1x has joined #ruby
dEPy has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
hamakn has joined #ruby
shredding has joined #ruby
shaunbaker has quit [Ping timeout: 260 seconds]
rickruby has quit [Remote host closed the connection]
h_kon_ has quit [Remote host closed the connection]
dEPy has quit [Ping timeout: 272 seconds]
avril14th has quit [Remote host closed the connection]
relix has joined #ruby
realDAB has quit [Quit: realDAB]
DecipheredAFK is now known as Deciphered
Squarepy has joined #ruby
shaunbaker has joined #ruby
avril14th has joined #ruby
amoli has joined #ruby
moneydouble has quit [Quit: Leaving.]
phansch has joined #ruby
matheuscaceres has joined #ruby
h_kon has joined #ruby
ldnunes has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
shaunbaker has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
larssmit has joined #ruby
matheuscaceres has quit [Client Quit]
mojjojo has quit [Quit: mojjojo]
rhunter has joined #ruby
ewnd9 has joined #ruby
dEPy has joined #ruby
obs has quit [Ping timeout: 252 seconds]
obs has joined #ruby
rhunter has quit [Ping timeout: 246 seconds]
petey has joined #ruby
tenjack has joined #ruby
g0bl1n has joined #ruby
shaunbaker has joined #ruby
petey has quit [Ping timeout: 246 seconds]
Ch4rAss` is now known as Ch4rAss
Ch4rAss has quit [Quit: Reconnecting]
tenjack has quit [Ping timeout: 272 seconds]
Ch4rAss has joined #ruby
alo1 has quit [Quit: Connection closed for inactivity]
nari has joined #ruby
shaunbak_ has joined #ruby
shaunbaker has quit [Read error: Connection reset by peer]
tkuchiki has quit [Ping timeout: 245 seconds]
culturelabs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shaunbaker has joined #ruby
nhhagen has joined #ruby
mojjojo has joined #ruby
yacks has joined #ruby
shaunbak_ has quit [Ping timeout: 245 seconds]
shaunbaker has quit [Ping timeout: 245 seconds]
claymore has quit [Quit: Leaving]
mojjojo has quit [Quit: mojjojo]
phansch has quit [Remote host closed the connection]
wildroman2 has joined #ruby
phansch has joined #ruby
Deejay has joined #ruby
mojjojo has joined #ruby
pen has quit [Remote host closed the connection]
wildroman2 has quit [Client Quit]
kitak has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
shaunbaker has joined #ruby
cantonic has joined #ruby
fixl has quit [Read error: Connection reset by peer]
jhamm has joined #ruby
brtdv has quit []
gasbakid has quit [Read error: Connection reset by peer]
einarj has joined #ruby
hogeo has quit [Remote host closed the connection]
tylersmith has joined #ruby
jbpros has quit [Quit: jbpros]
hogeo has joined #ruby
hiall has joined #ruby
gr33n7007h has quit [Ping timeout: 260 seconds]
nhhagen has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 265 seconds]
lyanchih has joined #ruby
lmmx has joined #ruby
xk_id has quit [Quit:
<GreatSUN> lunch time !
Snaury1 has quit [Quit: Leaving.]
<lmmx> what's up with my regex and/or Ruby in this code? http://pastie.org/8516661
nhhagen has joined #ruby
zipper has quit [Ping timeout: 246 seconds]
Heskie has joined #ruby
sparrovv has quit [Ping timeout: 246 seconds]
zipper has joined #ruby
pedda has joined #ruby
<lupine> lmmx, your first issue is that you can't use regexps to parse html in the general case
moneydouble has joined #ruby
<lupine> if your input is sufficiently restricted that you know that's not an issue, great, otherwise pull out nokogiri or something similar instead
<lmmx> it's not parsing, I'm just trying to delete a bunch of elements in a list separated by <hr />
<lmmx> lupine: so I don't need to read it for info just very simply if it doesn't contain a certain value I want to delete it from the list (as delimited by hr tags), that's a fair use of regex, right?
sergicles has joined #ruby
<lmmx> lupine: yeah my input was generated from a perl script and is regular enough to check like this
<lupine> then the other thing that comes to mind is that you need to escape your interpolations
<lupine> like %r{#{Regexp::escape tag}#{Regexp::escape searchstr}#{Regexp::escape tag}}
xk_id has joined #ruby
<lmmx> ?
<lmmx> is that the actual way to write it or pseudocode?
hogeo has quit [Remote host closed the connection]
Deciphered is now known as DecipheredAFK
Dwarf has quit [Ping timeout: 240 seconds]
einarj has quit [Ping timeout: 260 seconds]
<lupine> that's valid ruby
<lmmx> cool, thanks :)
tvw has joined #ruby
moneydouble has quit [Ping timeout: 252 seconds]
zipper has quit [Remote host closed the connection]
zipper has joined #ruby
Heskie has quit [Ping timeout: 252 seconds]
moneydouble has joined #ruby
F1skr has joined #ruby
pen has joined #ruby
Dwarf has joined #ruby
nhhagen has quit [Remote host closed the connection]
zeeraw has joined #ruby
einarj has joined #ruby
emocakes has joined #ruby
moneydouble has quit [Ping timeout: 246 seconds]
hogeo has joined #ruby
kaspergrubbe has joined #ruby
jibi has quit [Quit: .]
rhunter has joined #ruby
buscon has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
einarj has quit [Read error: No route to host]
kaspergrubbe has joined #ruby
codelette has joined #ruby
mengu has quit [Remote host closed the connection]
Aryasam has quit [Ping timeout: 260 seconds]
<Hanmac> lupine & lmmx should be the second tag the closing?
<lmmx> ?
cantonic_ has joined #ruby
<Hanmac> >> tag= "<b>";searchstr ="bla"; %r{#{Regexp::escape tag}#{Regexp::escape searchstr}#{Regexp::escape tag}}
<eval-in> Hanmac => /<b>bla<b>/ (https://eval.in/74336)
rhunter has quit [Ping timeout: 246 seconds]
<Hanmac> wouldnt /<b>bla<\/b>/ be better?
codelette has quit [Read error: No route to host]
<lmmx> um both tags are <hr /> if that's what you mean
<Hanmac> oh
<lmmx> I didn't write it lol
einarj has joined #ruby
cantonic has quit [Ping timeout: 252 seconds]
cantonic_ is now known as cantonic
nbrosnahan has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lmmx> "I just work here"
maroloccio has joined #ruby
dhruvasagar has quit [Ping timeout: 265 seconds]
xk_id has quit [Quit:
xguinness] has joined #ruby
pen has quit [Remote host closed the connection]
pen has joined #ruby
fedesilva has joined #ruby
Xiti has quit [Read error: Connection reset by peer]
liamkeily has quit [Ping timeout: 246 seconds]
Xiti has joined #ruby
Dwarf has quit [Ping timeout: 240 seconds]
Hien has quit [Ping timeout: 246 seconds]
jedimind has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Asher has quit [Ping timeout: 272 seconds]
Asher has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
Hien has joined #ruby
DecipheredAFK is now known as Deciphered
einarj has quit [Ping timeout: 252 seconds]
pencilcheck has joined #ruby
xiphias has joined #ruby
Lewix has quit [Remote host closed the connection]
Dwarf has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dagobah> Quickest way to split the string "07000000334" with white space after the 5th char and 8th char to get "07000 000 334" ?
Elhu has quit [Quit: Computer has gone to sleep.]
justsee has joined #ruby
pleal has joined #ruby
ravster has joined #ruby
pen has quit [Ping timeout: 252 seconds]
apeiros has joined #ruby
pleal has quit [Remote host closed the connection]
charliesome has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
shredding has quit [Quit: shredding]
joelio_ is now known as joelio
einarj has joined #ruby
<lupine> <hr /> is magic
pleal has joined #ruby
Xeago has quit [Remote host closed the connection]
Squarepy_ has joined #ruby
Xeago has joined #ruby
rickruby has joined #ruby
Squarepy has quit [Ping timeout: 264 seconds]
<lmmx> hehe
codelette has joined #ruby
lmmx has quit [Quit: Page closed]
einarj has quit [Read error: No route to host]
jancuk has joined #ruby
<jancuk> aef
<canton7> >> "07000000334".sub(/(\d{5})(\d{3})(\d{3})/, '\1 \2 \3')
<eval-in> canton7 => "07000 000 334" (https://eval.in/74340)
<canton7> dagobah, first attempt ^^
nhhagen has joined #ruby
buscon has quit [Remote host closed the connection]
einarj has joined #ruby
codelette has quit [Read error: Connection reset by peer]
jancuk has quit [Client Quit]
jancuk has joined #ruby
ewnd9 has quit [Ping timeout: 260 seconds]
von__ has joined #ruby
xk_id has joined #ruby
jancuk has quit [Client Quit]
nhhagen has quit [Ping timeout: 252 seconds]
<havenwood> >> '07000000334'.each_char.with_index.map { |c, i| i == 5 || i == 8 ? ' ' << c : c }.join
<eval-in> havenwood => "07000 000 334" (https://eval.in/74342)
<havenwood> dagobah: another way, for fun
polaco_zZz is now known as polaco
justsee has quit [Ping timeout: 272 seconds]
<apeiros> >> s = '07000000334'; "#{s[0,5]} #{s[5,3]} #{s[8,3]}"
<eval-in> apeiros => "07000 000 334" (https://eval.in/74343)
<apeiros> just not to run out of options
marcgg has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> funny enough, I'm looking at sub & substr variants right now (formatting various kinds of numbers/ids myself atm)
marcgg has quit [Read error: Connection reset by peer]
marcgg has joined #ruby
someish has joined #ruby
obs has quit [Ping timeout: 252 seconds]
tylersmith has joined #ruby
marcgg_ has quit [Read error: Connection reset by peer]
mikestok has joined #ruby
<havenwood> >> '07000000334'.chars.rotate(5).<<(' ').rotate(3).<<(' ').rotate(3).join
<eval-in> havenwood => "07000 000 334" (https://eval.in/74344)
<havenwood> >.>
obs has joined #ruby
<apeiros> lol
<apeiros> you're a horrible person! :D
<havenwood> hehe
<havenwood> :)
<apeiros> wow, such code, so rotate, much push, wow
<apeiros> (where's that silly meme from anyway?)
tylersmith has quit [Ping timeout: 246 seconds]
einarj has quit [Read error: Connection reset by peer]
mikestok has quit [Quit: Computer has gone to sleep.]
einarj has joined #ruby
Graves has joined #ruby
<Hanmac> apeiros: i found this: but its not helpful enough ;P
<Hanmac> >> "%.5s" % '07000000334'
<eval-in> Hanmac => "07000" (https://eval.in/74345)
Graves has quit [Client Quit]
marcgg_ has joined #ruby
jbpros has joined #ruby
<apeiros> Hanmac: now you need a way to state the offset and you can do it with sprintf
Squarepy_ is now known as Squarepy
ciampix has quit [Ping timeout: 260 seconds]
marcgg_ has quit [Read error: Connection reset by peer]
nbrosnahan has joined #ruby
<Hanmac> i tryed but it sems it did not work ;P
heftig has quit [Quit: Quitting]
jancuk has joined #ruby
Deciphered is now known as DecipheredAFK
nbrosnahan has quit [Max SendQ exceeded]
marcgg has quit [Ping timeout: 265 seconds]
nbrosnahan has joined #ruby
<Hanmac> omg what had i done oO
<Hanmac> >> '07000000334'.chars.to_enum(:chunk).with_index {|c,i| i == 5}.to_a
<eval-in> Hanmac => [[false, ["0", "7", "0", "0", "0"]], [true, ["0"]], [false, ["0", "0", "3", "3", "4"]]] (https://eval.in/74346)
Squarepy_ has joined #ruby
mengu has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
<Hanmac> apeiros: can you test the line on your maschine? on my it does creash
<havenwood> Hanmac: [BUG] Segmentation fault
<Hanmac> havenwood: yeah thats what i mean oO
<havenwood> indeed :O
Squarepy has quit [Ping timeout: 246 seconds]
<Hanmac> man i curse my crasy "segfault" finding skills ;P
<havenwood> Hanmac: ha, you do find a lot!
shredding has joined #ruby
javax has quit [Ping timeout: 245 seconds]
cantonic has quit [Ping timeout: 252 seconds]
jancuk has quit [Quit: WeeChat 0.3.7]
cantonic has joined #ruby
avril14th_ has joined #ruby
javax has joined #ruby
avril14th_ has quit [Read error: Connection reset by peer]
shime has quit [Ping timeout: 265 seconds]
ephemerian has joined #ruby
<GreatSUN> re
maroloccio has quit [Ping timeout: 260 seconds]
<Hanmac> >> RUBY_DESCRIPTION
<eval-in> Hanmac => "ruby 2.0.0p0 (2013-02-24 revision 39474) [i686-linux]" (https://eval.in/74348)
pwh has joined #ruby
<pagios__> can i pass url params to a websocket and accept it in sinatra something like http://...?data1="hello"&... ?
<pagios__> or only works on xmlrequests?
<Hanmac> pagios__: #sinatra has own channel, maybe they are more helpful?
mengu has joined #ruby
danshultz has joined #ruby
pskosinski has joined #ruby
ewnd9 has joined #ruby
<havenwood> Hanmac: works on 1.9.3, illegal hardware instruction on 2.0.0, segfault on 2.1.0
<Hanmac> " illegal hardware instruction ";D
rhunter has joined #ruby
<Hanmac> shevy: did you hear that? i was using "illegal hardware instructions" ;D
<canton7> That's.... special?
gwb3 has quit [Quit: leaving]
Aryasam has joined #ruby
<Hanmac> havenwood: on my ruby 2.0.0p299 (2013-08-29) [x86_64-linux-gnu] it does crash too, whats your 2.0?
gwb3 has joined #ruby
maroloccio has joined #ruby
<havenwood> Hanmac: I tried 2.0.0-p0 and 2.0.0-p353
gwb3 has quit [Client Quit]
<havenwood> Hanmac: same result ^ so i didn't check inbetween
marcgg has joined #ruby
brtdv has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
<Hanmac> havenwood: hm for my 1.9.3 and my 2.0 it does crash too
<shevy> Hanmac you are the ruber crasher
<havenwood> Hanmac: what 1.9?
<Hanmac> whats your architecture?
<Hanmac> "ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]"
<havenwood> OS X, though i tested some on Linux too
gwb3 has joined #ruby
cantonic has quit [Quit: cantonic]
<Hanmac> hm curios
<shevy> ruby 1.9.3p448 (2013-06-27 revision 41675) [i686-linux]
<Hanmac> you can add your tests results to https://bugs.ruby-lang.org/issues/9178
<shevy> is ruby 1.9.3 still developed?
<Hanmac> shevy: i dont know i only added the results
thecreators has joined #ruby
petey has joined #ruby
varfoo has quit [Quit: WeeChat 0.4.0]
<shevy> File:ruby-1.9.3-p484.tar.bz2 9807 KB 11/22/2013 01:25:00 PM
<shevy> yes
<shevy> new release
<shevy> :-)
<shevy> ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p484.tar.bz2
<Hanmac> my 1.9 and 2.0 are distry packages, only my 2.1+ is selfmade
rhunter has quit [Ping timeout: 260 seconds]
* Hanmac is collecting Metabugs ... maybe someone get the Anime-Reference
g0bl1n has quit [Read error: Operation timed out]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
zeeraw has joined #ruby
aryaching has joined #ruby
<avril14th> isn't each_with_object supposed to return the memo?!
<avril14th> >> (1..4).each_with_object(Time.now){ |i, memo| memo = memo + 60 * 60 }
<eval-in> avril14th => 2013-11-29 14:15:15 +0100 (https://eval.in/74361)
aspiers has quit [Ping timeout: 252 seconds]
Aryasam has quit [Quit: Bye]
Hanmac has quit [Read error: Connection reset by peer]
<avril14th> >> Time.now
petey has quit [Ping timeout: 252 seconds]
<eval-in> avril14th => 2013-11-29 14:15:50 +0100 (https://eval.in/74362)
ffranz has joined #ruby
Hanmac has joined #ruby
<Hanmac> seems that the metabugs find me first ;P
einarj has quit [Ping timeout: 260 seconds]
Heskie has joined #ruby
mojjojo has quit [Quit: mojjojo]
gwb3 has quit [Quit: leaving]
gwb3 has joined #ruby
kobain has joined #ruby
<avril14th> hmm
<avril14th> seems like you can't use the equal operator in the block
shime has joined #ruby
<shevy> what equal operator
mojjojo has joined #ruby
<avril14th> >> (1..3).each_with_object([Time.now]){ |i, memo| memo << memo.last + (60 * 60) }
<eval-in> avril14th => [2013-11-29 14:24:27 +0100, 2013-11-29 15:24:27 +0100, 2013-11-29 16:24:27 +0100, 2013-11-29 17:24:27 +0100] (https://eval.in/74363)
<avril14th> that works
DecipheredAFK is now known as Deciphered
<avril14th> >> (1..3).each_with_object(Time.now){ |i, memo| memo = memo + (60 * 60) }
<eval-in> avril14th => 2013-11-29 14:24:42 +0100 (https://eval.in/74364)
<avril14th> that don't
<canton7> avril14th, each_with_objecs assumes you can mutate the object in question
<canton7> 'memo = foo' doesn't mutate memo - it replaces it entirely
<canton7> did you want #inject ?
<avril14th> so you can only modify but not replace
<avril14th> okay
<avril14th> works once you know it :)
liamkeily has joined #ruby
<avril14th> thanks canton7
einarj has joined #ruby
<canton7> since the return value from the block isn't used, it's the only way it could possibly work ;)
* avril14th injects
* shevy screams painfully
<canton7> (1..3).inject(Time.now){ |memo, i| memo + (60 * 60) }
<avril14th> so they put the memo first there
<avril14th> alright
<avril14th> :)
marcgg has joined #ruby
<canton7> yeah, annoying one that
RubyRonin has quit [Quit: ChatZilla 0.9.90.1 [Firefox 25.0.1/20131112160018]]
<olivier_bK> i doing something wrong when i do DeleteInstance.new(@uid_instance) ?
jrhe has joined #ruby
<canton7> no idea. is 'puts foo' wrong? Depends whether I wanted to output that variable
shime has quit [Ping timeout: 246 seconds]
<canton7> you're instantiating DeleteInstance before you've finished defining it
pskosinski has quit [Quit: Til rivido Idisti!]
Deciphered is now known as DecipheredAFK
cek has quit [Ping timeout: 272 seconds]
<olivier_bK> so euhh..
<olivier_bK> what is the much better to do
<canton7> olivier_bK, http://pastie.org/8516872
Elhu has joined #ruby
<havenwood> olivier_bK: always indent with exactly two spaces, so easier to tell where you are :)
atmosx has joined #ruby
xguinness] has quit [Quit: leaving]
<olivier_bK> havenwood, i keep that in my mind
<olivier_bK> canton7, if try what you say i get `initialize': wrong number of arguments (0 for 1) (ArgumentError) i must to give a variable with @
<olivier_bK> ,
<olivier_bK> ?
* canton7 has a head-desk collision
einarj has quit [Read error: No route to host]
sayan has quit [Ping timeout: 252 seconds]
<canton7> you still need to pass that argument to the constructor
einarj has joined #ruby
pwh has quit []
<olivier_bK> so i need to keep DeleteInstance.new(@uid_instance)
lkba has joined #ruby
<olivier_bK> okai i understand because some one tell me another thing
<canton7> put it after the final 'end'. that's all
<canton7> that's what my pastie was showing you
<olivier_bK> thanks men !!
zzak_ is now known as zzak
mojjojo has quit [Quit: mojjojo]
shredding has quit [Remote host closed the connection]
SJr has quit [Quit: ZNC - http://znc.sourceforge.net]
einarj has quit [Read error: Connection reset by peer]
stringoO has joined #ruby
zipper has quit [Ping timeout: 252 seconds]
einarj has joined #ruby
nhhagen has joined #ruby
SJr has joined #ruby
wald0 has joined #ruby
mikee has quit [Ping timeout: 246 seconds]
kofno has joined #ruby
<wald0> what is the equivalent of in bash "variable substitution" ? like: echo "${file#.jpg}"
<canton7> remind us non-bashers what that does?
<wald0> well, in fact i wrote it bad, it was % i think
<wald0> it means to remove the chars of the end, so it will remove .jpg
<hoelzro> you probably want file.gsub!(/[.]jpg$/, '')
danshultz has quit [Remote host closed the connection]
<dagobah> Hmm is there a nicer way to "07737".chars.map(&:to_i) #=> [0, 7, 7, 3, 7] ??
<canton7> >> File.basename('hello.jpg', '.jpg')
<eval-in> canton7 => "hello" (https://eval.in/74368)
<wald0> and when using % it will remove from the last, using 2 %% will remove from the longest match (so, file.jpg.jpg -> file)
<canton7> in general, we'd use #sub or #gsub and some regex
danshultz has joined #ruby
cek has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
<wald0> im moving from bash and im asking that because is one of my most useful things on it :)
<wald0> sub/gsub is used for that ? mmh
<avril14th> dagobah: it's pretty explicit already I think
pac1 has joined #ruby
<wald0> canton7: how you will do for example for this string "/usr/bin/file-foo.rb" to get the filename (basename) + remove extension + change foo to bar ? (in a single line?)
<wald0> im checking for short examples to do the same thing
mercwithamouth has joined #ruby
nhhagen has quit [Remote host closed the connection]
binaryplease has quit [Ping timeout: 260 seconds]
zipper has joined #ruby
F1skr has quit [Quit: WeeChat 0.4.2]
someish has quit [Quit: someish]
<wald0> in bash i will have do something like this:
<canton7> >> File.basename('/user/bin/file-foo.rb', '.rb').sub('foo', 'bar')
<wald0> string="/usr/bin/file-foo.rb" ; echo "$(basename "${string%.rb}" | sed 's|foo|bar|' )"
<eval-in> canton7 => "file-bar" (https://eval.in/74371)
<wald0> --> file-bar
<canton7> yeah pretty much the same series of operations
AlSquirikou has joined #ruby
cek has quit [Ping timeout: 245 seconds]
mikee has joined #ruby
GoodTimes has quit []
<wald0> concatenating results is very nice :)
<canton7> s/user/usr oops, but anyway
jrhe has quit [Quit: jrhe]
danshultz has quit [Ping timeout: 272 seconds]
codelette has joined #ruby
einarj has quit [Read error: Connection reset by peer]
<wald0> canton7: how in ruby we can say "the longest" or "the shortest" match ? i dont know if i explain correctly, but is the difference between get "file" from "file.jpg-foo.jpg" or "file.jpg-foo"
kofno has quit [Ping timeout: 272 seconds]
<Hanmac> wald0: http://www.ruby-doc.org/core-2.0.0/Regexp.html look for "greedy"
<hoelzro> .* is the longest
<wald0> something that i always missed in sed because i didnt know how to do it on it :)
<hoelzro> or "greediest"
<olivier_bK> for call my script BackupMysql.rb i want to pass a param like testsgb but when i doing that i get an error
<hoelzro> .*? is the shortest
<olivier_bK> BackupMysql.rb::in `initialize': undefined method `nil' for nil:NilClass (NoMethodError)
<wald0> hoelzro: yes, by default regex always search for longest
<shevy> olivier_bK you pass nil. pass a real value man
s2013 has joined #ruby
<hoelzro> mhmm
browndawg has quit [Quit: Leaving.]
pleal has quit [Remote host closed the connection]
<shevy> olivier_bK also use uid_instance.nil? instead, it looks nicer, and look for consistent indent, in the pastie you show you do not indent consistently
<atmosx> olivier_bK: try if uid_instance.nil?
<olivier_bK> shevy, BackupMysql.rb:17:in `gets': No such file or directory - ddd (Errno::ENOENT)
<shevy> olivier_bK, BackupMysql.new(@uid_instance) is not known
mpereira has left #ruby [#ruby]
<shevy> do this to test:
A124 has quit [Read error: Connection reset by peer]
<shevy> BackupMysql.new(nil)
<shevy> commandline information is stored in ARGV so you could also do: BackupMysql.new(ARGV[0])
RaCx has joined #ruby
nhhagen has joined #ruby
nari has quit [Quit: Ex-Chat]
Heskie has quit []
justsee has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
hamakn has quit [Remote host closed the connection]
mpereira has joined #ruby
hamakn has joined #ruby
xiphias has joined #ruby
<wald0> so just put a ? after .+, mmh... sounds simple
<wald0> whats the difference between .* and .+ ?
liamkeily has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Remote host closed the connection]
<havenwood> wald0: Nice cheat sheet here: http://rubular.com/
<canton7> ("anything zero or more times" vs "anything one or more times")
rasta-man has joined #ruby
DecipheredAFK is now known as Deciphered
nhhagen has quit [Ping timeout: 246 seconds]
xue has joined #ruby
nhhagen has joined #ruby
hamakn has quit [Ping timeout: 272 seconds]
breakingthings has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
barratt has joined #ruby
cek has joined #ruby
xiphias has joined #ruby
<wald0> realtime! nice!! :)
<wald0> where is the reference that links to all the references/tools ? :)
telpochyaotl has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
telpochyaotl has left #ruby [#ruby]
rhunter has joined #ruby
zeeraw has joined #ruby
kure has joined #ruby
someish has joined #ruby
<havenwood> http://strftimer.com/ is pretty neat for formatting Time to be human readable
<wald0> mmh, has the design changed? i remembered it darker
spike|spiegel has quit [Ping timeout: 272 seconds]
<diegoviola> hrm, i wish i bought bitcoins when it was $100. :(
<havenwood> wald0: yup, new design a week ago-ish
nhhagen has quit [Read error: Connection reset by peer]
heftig has joined #ruby
<kure> Duudes, I've been looking for a Ruby code obfuscator, but it doesn't seem to exist
<wald0> it looks nicer and more "welcomy" for normal ppl :)
<wald0> well, more pro in fact
<wald0> -geek +pro
<kure> You guys know anything about it? I'd like to do recreational obfuscation, just for shits n giggles
<emocakes> i had a bitcoin
<emocakes> but i lost my wallet
nhhagen has joined #ruby
Arzaga has quit [Quit: Computer has gone to sleep.]
rhunter has quit [Ping timeout: 272 seconds]
jhaals has quit [Ping timeout: 255 seconds]
jrhe has joined #ruby
nhhagen has quit [Read error: Connection reset by peer]
<diegoviola> emocakes: so you lost $1100 USD or something?
RaCx has quit [Quit: Computer has gone to sleep.]
<emocakes> whatever it is worth these days
nhhagen has joined #ruby
nhhagen has quit [Remote host closed the connection]
<emocakes> i mined it 3 years ago
<emocakes> and was like, wow, cool, this is useless
<emocakes> :(
<wald0> havenwood: do you know what template it is exactly? (or website which runs uppon)
<emocakes> shoulda kept mining
Deciphered is now known as DecipheredAFK
<havenwood> wald0: not sure, should be here: https://github.com/ruby/www.ruby-lang.org
shime has joined #ruby
tedstriker has quit [Quit: Anti-Fraping status set.]
xk_id has quit [Quit:
vlad_starkov has joined #ruby
joonty_ has joined #ruby
nbrosnahan has quit [Ping timeout: 260 seconds]
xk_id has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
soba has quit [Ping timeout: 245 seconds]
<wald0> if im not wrong, seems like the site/pages are generated dynamically from a ruby source code, creating plain html pages... this sounds really nice! (and simple)
coca_rails has joined #ruby
joonty has quit [Ping timeout: 252 seconds]
gulledge has quit [Remote host closed the connection]
falood has joined #ruby
atmosx has quit [Quit: Lost in trance]
RaCx has joined #ruby
nbrosnahan has joined #ruby
<havenwood> wald0: yeah, using Jekyll: http://jekyllrb.com/
<havenwood> wald0: same thing Github pages uses, nice way to have a static site
emanuele is now known as Guest19776
decoponio has joined #ruby
<havenwood> wald0: or rather Github pages use Octopress, which in turn uses Jekyll: http://octopress.org/
<havenwood> ^ maybe i'm wrong on that, whatever
<havenwood> anyways, both nice
st_iron has quit [Quit: Page closed]
dhruvasagar has joined #ruby
<havenwood> sinatra and jekyll sitting in a tree, K-I-S-
* havenwood wanders off in search of coffee...
coca_rails has quit [Remote host closed the connection]
h_kon has quit [Remote host closed the connection]
lyanchih has quit [Quit: lyanchih]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
lyanchih has joined #ruby
lessless has joined #ruby
<lessless> how to extend base class?
<lessless> 123.33.to_chf('EUR') leads to RuntimeError: can't modify frozen Float
lyanchih has quit [Client Quit]
tedstriker has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
matheuscaceres has joined #ruby
justsee has quit [Ping timeout: 272 seconds]
sailias has joined #ruby
endash has joined #ruby
psyl0n has joined #ruby
psyl0n has quit [Changing host]
psyl0n has joined #ruby
<shevy> lessless hmm
nebula has joined #ruby
<shevy> lessless are you sure this must be possible?
tylersmith has joined #ruby
xue has quit [Ping timeout: 246 seconds]
<lessless> I can't find any doc that prohibit this
<lessless> maybe with refinements monkey patching of base classes are disallowed?
RaCx has quit [Quit: Computer has gone to sleep.]
<lessless> shevy,
<shevy> dont think so
<shevy> "There is effectively only one Fixnum object instance for any given integer value, so, for example, you cannot add a singleton method to a Fixnum."
Guest16922 has joined #ruby
<shevy> hmm
<shevy> >> class Float; def self.foo; puts 'ok';end;end; Float.foo
<eval-in> shevy => ok ... (https://eval.in/74388)
<shevy> >> class Float; def self.to_chf(i); puts i;end;end; Float.to_chf(5)
<eval-in> shevy => 5 ... (https://eval.in/74390)
lsmola_ has joined #ruby
<shevy> wait
<shevy> lessless, you add an instance method right?
<lessless> right
lsmola has quit [Ping timeout: 245 seconds]
tylersmith has quit [Ping timeout: 246 seconds]
joonty_ is now known as brokenjoonty
<shevy> well
<shevy> Float.new does not exist
brokenjoonty is now known as joonty
g0bl1n has joined #ruby
<shevy> oh man
<shevy> >> module Foo; def foo; puts 'foo';end;end; class Float;include Foo;end;5.5.foo
<eval-in> shevy => foo ... (https://eval.in/74396)
<shevy> lessless it seems you can modify class Float just fine
pagios__ is now known as pagios
<lessless> module Foo; def foo; @foobar = 1; @foobar; end;end; class Float;include Foo;end; 5.5.foo
<lessless> >> module Foo; def foo; @foobar = 1; @foobar; end;end; class Float;include Foo;end; 5.5.foo
<eval-in> lessless => can't modify frozen Float (RuntimeError) ... (https://eval.in/74401)
bluOxigen has joined #ruby
<lessless> ok
<lessless> so, how to cache api response?
<lessless> just do not want to hit network for each to_chf() call :)
<shevy> this is weird
<shevy> what ruby version do you use lessless?
<lessless> ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]
<shevy> cool
<shevy> my ruby version behaves differently - ruby 1.9.3p448 (2013-06-27 revision 41675) [i686-linux]
<shevy> I dont get the "can't modify frozen Float" error
dEPy has quit [Quit: Lingo - http://www.lingoirc.com]
s2013 has quit [Ping timeout: 264 seconds]
<lessless> 'As others have pointed out ruby core has decided Fixnums and Bignums are now frozen'
phansch has quit [Remote host closed the connection]
<lessless> but I can't find any official source
<shevy> cool
maroloccio2 has joined #ruby
maroloccio has quit [Ping timeout: 252 seconds]
fedesilva has quit [Remote host closed the connection]
binaryplease has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
pushpak has joined #ruby
osvico has joined #ruby
baordog has joined #ruby
yjmsf20 has joined #ruby
mojjojo has joined #ruby
DecipheredAFK is now known as Deciphered
Gonzih has quit [Ping timeout: 246 seconds]
Hanmac1 has joined #ruby
browndawg has joined #ruby
Gonzih has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
lsmola has joined #ruby
Squarepy_ has quit [Quit: Leaving]
mojjojo has quit [Quit: mojjojo]
_Andres has joined #ruby
<olivier_bK> i trying to connect in ssh with net/ssh
lsmola_ has quit [Ping timeout: 272 seconds]
thecreators has quit [Quit: thecreators]
zxq9 has joined #ruby
thecreators has joined #ruby
<olivier_bK> when i try to execute the script i get this https://gist.github.com/anonymous/bd2e8803848ad4d9776e
<olivier_bK> and i dont understand the erro
PaulePan1er is now known as PaulePanter
trkic has joined #ruby
trkic has left #ruby [#ruby]
<shevy> olivier_bK I guess you used the API wrong
<shevy> it expects an array and you pass in a string
aspires has joined #ruby
p4d4w4n has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
zipper has quit [Quit: leaving]
noop has quit [Ping timeout: 260 seconds]
SuperDuper has joined #ruby
spike|spiegel has joined #ruby
<shevy> olivier_bK where from do you have .exec!
mojjojo has joined #ruby
<SuperDuper> hello
<Hanmac1> shevy & olivier_bK wrong its not an array its a hash
<SuperDuper> Does anyone here use emacs as their ruby dev environment?
Deciphered is now known as DecipheredAFK
<Hanmac1> shevy & olivier_bK https://github.com/net-ssh/net-ssh
Hanmac1 is now known as Hanmac
thecreators has quit [Ping timeout: 246 seconds]
rhunter has joined #ruby
<shevy> hey I have no idea
<shevy> I would never use a project like this
<shevy> people must stop doing those ssh.exec! 'whatever'
<SuperDuper> hello
<SuperDuper> Does anyone here use emacs as their ruby dev environment?
<SuperDuper> hello
<SuperDuper> Does anyone here use emacs as their ruby dev environment?
<SuperDuper> hello
<SuperDuper> Does anyone here use emacs as their ruby dev environment?
SuperDuper has quit [Killed (idoru (Spam is off topic on freenode.))]
hamakn has joined #ruby
<emocakes> ..
<Hanmac> thats the proof ... emacs makes aggressive
<emocakes> lol
spike|spiegel has quit [Client Quit]
petey has joined #ruby
mojjojo has quit [Quit: mojjojo]
Jetchisel has quit [Ping timeout: 260 seconds]
yedimind has joined #ruby
rhunter has quit [Ping timeout: 246 seconds]
<shevy> lol
<shevy> emocakes uses notepad
<olivier_bK> Hanmac, i read http://net-ssh.github.io/net-ssh/
<emocakes> it works
<Hanmac> olivier_bK: no you did not
Mon_Ouie has joined #ruby
Arzaga has joined #ruby
mojjojo has joined #ruby
<Hanmac> olivier_bK: both pages have the same content, but when you really READ it then you would have seen this: Net::SSH.start('host', 'user', :password => "password") do |ssh|
nebula has quit [Read error: Connection reset by peer]
brtdv has quit [Ping timeout: 246 seconds]
nebula has joined #ruby
Ch4rAss has quit [Ping timeout: 252 seconds]
<wald0> when developing a good application in bash i was used to do things like "queues", so "add-file-to-remove-when-finish" functions, to save the things meant to be saved only when the full process finishes correctly in the end, etc
mikepack has joined #ruby
<wald0> i see ruby as a big and powerful "framework of development", what can be a way in ruby to do these queue tasks ?
petey has quit [Ping timeout: 264 seconds]
dhruvasagar has quit [Ping timeout: 246 seconds]
tagrudev has quit [Remote host closed the connection]
kaspergrubbe has quit [Ping timeout: 252 seconds]
ananthakumaran has joined #ruby
kaspergrubbe has joined #ruby
<pontiki> morning, folks
spike|spiegel has joined #ruby
mengu has quit [Remote host closed the connection]
Bosox20051 has quit [Ping timeout: 246 seconds]
sh1ken has joined #ruby
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
<sh1ken> Hi, I know that this isn't ruby related but any of you guys can know the answer. How many applications can I create in the Twitter API with one account?
yedimind is now known as jedimind
GoodTimes has joined #ruby
emocakes has quit [Quit: Linkinus - http://linkinus.com]
diegoviola has quit [Quit: WeeChat 0.4.2]
adkron has joined #ruby
akhet_ is now known as akhetZzZzZ
fgo has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
kaldrenon has joined #ruby
halfie has quit [Ping timeout: 272 seconds]
includex has joined #ruby
amritanshu_RnD has quit [Quit: Leaving]
mklappstuhl has joined #ruby
mengu has joined #ruby
dhruvasagar has joined #ruby
preller has quit [Ping timeout: 252 seconds]
zz_N00D is now known as CripperZ
ldnunes has quit [Quit: Leaving]
CripperZ is now known as N00D
kaldrenon has quit [Ping timeout: 272 seconds]
Bosox20051 has joined #ruby
pleal has joined #ruby
SirFunk has quit [Ping timeout: 246 seconds]
codelette has quit [Remote host closed the connection]
matti has quit [Quit: Oh dear...]
g0bl1n has quit [Ping timeout: 245 seconds]
psyl0n has quit [Remote host closed the connection]
<ravster> I'm using sidekiq and need to loop through part of an array, save things to a database if they are not there already, and then reschedule the whole thing for 24 hours in the future. How do I do it?
<apeiros> with code!
banghouse2 has joined #ruby
matti has joined #ruby
<apeiros> ravster: seriously - this is a "please solve it for me" type of question. please ask specific questions.
kaspergrubbe has joined #ruby
<olivier_bK> Hanmac, i try a lot of thing
boboc has joined #ruby
banghouse2 is now known as banghouse
<olivier_bK> if i do what they write in http://net-ssh.github.io/net-ssh/ i get the same error
<Hanmac> pastie of your code or it did not happen ;P
mikepack has quit [Remote host closed the connection]
<ravster> apeiros: I'm looking at https://github.com/mperham/sidekiq/commit/1f431cb56d32adc8a69edc1fe9127421a406da10 , and its not clear to me if I can call "reschedule(25.hours.from_now)" within the "perform" method.
ambushsabre has joined #ruby
khoury has joined #ruby
<ravster> The "perform" method of my sidekiq worker.
SirFunk has joined #ruby
<apeiros> ravster: why on earth do you look at *individual git commits* to learn about the API?
<apeiros> that makes no sense at all.
<apeiros> use the docs.
Thanatermesis has joined #ruby
<olivier_bK> i get this error start': wrong number of arguments (1 for 2) (ArgumentError)
mercwithamouth has quit [Ping timeout: 265 seconds]
<khoury> Hello
kaldrenon has joined #ruby
<olivier_bK> khoury, hy
<yasu> Try this: Net::SSH.start('192.168.10.199', 'root', :port =>"22", :password=>'password')
katterstrophe has joined #ruby
<olivier_bK> yasu, i going to try
stringoO has quit [Read error: Connection reset by peer]
estebistec has joined #ruby
<yasu> Net::SSH.start takes 2 or 3 args. start(host, user, options={}) { |connection| ... }
stringoO has joined #ruby
<olivier_bK> yasu, that's working
<Hanmac> yasu: i telled him 3+times how to use it, but it seems he only listen to you ,P
<olivier_bK> okai know i need to know why he doesn't work with 'host', :user=>'user'
<olivier_bK> Hanmac, i listen to you to
<olivier_bK> :)
aspires has quit []
CaptainJet has joined #ruby
<Hanmac> olivier_bK: because the method is not designed like that??? as you can see in the github page that YOU linked to us, and as yasu says its "host, user, options={}" that means host and user are seperated for a reason
<von__> would like to ask, how should I close the single connection with sequel.rb ?
kaspergrubbe has quit [Remote host closed the connection]
sh1ken has quit [Quit: leaving]
fedesilva has joined #ruby
katterstrophe has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<olivier_bK> Hanmac, sorry i dont understand that the first time :(
nbrosnahan has quit [Quit: Textual IRC Client: www.textualapp.com]
<khoury> I have an issue with capistrano if anyone could help: http://stackoverflow.com/questions/20288969/capistrano-netsshauthenticationfailed
<olivier_bK> thanks for your patience and your help
phansch has joined #ruby
psyl0n has joined #ruby
psyl0n has quit [Changing host]
psyl0n has joined #ruby
atno has quit [Remote host closed the connection]
Xeago_ has joined #ruby
lmickh has joined #ruby
tvw has quit [Read error: Connection reset by peer]
DecipheredAFK is now known as Deciphered
gasbakid has joined #ruby
Xeago_ has quit [Remote host closed the connection]
Xeago_ has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
myappleguy has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
vpretzel has joined #ruby
N00D is now known as zz_N00D
Gonzih has quit [Ping timeout: 260 seconds]
kaldrenon has quit [Remote host closed the connection]
brandonhilkert has joined #ruby
taion809 is now known as zzz_taion809
kaldrenon has joined #ruby
Gonzih has joined #ruby
Xeago_ has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
nvrch has quit [Quit: nvrch]
zz_N00D is now known as CripperZ
g0bl1n has joined #ruby
fomatin has joined #ruby
andro6778 has joined #ruby
estebistec has quit [Remote host closed the connection]
andro6778 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
kaldrenon has quit [Ping timeout: 272 seconds]
<lessless> is there a patter to effectively cache api response and make it accessible for multiple class instances?
kaspergrubbe has joined #ruby
mercwithamouth has joined #ruby
dhruvasagar has joined #ruby
andro6778 has joined #ruby
CripperZ is now known as zz_CripperZ
Deciphered is now known as DecipheredAFK
RaCx has joined #ruby
kaldrenon has joined #ruby
kaldrenon has quit [Remote host closed the connection]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tylersmith has joined #ruby
mengu has quit []
g0bl1n has quit [Ping timeout: 264 seconds]
GoodTimes has quit []
GoodTimes has joined #ruby
amoli has quit [Ping timeout: 260 seconds]
andro6778 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
mikepack has joined #ruby
nateberkopec has joined #ruby
rhunter has joined #ruby
boboc has quit []
RichardBaker has joined #ruby
RichardBaker has left #ruby [#ruby]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marcgg_ has joined #ruby
eka has joined #ruby
larssmit has quit [Quit: Leaving.]
araujo has quit [Read error: Connection reset by peer]
GoodTimes has quit [Ping timeout: 264 seconds]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
Kilobyte|StupidC is now known as Kilo`byte
rhunter has quit [Ping timeout: 246 seconds]
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
relix has joined #ruby
marcgg has quit [Ping timeout: 272 seconds]
mikepack has quit [Remote host closed the connection]
falood has quit [Ping timeout: 264 seconds]
relix has quit [Client Quit]
banister has quit [Quit: Textual IRC Client: www.textualapp.com]
RaCx_ has joined #ruby
larissa has joined #ruby
banister has joined #ruby
nateberkopec has quit [Quit: Leaving...]
mikepack has joined #ruby
browndawg has left #ruby [#ruby]
RaCx has quit [Ping timeout: 265 seconds]
RaCx_ is now known as RaCx
vlad_starkov has quit [Remote host closed the connection]
A124 has joined #ruby
brandonhilkert has quit [Quit: Leaving.]
<shevy> olivier_bK in ruby you can pass a hash either with {} or also by omitting the above
<shevy> so Net::SSH.start('192.168.10.199', 'root', :port =>"22", :password=>'password') is the same as Net::SSH.start('192.168.10.199', 'root', { :port =>"22", :password=>'password'})
<shevy> olivier_bK, your eyes must be able to spot those little differences :)
Arzaga has quit [Quit: Computer has gone to sleep.]
nobitanobi has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
Xeago has quit [Remote host closed the connection]
failshell has joined #ruby
rubyracer has joined #ruby
Xeago has joined #ruby
sr78ger has joined #ruby
sumark has quit [Remote host closed the connection]
<_br_> lessless: Interesting question. My first choice would be some proxy like Squid maybe.
chuk has joined #ruby
mikepack has quit [Remote host closed the connection]
jrhe has quit [Quit: jrhe]
sumark has joined #ruby
dangerousdave has joined #ruby
weems has joined #ruby
weems has quit [Changing host]
weems has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<lessless> _br_, I'll stick with global variable ;)
noyb has joined #ruby
nateberkopec has joined #ruby
Lewix has joined #ruby
<canton7> lessless, go with singleton cache class. still effectively a global variable, but nicer to work with
jcromart_ has joined #ruby
<canton7> or make it non-singleton, and just pass the same instance to everything ;)
<canton7> ^^ easier to test
<lessless> canton7, do u have any articles regards this technique implementation nearby?
<canton7> the singleton, or the concept in general?
roadt has joined #ruby
obs has quit [Remote host closed the connection]
jbpros has quit [Quit: jbpros]
<lessless> specifically about cacher, but I found article about implementing Logger, what is almost the same
otherj has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
aspiers has joined #ruby
zeeraw has joined #ruby
drumusician has joined #ruby
pac1 has quit [Remote host closed the connection]
GoodTimes has joined #ruby
larissa has quit [Quit: Leaving]
robert_ has quit [Ping timeout: 252 seconds]
m8 has joined #ruby
shime has quit [Ping timeout: 272 seconds]
obs has joined #ruby
ahawkins has quit [Quit: leaving]
adkron has quit [Ping timeout: 272 seconds]
Bosox20051 has quit [Quit: Leaving]
alo1 has joined #ruby
larissa has joined #ruby
schaary has quit [Quit: Textual IRC Client: www.textualapp.com]
lemonsparrow_ has joined #ruby
einarj has joined #ruby
AntelopeSalad_ is now known as AntelopeSalad
nateberkopec has quit [Quit: Leaving...]
<wald0> when developing a good application in bash i was used to do things like "queues", so "add-file-to-remove-when-finish" functions, to save the things meant to be saved only when the full process finishes correctly in the end, etc
<wald0> i see ruby as a big and powerful "framework of development", what can be a way in ruby to do these queue tasks ?
DecipheredAFK is now known as Deciphered
someish has quit [Quit: someish]
CaptainJet has quit []
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cek has quit [Ping timeout: 246 seconds]
blackmes1 has joined #ruby
jonathanwallace has joined #ruby
<canton7> wald0, if I'm understanding you correctly, you could have an array of procs to execute when the application completes successfully
<waxjar> Fibers perhaps?
einarj has quit [Ping timeout: 272 seconds]
jkhwan has joined #ruby
kaspergrubbe has quit [Ping timeout: 252 seconds]
<_br_> actors.. http://celluloid.io/
mklappstuhl has quit [Remote host closed the connection]
spider-mario has joined #ruby
Lewix has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Xeago_ has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
binaryplease has quit [Ping timeout: 245 seconds]
myappleguy has quit [Ping timeout: 245 seconds]
MrZYX|off is now known as MrZYX
julweber has quit [Remote host closed the connection]
Deciphered is now known as DecipheredAFK
hamakn has quit [Remote host closed the connection]
<wald0> canton7: yes, for example, so i know that in ruby is easier to create arrays and these things, but i just wonder if there's some "more ruby" way to do it, let's say already-made/thinked
zz_CripperZ is now known as CripperZ
myappleguy has joined #ruby
<wald0> for example ruby contains initializers, or "begin"
hamakn has joined #ruby
CripperZ is now known as zz_CripperZ
hamakn has quit [Read error: Connection reset by peer]
<canton7> I doubt there's anything build in for solving that precise, specialised ask
<canton7> *task
<canton7> *built
CaptainJet has joined #ruby
hamakn has joined #ruby
<canton7> hmm, friday afternoon isn't good for my typing ability
sr78ger has quit [Quit: Qui]
<havenwood> an `at_exit do` block
Xeago has quit [Ping timeout: 252 seconds]
<waxjar> too bad the block doesn't receive the exit code as a parameter
lewiz has joined #ruby
Xeago_ has quit [Remote host closed the connection]
Xeago has joined #ruby
coder_neo has joined #ruby
dhruvasagar has quit [Read error: Operation timed out]
<shevy> canton7 you are better on the weekends? :>
aganov has quit [Quit: aganov]
linduxed has quit [Ping timeout: 272 seconds]
OdNairy has joined #ruby
spider-mario has joined #ruby
dhruvasagar has joined #ruby
rasta-man has quit [Quit: rasta-man]
ghr has quit [Quit: Computer has gone to sleep.]
<waxjar> or takes an exit code as an argument and only executes the block if it matches the actual code
ghr has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
yacks has quit [Quit: Leaving]
cek has joined #ruby
mzdravkov has joined #ruby
vongrippen has quit [Ping timeout: 272 seconds]
Xeago has quit [Ping timeout: 246 seconds]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ghr has quit [Read error: Operation timed out]
Spami has joined #ruby
adkron has joined #ruby
euclides has joined #ruby
mzdravkov has left #ruby [#ruby]
mzdravkov has joined #ruby
haukur has joined #ruby
rhunter has joined #ruby
zeeraw has joined #ruby
includex has quit [Ping timeout: 246 seconds]
ananthakumaran has quit [Quit: Leaving.]
pskosinski has joined #ruby
<mzdravkov> I am trying to define a variable in one file, then require the file in other file, but the variable is not set in the second file (the requirer). It's set only if it's $
petey has joined #ruby
ambushsabre has joined #ruby
<shevy> mzdravkov yeah, default behaviour
asteros has joined #ruby
<shevy> mzdravkov some workarounds. use a $global var. or a CONSTANT
<mzdravkov> oh, it works if it's @ too
<shevy> yeah
apeiros has quit [Remote host closed the connection]
rhunter has quit [Ping timeout: 264 seconds]
Lewix has joined #ruby
shime has joined #ruby
Lewix has quit [Remote host closed the connection]
<wald0> havenwood: nice, so "at_exit" is like a "jobs to run when finish", is there other "jobs" related things nice to know ?
<wald0> for example the ones to be run when something has failed
<wald0> mmh, signals/trap for ruby ?
petey has quit [Ping timeout: 245 seconds]
Skylab has quit [Quit: Skylab]
lkba has quit [Ping timeout: 264 seconds]
user258467 has quit [Quit: Quitte]
myappleguy has quit [Ping timeout: 272 seconds]
avril14th has quit [Remote host closed the connection]
lemonsparrow_ has quit [Quit: Page closed]
g0bl1n has joined #ruby
Lewix has joined #ruby
aspiers has quit [Ping timeout: 252 seconds]
danshultz has joined #ruby
joonty has quit [Quit: WeeChat 0.4.2]
drumusician has quit [Ping timeout: 252 seconds]
Al__ has joined #ruby
dagobah has quit [Remote host closed the connection]
echevemaster has joined #ruby
otherj has quit []
mojjojo has quit [Read error: Connection reset by peer]
Al_ has quit [Ping timeout: 252 seconds]
sleetdrop has joined #ruby
pel_daniel has joined #ruby
Deejay has quit [Ping timeout: 272 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lkba has joined #ruby
<wald0> just played/tried jekyll, its very nice :)
diegoviola has joined #ruby
mojjojo has joined #ruby
<mzdravkov> how can I get some variable if i have the string name of it. If I want to do the same with method there is send(), but how it is done with vars?
<mzdravkov> I know I can use eval, but I am not desperate enough for it :D
<diegoviola> hi
RaCx has joined #ruby
<diegoviola> do you guys recommend writing tests first and then functional code to make it pass or the other way around? i'm a bit new with testing
paul_k_ is now known as paul_k
jlebrech has quit [Quit: Konversation terminated!]
<nobitanobi> diegoviola, I like that approach. Writting tests first and then writting code.
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
s2013 has joined #ruby
shime has quit [Ping timeout: 272 seconds]
yjmsf20 has quit [Quit: Lost terminal]
psyl0n has quit [Remote host closed the connection]
wallerdev has joined #ruby
olivier_bK has quit [Ping timeout: 252 seconds]
timonv has quit [Remote host closed the connection]
<diegoviola> nobitanobi: right, i like that approach, but what if you are uncertain of the objects/variables/methods that you will create in the actual code? wouldn't it be then more difficult to write the tests first?
roolo has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
<diegoviola> in that case
timonv has joined #ruby
zombiebit has joined #ruby
rkrdo has joined #ruby
jbpros has joined #ruby
jbpros has quit [Client Quit]
hamakn has quit [Ping timeout: 265 seconds]
dnyy has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
jbpros has joined #ruby
randomnick_ has joined #ruby
Yan__ has joined #ruby
RaCx has joined #ruby
shaunbaker has quit [Remote host closed the connection]
pwh has joined #ruby
nobitanobi has quit [Read error: Operation timed out]
DecipheredAFK is now known as Deciphered
diegoviola has quit [Quit: WeeChat 0.4.2]
rkrdo has quit [Client Quit]
timonv has quit [Ping timeout: 264 seconds]
dhruvasagar has quit [Ping timeout: 264 seconds]
GoodTimes has quit [Ping timeout: 260 seconds]
jhamm has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
g0bl1n has quit [Ping timeout: 264 seconds]
jbpros has quit [Quit: jbpros]
Mon_Ouie has quit [Read error: Operation timed out]
ewnd9 has quit [Ping timeout: 260 seconds]
banister has joined #ruby
jalcine has quit [Excess Flood]
jhamm has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
bigkevmcd has quit [Quit: Ex-Chat]
g0bl1n has joined #ruby
klaut has quit [Remote host closed the connection]
kidoz has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
jbpros has joined #ruby
allanm has quit [Read error: No route to host]
yfeldblum has joined #ruby
Deciphered is now known as DecipheredAFK
myappleguy has joined #ruby
jhamm has quit [Client Quit]
momomomomo has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jalcine_ has joined #ruby
asteros has quit [Quit: asteros]
jbpros has quit [Client Quit]
jalcine_ has quit [Excess Flood]
Linux_Extremist has joined #ruby
Linux_Extremist has quit [Max SendQ exceeded]
BizarreCake has quit [Read error: Connection reset by peer]
Linux_Extremist has joined #ruby
dangerousdave has joined #ruby
brtdv has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
kofno has joined #ruby
haukur_ has joined #ruby
xk_id has quit [Quit:
Spami has quit [Quit: This computer has gone to sleep]
diegoviola has joined #ruby
haukur_ has quit [Client Quit]
haukur_ has joined #ruby
vlad_starkov has joined #ruby
wald0 has left #ruby [#ruby]
noop has joined #ruby
wald0 has joined #ruby
haukur has quit [Ping timeout: 260 seconds]
robert_ has joined #ruby
adkron has quit [Ping timeout: 246 seconds]
barratt has quit [Read error: Operation timed out]
asteros has joined #ruby
Gonzih has quit [Ping timeout: 260 seconds]
Gonzih has joined #ruby
obs has quit [Quit: Saliendo]
chuk has quit [Quit: Leaving]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kofno has quit [Ping timeout: 246 seconds]
hiall has quit [Quit: hiall]
camilasan has quit []
coder_neo has quit [Ping timeout: 272 seconds]
hiyosi has quit [Ping timeout: 272 seconds]
xk_id has joined #ruby
brianpWins has quit [Quit: brianpWins]
MetaCosm_ is now known as MetaCosm
nobitanobi has joined #ruby
myappleguy has quit [Ping timeout: 260 seconds]
zombiebit has quit [Remote host closed the connection]
TMM has quit [Quit: Ex-Chat]
Fire-Dragon-DoL has joined #ruby
<_br_> Anyone have an idea how I can force headless gem or watir-webdriver into different resolutions?
zombiebit has joined #ruby
zombiebit has quit [Read error: Connection reset by peer]
zombiebit has joined #ruby
rhunter has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
rhunter has quit [Ping timeout: 246 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
coder_neo has joined #ruby
zombiebit has quit [Remote host closed the connection]
aspiers has joined #ruby
zombiebit has joined #ruby
Beoran has joined #ruby
rdark has quit [Quit: leaving]
Megtastique has joined #ruby
relix has joined #ruby
zhbfvuvabar87r has joined #ruby
zhbfvuvabar87r has quit [Excess Flood]
<havenwood> diegoviola: Sometimes REPL driven development or hammock driven development are a better fit than test driven development.
<havenwood> diegoviola: it depends
adkron has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
g0bl1n has quit [Ping timeout: 246 seconds]
Tamal has joined #ruby
Tamal has quit [Client Quit]
matheuscaceres has quit [Quit: matheuscaceres]
<canton7> shevy, fair point...
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
zombiebit has quit [Ping timeout: 264 seconds]
<diegoviola> havenwood: thanks
<diegoviola> i see
matheuscaceres has joined #ruby
troessner has quit [Quit: Leaving]
RaCx has joined #ruby
CaptainJet has quit []
asteros has quit [Quit: asteros]
Linux_Extremist has quit [Quit: Leaving]
michael_lee has quit [Remote host closed the connection]
wald0 has quit [Quit: Lost terminal]
jragon has joined #ruby
apeiros has joined #ruby
jragon has quit [Changing host]
jragon has joined #ruby
noop has quit [Ping timeout: 252 seconds]
noop has joined #ruby
fomatin has joined #ruby
zombiebit has joined #ruby
cek has quit [Ping timeout: 245 seconds]
brtdv has quit []
DecipheredAFK is now known as Deciphered
brtdv has joined #ruby
CaptainJet has joined #ruby
GoodTimes has joined #ruby
Princip has quit [Read error: Connection reset by peer]
JoeTheGuest has joined #ruby
agjacome has joined #ruby
JoeTheGuest has quit [Changing host]
JoeTheGuest has joined #ruby
JoeTheGuest has quit [Changing host]
JoeTheGuest has joined #ruby
watermel0n has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
ephemerian has quit [Quit: Leaving.]
dtcrshr has joined #ruby
dtcrshr has joined #ruby
dtcrshr has quit [Changing host]
jeffdb has joined #ruby
Deciphered is now known as DecipheredAFK
xk_id has quit [Quit:
cek has joined #ruby
Linux_Extremist has joined #ruby
inad922 has quit [Quit: ChatZilla 0.9.90.1 [Firefox 25.0.1/20131112160018]]
RaCx has joined #ruby
brianpWins has joined #ruby
DaZ has quit [Ping timeout: 252 seconds]
asteros has joined #ruby
jeffdb has quit [Ping timeout: 245 seconds]
khoury has quit [Remote host closed the connection]
Guest16922 has quit [Remote host closed the connection]
asteros has quit [Client Quit]
michael_mbp has quit [Remote host closed the connection]
zombiebit has quit [Remote host closed the connection]
michael_mbp has joined #ruby
IceDragon has joined #ruby
nebula has quit [Quit: Konversation terminated!]
zombiebit has joined #ruby
noyb has quit [Ping timeout: 252 seconds]
pleal has quit [Read error: Connection reset by peer]
myappleguy has joined #ruby
Monie has joined #ruby
pleal has joined #ruby
mikestok has joined #ruby
roolo has joined #ruby
Yan___ has joined #ruby
hiyosi has joined #ruby
DaZ has joined #ruby
Yan__ has quit [Ping timeout: 252 seconds]
danshultz has quit [Remote host closed the connection]
Old_dev has joined #ruby
danshultz has joined #ruby
JohnBat26 has quit [Ping timeout: 246 seconds]
Linux_Extremist has quit [Quit: Leaving]
brtdv has quit []
kirun has joined #ruby
Flawless has joined #ruby
hamakn has joined #ruby
bluOxigen has joined #ruby
sambao21 has joined #ruby
brtdv has joined #ruby
<shevy> it's always so boring to think about tests first rather than features
osvico has quit [Ping timeout: 246 seconds]
Yan__ has joined #ruby
duggiefresh has joined #ruby
<Flawless> hey guys. I installed ruby 2.0.0p353 with bundle 1.3.5, to install some packages (for using gitlab)
Yan___ has quit [Ping timeout: 246 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jdubs has joined #ruby
<Jdubs> Hello o/
danshultz has quit [Ping timeout: 260 seconds]
mojjojo has quit [Quit: mojjojo]
<Jdubs> I have a problem: I have an object loading that hasMany of something. How can I load those if they aren't included in the initial API call for the parent item?
<shevy> huh
tenjack has joined #ruby
<shevy> what is hasMany
<shevy> is that a rails thing
freerobby has joined #ruby
osvico has joined #ruby
iz has quit [Remote host closed the connection]
pskosinski has quit [Quit: Til rivido Idisti!]
jalcine- has joined #ruby
<Hanmac> shevy is "its a rails thing" the new "its a jersey thing" ? ;P
banghouse has quit [Remote host closed the connection]
nisstyre has joined #ruby
<shevy> I was thinking of lolcats
<shevy> mouse.hasCheese?
AndChat| has joined #ruby
Megtastique has quit []
wallerdev has quit [Quit: wallerdev]
_bart has joined #ruby
Megtastique has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
Yan__ has quit [Quit: No Ping reply in 180 seconds.]
Yan__ has joined #ruby
iliketurtles has joined #ruby
iliketurtles has quit [Max SendQ exceeded]
zigomir has joined #ruby
<shevy> Hanmac what are you coding lately
iliketurtles has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
<Hanmac> shevy i am working on my wxwidgets binding again ... try to make as much classes as possible mashal_dump'able ...
hamakn has quit [Remote host closed the connection]
<Jdubs> oops sorry guys, I typed into my wrong chatroom :P
<Jdubs> Meant to ask that in my emberjs window!
hamakn has joined #ruby
<shevy> yay
<shevy> I mean yay to Hanmac
<shevy> I will have an alternative to ruby-gtk
Speed has joined #ruby
<shevy> Hanmac can we install it as a gem?
<shevy> gem install hanmac_widgets
<Hanmac> i didnt packaged as a gem ... i mean it has a Rakefile and also a gemspec but i didnt pushed it yet to rubygems
rhunter has joined #ruby
<AndChat|> Hanmac Sup hans
<Hanmac> hm i need to test if the Rakefile is sitll working
adkron has quit [Quit: WeeChat 0.4.2]
petey has joined #ruby
pleal has quit [Read error: Connection reset by peer]
heftig has quit [Ping timeout: 265 seconds]
pleal has joined #ruby
DecipheredAFK is now known as Deciphered
xk_id has joined #ruby
ravster has quit [Quit: Leaving.]
<cek> how do I make a nodeset of several attributes with xpath?
hamakn has quit [Ping timeout: 264 seconds]
RaCx has joined #ruby
heftig has joined #ruby
larissa has quit [Quit: Leaving]
newbiehacker has joined #ruby
rhunter has quit [Ping timeout: 265 seconds]
jhaals has joined #ruby
petey has quit [Ping timeout: 245 seconds]
<lessless> is it possible to add html_safe to the result string of this method https://gist.github.com/dirty-hippie/7710494 ?
dangerousdave has quit [Read error: Connection reset by peer]
BizarreCake has joined #ruby
<apeiros> lessless: just try it?
reset has joined #ruby
<apeiros> lessless: note wrt here-docs, the method is chained at the start. e.g. foo = <<-HEREDOC.chain.comes.here
<lessless> apeiros, can't find string "html" anywhere before EOF
<lessless> ok
jhaals has quit [Client Quit]
mando has quit [Remote host closed the connection]
Yan__ has quit [Ping timeout: 246 seconds]
sheap has joined #ruby
Deciphered is now known as DecipheredAFK
jhaals has joined #ruby
zz_tsykoduk is now known as tsykoduk
jhaals has quit [Client Quit]
zigomir has quit [Quit: zigomir]
RaCx has quit [Quit: Computer has gone to sleep.]
Baluse has joined #ruby
<Baluse> hello
jhaals has joined #ruby
<havenwood> Baluse: hellooo
BizarreCake has quit [Ping timeout: 260 seconds]
jhaals has quit [Client Quit]
<shevy> Hanmac you need to write more gems!
freerobby has quit [Quit: Leaving.]
<Hanmac> cek: like that? Nokogiri::XML('<a attr1="value2" attr2="value2 />').xpath("./a").first.attribute_nodes ##=> [#<Nokogiri::XML::Attr:0x119aa18 name="attr1" value="value2">, #<Nokogiri::XML::Attr:0x119aa04 name="attr2" value="value2 />">]
Megtastique has quit []
<cek> that's returning *all* attrs, but i need to return only a couple of them
<cek> all that with xpath. I guess, i'm asking for too much
Al__ has quit [Quit: Al__]
Mon_Ouie has joined #ruby
s2013 has quit [Ping timeout: 264 seconds]
OdNairy has quit [Ping timeout: 264 seconds]
<Hanmac> cek: like that? Nokogiri::XML('<a attr1="value2" attr2="value2" attr3="value3" />').xpath("./a").first.attributes.values_at("attr1","attr3") #=> [#<Nokogiri::XML::Attr:0x150cef8 name="attr1" value="value2">, #<Nokogiri::XML::Attr:0x150ced0 name="attr3" value="value3">]
Megtastique has joined #ruby
<cek> cek> all that with xpath
jamesaanderson has joined #ruby
<Hanmac> cek i get it working, but i dont like it: Nokogiri::XML('<a attr1="value1" attr2="value2" attr3="value3" />').xpath("./a/@attr1|./a/@attr2") #=> [#<Nokogiri::XML::Attr:0x1557854 name="attr1" value="value1">, #<Nokogiri::XML::Attr:0x1557638 name="attr2" value="value2">]
<cek> yeah, that shit looks good. except that i use rexml
OdNairy has joined #ruby
<Hanmac> cek the xpath should work too, if not throw rexml away
timonv has joined #ruby
Elhu has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
duggiefresh has quit [Remote host closed the connection]
drumusician has joined #ruby
jamesaanderson has quit [Client Quit]
iajrz_ has joined #ruby
vlad_starkov has joined #ruby
iajrz_ is now known as iajrz
<cek> <Ankh> that might require XPath 2, I don't remember, but if it doesn't work, //sock/@*[name() = 'colour' or name() = 'size']
BizarreCake has joined #ruby
shredding has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
cek has quit [Quit: thanks, all worked!]
tsykoduk is now known as zz_tsykoduk
jhamm has joined #ruby
decoponio has quit [Quit: Leaving...]
myappleguy has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
duggiefresh has joined #ruby
bluOxigen has quit [Ping timeout: 272 seconds]
mojjojo has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 272 seconds]
jhamm has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
atno has joined #ruby
banister has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
lkba has quit [Ping timeout: 272 seconds]
duggiefresh has quit [Remote host closed the connection]
matheuscaceres has quit [Quit: matheuscaceres]
mojjojo has quit [Client Quit]
Elhu has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
newbiehacker has quit [Read error: Connection reset by peer]
jrhe has joined #ruby
newbiehacker has joined #ruby
<jragon> How would I map 10.downto(1).to_a to a hash where the key is the same as the value? I.E. {1: 1, 2: 2, 3: 3}
zombiebit has quit [Remote host closed the connection]
Elhu has joined #ruby
pleal has quit [Remote host closed the connection]
<jragon> Okay, ignore that. I was just being silly xD
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nobitanobi has quit [Ping timeout: 260 seconds]
iliketurtles has quit [Quit: zzzzz…..]
mojjojo has joined #ruby
<havenwood> >> Hash[10.downto(1).map { |n| [n, n] }]
<eval-in> havenwood => {10=>10, 9=>9, 8=>8, 7=>7, 6=>6, 5=>5, 4=>4, 3=>3, 2=>2, 1=>1} (https://eval.in/74472)
vongrippen has joined #ruby
danshultz has joined #ruby
<havenwood> jragon: or in Ruby 2.1: 10.downto(1).map { |n| [n, n] }.to_h
<banister> havenwood nice, we got to_h ?
<banister> >> [[1, 2], [3, 4]].to_h
<eval-in> banister => undefined method `to_h' for [[1, 2], [3, 4]]:Array (NoMethodError) ... (https://eval.in/74474)
claymore has joined #ruby
<banister> >> RUBY_VERSION
<havenwood> banister: Only in 2.1!
<eval-in> banister => "2.0.0" (https://eval.in/74475)
<banister> ah
reset has quit [Quit: Leaving...]
iliketurtles has joined #ruby
<banister> havenwood it only works on arrays?
<banister> havenwood what else does it work on?
<banister> (in core)
DecipheredAFK is now known as Deciphered
akhetZzZzZ is now known as akhet
akhet has quit [Changing host]
akhet has joined #ruby
<havenwood> banister: nil, struct, array and hash
<havenwood> banister: i don't know if there are others
zigomir has joined #ruby
mojjojo has quit [Quit: mojjojo]
lessless has quit [Remote host closed the connection]
roadt has quit [Ping timeout: 246 seconds]
<havenwood> well, i guess nil already got it in 2.0
tedstrik_ has joined #ruby
mojjojo has joined #ruby
<havenwood> >> nil.to_h
<eval-in> havenwood => {} (https://eval.in/74478)
vlad_starkov has quit [Remote host closed the connection]
<havenwood> well, Struct did too
Kabaka has quit [Quit: s/Kabaka//]
fschuindt has joined #ruby
vlad_starkov has joined #ruby
sparrovv has joined #ruby
rhunter has joined #ruby
pwh has quit []
Liothen has joined #ruby
vlad_sta_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
BizarreCake has quit [Read error: Connection reset by peer]
weeb1e has joined #ruby
arietis has joined #ruby
spider-mario has quit [Remote host closed the connection]
Czupa has joined #ruby
freezey has joined #ruby
duggiefresh has joined #ruby
jamesaanderson has joined #ruby
p4d4w4n has quit [Quit: This computer has gone to sleep]
Deciphered is now known as DecipheredAFK
rhunter has quit [Ping timeout: 260 seconds]
jkhwan has quit [Remote host closed the connection]
Kabaka has joined #ruby
shredding has quit [Quit: shredding]
jkhwan has joined #ruby
pleal has joined #ruby
jkhwan has quit [Read error: Connection reset by peer]
jkhwan has joined #ruby
Spami has joined #ruby
adambeynon has joined #ruby
morenoh149 has joined #ruby
ffranz has quit [Quit: Leaving]
<MrZYX> 21>> [[1, 2],[3, 4]].to_h
<MrZYX> mmh doesn't work in that direction :(
banister has quit [Ping timeout: 260 seconds]
Hanmac1 has joined #ruby
<PPH> how can I pass args and block to public_send?
<MrZYX> just do it
bgy has joined #ruby
jhaals has joined #ruby
zz_tsykoduk is now known as tsykoduk
<MrZYX> >> "foo".chars.public_send(:map, &:upcase).public_send(:join, ' ')
<eval-in> MrZYX => "F O O" (https://eval.in/74480)
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mojjojo has quit [Quit: mojjojo]
Spami has quit [Client Quit]
rickruby has quit [Remote host closed the connection]
vlad_sta_ has quit [Remote host closed the connection]
adambeynon has quit [Client Quit]
divi has joined #ruby
<PPH> like this? def method_missing(m, *args, &block); m.public_send(args, &block); end
jhaals has quit [Client Quit]
<apeiros> PPH: any arguments passed to send/public_send are passed on to the named method
Hanmac has quit [Ping timeout: 260 seconds]
<apeiros> that includes the block
Hanmac has joined #ruby
<apeiros> foo.public_send(:method_name, *args) { …block… }
<apeiros> or foo.public_send(:method_name, *args, &block)
<Hanmac> you forgot the **kargs ,P
<PPH> awesome thanks
fomatin has quit [Quit: Computer has gone to sleep.]
<PPH> Hanmac, what do you mean?
<MrZYX> PPH: ruby 2.0 got keyword args, and **foo is the equivalent to *foo for normal arguments
Hanmac1 has quit [Ping timeout: 246 seconds]
haukur_ has quit []
colonolGron has joined #ruby
<PPH> MrZYX, I'm not sure I understand I'll try to find some doc about it. Thank you
vlad_starkov has joined #ruby
breakingthings has quit []
banister has joined #ruby
<shevy> let's all strengthen our ruby powers
dagen has joined #ruby
mzdravkov has quit [Ping timeout: 272 seconds]
adambeynon has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
andikr has quit [Remote host closed the connection]
estebistec has joined #ruby
_Andres has joined #ruby
f0ster has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
vlad_starkov has quit [Remote host closed the connection]
mzdravkov has joined #ruby
vlad_starkov has joined #ruby
allanm has joined #ruby
mercwithamouth has quit [Quit: Lost terminal]
tsykoduk is now known as zz_tsykoduk
momomomomo has quit [Quit: momomomomo]
dtcrshr has quit [Read error: Connection reset by peer]
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has joined #ruby
RaCx has joined #ruby
Spami has joined #ruby
ddd_ has joined #ruby
dtcrshr has joined #ruby
banghouse has joined #ruby
banghouse is now known as Guest7533
Elhu has joined #ruby
SHyx0rmZ has joined #ruby
noop has quit [Ping timeout: 245 seconds]
morenoh149 has quit [Ping timeout: 265 seconds]
morenoh159 has joined #ruby
timonv has quit [Ping timeout: 260 seconds]
freezey has quit [Read error: Connection reset by peer]
yacks has joined #ruby
freezey has joined #ruby
Guest7533 has quit [Ping timeout: 252 seconds]
ambushsabre has joined #ruby
fomatin has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
freezey has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
diego1 has joined #ruby
diegoviola has quit [Ping timeout: 245 seconds]
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
Jetchisel has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
estebistec has quit [Remote host closed the connection]
jibi has joined #ruby
pushpak has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
rickruby has joined #ruby
zombiebit has joined #ruby
jrhe has quit [Quit: jrhe]
fedesilv_ has joined #ruby
jrhe has joined #ruby
benzrf has joined #ruby
<benzrf> retry is just tail recursion isn't it
Kabaka has quit [Ping timeout: 240 seconds]
<apeiros> retry isn't recursion at all.
<benzrf> well
<benzrf> it is LIKE tail-recursion
zombiebit has quit [Ping timeout: 272 seconds]
<apeiros> o0
<apeiros> is a while loop like tail-recursion too?
rickruby has quit [Ping timeout: 246 seconds]
<benzrf> yep
fedesilva has quit [Ping timeout: 246 seconds]
h4mz1d has joined #ruby
<apeiros> you have an odd definition of recursion then.
<benzrf>
Flawless has quit []
fedesilv_ has quit [Read error: Connection reset by peer]
fedesilva has joined #ruby
xk_id has quit [Ping timeout: 245 seconds]
jerius has joined #ruby
shime has joined #ruby
DecipheredAFK is now known as Deciphered
dagen has quit []
<shevy> rescue
<shevy> benzrf we can talk in pure ruby code
<benzrf> pfft
<benzrf> wait is retry the one that restarts the method
<benzrf> or is that redo
divi has joined #ruby
<benzrf> also is raise a method
<benzrf> oh neat
wallerdev has joined #ruby
morenoh159 has quit [Ping timeout: 265 seconds]
xk_id has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
fedesilva has quit [Remote host closed the connection]
morenoh149 has joined #ruby
fedesilva has joined #ruby
estebistec has joined #ruby
divi has quit [Ping timeout: 252 seconds]
jerius has quit []
jcromart_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duggiefresh has quit [Remote host closed the connection]
Deciphered is now known as DecipheredAFK
h4mz1d has quit [Ping timeout: 245 seconds]
m8 has quit [Quit: Sto andando via]
ph8 has quit [Ping timeout: 272 seconds]
rhunter has joined #ruby
petey has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
gasbakid has quit [Read error: Connection reset by peer]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jcromart_ has joined #ruby
highbass has joined #ruby
<highbass> how do i make a not of a regex... for example if (x =~ /\b(all|tcp|udp)\b/)
<highbass> i need the negation of that statment..
<highbass> therefor anything that is not all or tcp or udp
<Hanmac> !~
<Hanmac> or use unless
<highbass> hmm i keep getting error with using !~
<highbass> Hanmac: how would i use unless?
petey has quit [Ping timeout: 245 seconds]
rhunter has quit [Ping timeout: 260 seconds]
<Hanmac> like that? unless x =~ /\b(all|tcp|udp)\b/
tntnt has joined #ruby
<shevy> highbass is just negating of =~
<shevy> errors should not be possible there
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
<highbass> shevy: i am using puppet and putting it in a erb template... not sure if its the way template handles it... going to try unless
brupeb has joined #ruby
<MrZYX> highbass: also equivalent: unless %w(all tcp udp).include? x
euclides has quit [Remote host closed the connection]
<MrZYX> unless x really contains more than one word
<Hanmac> MrZYX: hm not so you forgot the \b part
<highbass> yea :o.. thanks for the suggestion guys... unless worked great!
<MrZYX> it smells like a /^...$/ to me ;P
* apeiros somewhere has Negexp, with Regexp#~ returning a Negexp
ph8 has joined #ruby
<apeiros> all results truthiness inverted
<apeiros> useful for e.g. #grep or #case
<apeiros> err, case, not #case
euclides_ has joined #ruby
ringaroses has joined #ruby
ItSANgo has quit [Ping timeout: 260 seconds]
cndiv has joined #ruby
watermel0n has quit []
<michael_mbp> hi all
<benzrf> hello michael_mbp
<benzrf> hows it goin
<benzrf> apeiros: isnt #grep just #select
<apeiros> no
<benzrf> hm?
<benzrf> thats what it is in perl tho ?
morenoh149 has quit [Ping timeout: 272 seconds]
<apeiros> been almost a decade since I last did serious perl
<apeiros> so I couldn't tell.
otherj has joined #ruby
pleal has quit [Quit: Leaving...]
jrhe has quit [Quit: jrhe]
<Hanmac> hm grep and select are similar but not the same
iliketurtles has joined #ruby
ItSANgo has joined #ruby
momomomomo has joined #ruby
jrhe has joined #ruby
<benzrf> what's the diff?
dEPy has joined #ruby
<Hanmac> apeiros: about Negexp, bad that //n is aready given ;P
ItSAN____ has joined #ruby
Baluse has quit []
<Hanmac> benzrf: for sample grep only works with objects that respond to ===, select only works with block/proc
diegoviola has quit [Ping timeout: 272 seconds]
<benzrf> so
<benzrf> foo.grep(bar) == foo.select {|item| item === bar}
aryaching has quit [Ping timeout: 246 seconds]
<Hanmac> otherwise
<Hanmac> its foo.select {|item| bar === item}
kofno has joined #ruby
banister has quit [Ping timeout: 252 seconds]
It_______ has joined #ruby
tommyvyo has joined #ruby
tommyvyo has joined #ruby
ItSANgo has quit [Ping timeout: 246 seconds]
skaflem has quit [Quit: Leaving]
<Hanmac> shevy & apeiros: hmhmhmhm i found something funnny
<Hanmac> >> ["a","3", "b","4","c","5"].grep(/\d/,&:to_i)
<eval-in> Hanmac => [3, 4, 5] (https://eval.in/74506)
vanstee_ has joined #ruby
maroloccio2 has quit [Quit: WeeChat 0.4.1]
vanstee_ has left #ruby [#ruby]
ItSAN____ has quit [Ping timeout: 272 seconds]
<highbass> exit
highbass has quit [Quit: leaving]
yfeldblu_ has joined #ruby
It_______ has quit [Quit: Leaving...]
kaspergrubbe has joined #ruby
tadassce has joined #ruby
pencilcheck has quit [Read error: Connection reset by peer]
pen has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
zombiebit has joined #ruby
phansch has quit [Quit: Leaving]
adambeynon has joined #ruby
amoli has joined #ruby
zombiebit has quit [Ping timeout: 252 seconds]
fomatin has quit [Quit: Computer has gone to sleep.]
ItSANgo has joined #ruby
yfeldblu_ has quit [Quit: Leaving...]
pwh has joined #ruby
yfeldblum has joined #ruby
<shevy> hmm
<shevy> >> ["a","3", "b","4","c","5"].select(/\d/,&:to_i)
<eval-in> shevy => wrong number of arguments (1 for 0) (ArgumentError) ... (https://eval.in/74521)
<shevy> >> ["a","3", "b","4","c","5"].select(/\d/).map(&:to_i)
<eval-in> shevy => wrong number of arguments (1 for 0) (ArgumentError) ... (https://eval.in/74522)
<shevy> oops I am dumb
newbiehacker has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
zombiebit has joined #ruby
benzrf has quit [Quit: Lost terminal]
zombiebit has quit [Remote host closed the connection]
pwh has quit [Client Quit]
zz_CripperZ is now known as CripperZ
Czupa has quit [Read error: Operation timed out]
yfeldblu_ has joined #ruby
fuhgeddaboudit has joined #ruby
barratt has joined #ruby
coder_neo has quit [Quit: Leaving]
CripperZ is now known as N00D
yfeldblum has quit [Ping timeout: 246 seconds]
jibi has quit [Quit: .]
moneydouble has joined #ruby
error404 has quit [Quit: Resizing this droplet]
shime has quit [Quit: Lost terminal]
tntnt has quit [Ping timeout: 272 seconds]
tntnt has joined #ruby
shime has joined #ruby
Barrin6 has joined #ruby
charliesome has joined #ruby
sailias has quit [Ping timeout: 260 seconds]
Spami has joined #ruby
robonerd has quit [Ping timeout: 252 seconds]
hoyang_ has quit [Ping timeout: 252 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
sailias has joined #ruby
robonerd has joined #ruby
hoyang has joined #ruby
jedimind has quit [Quit: Textual IRC Client: www.textualapp.com]
jalcine- is now known as jalcine
jalcine has quit [Changing host]
jalcine has joined #ruby
mercwithamouth has joined #ruby
stringoO has quit [Quit: stringoO]
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
adambeynon has joined #ruby
SirFunk has quit [Remote host closed the connection]
benzrf has joined #ruby
rhunter has joined #ruby
<benzrf> hey
SirFunk has joined #ruby
<benzrf> what's the best way to slurp a file?
culturelabs has joined #ruby
<Hanmac> what is "slurp"?
<apeiros> as always - define 'best'
<benzrf> apeiros: :P
eldewall has joined #ruby
<benzrf> ok, what's the shortest way that doesnt have serious issues
<apeiros> see File::read
shime has quit [Ping timeout: 260 seconds]
<benzrf> thanks
<shevy> Hanmac he wants to slurp
<shevy> benzrf File.readlines!!!!!!!!!
<apeiros> which variant has serious issues?
<Hanmac> File.foreach
<shevy> hehehe
<benzrf> idk
<benzrf> for all i know some slurping method leaves an fd open
<shevy> this is ruby
<shevy> {
<shevy> }
<shevy> feel the power of blocks benzrf
<apeiros> benzrf: yeah, if you're silly and use open wrongly.
<apeiros> File.open(path).read # <-- BAD
<shevy> \o/
<apeiros> File.open(path, &:read) # <-- OK
<shevy> ack
<benzrf> hmmmm
<apeiros> File.read(path) # <-- Same, but much shorter
<benzrf> how do I get argv>
<shevy> in ARGV
<apeiros> ARGV
shime has joined #ruby
<shevy> IN RUBY YOU MUST LEARN TO LOOK AT THE BIG LETTERS
<benzrf> k
<shevy> benzrf did you write a gem yet
valesk has joined #ruby
<benzrf> hmm?
<benzrf> no, was i going to?
rhunter has quit [Ping timeout: 252 seconds]
<benzrf> what is map!
newbiehacker has joined #ruby
kofno has quit [Ping timeout: 260 seconds]
brupeb has quit [Remote host closed the connection]
<benzrf> ??
jkhwan has quit [Remote host closed the connection]
brtdv has quit []
zz_scottstamp is now known as scottstamp
<Hanmac> benzrf: map! is like self.replace(self.map)
jkhwan has joined #ruby
<benzrf> no i mean
<benzrf> there IS no map!
<benzrf> oh wait
<benzrf> derp i was using a string instead of an array
<benzrf> -.- ok that makes sense
sailias has quit [Ping timeout: 246 seconds]
<Hanmac> benzrf: String is no Enumerable anymore, so no #map method
julian` has quit [Ping timeout: 252 seconds]
yfeldblu_ has quit [Remote host closed the connection]
otherj has quit []
yfeldblum has joined #ruby
<apeiros> damn! black friday is ending and I still don't know whether it's an ipad air or mini, space gray or silver :-(
estebistec has quit [Remote host closed the connection]
yfeldblum has quit [Client Quit]
sheap has quit [Quit: Lost terminal]
tommyvyo has quit [Quit: Textual IRC Client: www.textualapp.com]
Lewis has joined #ruby
jkhwan_ has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
timonv has joined #ruby
yfeldblum has joined #ruby
jalcine has quit [Excess Flood]
rubyracer has quit [Read error: No route to host]
RaCx_ has joined #ruby
RaCx has quit [Ping timeout: 252 seconds]
RaCx_ is now known as RaCx
<apeiros> lol
jcromart_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
GoodTimes has quit [Ping timeout: 246 seconds]
danshultz has joined #ruby
yfeldblum has joined #ruby
duggiefresh has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
yfeldblu_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
Spami has quit [Quit: This computer has gone to sleep]
<AndChat|> Ha
Shidash has joined #ruby
nobitanobi has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 245 seconds]
<shevy> benzrf yes, you must write gems eventually and push to rubygems.org
danshultz has quit [Ping timeout: 260 seconds]
<shevy> Hanmac how do you find these things
havenwood has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 265 seconds]
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> :|
sailias has joined #ruby
failshel_ has joined #ruby
<shevy> benzrf u clicked
myappleguy has joined #ruby
RaCx has quit [Ping timeout: 246 seconds]
<shevy> that's why hanmac never finishes his documentation
<shevy> too busy googling :P
<benzrf> shevy: haskell is still awesome
<benzrf> :0D
<benzrf> does ruby have a simple way to programmatically execute other ruby line-by-line and examine the program state in between linse?
<benzrf> *lines
<ua_> can i use capybara-webkit for scraping content from sites with lots of js?
failshell has quit [Ping timeout: 245 seconds]
<shevy> benzrf well
<shevy> there is ...
<shevy> p __LINE__
<shevy> :D
<shevy> benzrf, there is also that ruby debugger but I hate that thing
<shevy> and then there are parts of pry that help you do that
Lewix has quit [Remote host closed the connection]
<benzrf> hmmm
<benzrf> cuz i watched that one video
<benzrf> 'inventing on principle'
olivier_bK has joined #ruby
RaCx has joined #ruby
failshel_ has quit [Ping timeout: 260 seconds]
<benzrf> and i made this thing in python
<benzrf> but i originally wanted to make it in ruby
<shevy> lol
<shevy> benzrf, you are funny
<benzrf> ??
jrhe has quit [Quit: jrhe]
<shevy> "I ended up doing this in haskell but I wanted to make it in ruby"
fomatin has joined #ruby
<shevy> "I ended up doing this in python but I wanted to make it in ruby"
<shevy> "I ended up doing this in php but I wanted to make it in ruby"
<shevy> :D
<shevy> I dont even know how you can separate these languages in your head
<benzrf> well i couldnt find out how to make it in python
<benzrf> and I did keep trying to write rubyisms & haskellisms cuz its been a few weeks since ive written python
<benzrf> :|
<Hanmac> shevy: for me C/C++/Ruby is nearly the same ;P
<benzrf> actually id forgotten how nice python is
Tarential has quit [Excess Flood]
amacgregor has joined #ruby
Tarential has joined #ruby
<benzrf> because since i started using ruby i only remembered the bad parts of python
<shevy> lol
<benzrf> but it really is pretty great
<shevy> you *are* funny
<benzrf> -
<MrZYX> benzrf: look at xmpfilter from rcodetools
<shevy> Hanmac how can C++ be like ruby
amacgregor_ has joined #ruby
<shevy> bla<ble> templateclusterfuck;
<benzrf> ill have you knw that in haskell
<benzrf> i can write 3 lines of code and suddenly i can do
<benzrf> [1, 2, 3] ~= [AnyOf [3, 1], Only 2, AnyOf [7, 1, 3]]
amacgregor__ has quit [Ping timeout: 246 seconds]
<Hanmac> shevy: try to read my bindings then you will feel it ;P
postmodern has joined #ruby
<benzrf> data Possibility a = AnyOf [a] | Only a deriving Show
<benzrf> matches c v = case c of CouldBe ps -> v `elem` ps; Only p -> v == p
<benzrf> (~=) = zipWith matches
<benzrf> :3
DecipheredAFK is now known as Deciphered
sailias has quit [Quit: Leaving.]
<benzrf> oh wait
<benzrf> no, that's
fuhgeddaboudit has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
euclides_ has quit [Remote host closed the connection]
<benzrf> vs ~= ps = and $ zipWith matches ps vs
<benzrf> actually i could probably do
amacgregor has quit [Ping timeout: 246 seconds]
<benzrf> (~=) = and . (zipWith matches)
lmmx has joined #ruby
euclides has joined #ruby
<MrZYX> benzrf: also seeing_is_believing
barratt has quit [Quit: Leaving...]
<lmmx> when I use UTF-8 encoding, I shouldn't see things like &amp; &iacute; right?
<benzrf> MrZYX: whats that?
<benzrf> lmmx: those are html things
<benzrf> what do they have to do with utf8
<benzrf> *utf-8
<lmmx> errrr oh
lkba has joined #ruby
<lmmx> is there a way to un-html them in ruby? I'm using nokogiri already...
<MrZYX> benzrf: they roughly do what your python thingy does for ruby
fedesilv_ has joined #ruby
mikestok has quit [Quit: Computer has gone to sleep.]
<benzrf> hmm
mzdravkov has quit [Read error: Connection reset by peer]
<benzrf> well i think theres a thing that does that for python already
<benzrf> i was just trying to write one
<benzrf> ;p
<lmmx> ?
<benzrf> yeah this is based off of the same thing as mine even
<benzrf> ha
<Hanmac> benzrf: like that?
<Hanmac> >> class Array; def =~(check); self.to_enum(:all?).with_index {|o,i| Array(check[i]).include?(o)}; end; end; [1, 2, 3] =~ [[3, 1], 2, [7, 1, 3]]
<eval-in> Hanmac => true (https://eval.in/74530)
jrhe has joined #ruby
jalcine has joined #ruby
euclides has quit [Ping timeout: 260 seconds]
<MrZYX> lmmx: for me Nokogiri::HTML("<div>&uuml;</div>").text #=> "ü"
hiyosi has quit [Ping timeout: 272 seconds]
<benzrf> so much less elegant
<benzrf> pfft
fedesilva has quit [Ping timeout: 246 seconds]
<benzrf> doesnt even use ADTs
<lmmx> ahh almost worked that out, thankyou MrZYX :)
capicue has joined #ruby
<benzrf> what does to_enum :all? do?
yeltzooo3 has joined #ruby
__eka__ has joined #ruby
lmmx has quit [Quit: Page closed]
<Hanmac> benzrf: all? does not return enumerator
fedesilv_ has quit [Read error: No route to host]
<benzrf> ??
Vert has joined #ruby
<benzrf> oh cool you can interpolate arrays with *
<apeiros> benzrf: to_enum returns an Enumerator for any method with takes a block
<benzrf> why do i not know about this stuff
<benzrf> -.-
timonv has joined #ruby
ambushsabre has joined #ruby
eka has quit [Ping timeout: 260 seconds]
<shevy> there is a lot to know in ruby
<benzrf> yeah but simple syntax trix
banister has joined #ruby
<shevy> ruby cheats a lot
<benzrf> so to_enum([proc]) is like map but creates an enum ?
Lewix has joined #ruby
Davedo is now known as guest54564654621
charliesome has joined #ruby
fschuindt has quit [Quit: Computer has gone to sleep.]
jragon has quit [Ping timeout: 272 seconds]
jetblack has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
guest54564654621 is now known as Davedo
estebistec has joined #ruby
Davedo is now known as daveedo
Deciphered is now known as DecipheredAFK
havenwood has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
Arzaga has joined #ruby
St_Marx has joined #ruby
<apeiros> benzrf: no, that's not how it works. you may want to consult the docs.
<benzrf> :[
N00D is now known as zz_N00D
yeltzooo has quit [Remote host closed the connection]
hamakn has joined #ruby
<Hanmac> benzrf: some functions like map does to_enum for you when no block is used, ... some functions like all? does it not
claymore has quit [Write error: Broken pipe]
<apeiros> benzrf: seriously, the docs are good. somebody spent a lot of time writing it. try it.
RaCx has quit [Ping timeout: 246 seconds]
<benzrf> >> [1, 2, 3].to_enum(:to_s)
<eval-in> benzrf => #<Enumerator: [1, 2, 3]:to_s> (https://eval.in/74534)
<benzrf> >> [1, 2, 3].to_enum(:to_s).to_a
<eval-in> benzrf => [] (https://eval.in/74535)
<benzrf> huh
<benzrf> >> [1, 2, 3].to_enum(:to_s).map {|foo| puts foo}
<eval-in> benzrf => [] (https://eval.in/74536)
`MArceLL` has quit [Ping timeout: 246 seconds]
banghouse has joined #ruby
heidi has joined #ruby
`MArceLL` has joined #ruby
heidi has quit [Client Quit]
RaCx has joined #ruby
yeltzooo3 has quit [Remote host closed the connection]
scottstamp is now known as zz_scottstamp
yeltzooo has joined #ruby
<Hanmac> shevy: yeah i get it, i wil try to add more documentation this weekend ... but there is not many easy stuff i could dokument
petey has joined #ruby
hamakn has quit [Ping timeout: 260 seconds]
baordog has quit [Remote host closed the connection]
<MrZYX> >> def foo; ['a', 'b', 'c'].each do |v| yield v; end; end; to_enum(:foo).with_index.map {|i,v| "#{i}#{v}" }.join
<eval-in> MrZYX => "a0b1c2" (https://eval.in/74537)
<MrZYX> benzrf: ^
rhunter has joined #ruby
<MrZYX> (i swapped i and v in the blocks arguments because I always mess that up ;P)
<Hanmac> also a bit different but the result is the same
<Hanmac> >> def foo; ['a', 'b', 'c'].each do |v| yield v; end; end; to_enum(:foo).map.with_index {|i,v| "#{i}#{v}" }.join
<eval-in> Hanmac => "a0b1c2" (https://eval.in/74539)
<benzrf> im confused
<benzrf> i dont know what this does still
jrhe_ has joined #ruby
<MrZYX> do you know blocks and what yield does?
Briareos1 has joined #ruby
jrhe has quit [Ping timeout: 264 seconds]
jrhe_ is now known as jrhe
jetblack has quit [Ping timeout: 272 seconds]
<benzrf> yes
<benzrf> but the code is all messy on one line
<apeiros> a block is that guy who stops the enemy's striker?
<benzrf> >> [1, 2, 3].all?
<eval-in> benzrf => true (https://eval.in/74540)
<shevy> Hanmac well, working examples are more important anyway
error404 has joined #ruby
<shevy> in shoes, I can not even run their examples
havenwood has quit [Ping timeout: 264 seconds]
petey has quit [Ping timeout: 246 seconds]
<Hanmac> shevy: i begin to port the c++ examples into ruby but i am still not finish yet
osvico has quit [Read error: Connection reset by peer]
duggiefresh has quit [Remote host closed the connection]
<benzrf> oh wow
<benzrf> i just realized
<benzrf> >ruby shoes
<benzrf> >ruby slippers
<shevy> benzrf yes, ruby people are very stupid when it comes to naming things
<MrZYX> benzrf: did you look up the Enumerator class in the docs already?
rhunter has quit [Ping timeout: 260 seconds]
<shevy> benzrf my favourite is ruby panties
h0rrorvacui has joined #ruby
amacgregor has joined #ruby
dEPy has quit [Quit: Computer has gone to sleep.]
<Hanmac> shevy the next big thing i will make in ruby i will call it "TheNextBigThingInRuby" ;P
nobitanobi has quit [Ping timeout: 252 seconds]
Lewis has quit [Remote host closed the connection]
jbpros has joined #ruby
<benzrf> god dammit
<benzrf> sl got me again
hiyosi has joined #ruby
amacgregor_ has quit [Ping timeout: 246 seconds]
<benzrf> why do i install this stuff
aryaching has joined #ruby
jbpros has quit [Client Quit]
kofno has joined #ruby
<shevy> sl?
kirun has quit [Quit: Client exiting]
<benzrf> shevy: apt-get install sl
duggiefresh has joined #ruby
<benzrf> it's a trap
<benzrf> sl = steam locomotive
<shevy> well
<benzrf> if you mistype ls as sl, it prints a locomotive moving accross your screen
<shevy> apt-get users deserve all the traps in the world >:)
<shevy> oh man
<benzrf> screw u ok
<shevy> haha :D
hiyosi has quit [Ping timeout: 272 seconds]
osvico has joined #ruby
<shevy> a locomotive!
<MrZYX> benzrf: just run alias ls=sl
GoodTimes has joined #ruby
Jdubs has quit [Read error: Connection reset by peer]
jetblack has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agjacome has quit [Ping timeout: 265 seconds]
Briareos1 has quit [Remote host closed the connection]
shime has quit [Ping timeout: 265 seconds]
kofno has quit [Ping timeout: 246 seconds]
julweber has joined #ruby
Lewis has joined #ruby
falood has joined #ruby
olivier_bK has quit [Ping timeout: 252 seconds]
duggiefresh has quit [Remote host closed the connection]
kitak has joined #ruby
estebistec has quit [Remote host closed the connection]
charliesome has joined #ruby
duggiefresh has joined #ruby
Jake has joined #ruby
__eka__ is now known as eka
Jake has quit [Client Quit]
yfeldblu_ has quit [Remote host closed the connection]
MrZYX is now known as MrZYX|off
maroloccio has joined #ruby
Lewix has quit [Remote host closed the connection]
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Megtastique has quit []
Jdubs has joined #ruby
havenwood has joined #ruby
fridim__ has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
sheap has joined #ruby
havenwood has joined #ruby
stevenhaddox has joined #ruby
culturelabs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac> hey charliesome!
relix has joined #ruby
<charliesome> Hanmac: yo
sheap has quit [Client Quit]
timonv has joined #ruby
ambushsabre has joined #ruby
<Hanmac> i have seen that you was the guy how added ""f ... why is ""b added but not enabled?
<Hanmac> and yes i read all ruby/ruby commits ;P
jetblack has quit [Read error: Operation timed out]
morenoh159 has joined #ruby
RaCx has quit [Ping timeout: 272 seconds]
<Hanmac> charliesome: and wasnt you the guy to made the evain bot/website? maybe its a good idea to update the ruby versions (some new patch versions are out) ... and it would be interesting if 64bit versions can be added ;P
RaCx has joined #ruby
<charliesome> Hanmac: ""f is gone now
<Hanmac> WTF?
i8igmac has joined #ruby
<apeiros> in favor of .freeze optimization
Jakee` has joined #ruby
<charliesome> there's optimized "".freeze instead
<charliesome> >> RUBY_VERSION
<eval-in> charliesome => "2.0.0" (https://eval.in/74546)
<charliesome> >> RUBY_DESCRIPTION
<eval-in> charliesome => "ruby 2.0.0p0 (2013-02-24 revision 39474) [i686-linux]" (https://eval.in/74547)
<apeiros> IMO not a bad decision
<charliesome> yeah it means we can fix gems for 2.1 now
<charliesome> and they're still backwards compatible
<apeiros> fix gems?
<bnagy> ""f was butt ugly
<bnagy> freeze++ ftw
<Hanmac> what about a "".f method? ;P
<apeiros> meh
<bnagy> what about tab completion?
<apeiros> I already dislike .b
<apeiros> would love .binary
CaptainJet has quit [Read error: Connection reset by peer]
ambushsabre has quit [Ping timeout: 246 seconds]
<benzrf> >> "foo"f
<eval-in> benzrf => /tmp/execpad-a891c71f4b54/source-a891c71f4b54:2: syntax error, unexpected tIDENTIFIER, expecting keyword_end (https://eval.in/74550)
<benzrf> hmm
<apeiros> but tbh, I think string literals miss the ability to specify the encoding
<apeiros> I'd like something like "foo"(binary)
timonv has quit [Ping timeout: 272 seconds]
<apeiros> benzrf: experimental feature in 2.1 head. eval-in defaults to 2.0
CaptainJet has joined #ruby
Megtastique has joined #ruby
<Hanmac> charliesome: i found a Segfault in ruby code again which seems only affects 64bit arch, (its the third of this kind i found) but i think nobu wll fix it until tomorrow
<charliesome> Hanmac: oh cool
DecipheredAFK is now known as Deciphered
<charliesome> which is it?
kaspergrubbe has quit [Remote host closed the connection]
<charliesome> apeiros: as in fix gems that leave a lot of string literals on the heap
<Hanmac> https://bugs.ruby-lang.org/issues/9178 << some missuse from #chunk with #with_index
duggiefresh has quit [Remote host closed the connection]
<apeiros> charliesome: any high profile offenders?
<apeiros> btw. charliesome - you strong with C?
<charliesome> apeiros: mime-types is a big one
<charliesome> although that's not an issue with static string literals in code
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
<charliesome> this opto is also useful in generated code like erb
<charliesome> apeiros: i like to think i am ;)
<apeiros> charliesome: I hope I may poke you in a about month to do a code review :)
<charliesome> sure!
<charliesome> how big is the patch going to be
<apeiros> not a patch. a gem.
<apeiros> I want to replace CSV
<Hanmac> i am still currious how it happens that some bugs crash in all ruby versions on my mashine but works on all versions on evalin ... where only the Architecture is different but it should not affect at some function
iliketurtles has quit [Ping timeout: 260 seconds]
<apeiros> and as of dec. 7th, I have holidays, so I can finally devote some time to this.
<charliesome> apeiros: ah cool
<apeiros> I want to use this as my language journey project too. i.e. I want to implement it in C, Java and Python at least. Other languages as I get to it.
<apeiros> (ruby obviously too…)
stevenhaddox has quit [Ping timeout: 272 seconds]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
tedstrik_ has quit [Remote host closed the connection]
CaptainJet has quit [Read error: Connection reset by peer]
<apeiros> charliesome: https://github.com/apeiros/ept - that's the project btw. - the github version is a bit outdated, though.
<apeiros> but it shows the aim quite well
rickruby has joined #ruby
<charliesome> apeiros: that's a neat idea for learning a whole bunch of different languages
<apeiros> the C parser I'm writing is a stream-capable parser. able to stop and resume at any time, without the need for any lookahead.
<apeiros> that part already works. and it beats fastercsv by ~4x iirc with parsing to arrays of arrays of raw strings
CaptainJet has joined #ruby
timonv has joined #ruby
marr has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
Deciphered is now known as DecipheredAFK
fixl has joined #ruby
rickruby has quit [Ping timeout: 261 seconds]
pel_daniel has left #ruby [#ruby]
<charliesome> apeiros: nice
<charliesome> streaming parsers are pretty nifty
<charliesome> are you using something like ragel or a hand rolled state machine?
<apeiros> hand rolled, goto based state machine
<charliesome> cool
<apeiros> wrote a generator to parse iso8601 a few years ago. I intend to use a similar approach here.
benzrf has left #ruby [#ruby]
<apeiros> the current one is hand-crafted, though. to figure what I need.
<apeiros> I want a parser which is able to preserve all information and only discards if asked. i.e. you could parse a file and rewrite it from the parsed data 1:1
euclides has joined #ruby
iliketurtles has joined #ruby
Lewis has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 260 seconds]
fgo has joined #ruby
Atrophius has joined #ruby
akhet has quit [Ping timeout: 252 seconds]
amoli has quit [Ping timeout: 260 seconds]
akhet has joined #ruby
jetblack has joined #ruby
wallerdev has quit [Read error: Connection reset by peer]
freerobby has joined #ruby