apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<DanBoy> show me this
<DanBoy> ls -al sandbox.rb
<benzrf> banisterfiend: multiple but my latest is python
<benzrf> well no
<benzrf> my most used is python
<coca_rails> DanBoy: -rwxr-xr-x 1 computer staff 273 Oct 30 19:56 sandbox.rb
xk_id has quit [Ping timeout: 256 seconds]
drumsrgr8forn8 has joined #ruby
<benzrf> Ive been looking into ruby because it looks like it has most of what i like about python + some nice conveniences, syntactical shortcuts, & FP support
<DanBoy> run this exactly
<DanBoy> ./sandbox.rb
<DanBoy> and show me what it says
<benzrf> in retrospect I wish id chosen ruby to start with
<benzrf> LI
navyant24 has joined #ruby
newbiehacker has quit [Ping timeout: 246 seconds]
swingha has quit [Ping timeout: 260 seconds]
<banisterfiend> benzrf ruby is a cute language with quite a bit of hidden depth once u start learning about the more esoteric parts
<coca_rails> ayy!
ecksit has joined #ruby
predator217 has joined #ruby
DanKnox is now known as DanKnox_away
<DanBoy> ?
<benzrf> banisterfiend: i could say the same about python
<benzrf> ;)
<benzrf> ever heard of __prepare__?
<coca_rails> *yayy!
<banisterfiend> probably
<banisterfiend> though i never found python cute
<ecksit> hey, i need a hand with customising the thor gem to accept params separated by colons instead of spaces. any ideas? or just i can debug it further?
<coca_rails> interesting. it ran it until the exit part
<DanBoy> did a bunch of numbers print out? :P
<banisterfiend> it was too rigid and autistic to be cute
<coca_rails> so the second program didnt run
<coca_rails> Yea it iterated over the array and puts'd it
<DanBoy> ya ok you got it now
<DanBoy> follow that format
<benzrf> banisterfiend: well isnt that mean
<coca_rails> Sweet. Can you explain after the exit part
<DanBoy> example mess around, when your done add the exit so it doesn't try and run all your other examples
<coca_rails> So basically the code exit(0) says exit ruby
<DanBoy> yes
<benzrf> how does exit work in ruby btw?
<coca_rails> sweet.
<benzrf> is it like system.exit in java or does it raise an exc like in py
<DanBoy> that first example is just me setting up the pattern
<coca_rails> Yea, i like it thanks!
<banisterfiend> benzrf raises SystemExit
<coca_rails> DanBoy: can i pm you
dangerousdave has quit [Ping timeout: 264 seconds]
<DanBoy> make and example then exit() so it doesn't try and run the whole thing
<DanBoy> ya sure
<benzrf> banisterfiend: wait really?
<benzrf> that is literally exactly the same as python
jonr22_ has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
predator117 has quit [Ping timeout: 245 seconds]
drumsrgr8forn8 has quit [Ping timeout: 272 seconds]
jmccune has quit [Ping timeout: 268 seconds]
yfeldblum has quit [Remote host closed the connection]
<banisterfiend> benzrf ruby came after python, it took the good bits ;)
<coca_rails> Danboy you rock!
<benzrf> buh
yfeldblum has joined #ruby
<banisterfiend> benzrf took a few other things from python too, such as loop {} trapping Iterator exceptions
<banisterfiend> StopIteration
c0rn_ has quit [Quit: Computer has gone to sleep.]
choobie has joined #ruby
<banisterfiend> and i think the ruby generator API is inspired by python'sone
pel_daniel has left #ruby [#ruby]
sadleb has joined #ruby
fuhgeddaboudit has joined #ruby
<benzrf> i just wish ruby used significant whitespace
ssvo has quit [Ping timeout: 240 seconds]
<benzrf> & I may prefer the python philosophy
<benzrf> sue e
<benzrf> *me
<banisterfiend> benzrf i don't, i haven't done much python, but i've done enough coffee script (which has significant whitespace) to find it a bit annoying
<banisterfiend> one thing that bugs me is you can't just select your entire program code and tell your editor to 'fix up the indentation'
<banisterfiend> in a whitespace significant language that operation doesn't really make sense
xk_id has joined #ruby
<benzrf> i find ends to be an eyesore myself
<benzrf> btw you should check out livescript
<benzrf> it has some haskell bits & a shitload of syntactic sugar
<benzrf> & it fixes the scoping issue in CS
undert_ has quit [Ping timeout: 264 seconds]
`Chris` has joined #ruby
xk_id has quit [Max SendQ exceeded]
<banisterfiend> i do too, but the practicality of 'end' outweighs the aesthetic qualities
<benzrf> meh
mrsolo has joined #ruby
<benzrf> i can only hope the lack of parens helps compensate for all of the ends
<benzrf> ~_~
`Chris`_ has quit [Ping timeout: 256 seconds]
pu22l3r has quit [Remote host closed the connection]
reset has quit [Quit: Leaving...]
undert_ has joined #ruby
reset has joined #ruby
pu22l3r has joined #ruby
lmadrigal has joined #ruby
sepp2k1 has quit [Quit: Leaving.]
tatsuya_o has quit [Ping timeout: 245 seconds]
cpruitt has quit [Quit: cpruitt]
CreativeEmbassy has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
anderse has joined #ruby
freezey has joined #ruby
pkrnj has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
benzrf has left #ruby [#ruby]
divi has quit [Read error: Connection reset by peer]
reset has quit [Ping timeout: 246 seconds]
zz_tsykoduk is now known as tsykoduk
fredjean has joined #ruby
frem has quit [Ping timeout: 256 seconds]
pu22l3r has quit [Ping timeout: 268 seconds]
Ivo has joined #ruby
xk_id has joined #ruby
Ivo has quit [Changing host]
Ivo has joined #ruby
havenwood has quit [Remote host closed the connection]
xk_id has quit [Max SendQ exceeded]
tylersmith has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
|jemc| has joined #ruby
Mitchellvanw has quit [Quit: Dozing off...]
alse has joined #ruby
pr0ggie has quit [Read error: Operation timed out]
ukd1 has joined #ruby
iamjarvo has quit [Remote host closed the connection]
pr0ggie has joined #ruby
Guest13378 has quit [Remote host closed the connection]
iamjarvo has joined #ruby
xk_id has joined #ruby
pdimitrov has quit [Ping timeout: 264 seconds]
Alina-malina has joined #ruby
ping-pong has quit [Remote host closed the connection]
fomatin has joined #ruby
iamjarvo has quit [Ping timeout: 240 seconds]
ismlages has quit [Remote host closed the connection]
bigoldrock has quit [Remote host closed the connection]
tsykoduk is now known as zz_tsykoduk
yfeldblum has quit [Remote host closed the connection]
Davey has joined #ruby
frem has joined #ruby
bricker_ has joined #ruby
saarinen has quit [Quit: saarinen]
julweber has joined #ruby
ewnd9 has joined #ruby
bricker has quit [Ping timeout: 246 seconds]
musonius has joined #ruby
frem has quit [Ping timeout: 246 seconds]
capicue has quit [Quit: Leaving...]
VTLob has quit [Quit: VTLob]
Aryasam has quit [Ping timeout: 246 seconds]
ravster has quit [Quit: Leaving.]
hogeo has joined #ruby
pdimitrov has joined #ruby
pr0ggie has quit [Read error: Operation timed out]
fuhgeddaboudit has quit [Ping timeout: 248 seconds]
lmadrigal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
pwh_ has joined #ruby
tjbarber has joined #ruby
timonv has joined #ruby
mary5030 has joined #ruby
stockground has joined #ruby
brennanMKE has quit [Remote host closed the connection]
zipper has joined #ruby
coca_rails has quit [Remote host closed the connection]
zz_karupanerura is now known as karupanerura
zz_michael_mbp is now known as michael_mbp
coca_rails has joined #ruby
pwh has quit [Ping timeout: 246 seconds]
jlast has joined #ruby
<zipper> Hey uh how could I rewrite the following without the need for "Proc.new"?
<zipper> three_ones = Proc.new{|array| 1000 if array.uniq.length ==1 && array[0] == 1 }
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
pen has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
pencilcheck has joined #ruby
navyant24 has quit [Quit: navyant24]
anderse has quit [Quit: anderse]
Shidash has joined #ruby
coca_rails has quit [Ping timeout: 246 seconds]
michael_mbp is now known as zz_michael_mbp
jlast has quit [Ping timeout: 245 seconds]
jonr22_ has quit [Remote host closed the connection]
tonni has joined #ruby
coca_rails has joined #ruby
jonr22 has joined #ruby
xk_id has quit [Ping timeout: 264 seconds]
ukd1 has quit [Remote host closed the connection]
lyanchih has joined #ruby
pen has quit [Ping timeout: 256 seconds]
RichardBaker has quit [Quit: RichardBaker]
darkskiez has quit [Ping timeout: 245 seconds]
aantix has quit [Quit: aantix]
tkuchiki has joined #ruby
chinychinchin has quit [Quit: Konversation terminated!]
xk_id has joined #ruby
chinychinchin has joined #ruby
smathieu has joined #ruby
xk_id has quit [Max SendQ exceeded]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
mikeg has joined #ruby
jrhe has left #ruby [#ruby]
pr0ggie has joined #ruby
julweber has quit [Remote host closed the connection]
zipper has quit [Quit: Lost terminal]
navyant24 has joined #ruby
tonni has quit [Ping timeout: 252 seconds]
<butblack> zipper: what are you trying to do
jcromartie has joined #ruby
cpruitt has joined #ruby
jonr22 has quit [Ping timeout: 272 seconds]
mikeg has quit [Ping timeout: 256 seconds]
predator117 has joined #ruby
lmickh has joined #ruby
mmcdaris has quit [Quit: mmcdaris]
ldnunes has quit [Quit: Leaving]
chinychinchin has quit [Ping timeout: 272 seconds]
zeade has quit [Quit: Leaving.]
xk_id has joined #ruby
stockground has quit [Quit: Konversation terminated!]
fgo has joined #ruby
xk_id has quit [Max SendQ exceeded]
SteveBenner9 has joined #ruby
dagnachew has quit [Read error: Connection reset by peer]
predator217 has quit [Ping timeout: 272 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
darkskiez has joined #ruby
darkskiez has joined #ruby
darkskiez has quit [Changing host]
havenwood has joined #ruby
ewnd9 has quit [Ping timeout: 246 seconds]
navyant24 has quit [Quit: navyant24]
sevenseacat has joined #ruby
Voodoofish4301 has joined #ruby
tatsuya_o has joined #ruby
vlad_sta_ has joined #ruby
MrThePlague has joined #ruby
burlyscudd has quit [Quit: Leaving.]
tjad has quit [Ping timeout: 256 seconds]
Voodoofish430 has quit [Ping timeout: 264 seconds]
fomatin has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Ping timeout: 248 seconds]
b00stfr3ak has joined #ruby
mmitchell has joined #ruby
falood has joined #ruby
tatsuya_o has quit [Ping timeout: 245 seconds]
justsee has quit [Ping timeout: 240 seconds]
threesome has quit [Ping timeout: 245 seconds]
brennanMKE has joined #ruby
lukec has quit [Quit: lukec]
error404 has quit [Ping timeout: 272 seconds]
IceDragon has joined #ruby
error404 has joined #ruby
frem has joined #ruby
RORgasm has joined #ruby
danshultz has joined #ruby
dagnachew has joined #ruby
falood has quit [Client Quit]
brennanMKE has quit [Read error: Connection reset by peer]
snath has quit [Ping timeout: 245 seconds]
brennanMKE has joined #ruby
musonius has quit [Quit: musonius]
mmcdaris has joined #ruby
palms has joined #ruby
mmcdaris has quit [Client Quit]
RORgasm has quit [Read error: Operation timed out]
jibi has quit [Quit: .]
CreativeEmbassy has joined #ruby
k610 has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
lmickh has quit [Ping timeout: 256 seconds]
brennanMKE has quit [Ping timeout: 240 seconds]
mansi has quit [Ping timeout: 245 seconds]
smathieu has quit [Read error: Connection reset by peer]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
Davey has quit [Quit: Computer has gone to sleep.]
smathieu has joined #ruby
mojjojo has quit [Quit: Leaving]
sindork has quit [Quit: No Ping reply in 180 seconds.]
kaspergrubbe has quit [Remote host closed the connection]
sindork has joined #ruby
kaspergrubbe has joined #ruby
dsferreira has quit [Quit: This computer has gone to sleep]
pencilcheck has quit []
Monie has joined #ruby
cpruitt has quit [Quit: cpruitt]
smathieu has quit [Ping timeout: 264 seconds]
lmickh has joined #ruby
fgo has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 240 seconds]
devoldmx has quit [Ping timeout: 245 seconds]
burlyscudd has joined #ruby
dagnachew has quit [Read error: Connection reset by peer]
fomatin has joined #ruby
goleldar has quit [Remote host closed the connection]
mrsolo has joined #ruby
goleldar has joined #ruby
mrsolo has quit [Client Quit]
MrThePlague has quit [Remote host closed the connection]
graydot has joined #ruby
funburn has quit [Remote host closed the connection]
goleldar has quit [Ping timeout: 240 seconds]
funburn has joined #ruby
dagnachew has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
ehaliewicz has joined #ruby
Davey has joined #ruby
Voodoofish4301 has quit [Quit: Leaving.]
b00stfr3ak has quit [Ping timeout: 246 seconds]
cpruitt has joined #ruby
mrsolo has joined #ruby
pwh has joined #ruby
pwh_ has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
nemish_ has quit [Quit: leaving]
tonni has joined #ruby
snath has joined #ruby
adeponte has quit [Remote host closed the connection]
jkline has quit [Quit: jkline]
DanielRb has quit [Quit: Quit]
adeponte has joined #ruby
devoldmx has joined #ruby
DanielRb has joined #ruby
dagnachew has quit [Read error: Connection reset by peer]
dagnachew has joined #ruby
jamblack has joined #ruby
adeponte has quit [Ping timeout: 248 seconds]
tonni has quit [Ping timeout: 252 seconds]
MrPoT4tO has joined #ruby
mrpot4to_ has joined #ruby
zz_tsykoduk is now known as tsykoduk
lukec has joined #ruby
TheMoonMaster_ has quit [Excess Flood]
brianpWins has joined #ruby
jonr22 has joined #ruby
coca_rails has quit []
blackmesa has quit [Ping timeout: 240 seconds]
nari has joined #ruby
TheMoonMaster has joined #ruby
coca_rails has joined #ruby
tjad has joined #ruby
near89 has joined #ruby
<near89> hi
<near89> i cant seem to be able to install a gem
<near89> root@e-000023b6:/core/core/coredetect> gem install tire ERROR: Error installing tire: mime-types requires Ruby version >= 1.9.2.
<near89> has anyone seen this error?
fomatin has quit [Quit: Computer has gone to sleep.]
jonr22 has quit [Ping timeout: 264 seconds]
<havenwood> near89: What version of Ruby are you on?: ruby -v
araujo has quit [Read error: Connection reset by peer]
<bnagy> no, but I can guess what it means
maletor has quit [Quit: Computer has gone to sleep.]
<near89> ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
Spami has quit [Quit: This computer has gone to sleep]
<near89> but I tried installing 1.9.3
araujo has joined #ruby
<havenwood> near89: how'd you install it?
<near89> apt-get install ruby1.9.3
<near89> but the problem continues to happen
<near89> do i need to specify that my ruby version is not 1.8.7?
<havenwood> near89: did you use `update_alternatives` to select 1.9.3?
<near89> well no
<near89> how do you do that?
chrisja has quit [Quit: leaving]
<havenwood> near89: sudo update-alternatives --set ruby /usr/bin/ruby1.9.1
Gooder has joined #ruby
judd7 has joined #ruby
falood has joined #ruby
<havenwood> near89: Double-check your apt installed Rubies with: update-alternatives --list ruby
dagnachew has quit [Read error: Connection reset by peer]
<near89> thanks i seted it to 1.9.1
<near89> but the error continues
<near89> it says it needs 1.9.2 or higher
frem has quit [Ping timeout: 246 seconds]
dagnachew has joined #ruby
mixel has quit [Quit: mixel]
codeFiend has joined #ruby
<havenwood> near89: What is your?: ruby -v
tsykoduk is now known as zz_tsykoduk
<near89> ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
<near89> weird ..
<havenwood> better
kaspergrubbe has quit [Remote host closed the connection]
<near89> but gem still complains
kaspergrubbe has joined #ruby
<havenwood> near89: Well, i use ruby-install and chruby to just avoid the whole apt situation and get latest stable Ruby, 2.0.0-p247.
Guest19106 has quit []
tatsuya_o has joined #ruby
<havenwood> near89: I'd suggest just not using the apt packaged Ruby but I think some people like Hanmac do it.
<havenwood> Wait, but he's always on head... hrm.
burlyscudd has quit [Quit: Leaving.]
frem has joined #ruby
<havenwood> Nice that Fedora 19 ships with 2.0.0-p247, but as far as I know Debian doesn't yet.
<havenwood> And they always do odd things with gem.
eka has quit [Quit: Computer has gone to sleep.]
<bnagy> Debian is on 1.6 I think
<sevenseacat> ubuntu only ships with some old version of 1.9.3
nvrch_ has joined #ruby
<havenwood> near89: If you want to stick with apt, double check: sudo apt-get install ruby1.9.1-full -y
<sevenseacat> 1.9.3-p194
<havenwood> sevenseacat: eww
<havenwood> sevenseacat: at least not a dead version like 1.8!
<sevenseacat> oh wait it also has a package for 2.0
<havenwood> zombies...
<sevenseacat> 2.0.0.299 wtf
fomatin has joined #ruby
<havenwood> sevenseacat: oh, nice - what is the package called?
nvrch has quit [Ping timeout: 248 seconds]
nvrch_ is now known as nvrch
dagnachew has quit [Read error: Connection reset by peer]
<havenwood> sevenseacat: whaa? really?
pranny has joined #ruby
kaspergrubbe has quit [Ping timeout: 272 seconds]
iamjarvo has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
tatsuya_o has quit [Ping timeout: 246 seconds]
<havenwood> nice
<sevenseacat> but 299?
<havenwood> that is odd
pranny1 has joined #ruby
sadleb has quit [Ping timeout: 246 seconds]
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
thepumpkin has quit [Remote host closed the connection]
<near89> fuck the error still appears
<near89> "mime-types requires Ruby version >= 1.9.2."
thepumpkin has joined #ruby
brennanMKE has joined #ruby
<havenwood> near89: What is your?: command -v gem
<havenwood> near89: And?: gem -v
devoldmx has quit [Ping timeout: 240 seconds]
CreativeEmbassy has joined #ruby
pranny has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby
iamjarvo has quit [Ping timeout: 240 seconds]
asteros has joined #ruby
<near89> sd
<near89> its 1.8.15
<near89> and /usr/bin/gem
kenneth has quit [Quit: kenneth]
<havenwood> near89: Check `gem env`, everything look right?
thepumpkin has quit [Ping timeout: 248 seconds]
danshult` has joined #ruby
CreativeEmbassy has quit [Client Quit]
danshult` has quit [Client Quit]
Dysruption has joined #ruby
<near89> oh
<near89> - RUBY VERSION: 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
<near89> this must be the issue
asteros has quit [Client Quit]
<near89> how do i change it?
danshult` has joined #ruby
jgoss has quit [Quit: jgoss]
<near89> - GEM PATHS: - /var/lib/gems/1.8 - /root/.gem/ruby/1.8
<havenwood> usually `update-alternatives` is what people use
brennanMKE has quit [Ping timeout: 272 seconds]
<near89> but i did that before..
danshultz has quit []
danshult` has quit [Client Quit]
<havenwood> Any Ruby apt users around?
danshultz has joined #ruby
zeade has joined #ruby
jgoss has joined #ruby
brennanMKE has joined #ruby
jgoss has quit [Changing host]
jgoss has joined #ruby
<bnagy> it's not Hanmac o'clock for hours :/
<havenwood> near89: When i'm on Debian systems is usually install ruby-install and chruby. Then can easily get whatever Ruby I want and I prefer to do a local install anyways to avoid `sudo`.
<havenwood> bnagy: mm, true
<near89> mmm so i should install ruby install ?
<bnagy> near89: imho, google chruby, and just follow the instructions on the github page
<bnagy> uh... or click that :)
<havenwood> ^
araujo has quit [Read error: Connection reset by peer]
<havenwood> near89: ruby-install installs the ruby you want
<havenwood> near89: chruby selects it so it is the currently used ruby
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
araujo has joined #ruby
devoldmx3 has joined #ruby
tonni has joined #ruby
palms has quit [Ping timeout: 240 seconds]
<bnagy> cause the other trap with debian and friends is that there's a dev package which you need for cext gems to work
<havenwood> it is annoying that Ruby 1.9.x requires gcc 4.4-4.8 specifically on Mavericks, glad i use 2.0+ :P
<havenwood> workaround on Mavericks, dunno where i should post it: https://gist.github.com/havenwood/7241254
derebos has quit [Quit: Leaving]
palms has joined #ruby
<havenwood> rvm just got the workaround patched today, hope it gets fixed upstream
<sevenseacat> i had a similar issue with gcc versions when installing ree (dont ask)
agent_white has joined #ruby
<havenwood> sevenseacat: yeah, same exact issue
<havenwood> nicest of current solutions is 4.8, but glad i don't have to deal with it
<havenwood> sevenseacat: updated chruby wiki with 4.4-4.8 requirement, but not brew instructions
timonv has joined #ruby
jgoss has quit [Quit: jgoss]
<havenwood> not sure of the ideal way to deal with it
butblack has quit [Quit: butblack]
<havenwood> (well ideal is not use 1.9? :P)
tonni has quit [Ping timeout: 252 seconds]
<sevenseacat> heh
varfoo has joined #ruby
TheEmpty has joined #ruby
<havenwood> dunno if fix is coming upstream
devoldmx3 has quit [Remote host closed the connection]
butblack has joined #ruby
RichardBaker has joined #ruby
jgoss has joined #ruby
timonv has quit [Ping timeout: 256 seconds]
pu22l3r has joined #ruby
<tjbarber> hey guys, would something like this work? sql_string += "`#{f["field"]}` #{f["op"]} '#{f["value"]}'"
efrainolivares has joined #ruby
<tjbarber> having double quotes inside of a string interpolation block inside of double quotes?
burlyscudd has joined #ruby
* sevenseacat blinks
<havenwood> tjbarber: you'd need to escape the internal quotes
<TheEmpty> why not try it out in irb :) but yes IIRC Ruby sees the #{...} as it's own seperation
<tjbarber> ok, let me give this a shot in IRB. thanks guys =)
<tjbarber> don't know why I didn't think about IRB
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> tjbarber: as long as it's in the #{} it is okay, otherwise escape it
TheMoonMaster has quit [Excess Flood]
<havenwood> pry > irb
<tjbarber> havenwood right, what I'm doing works
<havenwood> tjbarber: aye
goleldar has joined #ruby
<tjbarber> also never heard of pry
<havenwood> tjbarber: Really, really nice.
<havenwood> tjbarber: http://pryrepl.org/
<havenwood> tjbarber: gem install pry
<havenwood> tjbarber: Use it instead of irb.
<tjbarber> oh wow
zeade has quit [Quit: Leaving.]
fomatin has quit [Quit: Computer has gone to sleep.]
TheMoonMaster has joined #ruby
Clooth has quit [Quit: Leaving...]
jamblack has quit [Quit: jamblack]
<tjbarber> havenwood you've just made my life a million times easier
<havenwood> tjbarber: I love using it to explore Ruby. Super helpful.
<havenwood> tjbarber: Just little stuff like: ls Float
CreativeEmbassy has joined #ruby
<havenwood> tjbarber: From inside Pry, check `help` for the commands, and `help command_here` for details.
<tjbarber> heck yeah that's a lot easier
<tjbarber> now I don't have to burn my eyes using Float.methods
goleldar has quit [Ping timeout: 272 seconds]
<havenwood> >> Float.public_methods(false)
<eval-in> havenwood => [:allocate, :superclass] (https://eval.in/58952)
<havenwood> >> Float.constants
<eval-in> havenwood => [:ROUNDS, :RADIX, :MANT_DIG, :DIG, :MIN_EXP, :MAX_EXP, :MIN_10_EXP, :MAX_10_EXP, :MIN, :MAX, :EPSILON, :INFINITY, :NAN] (https://eval.in/58953)
<havenwood> tjbarber: Yeah, a lot less to remember (i messed it up), and easy to read.
Anon542 has joined #ruby
<Anon542> hey
<havenwood> tjbarber: I like pry-theme for pretty colors and pry-byebug for debugging.
<havenwood> Anon542: hiya
<Anon542> im new here
Hanmac1 has joined #ruby
efrainolivares has quit [Quit: efrainolivares]
tonni has joined #ruby
palms has quit [Ping timeout: 240 seconds]
simoz has quit [Ping timeout: 256 seconds]
<havenwood> Anon542: Welcome to #ruby.
<tjbarber> havenwood so pry-byebug is basically like breakpoints?
<havenwood> Anon542: New to Ruby as well?
<tjbarber> that's what it looks like
niklasb has quit [Ping timeout: 246 seconds]
<tjbarber> similar, not quite
<havenwood> tjbarber: Yeah, like pry-debugger was for 1.9.x.
Hanmac has quit [Ping timeout: 240 seconds]
<havenwood> tjbarber: Pry can do a binding.pry break, just normal Pry.
<havenwood> tjbarber: But having next, back, etc.
<tjbarber> totally
Anon542 has left #ruby [#ruby]
nfk has quit [Quit: yawn]
codeFiend has quit [Quit: codeFiend]
<havenwood> My only complaint about Pry was that when I tried to name a globally scoped local variable `cat` it would conflict (yeah... i run into this surprisingly often)
krz has joined #ruby
<havenwood> So a line in ~/.pryrc solves it: Pry.commands.rename_command '%cat', 'cat'
<havenwood> And for pretty colors: Pry.config.theme = 'railscasts'
<havenwood> Also I like a minimalist prompt (unless i explicitly decide I care about line number), so: Pry.config.prompt = Pry::SIMPLE_PROMPT
whunt has quit [Quit: Computer has gone to sleep.]
alse has quit [Quit: Leaving...]
heidi has quit [Quit: Leaving.]
tonni has quit [Ping timeout: 252 seconds]
<havenwood> Anyone going to RubyConf?
heidi has joined #ruby
heidi has quit [Client Quit]
narcan has quit [Ping timeout: 272 seconds]
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
<havenwood> Day 1, 3pm: REPL driven development with Pry ~cirwin
aspires has joined #ruby
Gooder has quit [Read error: Connection reset by peer]
osvico has joined #ruby
MrPoT4tO has quit [Read error: Connection reset by peer]
mrpot4to_ has quit [Read error: Connection reset by peer]
coca_rails has quit [Remote host closed the connection]
MrPoT4tO has joined #ruby
adeponte has joined #ruby
Gooder has joined #ruby
himsin has joined #ruby
mrpot4to_ has joined #ruby
mrsolo has quit [Quit: Leaving]
mrsolo has joined #ruby
zz_tsykoduk is now known as tsykoduk
kvirani has quit [Remote host closed the connection]
tjbarber has quit [Quit: Textual IRC Client: www.textualapp.com]
adeponte has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
bugsinlights has quit [Ping timeout: 240 seconds]
bugsinlights has joined #ruby
fuhgeddaboudit has joined #ruby
<near89> havenwood
<near89> i needed to uninstall the previous version of ruby
<near89> thanks a lot!
near89 has quit [Quit: Page closed]
coca_rails has joined #ruby
coca_rails has quit [Client Quit]
Lewix has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
iamjarvo has joined #ruby
platypine has quit [Ping timeout: 246 seconds]
SteveBenner9 has quit [Quit: Leaving]
<butblack> I have a sound track, I'm trying to measure the number of times that the decibels go about a specific threshold, is there a gem that might be able to do that?
raphaelivan1 has joined #ruby
bugsinlights has quit [Remote host closed the connection]
dreamchaser has quit [Quit: ZNC - http://znc.in]
<ecksit> what is the best way to debug a method call to get a call stack?
tatsuya_o has quit [Ping timeout: 272 seconds]
RORgasm has joined #ruby
digital-ghost has quit [Remote host closed the connection]
atno has quit [Ping timeout: 264 seconds]
pwh has quit []
iamjarvo has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
iamjarvo has joined #ruby
atno has joined #ruby
RORgasm has quit [Ping timeout: 246 seconds]
fomatin has joined #ruby
hiyosi has quit [Ping timeout: 245 seconds]
wesside has joined #ruby
<ecksit> i.e. i need to track down what is calling my method and at what stage it is being manipulated.
vlad_starkov has joined #ruby
wesside has quit [Client Quit]
<jrobeson> you could play with pry
<ecksit> do you have some docs or example around ti?
<ecksit> it*
iamjarvo has quit [Ping timeout: 248 seconds]
vlad_sta_ has quit [Ping timeout: 248 seconds]
<bnagy> you can just look at caller
<ecksit> yeah, i am currently using puts caller.inspect
<ecksit> just wondering if that is the best way
kaspergrubbe has quit [Ping timeout: 272 seconds]
<bnagy> 2.0 has funky new TracePoint stuff
<bnagy> I would have thought caller would be sufficient for most stuff though
alvaro_o has quit [Quit: Ex-Chat]
jkhwan_ has quit [Remote host closed the connection]
brianpWins has quit [Ping timeout: 256 seconds]
jkhwan has joined #ruby
navyant24 has joined #ruby
<ecksit> damn, now the json gem won't work.
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
<ecksit> odd.
<ecksit> looks like it is ignoring my .ruby-version file :(
IceDragon has quit [Quit: Space~~~]
jkhwan has quit [Ping timeout: 272 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
kobain has quit []
CaptainJet has quit []
pu22l3r has quit [Ping timeout: 268 seconds]
havenwood has quit [Remote host closed the connection]
tsykoduk is now known as zz_tsykoduk
Dysruption has quit [Quit: Dysruption]
vlad_sta_ has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
lmadrigal has joined #ruby
OdNairy has joined #ruby
saarinen has joined #ruby
braincrash has quit [Ping timeout: 245 seconds]
varfoo has quit [Quit: WeeChat 0.4.0]
nisstyre has joined #ruby
havenwood has joined #ruby
radic has joined #ruby
ananthakumaran has joined #ruby
jonr22 has joined #ruby
jlast has joined #ruby
hiyosi has joined #ruby
frem has quit [Ping timeout: 246 seconds]
keanehsiao has joined #ruby
radic_ has quit [Ping timeout: 272 seconds]
tonni has joined #ruby
jonr22 has quit [Read error: Operation timed out]
atrocitas has joined #ruby
k610 has quit [Quit: Leaving]
jlast has quit [Ping timeout: 240 seconds]
codeFiend has joined #ruby
atrocitas has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 246 seconds]
mmitchell has quit [Remote host closed the connection]
varfoo has joined #ruby
pwh has joined #ruby
atrocitas has joined #ruby
<keanehsiao> hi. I would like to ask, I install ruby on windows using ruby installer. but when every time I handling around gem install, when gem operating & face the file moving with .bat file. it display "permission denied". I already operate with administrator. and if I delete .bat file, everything goes fine.. only with .bat file.. can anybody help me on that? thanks.
mrsolo has joined #ruby
tonni has quit [Ping timeout: 252 seconds]
atrocitas has quit [Remote host closed the connection]
fredjean has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
ehc has joined #ruby
taternuts has quit [Ping timeout: 256 seconds]
raphaelivan1 has quit [Quit: Leaving.]
bluOxigen has joined #ruby
soba has joined #ruby
<RubyPanther> keanehsiao: if you're using devkit you should be able to install gems normally: http://rubyinstaller.org/add-ons/devkit/
lstefani has joined #ruby
havenwood has quit [Remote host closed the connection]
`Chris` has quit []
mary5030 has quit [Remote host closed the connection]
dreamchaser has joined #ruby
dreamchaser has quit [Changing host]
dreamchaser has joined #ruby
mary5030 has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
zz_tsykoduk is now known as tsykoduk
<keanehsiao> RubyPanther: no, I installed that, but still same. I am searching around, and seems it's issue with cygwin.. also the gem-exefy. still searching..
tatsuya_o has joined #ruby
<navyant24> Hi, I'm working on Backbone.js as front-end with Ruby on Rails on back-end. I want to redirect the user away from the "show" page of my "post" model, "only" if they click the delete button while on that page. Any ideas?
lmadrigal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mrsolo has quit [Quit: This computer has gone to sleep]
<sevenseacat> sounds unrelated to ruby
<RubyPanther> keanehsiao: generally you have to remove the cygwin stuff from the PATH if you want to use devkit
mary5030 has quit [Ping timeout: 245 seconds]
fredjean has joined #ruby
<DanBoy> #rubyonrails for that dude
<navyant24> thanks
<RubyPanther> for me if I'm using devkit it is because it doesn't have cygwin
<navyant24> will check there
tatsuya_o has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
<keanehsiao> RubyPanther: but I don't see it in PATH… however, I think one gem I try to install has cygwin contain? which is rhodes
fredjean has quit [Client Quit]
emanu has joined #ruby
<sevenseacat> no.
<emanu> got it
<emanu> anybody here?
thepumpkin has joined #ruby
fomatin has joined #ruby
<RubyPanther> keanehsiao: if you're trying to develop cross platform mobile apps on windows, I recommend using a VM to run linux on windows, and dev in linux.
pkrnj has quit [Ping timeout: 256 seconds]
butblack has left #ruby [#ruby]
<emanu> I have a bit of a niche question: I wrote a ruby script that does simply: "while true ; end" and I ran it and am looking at the cpu cores on my mac using istat menus on OSX. I noticed that 4 out of the 8 cores of my machine are showing about 50% usage going up and down.
<emanu> why is this if a ruby process is multi threaded?
tsykoduk is now known as zz_tsykoduk
timonv has joined #ruby
<RubyPanther> emanu: because your app didn't use any threads
snappy has quit [Read error: Connection reset by peer]
<emanu> sorry
<emanu> I meant if it's single threaded
snappy has joined #ruby
snappy has joined #ruby
snappy has quit [Changing host]
astrobunny has joined #ruby
<keanehsiao> RubyPartner: ok, I will try it.. however, It works fine one week ago, and my contractor connect to my computer & setup something, and it was totally broken… so I reinstall whole ruby, and everything dead… :(
funburn has quit [Quit: funburn]
ehc has quit [Quit: ehc]
aspires has quit [Quit: sudo making a sandwich]
thepumpkin has quit [Ping timeout: 246 seconds]
astrobun_ has quit [Ping timeout: 246 seconds]
graydot has quit [Quit: graydot]
<RubyPanther> keanehsiao: right, it is finicky because of rhodes. windows just isn't good at cross-platform tools. cygwin helps, except if it is underfoot. But a VM running linux is almost always better than cygwin these days.
timonv has quit [Ping timeout: 248 seconds]
tharindu has joined #ruby
yacks has quit [Quit: Leaving]
lyanchih has quit [Quit: lyanchih]
lyanchih has joined #ruby
RORgasm has joined #ruby
aspires has joined #ruby
Guest45769 has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
nism-pi has quit [Remote host closed the connection]
emanu has quit [Quit: emanu]
<keanehsiao> RubyPanther: I develop on mac, but rhosimulator crash often, so I use windows, simulator was stable. never use linux with rhodes.. will give it a try.. thanks. :)
<dobry-den> emdub: it's 4 virtual cores and 4 physical cores.
Raon has left #ruby [#ruby]
funburn has joined #ruby
robbyoconnor has joined #ruby
heidi has joined #ruby
pranny1 has quit [Quit: Leaving.]
<dobry-den> emdub: you shoudln't have seen more than 100% cpu usage in activity monitory
postmodern has joined #ruby
saarinen has quit [Quit: saarinen]
aantix has joined #ruby
lyanchih has quit [Quit: lyanchih]
pranny has joined #ruby
mrsolo has joined #ruby
pranny has quit [Client Quit]
himsin has quit [Ping timeout: 245 seconds]
brianpWins has joined #ruby
adeponte has joined #ruby
ocfx has quit [Ping timeout: 240 seconds]
ocfx has joined #ruby
butblack has joined #ruby
cyong has joined #ruby
cyong has quit [Client Quit]
ocfx is now known as Guest95895
cyong has joined #ruby
Guest95895 is now known as ocfx
ocfx has quit [Changing host]
ocfx has joined #ruby
butblack has left #ruby [#ruby]
<emdub> hmm?
fomatin has quit [Quit: Computer has gone to sleep.]
hiyosi has joined #ruby
danman has joined #ruby
tonni has joined #ruby
danman has quit [Client Quit]
tomzx_mac has quit [Ping timeout: 240 seconds]
hiyosi has quit [Ping timeout: 245 seconds]
tonni has quit [Ping timeout: 252 seconds]
Deele has joined #ruby
lukec has quit [Quit: lukec]
Lewix has joined #ruby
Lewix has quit [Changing host]
Lewix has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
ocfx has quit [Ping timeout: 245 seconds]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
geothermalphysix has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
nateberkopec has joined #ruby
keanehsiao has quit [Quit: keanehsiao]
Bofu2U has quit [Read error: Operation timed out]
s3itz has joined #ruby
ocfx has joined #ruby
wallerdev has quit [Quit: wallerdev]
jkhwan has joined #ruby
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
tatsuya_o has joined #ruby
tharindu_ has joined #ruby
lyanchih has joined #ruby
tharindu has quit [Ping timeout: 248 seconds]
jaimon has joined #ruby
MrPoT4tO has quit [Read error: Connection reset by peer]
mrpot4to_ has quit [Read error: Connection reset by peer]
MrPoT4tO has joined #ruby
jaimon has left #ruby [#ruby]
tatsuya_o has quit [Ping timeout: 272 seconds]
jkhwan has quit [Ping timeout: 272 seconds]
mrpot4to_ has joined #ruby
cochin has joined #ruby
nateberkopec has quit [Quit: Leaving...]
BizarreCake has joined #ruby
<ecksit> hey, can someone tell me how i can turn this array ["domains:list", "-e", "dev"] into ["domains", "list", "-e", "dev"]? i need to keep the same order and just split it into two arrays items on that colon.
geothermalphysix has quit [Remote host closed the connection]
<bnagy> >> ["domains:list", "-e", "dev"].flat_map {|e| e.split(':')}
<eval-in> bnagy => ["domains", "list", "-e", "dev"] (https://eval.in/58955)
<bnagy> that will split any token on : though
jpun has quit [Ping timeout: 245 seconds]
jkhwan has joined #ruby
jpun has joined #ruby
<ecksit> that should be cool.
jkhwan has quit [Remote host closed the connection]
<ecksit> awesome!
jkhwan has joined #ruby
<Lewix> >> ["domains:list", "-e", "dev"].map {|e| e.split(':')}
<eval-in> Lewix => [["domains", "list"], ["-e"], ["dev"]] (https://eval.in/58956)
vlad_starkov has joined #ruby
burlyscudd has quit [Quit: Leaving.]
<ecksit> bnagy, works perfectly! thanks.
kvirani has joined #ruby
<Lewix> bnagy: it's not fun to play with you, you're fast
|jemc| has quit [Ping timeout: 240 seconds]
ananthakumaran has quit [Quit: Leaving.]
fuhgeddaboudit has quit [Ping timeout: 246 seconds]
<bnagy> only when I'm watching
vlad_sta_ has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
sayan has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
cyong has quit [Quit: Leaving.]
RichardBaker has joined #ruby
RichardBaker has left #ruby [#ruby]
jonr22 has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
DrCode has quit [Ping timeout: 240 seconds]
kevinykchan has joined #ruby
jkhwan has joined #ruby
Cork has quit [Ping timeout: 272 seconds]
jenskarlsen has joined #ruby
cochin_ has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
Kabaka has quit [Ping timeout: 240 seconds]
rezzack has quit [Quit: Leaving.]
DanBoy has quit [Ping timeout: 240 seconds]
BizarreCake has quit [Ping timeout: 246 seconds]
Bry8Star{T2 has joined #ruby
Cork has joined #ruby
jonr22 has quit [Ping timeout: 240 seconds]
cochin has quit [Remote host closed the connection]
cochin_ is now known as cochin
psyprus has quit [Read error: Connection reset by peer]
cochin has left #ruby [#ruby]
Kabaka has joined #ruby
cochin has joined #ruby
jonahR has joined #ruby
jonahR has quit [Client Quit]
cochin has left #ruby [#ruby]
sayan has quit [Ping timeout: 272 seconds]
cochin has joined #ruby
cochin has left #ruby [#ruby]
ananthakumaran has joined #ruby
cochin has joined #ruby
aagdbl has joined #ruby
cochin has quit [Client Quit]
cochin has joined #ruby
hiyosi has joined #ruby
cochin has left #ruby [#ruby]
cochin has joined #ruby
tonni has joined #ruby
cochin has quit [Client Quit]
eeriegeek has quit [Quit: Leaving.]
fomatin has joined #ruby
Sauvin has joined #ruby
Sauvin has quit [Max SendQ exceeded]
jkhwan has quit [Remote host closed the connection]
Fire-Dragon-DoL has quit [Quit: Leaving.]
Sauvin has joined #ruby
jkhwan has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
freezey has quit [Read error: Connection reset by peer]
freezey has joined #ruby
tonni has quit [Ping timeout: 252 seconds]
mary5030 has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
swingha has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
vlad_sta_ has joined #ruby
kreeves has quit [Ping timeout: 246 seconds]
judd7 has quit [Quit: judd7]
Foredoomed has joined #ruby
psyprus has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
kvirani has quit [Remote host closed the connection]
DonRichie has joined #ruby
DonRichie has quit [Read error: Connection reset by peer]
goganchic has joined #ruby
jkhwan has joined #ruby
DrCode has joined #ruby
rien has quit [Read error: Operation timed out]
kaichanvong has quit [Read error: Operation timed out]
skinny_much has quit [Read error: Operation timed out]
bpgoldsb has quit [Ping timeout: 240 seconds]
yosafbridge` has quit [Ping timeout: 245 seconds]
mephux has quit [Ping timeout: 272 seconds]
oddraisin has quit [Read error: Operation timed out]
DarkFoxDK has quit [Ping timeout: 245 seconds]
LBRapid has quit [Ping timeout: 245 seconds]
graydot has joined #ruby
derf- has quit [Ping timeout: 260 seconds]
SecretAgent has quit [Ping timeout: 240 seconds]
Nightmare has quit [Ping timeout: 245 seconds]
crazedpsyc has quit [Ping timeout: 245 seconds]
Boohbah has quit [Ping timeout: 240 seconds]
jtperreault has quit [Ping timeout: 264 seconds]
defrag has quit [Ping timeout: 245 seconds]
peterhu has quit [Ping timeout: 256 seconds]
wang_ has quit [Ping timeout: 272 seconds]
SirFunk_ has quit [Ping timeout: 245 seconds]
hoelzro has quit [Ping timeout: 260 seconds]
nuba has quit [Ping timeout: 268 seconds]
timonv has joined #ruby
justinmcp has quit [Ping timeout: 264 seconds]
Boohbah has joined #ruby
LBRapid has joined #ruby
crazedpsyc has joined #ruby
derf- has joined #ruby
DarkFoxDK has joined #ruby
bpgoldsb has joined #ruby
yosafbridge has joined #ruby
kaichanvong has joined #ruby
justinmcp has joined #ruby
jkhwan has quit [Remote host closed the connection]
mephux has joined #ruby
defrag has joined #ruby
SirFunk has joined #ruby
tatsuya_o has joined #ruby
jkhwan has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
Nightmare has joined #ruby
jtperreault has joined #ruby
skinny_much has joined #ruby
freezey has quit [Remote host closed the connection]
freezey has joined #ruby
rien has joined #ruby
peterhu has joined #ruby
oddraisin has joined #ruby
SecretAgent has joined #ruby
wang has joined #ruby
nuba has joined #ruby
hoelzro has joined #ruby
tatsuya_o has quit [Ping timeout: 272 seconds]
jkhwan has quit [Ping timeout: 272 seconds]
thepumpkin has joined #ruby
vlad_sta_ has quit [Read error: Connection reset by peer]
freezey has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
freezey has joined #ruby
digges has joined #ruby
bean__ has quit [Ping timeout: 246 seconds]
noop has joined #ruby
thepumpkin has quit [Ping timeout: 245 seconds]
aantix has quit [Quit: aantix]
freezey has quit [Ping timeout: 240 seconds]
fomatin has quit [Quit: Computer has gone to sleep.]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
mrsolo has joined #ruby
classix has quit [Read error: Connection reset by peer]
tvw has joined #ruby
Astralum has joined #ruby
dhilipsiva has joined #ruby
mary5030 has quit [Ping timeout: 256 seconds]
Senjai has quit [Ping timeout: 264 seconds]
jgoss has quit [Read error: Connection reset by peer]
sayan has joined #ruby
pyrac has joined #ruby
tagrudev has joined #ruby
justsee has quit [Ping timeout: 240 seconds]
sayan has quit [Read error: Connection reset by peer]
apeiros has quit [Read error: Connection reset by peer]
osvico has quit [Ping timeout: 246 seconds]
apeiros has joined #ruby
epichero has joined #ruby
mengu has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
jrobeson has quit [Read error: Connection reset by peer]
pranny has joined #ruby
Xeago has joined #ruby
<swingha> Hi, how can i sort an array by boolean? example: https://gist.github.com/anonymous/85bff229763132c3f3cf
justsee has joined #ruby
hiyosi has joined #ruby
pyrac has quit [Quit: pyrac]
tonni_ has joined #ruby
<apeiros> swingha: you mean you want to sort it by boolean PLUS another value
<apeiros> your example already sorts by boolean
<apeiros> a.sort_by! { |m| [m.fast ? 0 : 1, m.id] }
kevinykchan has joined #ruby
hiyosi has quit [Ping timeout: 248 seconds]
Nanuq has quit [Ping timeout: 245 seconds]
sayan has joined #ruby
<bnagy> you can also cheat and sort_by {|e| e.fast.object_id }
<bnagy> but it's pretty awful :)
zoee has joined #ruby
<apeiros> bnagy: what'd be the point of that?
<apeiros> ah, you mean avoid the ternary
<bnagy> just a convenient way to get a sortable vaue out of a boolean
goganchic has quit []
<apeiros> but it still needs the second part
<bnagy> s/convenient/ugly
<apeiros> since he obviously wants to sort by more than just the boolean
Nanuq has joined #ruby
<swingha> apeiros, No, just by boolean, the id is for the example. The problem is false items are not in order with a.sort_by! { |m| m.fast ? 0 : 1 }
<bnagy> oh it's supposed to be fast then by id?
<apeiros> swingha: you're not making sense. in your example, the result IS ordered by boolean
ecksit has quit [Quit: Computer has gone to sleep.]
<sevenseacat> there is no order for the false items
vlad_starkov has joined #ruby
<swingha> apeiros, id:2 is before id:1 in result
mrsolo has quit [Quit: This computer has gone to sleep]
<apeiros> if you want stable sort (retain current order) for items which have the same ordering value, then you have to use the current index as additional sorting value.
<apeiros> swingha: yes, so you want to sort by boolean AND id
pranny has left #ruby [#ruby]
<apeiros> *sob*
<apeiros> make up your mind what you want, tell it, the others can surely help you. I've got to commute.
apeiros has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
apeiros has joined #ruby
<bnagy> swingha: try apeiros example, I'm pretty sure it's what you want
larissa has quit [Quit: Leaving]
<bnagy> or at least it matches your gist
<bnagy> 14:48 < apeiros> a.sort_by! { |m| [m.fast ? 0 : 1, m.id] }
dangerousdave has joined #ruby
ocfx_ has joined #ruby
echevemaster has quit [Quit: Leaving]
brennanMKE has quit [Remote host closed the connection]
ahawkins has joined #ruby
brennanMKE has joined #ruby
tonni_ has quit [Remote host closed the connection]
ocfx_work has quit [Ping timeout: 246 seconds]
apeiros has quit [Ping timeout: 240 seconds]
flops has joined #ruby
agent_white has quit [Quit: leaving]
lodeston_ has joined #ruby
brennanMKE has quit [Ping timeout: 240 seconds]
tjad has quit [Ping timeout: 246 seconds]
digges has quit [Remote host closed the connection]
netto has joined #ruby
flops has quit [Ping timeout: 240 seconds]
lodeston_ has quit [Quit: Textual IRC Client: www.textualapp.com]
lodeston_ has joined #ruby
lodeston_ has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
flops has joined #ruby
bean has joined #ruby
tatsuya_o has quit [Ping timeout: 245 seconds]
pwh has quit []
netto has quit [Remote host closed the connection]
bean__ has joined #ruby
s3itz has quit [Quit: Textual IRC Client: www.textualapp.com]
Lewix has quit [Remote host closed the connection]
reddix has joined #ruby
mengu has quit [Remote host closed the connection]
bean has quit [Ping timeout: 248 seconds]
jonr22 has joined #ruby
chickenf_ has joined #ruby
pyrac has joined #ruby
jonr22 has quit [Ping timeout: 240 seconds]
Nanuq has quit [Ping timeout: 245 seconds]
rdnsget has joined #ruby
rdnsget has left #ruby [#ruby]
mengu has joined #ruby
crus has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
palms has joined #ruby
crus has joined #ruby
justsee has quit [Ping timeout: 272 seconds]
aganov has joined #ruby
tjad has joined #ruby
pyrac has quit [Quit: pyrac]
skaflem has joined #ruby
pyrac has joined #ruby
Nanuq has joined #ruby
palms has quit [Ping timeout: 272 seconds]
flops has quit [Ping timeout: 240 seconds]
ahawkins has quit [Quit: leaving]
jprovazn has joined #ruby
tonni has joined #ruby
astrobunny has quit [Ping timeout: 240 seconds]
TheNumb has joined #ruby
astrobunny has joined #ruby
h_kon has joined #ruby
pyrac has quit [Quit: pyrac]
funburn has quit [Quit: funburn]
dflurker has quit [Ping timeout: 246 seconds]
jgoss has joined #ruby
relix has joined #ruby
dagobah has joined #ruby
dflurker has joined #ruby
navyant24 has quit [Quit: navyant24]
hiyosi has joined #ruby
Mon_Ouie has quit [Ping timeout: 272 seconds]
tonni has quit [Read error: Connection reset by peer]
dsferreira has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
burgess|vayo has joined #ruby
karls0n has joined #ruby
navyant24 has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
tatsuya_o has joined #ruby
timonv has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
tonni has joined #ruby
epichero has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
tatsuya_o has joined #ruby
bean has joined #ruby
kaspergrubbe has joined #ruby
bean__ has quit [Ping timeout: 246 seconds]
ehaliewicz has quit [Ping timeout: 240 seconds]
simoz has joined #ruby
tharindu_ has quit [Quit: Leaving...]
navyant24 has quit [Quit: navyant24]
timonv has quit [Ping timeout: 245 seconds]
whunt has joined #ruby
tatsuya_o has quit [Ping timeout: 240 seconds]
threesome has joined #ruby
Vendethi_ has joined #ruby
tboerger has joined #ruby
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
apeiros has joined #ruby
JeanMertz has joined #ruby
tonni has quit [Read error: Connection reset by peer]
nkts has quit [Quit: x]
flops has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
ephemerian has joined #ruby
mengu_ has joined #ruby
brtdv has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
tonni has joined #ruby
guns has joined #ruby
monkegjinni has joined #ruby
ahawkins has joined #ruby
sayan has quit [Ping timeout: 272 seconds]
thepumpkin has joined #ruby
guns has quit [Client Quit]
DonRichie has joined #ruby
timonv has joined #ruby
Jetchisel has joined #ruby
einarj has joined #ruby
thepumpkin has quit [Ping timeout: 246 seconds]
radagast has joined #ruby
simoz2 has joined #ruby
pyrac has joined #ruby
leonidlm has joined #ruby
tesuji has joined #ruby
simoz has quit [Ping timeout: 272 seconds]
tesuji has quit [Read error: Connection reset by peer]
tesuji has joined #ruby
Bry8Star{T2 has quit [Remote host closed the connection]
fixl has joined #ruby
Bry8Star{T2 has joined #ruby
flops has quit [Ping timeout: 240 seconds]
sayan has joined #ruby
troessner has joined #ruby
mengu has quit [Remote host closed the connection]
chickenf_ has quit [Ping timeout: 256 seconds]
mengu has joined #ruby
brennanMKE has joined #ruby
burgess|vayo has quit [Quit: ^zzz]
dagobah has quit [Remote host closed the connection]
noname001 has joined #ruby
noname001 has quit [Max SendQ exceeded]
codeFiend has quit [Quit: codeFiend]
timonv has quit [Remote host closed the connection]
chinychinchin has joined #ruby
timonv has joined #ruby
brennanMKE has quit [Ping timeout: 256 seconds]
flops has joined #ruby
obs has joined #ruby
tharindu has joined #ruby
noname001 has joined #ruby
Bry8Star{T2 has quit [Remote host closed the connection]
shredding has joined #ruby
lsmola_ has joined #ruby
Bry8Star{T2 has joined #ruby
whunt has quit [Quit: Computer has gone to sleep.]
timonv has quit [Ping timeout: 240 seconds]
mrpot4to_ has quit [Remote host closed the connection]
MrPoT4tO has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby
chinychinchin has quit [Quit: Konversation terminated!]
chinychinchin has joined #ruby
pushpak has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
chinychinchin has quit [Read error: Connection reset by peer]
drumusician has joined #ruby
anderse has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
nari has quit [Ping timeout: 245 seconds]
hiyosi has joined #ruby
timonv has joined #ruby
mengu has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
justsee has quit [Ping timeout: 264 seconds]
hiyosi has quit [Ping timeout: 256 seconds]
justsee has joined #ruby
tonni has quit [Remote host closed the connection]
flops has quit [Ping timeout: 248 seconds]
flops has joined #ruby
Cope has joined #ruby
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
<Cope> I'm trying to write a test that connects to the tomcat manager, which uses http basic auth; I can connect with w3m with username/password, but both curl and my net.http code return a blank response.body
<Cope> Is there somethingI could be missing?
karls0n has quit [Ping timeout: 240 seconds]
VTLob has joined #ruby
pushpak has quit [Read error: Connection reset by peer]
flops has quit [Client Quit]
pushpak has joined #ruby
sbos99 has joined #ruby
flops has joined #ruby
platypine has joined #ruby
sevenseacat has quit [Quit: Leaving.]
threesome has quit [Ping timeout: 256 seconds]
mikecmpbll has joined #ruby
jonr22 has joined #ruby
jbpros has joined #ruby
amacgregor__ has quit [Ping timeout: 246 seconds]
tharindu has quit [Quit: Leaving...]
Vendethi_ has quit [Remote host closed the connection]
Vendethi_ has joined #ruby
platypine has quit [Ping timeout: 246 seconds]
coderhs has joined #ruby
barratt has joined #ruby
jbpros has quit [Client Quit]
elaptics`away is now known as elaptics
jonr22 has quit [Ping timeout: 240 seconds]
adambeynon has joined #ruby
dv__ has joined #ruby
tonni has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
dv__ has quit [Client Quit]
tatsuya_o has joined #ruby
tonni has quit [Remote host closed the connection]
Vendethi_ has quit [Ping timeout: 264 seconds]
dv__ has joined #ruby
karls0n has joined #ruby
blackmesa has joined #ruby
ananthakumaran has joined #ruby
tatsuya_o has quit [Ping timeout: 240 seconds]
dv__ has quit [Client Quit]
newbiehacker has joined #ruby
spider-mario has joined #ruby
jibi has joined #ruby
tatsuya_o has joined #ruby
tvw has quit []
dv__ has joined #ruby
claymore has joined #ruby
blaxter_ has joined #ruby
flops has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
aagdbl has joined #ruby
diegoviola has quit [Ping timeout: 246 seconds]
dv__ is now known as dv_
timonv has quit [Remote host closed the connection]
lele` is now known as lele
roolo has joined #ruby
<roolo> I am writing Sinatra API and it looks like namespace from sinatra-contrib interfere with rake namespaces (tasks behave like without namespace)
tonni has joined #ruby
<roolo> Have you encoutered/fixed this issue?
Zai00 has joined #ruby
timonv has joined #ruby
TMM has joined #ruby
TMM has joined #ruby
TMM has quit [Changing host]
timonv_ has joined #ruby
flops has joined #ruby
timonv has quit [Remote host closed the connection]
simoz2 has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Remote host closed the connection]
brennanMKE has joined #ruby
blaxter_ has quit [Quit: foo]
Stygia has joined #ruby
Gooder has quit [Read error: Connection reset by peer]
Gooder` has joined #ruby
blackmesa has joined #ruby
obs has quit [Ping timeout: 248 seconds]
AndChat| has joined #ruby
blackmesa has quit [Remote host closed the connection]
Vendethi_ has joined #ruby
camilasan has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
lkba has quit [Ping timeout: 272 seconds]
polysics has joined #ruby
Al_ has joined #ruby
<polysics> Hacker News people do not like Ruby any more. There is one "Ruby is dead" post a week. Ah well.
<polysics> hipster programmers abound
<popl> "Hacker News people"?
ybart has joined #ruby
<polysics> whoever votes HN articles up
arietis has joined #ruby
<Hanmac1> thats your problem ... you care about what others say ;P
Hanmac1 is now known as Hanmac
timonv_ has quit [Remote host closed the connection]
<polysics> I do not care. In fact, my opinion is that an "X is dead" article means X is mature.
ttttt_d3f76 has joined #ruby
obs has joined #ruby
ahawkins has quit [Ping timeout: 272 seconds]
<polysics> it just means you are getting rid of hipsters and amateurs.
aagdbl has quit [Quit: This computer has gone to sleep]
ttttt_d3f76 has left #ruby [#ruby]
<mengu> ]]l
<mengu> damn
<mengu> polysics: they all be doin nodejs now
<polysics> for the next 2 weeks, yes :D
<mengu> i don't think anything would kill rails, if you are referring to that post
<mengu> only rails is gonna kill itself
workmad3 has joined #ruby
<polysics> I like the workflow a guy talks about, prototype in Rails and eventually port to Go if needed
joonty has joined #ruby
<polysics> and I agree on that too, Rails might kill itself - the core team should start doing less hipstery things themselves.
<mengu> but then ruby is not just rails
<mengu> you can go and enjoy ramaze
<mengu> or padrino
<mengu> or sinatra
<polysics> I do not even do much web dev
<polysics> but I understand the importance Rails has for Ruby, and that should not be underplayed
hiyosi has joined #ruby
flops has quit [Ping timeout: 245 seconds]
<Hanmac> i can do window apps or 3D rendering in ruby too without rails
<mengu> i mainly do web with python
<polysics> Hanmac: I am the first in line to tell people "Ruby is not just Rails"
workmad3 has quit [Read error: Operation timed out]
<polysics> but mine is a "political" remark: the success of Ruby is built on Rails
hiyosi has quit [Ping timeout: 245 seconds]
mengu has quit [Read error: No route to host]
<Hanmac> my first contact with ruby was as scripting language in a Game Editor ,P
<polysics> I do telephony apps using http://adhearsion.com/
gyre007 has joined #ruby
<polysics> shameless plug: we have a conference coming up in Atlanta :)
gyre007 has quit [Remote host closed the connection]
gyre007 has joined #ruby
aagdbl has joined #ruby
blaxter_ has joined #ruby
gyre007 has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
AndChat| has quit [Ping timeout: 256 seconds]
tobago has joined #ruby
tobago has quit [Changing host]
tobago has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
kaushal has joined #ruby
<kaushal> Hi
<kaushal> I am new to ruby. Can someone please suggest me to start learning ruby from beginners point of view?
<kaushal> Any books or online tutorials or self start guide
Hanmac1 has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
flops has joined #ruby
kaspergrubbe has joined #ruby
sakshi has joined #ruby
jhaals has joined #ruby
<polysics> hmm
gyre007 has joined #ruby
<polysics> my wife has enjoyed http://pine.fm/LearnToProgram/
<polysics> Chris Pine's book
<polysics> can you program in any other language?
sputnik1_ has joined #ruby
raphaelivan has joined #ruby
raphaelivan1 has joined #ruby
raphaelivan1 has quit [Client Quit]
<roolo> I've created ticket for that https://github.com/sinatra/sinatra-contrib/issues/111
timonv has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
shiney has joined #ruby
Hanmac has joined #ruby
<kaushal> polysics: Are you referring to me?
<kaushal> polysics: i do shell scripting
<polysics> kaushal: yes. So you haven't done any application development before
<kaushal> polysics: nope
<polysics> I'd go with Chris Pine's tutorial then
bluOxigen has quit [Read error: Connection reset by peer]
<kaushal> ok
jhaals has quit [Ping timeout: 264 seconds]
psyl0n has joined #ruby
<kaushal> polysics: is it available in dead tree format?
Hanmac1 has quit [Ping timeout: 272 seconds]
<polysics> I think PragProg sells it here
flops has quit [Read error: Connection reset by peer]
Ripp__ has joined #ruby
jhaals has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
<kaushal> polysics: ok
jamblack has joined #ruby
zarubin has joined #ruby
sepp2k has joined #ruby
gtsiftsis has joined #ruby
<kaushal> polysics: what does "The Pragmatic Bookshelf" mean?
<kaushal> I have never heard of this before
<kaushal> the word itself is new to me
<polysics> it's just the name of the editor
<kaushal> Does Pragmatic mean pratical?
<polysics> pragmatic means "someone that operates in a realistic way according to practical considerations"
<kaushal> practical?
<polysics> yeah, more or less that
<kaushal> ok
psyl0n has quit [Quit: psyl0n]
<kaushal> polysics: Thanks
<polysics> do not pay too much attention to that though, it is just a name in this case :D
<kaushal> ok
<polysics> they happen to publish many good books though
<kaushal> polysics: sure and thanks for pointing me to the right resource
<kaushal> polysics: do you suggest me to buy it or read it online?
<polysics> I hope that will help, my wife went from total n00b to Sinatra developer on that :D
<kaushal> oh great
<kaushal> good to hear
<polysics> I think the print edition is more up to date which is strange
<kaushal> i see
thepumpkin has joined #ruby
<polysics> yeah, what is online is the original tutorial, the book gets updated more often
<polysics> the eBook is not much cheaper, get the book :D
Foredoomed has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<polysics> that is old
<polysics> if you are not in the US, get the eBook from PragProg
<kaushal> ok
<polysics> it is updated for ruby 2
<polysics> you are looking for the 4th edition
<polysics> not the second
<kaushal> ok
thepumpkin has quit [Ping timeout: 245 seconds]
<kaushal> polysics: You say it is 4th edition but http://pragprog.com/book/ltp2/learn-to-program says it is 2nd edition. Any clue?
karupanerura is now known as zz_karupanerura
<polysics> what matter is "This fourth printing of Learn to Program, 2nd edition has been updated for Ruby 2.0."
shaunbaker has joined #ruby
<kaushal> polysics: please point me to the url
<polysics> and the PragProg website will certainly sell you the latest
<polysics> that's the correct page, just get the eBook off that
rahim has quit [Quit: leaving]
<kaushal> but it says 2nd edition
lyanchih has quit [Quit: lyanchih]
coca_rails has joined #ruby
<kaushal> when you select ebook format. Please confirm
<polysics> they made it a little tricky, it's the fourth printing but you want the 2nd edition
<kaushal> ok
mengu_ has quit [Quit: This computer has gone to sleep]
monkegjinni has quit [Remote host closed the connection]
jcromartie has joined #ruby
monkegjinni has joined #ruby
shredding has quit [Quit: shredding]
monkegjinni has quit [Read error: No route to host]
monkegjinni has joined #ruby
coca_rails has quit []
wald0_ has joined #ruby
Xeago has quit [Remote host closed the connection]
<wald0_> im reading some cheatsheets / reference of ruby, but is there any equivalent one in CODE?, i mean... these references has a small sentence of "what is" something, but doesnt make me understand it if i have not already read about that
jprovazn has quit [Quit: Leaving]
bluOxigen has joined #ruby
chinychinchin has joined #ruby
brennanMKE has joined #ruby
<wald0_> so in "code" as i mean, its an example code including all the ruby language/elements, like "this $? is the return value of the last returned process finished" (which you can probably run, etc)
<kaushal> polysics: < polysics> I hope that will help, my wife went from total n00b to Sinatra developer on that :D
coca_rails has joined #ruby
<kaushal> not sure i understand Sinatra developer. what does Sinatra mean?
<polysics> Sinatra is a very simple web application library for Ruby
blueOxigen has joined #ruby
<kaushal> polysics: what does it do technically?
bluOxigen has quit [Read error: Connection reset by peer]
BizarreCake has joined #ruby
<mikecmpbll> kaushal: think of it like a squashed down version of rails if you like, with the routes and controllers combined.
<kaushal> ok
h_kon has quit [Remote host closed the connection]
<kaushal> polysics: Thanks a lot for the encouragement
<kaushal> have ordered it online and will start reading it
Hanmac1 has joined #ruby
brennanMKE has quit [Ping timeout: 240 seconds]
<polysics> you will love it. Also, you chose the right language to start from :)
<kaushal> cook
<kaushal> cool*
<kaushal> Thanks again
BraddBitt has quit [Read error: Connection reset by peer]
<polysics> cheers, and swing by when you have questions :)
BraddBitt has joined #ruby
luke_ has joined #ruby
Anarch has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
<kaushal> polysics: sure and meanwhile can i refer ruby website to get started?
Hanmac has quit [Ping timeout: 272 seconds]
tvw has joined #ruby
<kaushal> polysics: do you think thats the right approach?
blueOxigen has quit [Ping timeout: 240 seconds]
Anarch has joined #ruby
<polysics> the ruby website is not very start-friendl
<polysics> *y
<polysics> you are better off with a good book
<kaushal> ok
<wald0_> polysics: thx, well i meant more like something very small, like a code of 2-3 pages longs which includes examples (in code, with commented, more like in text), about examples of the ruby lang
barratt has quit [Ping timeout: 245 seconds]
<polysics> that would never fit in 3 pages, Ruby is not Go :D
<kaushal> polysics: how long you have been coding in Ruby?
shredding has joined #ruby
postmodern has quit [Quit: Leaving]
<polysics> professionally? 3 years now
<kaushal> ok
<polysics> 10 years of PHP and JS and C before that
<kaushal> polysics: You started of with reading a book or online tutorials?
<polysics> you know, I do not really remember :D
<mikecmpbll> just write ruby
<kaushal> mikecmpbll: ok
<wald0_> polysics: btw, i started reading "begining ruby" because i liked a lot how the examples are made on it, maybe its a bit basic for me since i already know bash and C so i hesistate to continue reading from another book like the pixaxe, friends suggested me the well-grounded one, what you think that can be a good option?
<polysics> you can never read enough books.
<mikecmpbll> learn as you go. the notion that you can learn a language by reading a book cover to cover is frankly bizarre to me.
<polysics> I am not a great fan of the pickaxe
Hanmac1 has quit [Ping timeout: 240 seconds]
Hanmac has joined #ruby
<popl> The pickaxe is a great invention.
<polysics> mikecmpbll: that is why I put greater value in Eloquent Ruby or The Well-Grounded Rubyist, or Metaprogramming Ruby
<polysics> they have more value than just "language"
* mikecmpbll shrugs. never used a book for anything but reference
<wald0_> when i searched books i skipped the pixaxe one because it wont included "nice examples" (so more hard to understand), by other side i assume that is the more complete/advanced one?
<polysics> popl: my personal preference goes to Matz's book
bluOxigen has quit [Ping timeout: 246 seconds]
<polysics> Pickaxe and Matz's are about the language
<polysics> the others mentioned are about practices
<wald0_> unfortunately Matz's book is very old (old ruby version), isn't ?
<polysics> there might not be a Ruby 2.0 version
Nilium has quit [Ping timeout: 240 seconds]
<kaushal> I am really astonished how people invent proggramming language :)
coca_rails has quit [Remote host closed the connection]
<wald0_> well, Matz's is not even 1.9, is 1.8 iirc
coca_rails has joined #ruby
<wald0_> kaushal: programming language is just a shortcut way to tell the computer what you want to do :), your imagination does everything creating the language "ways of"
<kaushal> Yukihiro Matsumoto is a brilliant person to invent Ruby :)
<kaushal> wald0_: your thoughts?
<polysics> Ruby was created for "programmer happiness" above all
<kaushal> is ruby interpretor created by Yukihiro Matsumoto?
h_kon has joined #ruby
bassclef has joined #ruby
<kaushal> or the program syntax
<polysics> I think Matz built the first Ruby interpreters
<polysics> but he mostly started the syntax
<polysics> nowadays implementations (interpreters) are managed by other people
bassclef is now known as Guest42552
danshult_ has joined #ruby
<kaushal> so the interpreters are written in C?
<polysics> when I met Matz, I had the impression Ruby is still an academic project to him
DouweM has quit [Ping timeout: 240 seconds]
<kaushal> polysics: ok
svector has joined #ruby
xeon_ has joined #ruby
<polysics> kaushal: the "normal" interpreters are in C
<polysics> JRuby is Java, and Rubinius is… Ruby
xeon_ has quit [Max SendQ exceeded]
svector has quit [Max SendQ exceeded]
<polysics> but for all practical purposes only C Ruby and JRuby exist :)
<kaushal> Any specific reason to use C to write interpreters?
svector has joined #ruby
<kaushal> is it due to the low level architecture available in C?
svector has quit [Max SendQ exceeded]
coca_rails has quit [Ping timeout: 240 seconds]
<polysics> C is still the best compromise between low-level and an usable langauge
sergicles has joined #ruby
<polysics> yes, exactly
bluOxigen has joined #ruby
hiyosi has joined #ruby
xeon_ has joined #ruby
<lupine> I dunno, D is good too
svector has joined #ruby
coca_rails has joined #ruby
<lupine> anyway, rbx is C++ where it's not ruby
<polysics> that C is still unbeaten after all these years speaks volumes
vasilakisFiL has joined #ruby
svector has quit [Max SendQ exceeded]
xeon_ has quit [Max SendQ exceeded]
<polysics> you should not even care about rbx tbh
xeon_ has joined #ruby
<lupine> be nice
<kaushal> I think C is the mother of all Programming Languages
svector has joined #ruby
<kaushal> hats off and still it is very much used
<lupine> kaushal, that's ignoring approximately half of the field
svector has quit [Max SendQ exceeded]
Nilium has joined #ruby
<vasilakisFiL> hey may sound stupid but I don't know how to split some lines.. for instance this line here is 88 chars (with identation). header_fields[:If_Unmodified_Since] = line.split(/^If-Unmodified-Since:\s/)[1] How should I split it?
<kaushal> lupine: not sure i understand that
svector has joined #ruby
<polysics> well, not really - the Algol family won hands down :)
<lupine> C is not the mother of lisp or its derivatives
svector has quit [Max SendQ exceeded]
tjad_ has joined #ruby
<polysics> whose market share comprises approximately one pixel of the C character. :D
svector has joined #ruby
blueOxigen has joined #ruby
svector has quit [Max SendQ exceeded]
<polysics> academic merits aside, of course
<lupine> it may look that way in your subset of the market
svector has joined #ruby
xeon_ has quit [Max SendQ exceeded]
svector has quit [Max SendQ exceeded]
xeon_ has joined #ruby
<lupine> but I wasn't really bringing market share up
ldnunes has joined #ruby
xeon_ has quit [Max SendQ exceeded]
<kaushal> polysics: what did you liked about Matz?
<polysics> feature-wise, Lisp is as important as C
svector has joined #ruby
xeon_ has joined #ruby
bluOxigen has quit [Ping timeout: 248 seconds]
<kaushal> I mean when you met him personally
svector has quit [Max SendQ exceeded]
<polysics> Matz is really relaxed and outgoing, I was not expecting that from a "celebrity"
<polysics> just go to a conference he is speaking at and meet him :D
tjad_ has quit [Read error: Connection reset by peer]
xeon_ has quit [Max SendQ exceeded]
hiyosi has quit [Ping timeout: 246 seconds]
coca_rails has quit [Ping timeout: 248 seconds]
<kaushal> outgoing meaning down to earth?
svector has joined #ruby
tjad has quit [Ping timeout: 256 seconds]
xeon_ has joined #ruby
<polysics> yes
tharindu has joined #ruby
<polysics> but just as C is not "programming" Matz no longer "is Ruby" nowadays
kebomix has joined #ruby
<kaushal> polysics: ok
tatsuya__ has joined #ruby
xeon_ has quit [Max SendQ exceeded]
Hanmac1 has joined #ruby
<kaushal> is Matz working for some organization?
danshult_ has quit [Remote host closed the connection]
<kebomix> hello guys, just installed ruby/rails on new server , when ever i run rake task i get this error http://pastebin.com/ik8PThKi
<kebomix> and ideas how to solve ?
flops has joined #ruby
xeon_ has joined #ruby
<polysics> you know, I have no idea - I think he was consulting for Github but I might be wrong
<polysics> he is in academy
danshult_ has joined #ruby
jonr22 has joined #ruby
<polysics> never seen that O_o
<kaushal> polysics: what did you learned from him?
thesheff17 has quit [Read error: Operation timed out]
<kaushal> during the meeting
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
tatsuya_o has quit [Ping timeout: 272 seconds]
<polysics> not much, we ate dinner and were actually discussing conference logistics with Jim Freeze and others :)
kaspergrubbe has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 256 seconds]
kaspergr_ has joined #ruby
<kaushal> Its really encouraging when you write some code and that works as you expect it to do
pyrac has quit [Quit: pyrac]
jonr22 has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
jonr22 has joined #ruby
jprovazn has joined #ruby
<vasilakisFiL> anyone? :P
kaushal has quit [Read error: Connection reset by peer]
kaushal has joined #ruby
svector has quit [Max SendQ exceeded]
svector has joined #ruby
danshult_ has quit [Ping timeout: 264 seconds]
svector has quit [Max SendQ exceeded]
svector has joined #ruby
svector has quit [Max SendQ exceeded]
lyanchih has joined #ruby
svector has joined #ruby
pyrac has joined #ruby
svector has quit [Max SendQ exceeded]
nignaztic has joined #ruby
svector has joined #ruby
<wald0_> kaushal: yes, my thoughts, nothing officially stated anywhere :)
svector has quit [Max SendQ exceeded]
svector has joined #ruby
nonamehero has quit [Ping timeout: 245 seconds]
danshult_ has joined #ruby
cdelo has joined #ruby
mojjojo has joined #ruby
danshult_ has quit [Remote host closed the connection]
<mojjojo> what does this error mean: undefined method `days_ago' for 11:Fixnum ?
sakshi has quit [Quit: Bye]
danshult_ has joined #ruby
nazty has quit [Ping timeout: 246 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
lkba has joined #ruby
eka has joined #ruby
kaspergr_ has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
Al_ has quit [Quit: Al_]
SHyx0rmZ has joined #ruby
kebomix has quit [Ping timeout: 250 seconds]
platzhirsch has joined #ruby
mengu has joined #ruby
nonamehero has joined #ruby
andredurao has joined #ruby
danshult_ has quit [Ping timeout: 265 seconds]
mikecmpbll has joined #ruby
thesheff17 has joined #ruby
popl has quit [Quit: We must make an idol of our fear, and call it God.]
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
Vendethi_ has quit [Remote host closed the connection]
<_br_> mojjojo: It means you are using RubyOnRails namespace pollution on a standard non-rails Fixnum class. Fixnum doesn't have that #method.
krz has quit [Quit: krz]
Xeago has joined #ruby
Al_ has joined #ruby
zmansiv has quit [Ping timeout: 240 seconds]
Bry8Star{T2 has quit [Remote host closed the connection]
freerobby has joined #ruby
zmansiv has joined #ruby
nonamehero has quit [Ping timeout: 245 seconds]
Bry8Star{T2 has joined #ruby
shadoi has quit [Ping timeout: 260 seconds]
<Deele> hey, what's up with gems. I just tried "gem sources -a http://rubygems.org"
brtdv has quit []
<Deele> and got "Error fetching http://rubygems.org:"
ahawkins has joined #ruby
<Deele> "Errno::EACCES: Permission denied - connect(2) (http://rubygems.org/specs.4.8.gz)"
<andrewvos> Why is it a good idea to disable root login on production servers?
<andrewvos> I mean, what are the top reasons?
ismlages has joined #ruby
Banistergalaxy has joined #ruby
<Deele> anderse, because root can access everything. better create specific user, that has access only to that, what is needed
<Deele> andrewvos ^
<anderse> ;P
<Deele> sry anderse
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
threesome has joined #ruby
<andrewvos> Cool that's what I was thinking. Wondered if there was some other reason
<Deele> that is top reason
shadoi has joined #ruby
<Deele> second reason - root login is first to fall under brute-force attacks
<Deele> because it is known login name
Hanmac1 has quit [Ping timeout: 246 seconds]
<Deele> every other reason are undert that top reason
Hanmac has joined #ruby
<Deele> "Errno::EACCES: Permission denied - connect(2) (http://rubygems.org/specs.4.8.gz)"
<Deele> I just tried "gem sources -a http://rubygems.org" and got "Error fetching http://rubygems.org:" what does that mean?
<Deele> could anyone explain?
<andrewvos> It's slow as shit for me too Deele
<andrewvos> Oh wait there
<andrewvos> rubygems has graced me with a gem install
bluOxigen has joined #ruby
vlad_starkov has joined #ruby
<andrewvos> Sorry just playing, I know some people work hard on rubygems :)
<Hanmac> Deele: "why not https" ?
nonamehero has joined #ruby
nonamehero has quit [Changing host]
nonamehero has joined #ruby
brennanMKE has joined #ruby
<andrewvos> Hanmac: I think a lot of people stopped using https because it was too slow
blueOxigen has quit [Ping timeout: 240 seconds]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
<Hanmac> andrewvos: last time i checked gems does not want to connect to rubygems unless https is used
Czupa has joined #ruby
<Deele> Hanmac testing...
luke_ has quit [Quit: Leaving...]
camilasan has quit [Remote host closed the connection]
<Deele> Hanmac, Errno::ETIMEDOUT
pranny has joined #ruby
camilasan has joined #ruby
freerobby has quit [Quit: Leaving.]
<dzan> hi, could someone please have a look ( minimal example ) I've been at this for 2 days can't find it but i'm still learning ruby: http://pastebin.com/WmQideYd
brennanMKE has quit [Ping timeout: 265 seconds]
<dzan> problem is when I comment out 1 of the regexes it's correct
<dzan> when I leave them both in place the second one return a wrong line number
vasilakisFiL has left #ruby ["Konversation terminated!"]
barratt has joined #ruby
<hoelzro> what's wrong about the line number?
brtdv has joined #ruby
jamblack has quit [Quit: jamblack]
<dzan> hoelzro, it returns the wrong result
camilasa_ has joined #ruby
<dzan> but it's correct when I just have 1 regex
<hoelzro> and what is the wrong result?
<hoelzro> you need to provide more information
pranny has quit [Quit: Leaving.]
<hoelzro> I have no idea what the regexes you're using are
<hoelzro> nor the data they're being used on
ph8 has quit [Ping timeout: 246 seconds]
jgoss has quit [Ping timeout: 246 seconds]
camilasan has quit [Read error: Connection reset by peer]
anderse has quit [Quit: anderse]
<dzan> hoelzro, it's not really relevant because I determined the regexes not to be the issue they work seperatly ( when I comment one of them out )
<dzan> it's just when I have them both evaluated like in the paste the second one is messed up
jamblack has joined #ruby
madb055 has joined #ruby
<apeiros> dzan: awesome
<apeiros> you don't know what the problem is, yet you feel fit to rule out what it isn't…
varfoo has quit [Quit: WeeChat 0.4.0]
maz-dev has quit []
<dzan> apeiros, ok hold on i'll provide more
<dzan> people always ask for a minimal example is all
nfk has joined #ruby
<apeiros> dzan: yes. and what you gave is not.
<apeiros> minimal *reproducable* example
<apeiros> the reproducable part is pivotal.
dma has joined #ruby
hiyosi has joined #ruby
dma is now known as Guest18198
taternuts has joined #ruby
includex has joined #ruby
taternuts has quit [Client Quit]
Guest18198 has quit [Remote host closed the connection]
xeon_ has quit [Remote host closed the connection]
svector has quit [Remote host closed the connection]
jlast has joined #ruby
ananthakumaran has quit [Ping timeout: 240 seconds]
<dzan> apeiros, hoelzro working script (minimal): http://paste.debian.net/63108/
<dzan> file to execute it on: http://paste.debian.net/63109/
ananthakumaran has joined #ruby
<apeiros> and the desired output?
<dzan> Block Start: 50
<dzan> Block End: 50
flops has quit [Ping timeout: 240 seconds]
yosafbridge has quit [Read error: Connection reset by peer]
<hoelzro> line 50 contains a start and end comment...
<hoelzro> graph: /* Empty */
<_br_> andrewvos: For production deployment its often also a good idea to cram everything into a virtual guest, gives you a bit more isolation in case something goes wrong.
kaspergrubbe has quit [Remote host closed the connection]
<dzan> hoelzro, i know
<dzan> hoelzro, there must be something I don't understand :D
<hoelzro> oh, sorry, I misunderstood
<hoelzro> that's the *expected* output
kaspergrubbe has joined #ruby
<dzan> yeah :)
<dzan> I get 50 & 2
mlpinit has joined #ruby
<andrewvos> _br_: You mean like inside a container or a VM?
jlast has quit [Ping timeout: 245 seconds]
nateberkopec has joined #ruby
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claymore has quit [Ping timeout: 256 seconds]
mlpinit has quit [Remote host closed the connection]
brtdv has quit []
yalue has joined #ruby
<hoelzro> hmm
<hoelzro> well
<apeiros> dzan: you're iterating lines
mlpinit has joined #ruby
<apeiros> line 50 is already consumed
<hoelzro> I'm guessing that find_index on a file updates the file pointer
<apeiros> 2 lines later you get an end
kaspergrubbe has quit [Read error: Operation timed out]
<dzan> oh
<dzan> that wasn't clear from the docs for me
<apeiros> on another note: why do you recreate the regex all the time?
brtdv has joined #ruby
<dzan> should first reset the iterator? or is there a better way
Ripp__ has quit []
<dzan> apeiros, because I'm new to ruby :) doing some stupid stuff probably
<_br_> andrewvos: Yep, its something you want to do for ease of maintenance and security. Also, that together with Vagrant+Docker is a nice combination for development and deploys.
<dzan> well it's not ruby related I shouldn't create objects
<dzan> like that
jacobw has quit [Read error: Operation timed out]
ph8 has joined #ruby
<andrewvos> I'm starting to think vagrant is a pain
<andrewvos> _br_:
<andrewvos> It's just too slow
k610 has joined #ruby
<apeiros> dzan: just put the regex in the hash
<andrewvos> It feel like I'm going into a fight with a gigantic hammer that is too heavy to lify
<andrewvos> lift
kaushal has quit [Ping timeout: 240 seconds]
<apeiros> cs_start = {".c" => '\/\*' --> cs_start = {".c" => /\/\*/,
<dzan> apeiros, thanks
<apeiros> and then in the find_index: line =~ cs_start[ext]
pu22l3r has joined #ruby
flayer has joined #ruby
mlpinit has quit [Ping timeout: 246 seconds]
yosafbridge has joined #ruby
<hoelzro> there's also %r
<hoelzro> to avoid extra backslashes
<hoelzro> %r{/\*}
<dzan> hoelzro, zo %r{} is identical to //
<hoelzro> yes
<dzan> s/zo/so/ :p
bluOxigen has quit [Ping timeout: 246 seconds]
<_br_> andrewvos: You mean the initial creation of the box?
<hoelzro> Ruby has several handy quote forms inherited from Perl: %q, %Q, %x, %r, %w, %I
danshult_ has joined #ruby
<hoelzro> (not sure about that last one; I'm not on the up-and-up on Ruby 2)
xk_id has joined #ruby
<apeiros> %i and %I, yes, as of 2.0
vlad_starkov has quit [Remote host closed the connection]
Al_ has quit [Quit: Al_]
nari has joined #ruby
<apeiros> same rule as everywhere: %i has no interpolation, %I does
<andrewvos> _br_: And vagrrant provisioning it
<andrewvos> Does anyone else think this google boat might be some sort of AI that is going to enslave all humanity?
<dzan> don't know perl :D
<hoelzro> no need =)
<hoelzro> I just like to point out cool features that come from Perl ;)
dangerousdave has quit [Quit: Linkinus - http://linkinus.com]
kitak has joined #ruby
<dzan> hoelzro, yeah that's one thing I don't like about ruby... it's possible to do the same thing in 10 different ways
<hoelzro> dzan: what's your programming background?
<dzan> leaving me with the idea of whatever I write it's not the best way to go
<_br_> andrewvos: Google, enslave? Well, corporations have too much power these days.
<dzan> hoelzro, C / Java / asm
AndChat| has joined #ruby
<dzan> I needed to learn a good scripting language
<dzan> tired of bash
<hoelzro> alright
<dzan> or js
<hoelzro> heh
<wald0_> if im writing something in Vim, like a.freeze, and I want to "read the doc" to know, what is the more handy way to get doc when needed?
<hoelzro> well, it's my opinion that no matter which language you're working with, there's always more than one way to do something
<hoelzro> in spite of claims to the contrary
pu22l3r has quit [Remote host closed the connection]
zipper has joined #ruby
<wald0_> dzan: hey, you have just the same problem as me :), i was doing everything on bash and i got tired of its no-features and hacky ways to try to include features :), so im learning ruby now!
binaryplease has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
pu22l3r has joined #ruby
hiall has joined #ruby
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
<hoelzro> wald0_, dzan: out of curiosity, what made you choose Ruby as a scripting language to learn?
<dzan> hoelzro, I mean like why allow both ('s or not or have methods both with '.' or '#' ...
heftig has quit [Ping timeout: 245 seconds]
Banistergalaxy has quit [Ping timeout: 272 seconds]
<dzan> hoelzro, imo there were 2 options, ruby or python
shredding has quit [Quit: shredding]
<dzan> there is perl but there are more libs for the others that interest me
<wald0_> dzan: i have the same feeling about "not the best way", but i have not started to code anything yet so for now its just a feeling
lyanchih has quit [Ping timeout: 241 seconds]
<dzan> and python with the 2.x 3.x screwup and the indentation stuff nah
<dzan> also RoR is interesting
<hoelzro> methods with '#' are nomenclature for pointing out an instance method
<hoelzro> what libraries did you feel Perl was missing?
<dzan> wald0, yes there are a lot of options :p
<wald0_> hoelzro: basically i discovered ruby recently, i mean "i have see what nice things has", maybe from the 20-minutes thingy of the website, idk, so i feeled interested thinking "oh nice! oh nice!" and i continue reading about it :)
<hoelzro> I've been using it for 8 years and I've never found a library that was available in for a langauge but not for Perl
<dzan> hoelzro, not 'missing' but if I'm about to create a quick ui I don't see me using perl
jrhe has joined #ruby
<hoelzro> desktop or web UI?
<dzan> dekstop
<dzan> desktop*
heftig has joined #ruby
<hoelzro> hmm
<hoelzro> for which OS?
<wald0_> hoelzro: by other side, answering your question, i needed a powerful language which allows me to do "anything" in a handy-to-code way, ruby seems to fit perfectly, and I also needed to use some C libs so with FFI seems that i can perfectly do that
<dzan> python is most used for that purpose but everone knows python :p
<hoelzro> wald0_: cool =) what's your background?
<dzan> hoelzro, debian
Aryasam has joined #ruby
<wald0_> dzan: i was never convinced with python too, by some reason, also i dont like that identation rules
<hoelzro> dzan: Perl does have GTK and Qt bindings
<hoelzro> but I'll stop evangelizing Perl in a Ruby channel now ;)
<wald0_> hoelzro: no web, im only interested (needed of) desktop UI / apps
<wald0_> for linux
pu22l3r has quit [Ping timeout: 268 seconds]
<hoelzro> wald0_: and what languages do you already know?
<dzan> hoelzro, not saying it doens't have them
<dzan> hoelzro, but i'd like a real oo language for ui programming
<dzan> and I know you can fake oo in perl but that's not the purpose
cpruitt has quit [Read error: Connection reset by peer]
jlebrech has joined #ruby
maasha has joined #ruby
<hoelzro> I would call doing OO in C "faking" OO
<hoelzro> but Perl has OO builtin
<dzan> hoelzro, it is
<maasha> gday
<dzan> hoelzro, have you seen the implementation? :)
<hoelzro> it's not as pervasive in the language as in Ruby, sure
<wald0_> hoelzro: background? well, i have always coded every need in bash, used zenity for simple gui interfaces, and i have some knowledge with C but never really used of it because is more "long" to code (as the contrary in ruby)
<maasha> hoelzro: perl has OO added
<hoelzro> dzan: I've seen and written several =)
<hoelzro> maasha: I'm aware =)
<dzan> :-) anyway quick ui's => java
<maasha> hoelzro: you wrote builtin. not quite the same :o)
<hoelzro> maasha: the semantics for OO are built into Perl
<wald0_> yeah, OO is very welcome now for me... im just not "used" for it, for example, i dont know how to code an installer (which is a linear process) using OO concepts lol
<dzan> wald0, create a class Step :p
<dzan> bam objects
jonr22 has quit [Remote host closed the connection]
utkarsh has left #ruby ["Textual IRC Client: www.textualapp.com"]
<wald0_> dzan: i mean, im "used to" write things like "do foo, then bar, call pre-made function for improve structure here"... but my brain is not yet used to "create an object structure with X elements..." it makes me confused
jonr22 has joined #ruby
menace has joined #ruby
includex has quit [Quit: Textual IRC Client: www.textualapp.com]
blaxter_ is now known as blaxter
<wald0_> dzan: what are actually your needs of desktop apps ?
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
<menace> hi, i have a gem which i cloned from github. how do i install it systemwide?
kaushal has joined #ruby
<menace> sry, nevermind, found some google links :)
<wald0_> dzan: btw talking about debian, im also interested in how i should package gems in order to make my app dependendencies correctly working
<zipper> Why Meteor will kill Ruby on Rails: http://differential.io/blog/meteor-killin-rails
WillAmes has joined #ruby
nignaztic has quit [Read error: Connection reset by peer]
nignaztic has joined #ruby
thepumpkin has joined #ruby
bluOxigen has joined #ruby
kpshek has joined #ruby
breakingthings has joined #ruby
Vendethi_ has joined #ruby
<andrewvos> I always thought sinatra would do that, but it seems the whole world is insane.
bluOxigen has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
thepumpkin has quit [Ping timeout: 272 seconds]
cpruitt has joined #ruby
timonv has joined #ruby
burlyscudd has joined #ruby
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
fedalto has joined #ruby
krawchyk has joined #ruby
decoponio has joined #ruby
derebos has joined #ruby
burlyscudd has quit [Client Quit]
mmitchell has joined #ruby
burlyscudd has joined #ruby
mark_locklear has joined #ruby
jaredl has joined #ruby
bluOxigen has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 246 seconds]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Patteh has quit [Remote host closed the connection]
jaredl has quit [Read error: Connection reset by peer]
OdNairy has quit [Ping timeout: 240 seconds]
browndawg has joined #ruby
<wald0_> i have hard to remember/understand whats the difference between a method, a class, and a module
jaredl has joined #ruby
<jaredl> Hey
Patteh has joined #ruby
tharindu has quit [Quit: Leaving...]
<apeiros> wald0_: a class can have instances, a module can't
soba has quit [Ping timeout: 240 seconds]
camilasa_ has quit [Remote host closed the connection]
<apeiros> wald0_: a module can be included into a class, and object can be extended with it - but not with a class
camilasan has joined #ruby
<apeiros> other than that, they're quite similar
randomnick_ has joined #ruby
<apeiros> Module is even Class' superclass
<wald0_> apeiros: so a module is just like a function in "functional programming" (iirc) ? so functions that doesnt modify any data but just "processes" ?
<apeiros> wald0_: no
jaredl has quit [Client Quit]
<apeiros> a module is a method and constant container
<apeiros> same as a class
jaredl has joined #ruby
<tobiasvl> wald0_: a METHOD is like a function in functional programming (except that it belongs to a class/object, and can have side effect)
<apeiros> a method belongs to a receiver, the receiver is what is referred to as `self` within the method
brennanMKE has joined #ruby
claymore has joined #ruby
<apeiros> he implementation of the method may be in a class or a module.
<apeiros> *the
blueOxigen has joined #ruby
brennanM_ has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
nonamehero has quit [Ping timeout: 245 seconds]
Shidash has quit [Ping timeout: 246 seconds]
bluOxigen has joined #ruby
browndawg has quit [Quit: Leaving.]
dawkirst has joined #ruby
derebos has quit [Ping timeout: 246 seconds]
stringoO has joined #ruby
<maasha> all this talk about modules reminds my that I have this error I am trying to nail: fasta.rb:29:in `<module:BioPieces>': superclass mismatch for class Fasta (TypeError)
kaushal has quit [Ping timeout: 246 seconds]
<maasha> The offending line is this: class Fasta < BioPieces::Filesys
blueOxigen has quit [Ping timeout: 245 seconds]
butblack has joined #ruby
raphaelivan has quit [Quit: Leaving.]
<maasha> How can I gather more relevant info about that error so I understand what is going wrong?
brennanM_ has quit [Ping timeout: 246 seconds]
cody-- has joined #ruby
<tobiasvl> oh a google link. great
falood has quit [Remote host closed the connection]
graydot has quit [Quit: graydot]
<tobiasvl> maasha: is Fasta already defined elsewhere with a different superclass?
<tobiasvl> a class can only have one superclass
shadoi has quit [Ping timeout: 245 seconds]
<maasha> tobiasvl: but Fasta is only defined once
dawkirst has quit [Ping timeout: 252 seconds]
* maasha fires up grep
<maasha> tobiasvl: oh
<maasha> OH
zipper has quit [Ping timeout: 265 seconds]
blueOxigen has joined #ruby
zipper has joined #ruby
<andrewvos> tobiasvl: Your name always reminds me of this guy http://2.bp.blogspot.com/-Nx5d6RdyD_0/Tws4Nn_yIuI/AAAAAAAAAD0/MMlQZiPfyws/s400/Tobias.jpg
alup has joined #ruby
<maasha> tobiasvl: Fasta is being reopened here: https://github.com/maasha/biopieces/blob/master/lib/biopieces/align.rb to add some more methods
browndawg has joined #ruby
<maasha> is that the problem?
flops has joined #ruby
ffranz has joined #ruby
<tobiasvl> andrewvos: haha, yes! love him. i was dressed like him on another halloween actually
bluOxigen has quit [Read error: Connection reset by peer]
<andrewvos> :)
soulcake has quit [Read error: Connection reset by peer]
TheMoonMaster has quit [Ping timeout: 246 seconds]
nw_ has quit [Ping timeout: 246 seconds]
<tobiasvl> maasha: yes, the class needs to be defined as a subclass of BioPieces::Filesys there too
nw has joined #ruby
thyagobr has joined #ruby
sam113101 has quit [Ping timeout: 246 seconds]
mikecmpbll has quit [Read error: Operation timed out]
finnomenon has quit [Ping timeout: 246 seconds]
soulcake has joined #ruby
jibi has quit [Quit: .]
sam113101 has joined #ruby
jlast has joined #ruby
tesuji has quit [Excess Flood]
<shevy> wow
camilasan has quit []
finnomenon has joined #ruby
<shevy> maasha, you are into bioinformatics with ruby?
<maasha> tobiasvl: nice - and while trying to test that my entire test/ dir vanished - git to the rescue
<maasha> shevy: yup
shadoi has joined #ruby
bigkevmcd has joined #ruby
<maasha> shevy: ruby is beautiful and with inlineC powerful as well
mlpinit has joined #ruby
TheMoonMaster has joined #ruby
<wald0_> what is the more handy way to get doc when needed? (using vim and a terminal with pry atm)
tesuji has joined #ruby
jonathanwallace has quit [Ping timeout: 248 seconds]
timonv has joined #ruby
<andrewvos> wald0_: Use ri
earthquake has joined #ruby
<andrewvos> or show-doc in pry
mikecmpbll has joined #ruby
admin0 has joined #ruby
lstefani has quit [Ping timeout: 245 seconds]
flops has quit [Read error: Connection reset by peer]
fgo has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 246 seconds]
<maasha> tobiasvl: so in align.rb removing the opening/adding methods to Fasta eleminates the error. Prefixing Fasta with BioPieces::Fasta does not.
jlast has quit [Ping timeout: 256 seconds]
Mon_Ouie has joined #ruby
derebos has joined #ruby
OdNairy has joined #ruby
peneconleche|awa has quit [Quit: Linkinus - http://linkinus.com]
<wald0_> mmmh, seems like shift-K in vim (command mode) shows the doc where the cursor it is... what this uses? ri ?
<tobiasvl> prefixing? you mean adding "< BioPieces::Filesys" after the definition?
acoyfellow has joined #ruby
<maasha> tobiasvl: in align.rb s/Fasta/BioPieces::Fasta/
mikecmpbll has quit [Ping timeout: 246 seconds]
dawkirst has joined #ruby
danshult_ has quit [Remote host closed the connection]
<tobiasvl> where is BioPieces::Filesys defined?
<maasha> filesys.rb
kaldrenon has joined #ruby
danshult_ has joined #ruby
Czupa has quit [Remote host closed the connection]
claymore has quit [Quit: Leaving]
Patteh has quit [Remote host closed the connection]
dma has joined #ruby
jgoss has joined #ruby
Patteh has joined #ruby
dma is now known as Guest29167
mikecmpbll has joined #ruby
<tobiasvl> maasha: when you say "Prefixing Fasta with BioPieces::Fasta does not [work]", what do you mean? what happens?
cody-- has quit [Ping timeout: 245 seconds]
<maasha> tobiasvl: the problem is probably in align.rb with the Fasta manipulation there - which I cant remember what does - and that looks crufty. I should probably kill it and reimplement something nice
zipper has quit [Ping timeout: 265 seconds]
<tobiasvl> you're sure you require the different files in the correct order?
<maasha> tobiasvl: I keep getting fasta.rb:29:in `<module:BioPieces>': superclass mismatch for class Fasta (TypeError)
jonr22 has quit [Remote host closed the connection]
<tobiasvl> so filesys.rb is required before fasta.rb?
<maasha> tobiasvl: and removing the class Fasta block from align.rb fixes this
<maasha> tobiasvl: it should be
jonr22 has joined #ruby
<tobiasvl> s/filesys.rb/align.rb
sambao21 has joined #ruby
codezomb has joined #ruby
<tobiasvl> the error is, at any rate, that there's no way to redefine a class's superclass. it's impossible.
danshult_ has quit [Read error: Connection reset by peer]
<maasha> tobiasvl: requirement order is here: https://github.com/maasha/biopieces/blob/master/lib/biopieces.rb
danshult_ has joined #ruby
cody-- has joined #ruby
zigomir has joined #ruby
iamjarvo has joined #ruby
<maasha> tobiasvl: so where am I redefining?
<tobiasvl> in fasta
<tobiasvl> ok, so align, filesys, fasta. in align.rb, BioPieces::Fasta is created as a class with Object as its superclass
<tobiasvl> that's the default superclass
Guest29167 has quit [Ping timeout: 252 seconds]
fijimunkii has joined #ruby
pixelgremlins has joined #ruby
<tobiasvl> then, in fasta.rb, you attempt to reopen BioPieces::Fasta and make BioPieces::Filesys its superclass. that's not possible, as BioPieces::Fasta already has a superclass, namely Object.
pskosinski has joined #ruby
momomomomo has joined #ruby
<tobiasvl> maasha: understand?
jonr22 has quit [Ping timeout: 246 seconds]
freewizard has joined #ruby
<tobiasvl> so: in align.rb, s/class Fasta/class Fasta < BioPieces::Filesys/ should do the trick. if it doesn't, then also do in fasta.rb: s/class Fasta/class BioPieces::Fasta/
<maasha> tobiasvl: I think I am getting it.
<tobiasvl> i can't test right now, but you shouldn't need the namespace resolution in fasta.rb.
jkamenik has joined #ruby
<tobiasvl> as there's no ambiguity
<maasha> tobiasvl: I require align.rb and that defines Fasta. Then I require fasta.rb and that tries to redefine Fasta with inherintance - and that counts as a redefine which is illegal. if I then require fasta.rb before align.rb I should be safe?
tskogberg has quit [Ping timeout: 256 seconds]
<tobiasvl> well, yes, in regards to Fasta. but i would keep the requiring order in case something else needs that specific order…
allsystemsarego has joined #ruby
<tobiasvl> but the thing is that you need to define the inheritance in the FIRST definition of the class, not in the reopening.
<tobiasvl> how you fix that is up to you :)
wildroman has joined #ruby
shredding has joined #ruby
<maasha> tobiasvl: ok. I see a new world of problems including files in the wrong order that I was not aware of until now :o)
reddix has quit [Remote host closed the connection]
blueOxigen has quit [Remote host closed the connection]
<tobiasvl> exactly ;)
<maasha> tobiasvl: and reversing the include order of fasta.rb and align.rb makes the error goes away! nice! super! thanks!
butblack has quit [Quit: butblack]
bluOxigen has joined #ruby
<dzan> basic (stupid question): I have a class A < B with an instance variable @var
<maasha> of cause, all unit tests are now red
<tobiasvl> maasha: hehe. good luck!
<dzan> when I try to use @var in a method it should be in scope right?
<maasha> I'll get it from here :o)
<tobiasvl> dzan: http://gist.github.com
Hanmac has quit [Ping timeout: 272 seconds]
iamjarvo has quit []
iamjarvo has joined #ruby
butblack has joined #ruby
butblack has left #ruby [#ruby]
<shevy> dzan it is valid for the whole class
Gooder has joined #ruby
<shevy> >> class Foo; def initialize; @var = 5; end; def hi; puts @var;end;Foo.new.hi
<eval-in> shevy => /tmp/execpad-40a7a0621a2f/source-40a7a0621a2f:7: syntax error, unexpected end-of-input, expecting keyword_end (https://eval.in/59118)
<shevy> grrrrrr
<shevy> >> class Foo; def initialize; @var = 5; end; def hi; puts @var;end;end;Foo.new.hi
<eval-in> shevy => 5 ... (https://eval.in/59119)
<shevy> dzan but you have to make sure that the @var exists
<dzan> shevy, tobago line 40 ( http://paste.debian.net/63115/ ) 'ignore_paths' seem to be Nil
<shevy> >> class Foo; def initialize; end; def hi; puts @var;end;end;Foo.new.hi
<eval-in> shevy => ... (https://eval.in/59120)
<shevy> dzan then you had an error
Jetchisel has joined #ruby
<shevy> yes
<shevy> the problem is you do not have @ignore_paths
<shevy> you have @@ignore_paths
<shevy> you must look properly
<dzan> shevy, yeah I know the difference :) but @ignore_paths doesn't work neither
<shevy> you know the difference but then you must also know that these are two different variables
<dzan> shevy, I understand my paste i wrong :)
<dzan> is*
<shevy> as I wrote before, @ignore_paths must be nil because you are never using it before
<dzan> but I tried both as instance and as class variable
<shevy> so how else could it be anything other than nil?
<dzan> shevy, I defined it on top? :D
<shevy> no you did not
<dzan> shevy, not in the paste, it's wrong as I said :)
<shevy> anyway, call it from within initialize and then it will work
<dzan> I know I still have @@ in there
<shevy> no
<shevy> if you would have defined it properly, it would have worked
jerius has joined #ruby
<dzan> shevy, ok so all ruby object state needs to be defined in the initialize method?
h_kon has quit [Remote host closed the connection]
iamjarvo_ has joined #ruby
<shevy> no
Aryasam has quit [Ping timeout: 272 seconds]
<shevy> you can define it in any method
earthquake has quit [Quit: earthquake]
erry_ has joined #ruby
<shevy> but initialize is the one that gets called when you use #new, right after #allocate I think
freewizard has quit []
<shevy> I never use initialize myself, I always delegate to subsequent methods, usually I define #reset, so that I can reset my objects at runtime
<dzan> shevy, ok I'm sorry, I'm new to ruby and forgot some parts of what i read
<shevy> (I mean, I never use initialize for pure initializing, I let specific methods do that, which I add to initialize)
<dzan> shevy, so basically in ruby you can not just define variables in a class scope, needs to be done in a method?
nonamehero has joined #ruby
erry_ has left #ruby [#ruby]
<shevy> of course you can define a variable in class scope, but it wont be easily available in your object
<shevy> look at this:
<dzan> shevy, because ruby classes are just objects of the Class type right?
<shevy> >> class Bar; @x = 5; end; Bar.instance_variables
<eval-in> shevy => [:@x] (https://eval.in/59121)
<shevy> dzan I think so
<shevy> I think it depends what self is at the time
<maasha> instance variables should be defined in the initialize method for sanity, IMHO
jhaals has joined #ruby
<shevy> dzan just put your @var inside initialize() and re-run your code
iamjarvo has quit [Ping timeout: 252 seconds]
<shevy> and when it works
<jaredl> agree with maasha
<shevy> get rid of all @@vars :D
<dzan> shevy, I did, but seems like my initialize needs to take 3 arguments ( figuring that out, probably because I inherit from Thor )
<shevy> aha
<shevy> Thor Wauki throws lightning hammer at you!
<dzan> shevy, ok, seemed like a good idea because they belong to the class and not to an object
bean__ has joined #ruby
<dzan> :-)
jcromartie has joined #ruby
<maasha> you can use super
Heero_ has quit [Read error: Connection reset by peer]
<shevy> the best way IMO in ruby is to try to remain as simple as possible, unless there are clear reasons or advantage for complexity
Heero_ has joined #ruby
<maasha> shevy: goes for all things in life
<shevy> which is why I hate the @@foo things
derebos has quit [Ping timeout: 272 seconds]
<shevy> maasha well but you also want to add code to add new features
<shevy> like when you want to make something more convenient to use or more reliant
<maasha> of cause.
<shevy> or to write test code to test your code
momomomomo_ has joined #ruby
momomomomo has quit [Ping timeout: 256 seconds]
momomomomo_ is now known as momomomomo
<shevy> it would be simpler to not write test code :D
<maasha> reading about fibers makes my head spin
<wald0_> nobody uses vim? i wonder which is a good editor for ruby
<tobiasvl> i use vim
<tobiasvl> for
<tobiasvl> EVERYTHING
<thyagobr> i use vim and sublime, depends on mood :P
* hoelzro uses Vim
<maasha> vim works
<wald0_> suggested plugins for vim for ruby ? :)
<maasha> I was hiring a sysadm. Last inver view question was always "what is your favorite editor?"
<thyagobr> =D
<wald0_> maasha: is this a discrimination procedure or a simple profile thing?
sailias has joined #ruby
maycon has joined #ruby
<maasha> mostly for fun
burlyscudd has quit [Quit: Leaving.]
tboerger has quit [Read error: Operation timed out]
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nateberkopec has quit [Quit: Leaving...]
burlyscudd has joined #ruby
kpshek has quit []
CreativeEmbassy has joined #ruby
pothibo has joined #ruby
menace has left #ruby [#ruby]
tjad has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
gyre007 has quit [Remote host closed the connection]
jlebrech has quit [Read error: Operation timed out]
ehc has joined #ruby
gyre007 has joined #ruby
Seventoes has left #ruby [#ruby]
psih has joined #ruby
<thyagobr> did anyone ever try to overload the .== method on irb? everything you do seems to call it multiple times, i was kinda curious to know why
<psih> Hello, looks like i've runned into something rare and nasty, I'm trying to setup a redmine and when I connect to it - I get an Illegal seek on the socket by the look of the strace
alse has joined #ruby
derebos has joined #ruby
<apeiros> thyagobr: could you please be a bit less specific? all that information irritates me…
freakazoid0223 has quit [Ping timeout: 246 seconds]
<psih> I'm a php guy myself, so I would be rather happy if someone could help out
justsee has quit [Quit: leaving]
<jaredl> @psih only god can do it
* jaredl just kidding
brennanMKE has joined #ruby
<psih> :) I just don't know what to do about it. Google is mute on the subject :(
dzan has quit [Ping timeout: 268 seconds]
mlpinit has quit [Remote host closed the connection]
gyre007 has quit [Ping timeout: 272 seconds]
<jaredl> well I dunno, provide probably nginx, unicorn configuration example
drag00n has joined #ruby
dzan has joined #ruby
<jaredl> never had any sort of issues with redmine
zarubin has quit [Ping timeout: 264 seconds]
<psih> I do not think this is a redmine specific issue
<psih> this is an issue with sockets under the hood
<psih> here is a strace http://pastebin.com/6wN98Qiu
flops has joined #ruby
mlpinit has joined #ruby
jonr22 has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
Monie has joined #ruby
shawnjgoff has joined #ruby
tboerger has joined #ruby
<jaredl> maybe when I said that only god can help you with, It wasn't a joke?
kobain has joined #ruby
bluOxigen has joined #ruby
<jaredl> lol
jbw has quit [Quit: ┌∩┐(◣_◢)┌∩┐]
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
monkegjinni has joined #ruby
shaunbaker has quit [Remote host closed the connection]
geekbri has joined #ruby
vt102 has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
<vt102> In ruby, when I have foo.each { |i| puts i }, is the code block an anonymous function being passed as an argument to the each method of foo? Is i simply the argument to that anonymous function?
bluOxigen has joined #ruby
burlyscudd has quit [Quit: Leaving.]
<hoelzro> vt102: that's pretty much how it works
<hoelzro> there's a few more details, but that's the idea
pu22l3r has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<vt102> Thanks hoelzro
monkegjinni has joined #ruby
kaspergr_ has joined #ruby
gyre007 has joined #ruby
lfox has joined #ruby
bean__ has joined #ruby
bean__ has quit [Changing host]
bean__ has joined #ruby
lukec has joined #ruby
freerobby has joined #ruby
tomzx_mac has joined #ruby
kaspergrubbe has quit [Ping timeout: 256 seconds]
Hanmac has joined #ruby
blueOxigen has joined #ruby
monkegjinni has quit [Ping timeout: 240 seconds]
lucazi has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
mikecmpbll has quit [Ping timeout: 256 seconds]
danshult_ has quit [Remote host closed the connection]
Deele has quit [Ping timeout: 260 seconds]
danshult_ has joined #ruby
johnnyfuchs has joined #ruby
angusiguess has joined #ruby
danshult_ has quit [Read error: Connection reset by peer]
polaco_zZz is now known as polaco
danshult_ has joined #ruby
theRoUS has joined #ruby
mikecmpbll has joined #ruby
zigomir has quit [Quit: zigomir]
xk_id has quit [Quit:
lkba has joined #ruby
relix has joined #ruby
ahawkins has quit [Ping timeout: 272 seconds]
Soda has joined #ruby
msf__ has joined #ruby
tonni has quit [Remote host closed the connection]
shaunbaker has joined #ruby
tonni has joined #ruby
lsmola_ has quit [Ping timeout: 245 seconds]
Deele has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
lstefani has joined #ruby
<artmann_> Hi, I need some code style advice. If you look at the save function in https://github.com/fog/fog/blob/master/lib/fog/glesys/models/compute/server.rb you will se that it creates a server if the id is nil otherwise it will raise and exception as editing existing servers are not implemented. What is the best way to implement that? wrap it with an if/else statement?
<artmann_> or would it be better to call another function?
browndawg has left #ruby [#ruby]
shaunbak_ has joined #ruby
drumusician has quit [Ping timeout: 240 seconds]
burlyscudd has joined #ruby
nfk has quit [Quit: yawn]
nateberkopec has joined #ruby
<shevy> what I see is right now a lot of code and I have no idea what it does
browndawg has joined #ruby
lstefani has quit [Max SendQ exceeded]
tonni has quit [Ping timeout: 272 seconds]
<bean__> fog is a gem for interacting with the AWS api.
<shevy> I think it would be helpful if you let us know what line is the one you are curious about
shaunbaker has quit [Ping timeout: 245 seconds]
<artmann_> shevy: I will try to create a gist with a better explanation
<waxjar> raise an NotImplementedError?
lstefani has joined #ruby
<waxjar> *a
<shevy> artmann_ I think github allows line highlighting
gyre008 has joined #ruby
ravster has joined #ruby
atno has quit [Read error: No route to host]
kpshek has joined #ruby
Clooth has joined #ruby
atno has joined #ruby
Administrator has joined #ruby
elux has joined #ruby
xk_id has joined #ruby
fgo has joined #ruby
gyre008 has quit [Remote host closed the connection]
Administrator is now known as Guest3515
lstefani has quit [Excess Flood]
<shevy> what is seld?
Guest3515 is now known as HeYi
<artmann_> misspelling of self :P
<shevy> class Object resides in one of your module? or is it the core class Object one
gyre007 has quit [Ping timeout: 272 seconds]
<artmann_> Its in my module
benwoody has joined #ruby
<shevy> when I see a method called save, I expect it to save an object, so the part of your code that saves it seems ok to me
benwoody has quit [Client Quit]
<shevy> you however may also create a new object
Vendethi_ has quit [Ping timeout: 252 seconds]
<artmann_> The concern I have is that the if statement will get pretty big
<artmann_> line wise
<shevy> and from looking at the method name alone, I would not expect for save() to create a new object
wildroman has quit [Remote host closed the connection]
lstefani has joined #ruby
<shevy> do you use a method to create a new object?
<shevy> how many conditions do you have to handle?
benwoody has joined #ruby
wildroman has joined #ruby
zarubin has joined #ruby
<artmann_> only one condition but I meant the block
iamjarvo_ has quit [Ping timeout: 272 seconds]
<artmann_> to handle all the update/create code
fgo has quit [Client Quit]
<wald0_> maasha: then i hope you ask that editor question by releasing the pen, put more comfortable, and after a small pause and a very serious voice... "now, tell me what is your favorite editor" :)
Clooth has quit [Client Quit]
<shevy> well, just put the create object functionality into a method, and call that method
rurufufuss has joined #ruby
ttttt_e0286 has joined #ruby
nouitfvf_ has joined #ruby
robbyoconnor has quit [Ping timeout: 240 seconds]
ttttt_e0286 has left #ruby [#ruby]
wallerdev has joined #ruby
Hanmac1 has joined #ruby
<shevy> maasha for such questions I only know two answers I will never give - vim or emacs :D
<maasha> wald0_: and the leaning back in the chair and staring at the ceiling after the answer ...
<artmann_> shevy: thanks for the input, I will have to give this some thought
danman has joined #ruby
capncrunch4me has joined #ruby
<maasha> the red or the blue pill
<shevy> maasha I take the pink one
lmickh has quit [Quit: lmickh]
Hanmac has quit [Ping timeout: 272 seconds]
<waxjar> looks like you've got a function called save that actually creates a server right now artmann_
<capncrunch4me> if i was pulling results from a linux terminal result set with net:ssh, how could i stream that result to the browser?
<waxjar> also data.status == 200 ? true : false => make that just data.status == 200 please :P
<artmann_> waxjar: that's true
nouitfvf has quit [Ping timeout: 272 seconds]
<artmann_> waxjar: yea that line is abit wierd
wildroman has quit [Ping timeout: 265 seconds]
blueOxigen has quit [Remote host closed the connection]
<artmann_> Not my code but I'm planning a pull request :P
<artmann_> and it's my first one so I wanna make it good ;)
<shevy> Mr. perfection!
<artmann_> Open source is scary
<shevy> yeah
<shevy> they made me remove cusswords from my comment ... :(
kevind_ has joined #ruby
karls0n has quit [Ping timeout: 272 seconds]
<shevy> *comments
<artmann_> thoose bastards!
<shevy> I am hiding them between the lines
<shevy> update_dataset # This does not work as expected.
<shevy> original version:
lstefani has quit [Ping timeout: 245 seconds]
<shevy> update_dataset # what a §/()%()=/& crap!
wildroman has joined #ruby
palms has joined #ruby
wildroman has quit [Remote host closed the connection]
AlSquirrel has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
<capncrunch4me> anyone have a good rec for streaming from ruby controller
ananthakumaran has quit [Quit: Leaving.]
brennanMKE has joined #ruby
derebos has quit [Ping timeout: 246 seconds]
wildroman has joined #ruby
freezey has joined #ruby
<epscy> capncrunch4me: don't do it?
<capncrunch4me> epscy, why?
mrsolo has joined #ruby
mrsolo has quit [Remote host closed the connection]
camilasan has joined #ruby
<epscy> apache is better at that kind of thing
<capncrunch4me> i need to stream the results of a linux command to browser window
<epscy> oh i see
thepumpkin has joined #ruby
<epscy> well that should be ok, as long as you don't need to scale anytime soon
tonni has joined #ruby
<capncrunch4me> ?
<capncrunch4me> scale?
Hanmac has joined #ruby
momomomomo has quit [Quit: momomomomo]
<capncrunch4me> window scaling or perf scaling?
jgoss has quit [Quit: jgoss]
<epscy> perf
<capncrunch4me> mmk
allsystemsarego has quit [Quit: Leaving]
<capncrunch4me> but actually what I'm looking for is the proper tool to stream to browser
bluOxigen has joined #ruby
kvirani has joined #ruby
Hanmac1 has quit [Ping timeout: 272 seconds]
thepumpkin has quit [Ping timeout: 245 seconds]
zarubin has quit [Ping timeout: 265 seconds]
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
browndawg has quit [Quit: Leaving.]
pskosinski has quit [Quit: Til rivido Idisti!]
momomomomo has joined #ruby
xk_id has quit [Quit:
DouweM has joined #ruby
troessner has quit [Quit: Leaving]
interactionjaxsn has joined #ruby
grzywacz has joined #ruby
grzywacz has quit [Client Quit]
coderhs has quit [Quit: Leaving]
pwh has joined #ruby
blueOxigen has joined #ruby
<maasha> ok, next task. I have a bunch of ruby scripts that can be piped together on the command line. What is a good way to do integration test of such? I used to have some bash hacks, but perhaps Ruby have something cool?
jonahR has joined #ruby
swingha has quit [Quit: WeeChat 0.4.2]
zz_tsykoduk has quit [Read error: Operation timed out]
<dzan> gues var += "string" doesnt work in ruby? :) ( var contains a string too )
D4T has joined #ruby
Xeago has quit [Remote host closed the connection]
randomnick_ has quit [Read error: Connection reset by peer]
johnnyfuchs has quit [Quit: Leaving.]
brennanMKE has quit [Remote host closed the connection]
eeriegeek has joined #ruby
bluOxigen has quit [Ping timeout: 272 seconds]
<hoelzro> dzan: it should work
brennanMKE has joined #ruby
randomnick_ has joined #ruby
<dzan> hoelzro, strange then I must mess up somewhere else :)
zz_tsykoduk has joined #ruby
johnnyfuchs has joined #ruby
zipper has joined #ruby
Xeago has joined #ruby
jlast has joined #ruby
burlyscudd1 has joined #ruby
mary5030 has joined #ruby
burlyscudd has quit [Read error: Connection reset by peer]
mary5030 has quit [Remote host closed the connection]
failshell has joined #ruby
<dzan> hoelzro, the strange scoping again
<dzan> hoelzro, my var is declared in a function, i add to it in a block
<dzan> ( block in that function )
mary5030 has joined #ruby
<dzan> s/function/method/
<dzan> guess it's not the same var then
SeySayux has quit [Ping timeout: 246 seconds]
<hoelzro> dzan: could you paste the code?
burlyscudd1 has quit [Client Quit]
Hanmac1 has joined #ruby
lyanchih has joined #ruby
<pixelgremlins> hey b = "a string" -- a="another string" -- I want to do something like a.scan(/b/) -- how do I make the b be a variable?
<Radar> pixelgremlins: a.scan(/#{b}/)
<dzan> hoelzro, sure http://paste.debian.net/63131/ it's not "small" anymore ( variable: message )
<Radar> pixelgremlins: That's called interpolation
<pixelgremlins> oh that makes sense lol
jlebrech has joined #ruby
burlyscudd has joined #ruby
ahawkins has joined #ruby
<shevy> >> def foo; x = 'Hello World '; %w( abc def ghi ).each {|entry| x << entry }; puts "x is now: `#{x}`"; end;foo
<eval-in> shevy => x is now: `Hello World abcdefghi` ... (https://eval.in/59145)
<shevy> dzen seems to work just fine? ^^^
<pixelgremlins> Coming back to ruby/rails after 6 months in PHP/Laravel
<hoelzro> dzan: I believe that should work
<shevy> oops
<hoelzro> (at a cursory glance)
<shevy> I meant dzan ... there is no dzen
<shevy> what kind of nick is that anyway! :P
ahawkins has quit [Client Quit]
Hanmac has quit [Ping timeout: 245 seconds]
flops has quit [Remote host closed the connection]
<shevy> now pixelgremlins ... that is a cool nick
momomomomo has quit [Quit: momomomomo]
<dzan> shevy, :p
noop has quit [Ping timeout: 240 seconds]
<dzan> shevy, hoelzro must be something off when I replace them with 'puts' they all are visible
markus-_ has joined #ruby
Vendethi_ has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
<shevy> well
<shevy> come on!
markus-_ has quit [Client Quit]
<shevy> put your code on a pastie :P
tonni has quit [Read error: Connection reset by peer]
_maes_ has joined #ruby
<dzan> shevy, I did :D
<dzan> <dzan> hoelzro, sure http://paste.debian.net/63131/ it's not "small" anymore ( variable: message )
<pixelgremlins> what switching back to Ruby from PHP?
OdNairy has quit []
SeySayux has joined #ruby
browndawg has joined #ruby
<shevy> dzan no I mean the part with the block you mentioned, only that part, not the ten thousand other lines :D <dzan> hoelzro, my var is declared in a function, i add to it in a block
Shidash has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> pixelgremlins everything is possible!
<shevy> but php did not give me anything that ruby could not give
<pixelgremlins> true-- but try deploying Ruby 3.2 on hostgator shared--and that being the only major requirement of the project
<shevy> dzan btw you can use << for string appending, it's faster than +=
<shevy> because += will create a new object everytime you use it
newbiehacker has quit [Ping timeout: 256 seconds]
randomnick_ has quit [Quit: Leaving]
<shevy> Ruby 3.2?
Patteh has quit [Remote host closed the connection]
<pixelgremlins> I wrote 70% of an app in Rails till I was thrown the fact that it had to be on Hostgator--then switched to Laravel which is VERY rails-esque
<pixelgremlins> sorry Rails 3.2
s3itz has joined #ruby
tomzx_mac has quit [Ping timeout: 245 seconds]
lfox has quit [Ping timeout: 272 seconds]
<pixelgremlins> but Rails seems hotter job prospect wise (I earn $15/hour -- want to earn 80k eventually.. would settle for 60k at this point in time) --
OdNairy has joined #ruby
Patteh has joined #ruby
<shevy> good that I started with ruby before rails
Shidash has quit [Ping timeout: 265 seconds]
relix has joined #ruby
apeiros has quit [Remote host closed the connection]
<dzan> shevy, << didn't do the trick ofc, and yeah it line 60 - 120 but i'll google bit more :) thanks!
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kvirani has quit [Remote host closed the connection]
<shevy> well << of course would only work if you dont just add nil
apeiros has joined #ruby
<shevy> but it is rather clear that the code you have here overwhelms you
<shevy> because "<dzan> gues var += "string" doesnt work in ruby?" 100% works in ruby.
<platzhirsch> Anyone used the event parser of Oj yet?
<shevy> >> x = 'hi'; x << 'world'; x
<eval-in> shevy => "hiworld" (https://eval.in/59152)
<shevy> >> x = 'hi'; x += 'world'; x
<eval-in> shevy => "hiworld" (https://eval.in/59153)
Aryasam has joined #ruby
<dzan> shevy, I believe you :) i'm debugging further
tobago has quit [Remote host closed the connection]
<shevy> >> x = 'hi'; x << nil; x
<eval-in> shevy => no implicit conversion of nil into String (TypeError) ... (https://eval.in/59154)
<shevy> >> x = 'hi'; x << ''; x
<eval-in> shevy => "hi" (https://eval.in/59155)
lyanchih has quit [Quit: lyanchih]
Soda has quit [Remote host closed the connection]
psyl0n has joined #ruby
acoyfellow has quit []
zoee has quit [Quit: zoee]
wald0_ has quit [Ping timeout: 246 seconds]
tonni has joined #ruby
apeiros has quit [Ping timeout: 246 seconds]
ZenGuy311 has quit [Ping timeout: 246 seconds]
lmickh has joined #ruby
<pixelgremlins> so I have a= "CodeEval" b = "C.*Eval" and when I do print a.scan(/${b}/) I get [] but if I do a.scan(/C.*Eval/) - I get "CodeEval" .. what gives?
<Mon_Ouie> It's #{…}, not ${…}
<pixelgremlins> whoops
Lewix has joined #ruby
brennanMKE has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<Hanmac1> dzan:
<Hanmac1> >> a= "abc"; b=a; b += "def"; [a,b]
<eval-in> Hanmac1 => ["abc", "abcdef"] (https://eval.in/59160)
<Hanmac1> >> a= "abc"; b=a; b << "def"; [a,b]
<eval-in> Hanmac1 => ["abcdef", "abcdef"] (https://eval.in/59161)
Hanmac1 is now known as Hanmac
ZenGuy311 has joined #ruby
nwertman has joined #ruby
sergicles has quit [Quit: sergicles]
<maasha> any recommendations for automated testing of ruby scripts in a real world setting?
wizard` has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<Deele> I am looking at .rb file that is meant to work as a controller with sinatra https://github.com/google/google-api-ruby-client-samples/blob/master/calendar/calendar.rb but I want to implement it to work from command line. As I dont know Sinatra, what should be removed, to make it work from command line?
* Hanmac looks outside of the window
<Hanmac> sorry maasha, "real world setting" is temporally not available
snath has quit [Ping timeout: 245 seconds]
hogeo has quit [Remote host closed the connection]
<maasha> Hanmac: well, I think I would avoid a mockup world
capncrunch4me has left #ruby [#ruby]
<dzan> Hanmac, I see the difference but it doesn't help me :)
hogeo has joined #ruby
tonni has quit [Ping timeout: 272 seconds]
jezen has joined #ruby
jezen has quit [Remote host closed the connection]
<shevy> maasha use it often for your own use
kpshek has quit []
<shevy> it'll get better quickly
jezen has joined #ruby
zipper has quit [Ping timeout: 245 seconds]
<psih> Did anyone runned into a bug when an accept on a socket gave Illegal seek?
<bean__> Deele: to me the sinatra bits only make it more useful for generating your oauth tokens
msf__ has left #ruby [#ruby]
arietis has quit [Quit: Computer has gone to sleep.]
palms has quit [Ping timeout: 272 seconds]
jonathanwallace has joined #ruby
wallerdev has quit [Quit: wallerdev]
burlyscudd has quit [Quit: Leaving.]
jonr22 has quit [Remote host closed the connection]
kpshek has joined #ruby
aspires has joined #ruby
arietis has joined #ruby
lsmola has joined #ruby
CaptainJet has joined #ruby
hogeo has quit [Ping timeout: 272 seconds]
palms has joined #ruby
<maasha> maybe the correct term is validation testing
<Deele> bean can you point out, which are those sinatra specific bits?
arietis has quit [Client Quit]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
tonni has joined #ruby
elux has quit [Quit: Leaving...]
zipper has joined #ruby
psih has left #ruby [#ruby]
tjbarber has joined #ruby
derebos has joined #ruby
lyanchih has joined #ruby
Vendethi_ has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
zipper_ has joined #ruby
freezey has joined #ruby
pyrac has quit [Ping timeout: 246 seconds]
jkirkpatrick has joined #ruby
mrsolo has joined #ruby
petey_ has joined #ruby
vlad_starkov has joined #ruby
iamjarvo has quit [Ping timeout: 256 seconds]
Guest42552 has quit [Ping timeout: 245 seconds]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
TheMoonMaster has quit [Excess Flood]
freezey has quit [Ping timeout: 240 seconds]
burlyscudd has joined #ruby
kaspergr_ has quit [Remote host closed the connection]
CreativeEmbassy has joined #ruby
TheMoonMaster has joined #ruby
tjad has quit [Read error: Connection reset by peer]
Fire-Dragon-DoL has joined #ruby
breakingthings has quit []
browndawg has quit [Quit: Leaving.]
xk_id has joined #ruby
tjad has joined #ruby
CreativeEmbassy has quit [Client Quit]
freezey has joined #ruby
<derebos> hello
ReachingFarr has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
shaunbaker has joined #ruby
<derebos> i'm using ruby aws gem i tried to set root / volume more than the actual using this http://pastie.org/8445772 but i still got the old volume without changes
nouitfvf_ has quit [Ping timeout: 240 seconds]
<derebos> what am i doing wrong
<derebos> ?
palms has quit [Ping timeout: 272 seconds]
maletor has joined #ruby
Xeago has quit [Remote host closed the connection]
bigkevmcd has joined #ruby
tonni has quit [Read error: Connection reset by peer]
jrhe has quit [Quit: jrhe]
kalesage has joined #ruby
<jwest> derebos: Not an expert with this, but when you say you got the old volume, are you checking with df or by examining the volume in the AWS console or something similar?
elux has joined #ruby
<derebos> jwang, df -h
<derebos> jwest, , df -h
iamjarvo has joined #ruby
<andredurao> q
<jwest> Check the AWS console. It might have built the volume at the higher size, but you just can't see it because the file system is still fixed at the AMI size.
andredurao has quit [Quit: Lost terminal]
tagrudev has quit [Remote host closed the connection]
maasha has quit [Ping timeout: 250 seconds]
shaunbaker has quit [Ping timeout: 256 seconds]
dcarlson has quit [Quit: leaving]
vpretzel has joined #ruby
maletor has quit [Ping timeout: 252 seconds]
drumsrgr8forn8 has joined #ruby
kalesage has quit [Client Quit]
rippa has joined #ruby
yfeldblum has joined #ruby
Patteh has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
obs has quit [Quit: ChatZilla 0.9.87 [Iceape 2.7.12/20130119095535]]
Patteh has joined #ruby
<jwest> derebos: And if that doesn't prove true, you'll be well beyond my depth of knowledge with it.
platzhirsch has quit [Quit: Leaving.]
platzhirsch has joined #ruby
sayan has joined #ruby
wallerdev has joined #ruby
platzhirsch has left #ruby [#ruby]
lucazi has quit [Quit: Textual IRC Client: www.textualapp.com]
zipper has quit [Quit: leaving]
zipper_ has quit [Quit: leaving]
wildroman has quit [Remote host closed the connection]
matchaw has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
jezen has quit []
matchaw_ has quit [Ping timeout: 264 seconds]
obs has joined #ruby
vlad_sta_ has joined #ruby
karls0n has joined #ruby
einarj has quit [Remote host closed the connection]
RichardBaker has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
<derebos> jwest, it's created but how can i fix this as you told AMI fixed size?
ananthakumaran has quit [Quit: Leaving.]
allaire has joined #ruby
jrhe has joined #ruby
capncrunch4me has joined #ruby
capncrunch4me has left #ruby [#ruby]
kryptek has joined #ruby
<jwest> derebos: That's going to be specific to your file system type. If the capacity is right in the AWS console, you might try asking about file system resizing in the appropriate channel for your OS.
burlyscudd has quit [Quit: Leaving.]
drumsrgr8forn8 has quit [Ping timeout: 272 seconds]
Patteh has quit [Remote host closed the connection]
<derebos> jwest, i want to do this at launch time
<jwest> derebos: It might take generating an appropriately sized AMI, then. I'm just speculating, though.
gtsiftsis has quit [Quit: Leaving]
lyanchih has quit [Ping timeout: 272 seconds]
Patteh has joined #ruby
<jcromartie> RVM on a server…
<jcromartie> discuss
deception has joined #ruby
<derebos> [root@ip-172-31-6-41 ~]# resize2fs /dev/xvde
<derebos> resize2fs 1.41.12 (17-May-2010)
<derebos> The filesystem is already 2097152 blocks long. Nothing to do! jwest
zz_tsykoduk is now known as tsykoduk
Aryasam has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Remote host closed the connection]
zipper has joined #ruby
Gooder has quit [Remote host closed the connection]
Aryasam has joined #ruby
<jwest> derebos: Hm. Hopefully someone else can be more helpful to you, then. I don't have other ideas for you, sorry.
Es0teric has joined #ruby
lbwski has quit [Quit: leaving]
iamjarvo has quit [Ping timeout: 272 seconds]
<dzan> i've been going over the documentation but can't seem to find a solution: is there a way to get a slice from an enumerable?
wildroman has joined #ruby
baroquebobcat has joined #ruby
<dzan> File.open(file) -> enumerable -> give me lines x to y
HeYi has quit [Quit: ChatZilla 0.9.90.1 [Firefox 24.0/20130910160258]]
sayan has quit [Read error: Connection reset by peer]
binaryplease has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
enebo has joined #ruby
derebos has quit [Ping timeout: 272 seconds]
Mon_Ouie has quit [Ping timeout: 240 seconds]
iamjarvo has joined #ruby
TheMoonMaster has quit [Excess Flood]
__butch__ has joined #ruby
brianpWins has quit [Quit: brianpWins]
TheMoonMaster has joined #ruby
jlebrech has quit [Ping timeout: 256 seconds]
|jemc| has joined #ruby
krawchyk has quit [Remote host closed the connection]
tesuji has quit [Ping timeout: 246 seconds]
kvirani has joined #ruby
BlakeRG has joined #ruby
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Mon_Ouie has joined #ruby
yfeldblum has joined #ruby
tsykoduk is now known as zz_tsykoduk
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikecmpbll has joined #ruby
jkhwan has joined #ruby
snath has joined #ruby
Methylated has joined #ruby
<Methylated> How would I go about profiling an app running on mod_ruby? Is it possible to do so externally, or to have the profiler not overwrite results on every request (aggregate)
jlebrech has joined #ruby
krawchyk has joined #ruby
zipper has quit [Quit: Off to cook.]
ananthakumaran has joined #ruby
tziOm has quit [Remote host closed the connection]
sayan has joined #ruby
ocfx_ is now known as ocfx_work
Voodoofish430 has joined #ruby
zz_tsykoduk is now known as tsykoduk
ssvo has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
alse has quit [Quit: Leaving...]
CreativeEmbassy has joined #ruby
kaspergrubbe has quit [Ping timeout: 252 seconds]
CreativeEmbassy has quit [Max SendQ exceeded]
vlad_starkov has joined #ruby
mengu_ has joined #ruby
jrhe has quit [Quit: jrhe]
CreativeEmbassy has joined #ruby
spike|spiegel| has quit [Quit: WeeChat 0.4.2]
vlad_starkov has quit [Remote host closed the connection]
jrhe has joined #ruby
CreativeEmbassy has quit [Max SendQ exceeded]
spike|spiegel has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
iamjarvo_ has joined #ruby
Desert_eagle_ has quit [Quit: Leaving]
Xeago has quit [Remote host closed the connection]
dma_ has joined #ruby
CreativeEmbassy has joined #ruby
mikecmpbll has quit [Ping timeout: 272 seconds]
freezey has quit [Remote host closed the connection]
freezey has joined #ruby
pwh has quit []
mikecmpbll has joined #ruby
Nogbit has joined #ruby
allaire has quit []
robert_ has quit [Read error: Connection reset by peer]
kevind__ has joined #ruby
freezey has quit [Ping timeout: 272 seconds]
admin0 has quit [Quit: Leaving]
petey__ has joined #ruby
monkegjinni has joined #ruby
aantix has joined #ruby
sbos99 has quit [Quit: Leaving]
JeanMertz has quit [Ping timeout: 246 seconds]
kevind_ has quit [Ping timeout: 272 seconds]
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
coderhut has joined #ruby
xk_id has quit [Quit:
petey_ has quit [Ping timeout: 246 seconds]
<qubit> Anyone know if the foreman gem is abandoned? It's got a ton of really old and significant bugs, and it's got almost no activity
freezey has joined #ruby
dma_ has quit [Ping timeout: 256 seconds]
DanKnox_away is now known as DanKnox
theoretick has joined #ruby
wildroman has quit [Remote host closed the connection]
<Methylated> How would I go about profiling an app running on mod_ruby? Is it possible to do so externally, or to have the profiler not overwrite results on every request (aggregate)? I'm using ruby 1.8.7 w/ gc patch
wildroman has joined #ruby
astrobun_ has joined #ruby
Mon_Ouie has quit [Ping timeout: 256 seconds]
lukec has quit [Quit: lukec]
amarraja has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
amarraja has quit [Max SendQ exceeded]
Cope has left #ruby [#ruby]
zeade has joined #ruby
TheEmpty has quit []
heidi has quit [Quit: Leaving.]
pyrac has joined #ruby
tjad has quit [Ping timeout: 245 seconds]
thepumpkin has joined #ruby
astrobunny has quit [Ping timeout: 256 seconds]
maletor has joined #ruby
wildroman has quit [Ping timeout: 246 seconds]
Hanmac1 has joined #ruby
coderhut has quit [Quit: Page closed]
breakingthings has joined #ruby
alse has joined #ruby
amarraja has joined #ruby
coderhut has joined #ruby
kpshek has quit []
amarraja has quit [Max SendQ exceeded]
coderhut has quit [Client Quit]
coderhut has joined #ruby
lfox has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
mengu has quit []
coderhut has quit [Client Quit]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
alup has quit [Quit: Leaving]
thepumpkin has quit [Ping timeout: 265 seconds]
coderhut has joined #ruby
adeponte has quit [Remote host closed the connection]
s3itz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adeponte has joined #ruby
freezey has quit [Remote host closed the connection]
freezey has joined #ruby
brianpWins has joined #ruby
x1337807x has joined #ruby
choobie has left #ruby [#ruby]
tboerger has quit [Ping timeout: 246 seconds]
pwh has joined #ruby
adeponte has quit [Ping timeout: 246 seconds]
jonr22 has joined #ruby
freezey has quit [Ping timeout: 246 seconds]
goleldar has joined #ruby
iamjarvo has joined #ruby
Czupa has joined #ruby
Monie has joined #ruby
iamjarvo_ has quit [Ping timeout: 272 seconds]
CreativeEmbassy has joined #ruby
chrisja has joined #ruby
iamjarvo has quit [Remote host closed the connection]
allaire has joined #ruby
jonr22 has quit [Ping timeout: 246 seconds]
niklasb has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
Es0teric has joined #ruby
blaxter has quit [Quit: foo]
CreativeEmbassy has quit [Ping timeout: 246 seconds]
iamjarvo has quit [Remote host closed the connection]
erry_ has joined #ruby
erry_ has quit [Client Quit]
iamjarvo has joined #ruby
erry_ has joined #ruby
rurufufuss has quit [Ping timeout: 245 seconds]
arietis has joined #ruby
erry_ has left #ruby [#ruby]
falood has joined #ruby
chinychinchin has quit [Read error: Connection reset by peer]
pel_daniel has joined #ruby
threesome has quit [Ping timeout: 272 seconds]
chinychinchin has joined #ruby
digital-ghost has joined #ruby
elux has quit [Quit: Leaving...]
thepumpkin has joined #ruby
iamjarvo has quit [Ping timeout: 272 seconds]
palms has joined #ruby
CreativeEmbassy has joined #ruby
einarj has joined #ruby
noname001 has quit [Ping timeout: 246 seconds]
kobain_ has joined #ruby
tjbarber has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kobain_ has quit [Excess Flood]
falood has quit [Ping timeout: 240 seconds]
kobain_ has joined #ruby
kobain_ has quit [Excess Flood]
drumsrgr8forn8 has joined #ruby
iamjarvo has joined #ruby
Guest76047 has joined #ruby
Guest76047 has quit [Excess Flood]
mist is now known as spookymist
k610 has quit [Quit: Leaving]
AndChat| has quit [Ping timeout: 240 seconds]
sayan has quit [Ping timeout: 265 seconds]
shredding has quit [Quit: shredding]
Emmanuel_Chanel has quit [Read error: No route to host]
Banistergalaxy has joined #ruby
kobain has quit [Ping timeout: 245 seconds]
tjbarber has joined #ruby
kobain has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jrhe_ has joined #ruby
kobain has quit [Excess Flood]
jrhe has quit [Ping timeout: 245 seconds]
jrhe_ is now known as jrhe
Monie has joined #ruby
kobain has joined #ruby
kobain has quit [Changing host]
kobain has joined #ruby
kobain has quit [Excess Flood]
Ripp__ has joined #ruby
Monie has quit [Client Quit]
kobain has joined #ruby
einarj has quit [Ping timeout: 246 seconds]
kobain has quit [Excess Flood]
kobain has joined #ruby
kobain has quit [Excess Flood]
kobain has joined #ruby
efrainolivares has joined #ruby
Hanmac has joined #ruby
drumsrgr8forn8 has quit [Ping timeout: 272 seconds]
kobain has quit [Excess Flood]
<lectrick_> Is it possible for me to care so much about programming well that I end up being a shitty employee because my long term design priorities lead to more upfront cost which causes managers to fail to see my true value?
iamjarvo has quit [Ping timeout: 252 seconds]
kobain has joined #ruby
<lectrick_> Or is this merely another lie I tell myself as I cry myself to sleep in self-doubt after losing yet another job
<lectrick_> At least I got my github.
Hanmac1 has quit [Ping timeout: 256 seconds]
rezzack has joined #ruby
<lectrick_> Note: Haven't lost it yet, but I'm going on a "work plan" which is essentially the same thing, and my usual reaction to those is "fuck off, I'm going to just do my own thing"
bigoldrock has joined #ruby
<breakingthings> depends on what those upfront costs manifested themselves as
<breakingthings> time cost
<breakingthings> money cost
<breakingthings> all costs
Es0teric has quit [Quit: Computer has gone to sleep.]
pwh has quit []
jonr22 has joined #ruby
jbw has joined #ruby
brtdv has quit []
dagobah has joined #ruby
dagobah has quit [Remote host closed the connection]
Emmanuel_Chanel has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
whunt has joined #ruby
drumusician has joined #ruby
chinychinchin has quit [Quit: Konversation terminated!]
kaspergrubbe has joined #ruby
nwertman_ has joined #ruby
chinychinchin has joined #ruby
tjbarber has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
snath has quit [Ping timeout: 246 seconds]
holycrab is now known as unholycrab
jibi has joined #ruby
lkba has quit [Read error: Connection reset by peer]
Underbyte has joined #ruby
Underbyte has joined #ruby
Underbyte has quit [Changing host]
lkba has joined #ruby
Patteh has quit [Remote host closed the connection]
kpshek has joined #ruby
wald0_ has joined #ruby
Spami has joined #ruby
nari has quit [Ping timeout: 252 seconds]
jlebrech has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
Patteh has joined #ruby
jlebrech has joined #ruby
sambao21 has joined #ruby
drumusician has quit [Ping timeout: 246 seconds]
sepp2k has quit [Quit: Konversation terminated!]
colonolGron has joined #ruby
JZTech101 has quit [Ping timeout: 260 seconds]
alse has quit [Quit: Leaving...]
cdelo_ has joined #ruby
ybart has quit [Quit: ybart]
jibi has quit [Quit: .]
ybart has joined #ruby
Aryasam has quit [Ping timeout: 272 seconds]
chinychinchin has quit [Read error: Connection reset by peer]
johnnyfuchs has quit [Quit: Leaving.]
jkline has joined #ruby
chinychinchin has joined #ruby
adeponte has joined #ruby
lfox has quit [Quit: ZZZzzz…]
cdelo has quit [Ping timeout: 246 seconds]
newbiehacker has joined #ruby
kevind__ has quit [Quit: kevind__]
d2dchat has joined #ruby
pwh has joined #ruby
sayan has joined #ruby
TMM has quit [Quit: Ex-Chat]
jkirkpatrick has quit []
user258467 has quit [Read error: Connection reset by peer]
kevind_ has joined #ruby
pu22l3r_ has joined #ruby
Es0teric has joined #ruby
pu22l3r_ has quit [Read error: Connection reset by peer]
kloeri_ has joined #ruby
dma_ has joined #ruby
jrhe has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
pu22l3r has quit [Ping timeout: 268 seconds]
shadoi has quit [Read error: Connection reset by peer]
ghr has quit [Quit: Computer has gone to sleep.]
snath has joined #ruby
nonamehero has quit [Ping timeout: 245 seconds]
leonidlm has quit [Ping timeout: 245 seconds]
tjbarber has joined #ruby
kloeri has quit [Ping timeout: 604 seconds]
ybart has quit [Quit: ybart]
banisterfiend has quit [Quit: Computer has gone to sleep.]
JeanMertz has joined #ruby
jlebrech has quit [Quit: Konversation terminated!]
sayan has quit [Ping timeout: 265 seconds]
dma_ has quit [Ping timeout: 252 seconds]
g0bl1n has joined #ruby
heidi has joined #ruby
snath has quit [Quit: Ex-Chat]
iamjarvo has joined #ruby
c0rn has joined #ruby
tjad has joined #ruby
chinychinchin has quit [Quit: Konversation terminated!]
chinychinchin has joined #ruby
MrPoT4tO has joined #ruby
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mrpot4to_ has joined #ruby
jrhe has joined #ruby
iamjarvo_ has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
einarj has joined #ruby
Patteh has quit [Remote host closed the connection]
snath has joined #ruby
nonamehero has joined #ruby
axl_ has joined #ruby
obs has quit [Quit: ChatZilla 0.9.87 [Iceape 2.7.12/20130119095535]]
sepp2k has joined #ruby
mrsolo has joined #ruby
m8 has joined #ruby
jbw has quit [Quit: ┌∩┐(◣_◢)┌∩┐]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dr_bob has joined #ruby
iamjarvo has quit [Ping timeout: 272 seconds]
Czupa has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 256 seconds]
JeanMertz has quit []
x1337807x has quit [Ping timeout: 246 seconds]
ezkl has quit [Quit: QUIT!]
iamjarvo_ has quit [Ping timeout: 272 seconds]
Underbyte has quit [Quit: Leaving...]
nomenkun has quit [Ping timeout: 264 seconds]
mark_locklear has quit [Ping timeout: 256 seconds]
roolo has quit [Remote host closed the connection]
sayan has joined #ruby
wildroman has joined #ruby
wildroman has quit [Remote host closed the connection]
reset has joined #ruby
wildroman has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
Astralum has quit [Quit: Leaving]
kaspergrubbe has joined #ruby
jbw has joined #ruby
radagast has quit [Quit: Leaving]
freezey has joined #ruby
efrainolivares has quit [Quit: efrainolivares]
Stygia has quit [Ping timeout: 264 seconds]
Patteh has joined #ruby
reset has quit [Remote host closed the connection]
reset has joined #ruby
elux has joined #ruby
lmmx has joined #ruby
<lmmx> hey, anyone know how to use an upto loop?
kvirani has quit [Remote host closed the connection]
threesome has joined #ruby
kaspergr_ has joined #ruby
<lmmx> I tried it out but it ain't running :( stackoverflow.com/questions/19712412
<Hanmac> yes, anyone know
kaspergrubbe has quit [Read error: Connection reset by peer]
sadleb has joined #ruby
luke_ has joined #ruby
luke_ has quit [Client Quit]
jkline has quit [Quit: jkline]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cpruitt has quit [Quit: cpruitt]
brtdv has joined #ruby
Liquid-- has joined #ruby
saarinen has joined #ruby
camilasan has quit []
RichardBaker has quit [Quit: RichardBaker]
burlyscudd has joined #ruby
MrZYX|off is now known as MrZYX
<canton7> that's a roo question, not a #upto one
<lmmx> is the upto syntax all correct then?
<dr_bob> yes
<dr_bob> or did you see an error?
Hanmac1 has joined #ruby
<canton7> test it yourself: 1.upto(5){ |i| puts i } # is the output what you expect?
<lmmx> well it just puts out the first row number, which doesn't sound like it's doing anything very loop-like
dr_bob has left #ruby [#ruby]
barratt has quit [Ping timeout: 256 seconds]
jonahR has quit [Quit: jonahR]
awc737 has quit [Ping timeout: 245 seconds]
momomomomo has joined #ruby
momomomomo has quit [Client Quit]
elaptics is now known as elaptics`away
efrainolivares has joined #ruby
sayan has quit [Read error: Connection reset by peer]
Hanmac has quit [Ping timeout: 265 seconds]
<canton7> all of your 'puts' statements are in 'if' statements - put a 'puts' at the top of the loop, not inside any 'if's, to seeif the loop is running properly
nvrch has quit [Quit: nvrch]
<canton7> if it is, then your if statement's case is failing
Aryasam has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<thyagobr> >> 1.upto(5) { |i| puts i }
<eval-in> thyagobr => 1 ... (https://eval.in/59185)
mark_locklear has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
burlyscudd has quit [Ping timeout: 272 seconds]
Hanmac1 has quit [Ping timeout: 246 seconds]
awc737 has joined #ruby
aganov has quit [Quit: aganov]
RichardBaker has joined #ruby
kvirani has joined #ruby
sambao21 has joined #ruby
sayan has joined #ruby
kenneth has joined #ruby
Stygia has joined #ruby
codeFiend has joined #ruby
aedorn has quit [Quit: Leaving]
lukec has joined #ruby
lukec has quit [Client Quit]
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
iamjarvo has joined #ruby
psyl0n has quit [Quit: psyl0n]
<wald0_> just out of curiosity, in ruby can i define something like "less than" which reffers to < ? (basically because my example includes a space)
claymore has joined #ruby
bugsinlights has joined #ruby
karls0n has quit [Ping timeout: 245 seconds]
zipper has joined #ruby
timonv_ has joined #ruby
zz_michael_mbp is now known as michael_mbp
<vt102> Why is 'true ? puts "T" : puts "F"' a syntax error, but 'true ? (puts "T") : (puts "F")' not?
timonv has quit [Read error: Connection reset by peer]
mrsolo has quit [Quit: This computer has gone to sleep]
elux has quit [Quit: Leaving...]
tjbarber has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
burlyscudd has joined #ruby
Lewix has quit [Remote host closed the connection]
jonahR has joined #ruby
mikeg has joined #ruby
lukec has joined #ruby
bugsinlights has quit [Ping timeout: 265 seconds]
lfox has joined #ruby
Mon_Ouie has joined #ruby
Tuxist has joined #ruby
<terrellt> vt102: Read the first line like a parser - Ruby doesn't require parenthesis, so that first line has multiple interpretations. puts ("T" : puts "F") for instance
Hanmac has joined #ruby
OdNairy has joined #ruby
<jwest> vt102: But if you wrote it like it required parens, it would also work: true ? puts("T") : puts("F")
<Douglish> Hello everyone, I have a script for reading data from id3 tags and importing data to database. But when I read data, some texts are prepended with "??", what that means?
bugsinlights has joined #ruby
linguini has joined #ruby
zipper has quit [Quit: leaving]
coderhs has joined #ruby
<Eiam> utf characters?
bean__ has joined #ruby
Xiti` has joined #ruby
tatsuya__ has quit [Remote host closed the connection]
s3itz has joined #ruby
petey__ has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
petey_ has joined #ruby
zipper has joined #ruby
zipper is now known as Guest29543
Aryasam has quit [Ping timeout: 265 seconds]
interactionjaxsn has joined #ruby
Xiti has quit [Ping timeout: 272 seconds]
kloeri_ is now known as kloeri
Guest29543 has quit [Client Quit]
Aryasam has joined #ruby
zoo-zed has joined #ruby
gmf has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
kloeri has quit [Quit: Reconnecting]
endash has quit [Ping timeout: 272 seconds]
wald0_ has quit [Ping timeout: 245 seconds]
<mikeg> I'm iterating over an array in an erb. I need to do something different when I'm on the first item. What's a good way to identify that. I could do something like array.first for the first one and then loop over the rest with array.<some method to get the rest of them>
tatsuya_o has quit [Ping timeout: 272 seconds]
interactionjaxsn has quit [Ping timeout: 252 seconds]
kloeri has joined #ruby
<mikeg> or could do a count = 1. if count = 1 <do something differnet> and then increment the count each iteration
<Nilium> each_with_index?
<mikeg> looking for best practice or some cool method that allows me to treat the first iteration differently
<lupine> array.shift ; special logic ; array.each { ... }
nobitanobi has joined #ruby
<lupine> would be cleanest
<lupine> if you're not allowed to modify the array, it might not be an option
<mikeg> cool. I'll try that
Heero_ has quit [Ping timeout: 246 seconds]
gmf has left #ruby [#ruby]
mlpinit has quit [Remote host closed the connection]
Aryasam has quit [Ping timeout: 265 seconds]
zoo-zed1 has joined #ruby
<lupine> in which case, I'd come down on each_with_index
<nobitanobi> If I have a method in a module, and I want to use a private method from the module. How am I supposed to call it? I have tried self.my_private_method
zoo-zed1 has left #ruby [#ruby]
zoo-zed has quit [Quit: Leaving.]
<Nilium> If you can't modify the array, dup it.
<Nilium> If you can't dup it, use each_with_index.
Ripp__ has quit []
mlpinit has joined #ruby
Mon_Ouie has quit [Read error: Operation timed out]
zoo-zed has joined #ruby
<lupine> I don't think dup's that cheap, is it?
<Nilium> Should you really be trying to call a private method?
<vt102> mikeg: create car and cdr methods, like LISP. ;-)
<nobitanobi> So.. From a public method on the Module, I want to call a private method.
<lupine> hehe
Mon_Ouie has joined #ruby
<Nilium> Either way, using send should work to call any method.
<mikeg> I can modify. I'll look into both ideas
<lupine> nobitanobi, don't use self.method_name
<lupine> otherwise, it should Just Work
interactionjaxsn has joined #ruby
zoo-zed has left #ruby [#ruby]
<lupine> (so just method_name - avoid shadowing it with local variables)
<nobitanobi> lupine: but I thought that when there is no specific object, the method always refers to self?
JeanMertz has joined #ruby
<lupine> kind of
<nobitanobi> so...why if I specify self it hangs :/
dma_ has joined #ruby
MisutoWolf has joined #ruby
<lupine> method dispatch varies
jibi has joined #ruby
<lupine> consider this: def foo ; return self ; end ; foo.my_private_method
<MisutoWolf> So, a sort of question of opinion (I guess?) I'm starting (brand new) to get into Rails development, and I've been reading that apparently Ruby on Windows can be a total pain in the ass to deal with, since various gems don't seem to like Windows environments.
zoo-zed has joined #ruby
<nobitanobi> lupine: hum
<MisutoWolf> I'm currently using Win8, x64. Would it be worth my time to maybe do my Ruby dev in a Linux VM, since I really don't want to invest the HD space or time in setting up a dual-boot environment just for coding.
<rcs> MisutoWolf: Yes.
<lupine> for better or worse, calling self.method is treated as though you're not in scope for private methods
<rcs> Very strongly yes.
<nobitanobi> I see...
juo_ has joined #ruby
<nobitanobi> interesting
Zai00 has quit [Quit: Zai00]
drowl_ has joined #ruby
<lupine> changing that would require making self more special than it already is, and I'd probably come down against it, on balance
hiall_ has joined #ruby
<nobitanobi> MisutoWolf: yes. I would suggest having a dual-boot. It won't take much time
Nogbit has quit [Read error: Operation timed out]
chineduu has joined #ruby
<nobitanobi> lupine: I have read two ruby books. And I still don't find myself comfy with self :D
arietis has joined #ruby
<nobitanobi> anyway, thanks :)
<MisutoWolf> I had a duaboot a few weeks ago, but got tired of rebooting every time I wanted to play a game, and then again when I wanted to go back to coding. =x
jamblack has quit [Quit: jamblack]
<MisutoWolf> That's why I was considering a VM instead, it seems more...convenient?
BlakeRG has left #ruby [#ruby]
<MisutoWolf> (WINE is a pain in the ass)
dreamr has joined #ruby
frem has joined #ruby
<Methylated> How would I go about profiling an app running on mod_ruby? Is it possible to do so externally, or to have the profiler not overwrite results on every request (aggregate)? I'm using ruby 1.8.7 w/ gc patch. I see the RubyRun and RubyProfile classes for mod_ruby
dreamr is now known as dream_in_ruby
<lupine> np, it still gets me at times
<Methylated> but I want to execute ruby from outside
TheSpect1e has joined #ruby
<sam113101> WINE and PITA? sounds good
dma_ has quit [Ping timeout: 240 seconds]
<MisutoWolf> sam113101, rofl
<MisutoWolf> It -does- sound classy...
<dream_in_ruby> Methylated: rubyprof is for 1.8.7 and lower
<mikeg> Nilium: each_with_index worked great. thanks again
Underbyte has joined #ruby
Underbyte has joined #ruby
Underbyte has quit [Changing host]
<dream_in_ruby> if anyone likes playing with their lambda as much as I do wants to see hangman done all in lambdas.... -> https://gist.github.com/dreamr/7187332
<nobitanobi> MisutoWolf: do a partition and install Ubuntu for example
<nobitanobi> come on, tired of rebooting? How long it takes ~20 sec?
<s3itz> MisutoWolf: VM option is pretty painless; a good option would be Arch w/ XFCE4
<nobitanobi> relax for ~20 sec while rebooting. Think about the sky and the stars or something :D
<dream_in_ruby> #playwithruby while rebooting
<MisutoWolf> s3itz, that does sound like a good idea. Sounds pretty lightweight.
hiall_ has quit [Quit: hiall_]
pyrac has quit [Quit: pyrac]
<s3itz> It is, performs pretty well and the install is very quick and light
nfk has joined #ruby
nfk has joined #ruby
Mitchellvanw has joined #ruby
brjannc| has joined #ruby
<lupine> it's like the worst of both worlds, though
<nobitanobi> I wouldn't go for a VM.
burlyscudd has quit [*.net *.split]
Liquid-- has quit [*.net *.split]
timonv_ has quit [*.net *.split]
heidi has quit [*.net *.split]
chinychinchin has quit [*.net *.split]
m8 has quit [*.net *.split]
kaspergr_ has quit [*.net *.split]
pwh has quit [*.net *.split]
palms has quit [*.net *.split]
b00stfr3ak has quit [*.net *.split]
deception has quit [*.net *.split]
ravster has quit [*.net *.split]
eeriegeek has quit [*.net *.split]
ehc has quit [*.net *.split]
jkamenik has quit [*.net *.split]
jcromartie has quit [*.net *.split]
hiall has quit [*.net *.split]
polysics has quit [*.net *.split]
bpgoldsb has quit [*.net *.split]
RORgasm has quit [*.net *.split]
Sauvin has quit [*.net *.split]
snappy has quit [*.net *.split]
Ivo has quit [*.net *.split]
anderson has quit [*.net *.split]
DrOwl has quit [*.net *.split]
Beoran_ has quit [*.net *.split]
juo has quit [*.net *.split]
ohcibi has quit [*.net *.split]
musl_ has quit [*.net *.split]
TheSpectre has quit [*.net *.split]
virtualize has quit [*.net *.split]
lele has quit [*.net *.split]
slash_nick has quit [*.net *.split]
BeanDip_ has quit [*.net *.split]
brjannc has quit [*.net *.split]
moeSeth has quit [*.net *.split]
kstephens has quit [*.net *.split]
Olipro has quit [*.net *.split]
yano has quit [*.net *.split]
Sammael has quit [*.net *.split]
mikee has quit [*.net *.split]
drowl_ is now known as DrOwl
c0rn has quit [Quit: Computer has gone to sleep.]
<nobitanobi> But, tastes are tastes...
<lupine> ideally, you'd put windows in the VM and pass it an adequate GPU through
mrpot4to_ has quit [Read error: Connection reset by peer]
Stygia has quit [Quit: Leaving]
<MisutoWolf> Hmmmmmmmmmmm.
<lupine> well
<s3itz> Linux operates under a VM much better than Windows
<lupine> ideally, you'd run steamonlinux and be happy with the games selection
<MisutoWolf> Honestly
<MisutoWolf> That would be fine
mrpot4to_ has joined #ruby
<MisutoWolf> If Valve would hurry up and port CS:GO to Linux, instead of porting every CS -but- GO.
<lupine> they'll get around to it
<MisutoWolf> I suppose.
<MisutoWolf> At least Hearthstone runs really well under Wine.
<s3itz> playonlinux will boot steam and run CS:GO w/o issue
<MisutoWolf> I have -horrendus- framerate problems with CS:GO under Wine.
<MisutoWolf> Maybe it's some weird driver problem. I have a Radeon 7850
IceDragon has joined #ruby
<MisutoWolf> On a sidenote, I really do like XFCE.
<Nilium> Xfce is the one true desktop.
banghouse2 has joined #ruby
<Nilium> Also a good place for Gnome 2 users to retreat to.
psyl0n has joined #ruby
<Nilium> Still nowhere for KDE2 fans to go, though.
<lupine> I've got MATE at work right now
<lupine> probably going to throw in the LTSP towel and move to a local-install desktop
<Nilium> I miss KDE 2. It was so stable and normal.
maletor has quit [Quit: Computer has gone to sleep.]
pwh has joined #ruby
<Nilium> Then KDE 3 made everything unstable, and then KDE 4 made it unstable and they tried to be all flashy like Vista and that backfired spectacularly.
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
<MisutoWolf> I've never actually tried MATE before
<MisutoWolf> I've used...uh...
<MisutoWolf> XFCE, GNOME Shell (Gnome 3, I guess?), and I tried KDE4 (and hated it)
<MisutoWolf> I tried awesomewm once
<MisutoWolf> It was...interesting.
<s3itz> hehe
lmmx has quit [Ping timeout: 250 seconds]
<MisutoWolf> Interesting in a good way, but I couldn't get used to it at all. Tiling windows does sound neat, though.
<s3itz> You have to really tweak AWM to get it the way you want
jamblack has joined #ruby
Olipro has joined #ruby
<MisutoWolf> Yeah, it just seemed like more trouble than it was worth to set up a desktop environment if I could just install GNOME/etc. and get to working on stuff.
maletor has joined #ruby
nwertman_ has quit [Ping timeout: 246 seconds]
jonathanwallace has quit [Ping timeout: 272 seconds]
Nogbit has joined #ruby
newbiehacker has quit [Read error: Connection reset by peer]
newbiehacker has joined #ruby
<MisutoWolf> I think I'll probably just shrink down my Win8 partition, install Xubuntu 13.04 on it (Since I'm already pretty familiar with Ubuntu), and then I'll have XFCE...and I can also install MATE and play with that, too.
dhilipsiva has quit [Remote host closed the connection]
nonamehero has quit [Ping timeout: 245 seconds]
dream_in_ruby has quit [Quit: Page closed]
jonathanwallace has joined #ruby
iceden has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
tvw has quit []
SilverKey has quit [Quit: Sleep now]
codeFiend has quit [Quit: codeFiend]
havenwood has joined #ruby
brtdv has quit []
mrsolo has joined #ruby
jonr22 has quit [Remote host closed the connection]
arietis has quit [Quit: Computer has gone to sleep.]
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
jonr22 has joined #ruby
newbiehacker has quit [Ping timeout: 256 seconds]
Mitchellvanw has quit [Quit: Dozing off...]
jmole has joined #ruby
johnnyfuchs has joined #ruby
pu22l3r has joined #ruby
bigoldrock has quit [Remote host closed the connection]
cascalheira has joined #ruby
yano has joined #ruby
Underbyte has quit [Quit: Leaving...]
<robonerd> anyone know of big start ups or sites that run ruby?
<CaptainJet> github uses rails right?
<havenwood> CaptainJet: Rails, Sinatra, and even a few straight Rack apps.
coderhut has quit [Ping timeout: 250 seconds]
jonr22 has quit [Ping timeout: 272 seconds]
ace_striker has joined #ruby
CreativeEmbassy has quit [Ping timeout: 240 seconds]
coca_rails has joined #ruby
arietis has joined #ruby
CreativeEmbassy has joined #ruby
Nogbit has quit [Ping timeout: 272 seconds]
<havenwood> robonerd: two obie ^ didn't mention, Lockheed Martin and Lucent, Ruby is so widespread it is easier to list companies not using Ruby
kaspergrubbe has joined #ruby
robert_ has joined #ruby
cpruitt has joined #ruby
DanBoy has joined #ruby
drumusician has joined #ruby
timonv has joined #ruby
D4T has quit [Quit: Textual IRC Client: www.textualapp.com]
Mitchellvanw has joined #ruby
<shevy> MisutoWolf did you like gnome 3?
<MisutoWolf> I did, actually.
kaspergrubbe has quit [Ping timeout: 246 seconds]
<shevy> :(
<MisutoWolf> I like XFCE the most, though.
sayan has quit [Ping timeout: 272 seconds]
<MisutoWolf> Out of everything I've ever used, XFCE easily wins.
soulcake has quit [Ping timeout: 260 seconds]
jcromartie has joined #ruby
<Nilium> I'd use Linux, but getting it to run on a retina macbook pro is kind of a huge pain in the ass.
<Nilium> Could use it in a VM, but that also sucks.
Aryasam has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
alvaro_o has joined #ruby
soulcake has joined #ruby
raphaelivan1 has joined #ruby
raphaelivan1 has quit [Client Quit]
relix has joined #ruby
iceden has joined #ruby
relix has quit [Client Quit]
elux has joined #ruby
jonathanwallace has quit [Ping timeout: 265 seconds]
<MisutoWolf> I wonder what Arch is like.
endash has joined #ruby
ezkl has joined #ruby
<MisutoWolf> I used it once before, but haven't since then.
heidi has joined #ruby
kreeves has joined #ruby
Hanmac has quit [Ping timeout: 246 seconds]
<havenwood> MisutoWolf: Seems nice enough but i'm not sure i want to get on board with the AUR, seems a bit of a mess to me.
Hanmac has joined #ruby
freezey has quit [Read error: Connection reset by peer]
jonathanwallace has joined #ruby
<MisutoWolf> Does Arch have a graphical installer? I don't think it did when I installed it a few years back.
<havenwood> MisutoWolf: Arch, Gentoo and FreeBSD all seem nice to me. I do like OS X though.
pu22l3r has quit [Remote host closed the connection]
moted has quit [Quit: moted]
freezey has joined #ruby
<MisutoWolf> I think my first exposure to Linux was Gentoo.
pothibo has quit [Quit: pothibo]
pu22l3r has joined #ruby
<s3itz> MisutoWolf: Not officially, but all you do is setup a few pre-reqs and bootstrap
nfk has quit [Read error: Connection reset by peer]
thomasss has joined #ruby
<havenwood> I think the latest Fedoras are great as far as a gui os.
<MisutoWolf> Hm.
<thomasss> hello
<MisutoWolf> I do like Fedora.
_maes_ has quit [Read error: Connection reset by peer]
<thomasss> I'm new comer
timonv has quit [Remote host closed the connection]
<MisutoWolf> Once I finish writing this paper for my roomate, I'll pick a distro and get that shit going.
<thomasss> Is this place where I can get professional help on Ruby on Rails ??
<havenwood> Fedora 19+ ships with 2.0.0-p247, and not an insane package like apt's.
endash has quit [Client Quit]
<MisutoWolf> I want to write some damn code tonight.
<havenwood> thomasss: #RubyOnRails is the Rails channel, but there are tons of Rubyists here.
timonv has joined #ruby
<thomasss> Thank you
<thomasss> I have no idea of how to join channels ;)
<thomasss> :( *
relix has joined #ruby
<havenwood> thomasss: /join #rubyonrails
<s3itz> MisutoWolf: Stick to your original decision of Xubuntu :)
<thomasss> thank you a lot
<MisutoWolf> =)
<robonerd> freebsd is the best
pwh has quit []
<s3itz> Arch will have you up and running in like 10 minutes w/ XFCE (depending on your connection), but it takes a little more maintenance
Nogbit has joined #ruby
petey_ has quit [Read error: Connection reset by peer]
<thomasss> join rubyonrails
<thomasss> srr :D
choobie has joined #ruby
petey has joined #ruby
<havenwood> FreeBSD is pretty similar to OS X, I guess not surprising since a bunch of FreeBSD core are Darwin devs.
moted has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
<havenwood> The command flag differences between the BSD and Linux OSes though is such a source of annoyance.
<robonerd> s/bunch/couple
simoz has joined #ruby
<thomasss> Hey
Hanmac has joined #ruby
<havenwood> robonerd: a good percentage :P
jlast_ has joined #ruby
<robonerd> simoz, hey i live in hawaii too. which island?
<thomasss> Is there a ruby pro who can mentor me ?
<yxhuvud> havenwood: it usually works out if you keep to posix. but both sides have their own set of extensions
<havenwood> thomasss: What are you looking to learn?
yxhuvud has quit [Quit: Leaving]
kpshek has quit []
yxhuvud has joined #ruby
kevinykchan has joined #ruby
<thomasss> Well, TDD this is important to find job as Ruby Developer
<thomasss> I can't find any good and clear tutorial on RSpec
<havenwood> yxhuvud: well bash, zsh, sh whatever are of course the same, but all the unix tool flags... uhhg!
<thomasss> Also I have lots of questions, I'm looking for Ruby friends to answer them for me :)
<yxhuvud> as I said, they are mostly identical if you keep to posix.
apeiros has joined #ruby
<s3itz> codeschool has a free RSpec course
<thomasss> really didn't know
<yxhuvud> of course, posix is pretty limited unless you have a lot of patience :)
timonv has quit [Ping timeout: 272 seconds]
<MisutoWolf> s3itz, really? That's awesome. I might have to look into that for sure.
<thomasss> thank you a lot
<Methylated> How would I go about profiling an app running on mod_ruby? Is it possible to do so externally, or to have the profiler not overwrite results on every request (aggregate)? I'm using ruby 1.8.7 w/ gc patch. I see the RubyRun and RubyProfile classes for mod_ruby ?
jlast has quit [Ping timeout: 272 seconds]
<s3itz> erm, correction, 'level 1' is free
<havenwood> Methylated: That is a pretty antiquated way of serving up Ruby. Legacy system or something?
<thomasss> Do you think that *codementor* website is good ? Is it expensive ??
<havenwood> die 1.8 die!
tjbarber has joined #ruby
<havenwood> thomasss: I don't know codementor.
<MisutoWolf> Hm.
<havenwood> thomasss: Jesse Storimer is great, if you can pay for it i betcha his workshop is incredible: http://www.jstorimer.com/products/unix-fu-workshop?utm_source=blog&utm_medium=footer&utm_campaign=links
<havenwood> thomasss: I don't know if Avdi Grimm still does paid mentoring.
<havenwood> thomasss: Here is a great place to ask free Ruby questions.
<Methylated> havenwood: yes, legacy is an understatement. It was poorly done from the start
kpshek has joined #ruby
<norm> i'm thinking about moving to fish shell (http://fishshell.com/), but IRB doesn't seem to find it's history file (~/.irb-history) and i don't have any IRB history. has anyone tried fish before? had this problem?
nfk has joined #ruby
<Methylated> norm: use pry
Spami has quit [Quit: This computer has gone to sleep]
<havenwood> Methylated: Just an aside, but an interesting modern take on mod_ruby: https://github.com/matsumoto-r/mod_mruby#readme
<havenwood> norm: I'm a zsh not fish fan, but +1 Pry.
<havenwood> speaking of posix... bad fish, no cookie!
<thomasss> Awesome, I will take a look
wald0_ has joined #ruby
<thomasss> I used Treehouse so fat, but I don't feel like I learned enough there
<thomasss> far*
<Methylated> All those sites suck. They're a good intro and they are "fun"
<Methylated> but you need to buy books, read and do the examples, and avoid any online tutorials and screencasts
<norm> Methylated / havenwood: mmm, i looked at this before. will check it out, thanks
relix has quit [Read error: Connection reset by peer]
relix_ has joined #ruby
<thomasss> I would like to have real world experience along with a developer who can say what I'm doing wrong and why
nomenkun has joined #ruby
<thomasss> I have a person helping me now, but he answer my questions once a week ..
<bean__> I completely disagree with not learning ruby online
pwh has joined #ruby
IceDragon has quit [Ping timeout: 256 seconds]
robbyoconnor has joined #ruby
zigomir has joined #ruby
<thomasss> Maybe I shouldn't ask but If there's anyone who can answer ruby questions and is patient, could you please let me know
theoretick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<MisutoWolf> So work on a project, and if you have problems, hit up IRC and ask the channel about your issue. It's what I've been doing (I'm new to Ruby/Rails), and it's been working out so far.
<MisutoWolf> As opposed to finding an actual 'mentor'.
<thomasss> I'd like to add that person on facebook and ask whenever I'm stuck
<bean__> thomasss: most people would prefer to not do that. Ask in IRC.
<Methylated> You can learn online. I just realized that reading a good book teaches me at a much faster rate than tutorials that barely brush up on specific topics
c0rn has joined #ruby
<thomasss> You think this is better?
kirun has joined #ruby
<havenwood> thomasss: Just ask in irc whenever you're stuck. If you need specialized help, pick a person who you noticed explains well for your style of learning on irc and pay em.
thyagobr has quit [Ping timeout: 245 seconds]
<MisutoWolf> Also, if I get stuck with something, before I ask here, I end up looking to see if it's something someone else has asked on StackOverflow
<MisutoWolf> http://stackoverflow.com/ <--
<thomasss> Ye i check StackOverflow all the time
gyre007 has joined #ruby
<thomasss> Well I hope I found my new home :D
ShellFu has joined #ruby
<thomasss> There's no manyruby developers out there
<s3itz> I search Dash; pulls the web in for me :)
IceDragon has joined #ruby
<MisutoWolf> GOOD LORD.
<MisutoWolf> There is a dog outside my apartment
<havenwood> thomasss: Ruby and gem questions here, Rails questions in #rubyonrails.
<MisutoWolf> Who seriously barks like
<MisutoWolf> 18 out of 24 hours a day
<MisutoWolf> And it makes me want to punch it
<MisutoWolf> >=/
<thomasss> haha
anderse has joined #ruby
<MisutoWolf> All I hear is
<s3itz> Call in a complaint
<MisutoWolf> YIP YIP YIP YIP YIP YIP YIP YIP YIP YIP YIP YIP YIP YIP YIP YIP
<havenwood> MisutoWolf: Try redirecting his stdout?
<ShellFu> Feed it some steak with a nyquil
<havenwood> Methylated: /dev/null
<ShellFu> done
<MisutoWolf> havenwood, that made my day
<havenwood> :P
coca_rails has quit [Remote host closed the connection]
<MisutoWolf> dog > /dev/null
<thomasss> First question: Will learning sinatra help me in getting RoR job ??
<MisutoWolf> mmmmmmmmmmm
echevemaster has joined #ruby
timonv has joined #ruby
anderson has joined #ruby
<MisutoWolf> This article I'm reading/writing about is pretty interesting, indeed.
<havenwood> thomasss: It'll help you get a Sinatra job. :P Maybe help you get a job as a Rails dev, yeah.
anderson has quit [Read error: Connection reset by peer]
<thomasss> Oh so is it completely different thing ?
arietis has quit [Quit: Computer has gone to sleep.]
<zoo-zed> @thomasss, not really. Sinatra isn't Rails. But that's OK because Sinatra is quite powerful in its own right.
<thomasss> I've been told that you need to know sinatra
<havenwood> thomasss: Sinatra is an essential thing to have in your tool-belt, I think.
<Methylated> havenwood: I can't use/update anything. I can edit apache's configs and mod-ruby itself. I just need this profiled
<zoo-zed> agreed
<havenwood> Methylated: 1.8 is before my day, i've got no ideas.
<ShellFu> Any suggestions on simplifying these guys? I rewrote them yesterday, and its still complainin :| https://codeclimate.com/github/shellfu/automaton/Automaton::Node
zarubin has joined #ruby
anderson has joined #ruby
<ShellFu> i mean the methods are like 9 lines :)
<havenwood> thomasss: So there is a thing called Rack, it is pretty important. :O Rails is a Rack framework and Sinatra is a Rack DSL.
petey is now known as 31NAATMJ5
<havenwood> thomasss: http://rack.github.io/
Liquid-- has joined #ruby
bpgoldsb has joined #ruby
ravster has joined #ruby
ohcibi has joined #ruby
Sammael has joined #ruby
virtualize has joined #ruby
kstephens has joined #ruby
deception has joined #ruby
Ivo has joined #ruby
BeanDip_ has joined #ruby
RORgasm has joined #ruby
ehc has joined #ruby
snappy has joined #ruby
lele has joined #ruby
musl_ has joined #ruby
slash_nick has joined #ruby
m8 has joined #ruby
moeSeth has joined #ruby
polysics has joined #ruby
eeriegeek has joined #ruby
jkamenik has joined #ruby
mikee has joined #ruby
Beoran_ has joined #ruby
<zoo-zed> @thomasss, Sinatra is a great tool for learning how to build web services. Then, from there you can play with Rails to get an idea what it brings to the party.
<zoo-zed> ^ agreed
<thomasss> nice stuff :D
<thomasss> I'm very greatful for help
bline79_ has joined #ruby
<zoo-zed> I like building data services in Sinatra. It's clean, and lightweight.
<havenwood> thomasss: Sinatra is simpler, smaller, less convention. Rails is more complex, bigger, comes with more things preconfigured and decided.
<havenwood> zoo-zed: I totally agree.
<thomasss> Hmm
<zoo-zed> ^ it's Rail's way, or the highway basically. You don't bend Rails to your will, it bends your mind to its will. :-)
<thomasss> Also .. is it true that in order to get a job as RoR you need to know noSQL DB ?
efrainolivares has quit [Quit: efrainolivares]
<havenwood> thomasss: Often a Sinatra and Rails app live side-by-side. There is more than one way to do it.
<havenwood> thomasss: no
<zoo-zed> no
<havenwood> thomasss: That is false.
<thomasss> I see, old mentor told me that you need to know it
<zoo-zed> Who's filling your mind with falsehoods? Reject their reality and discover your own.
<thomasss> as it's new and companies prefer to use it
<thomasss> rather than SQL
<havenwood> thomasss: A minority of Rails apps are NoSQL.
nucatus has joined #ruby
sparq_ has joined #ruby
<thomasss> I see
<zoo-zed> SQL, whatever flavor, has great features in enterprises. Caches and nosql and similar do too, but there are reasons for each.
k610 has joined #ruby
<thomasss> so better to stick to ActiveRecord then
Jabberish has quit [Ping timeout: 272 seconds]
<havenwood> thomasss: That is the status quo.
<robonerd> is sinatra staying true to being minimal and developing in that way? or is going the way of rails and adding feature after feature?
RichardBaker has quit [Quit: RichardBaker]
<zoo-zed> If you're using Rails ActiveRecord is the path of least resistance.
decoponio has quit [Quit: Leaving...]
simoz has quit [Ping timeout: 272 seconds]
<zoo-zed> Sinatra is lean and mean. Well, not mean, but clean.
<havenwood> robonerd: Staying simple. There are other options like NYNY that are compatible with Sinatra but paired down. Or Cuba and Scorched are there own takes on Sinatra alternatives.
<havenwood> thier*
<zoo-zed> IMO, learning and taking lessons from Rails is a great way to see why to use Sinatra.
jrhe has quit [Quit: jrhe]
Olipro has quit [Read error: Connection reset by peer]
<robonerd> good to know sinatra isn't growing
<zoo-zed> Padrino is a decent Sinatra <—> Rails middleground
randomnick_ has joined #ruby
<havenwood> zoo-zed: I always look at it and never choose it.
<havenwood> Padrino i mean.
avelldiroll has quit [Quit: WeeChat 0.3.8]
<thomasss> Is there anything else that I must learn ??
<zoo-zed> I've used it a couple times, but mostly lean toward Sinatra, but I do background services.
<zoo-zed> @thomasss, what don't you know. Learn those things.
<thomasss> I'm talking about things outside rails, like sinatra
<thomasss> jQuery jRuby
<havenwood> thomasss: Just learn Ruby. Become fluent. Then the rest is cake.
<robonerd> is sinatra appropriate for web apps with web site UIs as well as web apps with only REST interface?
<thomasss> Nice :D
<robonerd> network service components
<havenwood> thomasss: Too many people learn Rails and not Ruby.
<thomasss> I have to admit .. I did the same
<thomasss> I was so impressed with rails
<thomasss> that I didn't start with Ruby
Aryasam has quit [Ping timeout: 245 seconds]
kvirani has left #ruby [#ruby]
<robonerd> yes, i also got into ruby through the rails door
<robonerd> i did 1 web app then went right to ruby
<havenwood> robonerd: Usually REST APIs. But you could roll your own gui webapp.
nonamehero has joined #ruby
nonamehero has joined #ruby
nonamehero has quit [Changing host]
<thomasss> It's impressive how fast development is
<havenwood> robonerd: For imitating Rails, adding Padrino on to Sinatra gets you part of the way.
<zoo-zed> ugh. Rails before Ruby is a sure path to thinking Ruby is full of blackmagic and voodoo.
<thomasss> I come from PHP world so switching to Rails is a big step and fun
<zoo-zed> Learn Ruby before Rails and Rails suddenly makes sense
<robonerd> havenwood sweet. anyone know of sinatra being used as the node front end to cloud/grid services?
<havenwood> zoo-zed: That is almost the "Rails Way", to just use it and treat it as magic.
<zoo-zed> yes, which is a disservice to the developer.
yekta has joined #ruby
<thomasss> Writing SQL's was worst experience ever :D
<robonerd> thomasss i also went from php to ruby. this was in 2005 tho
<havenwood> robonerd: often used as APIs for mobile apps, or bridges to the cloud, widely imitated by other language libraries
<DanBoy> most people tend to skip the part of ruby when learning ruby on rails
<thomasss> ActiveRecord made me cry when I found out about it haha
<havenwood> scalatra, etc etc
<robonerd> havenwood ah ok so it's even inspired other work
<havenwood> robonerd: a TON of other work
<thomasss> I wish I have so much experience with Ruby by now
<robonerd> how does sinatra and sequel do?
avelldiroll has joined #ruby
<havenwood> robonerd: any language worth its salt has a Sinatra clone
<robonerd> thomasss just build it. it comes fast
<robonerd> i did a TON of ruby after i left rails
bassclef has joined #ruby
<robonerd> havenwood does sinatra employ async and other operational paradigms?
<zoo-zed> @robonerd, Sinatra and Sequel is a great combo.
bassclef is now known as Guest31158
<thomasss> I still have unanswered question .. It's newbie so I'm a bit ashamed to ask :/
<havenwood> robonerd: i use Sequel gem with Sinatra, love it
<havenwood> thomasss: ask away
<yekta> void value expression
randomnick_ has quit [Read error: Connection reset by peer]
<thomasss> Well lets say I write a big code in ruby, where do I put this file ? and how to use it inside of rails app ?
<thomasss> I know that inside controller I do require 'my_file'
bline79_ has quit [Quit: bline79_]
<robonerd> i see the example on sinatra's web page, but i wonder: what would the handler method look like for the route "/" with passed url string variables ?hello=world&test=1, let's say if i wanted to print world and 1 from within the handler method.
wildroman has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 272 seconds]
polysics has quit [Quit: Leaving.]
randomnick_ has joined #ruby
<zoo-zed> @thomasss, if it's really newbie we'll only laugh. :-)
raul782_ has joined #ruby
<thomasss> Well I'm used to answers like -> "Are you kidding me?" :D
wildroman has joined #ruby
pdimitrov has quit [Read error: Connection reset by peer]
soulcake has quit [Ping timeout: 260 seconds]
<yekta> Why can't I use `and` or `or` on multi-line with a return in Ruby? https://gist.github.com/dwickwire/f9e68bb41f943aaea560
<zoo-zed> well, we learn by experiementing and if that doesn't work we ask.
<zoo-zed> @thomasss look at http://www.sinatrarb.com/intro.html
kpshek has quit []
c0rn has quit [Quit: Computer has gone to sleep.]
<zoo-zed> scroll down to the "Route patterns may include named parameters, accessible via the params hash" section
<zoo-zed> That's how you grab parameters
pdimitrov has joined #ruby
thyagobr has joined #ruby
<yekta> return x==7 and y==8 => void value expression
unstable has left #ruby [#ruby]
<yekta> Why can't `and` be used?
<vt102> If I run "1".to_i, I'm calling the to_i method of the "1" object. However, if I run ["1"].map(&:to_i), am I calling a global to_i method?
<robonerd> zoo-zed that gets route path components
<robonerd> like /hello
<robonerd> i'm looking for ?foo=bar stuff
<robonerd> the path variables
hiyosi has quit [Ping timeout: 240 seconds]
nomenkun has quit [Remote host closed the connection]
pyrac has joined #ruby
<zoo-zed> you can get them from the params hash
<thomasss> nice, do you know any real world examples of using this ?
t0rc has joined #ruby
nonamehero has quit [Ping timeout: 245 seconds]
havenwood has quit [Read error: Connection reset by peer]
<thomasss> zoo-zed : So let's say I write new .rb file and use something like -> def hello *some code* end then I can call it inside my controller and use hello method ?
<zoo-zed> @thomasss I'll put something on gist… gimme a minute
<thomasss> thank you
bugsinlights has quit [Ping timeout: 272 seconds]
tsykoduk has quit [Ping timeout: 272 seconds]
bluOxigen has joined #ruby
thecommongeek has joined #ruby
BizarreCake has quit [Ping timeout: 246 seconds]
awarner_ has joined #ruby
nonamehero has joined #ruby
thecommongeek has quit [Client Quit]
RichardBaker has joined #ruby
yekta has quit [Quit: yekta]
kpshek has joined #ruby
<thomasss> why do you require sinatra ?
<thomasss> to get all it's methods ?
<zoo-zed> try commenting out that line to see
<thomasss> ok
pyrac has quit [Quit: pyrac]
__butch__ has quit [Quit: Leaving.]
blueOxigen has quit [Ping timeout: 265 seconds]
<zoo-zed> Sinatra is a DSL - domain-specific language. It takes advantage of Ruby's "method_missing" method to create/add new functionality to Ruby at run-time. Things like "get" and "post" for instance
burlyscudd has joined #ruby
awarner has quit [Ping timeout: 245 seconds]
timonv has quit [Remote host closed the connection]
<zoo-zed> so "get" and "post" are methods that we pass blocks to. Sinatra runs the block and executes our commands. So, it becomes an extension of Ruby's basic/core command-set.
gyre007 has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
<thomasss> nice stuff man
<thomasss> thank you for this
relix_ has quit [Quit: Textual IRC Client: www.textualapp.com]
theoretick has joined #ruby
simoz has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<thomasss> Does Sinatra help with the loading time of your app ?
derebos has joined #ruby
randomnick_ has quit [Read error: Connection reset by peer]
rezzack has quit [Quit: Leaving.]
carraroj has joined #ruby
randomnick_ has joined #ruby
burlyscudd has quit [Ping timeout: 240 seconds]
anderse has quit [Quit: anderse]
<zoo-zed> @thomasss, NP. Sinatra is a sweetheart app. Combine Sinatra, Sequel and HAML and you've got a really nice suite of tools for quickly building small REST data services.
relix has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
<zoo-zed> Rails is a great framework but it's way too heavy for back-end work like I do. I don't have human users, just automated ones, so HAML is only there for small pages to direct the programmers of the other automation on how to use the interface
jonr22 has joined #ruby
ehaliewicz has joined #ruby
<zoo-zed> We've got a whole set of small command-line apps that all understand a "—json" flag. I wrote a small Sinatra server that lets remote apps call those command-line tools using REST-type calls, and get results as JSON so the CLI tools get dual-interfaces (CLI and web) and doubled use.
robustus has quit [Ping timeout: 264 seconds]
relix has quit [Client Quit]
<zoo-zed> @thomasss "Does Sinatra help with the loading time of your app ?" Compared to what? To Rails? Heck yes. To a straight Ruby app? No, but it's not a fair comparison either.
frem has quit [Ping timeout: 272 seconds]
<thomasss> I see
<zoo-zed> Starting up a web server isn't instantaneous, but it's fast enough and plenty fast for normal stuff once running.
<zoo-zed> And, if you need faster load Nginx with Passenger and stick your Sinatra-based code inside that environment.
jonr22 has quit [Ping timeout: 260 seconds]
robustus has joined #ruby
<thomasss> So does big websites like Groupon use sinatra ?
wald0_ has quit [Ping timeout: 272 seconds]
awarner has joined #ruby
zz_tsykoduk has joined #ruby
lsmola has quit [Ping timeout: 272 seconds]
Methylated has quit [Ping timeout: 252 seconds]
<graft_> argh... can someone point me to the dang ruby C extension documentation?
<graft_> google is not helping me at all
<robonerd> zoo-zed what is HAML to you?
kaspergrubbe has joined #ruby
awarner has quit [Remote host closed the connection]
awarner has joined #ruby
jbpros has joined #ruby
pwh has quit []
Methylated has joined #ruby
awarner_ has quit [Ping timeout: 252 seconds]
t0rc has quit [Quit: 0x00]
martinsr has joined #ruby
momomomomo has joined #ruby
atmosx has joined #ruby
<atmosx> hello
<momomomomo> hello
burlyscudd has joined #ruby
MisutoWolf has quit [Ping timeout: 246 seconds]
<graft_> why is this so goddamn difficult to find?!?
CreativeEmbassy has quit [Ping timeout: 240 seconds]
<atmosx> in the case where the argument of a method is a symbold... does it change anything? method(:my_callback)
<sam113101> graft_: I will try it
polysics has joined #ruby
Ripp__ has joined #ruby
<momomomomo> atmosx: No, then you're just passing a symbol
<vt102> If I run "1".to_i, I'm calling the to_i method of the "1" object. However, if I run ["1"].map(&:to_i), is the symbol I am referencing a global to_i method?
<atmosx> momomomomo: okay
Monie has joined #ruby
hiyosi has joined #ruby
<graft_> vt102: no, the symbol is just a symbol
kaspergrubbe has quit [Ping timeout: 260 seconds]
awarner has quit [Ping timeout: 268 seconds]
allaire has quit []
<graft_> vt102: it's just a string until it gets passed to the "1" object, which has a method defined that it maps to that symbol
jlast_ has quit [Remote host closed the connection]
CreativeEmbassy has joined #ruby
<graft_> vt102: which is why you can do ["1", 0.25, 155].map(&:to_i), and each member will respond correctly
io_syl has joined #ruby
ffranz has quit [Quit: Leaving]
jlast has joined #ruby
pu22l3r_ has joined #ruby
<momomomomo> graft_: vt102 What you're doing is actually sending the to_proc method :to_i on the objects
<momomomomo> ie: & is to_proc
<vt102> graft_: I guess my confusion is how that mapping occurs...why does &:to_i get translated to a method on that object, but a block of code just get executed? At what point is the symbol evaluated...
relix has joined #ruby
<thomasss> Whar is better TDD or BDD ??
<Hanmac> but if you want to use a global method use this:
<robonerd> if i use HAML to create say form and form elements, does it automatically hot beef inject javascript encoding into those form/elements? so it not just templates html, and content, but also basic javascript identification payload?
<Hanmac> >> def abc(arg); arg * 2; ["1", 0.25, 155].map(&method(:abc))
<eval-in> Hanmac => /tmp/execpad-4e2ea31d8d67/source-4e2ea31d8d67:7: syntax error, unexpected end-of-input, expecting keyword_end (https://eval.in/59246)
<thomasss> which one is easier to learn ?
<Hanmac> >> def abc(arg); arg * 2; end; ["1", 0.25, 155].map(&method(:abc))
<eval-in> Hanmac => ["11", 0.5, 310] (https://eval.in/59247)
psyprus has quit [Read error: Connection reset by peer]
polysics has quit [Ping timeout: 264 seconds]
derebos has quit [Ping timeout: 246 seconds]
hiyosi has quit [Ping timeout: 272 seconds]
<sam113101> not quite that but hey
polysics has joined #ruby
<graft_> vt102: & == Symbol#to_proc, which returns proc { |obj, *args| obj.send(self, *args) }
pskosinski has joined #ruby
<graft_> sam113101: surely there are some docs that tell me what, e.g., ALLOC_N should do?
pu22l3r has quit [Ping timeout: 268 seconds]
<graft_> vt102: so, &:to_i is basically equivalent to writing that block of code
<sam113101> maybe there aren't
<Hanmac> graft_: not currect ... Symbol#to_proc use public_send (or similar)
heidi1 has joined #ruby
<sam113101> =/
relix has quit [Client Quit]
heidi has quit [Disconnected by services]
heidi1 is now known as heidi
<graft_> sam113101: :( well thanks for looking anyway
Chat8923 has joined #ruby
<Hanmac> graft_: i write many c-extensions ... i never needed ALLOC_N before ...
<graft_> sam113101: but i feel like i was reading just this kind of stuff on ruby-lang.org a few weeks ago
<thomasss> gtg thanks to all ;)
thomasss has quit [Quit: Page closed]
psyprus has joined #ruby
tjbarber has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
derebos has joined #ruby
<Hanmac> oO we helped him? how did that happen?
<vt102> graft_ momomomomo: Thanks...I will mull it over and see if I can grok it.
danshult_ has quit [Remote host closed the connection]
<Chat8923> If u want to make money click this link, get some money just for sitting on your ass!! http://youthwealth.com/?myrefcode=987
Chat8923 has quit [Killed (idoru (Spam is off topic on freenode.))]
<momomomomo> vt102: Or you can read the source for to_proc http://ruby-doc.org/core-2.0.0/Symbol.html#method-i-to_proc
danshult_ has joined #ruby
<vt102> momomomomo: I'm sure I'm not to the point that reading the source code would help me. ;-) But thanks for the pointer.
larissa has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
awarner has joined #ruby
awarner has quit [Remote host closed the connection]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has joined #ruby
pu22l3r has joined #ruby
<Hanmac> >> def abc(arg=nil); [self,arg]; end; p ["1", 0.25, 155].map(&:abc), ["1", 0.25, 155].map(&method(:abc))
<eval-in> Hanmac => private method `abc' called for "1":String (NoMethodError) ... (https://eval.in/59260)
awarner has joined #ruby
<Hanmac> 19>> def abc(arg=nil); [self,arg]; end; p ["1", 0.25, 155].map(&:abc), ["1", 0.25, 155].map(&method(:abc))
<eval-in> Hanmac => private method `abc' called for "1":String (NoMethodError) ... (https://eval.in/59261)
<Hanmac> 18>> def abc(arg=nil); [self,arg]; end; p ["1", 0.25, 155].map(&:abc), ["1", 0.25, 155].map(&method(:abc))
<eval-in> Hanmac => [["1", nil], [0.25, nil], [155, nil]] ... (https://eval.in/59262)
MisutoWolf has joined #ruby
<graft_> sam113101: yeah i saw that, but it seems to be for 1.8
niklasb has joined #ruby
<Hanmac> graft_: hm no this README is for trunk so 2.0+
michael_mbp is now known as zz_michael_mbp
robscomputer has joined #ruby
chrisja has quit [Quit: leaving]
Methylated has quit [Ping timeout: 246 seconds]
yalue has quit [Quit: Leaving]
frem has joined #ruby
<graft_> Hanmac: is there a better reference than that?
<vt102> momomomomo: So, I get that &:to_i is returning a Proc object. My question is, when the :to_i is evaluated, what is it evaluating to (or what is the block in the Proc object)? It looks to me that it is evaluated before being passed on the array object ["1"].collect(&:to_i) so it can't be "1"'s to_i, can it?
cina has joined #ruby
SilverKey has joined #ruby
<nobitanobi> Hi guys I have a question. An elegant way of checking if a string contains either one string or another one? Right now I do x.include?('myfirststring') || x.include?('mysecondstring')
<Hanmac> graft_: hm no the README.EXT is the newest i know ... (but i also read the header files, they are also a bit helpful)
danshult_ has quit [Ping timeout: 252 seconds]
Aryasam has joined #ruby
<graft_> Hanmac: how do you allocate memory and such? just with malloc/calloc?
burlyscudd has quit [Ping timeout: 252 seconds]
<Hanmac> nobitanobi: [str1,str2].any?(&str3.method(:include?))
<momomomomo> vt102: Imagine: `[1,2,3,4].collect(&:to_s)` maps to `[1,2,3,4].collect { |x| x.to_s }`
kiri has quit [Ping timeout: 245 seconds]
<nobitanobi> thanks Hanmac
carraroj has quit [Quit: Konversation terminated!]
c0rn has joined #ruby
polysics has left #ruby [#ruby]
havenwood has joined #ruby
DanBoy has quit [Remote host closed the connection]
dma_ has joined #ruby
Hanmac1 has joined #ruby
chineduu has quit [Read error: Connection reset by peer]
DanBoy has joined #ruby
<graft_> momomomomo: more properly, it maps to {|x| x.send :to_s} (or as Hanmac says {|x| x.public_send :to_s} - so the symbol gets evaluated by the object's own send method.
chineduu has joined #ruby
Methylated has joined #ruby
<ravster> I'm looking at a CSV file with headers that have spaces in them, and I'd like to process it without the spaces. Is there a way to strip the headers when reading in a CSV file, or do I just change the file headers manually?
kiri has joined #ruby
Aryasam has quit [Ping timeout: 240 seconds]
<vt102> momomomomo graft_: I think I get it. Thanks!
sambao21 has quit [Quit: Computer has gone to sleep.]
freezey has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 260 seconds]
Monie has quit [Quit: Textual IRC Client: www.textualapp.com]
Hanmac has quit [Ping timeout: 252 seconds]
Hanmac1 is now known as Hanmac
freezey has joined #ruby
31NAATMJ5 has quit [Remote host closed the connection]
<Hanmac> graft_: hm maybe it does not uses the send method and does all the "shit" internal .. (to be faster) ... so when you change the send or public send method it may not change how the &:sym reacts to the object
<apeiros> ravster: assuming you read the csv into an array of arrays - just shift the first row away.
petey_ has joined #ruby
<apeiros> see Array#shift
dma_ has quit [Ping timeout: 246 seconds]
zoo-zed has quit [Quit: Leaving.]
momomomomo_ has joined #ruby
zoo-zed has joined #ruby
tjbarber has joined #ruby
jkamenik has quit [Quit: Leaving.]
sambao21 has joined #ruby
momomomomo has quit [Ping timeout: 264 seconds]
momomomomo_ is now known as momomomomo
efrainolivares has joined #ruby
freezey has quit [Ping timeout: 268 seconds]
petey_ has quit [Ping timeout: 272 seconds]
zoo-zed has quit [Client Quit]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zoo-zed has joined #ruby
OdNairy has joined #ruby
OdNairy has quit [Client Quit]
reset has quit [Quit: Leaving...]
zz_tsykoduk is now known as tsykoduk
sparq_ has quit [Ping timeout: 272 seconds]
pskosinski has quit [Quit: Til rivido Idisti!]
MrPoT4tO has quit [Read error: Connection reset by peer]
mrpot4to_ has quit [Read error: Connection reset by peer]
MrPoT4tO has joined #ruby
AndChat| has joined #ruby
psyprus has quit [Read error: Connection reset by peer]
snuffeluffegus has joined #ruby
havenwood has quit [Remote host closed the connection]
skaflem has quit [Quit: This computer has gone to sleep]
mrpot4to_ has joined #ruby
jamblack has quit [Quit: jamblack]
Banistergalaxy has quit [Ping timeout: 272 seconds]
kindjal has joined #ruby
elaptics`away is now known as elaptics
interactionjaxsn has quit [Remote host closed the connection]
mark_locklear has quit [Ping timeout: 272 seconds]
kiri has quit [Ping timeout: 264 seconds]
petey_ has joined #ruby
interactionjaxsn has joined #ruby
thyagobr has quit [Quit: thyagobr has no reason]
psyprus has joined #ruby
sparq_ has joined #ruby
kiri has joined #ruby
geekbri has quit []
tsykoduk is now known as zz_tsykoduk
randomnick_ has quit [Quit: Leaving]
Xeago has joined #ruby
relix has joined #ruby
ZenGuy311 has quit [Ping timeout: 265 seconds]
efrainolivares has quit [Quit: efrainolivares]
tvw has joined #ruby
sparq_ has quit [Max SendQ exceeded]
g0bl1n has quit [Quit: g0bl1n]
AndChat| has quit [Ping timeout: 252 seconds]
zoo-zed has quit [Quit: Leaving.]
sparq_ has joined #ruby
jmccune has joined #ruby
deception has quit [Quit: Goodbye]
interactionjaxsn has quit [Ping timeout: 268 seconds]
<ravster> apeiros: will do, thanks
<jaredl> exit
sparq_ has quit [Max SendQ exceeded]
jaredl has quit [Quit: WeeChat 0.3.8]
sparq_ has joined #ruby
cina has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
zz_tsykoduk is now known as tsykoduk
sparq_ has quit [Max SendQ exceeded]
sparq_ has joined #ruby
Soda has joined #ruby
robbyoconnor has quit [Max SendQ exceeded]
d2dchat has quit [Remote host closed the connection]
Spami has joined #ruby
robbyoconnor has joined #ruby
freezey has joined #ruby
Hanmac1 has joined #ruby
Spami has quit [Remote host closed the connection]
jb__ has joined #ruby
<jb__> you know the way every program starts with require <gem name> - should you put an if statement around that, so that there's an error message if one of the requires comes out false?
Spami has joined #ruby
mojjojo has quit [Ping timeout: 248 seconds]
<jb__> or is that just not done? it seems like common sense to me...
Hanmac has quit [Ping timeout: 252 seconds]
jprovazn has quit [Quit: Odcházím]
mlpinit_ has joined #ruby
<Hanmac1> jb__ you missunderstand the return value ... require returns false if the gem/file is already loaded ... so an if does not work as you want at this place
chineduu has quit [Read error: Connection reset by peer]
<jb__> oh yeah
martinsr has quit [Quit: Lost terminal]
chineduu has joined #ruby
<jb__> well shouldn't there be some check though
chineduu has quit [Client Quit]
fedalto has quit [Quit: Leaving]
<jb__> if (the following are all true) then (run all this code)
ZenGuy311 has joined #ruby
chineduu has joined #ruby
<apeiros> jb__: what for?
<jb__> well if i don't have the gem installed
<apeiros> if the require fails, no code will be run
<jb__> really?
<apeiros> really. require raises an exception in that case.
<jb__> ahhh ok lol sorry
<jb__> makes sense
psyprus has quit [Ping timeout: 240 seconds]
Liquid-- has quit [Quit: Computer has gone to sleep.]
jb__ has quit [Quit: Page closed]
mlpinit has quit [Ping timeout: 246 seconds]
ldnunes has quit [Quit: Leaving]
amacgregor has joined #ruby
yfeldblu_ has joined #ruby
platypine has joined #ruby
platypine has joined #ruby
platypine has quit [Changing host]
jlast_ has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<momomomomo> just to reiterate on earlier graft_ I denoted 'imagine' since (s)he's just trying to grasp the concept.
psyprus has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
robbyoconnor has joined #ruby
jibi has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 272 seconds]
jibi has joined #ruby
kpshek has quit []
r0bby_ has joined #ruby
jlast has quit [Read error: Operation timed out]
tjad has quit [Ping timeout: 272 seconds]
yfeldblu_ has quit [Ping timeout: 272 seconds]
hiyosi has joined #ruby
nwertman has quit [Quit: leaving]
stringoO has quit [Quit: stringoO]
banisterfiend has joined #ruby
cdelo_ has quit [Quit: Leaving]
soba has joined #ruby
nwertman has joined #ruby
platypine has quit [Ping timeout: 264 seconds]
soba_ has joined #ruby
kaldrenon has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 268 seconds]
yfeldblum has joined #ruby
efrainolivares has joined #ruby
kaldrenon has joined #ruby
colonolGron has quit [Quit: leaving]
ShellFu has left #ruby ["Leaving"]
jkline has joined #ruby
jmole has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 272 seconds]
angusiguess has quit [Ping timeout: 245 seconds]
soba has quit [Ping timeout: 260 seconds]
mmcdaris has joined #ruby
t0rc has joined #ruby
dangerousdave has joined #ruby
platzhirsch has joined #ruby
kaldrenon has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
havenwood has quit [Remote host closed the connection]
t0rc has quit [Client Quit]
robawt has left #ruby ["WeeChat 0.3.7"]
chineduu has quit [Ping timeout: 264 seconds]
<platzhirsch> so, what's up in the Ruby Mine
nobitanobi has quit [Ping timeout: 250 seconds]
einarj has quit [Remote host closed the connection]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
blackmes1 has joined #ruby
rdnsget has joined #ruby
rdnsget has left #ruby [#ruby]
iamjarvo has quit [Remote host closed the connection]
<robonerd> ok guys you know how sinatra abstracts the basic functionality of http into some callbacks? well is there something even more generic but similar cool design, where all network .. events? are implemented in a basic abstract way
<robonerd> so rather than GET / .., another level like HTTP GET / ...
iamjarvo has joined #ruby
breakingthings has quit []
fijimunkii has quit [Quit: leaving]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
fijimunkii has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
skaflem has joined #ruby
skaflem has quit [Remote host closed the connection]
iamjarvo_ has joined #ruby
mityaz has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
psyprus has quit [Ping timeout: 240 seconds]
peregrine81 has joined #ruby
shawnjgoff has quit [Read error: No route to host]
freezey has quit [Remote host closed the connection]
seoNinjaWarrior has joined #ruby
ReachingFarr has quit [Ping timeout: 246 seconds]
freezey has joined #ruby
zz_jrhorn424 is now known as jrhorn424
Voodoofish430 has quit [Quit: movin!]
dma has joined #ruby
freezey has quit [Read error: Connection reset by peer]
dma is now known as Guest85282
freezey has joined #ruby
jerius has quit [Ping timeout: 272 seconds]
tjbarber has quit [Ping timeout: 257 seconds]
banisterfiend has quit [Quit: Computer has gone to sleep.]
banisterfiend has joined #ruby
timonv has quit [Remote host closed the connection]
r0bby_ has quit [Read error: Connection reset by peer]
amacgregor has quit [Ping timeout: 260 seconds]
zastern has joined #ruby
fijimunk1i has joined #ruby
danshult_ has joined #ruby
ssvo has quit [Ping timeout: 240 seconds]
Guest85282 has quit [Ping timeout: 272 seconds]
peregrine81 has quit []
kaspergrubbe has joined #ruby
simoz has quit [Ping timeout: 260 seconds]
fijimunkii has quit [Ping timeout: 264 seconds]
ssvo has joined #ruby
adambeynon has joined #ruby
jlev has joined #ruby
jaredl has joined #ruby
jlev has quit [Client Quit]
jaredl has quit [Client Quit]
danshult_ has quit [Ping timeout: 264 seconds]
Zerg_Rush_ has joined #ruby
pwh has joined #ruby
Methylated has quit [Quit: Leaving.]
araujo has quit [Ping timeout: 256 seconds]
ZenGuy311 has quit [Ping timeout: 252 seconds]
bluOxigen has quit [Ping timeout: 240 seconds]
zigomir has quit [Quit: zigomir]
mmcdaris has quit [Quit: mmcdaris]
vpretzel has quit [Remote host closed the connection]
mengu_ has quit [Quit: This computer has gone to sleep]
vpretzel has joined #ruby
raul782_ has quit [Remote host closed the connection]
mmcdaris has joined #ruby
blackmes1 is now known as blackmesa
raul782_ has joined #ruby
danshult_ has joined #ruby
enebo has quit [Quit: enebo]
s3itz has quit [Quit: Textual IRC Client: www.textualapp.com]
sparq_ has quit [Ping timeout: 272 seconds]
allaire has joined #ruby
pu22l3r_ has joined #ruby
krawchyk has quit []
efrainolivares_ has joined #ruby
momomomomo_ has joined #ruby
vlad_starkov has joined #ruby
momomomomo has quit [Read error: Operation timed out]
momomomomo_ is now known as momomomomo
JeanMertz has quit []
peregrine81 has joined #ruby
kevind_ has quit [Quit: kevind_]
efrainolivares__ has joined #ruby
raul782_ has quit [Ping timeout: 260 seconds]
osvico has joined #ruby
efrainolivares has quit [Ping timeout: 252 seconds]
spidderlocc has joined #ruby
pu22l3r has quit [Ping timeout: 268 seconds]
vlad_starkov has quit [Remote host closed the connection]
jonr22 has joined #ruby
araujo has joined #ruby
Spami has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
drag00n has quit [Ping timeout: 272 seconds]
kevind_ has joined #ruby
psyl0n has quit [Quit: psyl0n]
vlad_starkov has joined #ruby
nucatus has quit [Remote host closed the connection]
Chat7440 has joined #ruby
momomomomo has quit [Read error: Connection reset by peer]
efrainolivares_ has quit [Ping timeout: 264 seconds]
Chat7440 has quit [Client Quit]
ctp_ has quit [Ping timeout: 260 seconds]
simoz has joined #ruby
danman has quit [Quit: danman]
jonr22 has quit [Ping timeout: 264 seconds]
freezey has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
freezey has joined #ruby
Notte has joined #ruby
raul782_ has joined #ruby
El_Fary2 has joined #ruby
<El_Fary2> Las mejores pajas en www.JizzDay.com
El_Fary2 has quit [Killed (idoru (Spam is off topic on freenode.))]
sambao21 has quit [Quit: Computer has gone to sleep.]
fijimunk1i has quit [Quit: leaving]
fijimunkii has joined #ruby
nucatus has joined #ruby
cpruitt has quit [Quit: cpruitt]
theRoUS has quit [Ping timeout: 272 seconds]
tomzx_mac has joined #ruby
freezey has quit [Ping timeout: 268 seconds]
jrhe has joined #ruby
sailias has quit [Quit: Leaving.]
danshult_ has quit [Remote host closed the connection]
Tuxist has quit [Read error: Connection reset by peer]
sepp2k has quit [Read error: Operation timed out]
danshult_ has joined #ruby
jonr22 has joined #ruby
sepp2k has joined #ruby
terrellt has quit [Ping timeout: 245 seconds]
nwertman has quit [Ping timeout: 240 seconds]
psyprus has joined #ruby
terrellt has joined #ruby
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jlast_ has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
jlast has joined #ruby
sambao21 has joined #ruby
danshult_ has quit [Ping timeout: 268 seconds]
pwh has quit []
sambao21 has quit [Client Quit]
iamjarvo_ has quit []
iamjarvo has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
jlast has quit [Ping timeout: 240 seconds]
Hanmac1 has quit [Remote host closed the connection]
efrainolivares__ has quit [Quit: efrainolivares__]
spidderlocc has quit [Quit: Page closed]
Hanmac has joined #ruby
psyprus has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Quit: Leaving...]
volty has joined #ruby
hiyosi has joined #ruby
failshell has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
jbpros has quit [Quit: jbpros]
jokke has quit [Quit: WeeChat 0.4.2]
sambao21 has joined #ruby
failshell has joined #ruby
ctp_ has joined #ruby
aspiers has quit [Ping timeout: 264 seconds]
coderhs has quit [Ping timeout: 272 seconds]
osvico has quit [Ping timeout: 272 seconds]
amacgregor has joined #ruby
mlpinit_ has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hiyosi has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby
mlpinit has joined #ruby
efrainolivares has joined #ruby
einarj has joined #ruby
mansi has joined #ruby
amacgregor_ has joined #ruby
jrhorn424 is now known as zz_jrhorn424
jonr22 has quit [Remote host closed the connection]
amacgregor has quit [Ping timeout: 246 seconds]
jonathanwallace has quit [Ping timeout: 245 seconds]
jonr22 has joined #ruby
amacgregor_ has quit [Read error: Connection reset by peer]
jcromartie has joined #ruby
DonRichie has quit [Quit: Verlassend]
allaire has quit []
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
freerobby has quit [Quit: Leaving.]
einarj has quit [Remote host closed the connection]
jcromartie has quit [Client Quit]
mmcdaris has quit [Quit: mmcdaris]
iamjarvo has quit [Ping timeout: 268 seconds]
freakazoid0223 has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
psyprus has joined #ruby
efrainolivares has quit [Quit: efrainolivares]
johnnyfuchs has quit [Quit: Leaving.]
tjbarber has joined #ruby
nkts has joined #ruby
nkts has quit [Max SendQ exceeded]
dma has joined #ruby
snuffeluffegus has quit [Quit: Leaving]
dma is now known as Guest19008
mansi has quit [Ping timeout: 272 seconds]
nkts has joined #ruby
nkts has quit [Max SendQ exceeded]
nkts has joined #ruby
nkts has quit [Max SendQ exceeded]
jcromartie has joined #ruby
Xeago has quit [Remote host closed the connection]
nkts has joined #ruby
thepumpkin has quit [Remote host closed the connection]
nkts has quit [Max SendQ exceeded]
Xeago has joined #ruby
vpretzel has quit [Remote host closed the connection]
nateberkopec has joined #ruby
thepumpkin has joined #ruby
mansi has joined #ruby
vpretzel has joined #ruby
farsonic has joined #ruby
nkts has joined #ruby
efrainolivares has joined #ruby
nkts has quit [Max SendQ exceeded]
<farsonic> morning all
<havenwood> g'afternoon
<farsonic> :)
nkts has joined #ruby
nkts has quit [Max SendQ exceeded]
<farsonic> working on my first Ruby website…just to see what I can learn
<farsonic> so far so good
Guest19008 has quit [Ping timeout: 246 seconds]
failshell has quit []
<farsonic> but, going to get more difficult after the basics I think
nkts has joined #ruby
nkts has quit [Max SendQ exceeded]
coderhs has joined #ruby
nkts has joined #ruby
nkts has quit [Max SendQ exceeded]
<farsonic> I've set up a simple site…such as 127.0.0.1:3000/users/news/
<volty> steady, slow:and sleeping let your neurals (re)organize
psyprus has quit [Ping timeout: 240 seconds]
nkts has joined #ruby
nkts has quit [Max SendQ exceeded]
<farsonic> works ok…however I'm now passing information to it from an external system that is presenting it as 127.0.0.1:3000/users/new?firstname=fred$&surname=smith
<farsonic> my basic site (understandably) doesn't like this :)
claymore has quit [Quit: Leaving]
thepumpkin has quit [Ping timeout: 260 seconds]
nkts has joined #ruby
nkts has quit [Max SendQ exceeded]
<farsonic> need to work out how to process the fields after the ?
Xeago has quit [Ping timeout: 265 seconds]
nateberkopec has quit [Quit: Leaving...]
vpretzel has quit [Ping timeout: 268 seconds]
dagnachew has joined #ruby
dagnachew has quit [Max SendQ exceeded]
nkts has joined #ruby
<havenwood> farsonic: Are you using Rack or Sinatra or what?
nkts has quit [Max SendQ exceeded]
dagnachew has joined #ruby
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<volty> as far as I remember usually you get then in env (depending on server implementation)
<volty> them
nkts has joined #ruby
<farsonic> I have got a lot to learn about Ruby....
nkts has quit [Max SendQ exceeded]
jonr22 has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
nkts has joined #ruby
nkts has quit [Max SendQ exceeded]
elux has quit [Quit: Bye!]
<farsonic> I'm think Rack
<farsonic> actually….nope
nkts has joined #ruby
<farsonic> getting confused with the fact there is a Rakefile :)
nkts has quit [Max SendQ exceeded]
nkts has joined #ruby
nkts has quit [Max SendQ exceeded]
<volty> this is more for #rubyonrails than for #ruby chan
soulcake has joined #ruby
<shevy> Rakefile is for rake, .ru files are for rack
<farsonic> ok
nkts has joined #ruby
nkts has quit [Max SendQ exceeded]
<farsonic> I'll jump over tehre
<farsonic> have a good day all
farsonic has left #ruby [#ruby]
Mitchellvanw has quit [Quit: Dozing off...]
lfox has quit [Quit: ZZZzzz…]
nkts has joined #ruby
nkts has quit [Max SendQ exceeded]
Lewix has joined #ruby
raphaelivan has joined #ruby
nkts has joined #ruby
allaire has joined #ruby
nkts has quit [Read error: Connection reset by peer]
<havenwood> Happy Halloween!
mansi has quit [Remote host closed the connection]
Notte has quit [Remote host closed the connection]
tonni has joined #ruby
filipe_ has joined #ruby
mansi has joined #ruby
Notte has joined #ruby
sparq_ has joined #ruby
vlad_sta_ has joined #ruby
filipe_ has quit [Client Quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
zz_jrhorn424 is now known as jrhorn424
psyprus has joined #ruby
mengu has quit [Remote host closed the connection]
cody-- has quit [Quit: derp]
xk_id has joined #ruby
mlpinit_ has joined #ruby
platzhirsch has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 241 seconds]
mrpot4to_ has quit [Remote host closed the connection]
MrPoT4tO has quit [Read error: Connection reset by peer]
Notte has quit [Ping timeout: 240 seconds]
mlpinit has quit [Ping timeout: 264 seconds]
tonni has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
peregrine81 has quit []
ttttt_5a0a3 has joined #ruby
axl_ has quit [Quit: axl_]
psyprus has quit [Ping timeout: 240 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
mlpinit_ is now known as mlpinit
dagnachew has quit [Read error: Connection reset by peer]
jkhwan_ has joined #ruby
thyagobr has joined #ruby
mansi has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
jrhorn424 is now known as zz_jrhorn424
kitak has joined #ruby
yfeldblum has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
erichmenge has quit [Ping timeout: 245 seconds]
brtdv has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
osvico has joined #ruby
c0rn_ has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
MisutoWolf has quit [Ping timeout: 246 seconds]
mixel has joined #ruby
drumusician has quit [Ping timeout: 272 seconds]
kaspergrubbe has joined #ruby
kenneth has quit [Quit: kenneth]
c0rn has quit [Read error: Operation timed out]
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
rraya has joined #ruby
erichmenge has joined #ruby
kaspergrubbe has quit [Client Quit]
greenrose has quit [Read error: Connection reset by peer]
greenrose has joined #ruby
danshult_ has joined #ruby
snath has quit [Ping timeout: 272 seconds]
mark- has quit [Ping timeout: 264 seconds]
spider-mario has quit [Read error: Connection reset by peer]
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
benwoody has quit [Quit: benwoody]
hiyosi has joined #ruby
freerobby has joined #ruby
kenneth has joined #ruby
awc737 has quit [Quit: ZNC - http://znc.sourceforge.net]
jlast has joined #ruby
danshult_ has quit [Read error: Operation timed out]
mark- has joined #ruby
brtdv has quit []
awc737 has joined #ruby
osvico has quit [Ping timeout: 272 seconds]
zz_jrhorn424 is now known as jrhorn424
DanBoy has quit [Quit: Leaving]
hiyosi has quit [Ping timeout: 246 seconds]
brtdv has joined #ruby
RichardBaker has joined #ruby
timonv has joined #ruby
tsykoduk is now known as zz_tsykoduk
jlast has quit [Ping timeout: 246 seconds]
petey_ has quit [Remote host closed the connection]
dangerousdave has quit [Quit: Leaving...]
petey_ has joined #ruby
nkts has joined #ruby
nkts has quit [Max SendQ exceeded]
nkts has joined #ruby
mikeg_ has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
tjbarber has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lmickh has quit [Quit: lmickh]
jokke has joined #ruby
petey_ has quit [Ping timeout: 241 seconds]
mikeg has quit [Ping timeout: 272 seconds]
IceDragon has quit [Quit: Space~~~]
IceDragon has joined #ruby
psyprus has joined #ruby
RORgasm has quit [Remote host closed the connection]
RORgasm has joined #ruby
vlad_starkov has joined #ruby
smathieu has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
postmodern has joined #ruby
Thanatermesis has joined #ruby
fuleo has quit [Ping timeout: 272 seconds]
bean has quit [Changing host]
bean has joined #ruby
DouweM has quit [Read error: Connection reset by peer]
ukd1 has joined #ruby
dma has joined #ruby
vlad_sta_ has quit [Ping timeout: 272 seconds]
dma is now known as Guest27067
nucatus has quit [Remote host closed the connection]
lstefani has joined #ruby
RORgasm has quit [Ping timeout: 268 seconds]
petey_ has joined #ruby
DrCode has quit [Ping timeout: 240 seconds]
lewis_ has joined #ruby
vlad_sta_ has joined #ruby
DouweM has joined #ruby
mikeg_ has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Ping timeout: 246 seconds]
mityaz has quit [Quit: See ya!]
jonr22_ has joined #ruby
<shevy> DIE!
<shevy> SOME EVIL KIDS TRIED TO GET INTO MY HOME
<shevy> I LOCKED THE DOOR AND MADE IT ALL DARK SO THAT THEY WOULD NOT FIND ME!
mikeg has joined #ruby
einarj has joined #ruby
jeffreyio has quit [Read error: Connection reset by peer]
<shevy> hmmm
<volty> a horror plot? :)
b00stfr3ak has quit [Ping timeout: 272 seconds]
<shevy> Is there no project out there that generates <html> tags?
snath has joined #ruby
taternuts has joined #ruby
<atmosx> shevy: seriously?
<atmosx> shevy: generates html tags out of what? doc?
<shevy> atmosx hmm out of anything
<atmosx> shevy: sure, many.
<shevy> it seems in the rails world there is erb used, but erb is such an ugly piece that I don't understand how anyone can use it
<volty> many many
<atmosx> shevy: hmm, erb is pretty close to HTML
<atmosx> I use HAML
<shevy> atmosx do you use erb?
<atmosx> shevy: not directly but I understand it
<atmosx> it's easy
<shevy> how is HAML used?
<havenwood> i use erb, never bothered to haml
<shevy> I am hopeful for any alternative to erb at this point!
<volty> I use cgi
<atmosx> shevy: it has a more straight-forward syntax than HAML, there are thers, like less and slim
jonr22_ has quit [Ping timeout: 264 seconds]
<atmosx> havenwood: not a big deal really...
<shevy> volty I too right now but I'd still like things to be much better
<atmosx> shevy: no
<atmosx> shevy: rails == ( erb && activerecord)
monkegjinni has quit [Remote host closed the connection]
<shevy> damn
monkegjinni has joined #ruby
<atmosx> shevy: HAML is good for prototyping, or writing API's and other small apps on frameworks like Sinatra and a couple of thousand others (in ruby)
Aryasam has joined #ruby
<atmosx> shevy: I believe the question is, do you know HTML :-P
einarj has quit [Ping timeout: 264 seconds]
<atmosx> shevy: I mean, can you design a website in HTML?
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
<atmosx> if you can, erb is not hard at all. If you can't then you should spent some time reading HTML. I bought a book and really helped a lot.
atlantaman has joined #ruby
<shevy> atmosx yeah but it is basically XML crap, I would never in my life again go to pure XML
<shevy> and!!!
mupkoo has quit [Remote host closed the connection]
c0rn_ has quit [Quit: Computer has gone to sleep.]
<shevy> I used to use php! :(
aspiers has joined #ruby
<MrZYX> well, html is sgml, which is a lot more tolerant than xml. but yeah, looks as shitty ;P
<atmosx> hmmm
DanBoy has joined #ruby
<atmosx> shevy: What are you trying to do anyway?
<volty> sgml is a superset of xml - that is superset of html
<atmosx> did you stuck in something specific?
<atmosx> superset == superclass?
Liquid-- has joined #ruby
<volty> no,superset
<shevy> atmosx I am trying to think of better ways to generate website-related, presentable content
<MrZYX> set that includes the other set
<atmosx> shevy: in rails?
<shevy> atmosx no, in general... rails feels like a 10000000-pounds-to-lift rock right now
<volty> sgml is the utmost abstraction about document organization // too complex to be implemented so they choosed xml
<shevy> my brain prefers small snippets of knowledge
<atmosx> shevy: okay, go with sinatra.
<shevy> ok but... do they use erb?
<atmosx> shevy: no
<shevy> ok
<atmosx> shevy: http://haml.info
monkegjinni has quit [Ping timeout: 272 seconds]
<MrZYX> I think I'd recommend slim these days if you're going to learn a HTML dsl
<atmosx> note that you still have to write CSS3 (which I prefer to SASS because I'm not proficient at it)
hiyosi has joined #ruby
mary5030 has quit [Ping timeout: 256 seconds]
<shevy> hmm
<atmosx> also this framework seems interesting. But to use it efficiently you have to look at sinatra. http://scorchedrb.com
<shevy> ah well
<shevy> it looks a bit better than erb but not by that much
ssvo has quit [Ping timeout: 240 seconds]
<shevy> <h1><%= post.title %></h1>
<shevy> erb
<shevy> %h1= post.title
<shevy> haml
<shevy> hmmmmm
<shevy> how can people use erb... how do they survive that!
<atmosx> shevy: identation in HAML will be a pain in the ass, I tell you. But once you get hte hold of it... it's fine
<shevy> I would be fine if I'd be much nicer. I think I'll look how slim does that
<shevy> ohh...
tonni has joined #ruby
<shevy> it also requires indentation?
<AntelopeSalad> probably because most editors take a lot of the repetition out of erb
<atmosx> shevy: haml sure
<havenwood> If i have to deal with bloody html, i'd prefer it to look like the html it's generating. But haml standing alone is nicer, i just don't care to switch after the cost of yet another abstraction context switch. Maybe if I did more html.
<shevy> no, I mean... slim too or? at least I see a lot of indent on the demo
kevind_ is now known as kevind
<MrZYX> it does
<shevy> slim looks complicated
<shevy> == yield
<atmosx> shevy: this https://gist.github.com/atmosx/7259001 is the haml for this http://piseli.net/advice
vlad_sta_ has quit [Ping timeout: 260 seconds]
<MrZYX> haml equivalent: != yield
<havenwood> The whole html and css thing is so bizarre and insane... But entrenched enough we'll have to deal with it for some time.
<atmosx> I think it's clear enough for everyone to understand. Much more clear than ruby blocks ...
<volty> are you about generating or about parsing?
<shevy> generating
<volty> sorry, i was asking havenwood
<atmosx> Once you figure out how things work, all you need to do really is spent time to design something that doesn't suck, Making it is easy.
<havenwood> volty: generally, generating more than parsing, but whatever the whole thing
soba_ has quit [Quit: See you...]
<havenwood> atmosx: sure with effort you can comprehend the madness but it is a horror
MrZYX is now known as MrZYX|off
Vendethi_ has joined #ruby
mikeg has quit [Remote host closed the connection]
<havenwood> atmosx: you'd think a joke, but is is real, we make amazing things with it, but holy hell
endash has joined #ruby
zz_michael_mbp is now known as michael_mbp
<atmosx> Heh there are so many things to master these days, that it's insane: JS, HTML/CSS3, backend (ruby/go/node.js?) if you wanna create a modern website.
<atmosx> not to mention about scalability shit
<atmosx> concurrency and the list goes on
tonni has quit [Ping timeout: 252 seconds]
<havenwood> atmosx: I'm sure you could design a better method of markup and styling than html and css. They are hard to comprehend, error prone, just generally not simple and usable.
<atmosx> havenwood: hmm probably you could, if there are languages like slim and haml out there..
<volty> mmmmmm
<atmosx> could be extended
<havenwood> atmosx: Of course we can manage. But the inflexibility of the entrenchment of our browsers generates this bizarre ecosystem.
threesome has quit [Ping timeout: 272 seconds]
<atmosx> hm
<atmosx> might be
<atmosx> I'm gonna grab my book and head over to bed
<atmosx> good night guys
<atmosx> as always, nice talking to you
<havenwood> g'night
Vendethi_ has quit [Ping timeout: 252 seconds]
atmosx has quit [Quit: Lost in trance]
Mon_Ouie has quit [Ping timeout: 246 seconds]
yano has quit [Ping timeout: 630 seconds]
Ripp__ has quit []
michael_mbp is now known as zz_michael_mbp
platypine has joined #ruby
Olipro has joined #ruby
jkline has quit [Quit: jkline]
dsferreira has quit [Quit: This computer has gone to sleep]
saarinen has quit [Quit: saarinen]
lukec has quit [Quit: lukec]
blackmesa has joined #ruby
ttttt_5a0a3 has left #ruby [#ruby]
jkhwan has joined #ruby
kevind has quit [Quit: kevind]
vlad_starkov has joined #ruby
ZenGuy311 has joined #ruby