apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
cyberarm has joined #ruby
pietr0 has quit [Quit: pietr0]
bmurt has joined #ruby
Aranshada|W_ has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
Aranshada|W has quit [Ping timeout: 255 seconds]
Aranshada|W has joined #ruby
djbkd has quit [Remote host closed the connection]
wjimenez5271 has quit [Remote host closed the connection]
Aranshada|W_ has quit [Ping timeout: 240 seconds]
bjz_ has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
bjz has joined #ruby
wjimenez5271 has joined #ruby
testcore has quit [Quit: [BX] iT's bEttEr tO bUrN oUt tHaN tO fAdE aWaY]
thumpba has quit [Remote host closed the connection]
odlox has joined #ruby
duggiefresh has quit [Remote host closed the connection]
duggiefresh has joined #ruby
thumpba has joined #ruby
OffTheRails has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
odlox_ has joined #ruby
mferrier has quit [Remote host closed the connection]
sepp2k1 has joined #ruby
Kricir has joined #ruby
iteratorP has joined #ruby
mferrier has joined #ruby
charliesome has joined #ruby
odlox has quit [Ping timeout: 245 seconds]
sepp2k has quit [Ping timeout: 240 seconds]
pu22l3r has joined #ruby
MCDev has joined #ruby
duggiefresh has quit [Ping timeout: 245 seconds]
seamon has quit [Quit: Zzzzzzz]
avita1 has quit [Quit: Leaving.]
mferrier has quit [Ping timeout: 246 seconds]
jmbrown412 has quit [Remote host closed the connection]
jmbrown412 has joined #ruby
toastynerd has quit [Remote host closed the connection]
avita1 has joined #ruby
thams has quit [Quit: thams]
pu22l3r has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DadoCe has quit []
b00stfr3ak has quit [Ping timeout: 276 seconds]
ptierno_ has quit [Quit: leaving]
zz_karupa is now known as karupa
axsuul has quit [Ping timeout: 268 seconds]
toastynerd has joined #ruby
jmbrown412 has quit [Ping timeout: 246 seconds]
RTG` has joined #ruby
seamon has joined #ruby
duggiefresh has joined #ruby
matchaw has quit [Ping timeout: 276 seconds]
matchaw_ has joined #ruby
Takle has joined #ruby
benzrf|offline is now known as benzrf
aspires has quit []
fabrice31 has joined #ruby
aspires has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toastynerd has quit [Remote host closed the connection]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emmesswhy has quit [Quit: This computer has gone to sleep]
fabrice31 has quit [Ping timeout: 245 seconds]
Takle has quit [Ping timeout: 268 seconds]
cirn0 has joined #ruby
matchaw has joined #ruby
matchaw_ has quit [Ping timeout: 264 seconds]
toastynerd has joined #ruby
jenskarlsen has quit [Ping timeout: 245 seconds]
toastynerd has quit [Remote host closed the connection]
orolo has joined #ruby
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
cirn0 has quit [Ping timeout: 260 seconds]
newmanships has joined #ruby
JoshGlzBrk has quit [Quit: Textual IRC Client: www.textualapp.com]
oo_ has joined #ruby
bmurt has quit []
axsuul has joined #ruby
bjz has quit [Ping timeout: 245 seconds]
SilkFox_ has joined #ruby
bmurt has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
Kricir has quit [Ping timeout: 246 seconds]
pu22l3r has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
oo_ has quit [Remote host closed the connection]
ghostmoth has quit [Quit: ghostmoth]
mary5030 has joined #ruby
nszceta has quit []
skolman_ has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 240 seconds]
tfittsy has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
tfittsy has joined #ruby
avita1 has quit [Quit: Leaving.]
mary5030 has joined #ruby
oo_ has joined #ruby
echooo has joined #ruby
avita1 has joined #ruby
Derander has quit [Quit: ZNC - http://znc.sourceforge.net]
Inhaling_ has joined #ruby
echooo has quit [Client Quit]
Channel6 has joined #ruby
wjimenez_ has joined #ruby
Derander has joined #ruby
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Sawbones has quit [Remote host closed the connection]
_Kerber0s_ has joined #ruby
narcan has joined #ruby
pu22l3r has quit [Ping timeout: 268 seconds]
InhalingPixels has quit [Ping timeout: 252 seconds]
_Kerber0s_ has quit [Remote host closed the connection]
_Kerber0s_ has joined #ruby
Kerber0s has quit [Ping timeout: 260 seconds]
wjimenez5271 has quit [Ping timeout: 245 seconds]
sevenseacat has joined #ruby
amclain has joined #ruby
wjimenez_ has quit [Ping timeout: 240 seconds]
earthquake has quit [Quit: earthquake]
aspires has quit []
sparrovv has joined #ruby
deric_skibotn has quit [Ping timeout: 260 seconds]
ssvo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yetanotherdave has quit [Ping timeout: 246 seconds]
robh71 has joined #ruby
sparrovv has quit [Ping timeout: 245 seconds]
absolutezeroff has joined #ruby
crdprink2 has joined #ruby
crdpink has quit [Ping timeout: 260 seconds]
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yetanotherdave has joined #ruby
avita1 has quit [Quit: Leaving.]
pu22l3r has joined #ruby
Inhaling_ has quit [Remote host closed the connection]
InhalingPixels has joined #ruby
mferrier has joined #ruby
rjhunter has joined #ruby
avita1 has joined #ruby
pu22l3r has quit [Ping timeout: 252 seconds]
fsapo has joined #ruby
skolman_ has joined #ruby
InhalingPixels has quit [Ping timeout: 268 seconds]
bmurt has quit []
newmanships has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
mferrier has quit [Ping timeout: 260 seconds]
jmbrown412 has joined #ruby
lemur has joined #ruby
skolman_ has quit [Ping timeout: 255 seconds]
lemur has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
lemur has joined #ruby
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
skolman_ has joined #ruby
bmurt has joined #ruby
seamon has quit [Quit: Zzzzzzz]
oo_ has quit [Remote host closed the connection]
rjhunter has quit [Remote host closed the connection]
jmbrown412 has quit [Ping timeout: 268 seconds]
Hobogrammer_ has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
tkuchiki has joined #ruby
Macaveli has quit [Ping timeout: 264 seconds]
whatasunnyday has quit [Quit: whatasunnyday]
mpistone has quit [Remote host closed the connection]
Bumptious has quit [Remote host closed the connection]
sonOfRa has quit [Ping timeout: 250 seconds]
ixti has quit [Quit: WeeChat 0.4.3]
Spami has quit [Quit: This computer has gone to sleep]
sonOfRa has joined #ruby
D34DC0D3_ has joined #ruby
D34DC0D3_ has quit [Client Quit]
iteratorP has quit [Read error: Connection reset by peer]
iteratorP has joined #ruby
mockra has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
bmurt has quit []
siwica has quit [Quit: siwica]
bmurt has joined #ruby
mockra has quit [Ping timeout: 252 seconds]
michaeldeol has joined #ruby
moritzschaefer has joined #ruby
mikeg has quit [Remote host closed the connection]
optiz0r has quit [Ping timeout: 245 seconds]
goshdarnyou has joined #ruby
avita1 has quit [Quit: Leaving.]
SilkFox_ has joined #ruby
avita1 has joined #ruby
avita1 has quit [Client Quit]
Cache_Money has joined #ruby
snath has joined #ruby
pu22l3r has joined #ruby
bmurt has quit []
SilkFox_ has quit [Ping timeout: 240 seconds]
choke has joined #ruby
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
martin_work has joined #ruby
natevick has joined #ruby
tokik has joined #ruby
DEA7TH has quit [Ping timeout: 268 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
pu22l3r has quit [Ping timeout: 246 seconds]
wallerdev has quit [Quit: wallerdev]
martin_work has quit [Ping timeout: 264 seconds]
seamon has joined #ruby
bricker`work has quit [Ping timeout: 264 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skolman_ has quit [Remote host closed the connection]
michaeldeol has joined #ruby
Spami has joined #ruby
fsapo has quit [Ping timeout: 276 seconds]
martin_work has joined #ruby
<martin_work> Hey all, I have an array of objects, I would like to grep though that array for the results of each obj.s method. Is there a better way to do this other then a each loop?
<pontiki> grep
echooo has joined #ruby
<sevenseacat> lol
<sevenseacat> map(&:s)
helpa has quit [Remote host closed the connection]
<sevenseacat> done
<pontiki> TADA!! \o/
mferrier has joined #ruby
<martin_work> thanks
helpa has joined #ruby
<martin_work> guess i should a looked for that :D
<sevenseacat> ps. grep does not mean what you think it means
jnoob22 has joined #ruby
Cooler_ has quit [Read error: Connection reset by peer]
tfitts has quit [Remote host closed the connection]
tfitts has joined #ruby
j_mcnally has joined #ruby
j_mcnally has quit [Client Quit]
odlox_ has quit [Ping timeout: 264 seconds]
j_mcnally has joined #ruby
<jnoob22> Is foreman a good candidate to serve ruby in a production environment (as an alternative to using Apache)?
<sevenseacat> i dont think its an alternative
Cooler_ has joined #ruby
natevick has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<y_nk> woooooohoooooooo
<y_nk> i finally succeeded !
<pontiki> i think it means return the values in an Enumerable that match a give pattern, or pass them to a block....
<pontiki> given*
robh71 has joined #ruby
hamakn has joined #ruby
yetanotherdave has quit [Ping timeout: 240 seconds]
axilla has quit [Ping timeout: 245 seconds]
GriffinHeart has joined #ruby
rockdon_ has quit [Ping timeout: 246 seconds]
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
_reset has joined #ruby
zakiazigazi has joined #ruby
martin_work has quit [Read error: Connection reset by peer]
bogeyd6 has joined #ruby
zenspider has quit [Ping timeout: 240 seconds]
GriffinHeart has quit [Ping timeout: 264 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
zz_anildigital is now known as anildigital
zenspider has joined #ruby
reset has quit [Ping timeout: 260 seconds]
_reset has quit [Ping timeout: 246 seconds]
Sawbones has joined #ruby
<zorak> can you see a problem with this line?
<zorak> 2 <% n += 1 %>
<zorak> im geing this error
aomdoa has joined #ruby
<zorak> NoMethodError - undefined method `+' for nil:NilClass:
<sevenseacat> so n is nil
<sevenseacat> you cant add 1 to nil
<zorak> n was generade before
<sevenseacat> obviously not.
<zorak> 2 <% n = -1 %>
ptrrr has joined #ruby
<sevenseacat> you have two line 2s?
<zorak> (the first is a partial)
emmesswhy has joined #ruby
<zorak> the main one start with
<zorak> 2 <% n = -1 %>
<zorak> and the partial have n += 1
<centrx> local variables in the view are not automatically passed to partials
_Kerber0s_ has quit [Ping timeout: 276 seconds]
<zorak> mmm
<zorak> need to be other kind of variable?
<sevenseacat> no. pass the variable to the partial if you want to use it there.
fabrice31 has joined #ruby
Jameser has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<zorak> the partial is repeted some times
hamakn has quit [Remote host closed the connection]
<zorak> and each time need a n += 1
<zorak> 0, 1, 2...
zakiazigazi has left #ruby [#ruby]
zakiazigazi has joined #ruby
Lewix_ has joined #ruby
jmbrown412 has joined #ruby
<sevenseacat> and ..?
<zorak> and cant generate n in each partial because everytime need to be different
Lewix has quit [Ping timeout: 260 seconds]
djbkd has quit [Quit: My people need me...]
<sevenseacat> (10:18:38) sevenseacat: no. pass the variable to the partial if you want to use it there.
<zorak> i have te partial that repeat 7 times
<zorak> the first time n == 0
<zorak> the second n == 1
<sevenseacat> yes, i understood that.
fabrice31 has quit [Ping timeout: 272 seconds]
<zorak> if i make the partial generate the variable its gonna be the same the 7 times
jmbrown412 has quit [Ping timeout: 240 seconds]
<sevenseacat> i didnt say to do that
Lewix_ has quit [Remote host closed the connection]
<zakiazigazi> seven is trying to explain that you need to pass n from main to partial like `render partial: "partial", locals: { n: n }`
<zorak> i dont get what you said
optiz0r has joined #ruby
<sevenseacat> bingo
aomdoa has quit [Quit: Leaving]
<pontiki> particularly pay attention at section 3.4.4 "Passing Local Variables"
coreycondardo has joined #ruby
seamon has quit [Quit: Zzzzzzz]
<zorak> reading that, thanks
bmurt has joined #ruby
Lewix has joined #ruby
linojon has quit [Quit: linojon]
Blizzy has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
<Blizzy> hello, I have a question. Let's say I'm running a script. In the script, I have a variable named 'hello' which is equal to 0.
<Blizzy> how would I make it so 1 is added to hello every minute?
wjimenez5271 has joined #ruby
GriffinHeart has joined #ruby
bmurt has quit [Ping timeout: 240 seconds]
cirn0 has joined #ruby
io_syl has quit [Ping timeout: 240 seconds]
anildigital is now known as zz_anildigital
<centrx> Blizzy, What else does it do?
mrommelf has joined #ruby
<Blizzy> well, nothing, I'm just using that as an example.
<centrx> Blizzy, Basically, continuous loop that checks the time, last_run < Time.now - 1.minute
rezzack has quit [Quit: Leaving.]
tlarevo has joined #ruby
<centrx> Blizzy, I think 1.minute is an ActiveSupport thing though, there's a more complicated way with core Ruby
cirn0 has quit [Ping timeout: 255 seconds]
<Blizzy> centrx, thank you.
<centrx> Blizzy, but the basic idea is the same
<Blizzy> so yeah, thanks, centrx.
<centrx> You are welcome
ferr has joined #ruby
SilkFox_ has joined #ruby
InhalingPixels has joined #ruby
EasyCo has joined #ruby
linojon has joined #ruby
pu22l3r has joined #ruby
ptrrr has quit [Quit: ptrrr]
oo_ has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 264 seconds]
InhalingPixels has quit [Ping timeout: 260 seconds]
<havenwood> Blizzy: are you okay with the loop blocking, or you want it to happen in the background?
<Blizzy> havenwood, background.
<havenwood> Blizzy: do you care if the time slips? does the minute have to be precise?
<Blizzy> no, havenwood.
hamakn has joined #ruby
<Blizzy> every 1.minute do
<Blizzy> ?
postmodern has quit [Quit: Leaving]
<havenwood> Blizzy: just an example ^
<Blizzy> thank you, havenwood.
pu22l3r has quit [Ping timeout: 240 seconds]
GriffinHeart has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
mollitz has joined #ruby
<havenwood> Blizzy: might be worth looking at Atomic and Timers gems
<Blizzy> ok, another question.
<Blizzy> would every 1.minute do
<Blizzy> work?
<czaks> havenwood: wow, use of @ variables in main context
oo_ has joined #ruby
shaileshg has joined #ruby
<czaks> i'm curious why you did it this way, is it your own idiom, or something more on the topic?
radic has quit [Disconnected by services]
radic_ has joined #ruby
moritzschaefer has quit [Ping timeout: 276 seconds]
mattmcclure has quit [Quit: Connection closed for inactivity]
tlarevo has quit [Remote host closed the connection]
pu22l3r has joined #ruby
yetanotherdave has joined #ruby
tlarevo has joined #ruby
hamakn has quit [Ping timeout: 255 seconds]
bmurt has joined #ruby
sparrovv has joined #ruby
<ferr> I would like to write myself a script to check domain whois through http://who.is/whois/domainame Just dont know what should I use, any suggestions?
earthquake has joined #ruby
<pontiki> ferr: mechanize might be a good start?
natevick has joined #ruby
<pontiki> though there is the *nix whois(1) command as well
hamakn has joined #ruby
lw has joined #ruby
<ferr> I'll check it, thanks
<havenwood> czaks: i just started writing `@mutex = Mutex.new` since i'm used to initializing Mutexes in a Class, then didn't bother to switch to local
pu22l3r has quit [Ping timeout: 276 seconds]
<havenwood> czaks: not trying to make any grand statement :P
cyberarm has quit [Read error: Connection reset by peer]
Cache_Money has joined #ruby
bmurt has quit [Ping timeout: 255 seconds]
sparrovv has quit [Ping timeout: 240 seconds]
thumpba has quit [Read error: Connection reset by peer]
thumpba_ has joined #ruby
chipotle has joined #ruby
centrx has quit [Quit: Mead error: Connection reset by beer]
Scotteh_ has quit [Ping timeout: 246 seconds]
alvaro_o has quit [Quit: Ex-Chat]
braincrash has quit [Quit: bye bye]
GriffinHeart has joined #ruby
natevick has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<havenwood> ferr: might look at the whois gem for inspiration: https://github.com/weppos/whois#querying-a-whois
omosoj has quit [Quit: Leaving]
yeticry has quit [Ping timeout: 260 seconds]
<havenwood> ferr: i like the HTTP and HTTPClient gems in particular, but Mechanize is neat too
<ferr> Just great havenwood!
lysw123 has joined #ruby
yeticry has joined #ruby
<havenwood> ah, scraping, yeah mechanize is really good at that
jerius has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
<czaks> WebDriver anyone? :)
braincrash has joined #ruby
troyready has quit [Ping timeout: 246 seconds]
<zorak> are there any problem with this?
<zorak> 9 <% if @calculadora.present? do %>
<zorak> 10 <%= @calculadora.extras(n) %>
<zorak> 11 <% end %>
Bumptious has joined #ruby
<zorak> added to the code and now is tell me that an end is missing
duggiefresh has quit []
mollitz has quit [Ping timeout: 255 seconds]
diegovio1 has joined #ruby
<sevenseacat> why do you have a `do`?
<havenwood> #present? <- an invader!
<sevenseacat> you just worked that out now, after he's been asking about rendering partials all morning? :P
<havenwood> hehe
<zorak> invader?
<zorak> why
<zorak> im just noob
coreycondardo has left #ruby [#ruby]
diegoviola is now known as Guest92324
Guest92324 has quit [Ping timeout: 260 seconds]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
diegovio1 is now known as diegoviola
Sawbones has joined #ruby
<sevenseacat> you're asking rails-specific questions in a ruby channel, when there are perfectly good rails channels
lysw123 has quit [Ping timeout: 260 seconds]
<zorak> ahh
<czaks> nope
<zorak> haha
<zorak> yes
<czaks> it's not rails specific question
<havenwood> zorak: i was just teasing, no worry
<czaks> not only rails uses ERB
<havenwood> zorak: not calling you an invader, just hte method :P
<zorak> but the rails need login an have to change my nick
<sevenseacat> no-one mande a mention of erb
<zorak> and reconnect
<sevenseacat> the discussion was of #present? which is activesupport
luckyruby has quit [Remote host closed the connection]
<czaks> sure
zorak is now known as zorak8
zorak8 has quit [Quit: Saliendo]
<czaks> i actually never wrote any app in fully rails, dunno why, i always picked the elements from rails i liked the most.
zorak8 has joined #ruby
<havenwood> zorak8: you can cherry pick the method from active_support and get it in regular Ruby easy enough :) require 'active_support/core_ext/object/blank'
<czaks> integration is a mess tho
<zorak8> wat?
PanPan has joined #ruby
<zorak8> ahh
<czaks> for my recent app, i took activerecord, activesupport and sprockets from rails
avita1 has joined #ruby
<zorak8> ok get it
<czaks> getting everything else myself
<czaks> but maintaining it soon became a mess
luckyruby has joined #ruby
amystephen has quit [Quit: amystephen]
<zorak8> sevenseacat must be know me already, all the day help me here and in #RubyOnRails
<sevenseacat> i've written a few rails apps by now, i'm no expert but i'd like to think i'm pretty competent on the basics :)
sylvanica has joined #ruby
<zorak8> i want to end tthis app im been working it like more a year now
zakiazigazi has left #ruby [#ruby]
zakiazigazi has joined #ruby
RandyT has quit [Ping timeout: 245 seconds]
<sevenseacat> only a year?
<zorak8> (a year ago dont even know what a module was)
<czaks> i also took em-synchrony, sinatra and the app was to run single threaded
avita1 has quit [Client Quit]
<czaks> all the individual connections did problems to me
<zorak8> its a pretty simple app if you know how to program
earthquake has quit [Quit: earthquake]
avita1 has joined #ruby
<czaks> especially that a few em-synchrony modules were not done 100% right
Bumptiou_ has joined #ruby
<czaks> eg. throwing exceptions in mysql fibers
yetanotherdave has quit [Quit: Lost terminal]
<czaks> oh, i also integrated pry into this monstrosity
wjimenez_ has joined #ruby
Bumptious has quit [Ping timeout: 240 seconds]
sylvanica has quit [Disconnected by services]
sylvanica has joined #ruby
<havenwood> czaks: reminds me i've been meaning to try out angelo: https://github.com/kenichi/angelo#readme
mockra has joined #ruby
<zorak8> that moment when you smile because the error message is different
RandyT has joined #ruby
<czaks> havenwood: oh
meinside has joined #ruby
<czaks> seems really nice, it has taken care of eg. websockets, dunno about rails
<czaks> but Reel is immature and i have fixed some bugs there
<havenwood> nice
<czaks> but it's still having problems with https and somehow websockets
<czaks> i even started building my own toy-reactor, which mostly works, misses a few things and only supports Kernel.select
shredding has joined #ruby
malcolmva has quit [Ping timeout: 245 seconds]
lemur has quit [Read error: Connection reset by peer]
lemur has joined #ruby
hiyosi has quit [Ping timeout: 268 seconds]
shredding has quit [Client Quit]
shredding has joined #ruby
fold has joined #ruby
lw has quit [Quit: s]
pranny has joined #ruby
shredding has quit [Client Quit]
mary5030 has quit [Remote host closed the connection]
sylvanica has quit [Ping timeout: 264 seconds]
GinoMan has joined #ruby
Lewix has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
SilkFox_ has joined #ruby
InhalingPixels has joined #ruby
JayLeon has joined #ruby
skolman has joined #ruby
axsuul_ has joined #ruby
pu22l3r has joined #ruby
axsuul has quit [Ping timeout: 272 seconds]
St_Marx has joined #ruby
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
arup_r has joined #ruby
SilkFox_ has quit [Ping timeout: 255 seconds]
InhalingPixels has quit [Ping timeout: 272 seconds]
renier_ has joined #ruby
malcolmva has joined #ruby
avita1 has quit [Quit: Leaving.]
sonOfRa has quit [Ping timeout: 256 seconds]
JohnFord has joined #ruby
renier has quit [Ping timeout: 260 seconds]
tlarevo has quit [Ping timeout: 276 seconds]
pu22l3r has quit [Ping timeout: 260 seconds]
sonOfRa has joined #ruby
yukihr has joined #ruby
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
JayLeon has quit [Quit: Linkinus - http://linkinus.com]
rezzack has joined #ruby
rockdon_ has joined #ruby
patrick99e99 has quit [Ping timeout: 260 seconds]
ferr has quit [Ping timeout: 240 seconds]
sylvanica has joined #ruby
orolo has quit [Quit: This computer has gone to sleep]
saarinen has joined #ruby
IceDragon has quit [Quit: Space~~~]
sidewinder27 has joined #ruby
arup_r has quit [Ping timeout: 245 seconds]
maletor has joined #ruby
sidewinder27 has quit [Quit: Leaving]
axsuul has joined #ruby
saarinen has quit [Read error: Connection reset by peer]
b00stfr3ak has joined #ruby
icebourg has joined #ruby
saarinen has joined #ruby
Blizzy has quit [Ping timeout: 264 seconds]
axsuul_ has quit [Ping timeout: 240 seconds]
hiyosi has joined #ruby
lxsameer has joined #ruby
drizz has quit [Quit: Reconnecting]
drizz has joined #ruby
sprihodko has joined #ruby
fabrice31 has joined #ruby
sylvanica has quit [Ping timeout: 260 seconds]
AlexBlom has quit [Quit: This computer has gone to sleep]
skolman has quit [Remote host closed the connection]
duncannz has joined #ruby
skolman_ has joined #ruby
hiyosi has quit [Ping timeout: 276 seconds]
Sawbones has quit [Remote host closed the connection]
JohnFord has quit [Ping timeout: 240 seconds]
yukihr has quit [Ping timeout: 255 seconds]
fabrice31 has quit [Ping timeout: 260 seconds]
avita1 has joined #ruby
wallerdev has joined #ruby
luckyruby has quit [Quit: Leaving...]
Sawbones has joined #ruby
drizz has quit [Remote host closed the connection]
AlexBlom has joined #ruby
Kerber0s has joined #ruby
avita1 has quit [Quit: Leaving.]
avita1 has joined #ruby
drizz has joined #ruby
ghostmoth has joined #ruby
jmbrown412 has joined #ruby
timonv_ has joined #ruby
Cache_Money has joined #ruby
sylvanica has joined #ruby
nanoyak has joined #ruby
jmbrown412 has quit [Ping timeout: 240 seconds]
timonv_ has quit [Ping timeout: 240 seconds]
avita1 has quit [Quit: Leaving.]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wjimenez5271 has quit [Remote host closed the connection]
cirn0 has joined #ruby
gnash has quit [Quit: gnash]
Sawbones has quit [Remote host closed the connection]
lw has joined #ruby
chrishough has joined #ruby
chrishough has quit [Client Quit]
chrishough has joined #ruby
mallu has joined #ruby
sylvanica has quit [Quit: Quitte]
sylvanica has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
oo_ has quit [Remote host closed the connection]
mferrier has quit [Remote host closed the connection]
mferrier has joined #ruby
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cirn00 has joined #ruby
<mallu> can someone please tell me what I am doing wrong? This is not updating the file http://pastie.org/9523132
avita1 has joined #ruby
pranny has quit [Quit: Leaving.]
aganov has joined #ruby
avita1 has quit [Client Quit]
Kerber0s has quit [Read error: Connection reset by peer]
<mallu> anyone?
cirn0 has quit [Ping timeout: 246 seconds]
mferrier has quit [Ping timeout: 264 seconds]
j_mcnally has quit [Quit: さよなら]
cirn00 is now known as cirn0
cirn0_ has joined #ruby
Kerber0s has joined #ruby
wookiehangover has quit [Quit: i'm out]
tlarevo has joined #ruby
tlarevo has quit [Remote host closed the connection]
tlarevo has joined #ruby
anshin has joined #ruby
cirn0_ has quit [Ping timeout: 272 seconds]
SilkFox_ has joined #ruby
bluOxigen has joined #ruby
InhalingPixels has joined #ruby
necro has quit [Ping timeout: 246 seconds]
pu22l3r has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
InhalingPixels has quit [Ping timeout: 264 seconds]
pu22l3r has quit [Ping timeout: 264 seconds]
jcxau has joined #ruby
sylvanica has quit [Ping timeout: 268 seconds]
saarinen has quit [Quit: saarinen]
dopie has quit [Remote host closed the connection]
rockdon_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jusmyth has joined #ruby
hakermania has joined #ruby
hakermania has left #ruby ["Leaving"]
CaptainJet has quit []
Channel6 has quit [Quit: Leaving]
spicerack has joined #ruby
tlarevo has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
mercwithamouth has joined #ruby
coderhs has joined #ruby
wookiehangover has joined #ruby
Jarboe has quit [Ping timeout: 245 seconds]
coderhs has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
_Kerber0s_ has joined #ruby
shaileshg has quit [Quit: Connection closed for inactivity]
Kerber0s has quit [Read error: Connection reset by peer]
tlarevo has joined #ruby
rockdon_ has joined #ruby
Lewix has quit [Remote host closed the connection]
rockdon_ is now known as rockdon|away
jusmyth has left #ruby [#ruby]
icebourg has quit []
robbyoconnor has joined #ruby
hiyosi has joined #ruby
_Kerber0s_ has quit [Client Quit]
banjara has quit [Quit: Leaving.]
bearish has joined #ruby
terlar has quit [Ping timeout: 260 seconds]
hiyosi has quit [Ping timeout: 272 seconds]
Lewix has joined #ruby
toastynerd has joined #ruby
choke has quit [Read error: Connection reset by peer]
Spami has quit [Quit: This computer has gone to sleep]
mr-foobar has quit [Quit: Leaving...]
benzrf is now known as benzrf|offline
choke has joined #ruby
Morkel has joined #ruby
tobago has joined #ruby
jcxau has quit [Quit: Lingo - http://www.lingoirc.com]
avita1 has joined #ruby
wjimenez_ has quit [Remote host closed the connection]
j_mcnally has joined #ruby
avita1 has quit [Client Quit]
sayem has joined #ruby
toastynerd has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
tlarevo has quit [Read error: Connection reset by peer]
DrCode has quit [Ping timeout: 264 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
terlar has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
tlarevo has joined #ruby
kenneth has joined #ruby
<mallu> what is the best way to append a file?
spicerack has quit [Quit: Textual IRC Client: www.textualapp.com]
pranny has joined #ruby
pranny has quit [Client Quit]
<mallu> if I do f = File.open(file, "w"); f.puts "something" it will overwrite the file
rockdon|away is now known as rockdon_
<sevenseacat> have you checked the docs on the File class?
thams has joined #ruby
pranny has joined #ruby
absolutezeroff has quit [Ping timeout: 240 seconds]
<mallu> thats where I got the above statements
<mozzarella> use 'a' or 'a+' I guess
<mallu> oh ..... let ,e try that
<sevenseacat> now read the rest of them
pranny has quit [Client Quit]
<havenwood> mallu: Use the block format, so `File.open() do |f|` instead of `f = File.open()`.
<mallu> ok
hamakn has quit [Remote host closed the connection]
<havenwood> mallu: one advantage it that way the file is self-closing, when the block closes it closes
<mallu> ok
<havenwood> mallu: then you can drop the `ensure; f.close; end`s
<mallu> got it
tkuchiki_ has joined #ruby
p0sixpscl has joined #ruby
p0sixpscl has quit [Max SendQ exceeded]
DrCode has joined #ruby
rockdon_ has quit [Ping timeout: 276 seconds]
mferrier has joined #ruby
shredding has joined #ruby
tkuchiki has quit [Ping timeout: 252 seconds]
sinkensabe has joined #ruby
shredding has quit [Client Quit]
ht__th has joined #ruby
thams_ has joined #ruby
mferrier has quit [Ping timeout: 260 seconds]
yacks has quit [Quit: Leaving]
hamakn has joined #ruby
apxm has joined #ruby
thams has quit [Ping timeout: 246 seconds]
thams_ is now known as thams
wallerdev has quit [Quit: wallerdev]
avita1 has joined #ruby
choke has quit [Ping timeout: 245 seconds]
vinleod has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv_ has joined #ruby
linojon has quit [Quit: linojon]
bearish has quit [Remote host closed the connection]
bearish has joined #ruby
rockdon_ has joined #ruby
mallu has quit [Ping timeout: 246 seconds]
SilkFox_ has joined #ruby
pu22l3r has joined #ruby
InhalingPixels has joined #ruby
Kerber0s has joined #ruby
bearish has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Cache_Money]
chipotle has quit [Quit: cya]
kyb3r_ has joined #ruby
Cache_Money has joined #ruby
tlarevo has quit [Ping timeout: 255 seconds]
Kislik has joined #ruby
echevemaster has quit [Quit: Leaving]
Macaveli has joined #ruby
rockdon_ has quit [Client Quit]
SilkFox_ has quit [Ping timeout: 246 seconds]
txdv has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
pu22l3r has quit [Ping timeout: 255 seconds]
InhalingPixels has quit [Ping timeout: 264 seconds]
tagrudev has joined #ruby
txdv has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
mockra has quit [Remote host closed the connection]
tlarevo has joined #ruby
mockra has joined #ruby
bal has joined #ruby
Cache_Money has quit [Ping timeout: 245 seconds]
zettam_ has quit [Read error: Connection reset by peer]
kenneth has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
havenwood has quit [Remote host closed the connection]
Soliah has quit [Ping timeout: 272 seconds]
fabrice31 has joined #ruby
dawkirst has joined #ruby
havenwood has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
tkuchiki has joined #ruby
mdw has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1_ has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 264 seconds]
fabrice31 has quit [Ping timeout: 268 seconds]
maletor has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Scotteh_ has joined #ruby
thams has quit [Ping timeout: 260 seconds]
Gforce has joined #ruby
GeekOnCoffee has quit [Ping timeout: 264 seconds]
grenierm has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
Scotteh_ has quit [Ping timeout: 245 seconds]
<Gforce> Hey guys.I'm looking for a lannguage for my scripts.I know python but I kinda don't like the python oop.does any one have the experience with both python and ruby?which one do you prefer?why?
gaussblurinc1 has joined #ruby
hiyosi has joined #ruby
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
<sevenseacat> what dont you like about it?
<Gforce> the oop syntax.
<mozzarella> I prefer ruby
linoespinoza has joined #ruby
<Gforce> you know I like the c++ one more.;)
chipotle has joined #ruby
lw has quit [Quit: s]
_tpavel has joined #ruby
mr-foobar has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
GeekOnCoffee has joined #ruby
tlarevo has quit [Read error: Connection reset by peer]
<Gforce> any idea?
<sevenseacat> the syntax is fairly similar.
tlarevo has joined #ruby
riotjones has joined #ruby
robh71 has joined #ruby
lemur has quit [Ping timeout: 246 seconds]
GinoMan has quit [Ping timeout: 272 seconds]
<Gforce> oh no!
<Gforce> thanks.
thams has joined #ruby
timonv_ has quit [Remote host closed the connection]
shredding has joined #ruby
sigurding has joined #ruby
Gforce has left #ruby [#ruby]
sinkensabe has joined #ruby
shredding has quit [Client Quit]
sparrovv has joined #ruby
Kislik has quit [Quit: Computer has gone to sleep.]
zarul has quit [Ping timeout: 260 seconds]
Kislik has joined #ruby
cirn0 has quit [Quit: Leaving]
gurix has joined #ruby
sinkensabe has quit [Remote host closed the connection]
cirn0 has joined #ruby
sinkensabe has joined #ruby
yacks has joined #ruby
apxm has quit [Ping timeout: 245 seconds]
Kislik has quit [Read error: Connection reset by peer]
pranny has joined #ruby
* sevenseacat hasn't used python in nearly 10 years
lw has joined #ruby
thams_ has joined #ruby
qualiabyte has quit [Quit: Leaving]
thams has quit [Ping timeout: 272 seconds]
thams_ is now known as thams
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
toastynerd has joined #ruby
sayem has quit [Remote host closed the connection]
zarul has joined #ruby
Logomachist has joined #ruby
w09x has joined #ruby
codecop has joined #ruby
mferrier has joined #ruby
toastynerd has quit [Ping timeout: 255 seconds]
Logomachist has quit [Client Quit]
Logomachist has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
havenwood has joined #ruby
mferrier has quit [Ping timeout: 276 seconds]
diegovio1a has joined #ruby
lemur has joined #ruby
mengu has joined #ruby
LekeFly has joined #ruby
<mozzarella> why can we access class methods with both . and ::, but only :: for class constants?
AlSquirrel has quit [Ping timeout: 240 seconds]
<Mon_Ouie> We can access all methods with . and ::, that's just how the syntax works
<Mon_Ouie> >> "foo"::to_sym
<eval-in____> Mon_Ouie => :foo (https://eval.in/187546)
<mozzarella> weird, I didn't know
mijicd has joined #ruby
bearish has joined #ruby
cirn0_ has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
olivier_bK has joined #ruby
mijicd has quit [Client Quit]
<Hanmac> look at the difference between Array and Array() too
pu22l3r has joined #ruby
lkba has joined #ruby
relix has joined #ruby
SilkFox_ has joined #ruby
<gaussblurinc1> hi!
InhalingPixels has joined #ruby
<gaussblurinc1> Hanmac: about `()` at the end of class name - how to implement this feature?
cirn0_ has quit [Ping timeout: 255 seconds]
<Mon_Ouie> It's just a funny method name, you don't need anything special
<Mon_Ouie> >> def Foo; puts "hello world"; end; Foo()
<eval-in____> Mon_Ouie => hello world ... (https://eval.in/187555)
<gaussblurinc1> Mon_Ouie: oh, not smart :(
sparrovv has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 264 seconds]
mockra has quit [Remote host closed the connection]
mockra has joined #ruby
Takle has joined #ruby
SilkFox_ has quit [Ping timeout: 268 seconds]
InhalingPixels has quit [Ping timeout: 272 seconds]
starkhalo has quit [Ping timeout: 252 seconds]
jimmykarily has joined #ruby
ptrrr has joined #ruby
yfeldblu_ has joined #ruby
Photism has quit [Quit: Leaving]
krisquigley has joined #ruby
jeroenvisser101 has joined #ruby
mockra has quit [Ping timeout: 246 seconds]
andrewlio has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
grenierm has quit [Quit: grenierm]
yfeldblu_ has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
Lewix has quit [Remote host closed the connection]
GGMethos has quit [Quit: WeeChat 1.1-dev]
rjhunter has joined #ruby
cirn00 has joined #ruby
avita1 has quit [Quit: Leaving.]
GGMethos has joined #ruby
cirn0 has quit [Ping timeout: 245 seconds]
cirn00 has quit [Client Quit]
cirn0 has joined #ruby
hiyosi has joined #ruby
dumdedum has joined #ruby
cina has joined #ruby
eivindml has joined #ruby
Xeago has joined #ruby
hiyosi has quit [Ping timeout: 260 seconds]
ghr has joined #ruby
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sectionme has joined #ruby
lsmola has quit [Ping timeout: 245 seconds]
anarang has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
qba73 has joined #ruby
oo_ has quit [Remote host closed the connection]
nfk has joined #ruby
dumdedum has quit [Ping timeout: 272 seconds]
mockra has joined #ruby
Jackneill has joined #ruby
Bumptious has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
bluOxigen has joined #ruby
Xeago has quit [Remote host closed the connection]
Bumptiou_ has quit [Ping timeout: 240 seconds]
mockra has quit [Ping timeout: 245 seconds]
linoespinoza has quit [Quit: Textual IRC Client: www.textualapp.com]
olivier_bK has quit [Ping timeout: 260 seconds]
philevans_ has quit [Remote host closed the connection]
oo_ has joined #ruby
krisquigley has quit [Remote host closed the connection]
felixjet_ has joined #ruby
b1nd__ has quit [Ping timeout: 240 seconds]
intnsity has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cya]
rjhunter has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 260 seconds]
felixjet has quit [Ping timeout: 260 seconds]
skolman_ has quit [Remote host closed the connection]
intnsity has joined #ruby
b1nd__ has joined #ruby
Takle has quit [Remote host closed the connection]
blackmesa has joined #ruby
mferrier has joined #ruby
charliesome has quit [Quit: zzz]
andikr has joined #ruby
arup_r has quit [Remote host closed the connection]
dumdedum has joined #ruby
mferrier has quit [Ping timeout: 252 seconds]
SouL has quit [Ping timeout: 276 seconds]
jack_rabbit has quit [Ping timeout: 240 seconds]
Scotteh_ has joined #ruby
mobiGeek7 has joined #ruby
fabrice31 has joined #ruby
threesixes has quit [Remote host closed the connection]
mobiGeek6 has quit [Ping timeout: 260 seconds]
pu22l3r has joined #ruby
mengu has quit [Remote host closed the connection]
dANOKELOFF has joined #ruby
InhalingPixels has joined #ruby
SilkFox_ has joined #ruby
fabrice31 has quit [Ping timeout: 268 seconds]
jpierre03 has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
MasterPiece has joined #ruby
pu22l3r has quit [Ping timeout: 245 seconds]
amclain has quit [Quit: Leaving]
oo_ has quit [Remote host closed the connection]
jpierre03 has joined #ruby
InhalingPixels has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
SilkFox_ has quit [Ping timeout: 272 seconds]
poulet_a has joined #ruby
Photism has joined #ruby
sk87 has joined #ruby
mikecmpbll has joined #ruby
timonv_ has joined #ruby
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv^ has joined #ruby
LiohAu has joined #ruby
vvfgkg has joined #ruby
tlarevo has quit [Ping timeout: 245 seconds]
SouL has joined #ruby
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
mferrier has joined #ruby
pwestlund has joined #ruby
shredding has joined #ruby
CpuID has quit [Ping timeout: 255 seconds]
tlarevo has joined #ruby
timonv_ has quit [Ping timeout: 264 seconds]
arup_r has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
pwestlun1 has quit [Ping timeout: 276 seconds]
lsmola has joined #ruby
mferrier has quit [Ping timeout: 246 seconds]
hiyosi has joined #ruby
Seich_ has quit [Ping timeout: 240 seconds]
hfp has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
CpuID has joined #ruby
hellangel7 has joined #ruby
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
hiyosi has quit [Ping timeout: 267 seconds]
jle` has quit [Ping timeout: 240 seconds]
gkra has quit [Ping timeout: 245 seconds]
gkra has joined #ruby
sigurding has quit [Quit: sigurding]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
Seich has joined #ruby
jle` has joined #ruby
jhass|off is now known as jhass
elaptics`away is now known as elaptics
lemur has joined #ruby
hfp has joined #ruby
diegovio1a has quit [Remote host closed the connection]
olivier_bK has joined #ruby
jpierre03 has quit [Ping timeout: 272 seconds]
AlexBlom has quit [Quit: This computer has gone to sleep]
pandaant has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
anaeem1_ has joined #ruby
SouL has quit [Ping timeout: 268 seconds]
eivindml has joined #ruby
oo__ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
yacks has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
chth0n has joined #ruby
yfeldblum has quit [Remote host closed the connection]
darkness has joined #ruby
odlox has joined #ruby
yfeldblum has joined #ruby
darkness is now known as Guest8986
cina has quit [Read error: No route to host]
bal has quit [Quit: bal]
odlox_ has joined #ruby
diegovio1 has joined #ruby
bal has joined #ruby
Guest8986 has quit [Max SendQ exceeded]
diegovio1 is now known as diegovio1a
timonv^ has quit [Remote host closed the connection]
Guest8986 has joined #ruby
hellangel7 has quit [Ping timeout: 272 seconds]
bricker has quit [Ping timeout: 255 seconds]
W0rmDr1nk has joined #ruby
krisquigley has joined #ruby
mdw has joined #ruby
odlox has quit [Ping timeout: 240 seconds]
diegovio1a has quit [Client Quit]
tlarevo_ has joined #ruby
shredding has quit [Quit: shredding]
rageberry has joined #ruby
tlarevo has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby
Xeago has joined #ruby
elstif has joined #ruby
cirn0_ has joined #ruby
pu22l3r has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
anaeem1_ has joined #ruby
jeroenvisser101 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Photism_ has joined #ruby
hamakn has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
InhalingPixels has joined #ruby
Morkel has quit [Quit: Morkel]
havenwood has quit [Remote host closed the connection]
marr has joined #ruby
cirn0_ has quit [Ping timeout: 255 seconds]
ereslibre_laptop has quit [Quit: No Ping reply in 180 seconds.]
pu22l3r has quit [Ping timeout: 245 seconds]
Photism has quit [Ping timeout: 246 seconds]
dblessing has joined #ruby
einarj has joined #ruby
ereslibre has joined #ruby
ereslibre has joined #ruby
yacks has joined #ruby
InhalingPixels has quit [Ping timeout: 240 seconds]
SilkFox_ has quit [Ping timeout: 272 seconds]
absolutezeroff has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
axsuul has joined #ruby
mr-foobar has quit [Quit: Leaving...]
dumdedum has quit [Ping timeout: 276 seconds]
Atrumx has joined #ruby
Takle has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
hamakn has joined #ruby
diegoviola has quit [Remote host closed the connection]
rdark has joined #ruby
axsuul has quit [Ping timeout: 268 seconds]
mferrier has joined #ruby
JazzOderNie has joined #ruby
diegoviola has joined #ruby
<JazzOderNie> Hi, i'm getting a weird error when doing 'gem install -v 2.3.0 redcarpet' - http://paste2.org/G1L7JxB3
mferrier has quit [Read error: Connection reset by peer]
jpierre03 has joined #ruby
mferrier has joined #ruby
<JazzOderNie> unrecognized command line optin -fstack-protector-strong, what does that mean and how can i fix it?
alex88 has joined #ruby
txdv has quit [Read error: Connection reset by peer]
diegoviola has quit [Client Quit]
txdv has joined #ruby
Takle has joined #ruby
timonv_ has joined #ruby
sevenseacat has quit [Quit: Leaving.]
blackmesa has quit [Quit: WeeChat 1.0]
hiyosi has joined #ruby
<sonOfRa> something's trying to compile native code with -fstack-protector-strong
CpuID has quit [Read error: Connection reset by peer]
<sonOfRa> Do you know which compiler it's using? (gcc, clang/llvm)?
<JazzOderNie> sonOfRa: should be gcc
<toretore> so you might have an older version
dumdedum has joined #ruby
<JazzOderNie> toretore: ok that explains it, i have 4.8
mferrier has quit [Ping timeout: 272 seconds]
Guest8986 has quit [Max SendQ exceeded]
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
<Hanmac> hmm but imo the gem should be intelligent enough to check if the option is suppported or not if it does use it like that
tlarevo has joined #ruby
<JazzOderNie> ok so i installed gcc-4.9, did 'export CC=gcc-4.9' and tried installing, still the same error
<JazzOderNie> how can i check if it is really using 4.9?
jeroenvisser101 has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
mengu has quit [Remote host closed the connection]
<sonOfRa> if it doesn't check gcc version, it probably doesn't use CC either, but instead just invokes gcc
<Hanmac> JazzOderNie: while gem install it does ignore the CC setting, because it does only use the same compiler which it did use while compiling ruby ....
tlarevo_ has quit [Ping timeout: 240 seconds]
<JazzOderNie> Hanmac: oh boy, so i have to compile ruby? because i simply installed the ruby debian package
<Hanmac> hm i dont know ... imo the redcarpet gem should not make such a shit ... hm i will look at the code
<JazzOderNie> also, version 2.3.0 is not the current version, so it's surprising it requires the newest gcc version
<Hanmac> JazzOderNie: does the newest version of redcarpet works with install?
<JazzOderNie> Hanmac: no, same error
mityaz_ has joined #ruby
havenwood has joined #ruby
zorak8 has quit [Ping timeout: 245 seconds]
mityaz has quit [Ping timeout: 260 seconds]
<Hanmac> hm then currently i dont know ... but it does look that this fstack-protector-strong does not come from the gem but from ruby or something ...
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has quit [Remote host closed the connection]
w09x has quit [Remote host closed the connection]
<Hanmac> JazzOderNie: hm if you do: RbConfig::CONFIG.select {|_,v| v["-fstack-protector-strong"] } in your ruby, does it return something?
lemur has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
rageberry has quit [Quit: WeeChat 0.3.8]
u6aBeWPy has quit [Ping timeout: 276 seconds]
mdw has quit [Quit: Textual IRC Client: www.textualapp.com]
workmad3 has joined #ruby
shredding has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
mockra has joined #ruby
agjacome has joined #ruby
AxonetBE has joined #ruby
mr-foobar has joined #ruby
tlarevo_ has joined #ruby
krisquigley has quit [Remote host closed the connection]
<JazzOderNie> Hanmac: yes, this is the output: http://paste2.org/t1MhWGtV
CpuID has joined #ruby
tlarevo has quit [Ping timeout: 240 seconds]
CpuID has quit [Remote host closed the connection]
<Hanmac> :/ ah i knew it ... means that somehow your ruby package is build against the newer compiler but maybe you did not install the newer compiler itself ... :/ or something like that ... curios
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<JazzOderNie> oh wow.. i'll try removing the debian ruby package and reinstalling it
persand has joined #ruby
mockra has quit [Ping timeout: 246 seconds]
fabrice31 has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<Hanmac> hm yeah that seems to be, hm do reinstall the gcc version too ... hm check if "sudo update-alternatives --list cc" only shows one or something
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
tobago has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 245 seconds]
persand has quit [Quit: persand]
persand has joined #ruby
riotjones has quit [Read error: No route to host]
ptrrr has quit [Ping timeout: 240 seconds]
jeroenvisser101 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has joined #ruby
Andriamanitra has quit [Ping timeout: 272 seconds]
Takle has joined #ruby
karupa is now known as zz_karupa
persand has quit [Client Quit]
<JazzOderNie> Hanmac: ok, so i removed the ruby package but ruby2.1 remains installed... so probably this was installed from source (even though i don't remember doing that)
tylerkern has quit [Quit: Connection closed for inactivity]
tvw has joined #ruby
Andriamanitra has joined #ruby
paul424 has joined #ruby
<paul424> Is there channel confined to OOP ?
arup_r has quit [Remote host closed the connection]
jeroenvisser101 has joined #ruby
pu22l3r has joined #ruby
CpuID has joined #ruby
CpuID has joined #ruby
CpuID has quit [Changing host]
arup_r has joined #ruby
Macaveli has quit [Ping timeout: 240 seconds]
jheg has joined #ruby
voodoofish1 has joined #ruby
InhalingPixels has joined #ruby
SilkFox_ has joined #ruby
riotjones has quit [Ping timeout: 252 seconds]
fella5s has joined #ruby
Xeago has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 240 seconds]
voodoofish has quit [Ping timeout: 260 seconds]
u6aBeWPy has joined #ruby
tobago has joined #ruby
riotjones has joined #ruby
Macaveli has joined #ruby
fella6s has quit [Ping timeout: 240 seconds]
InhalingPixels has quit [Ping timeout: 240 seconds]
SilkFox_ has quit [Ping timeout: 260 seconds]
sk87 has joined #ruby
patrick99e99 has joined #ruby
CpuID has quit [Quit: This computer has gone to sleep]
mrmodulo has joined #ruby
havenwood has joined #ruby
sigurding has joined #ruby
patrick99e99 has quit [Ping timeout: 240 seconds]
mrmodulo has quit [Remote host closed the connection]
mayank has joined #ruby
Kislik has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
<mayank> Hey guys .. can any one help in knowing how can i parse a jsonp in ruby like >>>http://a0.awsstatic.com/pricing/1/ec2/rhel-od.min.js?callback=callback&_=1409731896563
radosch has joined #ruby
jeroenvisser101 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jeroenvisser101 has joined #ruby
jeroenvisser101 has quit [Client Quit]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
mferrier has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
mayank has quit [Quit: Page closed]
robbyoconnor has quit [Ping timeout: 252 seconds]
robbyoconnor has joined #ruby
hiyosi has joined #ruby
fsapo has joined #ruby
jeroenvisser101 has joined #ruby
mferrier has quit [Ping timeout: 240 seconds]
iteratorP has quit [Remote host closed the connection]
echooo has quit [Ping timeout: 245 seconds]
sinkensabe has joined #ruby
jottr has joined #ruby
hiyosi has quit [Ping timeout: 245 seconds]
chipotle has joined #ruby
chipotle has quit [Client Quit]
Photism_ has quit [Quit: Leaving]
ptrrr has joined #ruby
bricker has joined #ruby
krisquigley has joined #ruby
decoponio has joined #ruby
tfitts has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
w09x has joined #ruby
duncannz has quit [Ping timeout: 245 seconds]
oo__ has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 245 seconds]
lemur has joined #ruby
ohvlad has joined #ruby
xcv has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
oo_ has joined #ruby
EasyCo has quit [Quit: Connection closed for inactivity]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
mupkoo has joined #ruby
sigurding has quit [Quit: sigurding]
JonnieCache has joined #ruby
zakiazigazi has quit []
sevenseacat has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
lolmaus has quit [Ping timeout: 272 seconds]
bjz has joined #ruby
sigurding has joined #ruby
GriffinHeart has joined #ruby
b00stfr3ak has quit [Ping timeout: 260 seconds]
b00stfr3ak has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
tkuchiki_ has joined #ruby
Xeago has joined #ruby
mollitz has joined #ruby
julian37 has joined #ruby
<shevy> is there a way to grab all entries of a case/when menu programmatically?
tfitts has joined #ruby
<julian37> hi, how can I set an IO pipe's encoding? https://gist.github.com/jscheid/62634d4cff130ce85c7f doesn't seem to work
sigurding has quit [Ping timeout: 245 seconds]
tkuchiki_ has quit [Ping timeout: 240 seconds]
pu22l3r has joined #ruby
w09x has quit [Ping timeout: 276 seconds]
Takle has quit [Remote host closed the connection]
blueOxigen has joined #ruby
tkuchiki has quit [Ping timeout: 268 seconds]
MCDev has quit [Ping timeout: 250 seconds]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
sigurding has joined #ruby
InhalingPixels has joined #ruby
SilkFox_ has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
pu22l3r has quit [Ping timeout: 264 seconds]
Hobogrammer has quit [Ping timeout: 268 seconds]
<toretore> julian37: the encoding is only set for the read end
<toretore> it doesn't make sense to set it for w
ZAJDAN has joined #ruby
Takle has joined #ruby
SilkFox_ has quit [Ping timeout: 260 seconds]
InhalingPixels has quit [Ping timeout: 272 seconds]
OffTheRails has joined #ruby
Takle has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
Neomex has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
nonks has joined #ruby
narcan has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
frankS2 has quit [Ping timeout: 272 seconds]
andrewcarter has quit [Ping timeout: 272 seconds]
MCDev has joined #ruby
bluOxigen has joined #ruby
l3kn- has quit [Ping timeout: 272 seconds]
dmoe______ has quit [Ping timeout: 272 seconds]
ballPointPenguin has quit [Ping timeout: 272 seconds]
LangeOortjes has joined #ruby
Su7 has joined #ruby
jpic has quit [Ping timeout: 252 seconds]
booboojeebies has quit [Ping timeout: 272 seconds]
Norrin has quit [Ping timeout: 272 seconds]
rotor has quit [Ping timeout: 272 seconds]
GriffinHeart has quit [Remote host closed the connection]
ZAJDAN has left #ruby [#ruby]
callenb_ has quit [Ping timeout: 272 seconds]
RoryHughes_ has quit [Ping timeout: 272 seconds]
glowcoil has quit [Ping timeout: 272 seconds]
cryptoca has quit [Ping timeout: 272 seconds]
tris has quit [Ping timeout: 272 seconds]
zly has quit [Ping timeout: 272 seconds]
jottr has quit [Read error: Connection reset by peer]
frankS2 has joined #ruby
andrewcarter has joined #ruby
Su7_ has quit [Ping timeout: 272 seconds]
comma8 has quit [Ping timeout: 272 seconds]
shredding has quit [Quit: shredding]
ballPointPenguin has joined #ruby
dmoe_______ has joined #ruby
lolmaus has joined #ruby
zly has joined #ruby
jottr has joined #ruby
blueOxigen has quit [Ping timeout: 260 seconds]
glowcoil_ has joined #ruby
blueOxigen has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
booboojeebies has joined #ruby
GriffinHeart has joined #ruby
lolmaus has quit [Client Quit]
callenb_ has joined #ruby
diegoviola has joined #ruby
lolmaus has joined #ruby
Kerber0s has quit [Remote host closed the connection]
mferrier has joined #ruby
lolmaus has quit [Client Quit]
Kerber0s has joined #ruby
lolmaus has joined #ruby
roryhughes has joined #ruby
cryptoca has joined #ruby
hiyosi has joined #ruby
mferrier has quit [Ping timeout: 240 seconds]
w09x has joined #ruby
Davedo has quit [Ping timeout: 245 seconds]
julian37 has quit [Ping timeout: 264 seconds]
oxbrna has joined #ruby
rotor has joined #ruby
vvfgkg has quit [Ping timeout: 245 seconds]
hiyosi has quit [Ping timeout: 272 seconds]
w09x has quit [Ping timeout: 245 seconds]
tokik has quit [Ping timeout: 246 seconds]
Norrin has joined #ruby
zettam has joined #ruby
hamakn has quit [Remote host closed the connection]
l3kn has joined #ruby
fabrice31 has joined #ruby
tris has joined #ruby
comma8 has joined #ruby
lkba has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
Davedo has joined #ruby
odlox_ has quit [Ping timeout: 260 seconds]
nonks has quit [Ping timeout: 252 seconds]
Scotteh_ has quit [Ping timeout: 252 seconds]
krisquigley has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 245 seconds]
MissionCritical has quit [Ping timeout: 240 seconds]
krisquigley has joined #ruby
larissa has joined #ruby
Takle has joined #ruby
krisquigley has quit [Ping timeout: 240 seconds]
<shevy> we need to think big
* workmad3 thinks about blue whales
GriffinHeart has quit [Remote host closed the connection]
phoo1234567 has joined #ruby
<shevy> lol
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
bogeyd6 has quit [Quit: Leaving]
<shevy> you and your love affair for extinct species
phoo1234567 has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
<sonOfRa> when did blue whales go extinct? :(
<workmad3> sonOfRa: probably in about 100 years? :)
ldnunes has joined #ruby
hamakn has joined #ruby
<workmad3> sonOfRa: shevy is from the future... hadn't you realised?
<sonOfRa> oh
MissionCritical has joined #ruby
<sonOfRa> that's neat. Is COBOL dead yet?
<workmad3> cobol is going to outlive us all :(
Lewix has joined #ruby
<sonOfRa> it's what aliens will find if they find the remains of this planet in a million years
Lewix has quit [Changing host]
Lewix has joined #ruby
<workmad3> sonOfRa: yeah... and it'll still be churning away calculating someone's payroll ;)
<jheg> hi all
paul424 has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/2014072000]]
Jackneill has quit [Read error: Connection reset by peer]
<jheg> With constants I see I can reassign them if I choose and I get a warning message - I know constants should be written all in uppercase but is that the only actual difference to a normal variable?
<jheg> I mean I know when I should use a constant
<jheg> but just wanted to check that if I should be wary of accidentally reassigning a constant or if it is just not possible
<jheg> In irb I seem to be able to reassign
<jhass> jheg: their scope is also different and similar to method lookup instead of variable lookup
<jheg> Ah OK thanks jhass
<workmad3> jheg: constants start with a capital letter
sk87 has joined #ruby
<workmad3> jheg: that's how the interpreter identifies them as a constant
Scotteh_ has joined #ruby
<workmad3> jheg: but yes, they can be reassigned... also, if you do something like 'SomeConstant = []' then you can use mutating methods on the array... the warning only appears if you reassign the constant, not if you modify the contents (if you want to protect the contents as well, you should probably call .freeze on it)
Kerber0s has quit [Remote host closed the connection]
bearish has quit []
<jheg> so all in uppercase is not necessary?
<workmad3> jheg: it's not necessary, but it is conventional
<jheg> ok great ta
<workmad3> jheg: CamelCase constants tend to be for classes and modules ;)
pu22l3r has joined #ruby
bearish has joined #ruby
codecop has quit [Read error: No route to host]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
codecop has joined #ruby
<shevy> sonOfRa the japanese are working on the whales problem
julian37 has joined #ruby
<shevy> jheg you can also use Object.const_set() - then you should not get a warning
axilla has joined #ruby
fold has quit [Ping timeout: 264 seconds]
<shevy> jheg the ruby parser looks only for the first character. notice that all classes are constants too. you could call them: class Cat or class CAT
<shevy> :)
MCDev has quit [Ping timeout: 250 seconds]
<shevy> class CAT < ANIMAL
<shevy> haha
<shevy> cobol in ruby
<workmad3> shevy: for when you want your class names to really SHOUT
reynscem has joined #ruby
<shevy> I think the sierra scripting language hat those upcased thingies
<shevy> in zac mc kraken as well hmm
<jheg> Thanks shevy not reached classes in the course yet but I'll try to remember this
krisquigley has joined #ruby
JohnBat26 has joined #ruby
Jackneill has joined #ruby
tlarevo_ has quit [Read error: Connection reset by peer]
pu22l3r has quit [Ping timeout: 246 seconds]
<shevy> classes are very useful
<shevy> when you wish to reuse code
InhalingPixels has joined #ruby
SilkFox_ has joined #ruby
tlarevo has joined #ruby
<lupine> well, they can be
<lupine> sometimes they're a downright obstacle
Hanmac has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby
DEA7TH has joined #ruby
rjhunter has joined #ruby
sandelius has joined #ruby
jheg has quit [Quit: jheg]
InhalingPixels has quit [Ping timeout: 245 seconds]
atmosx has joined #ruby
SilkFox_ has quit [Ping timeout: 246 seconds]
chipotle has quit [Quit: cya]
patrick99e99 has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
shevy has quit [Ping timeout: 255 seconds]
mrommelf has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
julian37 has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
lsmola has quit [Remote host closed the connection]
SouL_ has joined #ruby
Scotteh_ has quit [Ping timeout: 260 seconds]
patrick99e99 has quit [Ping timeout: 252 seconds]
claymore has joined #ruby
b1nd__ has quit [Ping timeout: 268 seconds]
Sgeo has quit [Read error: Connection reset by peer]
francis36012 has quit [Remote host closed the connection]
xcv has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
xcv has joined #ruby
_justin has joined #ruby
yfeldblum has quit [Remote host closed the connection]
jheg has joined #ruby
_justin has left #ruby [#ruby]
gnash has joined #ruby
sk87 has quit [Read error: Connection reset by peer]
sk87 has joined #ruby
Hanmac has joined #ruby
kaspergrubbe has joined #ruby
Lewix has quit [Remote host closed the connection]
robh71 has joined #ruby
Scotteh_ has joined #ruby
aclearman037 has joined #ruby
InhalingPixels has joined #ruby
cocotton has joined #ruby
mferrier has joined #ruby
GriffinHeart has quit [Ping timeout: 264 seconds]
sigurding has quit [Quit: sigurding]
b1nd has joined #ruby
shevy has joined #ruby
<jheg> would I be correct in saying that constants declared at the upper most level of my program have global scope?
lsmola has joined #ruby
<jhass> I think they won't resolve inside BasicObject, which globals would
<jhass> >> FOO = 'bar'; class Bar < BasicObject; def foo; FOO; end; end; Bar.new.foo
<eval-in____> jhass => uninitialized constant Bar::FOO (NameError) ... (https://eval.in/187664)
yacks has quit [Quit: Leaving]
<shevy> jheg yeah they reside in a scope. module Foo; BAR = 'yippie'; end <-- this BAR will only persist in Foo:: namespace, so Foo::BAR to access it usually
<jhass> since the toplevel namespace is Object and BasicObject is the parent of Object
hiyosi has joined #ruby
<jhass> >> FOO = :bar; Object::Object::Object::Object::FOO
<eval-in____> jhass => :bar (https://eval.in/187667)
mferrier has quit [Ping timeout: 245 seconds]
<shevy> jheg you can try it in irb by the way
<shevy> start irb, then do: BAR = '123'
<shevy> and then do: Object::BAR
rjhunter has quit [Remote host closed the connection]
<jheg> I've not come across Object:: as yet
Bumptiou_ has joined #ruby
<shevy> well it is general syntax there
<shevy> for scope access into a namespace
<shevy> class Foo; class Bar <-- Foo::Bar
<shevy> you can even do ugly syntax
<shevy> >> String::new.size
<eval-in____> shevy => 0 (https://eval.in/187668)
freerobby has joined #ruby
hiyosi has quit [Ping timeout: 260 seconds]
<jhass> forget right now that you can call methods with :: though
rjhunter has joined #ruby
doodlehaus has joined #ruby
<jheg> I haven't covered OOP, classes or modules as yet
krisquigley has quit [Remote host closed the connection]
Bumptious has quit [Ping timeout: 240 seconds]
<jheg> I've just built this which has used all the knowledge I currently have
krisquigley has joined #ruby
<jheg> ...
doev has joined #ruby
<jheg> so just using methods and conditionals really
luckyruby has joined #ruby
<jheg> really looking forward to getting into the more complicated stuff but I'm trying to fully understand before moving on
ltd has quit [Ping timeout: 260 seconds]
doev has quit [Read error: Connection reset by peer]
elspru_ has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
<shevy> your indent is not consistent by the way
kaspergrubbe has quit [Remote host closed the connection]
<shevy> line 80 adds an if
<shevy> but line 81 is on the same level as the above if
ltd has joined #ruby
Fire-Dragon-DoL has joined #ruby
<jhass> jheg: system 'clear' -> print "\x1b[2J"
krisquigley has quit [Ping timeout: 276 seconds]
Dreamer3 has joined #ruby
krisquigley has joined #ruby
<jheg> so 81 should be aligned with if?
<jheg> jhass: I don't understand sorry
jottr has joined #ruby
<jhass> equivalent, no need to shell out to clear the screen
<shevy> jheg nono; look:
<shevy> if condition
<shevy> call_a_method
<shevy> end
<jhass> jheg: no need for an explicit return keyword in the last expression of a method
<shevy> you already use it in most of the rest of your code
<shevy> for instance, you do:
<shevy> def bla
<shevy> # stuff here
<shevy> end
doodlehaus has quit [Remote host closed the connection]
elstif1 has joined #ruby
<jheg> ah shevy you know what i was looking locally where id corrected that - must've forgot to push
<jheg> thanks
<shevy> it's also confusing because in other areas of your code you also indent "if" properly
<jhass> jheg: you duplicate the functionality of available_squares in two_in_a_row?
<jhass> also question mark methods should return a boolean
<shevy> ruby does not enforce boolean returns
<jhass> _should_
<jhass> it's convention
<shevy> using tabs is a convention
earthquake has joined #ruby
<shevy> what annoys me are methods that end with !
<jhass> in player1 I'd cache (assign to local) the result of available_squares
<shevy> like OptionParser.parse!
<shevy> I don't know why the guy had to call the method that way
elstif has quit [Ping timeout: 245 seconds]
<shevy> aha
<shevy> it removes switches
pabloh has joined #ruby
<jheg> so regarding that return jhass I seem to remember that defend_this_square wouldn't work unless i returned false on the else
sepp2k has joined #ruby
<jhass> line 69ff is wrongly indented too
krisquigley has quit [Ping timeout: 276 seconds]
<jhass> jheg: else; false; end is equivalent
<jheg> oh so just didn't need the return ?
<jhass> but if nil skips the branch too
<jhass> as said, you only need it if it's not the last expression of a method
pranny has quit [Quit: Leaving.]
britneywright has joined #ruby
mockra has joined #ruby
oo_ has quit [Remote host closed the connection]
<jhass> you can do a do/while loop with begin; code code code; end while condition; and with that save the assignment on line 92
<jhass> also don't reassign constants in a loop
<jhass> they should be constant values, so put them at the top of your script
<pagioss> why when i access https://192.168.1.111/~ from my btowser the ruby code is seen?
<pagioss> using sinatra..
<shevy> hehe
<shevy> how can anyone debug this pagioss
<pagioss> i mean what does the ~ have to do with showing my code..
<jhass> pagioss: I doubt your application server listens on 443 (and thus runs as root) and handles TLS
RastaqWhere has joined #ruby
<jhass> pagioss: which means you likely got a reverse proxy there
<jhass> which is to blamee
RastaqWhere has quit [Client Quit]
jheg has quit [Ping timeout: 272 seconds]
catphish has joined #ruby
mockra has quit [Ping timeout: 245 seconds]
Jackneill has quit [Remote host closed the connection]
<catphish> is mod_ruby still available? maintained by anyone?
yfeldblum has joined #ruby
<catphish> or do i need to give up on it
<jhass> catphish: yes, it's called passenger now
krisquigley has joined #ruby
<jhass> passenger 4 came out just this year with many new features
<jhass> join #passenger for help with it
paulfm has joined #ruby
<catphish> interesting, never occurred me me that passenger could do that
<jhass> passenger _is_ mod_ruby
<pagioss> jhass: how to resolve this
<jhass> pagioss: by fixing your setup
<jhass> pagioss: remember we can't see your screen nor your network, we can only work with the information you give us
<jhass> pagioss: I said all there is to say with the information you gave
Takle has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 260 seconds]
tlarevo has quit [Remote host closed the connection]
Takle has joined #ruby
<catphish> jhass: i don't think you're correct by the way, i think passenger was a separate project set up to serve RoR apps
<catphish> and it doesn't seem to have anything in common with mod_ruby
pagioss is now known as pagios
<jhass> catphish: I know that mod_ruby.net or what the domain was used to redirect to passenger
<catphish> looks like it hasn't been maintained since 2008 - http://en.wikipedia.org/wiki/Mod_ruby
elstif has joined #ruby
<catphish> oh well
ptrrr_ has joined #ruby
elstif1 has quit [Ping timeout: 252 seconds]
jheg has joined #ruby
<jheg> sorry chaps lost connection
atmosx has quit [Quit: Lost in trance]
<jheg> jhass: thanks for the heads up on 69
<jheg> ^ ha sounded odd out of context
<catphish> lol
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
pu22l3r has joined #ruby
<jhass> 14:29 <jhass> jheg: else; false; end is equivalent
<jhass> 14:30 <jheg> oh so just didn't need the return ?
ptrrr has quit [Ping timeout: 272 seconds]
ptrrr_ is now known as ptrrr
<jhass> 14:30 <jhass> but if nil skips the branch too
<jhass> 14:30 <jhass> as said, you only need it if it's not the last expression of a method
<jhass> 14:31 <jhass> you can do a do/while loop with begin; code code code; end while condition; and with that save the assignment on line 92
<jhass> 14:32 <jhass> also don't reassign constants in a loop
<jhass> 14:33 <jhass> they should be constant values, so put them at the top of your script
<jhass> mah, sorry that should've gone to query
hamakn has quit [Remote host closed the connection]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
ptrrr is now known as ptr
Jackneill has joined #ruby
<jheg> thanks again
txdv has quit [Read error: Connection reset by peer]
txdv has joined #ruby
sprihodko has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 255 seconds]
SilkFox_ has joined #ruby
User458764 has joined #ruby
xfz has quit [Remote host closed the connection]
catphish has left #ruby ["Leaving"]
mercwithamouth has joined #ruby
SilkFox_ has quit [Ping timeout: 246 seconds]
TorpedoSkyline has joined #ruby
amystephen has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
ferr has joined #ruby
yacks has joined #ruby
bmurt has joined #ruby
TorpedoSkyline has quit [Client Quit]
pablo_ has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
bearish has quit [Remote host closed the connection]
agjacome has quit [Quit: leaving]
weems|mac has joined #ruby
weems|mac has quit [Changing host]
weems|mac has joined #ruby
bearish has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
earthquake has quit [Quit: earthquake]
Sawbones has joined #ruby
pabloh has quit [Ping timeout: 264 seconds]
Sawbones_ has joined #ruby
iteratorP has joined #ruby
GriffinHeart has joined #ruby
workmad3 has joined #ruby
livingstn has joined #ruby
iteratorP has quit [Read error: Connection reset by peer]
ptierno_ has joined #ruby
iteratorP has joined #ruby
spastorino has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
bearish has quit [Ping timeout: 272 seconds]
rjhunter has quit [Remote host closed the connection]
Deele has quit [Quit: User excited]
yeticry has joined #ruby
_5kg has quit [Ping timeout: 260 seconds]
havenwood has joined #ruby
Sawbones has quit [Ping timeout: 268 seconds]
GriffinHeart has quit [Ping timeout: 246 seconds]
iteratorP has quit [Remote host closed the connection]
mferrier has joined #ruby
TorpedoSkyline has joined #ruby
coreycondardo has joined #ruby
fabrice31 has joined #ruby
coreycondardo has quit [Client Quit]
AlexBlom has joined #ruby
chipotle has joined #ruby
hiyosi has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
Akagi201 has quit [Ping timeout: 255 seconds]
mferrier has quit [Ping timeout: 240 seconds]
pabloh has joined #ruby
Hanmac has joined #ruby
MasterPiece has quit [Quit: Leaving]
Jameser has joined #ruby
TaxmanBD is now known as Pancakes
linojon has joined #ruby
Pancakes is now known as ZenPoni
Akagi201 has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
doodlehaus has joined #ruby
ZenPoni is now known as Pancakes
pablo_ has quit [Ping timeout: 260 seconds]
Sht0 has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv_ has quit [Remote host closed the connection]
Ankhers has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
hamakn has joined #ruby
timonv_ has joined #ruby
mferrier_ has joined #ruby
Takle has quit [Remote host closed the connection]
enebo has quit [Ping timeout: 255 seconds]
ferr has quit [Remote host closed the connection]
bearish has joined #ruby
dmyers has quit [Ping timeout: 245 seconds]
AlexBlom has quit [Quit: This computer has gone to sleep]
Kerber0s has joined #ruby
arup_r has quit [Remote host closed the connection]
SilkFox has joined #ruby
timonv_ has quit [Ping timeout: 255 seconds]
GriffinHeart has joined #ruby
pabloh has quit [Quit: Saliendo]
pabloh has joined #ruby
Channel6 has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
echevemaster has joined #ruby
jerius has quit []
Dramors is now known as dramors
dramors has left #ruby [#ruby]
dramors has joined #ruby
TorpedoSkyline has joined #ruby
endash has joined #ruby
freerobby has quit [Quit: Leaving.]
Deele has joined #ruby
Macaveli has joined #ruby
yfeldblum has joined #ruby
axsuul has joined #ruby
AlexBlom has joined #ruby
valner has joined #ruby
banister has joined #ruby
eivindml has joined #ruby
sylvanica has joined #ruby
TorpedoSkyline has quit [Ping timeout: 255 seconds]
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
orolo has joined #ruby
Takle has joined #ruby
enebo has joined #ruby
yfeldblum has quit [Ping timeout: 268 seconds]
timonv_ has joined #ruby
banister has quit [Client Quit]
axsuul has quit [Ping timeout: 252 seconds]
User458764 has quit [Ping timeout: 264 seconds]
<shevy> hmm
<shevy> know what I was thinking
<shevy> something like
<shevy> Cat.new('tom', true)
<shevy> that is not very useful at all
<shevy> nobody knows what true is
User458764 has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
Xeago has quit [Remote host closed the connection]
cleopatra has quit [Ping timeout: 268 seconds]
jerius has joined #ruby
banister has joined #ruby
mr-foobar has quit [Quit: Leaving...]
unshadow has joined #ruby
gccostabr has joined #ruby
AlexBlom has quit [Quit: This computer has gone to sleep]
pu22l3r has joined #ruby
qmfnp has joined #ruby
<unshadow> So, I have this "logical" issue, I have a class that initiate an external ruby loop, in this loop I set Process.setsid, I thought this will allow it to run without the need of the parent to stay alive, this is working, I can close the parent without my child dying, my issue now is this: when I log out of my session the loop is killed, why ?
timgauthier has joined #ruby
anarang has quit [Quit: Leaving]
St_Marx has quit [Quit: Ex-Chat]
ZAJDAN has joined #ruby
<eam> unshadow: what do you mean "close my parent?"
cocotton has quit [Quit: Leaving...]
ZAJDAN has left #ruby [#ruby]
sigurding has joined #ruby
<unshadow> eam: as in the parent process is killed, and my child process is still running (this is ok, it was what i eanted)
bjornar has quit [Remote host closed the connection]
<eam> killing a parent process doesn't impact a child process at all, it will just be reparented to init
<eam> when you log out something special happens to processes related to your login session
<eam> and they get a signal
clarkk has quit [Remote host closed the connection]
<eam> there are probably some gems somewhere for daemonizing, just reusing one of those is probably best
pu22l3r has quit [Ping timeout: 255 seconds]
<eam> but if you'd like to debug this I'm happy to help too
<eam> are stdout, stdin and sterr still pointing to your login tty after you setsid?
AlexBlom has joined #ruby
_5kg has joined #ruby
<unshadow> eam: Yes, I still see them on my tty
SilkFox_ has joined #ruby
charliesome has quit [Quit: zzz]
<eam> you'll want to reopen those to something else (/dev/null?) before calling setsid
<eam> a double fork can't hurt either
<unshadow> I know that when I logoff all my procceses get HUP signal, if I'll trp it will that help ?
<eam> all processes with that controlling terminal get a HUP
<unshadow> I allready use a double fork , "fork do" to call the loop , and inside the loop I send the setsid
<eam> you could also be getting a sigpipe
Scripore has quit [Ping timeout: 264 seconds]
Kricir has joined #ruby
<eam> unshadow: if you want to debug this, run your program under strace while you log out and it will tell you exactly what is occuring
<unshadow> Ok, good idea
ZAJDAN has joined #ruby
ZAJDAN has left #ruby [#ruby]
SilkFox_ has quit [Ping timeout: 240 seconds]
patrick99e99 has joined #ruby
<jhass> what about Process.daemon ?
<jhass> tried that?
fim has joined #ruby
<unshadow> It behaves wierd (Proccess.daemon), it just kills my proccess
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
cuppscakes has joined #ruby
Lewix has joined #ruby
cuppscakes has quit [Max SendQ exceeded]
Channel6 has quit [Remote host closed the connection]
cuppscakes has joined #ruby
<eam> are you using threads?
dramors has left #ruby [#ruby]
<unshadow> nope
<eam> you will want to do this detaching work at the very outset. It's generally not safe to do mid-program
patrick99e99 has quit [Ping timeout: 276 seconds]
starkhalo has joined #ruby
<eam> ruby uses threads internally for all sorts of stuff so you may be even if you're not intending to
<eam> start out with an empty program that daemonizes, get that working in isolation, then add your code in
JohnFord has joined #ruby
dramors has joined #ruby
dramors has left #ruby [#ruby]
ffranz has joined #ruby
fim has left #ruby [#ruby]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
fdelacruz has joined #ruby
Kerber0s has quit [Remote host closed the connection]
<fdelacruz> hello all
Kerber0s has joined #ruby
aganov has quit [Remote host closed the connection]
fdelacruz has quit [Client Quit]
zeroNones has joined #ruby
Macaveli has quit [Ping timeout: 240 seconds]
AlexBlom has quit [Quit: This computer has gone to sleep]
rockdon_ has joined #ruby
rockdon_ is now known as rockdon|away
Takle has quit [Remote host closed the connection]
TorpedoSkyline has joined #ruby
bricker has joined #ruby
sigurding has quit [Quit: sigurding]
_tpavel has quit [Quit: Leaving]
hiyosi has joined #ruby
orolo has quit [Quit: This computer has gone to sleep]
jeroenvisser101 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cyrinux has joined #ruby
timgauthier is now known as timgauthier_isaw
orolo has joined #ruby
sambao21 has joined #ruby
albedoa has joined #ruby
thams has quit [Ping timeout: 240 seconds]
<mozzarella> do you prefer if __FILE__ == $PROGRAM_NAME or if $PROGRAM_NAME == __FILE__
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cyrinux> Hi, could you help me, i can't find the way to install gem tire on centos 6.5 and default ruby 1.8.7
paolooo has joined #ruby
<workmad3> mozzarella: neither? :P
<mozzarella> workmad3: what do you use, then?
n1lo has joined #ruby
<Hanmac> cyrinux: ruby1.8.7 died and is not supported from us anymore
<jhass> mozzarella: I prefer require 'mygem'; MyGem::CLI(ARGV)
<workmad3> mozzarella: generally, I don't have scripts that 'self-execute'
AlexBlom has joined #ruby
<workmad3> mozzarella: like jhass just suggested ;)
Takle has joined #ruby
<cyrinux> Hanmac, do you have a way to run puppet master on ruby193 ?
<jhass> cyrinux: Please join #puppet for Puppet questions.
tobago has quit [Remote host closed the connection]
<gregf_> a dumb question
<cyrinux> jhass, allready done...
hiyosi has quit [Ping timeout: 268 seconds]
rockdon|away is now known as rockdon_
<jhass> so you crossposted?
<gregf_> is this the best was to format an array: Array.new(2){ Array.new(2) }.each { |row| puts row.map { |val| sprintf("%4s",val) }.join("|") }
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gregf_> *way
<cyrinux> Yes and can't find anwser for the moment :/
<gregf_> oops sorry for interrupting :/
Takle has quit [Remote host closed the connection]
<jhass> cyrinux: how long did you wait after posting your question in #puppet?
<jhass> gregf_: nothing to worry
<jhass> gregf_: and I see no apparent simplification for that
TorpedoSkyline has joined #ruby
<jhass> gregf_: though I prefer String#% over Kernel#sprintf
<gregf_> ah - ok
<gregf_> jhass: cool, thanks!
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shackleford has joined #ruby
yfeldblum has joined #ruby
lxsameer has quit [Quit: Leaving]
ctp has joined #ruby
Takle has joined #ruby
intnsity has quit [Ping timeout: 240 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GriffinHeart has joined #ruby
hiyosi has joined #ruby
<workmad3> gregf_: I'd also personally be tempted to do ars.map{|r| r.map{|v| ...}.join("|")}.join("\n")
<workmad3> gregf_: rather than having the 'puts' embedded in an each
intnsity has joined #ruby
Xeago has joined #ruby
<gregf_> ah - ok
yfeldblum has quit [Ping timeout: 240 seconds]
visof has joined #ruby
<visof> hi
mary5030 has joined #ruby
GriffinHeart has quit [Ping timeout: 245 seconds]
ctp has quit [Quit: Textual IRC Client: www.textualapp.com]
ctp has joined #ruby
tagrudev has quit [Remote host closed the connection]
snath has quit [Ping timeout: 272 seconds]
LekeFly has quit [Ping timeout: 246 seconds]
__main__ has quit [Read error: Connection reset by peer]
jeroenvisser101 has joined #ruby
SouL_ has quit [Ping timeout: 245 seconds]
shackleford has quit []
DesertCreature has joined #ruby
mengu has quit [Remote host closed the connection]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shackleford has joined #ruby
mpistone has joined #ruby
ghostmoth has joined #ruby
AlexBlom has quit [Quit: This computer has gone to sleep]
freerobby has joined #ruby
douglasssssss has joined #ruby
toastynerd has joined #ruby
gurix has quit [Quit: gurix]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
momomomomo has joined #ruby
gurix has joined #ruby
mercwithamouth has joined #ruby
<jhass> hi
<totimkopf> http://pastebin.com/qk6pRdfk hi, I'm trying to learn big o notation using ruby, am I calculating things correctly, if not what am I doing wrong? Thank you
havenwood has joined #ruby
gurix has quit [Client Quit]
<workmad3> totimkopf: almost... it's only O(n) in the end though
toastynerd has quit [Remote host closed the connection]
<workmad3> totimkopf: as O(5n) is still a linear increase, so simplifies down to O(n)
ghostmoth has quit [Ping timeout: 245 seconds]
mr-foobar has joined #ruby
jobewan has joined #ruby
jeroenvisser101 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1_ has quit [Remote host closed the connection]
colli5ion has joined #ruby
<workmad3> totimkopf: also, because things like +, ==, etc. can be overloaded, you can't assume in the general sense that something like 'e == 1' is O(1) in ruby
timgauthier has joined #ruby
timgauthier has quit [Max SendQ exceeded]
__main__ has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
unshadow has quit [Quit: leaving]
<totimkopf> workmad3: thanks for your input
ptr has quit [Quit: ptr]
<totimkopf> workmad3: should I not count the constants for binary operations then?
jeroenvisser101 has joined #ruby
u6aBeWPy has quit [Ping timeout: 268 seconds]
<workmad3> totimkopf: no... 5 constant-time operations is, in big-O notation, O(1) (constant time)
<workmad3> totimkopf: not O(5)
pu22l3r has joined #ruby
icebourg has joined #ruby
<totimkopf> ah ok
<totimkopf> so the O(1)'s don't get added then :)
<workmad3> totimkopf: which kinda makes sense... you could easily replace 5 constant time operations with a single constant-time operation that's just 5 times slower ;)
<totimkopf> interesting
jeroenvi_ has joined #ruby
mockra has joined #ruby
<workmad3> totimkopf: big-O is intended to abstract away that kind of detail... otherwise you'd need to delve down into ASM and processor architecture to figure out the timings for each CPU-op
mockra_ has joined #ruby
jeroenvisser101 has quit [Read error: Connection reset by peer]
Inhaling_ has joined #ruby
<totimkopf> workmad3: I see
<workmad3> totimkopf: after all, multiplication, addition, subtraction and division aren't all 'equal' length operations... but they're generally all classed as O(1) (although you may find they're O(n) in some cases, e.g. if you're dealing with bignums they'll probably scale in time based on the size of the bignum)
gurix has joined #ruby
pu22l3r has quit [Ping timeout: 260 seconds]
<workmad3> totimkopf: mostly, big-O is an abstraction to get a 'feel' for an algorithm though... so if you were analysing a bignum addition algorithm, you'd care about that... but if you were analysing a sorting algorithm that could take bignums, you'd be fine to assume that the bignums are all 'equivalent' sizes and treat it as O(1)
AlexBlom has joined #ruby
InhalingPixels has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
jottr_ has joined #ruby
mockra has quit [Ping timeout: 272 seconds]
cuppscakes has left #ruby ["Disconnected"]
geggam has joined #ruby
<totimkopf> workmad3: I think I should start reading 'Introduction to Algorithms' but it seems a bit intimidating :)
SilkFox_ has joined #ruby
<workmad3> totimkopf: it's also important to take note of special cases when doing a big-O analysis... e.g. quicksort big-O is O(n log n) in average case... but it's O(n^2) in worst case
<eam> eh, this is ruby. what's an extra n or two between objects
Jameser has quit [Ping timeout: 260 seconds]
aedorn has joined #ruby
sambao21 has joined #ruby
<workmad3> totimkopf: just delve in :) one of the worst mistakes I make is to think 'I won't understand that' and put off investigating something :)
Takle has quit [Remote host closed the connection]
jusmyth has joined #ruby
gurix has quit [Ping timeout: 245 seconds]
<workmad3> totimkopf: by the time I finally do, I generally find it wasn't anywhere near as intimidating (although I'm starting to get to knowledge that is harder to understand, but that just means it's more fun to figure out :) )
<eam> O notation is useful when talking about an algorithm, but not quite so useful in high level abstractions where the algorithm is often obscured
jottr has quit [Ping timeout: 252 seconds]
<eam> for example, every ruby program has an O(n) cost in terms of object count due to the gc behavior
<eam> and sometimes quite a bit more
jeroenvi_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zorak has joined #ruby
<workmad3> it's also quite important to note that in a lot of practical applications, a 'worse' big-O algorithm can perform much faster because it relies on 'cheaper' operations and the complexity doesn't apply at the scales you need
SilkFox_ has quit [Ping timeout: 260 seconds]
<eam> one googl is still O(1) :)
Blaze_Boy has joined #ruby
Blaze_Boy has quit [Client Quit]
<totimkopf> workmad3: hmmm, I don't follow... I thought 'worse' meant not as efficient, that is, not as fast, than 'best'?
fabrice31 has joined #ruby
jeroenvisser101 has joined #ruby
<havenwood> totimkopf: all the O(1), O(n) stuff is performance art
<workmad3> totimkopf: say you had an algorithm with time-complexity 100000000000000n, and another with time-complexity 0.000000000001n^2
Takle has joined #ruby
<workmad3> totimkopf: to big-O, the first is O(n) and the second is O(n^2)
<totimkopf> ok
<eam> totimkopf: an algorithm that always takes one million cycles no matter the size of input is O(1). An algorithm that always takes n cycles is O(n). O(n) will be faster than O(1) in this case if n is less than one million
<workmad3> totimkopf: and with a sufficiently large input, the first would be farster
<workmad3> *faster
<workmad3> eam: thanks, that's better than my explanation :)
larissa has quit [Ping timeout: 260 seconds]
sevenseacat has quit [Quit: Leaving.]
<totimkopf> ah okay, so it depends on the input
bal has quit [Quit: bal]
<eam> it depends on the details of the constants that O() notation ignores
<eam> O() is useful for describing the way a function grows in cost as input increases
sk87 has joined #ruby
<totimkopf> ah, I see
<workmad3> totimkopf: you can also use big-O to describe other factors, such as memory consumption (space-complexity)
H1d3r1 has joined #ruby
GriffinHeart has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
wjimenez5271 has joined #ruby
Inhaling_ has quit [Remote host closed the connection]
<jhass> it's also the worst case, you need to take into account how likely it's to hit that case. The average and the worst case can perform quite differently, for example if the algorithm can make optimizations in some cases. So in practice you may choose an algorithm with a bad worst case because it has a way better average case than another one with a better worst case
InhalingPixels has joined #ruby
<workmad3> jhass: also the best case can be important :)
<jhass> yeah
<workmad3> all depends on use
snath has joined #ruby
timgauthier has joined #ruby
<workmad3> I've heard of a scenario where bubblesort was used, for example... because it has a best-case O(n) (sorted list), so it got used to sort z-buffers in a game, where it was run with a single pass between every frame
<workmad3> as the buffers mostly didn't change, it ended up sorting them eventually, and it was quick enough to run between frames where other sorting algorithms weren't
sinkensabe has quit [Remote host closed the connection]
gurix has joined #ruby
GriffinHeart has quit [Ping timeout: 276 seconds]
u6aBeWPy has joined #ruby
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
jheg has quit [Quit: jheg]
ssvo has joined #ruby
reynscem has quit [Quit: leaving]
maletor has joined #ruby
jmbrown412 has joined #ruby
avita1 has joined #ruby
timonv_ has quit [Ping timeout: 276 seconds]
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zarul has quit [Ping timeout: 240 seconds]
hamakn has quit [Remote host closed the connection]
_maes_ has joined #ruby
yfeldblum has joined #ruby
tylerkern has joined #ruby
TorpedoSkyline has joined #ruby
ixti has joined #ruby
qwyeth has joined #ruby
zeroNones has joined #ruby
Xeago_ has joined #ruby
mattmcclure has joined #ruby
CaptainJet has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
lw has quit [Quit: s]
chrisja has joined #ruby
zeroNones has quit [Client Quit]
yfeldblum has quit [Ping timeout: 272 seconds]
baroquebobcat has joined #ruby
coderhs has joined #ruby
siwica has joined #ruby
jimmykarily has quit [Ping timeout: 272 seconds]
Phrogz has joined #ruby
momomomomo has quit [Ping timeout: 246 seconds]
wpp has joined #ruby
jeroenvisser101 has quit [Ping timeout: 260 seconds]
momomomomo has joined #ruby
<shevy> test
lemur has joined #ruby
<eam> failed
jeroenvisser101 has joined #ruby
<Phrogz> pong?
H1d3r1 is now known as H1d3r
zarul has joined #ruby
<jhass> peng
mercwithamouth has joined #ruby
AxonetBE has quit [Quit: AxonetBE]
IceDragon has joined #ruby
zeroNones has joined #ruby
gsd has joined #ruby
qba73 has quit []
qualiabyte has joined #ruby
gurix has quit [Quit: gurix]
axsuul has joined #ruby
avita1 has quit [Quit: Leaving.]
lemur has quit [Ping timeout: 268 seconds]
io_syl has joined #ruby
timonv_ has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
sigurding has joined #ruby
sigurding has quit [Read error: Connection reset by peer]
timonv^ has joined #ruby
larissa has joined #ruby
wpp has quit [Ping timeout: 260 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
axsuul has quit [Ping timeout: 260 seconds]
n1lo has quit [Ping timeout: 252 seconds]
jottr_ is now known as jottr
sambao21 has quit [Quit: Computer has gone to sleep.]
timonv_ has quit [Ping timeout: 264 seconds]
larissa has quit [Client Quit]
mityaz_ has quit [Quit: Leaving]
jeroenvisser101 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikeg has joined #ruby
<pagios> hi so i got /sbin/iw dev wlan5 scan | awk '$1=="SSID:"{ssid=$2; next} $1$2$3=="DSParameterset:"{ print ++i")"$4,$5,ssid\n }'` which returns sid=test and channel=1 sid=test2 channel=2 etc... i want to make this result as json but the challengw is to make each sid and channel go into 1 data block to represent 1 entry how can i do that?
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
arup_r has joined #ruby
<pagios> like for example entry1 is { sid1, channel1 } entry 2 i {sid2,channel2}
sambao21 has joined #ruby
jeroenvisser101 has joined #ruby
b00stfr3ak has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
choke has joined #ruby
paolooo has quit [Ping timeout: 246 seconds]
timonv^ has quit [Ping timeout: 252 seconds]
troyready has joined #ruby
<shevy> so
<shevy> has anyone managed to parse pagios' question yet
avita1 has joined #ruby
<pagios> maybe its a silly one :)
_maes_ has joined #ruby
<shevy> I don't know
sinkensabe has joined #ruby
<shevy> I failed to parse the question so far
<shevy> Can you reformulate: input -> output?
<jhass> pagios: that's neither valid json nor ruby
pu22l3r has joined #ruby
mobiGeek8 has joined #ruby
<shevy> I think he gave us a string
mobiGeek7 has quit [Ping timeout: 276 seconds]
sailias has joined #ruby
b00stfr3ak has joined #ruby
<pagios> so you have string1,string2 string3,string4 i wanna make string1,string2 in 1 json and string3,string4 in another json
krisquigley has quit [Remote host closed the connection]
gurix has joined #ruby
<jhass> erm
maestrojed has joined #ruby
<jhass> .split(' ').map {|entry| entry.split(',') }.to_json ?
gurix has quit [Client Quit]
bearish has quit [Remote host closed the connection]
<jhass> though I'd probably strip the awk mess and parse in ruby
Jameser has joined #ruby
Xeago_ has quit [Remote host closed the connection]
gurix has joined #ruby
bearish has joined #ruby
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pu22l3r has quit [Ping timeout: 245 seconds]
relix has joined #ruby
<shevy> hehehe
<shevy> man pagios
<shevy> your thoughts are chaotic
ohvlad has quit []
lmickh has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Jameser has quit [Ping timeout: 240 seconds]
visof has quit [Ping timeout: 272 seconds]
<shevy> audio on linux is no fun :(
bearish has quit [Ping timeout: 240 seconds]
SilkFox_ has joined #ruby
<havenwood> pagios: would be easier to follow if you put code between backticks or separate from your sentences and show Strings as literals with quotes instead of run-on into the sentence
wjimenez_ has joined #ruby
wjimenez5271 has quit [Ping timeout: 255 seconds]
ValicekB has quit [Ping timeout: 255 seconds]
<havenwood> ^ some of that sentence is Strings, but which part, I'll never tell!!
LekeFly has joined #ruby
gurix has quit [Quit: gurix]
<havenwood> pagios: maybe show the output of `/sbin/iw dev wlan5 scan` and let us take a stab at de-awking ya :P
_lazarevsky has joined #ruby
<_lazarevsky> hello guys
<ericwood_> hi
<havenwood> g'morning
<pagios> havenwood: http://pastie.org/9524310
<_lazarevsky> afternoon here :)
<_lazarevsky> anyway, is a question about serializers in ruby maybe more appropriate in the rubyonrails channel?
<ericwood_> _lazarevsky: without a doubt!
<_lazarevsky> ok thanks
<havenwood> I have a doubt!
<ericwood_> havenwood: sssshhhhh
<havenwood> _lazarevsky: I'm curious if it is or isn't? What's the question?
* havenwood clasps hands over mouth
Xeago has joined #ruby
zorak is now known as zorak8
zorak8 has quit [Quit: Saliendo]
<havenwood> _lazarevsky: answer: MsgPack
zorak8 has joined #ruby
gurix has joined #ruby
ghostmoth has joined #ruby
<havenwood> jhass: answer before ask percent right today: 0%
<havenwood> or NaN
<_lazarevsky> havenwood: I need help with defining a serializer
SilkFox_ has quit [Ping timeout: 260 seconds]
<ericwood_> you can override as_json on your models :D
<havenwood> ericwood_ was right
<ericwood_> havenwood: I'm still right
<ericwood_> I was right. But I'm also still right.
<havenwood> yup, 0% for me ;
_whitelogger__ has joined #ruby
<havenwood> ericwood_: is your rightness atomic, cause we should prolly put a mutex around it if it's not.
jinie has joined #ruby
caveat- has joined #ruby
toastynerd has joined #ruby
<ericwood_> semaphore plz
helpa has quit [Remote host closed the connection]
jeroenvisser101 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
helpa has joined #ruby
ptierno__ has joined #ruby
<zorak8> Hi, i have a method with a serie of ifs but i want the method to end if the first if is true
j_mcnally has joined #ruby
mobiGeek9 has joined #ruby
<havenwood> zorak8: return(...) if x
<zorak8> i remember in the turials, is calling escape but cant find any relevant
olivier_bK has quit [Quit: Quitte]
emmesswhy has joined #ruby
qmfnp_ has joined #ruby
oz` has joined #ruby
olivier_bK has joined #ruby
wallerdev has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
dmoe________ has joined #ruby
skmp__ has joined #ruby
gccostab_ has joined #ruby
<zorak8> and the other parts of the method will keep unchecked?
gurix_ has joined #ruby
<havenwood> zorak8: the method has an implicit return on the last line, or you can `return` early
artmann_ has joined #ruby
andrewstewart_ has joined #ruby
mattp__ has joined #ruby
culturelabs_ has joined #ruby
endash_ has joined #ruby
<havenwood> zorak8: Try it out in Pry/irb!
<shevy> is this like sex
tenseiten has joined #ruby
k03ll has joined #ruby
<havenwood> no
FDj_ has joined #ruby
<zorak8> ok, i ge it
hoelzro_ has joined #ruby
tvl has joined #ruby
chrishough has joined #ruby
DefV has joined #ruby
jamo_ has joined #ruby
aapole_ has joined #ruby
vjt_ has joined #ruby
thalweg has joined #ruby
ptierno_1 has joined #ruby
vcoinminer______ has joined #ruby
saltsa_ has joined #ruby
dANOKELO_ has joined #ruby
robinbowes has joined #ruby
kalleth_ has joined #ruby
kiki_lam1 has joined #ruby
kriskrop1 has joined #ruby
ght_ has joined #ruby
ejnahc_ has joined #ruby
ybit has joined #ruby
BlaDe^_ has joined #ruby
JazzOderNie has quit [Quit: Lost terminal]
pusewicz_ has joined #ruby
Snickers_ has joined #ruby
DfAsuka_ has joined #ruby
alex88 has quit [Quit: Leaving...]
Raboo_ has joined #ruby
pdtpatr11k has joined #ruby
ozzloy has joined #ruby
KnownSyntax_ has joined #ruby
patteh_ has joined #ruby
ozzloy has joined #ruby
Wolland has joined #ruby
Muz_ has joined #ruby
ceej_ has joined #ruby
ikanobori_ has joined #ruby
pietr0 has joined #ruby
Affix_ has joined #ruby
BlaDe^_ is now known as BlaDe^
ruisanto1 has joined #ruby
avita1 has quit [Quit: Leaving.]
danshultz_ has joined #ruby
tekmaster has joined #ruby
andrewbredow_ has joined #ruby
crazed_ has joined #ruby
ssut_ has joined #ruby
mostlybadfly_ has joined #ruby
kapowaz_ has joined #ruby
mroth_ has joined #ruby
zenspider_ has joined #ruby
maZtah_ has joined #ruby
zeusmns_ has joined #ruby
AlHafoudh_ has joined #ruby
gsd_ has joined #ruby
banister has joined #ruby
reprazent_ has joined #ruby
stopbyte has joined #ruby
pagioss has joined #ruby
bedouin_ has joined #ruby
hellome has quit [Write error: Connection reset by peer]
Raboo_ is now known as Raboo
danshultz_ is now known as danshultz
andrewbredow_ is now known as andrewbredow
[42] has joined #ruby
tekmaster is now known as tekacs
endash_ is now known as endash
andrewstewart_ is now known as andrewstewart
canton7 has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nuck has joined #ruby
bove_ has joined #ruby
digifiv5e has joined #ruby
AlHafoudh_ is now known as AlHafoudh
thalweg_ has quit [Ping timeout: 260 seconds]
rfv__ has joined #ruby
digifiv5e is now known as Guest95047
mroth_ is now known as mroth
tiagonobre_ has joined #ruby
xenomorph has quit [Changing host]
xenomorph has joined #ruby
anekos_ has joined #ruby
thesheff17 has joined #ruby
meinside has joined #ruby
jokke has joined #ruby
TorpedoSkyline has joined #ruby
kapowaz_ is now known as kapowaz
SirFunk has joined #ruby
JStoker has joined #ruby
anicet has joined #ruby
schaary|afk has joined #ruby
elaptics has joined #ruby
lele has joined #ruby
CJD14____ has joined #ruby
chridal has joined #ruby
skmp__ is now known as skmp_
banister has joined #ruby
jeregrine has joined #ruby
paulog__ has joined #ruby
banister has quit [Max SendQ exceeded]
dmoe________ is now known as dmoe_______
seanmarcia has joined #ruby
hoelzro_ is now known as hoelzro
Veidit has joined #ruby
ClarusCogitatio has joined #ruby
alol_ has joined #ruby
shelling_ has joined #ruby
leslie has joined #ruby
danoo has joined #ruby
maletor has joined #ruby
Tranquility has joined #ruby
im0b has joined #ruby
cescalante has joined #ruby
Guest85414______ has joined #ruby
sirecote has joined #ruby
shtirlic has joined #ruby
olleromo__ has joined #ruby
Scorchin has joined #ruby
banister has joined #ruby
dANOKELOFF has quit [Ping timeout: 240 seconds]
banister has quit [Max SendQ exceeded]
redondos has joined #ruby
papercode has joined #ruby
BackEndCoder has joined #ruby
bricker`work has joined #ruby
lectrick has joined #ruby
clamstar has joined #ruby
rkjaer has joined #ruby
machty has joined #ruby
mattyohe has joined #ruby
phrozen77 has joined #ruby
aspiers has joined #ruby
xlii has joined #ruby
invsblduck has joined #ruby
invsblduck has joined #ruby
timonv_ has quit [Remote host closed the connection]
Affix_ is now known as Affix
banister has joined #ruby
banister has quit [Max SendQ exceeded]
adambeynon has joined #ruby
keen________ has joined #ruby
dANOKELO_ has quit [Ping timeout: 264 seconds]
lpaste_ has joined #ruby
yacks has joined #ruby
TorpedoSkyline has quit [Client Quit]
Sthebig has joined #ruby
aspires has joined #ruby
banister has joined #ruby
mostlybadfly_ is now known as mostlybadfly
banister has quit [Max SendQ exceeded]
jusmyth has quit [Quit: Leaving.]
heyimwill has joined #ruby
nighter has joined #ruby
Karunamon has joined #ruby
<shevy> whoa
skarn has joined #ruby
<shevy> what's with this sudden burst of renaming nicks
skarn is now known as Guest10538
banister has joined #ruby
banister has quit [Max SendQ exceeded]
robinbowes is now known as yo61
<wasamasa> slowsplit
pabloh has quit [Ping timeout: 276 seconds]
<shevy> hehe
mattmcclure has quit []
Kabaka has joined #ruby
wjimenez_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
u6aBeWPy has quit [Ping timeout: 260 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
sonOfRa has quit [Ping timeout: 260 seconds]
<jhass> pagioss: for example networks = iw_output.split(/\n(?=BSS \d)/); networks.map {|network| ssid = network[/SSID: (.+)$/, 1]; channel = network[/channel (\d+)/, 1]; [ssid, channel] }.to_h
banister has joined #ruby
G has joined #ruby
wjimenez5271 has joined #ruby
banister has quit [Max SendQ exceeded]
pusewicz_ is now known as pusewicz
snapcase has joined #ruby
<pagioss> to_h ?
sinkensabe has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<shevy> that should mean to hash
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<pagioss> to_json?
guanophobic has joined #ruby
pabloh has joined #ruby
ceej_ is now known as ceej
TorpedoSkyline has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<shevy> hehehe
<shevy> to_pagioss
sonOfRa has joined #ruby
sigurding has joined #ruby
banister_ has joined #ruby
<ericwood_> to_xml
banister_ has quit [Max SendQ exceeded]
culturelabs_ is now known as culturelabs
Takle has quit [Remote host closed the connection]
<shevy> too_verbose
benzrf|offline is now known as benzrf
ssut_ is now known as ssut
<pagioss> tx
banister_ has joined #ruby
banister_ has quit [Max SendQ exceeded]
centrx has joined #ruby
kalz has joined #ruby
maZtah_ is now known as maZtah
ggherdov has joined #ruby
skolman has joined #ruby
banister_ has joined #ruby
banister_ has quit [Max SendQ exceeded]
bedouin_ is now known as bedouin
TorpedoSkyline has quit [Client Quit]
yfeldblum has quit [Ping timeout: 255 seconds]
sectionme has quit [Ping timeout: 255 seconds]
wjimenez5271 has quit [Ping timeout: 246 seconds]
banister_ has joined #ruby
banister_ has quit [Max SendQ exceeded]
renier has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
banister_ has joined #ruby
ValicekB has joined #ruby
banister_ has quit [Max SendQ exceeded]
mattmcclure has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister_ has joined #ruby
banister_ has quit [Max SendQ exceeded]
Synthead has joined #ruby
banister_ has joined #ruby
banister_ has quit [Max SendQ exceeded]
io_syl has quit []
zz_LoRdToLsToI has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
douglasssssss has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
icarus has joined #ruby
zeusmns_ is now known as zeusmns
benzrf is now known as benzrf|offline
b1nd has quit [Ping timeout: 260 seconds]
Lewix has quit [Remote host closed the connection]
chth0n has quit [Ping timeout: 276 seconds]
patrick99e99 has joined #ruby
qmfnp_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lewix has joined #ruby
b1nd has joined #ruby
LekeFly has joined #ruby
tjr9898 has joined #ruby
hamakn has joined #ruby
Photism has joined #ruby
soheil has joined #ruby
Takle has joined #ruby
cyrinux has quit [Ping timeout: 268 seconds]
intnsity has quit [Ping timeout: 240 seconds]
intnsity has joined #ruby
Takle has quit [Remote host closed the connection]
b1nd has quit [Ping timeout: 240 seconds]
warprobot has joined #ruby
H1d3r has left #ruby [#ruby]
Wolland has quit [Remote host closed the connection]
b1nd has joined #ruby
olivier_bK has quit [Ping timeout: 240 seconds]
deric_skibotn has joined #ruby
hamakn has quit [Ping timeout: 240 seconds]
jimms has joined #ruby
xcv has quit [Ping timeout: 260 seconds]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dopie has joined #ruby
spider-mario has joined #ruby
Kricir has quit [Remote host closed the connection]
spider-mario has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
mengu has quit []
mikecmpbll has quit [Ping timeout: 260 seconds]
diegoviola has quit [Ping timeout: 246 seconds]
soheil has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 240 seconds]
spider-mario has joined #ruby
sinkensabe has quit [Remote host closed the connection]
panzi has joined #ruby
jusmyth has joined #ruby
warprobot has quit [Remote host closed the connection]
sinkensabe has joined #ruby
timgauthier has joined #ruby
Kricir has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby
<panzi> I can't find any ruby lib to work with colors that supports alpha channels, operations like getting brightness and changing brightness (and if possible parsing and generating any kind of css color value, like, lightgray, #ffcc00 and rgba(0, 0, 0, 0.5))
wallerdev has quit [Quit: wallerdev]
intnsity has quit [Ping timeout: 240 seconds]
<panzi> does anyone know such a lib?
Kricir has joined #ruby
<jhass> compass? :P
intnsity has joined #ruby
<workmad3> well, sass in general
<panzi> jhass: yeah but I need to do it in ruby, not compass
ahhMichael has joined #ruby
mozzarella has quit [Quit: Where is this girlfriend the Oracle promised me?]
<panzi> if I could use whatever classes sass/compass uses for manipulating colors that would be great. but I cant find any documentation on it that
<shevy> panzi color-tools
mozzarella has joined #ruby
djbkd has joined #ruby
<panzi> shevy: does not support alpha
<shevy> looks as if it was abandoned :(
<panzi> shevy: neither does color (http://rubydoc.info/gems/color/1.7.1/frames)
kenneth has joined #ruby
einarj has quit [Remote host closed the connection]
poulet_a has quit [Ping timeout: 264 seconds]
<shevy> that all sucks but you can see how it originated
<shevy> "Color is the result of a project merge between color.rb 0.1.0 by Matt Lyon and color-tools 1.3 by Austin Ziegler."
JohnFord has joined #ruby
pu22l3r has joined #ruby
<shevy> perhaps you will be the guy to create a new project
<shevy> a merger
<shevy> :)
sinkensabe has quit [Remote host closed the connection]
mupkoo has quit [Remote host closed the connection]
Sammael has joined #ruby
<panzi> I have no time for that. I need to implement this *now*
<panzi> and I won't do any ruby project in my spare time. ruby is not a language I use for fun
fabrice31 has joined #ruby
saarinen has joined #ruby
<wasamasa> :|
u6aBeWPy has joined #ruby
pu22l3r has quit [Ping timeout: 276 seconds]
nemish has joined #ruby
u6aBeWPy has quit [Max SendQ exceeded]
sailias has quit [Quit: Leaving.]
wjimenez5271 has joined #ruby
JonnieCache has quit [Ping timeout: 240 seconds]
patrick99e99 has quit [Ping timeout: 272 seconds]
u6aBeWPy has joined #ruby
valner has quit [Remote host closed the connection]
valner has joined #ruby
<nemish> quick ruby syntax help... if foo == 'bar' && something == 'boo' || somethingelse == 'bas' && last == 'yes'... does that work with the OR or does that screw up the &&?
<shevy> lol
mupkoo has joined #ruby
u6aBeWPy has quit [Max SendQ exceeded]
fabrice31 has quit [Ping timeout: 246 seconds]
<shevy> I think && and || have the same precedence
nanoyak has joined #ruby
u6aBeWPy has joined #ruby
qmfnp has joined #ruby
<shevy> that reminds me... I need to store the precedence rule in ruby into a file
<jhass> no, && has a higher precedence thatn ||
<jhass> and and or have the same precedence though
SilkFox_ has joined #ruby
<jhass> nemish: so you need to take care of the precedence so the expression really means what you think it does but syntactical it's valid
<shevy> nemish there is the precedence table http://www.techotopia.com/index.php/Ruby_Operator_Precedence
<nemish> so basically i want foo && last && either something or somethingelse... so will this work or will the || cause last or foo to be not required?
<shevy> hmm that table sucks, let me find another one
<shevy> AHA
xcv has joined #ruby
<shevy> someone wrote it :)
sailias has joined #ruby
nanoyak has quit [Client Quit]
andikr has quit [Remote host closed the connection]
Avahey_ has quit [Quit: Connection closed for inactivity]
IanMalcolm has joined #ruby
arup_r has quit [Ping timeout: 240 seconds]
cirn0_ has joined #ruby
momomomomo_ has joined #ruby
FDj_ is now known as FDj
<nemish> right but i'm basically trying to avoid foo and something OR somethingelse and last... i want foo AND last with something or somethingelse
nanoyak has joined #ruby
<nemish> so would wrapping in () fix that?
JBreit has joined #ruby
<nemish> so foo == 'bar' && (something == 'value1' || somethingelse == 'value2') && last == 'yes'
zeroNones has quit [Ping timeout: 255 seconds]
nobitanobi has joined #ruby
<centrx> nemish, Put the logic in methods, not stringing along a long expression
ptrrr has joined #ruby
<centrx> nemish, foo_bar? && something? && last?
momomomomo has quit [Ping timeout: 252 seconds]
momomomomo_ is now known as momomomomo
SilkFox_ has quit [Ping timeout: 245 seconds]
JBreit has left #ruby [#ruby]
patrick99e99 has joined #ruby
albedoa has quit [Read error: Connection reset by peer]
albedoa has joined #ruby
sectionme has joined #ruby
mkaesz has joined #ruby
<nemish> centrx: sorry don't really understands methods here in this case... i'm trying to modify existing ruby code... so I'm not a ruby coder at all :(
<shevy> centrx I think php has some crazy precedence rules
gccostab_ has quit [Read error: Connection reset by peer]
cirn0_ has quit [Ping timeout: 264 seconds]
<nemish> so basically trying to do: if os_key == 'RedHat' && Facter.value(:operatingsystem) == 'RedHat' || Facter.value(:operatingsystem) == 'CentOS' && Facter.value(:operatingsystemrelease).to_i >= 7
<centrx> PHP has some crazy { }
_justin has joined #ruby
hellangel7 has joined #ruby
<shevy> $f = false or true;
RaCx has joined #ruby
_justin has quit [Client Quit]
gccostabr has joined #ruby
<shevy> hey... that php example looks like ruby... hmm
<shevy> >> $f = false or true
<eval-in____> shevy => true (https://eval.in/187875)
<shevy> ack
bmurt_ has joined #ruby
<centrx> nemish, Use ['RedHat', 'CentOS'].include?(Factor.value(:operatingsystem))
sambao21 has quit [Quit: Computer has gone to sleep.]
bmurt has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby
bmurt_ has quit [Client Quit]
u6aBeWPy has quit [Ping timeout: 268 seconds]
<nemish> centrx: awesome thanks
kiki_lam1 has quit [Quit: leaving]
anaeem1_ has joined #ruby
bmurt has joined #ruby
kiki_lamb has joined #ruby
<pagioss> is this a correct json representation? http://pastie.org/9524684
pushpak has joined #ruby
orolo has quit [Quit: This computer has gone to sleep]
sambao21 has joined #ruby
yfeldblum has joined #ruby
wallerdev has joined #ruby
threesixes has joined #ruby
u6aBeWPy has joined #ruby
dANOKELOFF has joined #ruby
pagioss is now known as pagios
Kricir has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 276 seconds]
agjacome has joined #ruby
Kricir has joined #ruby
timgauthier is now known as timgauthier_isaw
cocotton has joined #ruby
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orolo has joined #ruby
<centrx> pagios, The trailing comma might be a problem
yfeldblum has quit [Ping timeout: 252 seconds]
<centrx> pagios, Even though JavaScript itself is fine with it
<workmad3> pagios: http://jsonlint.com/
jheg has joined #ruby
<pagios> thank you
io_syl has joined #ruby
douglasssssss has joined #ruby
DesertCreature has quit [Read error: Connection reset by peer]
jeroenvisser101 has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
Hobogrammer has joined #ruby
bjz has quit [Read error: Connection reset by peer]
yeticry has quit [Ping timeout: 260 seconds]
bjz has joined #ruby
Spami has joined #ruby
blackmesa has joined #ruby
chipotle has quit [Quit: cya]
yeticry has joined #ruby
yibeikafei has joined #ruby
oxbrna has quit [Remote host closed the connection]
colli5ion has quit [Ping timeout: 276 seconds]
aspires has quit []
User458764 has quit [Ping timeout: 268 seconds]
User4587_ has joined #ruby
hartsocks has joined #ruby
lkba has quit [Ping timeout: 276 seconds]
timgauthier has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Remote host closed the connection]
nanoyak has joined #ruby
Kricir has joined #ruby
rockdon_ is now known as rockdon|away
jay has joined #ruby
OffTheRails has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
<shevy> hmm hmm hmm
<jhass> pagios: if you build a ruby data structure like a hash and then to_json it you won't have to ask that question
opus has joined #ruby
_lazarevsky has quit [Ping timeout: 246 seconds]
mercwithamouth has quit [Ping timeout: 255 seconds]
jeroenvisser101 has quit [Ping timeout: 246 seconds]
m8 has joined #ruby
jusmyth has quit [Quit: Leaving.]
IanMalcolm has left #ruby ["Textual IRC Client: www.textualapp.com"]
havenwood has joined #ruby
AlexBlom has quit [Quit: This computer has gone to sleep]
jack_rabbit has joined #ruby
sylvanica has quit [Ping timeout: 268 seconds]
sigurding has quit [Quit: sigurding]
jusmyth has joined #ruby
jusmyth has left #ruby [#ruby]
jeroenvisser101 has joined #ruby
thams has joined #ruby
sylvanica has joined #ruby
SilkFox has quit [Ping timeout: 245 seconds]
Scotteh_ has quit [Ping timeout: 276 seconds]
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lemur has joined #ruby
benzrf|offline is now known as benzrf
<miah> or even JSON.parse a loaded file
bwilson has joined #ruby
seamon has joined #ruby
michaeldeol has joined #ruby
dtcrshr has joined #ruby
pabloh has quit [Ping timeout: 260 seconds]
aspires has joined #ruby
chihhsin has quit [Quit: leaving]
W0rmDr1nk has quit [Ping timeout: 264 seconds]
chihhsin has joined #ruby
sectionme has quit [Ping timeout: 268 seconds]
pabloh has joined #ruby
timgauthier is now known as timgauthier_isaw
chihhsin has quit [Client Quit]
banjara has joined #ruby
braincrash has quit [Quit: bye bye]
AxonetBE has joined #ruby
jottr has joined #ruby
chihhsin has joined #ruby
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jheg has quit [Quit: jheg]
lemur has quit [Ping timeout: 264 seconds]
qwyeth has quit [Remote host closed the connection]
braincrash has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
AxonetBE has quit [Quit: AxonetBE]
claymore has quit [Ping timeout: 255 seconds]
tvw has quit []
SilkFox has joined #ruby
pandaant has quit [Quit: Lost terminal]
TheTopBloke has joined #ruby
jeroenvisser101 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has joined #ruby
<shevy> star.rb:81:in `create_optionparser': invalid option: --xmdfile
<shevy> hmm
<shevy> how do you set --foo=/bla.txt options in optparse?
User458764 has joined #ruby
rok_ has joined #ruby
<rok_> hi, newbie question, what is a good resource for sinatra?
claymore has joined #ruby
mahlon has quit [Quit: nine foot long outhouse ladle]
<benzrf> rok_: the wbesite
User4587_ has quit [Ping timeout: 272 seconds]
aspires has quit []
<rok_> ok, yeah, the official docs are great, how about something outside, like a tutorial?
lw has joined #ruby
aspires has joined #ruby
pu22l3r has joined #ruby
thams has quit [Quit: thams]
ramfjord has joined #ruby
yetanotherdave has joined #ruby
Takle has quit [Ping timeout: 260 seconds]
aspires has quit [Client Quit]
zeroNones has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
dANOKELOFF has quit [Remote host closed the connection]
zeroNone_ has joined #ruby
aspires has joined #ruby
lw has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
atmosx has joined #ruby
chipotle has joined #ruby
pu22l3r has quit [Ping timeout: 246 seconds]
User458764 has quit [Ping timeout: 255 seconds]
chipotle has quit [Client Quit]
RaCx has quit [Ping timeout: 255 seconds]
thams has joined #ruby
aspires has quit [Client Quit]
blueOxigen has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
zeroNone_ has quit [Ping timeout: 246 seconds]
zeroNones has quit [Ping timeout: 264 seconds]
thams has quit [Client Quit]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 268 seconds]
<shevy> do I see this right
<shevy> I can not use --foo=/bla.txt with optparse??
renderfu_ has joined #ruby
SilkFox_ has joined #ruby
omosoj has joined #ruby
momomomomo has quit [Quit: momomomomo]
robh71 has joined #ruby
<shevy> is there any other parser that allows = ?
<wallerdev> dont you normally use spaces?
thams has joined #ruby
<benzrf> rok_: the site has a tutorial
<benzrf> wallerdev: not for long opts
<benzrf> traditionally you have
<benzrf> -o foo
<benzrf> --foo=foo
renderful has quit [Ping timeout: 264 seconds]
michaeldeol has quit [Read error: Connection reset by peer]
<wallerdev> ah
<shevy> wallerdev well --prefix=/usr/local
<wallerdev> yeah
SilkFox_ has quit [Ping timeout: 268 seconds]
atmosx has quit [Quit: Lost in trance]
<wallerdev> ive used that before haha
soheil has joined #ruby
benlieb has joined #ruby
zeroNones has joined #ruby
zeroNones has quit [Max SendQ exceeded]
panzi has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140730101922]]
<shevy> actually that works
<shevy> I tested it in another commandline
<shevy> for some reason though, --xmdfile is not liked ...
rdark has quit [Quit: leaving]
pranny has joined #ruby
michaeldeol has joined #ruby
rok_ has left #ruby [#ruby]
io_syl has quit []
motto has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
sk87 has joined #ruby
krisquigley has joined #ruby
frankle has joined #ruby
m8 has quit [Ping timeout: 260 seconds]
sk87 has quit [Client Quit]
Ankhers has quit [Ping timeout: 264 seconds]
<shevy> oh man
<shevy> turns out I was calling the wrong alias
x1337807x has joined #ruby
bricker`1ork has joined #ruby
<wallerdev> lol
mijicd has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
mijicd has quit [Client Quit]
bricker`work has quit [Ping timeout: 252 seconds]
RaCx has joined #ruby
lkba has joined #ruby
AlexBlom has joined #ruby
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dANOKELOFF has joined #ruby
mahlon has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mahlon has quit [Client Quit]
lw has joined #ruby
opus has quit []
lw has quit [Read error: Connection reset by peer]
lw has joined #ruby
michaeldeol has joined #ruby
thams has quit [Quit: thams]
sylvanica1 has joined #ruby
bmurt_ has joined #ruby
sylvanica has quit [Ping timeout: 268 seconds]
mahlon has joined #ruby
bmurt has quit [Ping timeout: 260 seconds]
luckyruby has quit [Ping timeout: 264 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
whowantstolivefo has joined #ruby
jeroenvisser101 has joined #ruby
thams has joined #ruby
lw has quit [Ping timeout: 255 seconds]
theRoUS has left #ruby ["Off to another part of the maze of twisty little passages"]
jeroenvi_ has joined #ruby
seamon has quit [Quit: Zzzzzzz]
User458764 has joined #ruby
sambao21 has joined #ruby
elaptics is now known as elaptics`away
Lewix has quit [Remote host closed the connection]
jeroenvisser101 has quit [Ping timeout: 260 seconds]
sigurding has joined #ruby
RaCx has joined #ruby
GhettoJava has joined #ruby
aspires has joined #ruby
chipotle has joined #ruby
jeroenvi_ has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
sectionme has joined #ruby
dANOKELOFF has quit [Remote host closed the connection]
yetanotherdave has quit [Quit: Lost terminal]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vt102 has joined #ruby
yetanotherdave has joined #ruby
lemur has joined #ruby
seamon has joined #ruby
xcv has quit [Remote host closed the connection]
Advocation has joined #ruby
ghr has joined #ruby
JoshGlzBrk has joined #ruby
AxonetBE has joined #ruby
sectionme has quit [Ping timeout: 268 seconds]
pabloh has quit [Ping timeout: 260 seconds]
Fire-Dragon-DoL has quit [Quit: Leaving.]
thumpba_ has quit [Read error: Connection reset by peer]
thumpba has joined #ruby
lemur has quit [Ping timeout: 272 seconds]
ghr has quit [Ping timeout: 245 seconds]
Kricir has quit [Remote host closed the connection]
benlieb has quit [Remote host closed the connection]
Kricir has joined #ruby
fabrice31 has joined #ruby
xsdg has quit [Quit: leaving]
Lewix has joined #ruby
Bumptiou_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
sailias has quit [Read error: Connection reset by peer]
sailias has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
ValicekB has quit [Ping timeout: 240 seconds]
thumpba has quit [Read error: Connection reset by peer]
fabrice31 has quit [Ping timeout: 272 seconds]
aspires has quit []
thumpba has joined #ruby
momomomomo has joined #ruby
aspires has joined #ruby
chipotle has quit [Quit: cya]
chrishough has joined #ruby
zarul has quit [Ping timeout: 240 seconds]
i_s has joined #ruby
pu22l3r has joined #ruby
aspires has quit [Client Quit]
RaCx has quit [Quit: Computer has gone to sleep.]
d4nku has joined #ruby
kirun has joined #ruby
RaCx has joined #ruby
chrisja has quit [Quit: leaving]
ght_ is now known as ght
wallerdev has quit [Quit: wallerdev]
Wolland has joined #ruby
RaCx has quit [Client Quit]
braincrash has quit [Ping timeout: 272 seconds]
elstif has quit [Quit: Leaving.]
pu22l3r has quit [Ping timeout: 268 seconds]
<emmesswhy> guys, i want the user to enter N number of strings and N number of strings only
<emmesswhy> so if i type "Enter a number of strings to type out"
<emmesswhy> and they give me 5
<emmesswhy> i want them to be able to type in only 5 strings
jheg has joined #ruby
<emmesswhy> any easy way to do this?
robustus has quit [Ping timeout: 250 seconds]
lw has joined #ruby
d4nku has quit []
ValicekB has joined #ruby
danku has joined #ruby
<jhass> emmesswhy: 5.times do strings << gets; end ?
thams has quit [Quit: thams]
JohnFord has joined #ruby
hartsocks has left #ruby [#ruby]
radosch has quit [Quit: radosch]
thams has joined #ruby
<jhass> that is gets.to_i.times do
RaCx has joined #ruby
<Lewix> hi all
nanoyak has quit [Quit: Computer has gone to sleep.]
SilkFox_ has joined #ruby
<emmesswhy> jhass: so what would the correct line of code look like? sorry a little confused still
olivier_bK has joined #ruby
thams has quit [Client Quit]
aspires has joined #ruby
momomomomo has quit [Quit: momomomomo]
lw has quit [Ping timeout: 264 seconds]
<jhass> emmesswhy: let's break it up. Do you know how to read in a number?
Advocation has quit [Quit: Advocation]
<emmesswhy> yes
<jhass> show
<emmesswhy> num = gets.chomp let's say
pranny1 has joined #ruby
<jhass> okay
<jhass> next step: do you know how to do something n times
robustus has joined #ruby
pranny has quit [Ping timeout: 240 seconds]
<emmesswhy> num.times { code here }
<emmesswhy> or do ... end
<jhass> okay, good
ahmads has joined #ruby
zarul has joined #ruby
<jhass> we're already half way there
<jhass> do you know arrays ?
<emmesswhy> yes
aspires has quit [Client Quit]
<jhass> do you know how to append something to an array?
braincrash has joined #ruby
<emmesswhy> array.push [whatever]
thams has joined #ruby
<jhass> okay
<jhass> so, now put it all together
cirn0_ has joined #ruby
dtcrshr has quit [Quit: Saindo]
RaCx has quit [Ping timeout: 260 seconds]
<emmesswhy> um
definiv has joined #ruby
<emmesswhy> ummmm
soheil has quit [Remote host closed the connection]
<jhass> try!
<emmesswhy> okay
<emmesswhy> so the code in the block
<emmesswhy> array << gets.chomp.to_i
<emmesswhy> ?
SilkFox_ has quit [Ping timeout: 276 seconds]
<jhass> yes, << is basically an alias for push
<emmesswhy> would that work?
<emmesswhy> o.o
<jhass> if array is initialized correctly, sure
pabloh has joined #ruby
bricker`1ork is now known as bricker`work
<jhass> also already get used to find nice variable names
<jhass> don't describe the type of the variable, describe what it means
<jhass> so let's say you want to read in movie titles
soheil has joined #ruby
ahmads has quit [Read error: Connection reset by peer]
<jhass> then it's number_of_titles = gets.to_i; movie_titles = []; number_of_titles.times do
RaCx has joined #ruby
ahmads has joined #ruby
ahmads has quit [Read error: Connection reset by peer]
aspires has joined #ruby
dcoxall has joined #ruby
cirn0_ has quit [Ping timeout: 260 seconds]
albedoa has quit [Read error: Connection reset by peer]
jay has quit [Remote host closed the connection]
Kricir has joined #ruby
Mon_Ouie has quit [Ping timeout: 272 seconds]
nobitanobi has quit [Read error: Connection reset by peer]
renderful has joined #ruby
tjr9898 has quit []
aspires has quit [Client Quit]
<emmesswhy> sweet, jhass
<emmesswhy> i really get it now - that's the important part
<emmesswhy> thank you!
GriffinHeart has joined #ruby
nobitanobi has joined #ruby
<jhass> you're welcome
zly has quit [Changing host]
zly has joined #ruby
skolman has quit [Remote host closed the connection]
benlieb has joined #ruby
jimms has quit []
wald0 has joined #ruby
renderfu_ has quit [Ping timeout: 240 seconds]
Morkel has joined #ruby
pranny1 has quit [Ping timeout: 264 seconds]
pranny has joined #ruby
u6aBeWPy has quit [Ping timeout: 272 seconds]
soheil has quit [Remote host closed the connection]
qmfnp has joined #ruby
JimmyNeutron has joined #ruby
Kricir has quit [Ping timeout: 276 seconds]
qmfnp has quit [Client Quit]
GriffinHeart has quit [Ping timeout: 268 seconds]
thams has quit [Quit: thams]
aspires has joined #ruby
thams has joined #ruby
kaspergrubbe has joined #ruby
cek has joined #ruby
<cek> NameError: undefined local variable or method `byebug'
<cek> byebug -I"lib:test" test/my_test.rb
<cek> What could be wrong there?
Kricir has joined #ruby
marr has joined #ruby
everett has quit [Ping timeout: 245 seconds]
mollitz has quit [Ping timeout: 260 seconds]
marr has quit [Read error: Connection reset by peer]
aspires has quit [Client Quit]
marr has joined #ruby
Bumptious has joined #ruby
u6aBeWPy has joined #ruby
u6aBeWPy has quit [Max SendQ exceeded]
gnash has quit [Quit: gnash]
Photism has quit [Quit: Leaving]
Spami has quit [Quit: This computer has gone to sleep]
ptrrr has quit [Quit: ptrrr]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bwilson has quit [Quit: bwilson]
thams has quit [Quit: thams]
aspires has joined #ruby
michaeldeol has joined #ruby
havenwood has quit [Remote host closed the connection]
KnownSyntax_ is now known as KnownSyntax
michaeldeol has quit [Client Quit]
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
havenwood has joined #ruby
albedoa has joined #ruby
xcv has joined #ruby
anshin has quit [Quit: storming]
djbkd has quit [Remote host closed the connection]
ghostmoth has quit [Quit: ghostmoth]
lxsameer has joined #ruby
<lxsameer> hey guys does any one have problems with installing nokogiri 1.6.3.1 on rbenv ?
havenwood has quit [Ping timeout: 264 seconds]
thams has joined #ruby
<cek> anyone?
jheg has quit [Quit: jheg]
Morkel has quit [Quit: Morkel]
<cek> okay, correct answer is you have to "require 'byebug'" first
cek has left #ruby [#ruby]
claymore has quit [Quit: Leaving]
bricker`work has quit [Ping timeout: 255 seconds]
jheg has joined #ruby
bwilson has joined #ruby
bmurt_ is now known as bmurt
ghr has joined #ruby
jdjkelly_ has joined #ruby
xcv has quit [Remote host closed the connection]
skolman has joined #ruby
axsuul has quit [Ping timeout: 264 seconds]
ghr has quit [Ping timeout: 246 seconds]
pabloh has quit [Quit: Saliendo]
Scotteh_ has joined #ruby
Sindy has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
St_Marx has joined #ruby
St_Marx has quit [Remote host closed the connection]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has joined #ruby
banjara has quit [Quit: Leaving.]
michaeldeol has joined #ruby
<wasamasa> ._.
<wasamasa> Sindy: nope
banjara has joined #ruby
<jhass> and no ops around :(
axsuul has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
hellangel7 has quit [Read error: Connection reset by peer]
LiohAu has quit [Quit: LiohAu]
lynxbat has joined #ruby
ghostmoth has joined #ruby
pu22l3r has joined #ruby
luckyruby has joined #ruby
jeroenvisser101 has joined #ruby
decoponio has quit [Quit: Leaving...]
sweetgum has joined #ruby
gnash has joined #ruby
nanoyak has joined #ruby
thams has quit [Quit: thams]
Logomachist has quit [Remote host closed the connection]
poulet_a has joined #ruby
jgrevich has joined #ruby
<sweetgum> hi, can someone help me with my issue... https://gist.github.com/anonymous/c4bd09e2ab9838e14639 i'm trying to ruby-build 2.0.0-p247 ~/.rubies/2.0.0-p247 so that i can chruby 2.0.0 then gem install bundler
yokel has joined #ruby
jeroenvisser101 has quit [Client Quit]
tesaf has joined #ruby
pu22l3r has quit [Ping timeout: 260 seconds]
txdv has quit [Read error: Connection reset by peer]
<workmad3> sweetgum: I'd recommend using ruby-install rather than ruby-build... ruby-install will install required dependencies via the package manager and dynamically link dependencies (easier to update dependencies without rebuilding ruby)
txdv has joined #ruby
<workmad3> sweetgum: the issue there seems to be that you haven't installed any C compiler or the standard build toolchain
lw has joined #ruby
djbkd has joined #ruby
thams has joined #ruby
<sweetgum> dbclick pls
brandon_ has quit [Ping timeout: 240 seconds]
<sweetgum> workmad: i changed ruby-build to ruby-install, 'ruby-install command not foudn '
<workmad3> sweetgum: you'd need to install it first
<workmad3> sweetgum: it's a different package
cocotton_ has joined #ruby
<sweetgum> terminal command pls?
<workmad3> sweetgum: !g postmodern ruby-install
SilkFox_ has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
wallerdev has joined #ruby
lw has quit [Ping timeout: 264 seconds]
momomomomo has joined #ruby
shackleford has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 245 seconds]
<sweetgum> click this <-
cocotton has quit [Ping timeout: 272 seconds]
<sweetgum> click that <-
OffTheRails has joined #ruby
<workmad3> sweetgum: why are you telling us to click text? :/
toastynerd has quit [Remote host closed the connection]
<sweetgum> oops
cocotton_ has quit [Ping timeout: 260 seconds]
soheil has joined #ruby
shackleford has joined #ruby
seamon has quit [Quit: Zzzzzzz]
dcoxall has quit []
iceden has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
SilkFox_ has quit [Ping timeout: 272 seconds]
relix_ has joined #ruby
itspots has joined #ruby
nobitanobi has quit [Remote host closed the connection]
itspots has quit [Changing host]
itspots has joined #ruby
jheg has quit [Quit: jheg]
TaxmanBD has joined #ruby
emmesswhy has joined #ruby
relix has quit [Ping timeout: 245 seconds]
toastynerd has joined #ruby
Pancakes has quit [Ping timeout: 246 seconds]
nobitanobi has joined #ruby
krisquigley has quit []
nobitanobi has quit [Client Quit]
bricker`work has joined #ruby
postmodern has joined #ruby
JoshGlzBrk has joined #ruby
atmosx has joined #ruby
sparrovv has joined #ruby
sparrovv has quit [Remote host closed the connection]
momomomomo_ has joined #ruby
sparrovv has joined #ruby
W0rmDr1nk has joined #ruby
momomomomo has quit [Ping timeout: 245 seconds]
momomomomo_ is now known as momomomomo
MitchM has joined #ruby
frankle has quit [Quit: Connection closed for inactivity]
lxsameer has quit [Quit: Leaving]
Sindy has quit []
nobitanobi has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
iceden has joined #ruby
djbkd has joined #ruby
Jackneill has quit [Remote host closed the connection]
speaking1ode has joined #ruby
AxonetBE has quit [Quit: AxonetBE]
mupkoo has quit []
_Kerber0s_ has joined #ruby
sparrovv has quit [Ping timeout: 268 seconds]
speakingcode has quit [Ping timeout: 246 seconds]
rockdon|away is now known as rockdon_
AlexBlom has quit [Quit: This computer has gone to sleep]
rockdon_ is now known as rockdon|away
Spami has joined #ruby
Kerber0s has quit [Ping timeout: 268 seconds]
ssvo has quit [Ping timeout: 240 seconds]
xcv has joined #ruby
sectionme has joined #ruby
<shevy> lol
* shevy clicks workmad3
poulet_a has quit [Ping timeout: 240 seconds]
spider-mario has quit [Ping timeout: 255 seconds]
ssvo has joined #ruby
toastynerd has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
AlexBlom has joined #ruby
User458764 has quit [Ping timeout: 268 seconds]
mikeg has quit [Ping timeout: 272 seconds]
elstif has joined #ruby
elstif has quit [Client Quit]
sectionme has quit [Ping timeout: 260 seconds]
toastynerd has joined #ruby
pranny has quit [Quit: Leaving.]
Takle has quit [Remote host closed the connection]
fabrice31 has joined #ruby
spider-mario has joined #ruby
CpuID has joined #ruby
spider-mario has quit [Remote host closed the connection]
andrewjanssen has joined #ruby
heftig_ is now known as heftig
<sweetgum> hm ok
<sweetgum> . <-
CpuID has quit [Client Quit]
jheg has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
fabrice31 has quit [Ping timeout: 260 seconds]
alvaro_o has joined #ruby
<sweetgum> get aliced
Takle has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mr-foobar has quit [Quit: Leaving...]
tesaf has quit [Quit: Lost terminal]
DfAsuka_ has quit [Quit: leaving]
speaking1ode is now known as speakingcode
jay_ has joined #ruby
ghr has joined #ruby
dawkirst has quit [Remote host closed the connection]
olivier_bK has quit [Ping timeout: 260 seconds]
Muz_ is now known as Muz
mkaesz has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
ghr has quit [Ping timeout: 246 seconds]
toastynerd has quit [Remote host closed the connection]
pietr0 has quit [Quit: pietr0]
pietr0 has joined #ruby
hiyosi has quit [Ping timeout: 246 seconds]
bricker`work has quit [Ping timeout: 272 seconds]
<sweetgum> hi. ERROR: Failed to build gem native extension. when i try to ruby sudo gem install cocoapods
bricker`work has joined #ruby
Wolland has quit [Remote host closed the connection]
Advocation has joined #ruby
Wolland has joined #ruby
dmyers has joined #ruby
dmyers has quit [Excess Flood]
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dmyers has joined #ruby
jottr has joined #ruby
sigurding has quit [Quit: sigurding]
spider-mario has joined #ruby
lamp_shade has joined #ruby
IceDragon_ has joined #ruby
<lamp_shade> Good morning!
baroquebobcat has quit [Ping timeout: 240 seconds]
IceDragon has quit [Ping timeout: 260 seconds]
pu22l3r has joined #ruby
Inhaling_ has joined #ruby
IceDragon_ is now known as IceDragon
mpistone has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 264 seconds]
toastynerd has joined #ruby
Wolland has quit [Ping timeout: 245 seconds]
<jhass> hi
chrishough has quit [Ping timeout: 246 seconds]
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
codecop has quit [Remote host closed the connection]
eivindml has joined #ruby
blackmesa has joined #ruby
eivindml has quit [Max SendQ exceeded]
freerobby has quit [Quit: Leaving.]
InhalingPixels has quit [Ping timeout: 240 seconds]
<lamp_shade> has anyone tried out ruboto for building native android apps in ruby?
jayalb has joined #ruby
Advocation has quit [Quit: Advocation]
gccostabr has joined #ruby
pu22l3r has quit [Ping timeout: 255 seconds]
livingstn has quit []
AxonetBE has joined #ruby
mockra_ has quit []
lw has joined #ruby
paulfm has quit []
chrisramon has joined #ruby
pietr0 has quit [Quit: pietr0]
toastynerd has quit [Remote host closed the connection]
_Kerber0s_ has quit [Read error: Connection reset by peer]
treehug88 has joined #ruby
SilkFox_ has joined #ruby
havenwood has joined #ruby
lw has quit [Ping timeout: 246 seconds]
atmosx has quit [Quit: Lost in trance]
SilkFox has quit [Ping timeout: 246 seconds]
valner has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
jayalb has left #ruby [#ruby]
<shevy> sweetgum you must try to find out the specific error. unpack the gem, then run extconf.rb manually
shackleford has quit [Remote host closed the connection]
<sweetgum> one second...
ptierno__ has quit [Quit: leaving]
sambao21 has joined #ruby
charliesome has joined #ruby
cirn0_ has joined #ruby
chrisramon has quit [Quit: chrisramon]
<havenwood> sweetgum: What do you get if you run this in Terminal?: xcode-select --install
pranny has joined #ruby
SilkFox_ has quit [Ping timeout: 268 seconds]
aclearman037 has quit []
sepp2k has quit [Quit: Konversation terminated!]
shackleford has joined #ruby
im0b has quit [Ping timeout: 260 seconds]
<sweetgum> Error: unknown command option '--install'.
sylvanica1 is now known as slester
sparrovv has joined #ruby
<sweetgum> yes
<havenwood> sweetgum: for?: xcode-select --install
<havenwood> sweetgum: what version of OS X? :O
bmurt has quit [Ping timeout: 245 seconds]
momomomomo has quit [Ping timeout: 260 seconds]
<sweetgum> 10.8.4
<havenwood> sweetgum: Is XCode installed?
joelroa has quit [Ping timeout: 260 seconds]
wjimenez_ has joined #ruby
nemish has quit [Ping timeout: 260 seconds]
jheg has quit [Quit: jheg]
im0b has joined #ruby
helpa has quit [Remote host closed the connection]
<havenwood> sweetgum: from #rvm looks like you're installing gcc, so you could just go that route instead
helpa has joined #ruby
cirn0_ has quit [Ping timeout: 246 seconds]
<havenwood> sweetgum: Usually Homebrew users install XCode and it's Command Line Tools for build tools.
<havenwood> its*
pranny has quit [Ping timeout: 252 seconds]
anaeem1_ has quit [Remote host closed the connection]
whowantstolivefo has quit [Quit: whowantstolivefo]
hiyosi has joined #ruby
joelroa has joined #ruby
wjimenez5271 has quit [Ping timeout: 255 seconds]
<sweetgum> ya xcode is installed
slester has quit [Quit: slester]
everett has joined #ruby
<havenwood> sweetgum: Check the output of: brew doctor
lynxbat has quit [Quit: Textual IRC Client: www.textualapp.com]
nemish has joined #ruby
<sweetgum> oh
<sweetgum> my xcode is outdated
<shevy> sweetgum come to linux man
<shevy> leave behind your dark past
<sweetgum> shevy: for iOS development?
<shevy> for everything
<sweetgum> shevy: how can i code for ios with linux
<shevy> I am sure you can VM things
emmesswhy has quit [Quit: This computer has gone to sleep]
fsapo has quit [Remote host closed the connection]
<sweetgum> oh
<sweetgum> i don't care to =p
Mon_Ouie has joined #ruby
<sweetgum> someone should write an xcode for linux tho
<sweetgum> can't gcc compile objective-c
Inhaling_ has quit [Remote host closed the connection]
<shevy> I think it can
hiyosi has quit [Ping timeout: 245 seconds]
chrishough has joined #ruby
<shevy> there is a switch to --enable-languages
<sweetgum> oh
<sweetgum> which distro do u prefer shevy
redlegion has quit [Ping timeout: 260 seconds]
<sweetgum> ubuntu is so easy to install...
<shevy> my current gcc has these: --enable-languages=c,c++,objc,fortran
<shevy> I compile from source sweetgum
<sweetgum> that's cool.
<shevy> with ruby
<sweetgum> oh
InhalingPixels has joined #ruby
<sweetgum> do u use a windows manager?
ramblinpeck_ is now known as ramblinpeck
<shevy> hmm right now I run KDE but usually I use fluxbox. but mostly, I don't care, I just want KDE konsole (or gnome-terminal), and my editor, then I can use ruby, then I am happy. the rest I don't care much, I am more a RubyOS guy without ruby in the OS
<shevy> the big desktop environments get a lot into my way
AxonetBE has quit [Quit: AxonetBE]
ramblinpeck is now known as ramblinpeck_
<sweetgum> what is it u do with your computer?
aspires has quit []
<shevy> hmmm
ldnunes has quit [Quit: Leaving]
<shevy> most of the time, I have to read pdfs
<shevy> right now I work through some 300 pages boring shit
<sweetgum> .
<shevy> after that, I think I mostly write a bit of ruby, to try and make tasks simpler or easier
<sweetgum> awsome
<shevy> about 5 days ago I wrote a "gnome update script"
<sweetgum> is this your ocuppation?
<shevy> sweetgum well somewhat... work-related I am supposed to deal with electron microscopy datasets, which is actually pretty boring after a while
<shevy> most of the GUIs are written in python and C++
pietr0 has joined #ruby
Sawbones_ has quit []
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
absolutezeroff has quit [Quit: Leaving]
<shevy> I could perhaps compete against python but not against C++ :(
nobitanobi has quit []
<sweetgum> shevy: what do u do with the data?
aspires has joined #ruby
<sweetgum> if i get aroudn to writing an OS itll be a minimal computer to run portable executable files specifacllay videogames
Kerber0s has joined #ruby
zorak8 has quit [Ping timeout: 255 seconds]
Kerber0s has quit [Remote host closed the connection]
<shevy> most of the time right now try to make sense of the generated text files, or try to generate valid text files -> this here is a small one http://pastie.org/pastes/9525228/text it's like a .csv file I guess. there are much longer and more complicated ones, I dread the 60.000 lines ones with about 12 entries per line
<shevy> writing an OS is a huge undertaking
douglasssssss has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> I delegated myself downwards to smaller things
<shevy> like all GNU coreutil tools in ruby!
<sweetgum> i suppose not even an os
<sweetgum> but just a linux compilation that runs portable executables, beyond wines bounds
cajone has left #ruby [#ruby]
cajone has joined #ruby
<shevy> working on that (perhaps)
<sweetgum> oh?
ValicekB has quit [Ping timeout: 255 seconds]
<shevy> well
<shevy> if gcc can produce such binaries
<shevy> then ruby can act as a wrapper for this right?
<sweetgum> yeah gcc can produce portable executables
sectionme has joined #ruby
<sweetgum> hm... i'm not actaully so familiar with ruby. if you can elaborate?
<sweetgum> ( this is my first time using ruby )
<shevy> well that depends just on gcc then
<shevy> I would not know how to do that without gcc
andrewlio has quit [Quit: Leaving.]
<shevy> gcc has that --enable-multilib switch
bootstrappm has joined #ruby
<shevy> so for then having both 32 bit and 64 bit things on your computer
<shevy> wine prefers 32 bit
emmesswhy has joined #ruby
<shevy> in $HOME/.wine it complains if you did setup as 32 bit but your gcc does not have 64 bit
RaCx has joined #ruby
<shevy> like on default slackware... which is 64 bit noly
<shevy> *only
<shevy> I don't have a comfortable way to separate these yet, it's all rather messy
<shevy> /usr/lib /usr/lib64 /usr/lib/x86* /usr/lib/i386* I think...
<shevy> a mess
<sweetgum> ?
<sweetgum> are you saying, write a wrapper with ruby using gcc
definiv has quit [Quit: leaving]
<sweetgum> so that my linux can support exe files?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> well you would need a way to run them
sinkensabe has joined #ruby
sectionme has quit [Ping timeout: 272 seconds]
<sweetgum> yes. that's the part i was talking about.
<shevy> you want to run them without wine?
<sweetgum> yea
qwyeth has joined #ruby
<sweetgum> i want to write a better loader
<shevy> that would be a massive undertaking
<sweetgum> it's simple for .net
zorak8 has joined #ruby
<shevy> how big is .net?
<sweetgum> and well for older stuff, wouldn't it just be managing the DLL calls a windows program would make by handling the dlls with linux?
<sweetgum> what do you mean by how big is .net
reset has joined #ruby
whatasunnyday has joined #ruby
<sweetgum> example: notepad.exe requires interface drawing, keyboard inputs, and not much else...
<sweetgum> all of these things are in windows dlls
<sweetgum> if i load a windows dll into linux memory
<sweetgum> i can make 99% of the calls without trouble doesn't it seem that way?
<sweetgum> unless its an OS system interrupt ?
charliesome has quit [Quit: zzz]
<whatasunnyday> Hey, can someone point me to where I can find the source for gem list? I’m having a hard trouble navigating the code for rubygems. :(
qwyeth has quit [Client Quit]
Neomex has quit [Ping timeout: 255 seconds]
phutchins has quit [Remote host closed the connection]
mollitz has joined #ruby
jerius has quit []
agjacome has quit [Quit: leaving]
ValicekB has joined #ruby
kristofferR has joined #ruby
qhartman has joined #ruby
ghr has joined #ruby
<sweetgum> ...
aspires has quit []
sylvanica has joined #ruby
siwica1 has joined #ruby
siwica has quit [Ping timeout: 255 seconds]
ValicekB has quit [Ping timeout: 264 seconds]
<havenwood> sweetgum: bump to 10.9 if you can, it's almost 10.10 time :P
ghr has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
<sweetgum> k
sparrovv has quit [Remote host closed the connection]
<sweetgum> one second...
<sweetgum> im updating xcode
reset has quit [Quit: Linkinus - http://linkinus.com]
dc__ has joined #ruby
seamon has joined #ruby
benlieb has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
b1nd has quit [Ping timeout: 245 seconds]
AlexBlom has quit [Quit: This computer has gone to sleep]
dc_ has quit [Ping timeout: 245 seconds]
xcv has quit [Remote host closed the connection]
reset has joined #ruby
reset has quit [Remote host closed the connection]
reset has joined #ruby
<shevy> sweetgum well you brought the example of .net but I remember I usually have to download a lot of stuff before .net works
Neomex has joined #ruby
WildBamboo-Josh has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 246 seconds]
Azure has quit [Quit: Blue Sky Fish]
lynxbat has joined #ruby
lynxbat has quit [Max SendQ exceeded]
Kricir has quit [Remote host closed the connection]
aspires has joined #ruby
pu22l3r has joined #ruby
lynxbat has joined #ruby
Kricir has joined #ruby
axsuul_ has joined #ruby
b1nd has joined #ruby
mary5030 has quit [Remote host closed the connection]
<sweetgum> yea
ValicekB has joined #ruby
doodlehaus has quit [Remote host closed the connection]
necro has joined #ruby
<necro> I am trying to install "Rspec" as I am doing a ruby tutorial and am getting this error message : you don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory. -- How do I access this directory, how do I change it's permissions?
jay_ is now known as rubyonrailed
tvw has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
WildBamboo-Josh has joined #ruby
Scotteh_ has quit [Read error: Connection reset by peer]
pu22l3r has quit [Ping timeout: 240 seconds]
Scotteh_ has joined #ruby
renderfu_ has joined #ruby
Azure has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
tectonic has joined #ruby
tectonic has quit [Max SendQ exceeded]
dblessing has quit [Quit: dblessing]
gnash has quit [Quit: gnash]
andrewbredow has quit [Ping timeout: 245 seconds]
<jhass> necro: try gem install --user-install rspec
<necro> wow thank you, worked!
mary5030 has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
orolo has quit [Quit: This computer has gone to sleep]
bootstrappm has quit [Quit: Leaving]
dapadoupas has joined #ruby
nevans has quit [Ping timeout: 250 seconds]
ht__th has quit [Read error: Connection reset by peer]
ValicekB has quit [Ping timeout: 252 seconds]
renderful has quit [Ping timeout: 255 seconds]
sepp2k has joined #ruby
charliesome has quit [Quit: zzz]
M-Technic has quit [Ping timeout: 250 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
lw_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilkFox_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ahhMichael has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
lynxbat has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andrewbredow has joined #ruby
lw_ has quit [Ping timeout: 272 seconds]
nevans has joined #ruby
dc__ has quit [Remote host closed the connection]
qhartman has quit [Quit: Ex-Chat]
jamo_ is now known as Jamo
lynxbat has joined #ruby
SilkFox_ has quit [Ping timeout: 252 seconds]
M-Technic has joined #ruby
deric_skibotn has quit [Ping timeout: 240 seconds]
pranny has joined #ruby
<necro> Ok I downloaded rspec but this warning appeared: WARNING: You don't have /Users/dianatourjee/.gem/ruby/2.0.0/bin in your PATH, gem executables will not run.
selasi has joined #ruby
<selasi> I'm used to using 'next if' within a block in perl
jerius has joined #ruby
<selasi> is that the preferred way to short circuit a block in ruby?
deric_skibotn has joined #ruby
CpuID has joined #ruby
britneywright has joined #ruby
earthquake has joined #ruby
<jhass> necro: Please do not crosspost without at least telling so. Experience shows that people don't bother to inform the other channels of provided solutions, therefore it is considered rude.
<necro> oh thank you, my bad
ValicekB has joined #ruby
<jhass> selasi: well, kinda, it's a rare need in ruby though
hiyosi has joined #ruby
whatasunnyday has quit [Quit: whatasunnyday]
pranny has quit [Ping timeout: 245 seconds]
yfeldblu_ has joined #ruby
Neomex has quit [Read error: Connection reset by peer]
jgrevich_ has joined #ruby
jgrevich_ has quit [Client Quit]
jgrevich has quit [Read error: Connection reset by peer]
sylvanica has quit [Ping timeout: 272 seconds]
j_mcnally has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
DadoCe has joined #ruby
nfk has quit [Quit: yawn]
whatasunnyday has joined #ruby
sambao21 has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
blackmesa has quit [Quit: WeeChat 1.0]
x1337807x has joined #ruby
fabrice31 has joined #ruby
riotjone_ has joined #ruby
jobewan has quit [Quit: Leaving]
rockdon|away is now known as rockdon_
riotjones has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Ping timeout: 268 seconds]
DadoCe has quit [Remote host closed the connection]
MitchM has quit [Read error: Connection reset by peer]
sectionme has joined #ruby
MCDev has joined #ruby
Kislik has quit [Quit: Computer has gone to sleep.]
geggam has quit [Quit: commute]
blackmesa has joined #ruby
Kislik has joined #ruby
motto has quit [Quit: Sto andando via]
GhettoJava has quit [Quit: Leaving]
iceden has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
jack_rabbit has quit [Ping timeout: 272 seconds]
Lewix has quit [Read error: Connection reset by peer]
sectionme has quit [Ping timeout: 272 seconds]
Lewix has joined #ruby
earthquake has quit [Quit: earthquake]
albedoa has quit [Ping timeout: 240 seconds]
Kislik has quit [Ping timeout: 272 seconds]
<shevy> selasi often you can use .reject or .select before doing your block-processing
pietr0 has quit [Quit: pietr0]
blackmes1 has joined #ruby
pietr0 has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
nanoyak has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 245 seconds]
blackmes1 has quit [Client Quit]
coderhs has quit [Ping timeout: 260 seconds]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
jerius has quit []
ghr has joined #ruby
n_blownapart has joined #ruby
Wolland has joined #ruby
sambao21 has joined #ruby
jonr22 has joined #ruby
sambao21 has quit [Client Quit]
tiguser_ has quit [Ping timeout: 255 seconds]
britneywright has joined #ruby
sylvanica has joined #ruby
mary5030 has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
blackmesa has quit [Client Quit]
kirun has quit [Quit: Client exiting]
Scripore has joined #ruby
necro has quit [Ping timeout: 246 seconds]
treehug88 has quit []
sylvanica is now known as slester
gccostabr has joined #ruby
iceden has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 252 seconds]
nanoyak has joined #ruby
dapadoupas has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
earthquake has joined #ruby
gccostabr has quit [Client Quit]
blackmesa has joined #ruby
pietr0 has quit [Quit: pietr0]
sivoais has quit [Ping timeout: 240 seconds]
TheTopBloke has quit [Ping timeout: 276 seconds]
seamon has quit [Quit: Zzzzzzz]
narcan has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pu22l3r has joined #ruby
sectionme has joined #ruby
CpuID has quit [Read error: Connection reset by peer]
jonr22 has quit [Ping timeout: 268 seconds]
pietr0 has joined #ruby
seamon has joined #ruby
sweetgum has quit [Remote host closed the connection]
shevy has quit [Read error: Connection reset by peer]
pu22l3r has quit [Ping timeout: 276 seconds]
sectionme has quit [Ping timeout: 245 seconds]
Avahey_ has joined #ruby
doug1 has joined #ruby
mobiGeek10 has joined #ruby
mobiGeek9 has quit [Ping timeout: 240 seconds]
Inhaling_ has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
CpuID has joined #ruby
AlexBlom has joined #ruby
thumpba has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
Jake232 has joined #ruby
lw has joined #ruby
brandon_1 has joined #ruby
InhalingPixels has quit [Ping timeout: 245 seconds]
Guest10538 has joined #ruby
Guest10538 has quit [Changing host]
Lewix has quit [Read error: Connection reset by peer]
Guest10538 is now known as skarn
Lewix has joined #ruby
SilkFox_ has joined #ruby
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Max SendQ exceeded]
Sgeo has joined #ruby
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Max SendQ exceeded]
TorpedoSkyline has joined #ruby
heyts has joined #ruby
icebourg has quit []
itspots has quit [Quit: Lingo - http://www.lingoirc.com]
lmickh has quit [Remote host closed the connection]
doug1 has quit [Quit: WeeChat 0.4.3]
charliesome has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
lw has quit [Ping timeout: 245 seconds]
toastynerd has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Photism has joined #ruby
SilkFox_ has quit [Ping timeout: 246 seconds]
djbkd has quit [Remote host closed the connection]
TorpedoSkyline has quit [Client Quit]
cirn0_ has joined #ruby
pranny has joined #ruby
djbkd has joined #ruby
shevy has joined #ruby
shackleford has quit [Remote host closed the connection]
cirn0_ has quit [Ping timeout: 246 seconds]
hiyosi has joined #ruby
pranny has quit [Ping timeout: 264 seconds]
thams has quit [Quit: thams]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
rubyonrailed has quit [Remote host closed the connection]
mary5030 has joined #ruby
Inhaling_ has quit [Remote host closed the connection]
InhalingPixels has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hiyosi has quit [Ping timeout: 260 seconds]
Kerber0s has joined #ruby
TheNet has joined #ruby
jimms has joined #ruby
ohcibi_ has joined #ruby
blackmesa has quit [Quit: WeeChat 1.0]
_maes_ has quit [Ping timeout: 252 seconds]
pietr0 has quit [Quit: pietr0]
seamon has quit [Quit: Zzzzzzz]
jimms has quit [Client Quit]
wjimenez_ has quit [Remote host closed the connection]
MCDev has joined #ruby
GinoMan has joined #ruby
wjimenez5271 has joined #ruby
InhalingPixels has quit []
toastynerd has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
JoshGlzBrk has joined #ruby
banjara has joined #ruby
Kislik has joined #ruby
Bumptious has quit [Remote host closed the connection]
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
definiv has joined #ruby
thumpba has joined #ruby
Kerber0s has quit [Read error: Connection reset by peer]
kavinder has joined #ruby
Kislik has quit [Ping timeout: 245 seconds]
tekacs has quit [Ping timeout: 276 seconds]
Kerber0s has joined #ruby
ixti has quit [Quit: WeeChat 0.4.3]
AlexBlom has quit [Quit: This computer has gone to sleep]
dcope has joined #ruby
<dcope> how can i use gsub with parenthesis?
tekacs has joined #ruby
<shevy> .gsub()
<dcope> parens in the regex
<shevy> ah that ;)
<dcope> it works as expected, there was an error elswhere :D
<shevy> either \( \)
<shevy> or Regexp.quote()
<shevy> but \( is easier if it is a short regex really
<dcope> thank you shevy
<shevy> longer regexes can become really annoying
thumpba has quit [Ping timeout: 240 seconds]
<shevy> I hate path regexes
<shevy> >> "/bla/ble/blo".gsub(/(\/..e)/,'\\1 ok ')
<eval-in____> shevy => "/bla/ble ok /blo" (https://eval.in/188016)
greenride has joined #ruby
earthquake has quit [Quit: earthquake]
<workmad3> shevy: %r{(/..e)}
rubyonrailed has joined #ruby
<greenride> Using the ruby debugger, is there any way to examine blocks that are passed into methods via &block?
<workmad3> greenride: examine in what sense?
britneywright has joined #ruby
<havenwood> poke with stick
heyts has quit [Ping timeout: 272 seconds]
seamon has joined #ruby
<workmad3> well, you can poke them
<greenride> workmad3: print out the block
Kislik has joined #ruby
<greenride> I'm probably asking too much
project2501a has quit [Ping timeout: 245 seconds]
<greenride> by print... I mean print out the block's code.
icarus has quit [Remote host closed the connection]
ghr has joined #ruby
<workmad3> greenride: pry might be able to do that... but it would do so by being 'clever' and looking at block.source_location before slurping the code out of the file to display
aspires has quit []
<workmad3> greenride: ruby's introspection capabilities don't extend to recovering the source code though
<wasamasa> time to write a ruby vm that keeps track of the unrecovered source code
pietr0 has joined #ruby
OffTheRails has quit [Ping timeout: 260 seconds]
<workmad3> wasamasa: wouldn't surprise me if rubinius can achive it :)
<wasamasa> workmad3: mhh
pietr0 has quit [Client Quit]
<wasamasa> workmad3: a debug switch that makes it use twice as much ram, but gives you moar info
Kislik has quit [Ping timeout: 240 seconds]
<wasamasa> workmad3: that sounds pretty reasonable to me
<havenwood> marshalling a proc
MCDev has quit [Ping timeout: 250 seconds]
snath has quit [Ping timeout: 264 seconds]
aspires has joined #ruby
sparrovv has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
phoo1234567 has quit [Quit: Leaving]
definiv has quit [Quit: leaving]
<havenwood> human readable style >.>
kavinder has quit [Remote host closed the connection]
<havenwood> anyone going to RubyConf?
<pipework> o/
<havenwood> \o
nanoyak has quit [Read error: Connection reset by peer]
sparrovv has quit [Ping timeout: 264 seconds]
<havenwood> pipework: are you left handed?
<havenwood> pipework: j/k :P
n_blownapart has quit []
<pipework> havenwood: I am.
<havenwood> pipework: :O
Sht0 has quit [Ping timeout: 276 seconds]
<pipework> left hand is best hand
pu22l3r has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
<centrx> RubyConf 2014 is dedicated to providing a harassment-free conference experience for everyone, regardless of ..., body size, ....
<havenwood> centrx: whew, i'm good then
seamon has quit [Quit: Zzzzzzz]
Bumptious has joined #ruby
marr has quit []
sectionme has joined #ruby
anshin has joined #ruby
nanoyak has joined #ruby
<wallerdev> too many left handed techies
<havenwood> pipework: see you there! :)
<pipework> havenwood: Well, chances are we will, but will you know who I am if you did see me?
<havenwood> pipework: nope, would you me?
<pipework> (Just look for an asshole.)
<pipework> havenwood: yes, if you wear your name badge.
<pipework> Shannon Skipper, rite
<whatasunnyday> How good is the showing of #ruby at ruby conf?
matchaw has quit [Quit: No Ping reply in 180 seconds.]
<havenwood> mmm, i meant to put my company as havenwood, but yeah i did Shannon Skipper
<havenwood> so i'm Shannon Skipper, Shannon Skipper >.>
hamakn has joined #ruby
pu22l3r has quit [Ping timeout: 252 seconds]
matchaw has joined #ruby
thumpba has joined #ruby
<whatasunnyday> last name Shannon Skipper, first name… Shannon Skipper
<havenwood> Skipper on the river Shannon
mary5030 has quit [Remote host closed the connection]
<havenwood> there are many...
hamakn has quit [Remote host closed the connection]
hiyosi has joined #ruby
<havenwood> but this is mine.
<havenwood> name me anything but Sue!
<pipework> havenwood: SHA-nnon.
<wallerdev> last time i went to a ruby conf i felt like more than half the people there didnt know irc existed lol
bogeyd6 has joined #ruby
sectionme has quit [Ping timeout: 276 seconds]
seamon has joined #ruby
<pipework> This'll be my first large ruby conference.
* wasamasa got notified of a railscamp
<havenwood> pipework: :D
<wasamasa> I'm not sure what to think of this
<wallerdev> wheres rubyconf anyway
<havenwood> wallerdev: San Diego
paolo has joined #ruby
<wallerdev> oh cool
<wallerdev> you guys should check out legoland
<wallerdev> lol
siwica1 has quit [Quit: siwica1]
snath has joined #ruby
<centrx> it's better than that damned zoo
nanoyak has quit [Quit: Computer has gone to sleep.]
jmbrown412 has quit [Read error: Connection reset by peer]
<pipework> Where is San Diego anyways?
<wallerdev> or disneyland is pretty close too
<wallerdev> socal
jmbrown412 has joined #ruby
<havenwood> pipework: head south in california until you hit mexico then backup one step
<pipework> Where is Earth anyways?
<havenwood> pipework: otherwise known as the place of my birth
rubyonrailed has quit [Remote host closed the connection]
mrommelf has joined #ruby
paolo has left #ruby ["Leaving"]
seamon has quit [Client Quit]
banjara has quit [Quit: Leaving.]
<havenwood> whatasunnyday: it gets bigger every year
<wallerdev> san diego is cool, never been to the downtown area though
<wallerdev> just the surrounding area
lw has joined #ruby
<wallerdev> up to LA
<pipework> havenwood: Do you booze it up?
seamon has joined #ruby
<whatasunnyday> skip the zoo and lego land  and just hang out at the beach
<centrx> LA is a volcanic ash-hole, worse than PHP
seitensei has joined #ruby
<whatasunnyday> it’ll be nice only for a few more weeks!
<havenwood> pipework: admittedly, yeah
larissa has joined #ruby
<havenwood> guilty
<havenwood> fun to actually get to hang out in person with Rubyists!
odlox has joined #ruby
jmbrown412 has quit [Ping timeout: 245 seconds]