apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 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
dstynchula has quit [Remote host closed the connection]
JacobHayes has joined #ruby
snath has quit [Ping timeout: 240 seconds]
havenwood has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 240 seconds]
sqwirl has joined #ruby
ctp_ has joined #ruby
<joelbrewer> hello folks, hoping someone can help me out. I'm trying to access regex matches from within an interpolated string http://pastebin.com/vW24Satn
<shevy> hmm
jottr_ has joined #ruby
_1_lolputin has joined #ruby
_1_lolputin has left #ruby [#ruby]
<joelbrewer> any ideas?
<shevy> class Foo; def initialize; return 3;end;end <--- this won't work as expected right? I wont be able to do: foo = Foo.new # 3
ctp_ has quit [Read error: Connection reset by peer]
<shinobi_one> shevy: whyyyyy
brunops has quit [Quit: leaving]
ctp_ has joined #ruby
<lupine> shevy, right, new eats the return value of initialize
m0sz is now known as m0s
<lupine> you can override new and have it return whatever
<shinobi_one> ^ whyyy
<shevy> hmm
habanany has quit [Read error: Connection reset by peer]
ctp_ has quit [Client Quit]
<lupine> this is quite useful in modules
<lupine> (where it's not an override, of course)
<shinobi_one> there should be NO reason to do this in a class lol
ctp has quit [Read error: Connection reset by peer]
<lupine> I can think of several
<lupine> get a better imagination
<shinobi_one> Enlighten me please.
<shevy> shinobi_one extend your outlook man
habanany has joined #ruby
<lupine> mostly I use this in unit testing
<shinobi_one> Do explain
<lupine> also shimming other classes
parduse has quit [Ping timeout: 255 seconds]
<lupine> MyComplexFunctionality.stubs(:new => MySimpleStubber.new)
sqwirl has quit [Ping timeout: 255 seconds]
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
<shinobi_one> That's not overriding new to return an integer.
<lupine> or you might have class Shim ; def self.new ; ... return RealClass.new ; end ; end
<lupine> it's the same idea
<shinobi_one> No, it's not. That has actual value.
M4dH4TT3r has joined #ruby
<lupine> for all you know, MySimpleStubber.new return 3 and the only method I'm interested in is #to_i
M4dH4TT3r is now known as Guest34406
<shinobi_one> I might die if I look at your tests.
<shevy> the weak die often and early
Guest34406 has quit [Client Quit]
evenix has quit [Remote host closed the connection]
<shinobi_one> Only the good die young.
<shevy> that's true
<lupine> I didn't realise stubbing was so foreign to you
rezzack has quit [Read error: Operation timed out]
<shevy> stabbing!
* shevy stabs shinobi_one
<shevy> yay!
<shinobi_one> ^
<shevy> shinobi reminds me of japan
<lupine> anyway, it's just occurred to me that using modules for shims is a bad idea. you can mixin modules but you can't mixin classes
<lupine> so overriding new on a class is more precise than implementing a fake new on a module
RowdyChild|Away is now known as RowdyChildren
rylev_ has joined #ruby
rylev has quit [Read error: Connection reset by peer]
teddyp1cker has joined #ruby
<lupine> doesn't design patterns in ruby recommend undef new for singleton classes?
<lupine> been a while since I read it
<shinobi_one> not sure on that one
fabrice31 has joined #ruby
randomnick_ has quit [Quit: Leaving]
mansi has joined #ruby
ephemerian has quit [Quit: Leaving.]
<shinobi_one> If we weren't the only three in here maybe we'd find out :3
<shevy> haha
f0ster has quit [Remote host closed the connection]
<shevy> joelbrewer is also online
fflush has quit [Quit: fflush]
<shevy> joelbrewer btw your pastie is not useful, we can not reproduce it. provide the string that is assigned to tyour variable content
<shevy> and use a better pastie such as pastie.org or https://gist.github.com/, pastebin has those annoying flash ads
teddyp1cker has quit [Ping timeout: 268 seconds]
dstynchula has joined #ruby
dyoko has joined #ruby
rylev_ has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 268 seconds]
kitak has quit [Remote host closed the connection]
snath has joined #ruby
kitak has joined #ruby
<lupine> it's not that important, but I'll look it up in the morning
chris_thomson has joined #ruby
yfeldblum has joined #ruby
blackavr_ has joined #ruby
taf2 has joined #ruby
<joelbrewer> shevy: I think I got it figured out :) thanks anyway!
supermarin___ has quit [Ping timeout: 255 seconds]
blackavr has quit [Ping timeout: 240 seconds]
blackavr_ is now known as blackavr
dstynchula has quit [Client Quit]
chipotle_ has quit [Quit: cya]
<shevy> kk away on your path to world domination then
oo_ has joined #ruby
Hanmac has joined #ruby
IceDragon has quit [Quit: Space~~~]
IceDragon has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
fflush has joined #ruby
supermarin___ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
jxf has quit [Read error: Operation timed out]
arubin has joined #ruby
yfeldblum has joined #ruby
fflush has quit [Client Quit]
ndrei has quit [Ping timeout: 268 seconds]
<taf2> so the libyaml bug… adding gem 'psych', '~> 2.0.5' to Gemfile should do the trick?
<taf2> cap fucking deploy # ;)
<taf2> sorry running the tests now
blackavr has quit [Quit: blackavr]
brunops has joined #ruby
gerep-away is now known as gerep
mary5030 has joined #ruby
nopolitica has joined #ruby
<deg-> hi, just started working with sinatra and curious what the register calls are, example register Sinatra::Contrib, i can't find documentation on what 'register' does, any pointers?
fijimunkii has joined #ruby
ianbrandt has joined #ruby
fflush has joined #ruby
ianbrandt has quit [Client Quit]
ianbrandt has joined #ruby
nateberkopec has quit [Quit: Leaving...]
testcore has quit [Quit: [BX] Just do it like Nike... BEEATCH!]
fflush has quit [Client Quit]
mary5030 has quit [Ping timeout: 255 seconds]
pwh has joined #ruby
<shevy> there is a #sinatra channel in case noone here knows
ndrei has joined #ruby
<shinobi_one> ^ you mean in case deg- doesn't know
Celm has quit [Remote host closed the connection]
<deg-> i wasn't sure if it was sinatra or ruby specific, ri doesn't seem to show anything, i'll just go code diving
combusean has joined #ruby
jorts has quit [Quit: jorts]
ianbrandt has quit [Ping timeout: 252 seconds]
<shinobi_one> lupine: do you use rspec?
<lupine> minitest
<shinobi_one> is there a mocking library you use?
<lupine> it has a spec shim, which does most of what rspec does
<lupine> mocha
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
<shinobi_one> but of course, mocha
taf2 has quit [Quit: taf2]
pskosinski_ has joined #ruby
funburn has joined #ruby
zchrykng-work has quit [Read error: Connection reset by peer]
ianbrandt has joined #ruby
dyoko has quit [Ping timeout: 255 seconds]
ianbrandt has quit [Client Quit]
kitak_ has joined #ruby
hooper has quit [Ping timeout: 240 seconds]
mikepack has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
tylersmith has quit [Ping timeout: 240 seconds]
greggroth has quit [Ping timeout: 240 seconds]
duggiefresh has joined #ruby
nateberkopec has joined #ruby
fflush has joined #ruby
<benzrf> hello rubyists
<shinobi_one> hey, how's your gem going?
<combusean> hi benzrf
pskosinski has quit [Ping timeout: 265 seconds]
<benzrf> shinobi_one: p sweet
taf2 has joined #ruby
<benzrf> have u tried it idr >.>
<shinobi_one> benzrf: i was messing with it the other day
b00stfr3ak has quit [Ping timeout: 240 seconds]
<benzrf> sweet
<shinobi_one> benzrf: short memory on this one ;)
duggiefresh has quit [Remote host closed the connection]
<benzrf> ;-;
<shinobi_one> is that a TIE fighter?
<benzrf> no
<benzrf> it is a cry
<benzrf> the top dots are eyes, - is a mouth, , , are tears
mrmargolis has joined #ruby
<shinobi_one> looks more like chewbacca
<benzrf> >tfw
rakm has quit [Quit: Connection closed for inactivity]
mjs2600 has quit [Remote host closed the connection]
RowdyChildren is now known as RowdyChild|Away
<shinobi_one> lol i'm kidding i know what it is, but my fun is left short as the weather is turning into white flakes pounding into the ground and with that i must leave
davy_ has quit [Remote host closed the connection]
<shinobi_one> ^ nice
<shinobi_one> adios amigos
shinobi_one has quit [Quit: shinobi_one]
brunops has quit [Ping timeout: 240 seconds]
aspires has quit []
<mozzarella> guys
MatthewsFace has joined #ruby
<mozzarella> what's the alternative name for $0, again?
showaz has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
yubrew has joined #ruby
<benzrf> $SCRIPT_NAME or something i think
<benzrf> wait
<benzrf> __FILE__?
<benzrf> no thats current
subbyyy_ has quit [Ping timeout: 255 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JacobHayes has quit [Remote host closed the connection]
brunops has joined #ruby
<mozzarella> $PROGRAM_NAME
<benzrf> huh what is __FILE__ anyway
<benzrf> some kind of kwd?
<mozzarella> the current file
Celm has joined #ruby
<benzrf> i mean syntactically
<benzrf> it isnt a constant is it?
<benzrf> nor a method
tkuchiki has quit [Ping timeout: 240 seconds]
<benzrf> some kind of magic lvar?
<combusean> it's a macro
<combusean> in C
Azure has joined #ruby
<mozzarella> anyway, what's the idiom
<mozzarella> if $PROGRAM_NAME == something
<benzrf> combusean: but in ruby
<combusean> yeah, i know
toastynerd has quit [Remote host closed the connection]
<mozzarella> benzrf: normal variable I think
<combusean> it's technically an instance method on the object class.
cj3kim has joined #ruby
sailias has quit [Ping timeout: 268 seconds]
yubrew has quit [Ping timeout: 240 seconds]
cj3kim has quit [Remote host closed the connection]
<benzrf> combusean: no it is not
<benzrf> >> method :__FILE__
<eval-in> benzrf => undefined method `__FILE__' for class `Object' (NameError) ... (https://eval.in/131531)
brunops has quit [Changing host]
brunops has joined #ruby
<combusean> the fuck
<combusean> that's straight from the docs
<taf2> __LINE__ :P
<benzrf> >> method :__LINE__
<eval-in> benzrf => undefined method `__LINE__' for class `Object' (NameError) ... (https://eval.in/131532)
<benzrf> 18>> method :__FILE__
<eval-in> benzrf => undefined method `__FILE__' for class `Object' (NameError) ... (https://eval.in/131533)
<benzrf> hnh
<combusean> why do you need an alternative to $0 ?
<mozzarella> less cryptic name
<combusean> it's a unixism
<mozzarella> so I don't ask myself, what's $0 again?
<combusean> old fossil
<combusean> and its shared in other languages
tjr9898 has joined #ruby
<benzrf> $0 is traditional
<combusean> yeah
<benzrf> in most contexts
<benzrf> bash uses it !
<combusean> it makes sense
<combusean> $0 for execution $1 for the first argument ...
<mozzarella> if I make the rb file an executable, yes
<mozzarella> otherwise I call it with "ruby file.rb"
<mozzarella> doesn't make as much sense
<mozzarella> ≧°◡°≦
<combusean> it makes sense in the context of its execution
<mozzarella> kind of
<mozzarella> that's how I remember it, anyway
kitak_ has quit [Read error: Connection reset by peer]
kitak_ has joined #ruby
tjr9898 has quit [Ping timeout: 240 seconds]
<combusean> how are there no ops here for 884 people?
<mozzarella> they hide
<mozzarella> and show when there are troublemakers
Celm has quit []
<mozzarella> that's a freenode policy I think
markisonfire has quit [Ping timeout: 240 seconds]
<combusean> no way
<mozzarella> yep
markisonfire has joined #ruby
<mozzarella> I don't know how many of them there are… Radar is one I think, apeiros too
<benzrf> combusean: apeiros is a op
<terrellt> We are all ops.
<benzrf> among others
<terrellt> Step lightly.
mrmargolis has quit [Remote host closed the connection]
* combusean sets terrellt on fire
<terrellt> I'm going to assume you stepped lightly when you did that.
<combusean> lol :)
<arubin> If you turn out the lights, the eyes of the ops will glow.
MatthewsFace has quit [Quit: This computer has gone to sleep]
ndrei has quit [Ping timeout: 240 seconds]
doodlehaus has joined #ruby
aspires has joined #ruby
linuxer1 has joined #ruby
frem_ has quit [Quit: Connection closed for inactivity]
oo_ has quit [Remote host closed the connection]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jack_rabbit has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
Mongey has quit [Ping timeout: 255 seconds]
momomomomo has quit [Quit: momomomomo]
nanoyak has quit [Quit: Computer has gone to sleep.]
tkuchiki has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
brunops has quit [Ping timeout: 240 seconds]
narcan has joined #ruby
oo_ has joined #ruby
greggroth has joined #ruby
MatthewsFace has joined #ruby
Aeia has quit []
fgo has joined #ruby
pu22l3r has joined #ruby
jacky has quit [Excess Flood]
Squarepy has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
Mongey has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has joined #ruby
papercode has quit [Quit: WeeChat 0.4.4-dev]
Aeia has joined #ruby
mehlah has quit [Quit: Leaving...]
markisonfire has quit [Ping timeout: 252 seconds]
Aeia has quit [Client Quit]
centrx has joined #ruby
zachallett has quit [Remote host closed the connection]
jackyalcine has joined #ruby
markisonfire has joined #ruby
timonv has joined #ruby
markisonfire has quit [Client Quit]
linojon has joined #ruby
pu22l3r has quit [Remote host closed the connection]
brunops has joined #ruby
brunops has quit [Client Quit]
pu22l3r has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
postmodern has quit [Quit: Leaving]
postmodern has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
funburn has quit [Quit: funburn]
afex has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 255 seconds]
dik_dak has quit [Quit: Leaving]
meatherly has quit [Remote host closed the connection]
greggroth has quit [Ping timeout: 240 seconds]
jrhorn424 is now known as zz_jrhorn424
meatherly has joined #ruby
mikepack has joined #ruby
saarinen has quit [Quit: saarinen]
andy__ has joined #ruby
maximski has joined #ruby
meatherly has quit [Ping timeout: 240 seconds]
holo has joined #ruby
kennym has quit [Quit: Leaving.]
holo has left #ruby [#ruby]
s2013 has joined #ruby
amclain has joined #ruby
Shidash has quit [Ping timeout: 252 seconds]
meatherly has joined #ruby
phoenixSunset has quit [Quit: Lost terminal]
kukyakya has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Deele has quit [Ping timeout: 240 seconds]
jottr_ has quit [Ping timeout: 240 seconds]
Hanmac has joined #ruby
larissa has quit [Quit: Leaving]
joelbrewer has quit [Ping timeout: 268 seconds]
habanany has quit [Ping timeout: 240 seconds]
centrx has quit [Quit: All this computer hacking is making me thirsty]
nanoyak has quit [Quit: Computer has gone to sleep.]
<shevy> If you turn out the lights
<shevy> someone will use candles
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
blackavr has joined #ruby
snapcase has quit [Ping timeout: 245 seconds]
Dysruption has joined #ruby
Jinkins has joined #ruby
yubrew has joined #ruby
afex has joined #ruby
vt102 has quit [Ping timeout: 240 seconds]
DEA7TH has joined #ruby
jonmorehouse has quit [Ping timeout: 240 seconds]
<benzrf> shevy: how deepy
<benzrf> *deep
alvaro_o has quit [Quit: Ex-Chat]
montyboy has joined #ruby
<combusean> and still others will be content in the black.
s2013 has quit [Ping timeout: 240 seconds]
tjr9898 has joined #ruby
alvaro_o_ has quit [Quit: Ex-Chat]
yubrew has quit [Ping timeout: 240 seconds]
dx7 has joined #ruby
larsam has joined #ruby
agrinb_ has joined #ruby
cj3kim has joined #ruby
hamakn has quit [Remote host closed the connection]
fflush has quit [Quit: fflush]
narcan has joined #ruby
snapcase has joined #ruby
SCommette has joined #ruby
fflush has joined #ruby
SCommette has quit [Client Quit]
habanany has joined #ruby
evenix has joined #ruby
habanany has quit [Max SendQ exceeded]
jack_rabbit has quit [Quit: Leaving]
tylersmith has joined #ruby
okdas has quit [Read error: Connection reset by peer]
habanany has joined #ruby
habanany has quit [Max SendQ exceeded]
Jinkins has quit [Quit: This computer has gone to sleep]
zorak has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
afex has quit [Ping timeout: 240 seconds]
aspires has quit []
wallerdev has quit [Quit: wallerdev]
s2013 has joined #ruby
fabrice31 has joined #ruby
habanany has joined #ruby
kbarry has quit [Ping timeout: 252 seconds]
habanany1 has joined #ruby
Martxel has quit [Quit: Leaving]
habanany1 has quit [Max SendQ exceeded]
brucelee_ has joined #ruby
amclain_ has joined #ruby
rahult is now known as rahult_
amclain has quit [Ping timeout: 240 seconds]
reset has quit [Quit: Leaving...]
diegoviola has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
jbw has joined #ruby
hamakn has joined #ruby
<jbw> hey folks.. anyone here run a system wide rbenv install? i'm having issues with the 'rbenv rehash' command.. it keeps complaining that the shims directory isn't writeable.. is there a workaround?
Voodoofish430 has quit [Quit: Leaving.]
<postmodern> jbw, sudo rbenv rehash ?
WJB has quit [Remote host closed the connection]
Mongey has quit [Ping timeout: 240 seconds]
montyboy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jbw> is there a workaround which doesn't involve sudo or running of root processes ?
x77686d has quit [Quit: x77686d]
<combusean> i've had bad experiences with system wide installs. your app ought to be running as a user anyways.
<jbw> my app is running as a user. i just want to share the rbenv installed rubies rather than setup rbenv for every user on my system
<combusean> but that's in my context...
Olipro_ has joined #ruby
<jbw> i guess what i really need is system wide rbenv & rubies but keep the shims per user
Olipro has quit [Ping timeout: 246 seconds]
WJB has joined #ruby
<postmodern> jbw, you should consider just installing the version of ruby into /usr/local
<postmodern> jbw, one ruby to rule them all
<benzrf> i use ruby-install & chrub
<benzrf> y
doodlehaus has quit [Remote host closed the connection]
<jbw> not very practical
<bricker`LA> jbw: have you considered symlinking ~/.rubies to /var/lib/rubies or something?
hooper has joined #ruby
<jbw> ~/.rubies ?
teddyp1cker has joined #ruby
habanany has quit [Quit: habanany]
Olipro_ is now known as Olipro
<bricker`LA> jbw: whoops, thought we were talking about chruby, ignore me
kennym has joined #ruby
paradisaeidae has joined #ruby
<jbw> np :)
<jbw> all i want is rbenv, system wide so each user doesn't need to install it, a global rbenv version but users can still override on a local per-user basis
<jbw> everything's working except for rehash
<bricker`LA> okay postmodern, what's the correct way to pronounce "chruby" out loud without sounding like I just had a stroke?
<jbw> haha
<postmodern> jbw, why do you need rbenv if you only want one ruby?
<jbw> err global rbenv version > global ruby version
<postmodern> bricker`LA, just like chroot :)
Mongey has joined #ruby
<bricker`LA> postmodern: ...
<jbw> because i want to be able to add new versions of ruby without upsetting existing users
yohanobs_ has quit [Ping timeout: 240 seconds]
<postmodern> jbw, /usr/local/bin takes precedence over /usr/bin in $PATH
<bricker`LA> postmodern: I guess these things just aren't meant to be said out loud
browndawg has joined #ruby
<jbw> postmodern, asssuming your path has /usr/local/bin specified first, then yes, but what's this got to do with my issue?
<postmodern> bricker`LA, yeah i've heard multiple pronunciations of unix commands, cha-root, schroot, ce-ahch-root
danshultz has joined #ruby
<postmodern> jbw, what im trying to say is you don't need rbenv/rvm/chruby if you just need one ruby
<postmodern> jbw, just install it into /usr/local
<postmodern> jbw, ruby-build 1.9.3-pXXX /usr/local
<jbw> i want to have multiple versions of ruby!
<benzrf> i usually say chamod but without the a
<jbw> that's why i'm choosing to use rbenv
okdas has joined #ruby
teddyp1cker has quit [Ping timeout: 252 seconds]
<jbw> if user a adopts ruby 1.9.3-p484
blackavr has quit [Quit: blackavr]
<jbw> and i want to install a new version say 2.1.1 for new users
<postmodern> jbw, oh i see
<jbw> then i don't want to have to force user a to use 2.1.1 and break all his shit
hooper has quit [Ping timeout: 240 seconds]
<postmodern> jbw, well you could try chruby which is designed for system wide installs
yohanobs_ has joined #ruby
<jbw> hrm
<postmodern> jbw, or you could just specify the full path to bin/ruby per-app
<jbw> are you the author? ;)
<postmodern> jbw, not sure how you are running your apps
skkeeper has quit [Ping timeout: 240 seconds]
<postmodern> jbw, i've heard of people installing rubies into /opt/rubies, then changing the #! of your scripts to use /opt/rubies/ruby-2.0.0-pXXX/bin/ruby
<jbw> yeah
<jbw> that could work but i want to avoid that if at all possible
Kricir has joined #ruby
cescalante is now known as ce_afk
<jbw> i like the rbenv method whereby you can set the ruby version in .rbenv-version and 'ruby' then reflects that version as does using #!/usr/bin/env ruby
<combusean> why aren't you using RVM if you want multiple ruby versions?
<combusean> i'm only saying that with no rbenv experience, btw
<combusean> rvm is clean and installs easy
skkeeper has joined #ruby
<jbw> rbenv is cleaner IMO
<combusean> ooo
fflush has quit [Quit: fflush]
sepp2k has quit [Quit: Leaving.]
krz has joined #ruby
<benzrf> i use ruby-install + chruby
<benzrf> super duper clean
<postmodern> jbw, chruby is only 100 LoC, rbenv does a lot more magic
crystal77 has joined #ruby
platzhirsch has joined #ruby
<jbw> yeah looking at the github readme now.. it seems to do everything i want
<platzhirsch> what's going on here
<jbw> it's that magic where this rehash business is at so i'd rather than muck with that
<postmodern> jbw, one major caveat, auto-switching requires a shell with auto.sh loaded
<jbw> auto-switching ?
<postmodern> like when you cd into a directory, and it detects .ruby-version
<jbw> oh
<jbw> doesn't sound like too big a deal
<postmodern> yeah, auto-switching was not really intended for production envs
<combusean> the last 3 jobs i've had use rvm
linojon has quit [Quit: linojon]
<combusean> i default to the market
kennym has quit [Quit: Leaving.]
<jbw> how's chruby work with gem executables? e.g. bundle / unicorn etc.
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
<benzrf> jbw: it sets your env and ruby bin path
<benzrf> or some such
<benzrf> chruby jruby -> gem is now jruby gem
<jbw> i see
<postmodern> jbw, i just do `bundle install --deployment` and `bundle exec` or use bundler's binstubs
<jbw> so it just sets up your environment so everything is pointing to the right place
habanany has joined #ruby
GreenPlastik has joined #ruby
<postmodern> jbw, yep PATH, GEM_HOME, GEM_PATH
habanany has quit [Max SendQ exceeded]
<postmodern> jbw, you could even hardcode these in ~/.bashrc and achieve the same effect
lmickh has quit [Remote host closed the connection]
maximski has quit []
Bumptious has joined #ruby
selina345 has joined #ruby
habanany has joined #ruby
tjr9898 has quit [Remote host closed the connection]
saarinen has joined #ruby
habanany has quit [Max SendQ exceeded]
<jbw> ok.. i want to avoid hardcoding anything cuz it's likely i'll end up with hundreds of hardcoded files in the future then which need changing
chuk has quit [Quit: This computer has gone to sleep]
rainmanjam has joined #ruby
kennym has joined #ruby
jamto11 has quit [Remote host closed the connection]
meatherl_ has joined #ruby
agrinb_ has quit [Remote host closed the connection]
amclain_ has quit [Ping timeout: 265 seconds]
fflush has joined #ruby
fflush has quit [Changing host]
fflush has joined #ruby
agrinb has joined #ruby
habanany has joined #ruby
danshultz has quit [Remote host closed the connection]
habanany has quit [Max SendQ exceeded]
danshultz has joined #ruby
bluehavana_ has quit [Quit: Connection closed for inactivity]
eka has quit [Read error: Connection reset by peer]
meatherly has quit [Ping timeout: 240 seconds]
kennym1 has joined #ruby
agrinb has quit [Ping timeout: 240 seconds]
sailias has joined #ruby
yubrew has joined #ruby
<GreenPlastik> no worries. just wanted to shoot the shit and say hi. i'll be around.
amclain has joined #ruby
jack_rabbit has joined #ruby
eka has joined #ruby
danshultz has quit [Ping timeout: 240 seconds]
kennym has quit [Ping timeout: 240 seconds]
hooper has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
benzrf is now known as benzrf|offline
Testalot has joined #ruby
<Testalot> hi
Chronocity has joined #ruby
<combusean> hi Testalot
<Testalot> I heard that the creator of ruby was inspired by emacs-lisp, so he created ruby in it's image.
<arubin> Testalot: Among other things.
<Testalot> I'm just now starting to learn emacs, so I'm not sure if I should focus on emacs-lisp or learning ruby.
<Testalot> can ruby make functions in the middle of a statement?
amclain has quit [Ping timeout: 255 seconds]
greggroth has joined #ruby
<BraddBitt> how do you mean, Testalot ?
osvico has quit [Ping timeout: 240 seconds]
<arubin> Testalot: Ruby has lambdas among other things.
<Testalot> like could I do (onclick obj (labmda ()
<Testalot> (show "hi"))
hooper has quit [Ping timeout: 255 seconds]
Dysruption has quit [Quit: Dysruption]
mjs2600 has joined #ruby
kukyakya has quit [Remote host closed the connection]
<Testalot> if it has lambdas then I think i'm good to go with ruby.
<Testalot> But can the lambdas be used in-line?
<arubin> Testalot: It is very common to pass around code blocks in Ruby. Lambdas are only one form in Ruby.
toastynerd has joined #ruby
<Testalot> what are other forms?
centrx has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
habanany has joined #ruby
daynak has joined #ruby
toastynerd has quit [Remote host closed the connection]
eynj has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<Testalot> oh. looks like ruby is pretty advanced.
mjs2600 has quit [Ping timeout: 255 seconds]
Jinkins has joined #ruby
Jinkins has quit [Remote host closed the connection]
<Testalot> ty. gonna try.
fijimunkii has quit [Quit: leaving]
habanany has quit [Max SendQ exceeded]
Testalot has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
_justin has joined #ruby
ignoch has quit [Remote host closed the connection]
pfg has joined #ruby
pfg has quit [Max SendQ exceeded]
pfg has joined #ruby
pfg has quit [Max SendQ exceeded]
sensen has joined #ruby
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pfg has joined #ruby
pfg has quit [Max SendQ exceeded]
newUser1234 has joined #ruby
pfg has joined #ruby
robbyoconnor has joined #ruby
hooper has joined #ruby
x77686d has joined #ruby
jzig has quit [Remote host closed the connection]
narcan has joined #ruby
habanany has joined #ruby
newUser1234 has quit [Remote host closed the connection]
newUser1234 has joined #ruby
dseitz has joined #ruby
momomomomo has joined #ruby
hooper has quit [Ping timeout: 268 seconds]
Hobogrammer has joined #ruby
spicerack has joined #ruby
benzrf|offline is now known as benzrf
kennym1 has quit [Quit: Leaving.]
braincrash has quit [Quit: bye bye]
<benzrf> hej da
<benzrf> Testalot: hardly
<benzrf> the multiple kinds of lambdas is a sign of weakness, not strength
<benzrf> not to say that ruby is bad
<benzrf> but it is afflicted with a bad case of the TIMTOWTDIs
<benzrf> =[
timonv has joined #ruby
<arubin> benzrf: That is on purpose.
Hobogrammer has quit [Client Quit]
combusean has quit [Ping timeout: 240 seconds]
Hobogrammer has joined #ruby
Kricir has quit [Remote host closed the connection]
braincrash has joined #ruby
<benzrf> i know :P
<benzrf> also the article you linked is subtly wrong
<benzrf> return in a proc causes the method it was /defined in/ to return
<benzrf> and only works when passed downwards
linuxer1_ has joined #ruby
habanany has quit [Max SendQ exceeded]
<benzrf> *break* is the one that terminates the calling method
pigzzcanfly has joined #ruby
browndawg has quit [Quit: Leaving.]
<arubin> I was just looking for something to give him a general idea.
<benzrf> kk
<arubin> I am still figuring all of this out myself.
timonv has quit [Ping timeout: 240 seconds]
<benzrf> there's return, next, and break
jonmorehouse has joined #ruby
<benzrf> BREAK will terminate the block AND cause the method that called the block to return nil.
<benzrf> well
pzuraq has quit []
<benzrf> actually it will cause the method that called the block to return the value given to break
<benzrf> like return does in methods
linuxer1 has quit [Ping timeout: 268 seconds]
linuxer1_ is now known as linuxer1
<benzrf> >> def foo(p); p.call; puts 'after p'; end; some_proc = proc {break 3}; foo(some_proc)
<eval-in> benzrf => break from proc-closure (LocalJumpError) ... (https://eval.in/131584)
<benzrf> wait u wut
<benzrf> o.O
<benzrf> huh.
pigzzcanfly has quit [Remote host closed the connection]
<benzrf> ok...
<benzrf> >> def foo; yield; puts 'after p'; end; foo {break 3}
<eval-in> benzrf => 3 (https://eval.in/131585)
<benzrf> arubin: ^
jarray52 has left #ruby [#ruby]
<benzrf> *next* is like return in a proc
centrx has quit [Quit: All this computer hacking is making me thirsty]
Hobogrammer has quit [Ping timeout: 240 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
<benzrf> it terminates execution of the block, causing the yield or call to return the thing given to next
<benzrf> >> def foo; yield; puts 'after p'; end; foo {next}
<eval-in> benzrf => after p ... (https://eval.in/131586)
<benzrf> >> def foo; yield; puts 'after p'; end; foo {next; puts "never here"}
<eval-in> benzrf => after p ... (https://eval.in/131587)
<benzrf> *return* causes the method call during which the block was defined to exit
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> basically, a return in a block acts like a return immediately outside of the block
<benzrf> this lets you do something like:
<benzrf> foo.each {|v| return 10 if v > 1000}
<benzrf> and that will return from the method that the above code is in
mattmcclure has quit [Quit: Connection closed for inactivity]
<benzrf> if a proc hits a return while being run after its source method is done, you will get a localjumperror.
<benzrf> >> def foo; proc {return 3}; end; foo().call
<eval-in> benzrf => unexpected return (LocalJumpError) ... (https://eval.in/131588)
thomasxie has joined #ruby
_justin has quit [Quit: _justin]
rahult_ is now known as rahult
crystal77 has quit [Quit: Computer has gone to sleep.]
jzig has joined #ruby
<selina345> i'm trying to install rails on ubuntu
<selina345> the process seems to have stalled midway at
<selina345> n_u ubuntu@ubuntu:~$ sudo mount /dev/sda1 /mnt/ && ls /mnt/etc/grub.d
<selina345> <Ray2> mount: /dev/sda1 already mounted or /mnt/ busy
<selina345> <Ray2> mount: according to mtab, /dev/sda1 is already mounted on /mnt
<selina345> <Ray2> ubuntu@ubuntu:~$
<selina345> <mmiller13> this doesn't happen on wire or tether
<selina345> <testco> mmiller13: good signal?
<selina345> <mmiller13> good
<benzrf> what the fuck
<selina345> lol oops
<benzrf> why are you doing mounting stuff to get rails
<platzhirsch> what's happening here
<platzhirsch> this is out of control
<platzhirsch> calm down guys
<selina345> so the last line is
nilobject has joined #ruby
<selina345> installing ri documentation
<selina345> and it's been stuck on that forever
meatherl_ has quit [Remote host closed the connection]
<benzrf> do u use ir
<benzrf> *ri
<benzrf> if not
<benzrf> press ctrl c
<benzrf> fuck the police
<platzhirsch> I am going to sleep, good night everyone
<benzrf> good night platzhirsch
<platzhirsch> also please follow me on twitter @platzhirsch122
meatherly has joined #ruby
<platzhirsch> thanks
<selina345> now im getting CERROR interrupted
<selina345> :S
<benzrf> haha
paradisaeidae has quit [Remote host closed the connection]
hermanmunster has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
platzhirsch has left #ruby [#ruby]
michaeldeol has joined #ruby
iml has joined #ruby
<Nilium> I have received the most amazing recruiting email just now. Really, really amazing.
<selina345> SHARE
jzig has quit [Ping timeout: 265 seconds]
slawrence00 has joined #ruby
<Nilium> http://dl.dropbox.com/u/31892/Screenshots/-sd-.png ⇐ Okee dokee. I'm not censoring it 'cause I don't think anyone's dumb enough to follow up on this.
hermanmu_ has joined #ruby
<benzrf> omg
<Nilium> Or because it's so amazing you'll be so awe-struck that you fall into a coma and are physically incapable of following up on it.
<benzrf> call the number
<benzrf> do a honeypot
saarinen has quit [Quit: saarinen]
<selina345> that's spam
<Nilium> It'd probably charge me like $500 just by calling it
<selina345> not a recruiting email
<selina345> :/
<deepy> That looks gorgeous
<Nilium> Nah, I looked up the company, they're a recruiter-spam company.
<Nilium> It is actually technically recruiting.
meatherly has quit [Ping timeout: 240 seconds]
<iml> what's better: %W[ ] or %W( )?
<selina345> why wont ubuntu install rails for me
<selina345> :(
<Nilium> I prefer square brackets.
<Nilium> Square brackets are pleasing to the eye.
amclain has joined #ruby
<Nilium> Also, the end result is an array, so it makes more sense.
andy__ has quit [Remote host closed the connection]
andy__ has joined #ruby
papercode has joined #ruby
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaywastaken has quit [Quit: This computer has gone to sleep]
<iml> the github style guide says to avoid spaces around the bracket, but no such condition seems to apply to ()
<iml> or rather inside the brackets
IceDragon has quit [Quit: Space~~~]
gerep has quit [Quit: Connection closed for inactivity]
<iml> don't really know where that comes from, though
sputnik13net has quit [Ping timeout: 240 seconds]
andy___ has joined #ruby
andy__ has quit [Read error: Connection reset by peer]
trhodes_ has quit [Ping timeout: 255 seconds]
<Nilium> The github style guide is just a guide. Pick what works for you.
andy___ is now known as Guest15582
<iml> right
Solnse has quit [Quit: Leaving.]
yubrew has joined #ruby
<BraddBitt> what is the technical term for the %W operator?
<Nilium> It's a string array literal.
<BraddBitt> ah
<Nilium> Well, word array literal.
<Nilium> Where the words are strings.
mary5030 has joined #ruby
<Nilium> Kind of like how %i will get you a symbol array literal.
<Nilium> Actually not sure if %I and %i do anything different though
<RubyPanther> >> %w/1 2 3 Indians/*%/ little /# When I was a child I was forced to sing this song
<eval-in> RubyPanther => "1 little 2 little 3 little Indians" (https://eval.in/131592)
<benzrf> >> %/foo bar/
<eval-in> benzrf => "foo bar" (https://eval.in/131593)
amclain has quit [Ping timeout: 255 seconds]
trhodes_ has joined #ruby
<benzrf> >> [1, 2, 3] * [4, 5]
<eval-in> benzrf => no implicit conversion of Array into Integer (TypeError) ... (https://eval.in/131594)
<benzrf> oh
<RubyPanther> almost
<benzrf> >> [1, 2, 3] * ['foo', 'bar']
<eval-in> benzrf => no implicit conversion of Array into Integer (TypeError) ... (https://eval.in/131595)
<benzrf> >> ['baz', 'quux', 'quuux'] * ['foo', 'bar']
<eval-in> benzrf => no implicit conversion of Array into Integer (TypeError) ... (https://eval.in/131596)
<benzrf> wat
<Nilium> When I was little, I was forced to recite the US pledge of allegiance.
<RubyPanther> You're getting hypnotized by the /'s
<Nilium> I actually do not remember how it goes.
<benzrf> RubyPanther: ?
<RubyPanther> I part of about 20% of the class who recited the pledge in pre-150's form
Gooder has joined #ruby
amclain has joined #ruby
<RubyPanther> benzrf: the second one doesn't ahve a w
yubrew has quit [Ping timeout: 240 seconds]
<Nilium> So, no "under god"?
<RubyPanther> lol right
<Nilium> I remember that coming up in my rhetoric class a few years ago
<Nilium> Also the old US salute.
<Nilium> Or all the other weird religious symbols we crammed into our stuff in recent years that people just assume's been there since the inception of the US.
<RubyPanther> In my schools we were required to recite the pledge, recite the pledge with words omitted, or sit quietly during the pledge. So it wasn't really "required" except in name.
<benzrf> RubyPanther: so?
<benzrf> oh wait fuck
<benzrf> >> ['baz', 'quux', 'quuux'] * 'wat'
GreenPlastik has quit []
<eval-in> benzrf => "bazwatquuxwatquuux" (https://eval.in/131599)
<benzrf> :|
saarinen has joined #ruby
<benzrf> >tfw
<Nilium> I don't know if we had an option to sit out the pledge, but most of us mumbled it after a while.
<Nilium> Or just mouthed it.
_justin has joined #ruby
Lewix has quit [Remote host closed the connection]
<Nilium> I think the best thing I remember from my rhetoric class was when the instructor had us pretend he was the flag and do the old-style salute while reciting the pledge.
<RubyPanther> My class usually managed a properly bored and disinterested mumble. There was substantially more interest in memorizing the names of Presidents.
JasmeetQA has joined #ruby
<Nilium> At which point he flashed up a picture of people saluting Hitler. I think he enjoyed that a lot.
trhodes_ has quit [Ping timeout: 255 seconds]
<RubyPanther> I pledge allegiance to my rubber ducky, and the manual which he reads back to me...
<Nilium> I pledge allegiance to Dash, my documentation god.
<Nilium> Who was at one point a cat and is now apparently a train or something.
<Nilium> Dash works in mysterious ways.
pu22l3r_ has joined #ruby
rahult is now known as rahult_
trhodes_ has joined #ruby
funburn has joined #ruby
<dseitz> Remember that time; when you went and looked at docsets; then realised there was a whole portal for rubygems and was like "not uh"
jeregrine has quit [Quit: Connection closed for inactivity]
pu22l3r has quit [Ping timeout: 240 seconds]
pu22l3r_ has quit [Ping timeout: 255 seconds]
NightGriffin has joined #ruby
fabrice31 has joined #ruby
newUser1234 has quit [Remote host closed the connection]
yfeldblum has joined #ruby
browndawg has joined #ruby
jonahR has joined #ruby
<dseitz> I haven't been able to reorder docsets as of the latest release
siwica has joined #ruby
jonahR has quit [Client Quit]
saarinen has quit [Quit: saarinen]
yfeldblu_ has joined #ruby
jonahR has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
lmickh has joined #ruby
chipotle has joined #ruby
yfeldblum has quit [Ping timeout: 268 seconds]
rahult_ is now known as rahult
<jonmorehouse> anyone know a solid gem that I could use to generate hashes from markdown?
wjlafrance has joined #ruby
kobain has quit [Ping timeout: 240 seconds]
emergion has joined #ruby
kobain has joined #ruby
yfeldblu_ has quit [Ping timeout: 255 seconds]
kenndel_ has joined #ruby
greggroth has quit [Ping timeout: 268 seconds]
_justin has quit [Quit: _justin]
chipotle has quit [Quit: cya]
robustus has quit [Ping timeout: 252 seconds]
daynak has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
<Nilium> jonmorehouse: The digest stuff in the stdlib should probably be sufficient for that.
jason__ has joined #ruby
kenndel has quit [Ping timeout: 265 seconds]
<Nilium> It's just text, there's no real reason to have a markdown-specific hash.
Dysruption has joined #ruby
oo_ has joined #ruby
bricker`LA has quit [Quit: leaving]
kenndel_ has quit [Ping timeout: 265 seconds]
robustus has joined #ruby
kenndel has joined #ruby
rainmanjam has quit []
hermanmu_ has quit [Remote host closed the connection]
kenndel_ has joined #ruby
hermanmunster has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
meatherly has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
<jonmorehouse> ahh -- when I said hash I meant to create like a dictionary. Not actually hash the string text
kornet has joined #ruby
kenndel has quit [Ping timeout: 265 seconds]
hermanmunster has quit [Ping timeout: 240 seconds]
pfg has joined #ruby
pfg has quit [Client Quit]
fflush has quit [Quit: fflush]
linuxer1_ has joined #ruby
teddyp1cker has joined #ruby
nisstyre has joined #ruby
meatherly has quit [Remote host closed the connection]
kenndel has joined #ruby
horrorvacui has quit [Quit: Leaving]
linuxer1 has quit [Ping timeout: 240 seconds]
linuxer1_ is now known as linuxer1
oo_ has joined #ruby
kenndel_ has quit [Ping timeout: 246 seconds]
monkegjinni has joined #ruby
teddyp1cker has quit [Ping timeout: 240 seconds]
JacobHayes has joined #ruby
hermanmunster has joined #ruby
willb1 has quit [Ping timeout: 255 seconds]
hermanmunster has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
kenndel has quit [Ping timeout: 240 seconds]
hermanmunster has joined #ruby
benzrf is now known as benzrf|offline
Cache_Money_ has joined #ruby
jason__ has quit [Remote host closed the connection]
chipotle has joined #ruby
jason__ has joined #ruby
hermanmunster has quit [Ping timeout: 252 seconds]
hollyw00d has joined #ruby
jason__ has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
jason__ has joined #ruby
hollyw00d has quit [Client Quit]
userx has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Quit: Leaving...]
yubrew has joined #ruby
hermanmunster has joined #ruby
jason__ has quit [Ping timeout: 255 seconds]
tjr9898 has joined #ruby
greggroth has joined #ruby
Dysruption has quit [Quit: Dysruption]
jzig has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
linuxer1_ has joined #ruby
nopolitica has quit [Remote host closed the connection]
centrx has joined #ruby
jamto11 has joined #ruby
jonahR has quit [Quit: jonahR]
willb1 has joined #ruby
mary5030 has quit [Remote host closed the connection]
cpruitt has joined #ruby
mary5030 has joined #ruby
tjr9898 has quit [Ping timeout: 255 seconds]
greggroth has quit [Ping timeout: 240 seconds]
linuxer1 has quit [Ping timeout: 268 seconds]
linuxer1_ is now known as linuxer1
cpruitt has quit [Client Quit]
nilobject has quit [Quit: nilobject]
siwica has quit [Ping timeout: 255 seconds]
jamto11 has quit [Ping timeout: 240 seconds]
browndawg has quit [Ping timeout: 255 seconds]
mary5030 has quit [Ping timeout: 240 seconds]
browndawg has joined #ruby
pu22l3r has joined #ruby
wjlafrance_ has joined #ruby
pu22l3r has quit [Remote host closed the connection]
wjlafrance_ has quit [Max SendQ exceeded]
wjlafrance has quit [Ping timeout: 245 seconds]
pu22l3r has joined #ruby
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
hooper has joined #ruby
nisstyre has quit [Ping timeout: 268 seconds]
wjlafrance has joined #ruby
abdulsattar has joined #ruby
hooper has quit [Ping timeout: 255 seconds]
tylersmith has quit [Ping timeout: 268 seconds]
gabrielCmendes has quit [Ping timeout: 240 seconds]
gabrielCmendes has joined #ruby
codeFiend has joined #ruby
combusean has joined #ruby
mjs2600 has joined #ruby
wjlafrance has quit [Quit: This computer has gone to sleep]
willb1 has quit [Ping timeout: 240 seconds]
nisstyre has joined #ruby
mjs2600 has quit [Ping timeout: 240 seconds]
JohnBat26 has joined #ruby
thomasxie has left #ruby [#ruby]
lmickh has quit [Quit: lmickh]
timonv has joined #ruby
ninegrid has quit [Ping timeout: 264 seconds]
mr_snowf1ake has joined #ruby
hooper has joined #ruby
pontiki has joined #ruby
ninegrid has joined #ruby
<pontiki> hi all o/
centrx has quit [Quit: All this computer hacking is making me thirsty]
MatthewsFace has quit [Quit: This computer has gone to sleep]
timonv has quit [Ping timeout: 255 seconds]
yohanobs_ has quit [Ping timeout: 240 seconds]
viscera has joined #ruby
<postmodern> what's the best practice for initializing git submodules from rake?
<postmodern> apparently git creates the submodule/ directory by default, but doesn't clone into it
<postmodern> so file 'mysubmodule' ... doesn't work
cgore` has joined #ruby
hooper has quit [Ping timeout: 240 seconds]
jonmorehouse has quit [Ping timeout: 252 seconds]
sensen has quit [Ping timeout: 240 seconds]
cgore` has quit [Client Quit]
willb1 has joined #ruby
<pontiki> hmm.. no idea about that, postmodern
JacobHayes has quit [Ping timeout: 265 seconds]
Slavox|AFK is now known as Slavox
kitak__ has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JacobHayes has joined #ruby
keen__ is now known as keen_
browndawg has quit [Quit: Leaving.]
Morkel has joined #ruby
kitak_ has quit [Ping timeout: 260 seconds]
sensen has joined #ruby
nari has joined #ruby
hooper has joined #ruby
toastynerd has joined #ruby
tobago has joined #ruby
tobago has quit [Client Quit]
abdulsattar has quit [Ping timeout: 240 seconds]
tobago has joined #ruby
aagdbl has joined #ruby
civillian has joined #ruby
tobago has quit [Client Quit]
echevemaster has quit [Quit: Leaving]
mengu has joined #ruby
mengu has joined #ruby
<civillian> I'm having an issue with ruby/activeldap, I'm getting 'false' when trying to save a user account after modifying it
<civillian> as in, u.save returns false
<civillian> even though I'm using an admin account for the bind
tobago has joined #ruby
tobago has quit [Read error: Connection reset by peer]
tobago has joined #ruby
toastynerd has quit [Remote host closed the connection]
<civillian> u.save! returns "ActiveLdap::EntryInvalid: Distinguishedname is duplicated: cn=blah"
hooper has quit [Ping timeout: 240 seconds]
<civillian> what am I doing wrong
<pontiki> couldn't possibly say without looking at code
mansi has quit [Remote host closed the connection]
dx7 has quit [Remote host closed the connection]
dx7 has joined #ruby
<civillian> I will see if I can paste bin my hacks :)
yubrew has joined #ruby
Photism2 has quit [Ping timeout: 240 seconds]
decoponio has joined #ruby
sski has quit [Remote host closed the connection]
Photism has joined #ruby
sski has joined #ruby
timonv has joined #ruby
Cache_Money_ is now known as Cache_Money
dx7 has quit [Ping timeout: 251 seconds]
rahult is now known as rahult_
greggroth has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
NightGriffin has quit [Remote host closed the connection]
jonmorehouse has joined #ruby
coderhs has joined #ruby
sski has quit [Ping timeout: 240 seconds]
hooper has joined #ruby
toastynerd has joined #ruby
chipotle_ has joined #ruby
saarinen has joined #ruby
tagrudev has joined #ruby
chipotle has quit [Ping timeout: 240 seconds]
toastynerd has quit [Read error: No route to host]
hooper has quit [Ping timeout: 252 seconds]
bambuka has joined #ruby
Elhu has joined #ruby
teddyp1cker has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
toastyne_ has joined #ruby
cj3kim has joined #ruby
saarinen has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
blahblah has joined #ruby
blahblah has left #ruby [#ruby]
maletor has joined #ruby
Nukepuppy has joined #ruby
_tpavel has joined #ruby
fabrice31 has joined #ruby
toastyne_ has quit [Ping timeout: 268 seconds]
heftig has quit [Quit: Quitting]
hooper has joined #ruby
Hanmac1 has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
timonv has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
hooper has quit [Ping timeout: 240 seconds]
rahult_ is now known as rahult
funburn has quit [Quit: funburn]
mary5030 has quit [Ping timeout: 240 seconds]
viscera has quit [Quit: viscera]
chris_thomson has quit [Quit: Zzz...]
monsieurp has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
abdulsattar has joined #ruby
nanashiRei has quit [Ping timeout: 240 seconds]
davedev24 has quit [Remote host closed the connection]
WJB has quit [Ping timeout: 240 seconds]
Kuda has joined #ruby
kwertie has quit [Ping timeout: 246 seconds]
matti has quit [Ping timeout: 246 seconds]
droptone has quit [Ping timeout: 246 seconds]
Patteh has quit [Ping timeout: 240 seconds]
cj3kim has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
davedev24 has joined #ruby
matti has joined #ruby
apeiros has joined #ruby
Patteh has joined #ruby
pfg has joined #ruby
mikepack has quit [Remote host closed the connection]
Guest15582 has quit [Remote host closed the connection]
hooper has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
davedev24 has quit [Ping timeout: 240 seconds]
nanashiRei has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
michael_lee has joined #ruby
browndawg has joined #ruby
hooper has quit [Ping timeout: 240 seconds]
Nukepuppy has quit [Ping timeout: 268 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davedev24 has joined #ruby
bahar has quit [Ping timeout: 252 seconds]
apeiros has quit [Ping timeout: 240 seconds]
michael_lee has quit [Max SendQ exceeded]
droptone has joined #ruby
s2013 has quit [Ping timeout: 268 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
tharindu has joined #ruby
LadyRainicorn has joined #ruby
monsieurp has joined #ruby
bal has joined #ruby
toastynerd has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby
jonmorehouse has quit [Ping timeout: 240 seconds]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
yubrew has joined #ruby
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jackneill has joined #ruby
keeguon has joined #ruby
jonmorehouse has joined #ruby
freerobby has quit [Quit: Leaving.]
rahult is now known as rahult_
dr0ff has left #ruby [#ruby]
havenwood has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 255 seconds]
rahult_ is now known as rahult
mansi has joined #ruby
taf2 has quit [Quit: taf2]
michael_lee has joined #ruby
evenix has quit [Remote host closed the connection]
bronson has quit [Quit: bronson]
jonmorehouse has quit [Ping timeout: 252 seconds]
_justin has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
fgo has quit [Remote host closed the connection]
carraroj has joined #ruby
showaz has joined #ruby
supersym has joined #ruby
cj3kim has joined #ruby
chichou has quit [Remote host closed the connection]
supersym has quit [Client Quit]
<dmarr> do you still have to set GEM_HOME and GEM_PATH when using rbenv
supersym has joined #ruby
supersym has quit [Client Quit]
<dmarr> they are both empty for me and running bundle install fails trying to write to /System (osx)
supersym has joined #ruby
supersym has quit [Client Quit]
<dmarr> so it seems rbenv isnt setting up properly
supersym has joined #ruby
tvw has joined #ruby
tjr9898 has joined #ruby
michael_lee has quit [Max SendQ exceeded]
pu22l3r_ has joined #ruby
hermanmunster has quit [Remote host closed the connection]
jonmorehouse has joined #ruby
abdulsattar has quit [Ping timeout: 240 seconds]
hermanmunster has joined #ruby
pu22l3r__ has joined #ruby
jamto11 has joined #ruby
dagobah has joined #ruby
tjr9898 has quit [Ping timeout: 265 seconds]
pu22l3r has quit [Ping timeout: 240 seconds]
NovapaX has joined #ruby
Hanmac has joined #ruby
showaz has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
pu22l3r_ has quit [Ping timeout: 240 seconds]
Hanmac1 has quit [Ping timeout: 252 seconds]
keeguon has quit [Quit: keeguon]
hermanmunster has quit [Ping timeout: 240 seconds]
keeguon has joined #ruby
greggroth has quit [Quit: WeeChat 0.4.3]
emergion has quit [Quit: Connection closed for inactivity]
jamto11 has quit [Ping timeout: 240 seconds]
pu22l3r__ has quit [Ping timeout: 240 seconds]
jzig has quit [Ping timeout: 240 seconds]
poguez_ has joined #ruby
dodosan has joined #ruby
hooper has joined #ruby
akemrir has joined #ruby
havenwood has joined #ruby
arturaz has joined #ruby
Gooder has quit [Ping timeout: 240 seconds]
hooper has quit [Ping timeout: 252 seconds]
LiohAu has joined #ruby
browndawg has quit [Ping timeout: 240 seconds]
michael_lee has joined #ruby
mjs2600 has joined #ruby
selina345 has quit [Quit: Leaving]
jonmorehouse has quit [Ping timeout: 268 seconds]
rahult has quit [Quit: Back to the world of zombies]
toastynerd has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centrx has joined #ruby
Aquilo has joined #ruby
freerobby has joined #ruby
saarinen has joined #ruby
mjs2600 has quit [Ping timeout: 240 seconds]
aganov has joined #ruby
kornet has quit [Remote host closed the connection]
anarang has joined #ruby
klaut has joined #ruby
socrambuntu has joined #ruby
Terminus- has joined #ruby
_Andres has joined #ruby
freerobby has quit [Ping timeout: 255 seconds]
_justin has quit [Quit: _justin]
noop has joined #ruby
abdulsattar has joined #ruby
<dmarr> is there general toolchain channel for ruby?
socrambuntu has left #ruby ["Leaving"]
<centrx> dmarr, What do you mean by general toolchain
showaz has joined #ruby
jarray52 has joined #ruby
havenwood has quit [Ping timeout: 255 seconds]
_justin has joined #ruby
zigomir has joined #ruby
browndawg has joined #ruby
fabrice31 has joined #ruby
kitak__ has quit [Remote host closed the connection]
brucelee_ has quit [Ping timeout: 240 seconds]
jbw has quit [Ping timeout: 240 seconds]
pu22l3r has joined #ruby
apeiros has joined #ruby
<dmarr> like gem and bundler - how to set them up
<LadyRainicorn> Try RVM.
Stalkr_ has joined #ruby
<LadyRainicorn> It will autoinstall most of the dependencies.
relix has joined #ruby
andy__ has joined #ruby
<centrx> dmarr, There's #ruby, #ruby-lang, #rubygems, #bundler
yfeldblu_ has joined #ruby
kitak_ has joined #ruby
<centrx> dmarr, This is usually the most active of those channels.
dx7 has joined #ruby
<centrx> dmarr, Not much activity in any channel at this hour.
oo_ has quit [Remote host closed the connection]
yubrew has joined #ruby
oo_ has joined #ruby
<dmarr> ok - well thanks i'll mess around in a vm in the meantime
<LadyRainicorn> Seems active enough to me.
<crome> indeed
<LadyRainicorn> dmarr: Do you really want rbenv specifically? RVM tend to be more user friendly imo.
NovapaX has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
hermanmunster has joined #ruby
<dmarr> LadyRainicorn: i tried rvm on my work machine and its pretty ok , rbenv seemed a little more intriguing for provisioning servers.. im trying to get boxen installed too on my mac
<crome> more user friendly than rbenv? I dont know much about rvm but I have never use more than 1 command with rbenv
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<crome> it seems user friendly eonugh
NovapaX has joined #ruby
dx7 has quit [Ping timeout: 240 seconds]
hermanmunster has quit [Remote host closed the connection]
andy__ has quit [Ping timeout: 268 seconds]
<LadyRainicorn> RVM manages system dependencies.
<LadyRainicorn> and just tends to be magicaller.
yubrew has quit [Ping timeout: 255 seconds]
chichou has joined #ruby
<dmarr> crome: do you still have to set the GEM_HOME and GEM_PATH to install gems? I've tried using system and 2.1.1 and they both try to install stuff into system paths
JacobHayes has quit [Remote host closed the connection]
chichou has quit [Remote host closed the connection]
<crome> dmarr: ask me again a bit later, I can check my work setup
<crome> but I dont remember messing with them
olivier_bK has quit [Ping timeout: 246 seconds]
hermanmunster has joined #ruby
rails426 has joined #ruby
nooteh has joined #ruby
pu22l3r has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
hermanmunster has quit [Remote host closed the connection]
skammer has joined #ruby
rdark has joined #ruby
nooteh has quit [Read error: Connection reset by peer]
sensen has quit [Quit: leaving]
sigurding has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
mansi has joined #ruby
claymore has joined #ruby
Jon30 has quit [Ping timeout: 268 seconds]
freerobby has joined #ruby
mansi has quit [Ping timeout: 255 seconds]
cj3kim has quit [Remote host closed the connection]
fgo has joined #ruby
freerobby has quit [Read error: Operation timed out]
keeguon has quit [Quit: keeguon]
ephemerian has joined #ruby
greenarrow has joined #ruby
amclain has quit [Quit: Leaving]
jonmorehouse has joined #ruby
mr_snowf1ake has quit [Ping timeout: 252 seconds]
ndrei has quit [Ping timeout: 255 seconds]
saarinen has quit [Quit: saarinen]
cj3kim has joined #ruby
ndrei has joined #ruby
ndrei has quit [Read error: Connection reset by peer]
jack_rabbit has quit [Ping timeout: 240 seconds]
dodosan has quit []
centrx has quit [Quit: All this computer hacking is making me thirsty]
dfranciosi has quit [Remote host closed the connection]
dfranciosi has joined #ruby
rm__ has quit [Remote host closed the connection]
rm__ has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
jack_rabbit has joined #ruby
Elhu has joined #ruby
scttnlsn has quit [Ping timeout: 264 seconds]
rm__ has quit [Ping timeout: 255 seconds]
scttnlsn has joined #ruby
aagdbl has joined #ruby
hooper has joined #ruby
jonmorehouse has quit [Ping timeout: 252 seconds]
pfg has joined #ruby
jprovazn has joined #ruby
ndrei has joined #ruby
pu22l3r has joined #ruby
ghr has joined #ruby
cj3kim has quit [Remote host closed the connection]
jorts has joined #ruby
hooper has quit [Ping timeout: 268 seconds]
nvrch has joined #ruby
qba73 has joined #ruby
elaptics`away is now known as elaptics
dyoko has joined #ruby
fabrice31 has quit [Remote host closed the connection]
sski has joined #ruby
arietis has joined #ruby
fabrice31 has joined #ruby
jonmorehouse has joined #ruby
pu22l3r has quit [Ping timeout: 255 seconds]
jhass|off is now known as jhass
skammer is now known as skammer|afk
skammer|afk is now known as skammer
dumdedum has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
havenwood has joined #ruby
ikaros has joined #ruby
timonv has joined #ruby
_justin has quit [Quit: _justin]
ndrei has joined #ruby
jorts has quit [Quit: jorts]
havenwood has quit [Ping timeout: 240 seconds]
andy__ has joined #ruby
maroloccio has joined #ruby
Xeago_ has joined #ruby
Hanmac1 has joined #ruby
yacks has joined #ruby
yubrew has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 255 seconds]
andy__ has quit [Ping timeout: 268 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
lxsameer has joined #ruby
oo_ has joined #ruby
mrnugget has joined #ruby
jack_rabbit has quit [Ping timeout: 240 seconds]
keeguon has joined #ruby
sameerynho has joined #ruby
yubrew has quit [Ping timeout: 255 seconds]
canton7-mac has joined #ruby
timonv has quit [Remote host closed the connection]
jonmorehouse has quit [Ping timeout: 240 seconds]
lxsameer has quit [Ping timeout: 255 seconds]
einarj has joined #ruby
claymore has quit [Ping timeout: 240 seconds]
roolo has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.3]
nfk has quit [Quit: yawn]
claymore has joined #ruby
chichou has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
sameerynho has quit [Ping timeout: 240 seconds]
makara has joined #ruby
Kneferilis has quit [Ping timeout: 240 seconds]
cover has joined #ruby
chichou has quit [Remote host closed the connection]
phansch has joined #ruby
nfk has joined #ruby
marr has joined #ruby
olivier_bK has joined #ruby
combusean has quit [Ping timeout: 240 seconds]
nomenkun has joined #ruby
mansi has joined #ruby
mehlah has joined #ruby
deadlock has joined #ruby
carraroj has quit [Ping timeout: 240 seconds]
abdulsattar has quit [Ping timeout: 240 seconds]
skammer has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
skammer has joined #ruby
_justin has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
Squarepy has joined #ruby
oo_ has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago_ has quit []
coderhs has quit [Quit: Leaving]
kaspergrubbe has joined #ruby
Lewix has joined #ruby
anarang has quit [Ping timeout: 255 seconds]
redondos has quit [Ping timeout: 245 seconds]
anarang has joined #ruby
falood has joined #ruby
jamto11 has joined #ruby
AlSquire has joined #ruby
Dr3amc0d3r|away has quit [Changing host]
Dr3amc0d3r|away has joined #ruby
Dr3amc0d3r|away is now known as Dr3amc0d3r
pskosinski_ is now known as pskosinski
jzig has joined #ruby
cover_ has joined #ruby
greenarrow has quit [Quit: 500]
aeontech has joined #ruby
aeontech has quit [Client Quit]
cover has quit [Ping timeout: 255 seconds]
jamto11 has quit [Ping timeout: 252 seconds]
codeFiend has quit [Ping timeout: 268 seconds]
Jonah11_ has quit [Ping timeout: 240 seconds]
abdulsattar has joined #ruby
skammer is now known as skammer|afk
mikecmpbll has joined #ruby
RaptorJesus_ has joined #ruby
Xeago has joined #ruby
redondos has joined #ruby
greenarrow has joined #ruby
emanu has joined #ruby
cover_ has quit [Read error: Operation timed out]
jzig has quit [Ping timeout: 268 seconds]
RaptorJesus has quit [Ping timeout: 240 seconds]
CaptainJet has quit []
viscera has joined #ruby
coderxin has joined #ruby
combusean has joined #ruby
cover has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
carraroj has joined #ruby
yfeldblum has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
tvw has quit []
Kneferilis has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
<shevy> dumdedum
tvw has joined #ruby
combusean has quit [Ping timeout: 255 seconds]
<dumdedum> dum de dum
stef_204 has joined #ruby
sameerynho has joined #ruby
sski has quit [Remote host closed the connection]
andrewlio has joined #ruby
sski has joined #ruby
cover_ has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
cover has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
RyanV has joined #ruby
lxsameer has quit [Ping timeout: 255 seconds]
bronson has quit [Client Quit]
havenwood has joined #ruby
hooper has joined #ruby
jbueza has joined #ruby
carraroj has quit [Ping timeout: 240 seconds]
reactormonk has joined #ruby
sameerynho has quit [Ping timeout: 240 seconds]
dx7 has joined #ruby
<reactormonk> code golf: move 10% of the files in a directory to another one.
sski has quit [Ping timeout: 240 seconds]
gaussblurinc has joined #ruby
Dr3amc0d3r is now known as Dr3amc0d3r|away
cover has joined #ruby
cover_ has quit [Ping timeout: 240 seconds]
<shevy> hehe
havenwood has quit [Ping timeout: 240 seconds]
dx7 has quit [Ping timeout: 240 seconds]
hooper has quit [Ping timeout: 252 seconds]
skammer|afk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zommi has joined #ruby
Zai00 has joined #ruby
davedev24 has quit [Remote host closed the connection]
himsin has joined #ruby
kaspergr_ has joined #ruby
rm__ has joined #ruby
timonv has quit [Remote host closed the connection]
kaspergrubbe has quit [Ping timeout: 255 seconds]
zommi has quit [Remote host closed the connection]
browndawg has quit [Quit: Leaving.]
DaniG2k has joined #ruby
<guardian> hello, I have a .yaml file that contains smart quotes. I pass that file through ERB then I parse it with YAML.load
<guardian> irb(main):031:0> YAML.load(ERB.new(IO.read('./x.yaml')).result)
<guardian> so far so good
<guardian> but as soon as I do Encoding.default_external = 'ISO-8859-1'
<guardian> ERB outputs x80\x9C for the open smart quote
<reactormonk> guardian, somehow the idea of ERB -> yaml feels fishy to me
Lewix has quit [Remote host closed the connection]
<guardian> and then the YAML parser dies
<reactormonk> guardian, btw, you can pass an encoding argument to IO.read - I hope, at least.
<guardian> with Psych::SyntaxError: (<unknown>): control characters are not allowed at line 1 column 1
chichou has joined #ruby
<guardian> the thing is, if I change the encoding and don't pass the file through ERB then Psych parses it happily
<shevy> what encoding does erb use there?
Es0teric has quit [Quit: Computer has gone to sleep.]
<shevy> psych only allows utf
supergeek has joined #ruby
<guardian> reactormonk: fair enough, but I would like to solve the encoding puzzle first :)
<guardian> shevy: so you're suggesting I should convert ERB's output back to UTF-8 before sending it to psych?
<shevy> I dont suggest anything
rm__ has quit [Ping timeout: 252 seconds]
<shevy> because I can not in good faith recommend erb :)
<shevy> and I don't like psych either
pr0ggie has joined #ruby
DEA7TH has quit [Ping timeout: 240 seconds]
<shevy> what encoding do you get with ERB.new there?
<guardian> please guys, don't go the "do Y instead" path :/
<shevy> I did not say do Y instead
<guardian> what do you mean by what encoding do you get with ERB.new?
<shevy> My question is - what encoding do you pass to psych?
<guardian> if I do Encoding.default_external = 'ISO-8859-1' then IO.read('./x.yaml')).result outputs iso-8859-1 and escapes unicode characters it seems
heftig has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
<shevy> ok, psych won't allow this
<reactormonk> guardian, so why do you set the encoding?
<guardian> reactormonk: It's part of a test suite. I guess it covers the case for ruby under cygwin on Windows or alike
jprovazn has quit [Quit: Leaving]
<reactormonk> guardian, ok. As mentioned, tell IO.read you want utf-8 or similar.
rails426 has quit []
ohwhoa has joined #ruby
ohwhoa has quit [Client Quit]
<shevy> :D
supergeek has quit [Client Quit]
<guardian> yeah that's my idea as well, but I wanted to gather opinions
<guardian> as for ERB in YAML... well it's a hack to workaround the lack of include directive
Lewix has joined #ruby
<shevy> well it's quite simple, psych really does not give you an alternative.
<Hanmac1> psych is that problem
<reactormonk> guardian, fuck includes, just make a config directory
<shevy> I have invalid yaml files, they work with syck, syck is available as gem
<guardian> shevy: which I didn't know, so I'm glad you answered
<reactormonk> and IIRC even windows supports file links, correct?
<shevy> hey I did not know for a long time myself and hated this
<shevy> because all my system config and personal config files I cleverly stored in yaml back then :\
<shevy> then ruby generates all sorts of configuration files from that
poikon has joined #ruby
<reactormonk> shevy, puppet?
<shevy> then suddenly syck was gone and psych was added and nothing worked anymore
<guardian> reactormonk: symlinks don't fly in my situation. I can't commit a symlink in git and expect it to become a windows symlink under windows
<shevy> nah, all self written over the years
<shevy> my first mistake was to depend on one-config-format-to-rule-them-all
<shevy> but yaml can be so convenient, it's like a drug :)
yfeldblum has joined #ruby
<RubyPanther> I thought psych added encoding support recently
<shevy> really?
<shevy> I don't follow its development too closely
<shevy> that would be kinda cool haha
<reactormonk> guardian, yeah, git isn't too great with windows and symlinks :-/
Speed has joined #ruby
<reactormonk> not too sure if I need to add the symlinks part here.
yfeldblum has quit [Read error: Connection reset by peer]
<reactormonk> or the part about git </rant>
yfeldblum has joined #ruby
poikon_ has joined #ruby
carraroj has joined #ruby
<shevy> never stop a rant!
<shevy> only add more <rant>s
<RubyPanther> I depend on one config format to rule them all... SQL
<shevy> I like my flat files :(
<reactormonk> I prefer flat files in directories for ultimate git fun
<crome> dmarr: I dont do any magic with ruby environment variables. gems are always installed under the current ruby directory which is used by rbenv
<shevy> I am archaic... cd foo/; vim lalala.config (ok... lalala.yml)
<reactormonk> or just good ol' elisp
poikon has quit [Ping timeout: 255 seconds]
_justin has quit [Quit: _justin]
<shevy> ewwww
<RubyPanther> I love flat files! only problem, my data is stringy and textured
<shevy> (lisp
<shevy> (rant) <--- valid lisp!
<RubyPanther> and related
freerobby has joined #ruby
<shevy> str = "??????"; loaded = Psych.load("--- ??????".encode('SHIFT_JIS'))
<shevy> hmmmm
<reactormonk> (lisp (is (great) (because (the (syntax)) (is (simple))))
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<shevy> hehe
<shevy> ruby can be simple as well!
<reactormonk> all those dots confuse me.
<shevy> def visit_Encoding o
<shevy> method definitions without any ()
<shevy> hmm and mixed cases :\
<reactormonk> shevy, that's what I like nimrod for. style insensitive ^^
yfeldblum has quit [Ping timeout: 265 seconds]
<reactormonk> sucks for grepping though.
fgo has quit [Remote host closed the connection]
<shevy> hehe
timonv has joined #ruby
<reactormonk> --cs:none|partial set case sensitivity level (default: none);
<shevy> I hope arak will improve the nimrod tutorial
<shevy> there should be universal tutorials
<reactormonk> shevy, he probably won't, but I could. Give a few things you like/dont'
freerobby has quit [Ping timeout: 268 seconds]
skammer has joined #ruby
kaspergr_ has quit [Ping timeout: 240 seconds]
<shevy> reactormonk hmm something like the old "learn to program" guide in ruby
<reactormonk> btw, guess what the partial case sensitivity does.
diegoviola has quit [Quit: WeeChat 0.4.3]
claymore has quit [Quit: Leaving]
<shevy> there is http://nimrod-lang.org/tut1.html which is ok but somehow it is hard to connect the parts together
<shevy> it's like geared to solid programmers primarily :(
<reactormonk> aka copy the whole thing for nimrod?
<shevy> well no
sski has joined #ruby
<shevy> I actually mean more something like a unified tutorial (buildup) for all programming languages out there
<RubyPanther> mixed cases are bad, but method definitions without parens is normal
<shevy> something like a mix of it all... learn python the hard way... and so forth
<shevy> and!
nfk has quit [Quit: yawn]
<shevy> a link to a stdlib reference + explanation, like in pickaxe
stef_204 has joined #ruby
<reactormonk> + explanation ?
RaptorJesus has joined #ruby
<shevy> yeah, the pickaxe explained the stdlib too, as in brought examples and explained these. usage examples
<shevy> examples are best at explaining!
<reactormonk> yeah, the stdlib starts to get more of those
<RubyPanther> learn code the hard way is in most languages... http://programming-motherfucker.com/become.html
<keeguon> Hey guys I’m trying to combine net-ftp w/ openssl to connect to a remote FTPS using a defined certificate/key pair. In order to do this and avoid rewriting code I decided to use the following gem: https://rubygems.org/gems/double-bag-ftps. However whatever I do I run into the following error: "SSL_connect returned=1 errno=0 state=SSLv3 read server hello A: wrong version number”. Any ideas?
<shevy> RubyPanther but sometimes you need to use () for method invocations
<RubyPanther> sure but not for definition
shredding has joined #ruby
<RubyPanther> I invoke with parens frequently, even when I don't have to... but never for definitions
predator117 has quit [Ping timeout: 268 seconds]
<keeguon> FYI the code is here (without the real names): https://gist.github.com/Keeguon/9223910256b8dbfea56d
abdulsattar has quit [Ping timeout: 240 seconds]
RaptorJesus_ has quit [Ping timeout: 255 seconds]
tesuji has joined #ruby
<RubyPanther> And in tenderlove's defense, most of his methods are correct lower-case Ruby style. visit_Encoding etc are in a form where you can say send( "visit_#{klass}" )
sski has quit [Ping timeout: 240 seconds]
bluehavana_ has joined #ruby
kaspergrubbe has joined #ruby
predator117 has joined #ruby
_justin has joined #ruby
francisfish has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
hooper has joined #ruby
Hanmac has joined #ruby
<apeiros> if it's about https://github.com/tenderlove/psych/commit/960d30ef5ac4ab93db199852fcd93f3cc3dfe1dd, then I'm quite sure he mixes cases because he uses send
Hanmac1 has quit [Ping timeout: 268 seconds]
<apeiros> i.e., he does send(:"visit_#{classname}")
* apeiros lunch
hooper has quit [Ping timeout: 252 seconds]
RaptorJesus_ has joined #ruby
claymore has joined #ruby
combusean has joined #ruby
RaptorJesus has quit [Ping timeout: 252 seconds]
emanu has quit [Quit: emanu]
yubrew has joined #ruby
combusean has quit [Ping timeout: 240 seconds]
jprovazn has joined #ruby
chipotle_ has quit [Ping timeout: 252 seconds]
andrewlio has quit [Remote host closed the connection]
m0s is now known as m0s^away
michael_lee has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
<atmosx> hm
<atmosx> how can I create a gem that accepts variabels, like username password etc?
<atmosx> I mean what is the best strategy for users to have it as easy as possible?
<canton7-mac> have a config file? read in env vars? make them input them every time
havenwood has joined #ruby
<canton7-mac> the env var one is quite common, coupled with the option to override on a per-command basis
mostlybadfly has joined #ruby
<atmosx> env variables? hm. read a config sounds better. A yaml file perhaps?
<canton7-mac> that works too
<atmosx> like ~/.user_config.yaml
<atmosx> cool
<canton7-mac> they can stick env var declarations in their .bashrc, or anywhere else, which is quite nice
<canton7-mac> whereas with a config file you have to managed where it's stored
kennym has joined #ruby
<canton7-mac> and make sure the name doesn't collide with anything
<atmosx> aha
<canton7-mac> but lots of people still use that successfully
gaussblurinc has quit [Quit: Leaving.]
<atmosx> Can the gem request user/password at the time of installation?
<canton7-mac> no
<canton7-mac> if it's installed as a system gem, and you might want multiple users...?
<atmosx> hardly.
<atmosx> or at least I don't think so.
<atmosx> might be though, yes...
<atmosx> okay so env variables it is
falood has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 240 seconds]
foooobear has joined #ruby
Speed has quit [Ping timeout: 240 seconds]
Kar- has joined #ruby
francisfish has quit [Remote host closed the connection]
kennym has quit [Ping timeout: 240 seconds]
phansch has quit [Quit: WeeChat 0.4.2]
danijoo has joined #ruby
francisfish has joined #ruby
pu22l3r has joined #ruby
tesuji has quit [Ping timeout: 268 seconds]
makara has quit [Ping timeout: 240 seconds]
michael_lee has joined #ruby
rm__ has joined #ruby
Merks has joined #ruby
jollyy has joined #ruby
Hanmac has quit [Ping timeout: 255 seconds]
oo__ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
pu22l3r has quit [Ping timeout: 240 seconds]
gaussblurinc has joined #ruby
hooper has joined #ruby
tjr9898 has joined #ruby
jokke1 has quit [Ping timeout: 264 seconds]
fflush has joined #ruby
Speed has joined #ruby
jokke1 has joined #ruby
rm__ has quit [Ping timeout: 255 seconds]
tjr9898 has quit [Read error: Connection reset by peer]
tjr9898 has joined #ruby
habanany has joined #ruby
habanany has quit [Max SendQ exceeded]
thomasxie has joined #ruby
hooper has quit [Ping timeout: 268 seconds]
Hanmac has joined #ruby
ineb has quit [Quit: leaving]
habanany has joined #ruby
fflush has quit [Client Quit]
habanany has quit [Max SendQ exceeded]
luckyruby has joined #ruby
Speed has quit [Ping timeout: 240 seconds]
dyoko has quit [Quit: Leaving.]
nari has quit [Ping timeout: 245 seconds]
jlebrech has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
michael_lee has quit [Max SendQ exceeded]
bal has quit [Quit: bal]
mansi has joined #ruby
bal has joined #ruby
mehlah has quit [Quit: Leaving...]
yfeldblum has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
freerobby has joined #ruby
mieko has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
nvrch has quit [Quit: nvrch]
workmad3 has joined #ruby
habanany has joined #ruby
habanany has quit [Max SendQ exceeded]
yfeldblum has quit [Ping timeout: 268 seconds]
tulak has joined #ruby
freerobby has quit [Ping timeout: 268 seconds]
Zai00 has quit [Quit: Zai00]
browndawg has joined #ruby
pskosinski has quit [Ping timeout: 265 seconds]
m8 has joined #ruby
Lewix has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
chrisseaton has joined #ruby
habanany has joined #ruby
habanany has quit [Max SendQ exceeded]
andrewlio has joined #ruby
fabrice31 has quit [Remote host closed the connection]
tkuchiki_ has joined #ruby
jamto11 has joined #ruby
habanany has joined #ruby
habanany has quit [Max SendQ exceeded]
popl has joined #ruby
popl has joined #ruby
chichou has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 268 seconds]
<sigurding> is it possible to extend the optionparser list, after it has been initialized?
chichou has joined #ruby
tkuchiki_ has quit [Ping timeout: 268 seconds]
michael_lee has joined #ruby
rylev has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
Speed has joined #ruby
tulak has quit [Quit: Leaving.]
workmad3 has quit [Ping timeout: 240 seconds]
michael_lee has quit [Excess Flood]
workmad3 has joined #ruby
nari has joined #ruby
Kar- has quit [Ping timeout: 268 seconds]
phutchins has joined #ruby
yubrew has joined #ruby
dx7 has joined #ruby
_tpavel has quit [Quit: Leaving]
_tpavel has joined #ruby
fabrice31 has joined #ruby
ohwhoa has joined #ruby
RyanV has quit [Remote host closed the connection]
_Andres has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 255 seconds]
dumdedum has quit [Quit: foo]
dx7 has quit [Ping timeout: 268 seconds]
ohwhoa has quit [Client Quit]
mjs2600 has joined #ruby
Lewix has joined #ruby
teddyp1cker has joined #ruby
roolo has quit [Quit: Leaving...]
mjs2600 has quit [Ping timeout: 240 seconds]
teddyp1cker has quit [Ping timeout: 240 seconds]
xcv has joined #ruby
habanany has joined #ruby
tkuchiki has joined #ruby
habanany has quit [Max SendQ exceeded]
dyoko has joined #ruby
havenwood has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
xcv_ has quit [Ping timeout: 252 seconds]
jollyy_ has joined #ruby
jollyy has quit [Ping timeout: 240 seconds]
jollyy_ is now known as jollyy
RaptorJesus_ has quit [Ping timeout: 268 seconds]
habanany has joined #ruby
Hanmac has joined #ruby
habanany has quit [Max SendQ exceeded]
thevishy has joined #ruby
havenwood has quit [Ping timeout: 255 seconds]
Merks has quit []
tkuchiki has quit [Remote host closed the connection]
mrnugget has quit [Quit: mrnugget]
mercwithamouth has quit [Ping timeout: 240 seconds]
taf2 has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
FDj has quit [Ping timeout: 245 seconds]
ndrei has joined #ruby
mercwithamouth has joined #ruby
noob101 has quit [Ping timeout: 245 seconds]
taf2 has quit [Client Quit]
eka has joined #ruby
rm__ has joined #ruby
kobain has quit []
<Cork> could anyone explain the reason for a = { unless:->{} } vs a = { :unless=>->{} }
<Cork> (why the first one doesn't evaluate)
DaniG2k has quit [Quit: leaving]
<tobiasvl> Cork: the { a: b } hash syntax means { :a => "b" }
<tobiasvl> or no it doesn't
<workmad3> Cork: what do you mean 'doesn't evaluate'?
<tobiasvl> disregard me
ndrei has quit [Ping timeout: 255 seconds]
<Cork> workmad3: try run it in a console :)
<workmad3> >> a = { unless:->{} }
<eval-in> workmad3 => {:unless=>#<Proc:0x421fe450@/tmp/execpad-dcb872e5e2a5/source-dcb872e5e2a5:2 (lambda)>} (https://eval.in/131692)
<tobiasvl> it parses weird
<workmad3> Cork: looks fine to me
<tobiasvl> workmad3: try it in irb
<Cork> it's like the parser takes unless: as the "unless" keyword
rm__ has quit [Ping timeout: 268 seconds]
<Cork> same for if
makara has joined #ruby
<Cork> any other key works fine
roolo has joined #ruby
<workmad3> Cork: I think that's an IRB bug, not a ruby bug ;)
<Cork> hmm
<Cork> heh, actually not sure if i've ran it outside irb
<Cork> workmad3: thx for the hint
* Cork gtg
<workmad3> >> a = { unless:->{} }
<eval-in> workmad3 => {:unless=>#<Proc:0x41d9a454@/tmp/execpad-22ba6e705e67/source-22ba6e705e67:2 (lambda)>} (https://eval.in/131693)
<workmad3> Cork: ^^ there you go, outside IRB ;)
<workmad3> Cork: I think you're right that it's due to the unless or if... IRB is probably parsing them out in order to determine when to evaluate multi-line input
<workmad3> Cork: works fine in pry btw ;)
mehlah has joined #ruby
obs has joined #ruby
shredding has quit [Quit: shredding]
poguez_ has quit [Quit: Connection closed for inactivity]
fflush has joined #ruby
fflush has quit [Changing host]
fflush has joined #ruby
obs has quit [Client Quit]
nfk has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
njection has quit []
greenarrow has quit [Quit: 500]
maximski has joined #ruby
freerobby has joined #ruby
m0s^away is now known as m0s
andrewlio has quit [Quit: Leaving.]
Kuda has quit [Quit: Sleep]
Kuda has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
freerobby1 has joined #ruby
njection has joined #ruby
jxf has joined #ruby
habanany has joined #ruby
charlies_ has joined #ruby
Elhu has joined #ruby
njection has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
lkba has quit [Ping timeout: 268 seconds]
habanany has quit [Max SendQ exceeded]
ndrei has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 255 seconds]
teddyp1cker has joined #ruby
francisfish has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
freerobby1 has quit [Ping timeout: 240 seconds]
Kuda has quit [Ping timeout: 240 seconds]
bal has quit [Quit: bal]
angusiguess has joined #ruby
mansi has joined #ruby
tjr9898_ has joined #ruby
tulak has joined #ruby
chrisseaton has quit []
nuck has quit [Ping timeout: 240 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
teddyp1c_ has joined #ruby
carraroj has quit [Ping timeout: 240 seconds]
wald0 has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
teddyp1__ has joined #ruby
kukyakya has joined #ruby
slawrence00 has joined #ruby
teddyp1cker has quit [Ping timeout: 268 seconds]
nuck has joined #ruby
slawrence00 has quit [Client Quit]
slawrence00 has joined #ruby
teddyp1c_ has quit [Ping timeout: 252 seconds]
yubrew has joined #ruby
teddyp1cker has joined #ruby
_Andres has joined #ruby
teddyp1__ has quit [Ping timeout: 240 seconds]
gaussblurinc has quit [Quit: Leaving.]
jottr_ has joined #ruby
fgo has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
teddyp1c_ has joined #ruby
bahar has joined #ruby
yubrew has quit [Ping timeout: 268 seconds]
ndrei has quit [Ping timeout: 252 seconds]
claymore has quit [Ping timeout: 240 seconds]
teddyp1cker has quit [Ping timeout: 240 seconds]
flops has joined #ruby
spyderman4g63 has joined #ruby
claymore has joined #ruby
_Andres has joined #ruby
teddyp1c_ has quit [Ping timeout: 240 seconds]
andrewlio has joined #ruby
habanany has joined #ruby
habanany has quit [Max SendQ exceeded]
viscera has quit [Quit: viscera]
AlexRussia has joined #ruby
chichou has quit [Remote host closed the connection]
djbender has joined #ruby
FDj has joined #ruby
teddyp1cker has joined #ruby
Deele has joined #ruby
chuk has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
sailias has quit [Ping timeout: 240 seconds]
deadlock has quit [Ping timeout: 240 seconds]
fflush has quit [Quit: fflush]
flops has quit [Ping timeout: 255 seconds]
flops_ has joined #ruby
Hanmac has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
sputnik1_ has joined #ruby
FDj has quit [Ping timeout: 240 seconds]
Mongey has quit [Ping timeout: 240 seconds]
mengu has quit [Remote host closed the connection]
gerep has joined #ruby
Hanmac1 has quit [Ping timeout: 268 seconds]
mansi has quit [Ping timeout: 240 seconds]
atmosx has quit [Remote host closed the connection]
simono has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
dfranciosi has quit [Remote host closed the connection]
atmosx has joined #ruby
havenwood has joined #ruby
vt102 has joined #ruby
teddyp1cker has joined #ruby
dfranciosi has joined #ruby
mmochan_ has quit [Quit: Connection closed for inactivity]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
Unfriendly has joined #ruby
NovapaX has quit [Quit: Textual IRC Client: www.textualapp.com]
platzhirsch has joined #ruby
rm__ has joined #ruby
* platzhirsch meows...
m0s is now known as m0s^away
dblessing has joined #ruby
doodlehaus has joined #ruby
_Andres has joined #ruby
Zai00 has joined #ruby
pu22l3r has joined #ruby
havenwood has quit [Ping timeout: 255 seconds]
teddyp1cker has quit [Ping timeout: 240 seconds]
kaspergr_ has joined #ruby
kaspergrubbe has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
sailias has joined #ruby
andrewlio has quit [Quit: Leaving.]
paulfm has joined #ruby
dfranciosi has quit [Remote host closed the connection]
dfranciosi has joined #ruby
pu22l3r has quit [Ping timeout: 268 seconds]
JacobHayes has joined #ruby
* DouweM pets
m0s^away is now known as m0s
scttnlsn has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
teddyp1cker has joined #ruby
_sambao21 has joined #ruby
francisfish has joined #ruby
mark_locklear has joined #ruby
mame0 has joined #ruby
Lewix has quit [Remote host closed the connection]
marr has quit []
lkba has joined #ruby
momomomomo has joined #ruby
sambao21 has quit [Ping timeout: 240 seconds]
tulak has left #ruby [#ruby]
shredding has joined #ruby
scttnlsn has joined #ruby
olausm has joined #ruby
deadlock has joined #ruby
SirFunk has quit [Remote host closed the connection]
FDj has joined #ruby
doodlehaus has quit [Remote host closed the connection]
freerobby has joined #ruby
SirFunk has joined #ruby
nvrch has joined #ruby
poikon_ has quit [Read error: Connection reset by peer]
<Jamo> Umm, whats the best practice in Ruby to ask user input so that it wont be shown - like when asking password?
falsetto has joined #ruby
poikon has joined #ruby
olausm has quit [Quit: Leaving]
<apeiros> require 'io/console' and disable echo
coderxin has quit []
olausm has joined #ruby
<apeiros> $stdin.noecho(&:gets)
olausm has quit [Client Quit]
olausm has joined #ruby
JacobHayes has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 252 seconds]
olausm has quit [Client Quit]
dfranciosi has quit []
arietis has quit [Quit: Computer has gone to sleep.]
<Jamo> apeiros: Thanks!
yacks has quit [Quit: Leaving]
phansch has joined #ruby
mjs2600 has joined #ruby
francisfish has quit [Remote host closed the connection]
linojon has joined #ruby
arietis has joined #ruby
yubrew has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
dx7 has joined #ruby
timonv has quit [Remote host closed the connection]
jamto11 has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
bambuka has quit [Quit: Saliendo]
wald0 has quit [Quit: leaving]
dx7 has quit [Ping timeout: 252 seconds]
francisfish has joined #ruby
jamto11 has quit [Ping timeout: 268 seconds]
tjr9898_ has quit [Remote host closed the connection]
thomasxie has left #ruby [#ruby]
tjr9898_ has joined #ruby
popl has quit [Ping timeout: 240 seconds]
garndt has joined #ruby
Kricir has joined #ruby
mary5030 has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 268 seconds]
rmorello has joined #ruby
teddyp1cker has joined #ruby
gaussblurinc has joined #ruby
soahccc has quit [Ping timeout: 255 seconds]
sailias has quit [Ping timeout: 240 seconds]
pu22l3r has joined #ruby
pu22l3r has quit [Remote host closed the connection]
timonv has joined #ruby
Hanmac1 has joined #ruby
pu22l3r has joined #ruby
Fin1te has joined #ruby
Kricir has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 240 seconds]
mrnugget has joined #ruby
Elhu has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Fin1te has left #ruby [#ruby]
Hanmac has quit [Ping timeout: 240 seconds]
falsetto has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
chuk has quit [Quit: Leaving]
<Hanmac1> apeiros: did you know that Complex includes Comparable, but did not have <=> and any other similar methods like <= and >= ?
<Hanmac1> >> Comparable.instance_methods.map {|m| Complex.instance_methods.include?(m) }
<eval-in> Hanmac1 => [true, false, false, false, false, false] (https://eval.in/131789)
Hanmac1 is now known as Hanmac
davedev24 has joined #ruby
IceDragon has joined #ruby
phantummm has joined #ruby
Joel has left #ruby ["Leaving"]
havenwood has joined #ruby
dewolfe has quit [Ping timeout: 240 seconds]
alexju has joined #ruby
greenarrow has joined #ruby
lmickh has joined #ruby
DouweM has quit [Read error: Operation timed out]
angusiguess has joined #ruby
vt102 has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
elaptics has quit [Excess Flood]
elaptics has joined #ruby
elaptics is now known as elaptics`away
elaptics`away is now known as elaptics
Mon_Ouie has joined #ruby
chrisseaton has joined #ruby
kennym has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
<Hanmac> hihi i found errors in rake and irb ;P
ndrei has joined #ruby
mansi has quit [Ping timeout: 252 seconds]
himsin has quit [Quit: himsin]
Lewix has joined #ruby
r_rios has joined #ruby
kennym has quit [Ping timeout: 268 seconds]
_sambao21 has quit [Quit: Computer has gone to sleep.]
platzhirsch has quit [Quit: Leaving.]
tkuchiki_ has joined #ruby
taf2 has joined #ruby
habanany has joined #ruby
habanany has quit [Max SendQ exceeded]
kennym has joined #ruby
havenwood has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
sailias has joined #ruby
Hanmac1 has joined #ruby
peterellisjones has joined #ruby
platzhirsch has joined #ruby
_justin has quit [Quit: _justin]
mansi has joined #ruby
Hanmac has quit [Ping timeout: 255 seconds]
yacks has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
tkuchiki_ has quit [Remote host closed the connection]
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
obs has joined #ruby
DouweM has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
arietis has joined #ruby
renklaf has joined #ruby
r_rios is now known as r_rios|work
<shevy> I hate rewrites
mrmargolis has joined #ruby
yfeldblum has joined #ruby
zchrykng-work has joined #ruby
jlast has joined #ruby
yubrew has joined #ruby
dik_dak has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
maxmanders_ is now known as maxmanders
doodlehaus has joined #ruby
benzrf|offline is now known as benzrf
yubrew has quit [Ping timeout: 240 seconds]
zz_jrhorn424 is now known as jrhorn424
enebo has joined #ruby
_5kg has quit [Quit: WeeChat 0.4.3]
ndrei has quit [Ping timeout: 268 seconds]
krz has quit [Quit: WeeChat 0.4.3]
m0s is now known as m0s^away
ndrei has joined #ruby
newUser1234 has joined #ruby
kaspergr_ has quit [Ping timeout: 268 seconds]
kukyakya has quit [Remote host closed the connection]
_5kg has joined #ruby
kukyakya has joined #ruby
<keeguon> hey guys do anyone of you know a little bit about the openssl lib?
pu22l3r_ has joined #ruby
<jhass> just ask your question, don't try to find the right person to answer it first
Hanmac has joined #ruby
Morkel has quit [Ping timeout: 268 seconds]
Morkel has joined #ruby
jeregrine has joined #ruby
kukyakya has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 268 seconds]
<keeguon> well I have this tricky issue I’m able to connect to a remote FTPS server (not SFTP but FTP w/ SSL) using openssl s_client and setting the starttls to ftp but when I try to do the same in Ruby combining with the net-ftp lib it seems that the starttls command isn’t sent
chuk_ has joined #ruby
<keeguon> which is a bit annoying so is there anyway to replicate what the starttls option of openssl s_client is doing using the openssl in ruby?
pu22l3r has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
kaspergrubbe has joined #ruby
himsin has joined #ruby
himsin has quit [Client Quit]
tharindu has quit [Quit: Leaving...]
CreativeEmbassy has joined #ruby
benzrf is now known as benzrf|offline
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 240 seconds]
<shevy> ok guys, it's time again
<shevy> down with the pants!
sambao21 has joined #ruby
banister has joined #ruby
maximski has quit []
<keeguon> okay nevermind fixed it
m0s^away is now known as m0s
codabrink has joined #ruby
linuxer1_ has joined #ruby
albedoa has joined #ruby
tvw has quit []
poguez_ has joined #ruby
duggiefresh has joined #ruby
linuxer1 has quit [Ping timeout: 240 seconds]
linuxer1_ is now known as linuxer1
kennym1 has joined #ruby
jamto11 has joined #ruby
kennym has quit [Ping timeout: 240 seconds]
derek_c has joined #ruby
havenwood has joined #ruby
cpruitt has joined #ruby
agjacome has joined #ruby
Unfriendly has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Go on, try it!]
tjr9898_ has quit [Remote host closed the connection]
saarinen has joined #ruby
flowerhack has joined #ruby
rylev has quit [Remote host closed the connection]
phansch has quit [Quit: WeeChat 0.4.2]
chipotle has joined #ruby
arubincloud has joined #ruby
AlexRussia has quit [Read error: Operation timed out]
phantummm has quit [Quit: phantummm]
nateberkopec has quit [Quit: Leaving...]
linuxer1 has quit [Quit: linuxer1]
oo__ has quit [Remote host closed the connection]
<platzhirsch> shevy: hah, never
<shevy> you are excused
<shevy> in london it is not good to go down with the pants
LadyRainicorn has quit [Quit: Bye]
oo_ has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
rudisimo has joined #ruby
pu22l3r has joined #ruby
<platzhirsch> :o)
AlexRussia has joined #ruby
phantummm has joined #ruby
afreidah1 has joined #ruby
mary5030 has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
platzhirsch has quit [Quit: Leaving.]
platzhirsch1 has joined #ruby
oo_ has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
dx7 has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Ping timeout: 240 seconds]
oo__ has joined #ruby
centrx has joined #ruby
jefflyne has quit [Ping timeout: 240 seconds]
andrewlio has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
gabrielCmendes has quit [Ping timeout: 268 seconds]
gabrielCmendes has joined #ruby
kimiamania|BNC is now known as kimiamania
renklaf has quit [Remote host closed the connection]
<thoraxe> does anyone know if it is possible to observe the SELinux information about a file via File? I tried to google around for info but I am getting only results about selinux bothering ruby
ffranz has joined #ruby
dayepa has joined #ruby
<thoraxe> stat doesn't seem to know/care about selinux
jefflyne has joined #ruby
teddyp1cker has quit [Read error: Connection reset by peer]
meatherly has joined #ruby
obs has quit [Quit: Konversation terminated!]
teddyp1cker has joined #ruby
<thoraxe> well, i should say that File::Stat.new doesn't pull in that information, but the stat utility (at least on linux) seems to have the info
makara has quit [Quit: Leaving]
mansi has joined #ruby
oo__ has quit [Remote host closed the connection]
coderhs has joined #ruby
<hoelzro> thoraxe: do an strace on stat to see what system calls it's using
<thoraxe> one sec gotta install strace
Speed has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby
<shevy> hehehe
dyoko has quit [Quit: Leaving.]
<thoraxe> hoelzro: http://ur1.ca/gzmmd
<thoraxe> shevy: yum -y install strace ;)
ndrei has joined #ruby
<shevy> what version
<hoelzro> shevy: looks like getxattr
<hoelzro> er
<hoelzro> thoraxe: looks like getxattr
<thoraxe> there is an xattr gem
<hoelzro> sounds like a good start =)
<thoraxe> but very old and not updated it seems
pontiki` has joined #ruby
<rdark> thoraxe: I think you need the selinux bindings (libselinux-ruby on most distros)
<thoraxe> i'll poke around later. thanks! gotta jet
_tpavel has quit [Quit: Leaving]
<thoraxe> rdark: hmm possibly!
yfeldblum has joined #ruby
Solnse has joined #ruby
<thoraxe> rdark: i do have that one installed
tobago has quit [Remote host closed the connection]
pu22l3r has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby
crystal77 has joined #ruby
tagrudev has quit [Remote host closed the connection]
pontiki has quit [Ping timeout: 268 seconds]
pontiki`` has joined #ruby
akemrir has quit [Quit: WeeChat 0.4.3]
soahccc has joined #ruby
mengu has quit []
<thoraxe> rdark: looks like they use some Selinux thing but I'm not sure wehre it came from
rylev has joined #ruby
<thoraxe> i'll dig deeper later
<thoraxe> thanks all
duggiefresh has quit []
duggiefresh has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
dayepa has quit [Ping timeout: 240 seconds]
pontiki` has quit [Ping timeout: 268 seconds]
rylev has quit [Remote host closed the connection]
charlies_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jonah11_ has joined #ruby
xcv has quit [Remote host closed the connection]
gemmy has joined #ruby
wjlafrance has joined #ruby
benzrf|offline is now known as benzrf
toastynerd has joined #ruby
_5kg has quit [Ping timeout: 255 seconds]
pwh has quit []
ndrei has quit [Ping timeout: 240 seconds]
pontiki`` is now known as pontiki
pu22l3r has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
<benzrf> ok ok
<benzrf> yo DouweM u there
pu22l3r has joined #ruby
<DouweM> ya
frem_ has joined #ruby
fgo has quit [Remote host closed the connection]
Jonah11_ has quit [Ping timeout: 240 seconds]
<benzrf> DouweM: ideas n shit
<benzrf> via bilbo_swagginz
havenwood has joined #ruby
ndrei has joined #ruby
<DouweM> wat
<benzrf> DouweM: in quick, make it so that starting a new quick instance creates an empty git repo in ~/.quicks or something
<benzrf> then doing 'quick checkpoint' dumps the frozen state to that repo
<benzrf> as well as dumping the dir structures
linuxer1 has joined #ruby
<DouweM> I'd like that
<benzrf> then you can use 'quick git <commands here>' to execute those commands on the repo and autoload the new stuff
snath has quit [Ping timeout: 240 seconds]
<benzrf> i.e. 'quick git log'
newUser1234 has quit [Remote host closed the connection]
<benzrf> 'quick git checkout HEAD^^'
<benzrf> after each git subcmd, if the repo was modified then load the frozen state from it as well as all of the code
<benzrf> by dumping the code in addition to the state, you can merge branches
<benzrf> you keep the newer prog state but merge the code
saarinen has quit [Quit: saarinen]
<benzrf> [still planning on quick export of course]
cpruitt has quit [Quit: cpruitt]
<DouweM> :)
klaut has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kevinykchan has joined #ruby
r_rios|work is now known as r_rios
yubrew has joined #ruby
rvraghav93 has joined #ruby
dyoko has joined #ruby
<benzrf> DouweM: opinion on this mechanic:
agrinb has joined #ruby
<benzrf> doing 'quick start <name>' will create or load the repo ~/.quicks/<name>
cpruitt has joined #ruby
Aquilo has quit [Remote host closed the connection]
Aquilo has joined #ruby
psyko666 has joined #ruby
<DouweM> sounds all right to me
IcyDragon has joined #ruby
<arubincloud> benzrf: Is there any documentation for quick?
ce_afk is now known as cescalante
IceDragon has quit [Ping timeout: 240 seconds]
newUser1234 has joined #ruby
cescalante is now known as ce_afk
rayners has joined #ruby
eynj has quit [Quit: Leaving.]
predator117 has quit [Ping timeout: 252 seconds]
Kricir has joined #ruby
pushpak has joined #ruby
evenix has joined #ruby
Jonah11_ has joined #ruby
lsmola_ has quit [Ping timeout: 240 seconds]
<benzrf> arubincloud: not yet
mansi has quit [Ping timeout: 255 seconds]
thevishy has quit [Ping timeout: 255 seconds]
<benzrf> (⊙ω⊙)
jottr_ has quit [Ping timeout: 240 seconds]
newUser1234 has quit [Remote host closed the connection]
<arubincloud> A blog post? Anything?
predator117 has joined #ruby
joelbrewer has joined #ruby
<DouweM> benzrf: just add a quick (hehe) description of the available commands to the readme, and/or link to a screencast
<benzrf> arubincloud: the repo has a demo typescript
w|t is now known as jtz
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
qba73 has quit []
psyko666 has quit [Quit: Leaving]
Lewix has quit [Remote host closed the connection]
habanany has joined #ruby
Kricir_ has joined #ruby
r_rios has quit [Ping timeout: 240 seconds]
Kricir has quit [Ping timeout: 268 seconds]
habanany has quit [Max SendQ exceeded]
x77686d has joined #ruby
platzhirsch1 has quit [Quit: Leaving.]
jorts has joined #ruby
Vik-Thor has joined #ruby
<Vik-Thor> hi
apeiros has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
apeiros has joined #ruby
tylersmith has joined #ruby
<Vik-Thor> I use capibara for functional testing, and i just wanted to know if there was a function who recognize a string in a HTML tag?
monkegjinni has quit [Remote host closed the connection]
cpruitt has quit [Quit: cpruitt]
shabgard has joined #ruby
<j416> Vik-Thor: not sure I understand what you are trying to say, but look at nokogiri
andy__ has joined #ruby
aganov has quit [Quit: Leaving]
mansi has joined #ruby
apeiros has quit [Ping timeout: 255 seconds]
tylersmith has quit [Ping timeout: 240 seconds]
obs has joined #ruby
toastynerd has quit [Remote host closed the connection]
platzhirsch has joined #ruby
cpruitt has joined #ruby
shabgard has quit [Client Quit]
<shevy> benzrf told you! you should work on docu
<benzrf> shevy: yeah w/e dude
Speed has joined #ruby
<shevy> :D
gaussblurinc has quit [Quit: Leaving.]
Cache_Money has quit [Quit: Cache_Money]
lxsameer has joined #ruby
<DouweM> Vik-Thor: yeah, capy can definitely do that. what are you looking for specifically?
jzig has joined #ruby
<DouweM> j416: that's not relevant ;)
<Sou|cutter> if you have the text of the tag just use a regex on it
IcyDragon is now known as IceDragon
mansi has quit [Ping timeout: 255 seconds]
<j416> DouweM: alright. Didn't know capibara had a built-in parser.
fgo has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
<Sou|cutter> capybara...
ce_afk is now known as cescalante
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
m0s is now known as m0s^away
klaut has joined #ruby
Dizorder has joined #ruby
relix has joined #ruby
<fbernier> Anyone knows if it's possible to use TracePoint to trace uncaught exceptions ?
relix has quit [Client Quit]
m0s^away is now known as m0s
jetblack has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
gchristensen has joined #ruby
<DouweM> j416: yeah, the whole point is that you can talk to the document over Ruby. the HTML isn't just parsed, it's actually loaded in a (headless) browser
gchristensen has left #ruby ["WeeChat 0.4.1"]
jxf has quit [Ping timeout: 240 seconds]
<j416> ok
Dizorder has quit [Client Quit]
tylersmith has joined #ruby
<j416> crazy. :)
snath has joined #ruby
kevinykchan has joined #ruby
habanany has joined #ruby
Dizorder has joined #ruby
vt102 has joined #ruby
habanany has quit [Max SendQ exceeded]
SCommette has joined #ruby
fabrice31 has quit [Remote host closed the connection]
<DouweM> j416: if you didn't know that, I wonder what you've been using Capybara for!
fabrice31 has joined #ruby
joelbrewer has quit [Quit: Lost terminal]
banister has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
dunix has joined #ruby
nateberkopec has joined #ruby
kevind has joined #ruby
<benzrf> bbloom:
<benzrf> *bbl
<benzrf> god damn
_5kg has joined #ruby
benzrf is now known as benzrf|offline
nateberkopec has quit [Client Quit]
csfrancis has joined #ruby
fabrice31 has quit [Ping timeout: 268 seconds]
Mon_Ouie has quit [Ping timeout: 255 seconds]
<shevy> benzrf|offline lol
<shevy> this is so funny
<shevy> bbloom!!!
<shevy> we need to put more IRC nicks as mines and traps
jaywastaken has joined #ruby
Nukepuppy has joined #ruby
maletor has joined #ruby
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
yfeldblum has joined #ruby
blackavr has joined #ruby
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
apeiros has joined #ruby
frem_ is now known as frem
DEA7TH has joined #ruby
pontiki is now known as afkmouse
cescalante is now known as ce_afk
<afkmouse> how's that, shevy ?
<mikecmpbll> uh, how would i remove a character from a string at a specific index and have it return the resultant string
afkmouse is now known as ttylmouse
cpruitt has quit [Quit: cpruitt]
<shevy> mikecmpbll do you really have to do it as one step?
<mikecmpbll> yep.
thevishy has joined #ruby
<shevy> ttylmouse benzrf mis-tab completes, it's a lot of fun
<shevy> ttylmouse <benzrf> bbloom:
<mikecmpbll> oh, i think i can use chomp.
<mikecmpbll> wait no
<shevy> ttylmouse <benzrf> *bbl
maletor has quit [Ping timeout: 255 seconds]
ttylmouse is now known as pontiki
<shevy> you keep on changing nicks so quickly!
<shevy> ponbiki
<shevy> haha :D
<shevy> mikecmpbll if that char is only one time in the string you could use .delete
<pontiki> mikecmpbll: can the character be anywhere in the string?
yfeldblum has quit [Ping timeout: 265 seconds]
<mikecmpbll> yep
<shevy> what is the string anyway
<mikecmpbll> "plshelpmeshevy"
<shevy> easier to work with a specific example really
<shevy> ok
<mikecmpbll> :D
<shevy> what must be removed
<mikecmpbll> character at index 4.
<shevy> can I cheat :P
newUser1234 has joined #ruby
<shevy> "plshelpmeshevy"[0..3]+"plshelpmeshevy"[5..-1]
<mikecmpbll> ew :(
<shevy> would be nice if we could use [0..3, 5..-1]
<pontiki> iunno, monkeypatch a delete_at for String?
stormbytes has joined #ruby
<mikecmpbll> there should be a version of slice that returns the sliced string
<stormbytes> hey
<mikecmpbll> sigh.
<shevy> or .opposite_slice
<shevy> or .slice_except
<pontiki> unslice
<stormbytes> trying to wrap my head around the way the 'inject' method works
<shevy> lol
<shevy> stormbytes the way I remember it is this: count up something with inject
<pontiki> superslice
<pontiki> sliceomatic
<shevy> >> [1,3,5,7,9,22].inject(0) {|sum, element| sum+element}
<stormbytes> yeah but it seems to not iterate over 0
<eval-in> shevy => 47 (https://eval.in/131836)
<shevy> iterate over 0? what does that mean
<stormbytes> 1 sec
<shevy> 2
<shevy> 3
<shevy> 4
<shevy> you are out!
<shevy> pontiki I like superslice
rm__ has quit [Remote host closed the connection]
<shevy> it makes my code feel very powerful
pu22l3r_ has joined #ruby
geggam has joined #ruby
rm_ has joined #ruby
<stormbytes> (0..1).inject { |memo, x| memo + 1 } should be 4, its 3
<stormbytes> which baffles me
<shevy> huh
<stormbytes> errr
<stormbytes> sorry (0..3)
<pontiki> what is this (0i3) thing?
<stormbytes> a range
<stormbytes> [0,1,2,3]
<pontiki> new syntax to me
<stormbytes> [0,1,2,3].inject { |memo, x| memo + 1 } should => 4
<mikecmpbll> :D
<stormbytes> but its 3
nvrch has quit [Quit: nvrch]
rm__ has joined #ruby
<pontiki> you didn't give it an initializer
rm__ has quit [Remote host closed the connection]
<apeiros> stormbytes: why should it be 4?
<pontiki> so it pulls the first element off to use as that
pu22l3r has quit [Ping timeout: 240 seconds]
rm__ has joined #ruby
<pontiki> >> [0,1,2,3].inject(0) {|memo,x| memo + 1}
<eval-in> pontiki => 4 (https://eval.in/131837)
<stormbytes> inject *should* initialize the sum/memo to the first value
<apeiros> stormbytes: it does
<pontiki> yes, it does
<stormbytes> it shouldn't (to my knowledge) pull it off
<pontiki> but that leaves only three elements left in the array
<stormbytes> damn… it shifts it??
rippa has joined #ruby
<DouweM> yes
<pontiki> you'd prefer it evaluate it twice/
<pontiki> ?
Kricir_ has quit [Remote host closed the connection]
pu22l3r_ has quit [Ping timeout: 240 seconds]
<j416> DouweM: never used capybara.
<DouweM> which makes sense when you're using the actual values instead of just "1"
<stormbytes> hang on...
<apeiros> stormbytes: http://pastie.org/8994374
<albedoa> stormbytes what result are you expecting?
<apeiros> this is what's going on
<apeiros> at first iteration, memo has the value of the first element
willb1 has quit [Ping timeout: 240 seconds]
linuxer1 has quit [Quit: linuxer1]
<apeiros> so yes, it is not being iterated over
<stormbytes> omg
bilbo_swaggins has joined #ruby
rm_ has quit [Ping timeout: 268 seconds]
<stormbytes> i just spent an hour in IRB over this
bilbo_swaggins has quit [Client Quit]
pr0ggie has quit [Quit: Bye folks]
jprovazn has quit [Quit: Odcházím]
lmickh has quit [Quit: lmickh]
<albedoa> i still don't know what the confusion is :D
<mikecmpbll> :/
<shevy> it's ok
<shevy> better than taking 1 hour to get drunk
Rui_Branco has joined #ruby
<stormbytes> i thought it was weird because .each doesn't work that way
<stormbytes> shevy I get drunk a lot faster then that
<pontiki> stormbytes: try each_with_object
<albedoa> .each != .inject tho..?
Kricir has joined #ruby
<stormbytes> pontiki what's the diff?
<apeiros> or set an explicit initial value
willb1 has joined #ruby
<pontiki> each is not the same as inject
MatthewsFace has joined #ruby
<stormbytes> albedoa - the tutorial i was following states that 'each' is just like 'inject' only the latter has carries the sum internally
chrisseaton has quit []
rm__ has quit [Ping timeout: 240 seconds]
newUser1234 has quit [Remote host closed the connection]
<apeiros> it is similar
<apeiros> inject builds up on each
<apeiros> it's not the same, however
<pontiki> each_with_object is similar in that there is an object being passed with the iteration
<stormbytes> apeiros can you initialize 'memo' ?
<albedoa> yes
<apeiros> stormbytes: first arg to inject
psyko666 has joined #ruby
<stormbytes> example?
heftig has quit [Quit: Quitting]
<pontiki> i gave one above
<apeiros> (0..3).inject(10) { |memo, x| memo + 1 }
<apeiros> >> (0..3).inject(10) { |memo, x| memo + 1 }
<eval-in> apeiros => 14 (https://eval.in/131838)
<stormbytes> ahh
<stormbytes> so you can initialize to 0
jameswlane has joined #ruby
jameswlane has quit [Max SendQ exceeded]
* pontiki sighs
<stormbytes> then it should, theoretically, iterate 4 times (0..3)
kevinykchan has quit [Quit: Computer has gone to sleep.]
<DouweM> right
<apeiros> it even does practically
<albedoa> not just theoretically
<albedoa> lol ^^
<stormbytes> teehee :)
jameswlane has joined #ruby
jameswlane has quit [Max SendQ exceeded]
<DouweM> this is al expected behaviour, you could just have looked up the docs on #inject ;)
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
<stormbytes> i never figured out how to use Ruby documentation
sigurding has quit [Quit: sigurding]
<albedoa> ??
<stormbytes> yep
jameswlane has joined #ruby
<apeiros> ri Enumerable#inject
<stormbytes> i come from Php
<albedoa> google > ruby inject
<apeiros> in your terminal (bash/zsh)
<DouweM> well, either use ri or you Google "ruby enumerable inject"
<apeiros> albedoa: noooo!
<stormbytes> php.net…. and bob's your uncle
ascarter has joined #ruby
<albedoa> apeiros i mean if you can't figure out local docs
<apeiros> albedoa: still
<apeiros> at least use rdoc.info or ruby-doc.org and get the right ruby version
chuk_ has quit [Quit: Leaving]
<stormbytes> i'd much rather use local docs
<apeiros> albedoa: your advice only leaves more people asking confused questions because they try to use 2.1 functionality in 1.8 or other way round
<pontiki> unlike using php.net :P
<apeiros> stormbytes: ri and gem server
<albedoa> apeiros fair
bronson has joined #ruby
maximski has joined #ruby
tylersmith has quit [Remote host closed the connection]
<stormbytes> so the format is ri Class#Method ?
m0s is now known as m0s^away
tylersmith has joined #ruby
jollyy_ has joined #ruby
kevinykchan has joined #ruby
<stormbytes> zsh: no matches found: Enumerable#inject
<DouweM> Class, or Module, as in this case
JasmeetQA has joined #ruby
<stormbytes> I'm using 2.0 via RVM
m0s^away is now known as m0s
<albedoa> apeiros i use ruby-doc.org and assumed that ppl understood that there will be discrepancies between versions
<stormbytes> albedoa yep, can google also. that's what i've been doing mainly
osvico has joined #ruby
<DouweM> zsh doesn't like #. you need to escape it like \#
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
<stormbytes> dang
<apeiros> albedoa: people are (sad truth) ignorant
therm has joined #ruby
<pontiki> we are all people
jollyy has quit [Ping timeout: 268 seconds]
jollyy_ is now known as jollyy
<apeiros> pontiki: yes
nateberkopec has joined #ruby
<apeiros> scio nescio
<stormbytes> wowsers.. its all here
<albedoa> stormbytes "ruby inject" in google leads to the Enumerable docs with a "jump to" link to inject
<albedoa> just sayin
ndrei has quit [Ping timeout: 240 seconds]
Hanmac1 is now known as Hanmac
<stormbytes> i don't mind googling, but if I'm in a terminal window, irb for example.. its easier to just command line it
<albedoa> for an hour :D
<albedoa> okay i'm done teasing
<Hanmac> hm it seems rdoc has a anoying problem with the C parser ;P
jameswlane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<stormbytes> is ruby-doc.org always on the latest vs. of ruby?
sambao21 has quit [Quit: Computer has gone to sleep.]
<stormbytes> albedoa - growing pains
<mikecmpbll> stormbytes: it has the docs for the versions that it says
<mikecmpbll> latest being 2.1.1
Xeago has quit [Read error: Connection reset by peer]
kitak has quit [Remote host closed the connection]
Chronocity has quit [Ping timeout: 268 seconds]
<DouweM> stormbytes: check the URL
<shevy> lol albedoa
kitak has joined #ruby
tylersmith has quit [Ping timeout: 252 seconds]
Hobogrammer has joined #ruby
Xeago has joined #ruby
<shevy> stormbytes I started to collect ruby docu locally
<shevy> less annoying than have to read japanese-english
<stormbytes> id rather that
<stormbytes> can you search for a method (eg. inject) without knowing the class or module?
mikepack has joined #ruby
<shevy> my long term goal is to collect plenty of .rb files showcasing how things work
<pontiki> yes, stormbytes
toastynerd has joined #ruby
<pontiki> ri inject will likely return the same thing
psyko666 has quit [Quit: Leaving]
<stormbytes> wow.. neato
<pontiki> but will include all the modules/classes where it knows of it being documented
<albedoa> so my ri docs don't seem to knwo anything: $ ri Array => Nothing known about Array
m0s is now known as m0s^away
<albedoa> does that mean i installed ruby without the docs?
<pontiki> maybe?
<albedoa> cool
<stormbytes> can you limit an ri search to say… ruby core?
psyko666 has joined #ruby
<shevy> sure!
<shevy> remove all other docs
<pontiki> try ri --help to see all the options
arya_ has joined #ruby
<stormbytes> cool beans
<shevy> albedoa it is normally an extra step in between "make" and "make install"
<stormbytes> sure beans hauling Pickaxe to/fro starbucks
mehlah has quit [Quit: Leaving...]
sambao21 has joined #ruby
<stormbytes> thx peeps
mjs2600 has quit [Remote host closed the connection]
ndrei has joined #ruby
psyko666 has quit [Client Quit]
gregf has joined #ruby
<albedoa> shevy thanks
GreatSUN has joined #ruby
<GreatSUN> re
<shevy> GreatSUN is sun still great?
arya_ has left #ruby [#ruby]
maximski has quit []
<shevy> GreatORACLE
<GreatSUN> shevy: the sun is still great, else you would not see anything
<GreatSUN> :-P
platzhirsch has left #ruby [#ruby]
<GreatSUN> I would not exchange the sun with a database
<shevy> hehehe
<shevy> it would be a fairly hot database
<shevy> and I think it would have to store a LOT of data
<shevy> just look at how far planet earth is away from the sun and still gets so much energy
saarinen has joined #ruby
<stormbytes> whats' a good terminal emulator app to use with ruby scripting?
<shevy> bash
<centrx> rxvt
<shevy> in kde konsole
<stormbytes> i may have put that wrong
<stormbytes> i'm using picocom to send ascii commands to an arduino board via usb/uart
<stormbytes> rather then doing it manually, i've decided to write a command line utility in ruby
rvraghav93 has quit [Read error: Connection reset by peer]
JasmeetQA has quit [Ping timeout: 240 seconds]
<stormbytes> picocom doesn't seem to lend itself particularly well to scripting
m0s^away is now known as m0s
ndrei has quit [Quit: Lost terminal]
benzrf|offline is now known as benzrf
phansch has joined #ruby
<benzrf> hej da
habanany has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
<shevy> benzrf hey! please tab complete
<shevy> it was boring while you were sitting in starbucks benzrf
AlexRussia has quit [Ping timeout: 240 seconds]
Martxel has joined #ruby
<stormbytes> ugh.. back to google
mikepack has quit [Remote host closed the connection]
dagobah has quit [Quit: Leaving...]
<shevy> yes stormbytes
<shevy> until the day you can work without google
<stormbytes> google killed god
habanany has quit [Max SendQ exceeded]
chipotle has quit [Read error: Connection reset by peer]
Voodoofish4301 has joined #ruby
pel_daniel has joined #ruby
afreidah1 has quit [Ping timeout: 240 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
randomnick_ has joined #ruby
maximski has joined #ruby
<shevy> well
cpruitt has joined #ruby
anarang has quit [Quit: Leaving]
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shredding has quit [Ping timeout: 255 seconds]
olivier_bK has quit [Ping timeout: 240 seconds]
bricker`LA has joined #ruby
michaeldeol has joined #ruby
canton7-mac has quit [Quit: Leaving]
ikaros has quit [Quit: Ex-Chat]
carraroj has joined #ruby
carraroj has quit [Changing host]
carraroj has joined #ruby
ascarter has joined #ruby
stormbytes has quit [Quit: Textual IRC Client: www.textualapp.com]
s2013 has joined #ruby
lmickh has joined #ruby
timonv has quit [Remote host closed the connection]
dx7 has quit [Quit: Leaving...]
dx7 has joined #ruby
<iitywimwybmab> i depend on their doodles
aspires has joined #ruby
fgo has joined #ruby
dstynchula has joined #ruby
pel_daniel has quit [Ping timeout: 240 seconds]
Martxel has quit [Ping timeout: 268 seconds]
ndrei has joined #ruby
niftylettuce_ has joined #ruby
maximski has quit []
saarinen has quit [Quit: saarinen]
pel_daniel has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
fgo has quit [Ping timeout: 252 seconds]
skammer is now known as skammer|afk
jameswlane has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
AlexRussia has joined #ruby
nolic has joined #ruby
Lewix has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
fayimora_ is now known as fayimora
blackavr has quit [Quit: blackavr]
atno has quit [Quit: Leaving]
obs has quit [Quit: Konversation terminated!]
LiohAu has quit [Quit: LiohAu]
afreidah1 has joined #ruby
mehlah has joined #ruby
maletor has joined #ruby
kennym1 has quit [Quit: Leaving.]
skammer|afk is now known as skammer
gemmy has quit [Ping timeout: 255 seconds]
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mehlah has quit [Client Quit]
emanu has joined #ruby
pel_daniel has quit [Ping timeout: 240 seconds]
foooobear has quit [Quit: Computer has gone to sleep.]
mikepack has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
Soda has joined #ruby
thevishy has quit [Remote host closed the connection]
greenarrow has quit [Quit: 500]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
greenarrow has joined #ruby
s2013 has quit [Remote host closed the connection]
tesuji has joined #ruby
AlexRussia has quit [Ping timeout: 255 seconds]
kennym has joined #ruby
habanany has joined #ruby
jamto11 has quit [Remote host closed the connection]
habanany has quit [Max SendQ exceeded]
brucelee_ has joined #ruby
yfeldblum has joined #ruby
axl_ has joined #ruby
fella7s has quit [Ping timeout: 265 seconds]
habanany has joined #ruby
benzrf is now known as benzrf|offline
RowdyChild|Away is now known as RowdyChildren
sski has joined #ruby
habanany has quit [Max SendQ exceeded]
DrShoggoth has joined #ruby
chrisseaton has joined #ruby
emanu has quit [Quit: emanu]
kevinykchan has joined #ruby
maximski has joined #ruby
<jeregrine> using rabl for an api.
browndawg has quit [Quit: Leaving.]
xcv has joined #ruby
<jeregrine> when I push to heroku everything works perfectly.
maximski has quit [Max SendQ exceeded]
workmad3 has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
shevy has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
<jeregrine> after a while the datetime format starts changing
maximski has joined #ruby
<jeregrine> I've monkey patched date, datetime, and time to_json to do the correct format and it still changes over time
jbueza has joined #ruby
robbyoconnor has quit [Ping timeout: 240 seconds]
Solnse has quit [Remote host closed the connection]
xcv_ has joined #ruby
saarinen has joined #ruby
louwis has joined #ruby
<louwis> hi
AlexRussia has joined #ruby
<DouweM> jeregrine: it... changes over time? you're gonna need to be more specific about that
louwis has left #ruby [#ruby]
<DouweM> jeregrine: few things in programming happend "randomly" "after a while" or "over time"
greenarrow has quit [Quit: 500]
xcv has quit [Ping timeout: 255 seconds]
ghr has quit [Ping timeout: 268 seconds]
<jeregrine> DouweM: only happening in production. Immediately after push it works. After ~30mins it works
<jeregrine> it stops working after 30mins
<DouweM> jeregrine: post code, how the format changes, what you've monkey patched etc
xcv has joined #ruby
<DouweM> jeregrine: everything that might be relevant
sigurding has joined #ruby
klaut has quit [Remote host closed the connection]
xcv_ has quit [Ping timeout: 255 seconds]
<jhass> only explanation that I'd have is a monkey patch not being executed at boot but under some condition the app needs to hit first
<banister> jeregrine you're monkeypatching core classes in production?
rm_ has joined #ruby
<jeregrine> only to try and fix
<banister> jeregrine a senior programmer should be yelling at u right about now
<workmad3> banister: I don't always monkey patch core classes, but when I do, I do it in production!
<banister> hehe
<jeregrine> its on all environments
JacobHayes has joined #ruby
<DouweM> jeregrine: you shouldn't need a monkey patch at all
xcv_ has joined #ruby
<DouweM> jeregrine: I;m using rabl in production as well, and everything's working fine with dates.
<DouweM> jeregrine: again, post something we can actually work with
<jeregrine> i've used rabl several times
<jeregrine> and not once ran into this issue
<jeregrine> this is exceptional to be sure
yfeldblum has joined #ruby
Rui_Branco has quit [Ping timeout: 245 seconds]
<DouweM> at least tell us how the format changes
<workmad3> jeregrine: new background for you ;) http://memegenerator.net/instance/48124657
<GreatSUN> hey guys
<GreatSUN> hi workmad3
kitak has quit [Remote host closed the connection]
<workmad3> o/
m0s is now known as m0s^away
AlexRussia has quit [Ping timeout: 268 seconds]
<jeregrine> its not 'in production' we are doing in all environments right now
s2013 has joined #ruby
<Squarepy> hehe
<GreatSUN> can someone shortly help me, cause I never had to implement something like that: https://gist.github.com/anonymous/9978441
xcv has quit [Ping timeout: 240 seconds]
JacobHayes has quit [Remote host closed the connection]
kitak has joined #ruby
<jeregrine> just trying to figure out whats the culprite since we cannot reporoduce in any other environment
nomenkun has quit [Remote host closed the connection]
<GreatSUN> I have to implement a receiver that has to work with all the args and values there
x77686d has quit [Quit: x77686d]
<jhass> GreatSUN: did you understand regular blocks and capturing them so far?
<GreatSUN> jhass: never have been working with that
<DouweM> jeregrine: again, from what to what does the format change?
<GreatSUN> up to now
<GreatSUN> ;-)
nomenkun has joined #ruby
<GreatSUN> jhass: some small intro url or such would be nice, if you have
<jhass> GreatSUN: so you have no clue what yield does for example?
<GreatSUN> jhass: oh, yield I know
<jeregrine> from : 2014-04-02T22:00:02+00:00
<jeregrine> to: yyyy-MM-dd HH:mm:ss Z
kidoz has joined #ruby
kennym has quit [Quit: Leaving.]
<GreatSUN> jhass: but I never heard of regular blocks and never saw code like this in a normal ruby script before
benzrf|offline is now known as benzrf
xcv_ has quit [Ping timeout: 240 seconds]
<jhass> GreatSUN: okay, so, you can capture a block to a proc with def somename(regular_args, &block); and pass a proc to a method with my_proc = proc { ... }; somename(regular_args, &my_proc)
<workmad3> GreatSUN: if that's doing what I suspect, you're gonna want to look up instance_eval ;)
<DouweM> jeregrine: you're sure that in both cases it's a Date object that's being serialized, and that it hasn't accidentally been saved as the second string representation in the DB?
Vik-Thor has quit [Quit: Lost terminal]
<benzrf> quit
shevy has joined #ruby
<DouweM> jeregrine: so you're absolutely sure it's actually the Date serialization changing?
gemmy has joined #ruby
<jhass> GreatSUN: the thing you need to do for something like this to work is to change the execution context, so you'd implement a class that provides these methods and then run the block in the context of an instance of this class
benzrf is now known as benzrf|offline
hemanth has joined #ruby
Kricir has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 240 seconds]
<GreatSUN> jhass: hmmm.. ok, I am not really sure that I completely understood everything now, but lemme try
aagdbl has joined #ruby
<jeregrine> DouweM: one of the first things we checked.
<jhass> GreatSUN: rough example: class DSL; def initialize(&block); instance_eval(&block); end; def somearg; ...; end; ...; end; def somename(regular_args, &block); DSL.new(&block); end;
bronson has quit [Quit: bronson]
dblessing_ has joined #ruby
habanany has joined #ruby
nomenkun has quit [Ping timeout: 240 seconds]
rm_ has quit [Ping timeout: 268 seconds]
<axl_> In ruby, a Float can be initalized by passing a string argument to its class name, example: Float("1") …
habanany has quit [Max SendQ exceeded]
sigurding has quit [Ping timeout: 240 seconds]
<axl_> is this an initalization pattern? where can I learn more about this?
<jhass> GreatSUN: googling something like "building a ruby dsl" should give you tons of explanations and examples
<centrx> axl_, Those are simply methods of Kernel
blackmesa has joined #ruby
<GreatSUN> jhass: ok, I got it I think
<GreatSUN> thanks a lot for your support
<DouweM> jeregrine: all right. well, without all the information I doubt we're gonna have any idaes that you haven't already had. any more related code would be appreciated
<axl_> centrx: I am new to ruby … not sure what 'methods of Kernal' mean
<workmad3> axl_: Float("1") is calling the method 'Float', nothing to do with the class ;)
<GreatSUN> workmad3: also thanks to you
<GreatSUN> :-)
sputnik1_ has joined #ruby
<jeregrine> DouweM: yea I'm going to log everytime our action is called to show the source of the to_json moneky patch
xcv_ has joined #ruby
<DouweM> jeregrine: as you mentioned, this is the first time this happens, so it's definitely something with your code, not some common rabl bug
<axl_> awesome. thanks guys
<axl_> i will look that up
<workmad3> axl_: Float and Integer are sometimes referred to as 'constant methods' btw
<DouweM> jeregrine: you shouldn't need the monkey patch at all
<workmad3> axl_: when used as conversions
<jeregrine> DouweM: hopefully -.- not the first confusing as hell bug I've run int
<axl_> aaah … so it is special to Float and INteger
<jeregrine> bug/behavior
<DouweM> jeregrine: hehe
dblessing has quit [Ping timeout: 240 seconds]
dblessing_ is now known as dblessing
<axl_> in other words, I should pursue writing similar methods for MyClass so that it gets initalized by something like MyClass("1")
xcv__ has joined #ruby
<DouweM> jeregrine: I'm pretty familiar with the internals of Rabl, so if it does end up being something in there I may be able to help
toastynerd has quit [Remote host closed the connection]
<jeregrine> so over rabl right now TBH
AlexRussia has joined #ruby
<jhass> axl_: not really, you can do class MyThing; end; def MyThing; end; just well
blackmesa has quit [Client Quit]
<axl_> i meant 'i should not pursue'
<jeregrine> want to go back to mashing hashes together
subbyyy_ has joined #ruby
<axl_> hmmmm… .
<DouweM> jeregrine: hehe
mehlah has joined #ruby
<axl_> k. i'll go read the docs you guys linked and get some theory. Thanks a bunch guys
Kricir has joined #ruby
ascarter has joined #ruby
<DouweM> jeregrine: I love Rabl, but it does have a learning curve if you want to do anything more complicated than a flat hash of attribute values
kennym has joined #ruby
havenwood has quit [Remote host closed the connection]
<jeregrine> learning curve or design flaw?
<jhass> axl_: core uses them for conversions, personally I avoid adding such methods and prefer stuff like MyThing.from_x(..)
<DouweM> jeregrine: :)
<DouweM> jeregrine: It's definitely a design flaw if I needed to familiarize with the source to understand how to get what I wanted out of it
<axl_> jhass: Thanks for your inputes
<axl_> inputs*. That helps
shevy has quit [Ping timeout: 240 seconds]
<DouweM> jeregrine: but I'm gonna make myself some dinner. Good luck, and I'll be back
<jeregrine> thanks
nvrch has joined #ruby
Mon_Ouie has joined #ruby
nvrch has quit [Client Quit]
xcv_ has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
x77686d has joined #ruby
timonv has joined #ruby
mehlah has quit [Client Quit]
xcv__ has quit [Ping timeout: 240 seconds]
Bumptious has quit [Remote host closed the connection]
noop has quit [Ping timeout: 252 seconds]
cpruitt has quit [Quit: cpruitt]
timonv_ has joined #ruby
Kricir_ has joined #ruby
Kricir has quit [Ping timeout: 268 seconds]
Lewix has quit [Remote host closed the connection]
<snkcld> if my http client is receiving an EOF, what would that mean exactly is happening?
<snkcld> specifically it's excon receiving the EOF
Solnse has joined #ruby
jonmorehouse has joined #ruby
<jhass> End Of File, you shouldn't expect more data and close the stream
<Hanmac> apeiros: ! the usa use mIRC for controlling their drones ;P
mr_snowf1ake has joined #ruby
Xeago has quit [Remote host closed the connection]
GaryOak_ has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
<pontiki> what do we do?
<centrx> Do?
blackavr has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
<pontiki> <Hanmac> apeiros: ! the usa use mIRC for controlling their drones ;P
pel_daniel has joined #ruby
<Hanmac> i dont use mirc, i use pidgin ;P
<pontiki> i use erc
Kricir has joined #ruby
<pontiki> but i don't have any drones, either
xcv has joined #ruby
cpruitt has joined #ruby
<pontiki> heck, i don't even have any minions
Kricir_ has quit [Ping timeout: 268 seconds]
francisfish has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gemmy has quit [Quit: leaving]
wallerdev has joined #ruby
francisfish has joined #ruby
newUser1234 has joined #ruby
sigurding has joined #ruby
shredding has joined #ruby
toastynerd has joined #ruby
Slavox is now known as Slavox|AFK
mark_locklear has quit [Ping timeout: 240 seconds]
cpruitt has quit [Client Quit]
xcv has quit [Ping timeout: 252 seconds]
Kricir has quit [Ping timeout: 268 seconds]
mark_locklear has joined #ruby
Kricir_ has joined #ruby
shevy has joined #ruby
shredding has quit [Client Quit]
VTLob has joined #ruby
pel_daniel has quit [Ping timeout: 240 seconds]
kidoz has quit [Quit: Ухожу я от вас]
cgore has quit [Remote host closed the connection]
zigomir has quit [Remote host closed the connection]
bronson has joined #ruby
francisfish has quit [Ping timeout: 268 seconds]
jobewan has joined #ruby
blackavr has quit [Quit: blackavr]
davexunit has joined #ruby
pwh has joined #ruby
poikon has quit []
habanany has joined #ruby
habanany has quit [Max SendQ exceeded]
jlebrech has quit [Quit: Konversation terminated!]
<davexunit> hello all, I'm having some misunderstanding about modules. I have a class Foo::Bar that I'm writing tests for. In my test, I define a class Foo::Baz. I have code in Foo::Bar that can take a symbol :baz and translate it into a reference to Foo::Baz. my test fails.
cpruitt has joined #ruby
shevy has quit [Ping timeout: 268 seconds]
kaspergrubbe has quit [Read error: Operation timed out]
<davexunit> this works in the "real world", outside of my testing environment.
<banister> davexunit you're not nearly giving enough information
blackavr has joined #ruby
Kricir_ has quit [Ping timeout: 240 seconds]
Slavox|AFK is now known as Slavox
<davexunit> banister: allow me to elaboratel.
<davexunit> s/elaboratel/elaborate/
<jhass> davexunit: show code
maximski has quit []
<davexunit> I am dynamically looking up a class in a module given a symbol.
newUser1234 has quit [Remote host closed the connection]
Celm has joined #ruby
x1337807x has joined #ruby
Kricir has joined #ruby
<wallerdev> are you using const_get
fgo has joined #ruby
<centrx> Who knows what he's doing, he needs to show code.
combusean has joined #ruby
<wallerdev> centrx: you must be one of those people that skips to the last page of a mystery novel
<wallerdev> ruins the fun
<wallerdev> :p
<centrx> davexunit, Did you turn it off and then on again?
horofox has quit [Read error: No route to host]
<davexunit> centrx: don't jump on me so fast, I'm trying to get stuff together.
<workmad3> davexunit: less backchat, more gisting!!!
<GreatSUN> jhass, workmad3: thanks a lot, I understood it and it is working properly :-)
<certainty> wallerdev: haha :)
TripTastic has joined #ruby
<workmad3> wallerdev: why buy the novel when you can read the synopsis and the solution on wikipedia?
afreidah1 has quit [Ping timeout: 268 seconds]
mary5030 has quit [Read error: Connection reset by peer]
<davexunit> workmad3: working on it. it won't be a gist, though.
mary5030 has joined #ruby
jollyy has quit [Quit: jollyy]
<workmad3> wallerdev: also, if the only reason to read the book is because of one unknown, and nothing to do with good, solid writing or decent characters... why did you buy it? ;)
duggiefresh has quit [Remote host closed the connection]
<certainty> workmad3: damn you can take every comment and make it so that the one that made it feels bad
<davexunit> I have to write a simple example that demonstrates the issue without having to know everything about the application it's part of.
<workmad3> certainty: you really think that little of me? and that I could be that malicious and conniving? :(
TripTastic has left #ruby [#ruby]
<certainty> workmad3: i should've seen that one coming. Now i feel bad :p
fgo has quit [Ping timeout: 268 seconds]
<workmad3> certainty: :D
Kricir has quit [Ping timeout: 255 seconds]
dtcrshr has joined #ruby
ce_afk is now known as cescalante
<pontiki> i think he thinks that *much* of you, not that *little*
Kricir has joined #ruby
himsin has joined #ruby
roolo has quit [Read error: Connection reset by peer]
roolo has joined #ruby
habanany has joined #ruby
habanany has quit [Max SendQ exceeded]
roolo has quit [Client Quit]
p8952 has quit [Quit: Leaving]
razrunelord has joined #ruby
<workmad3> pontiki: bah, stop ruining my fun :)
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrhe has joined #ruby
m0s^away is now known as m0s
<pontiki> now i feel bad
<pontiki> you win! \o/
nisstyre has quit [Remote host closed the connection]
<pontiki> oh wait:
<workmad3> woo!!! what do I win!
aagdbl has quit [Quit: This computer has gone to sleep]
<pontiki> workmad3: </sarcasm>
Stalkr_ has joined #ruby
Lewix has joined #ruby
tylersmith has joined #ruby
<workmad3> pontiki: bah, if you had feelings for random electrons on the internets, you'd have felt bad :P
papercode1 has joined #ruby
papercode1 has quit [Client Quit]
<pontiki> i have no feelings for electrons, can't even feel them bounce off
scarolan has joined #ruby
shevy has joined #ruby
angusiguess has quit [Disconnected by services]
<RubyPanther> In the old days of the Cathedral, the Words of Code were Sacred. Help with the Sacred Code was always reduced to foo and bar, so as to not offend the Temple Builders. In the post-post-modern world of Ruby, you're expected to have deconstructed all that already, and be trying to put the pieces together into something simple. It is no longer sacred, and foo and bar have become maligned and out of work. Now people expect to look directl
<RubyPanther> y at your pile of broken bricks to tell you what went wrong.
papercode has quit [Remote host closed the connection]
cpruitt has quit [Quit: cpruitt]
mrnugget has quit [Quit: mrnugget]
jbueza has quit [Ping timeout: 268 seconds]
papercode has joined #ruby
mjs2600 has joined #ruby
sigurding has quit [Ping timeout: 240 seconds]
zigomir_ has joined #ruby
<GreatSUN> ahhh foo bar!
<GreatSUN> I love foo and bar
nitish has joined #ruby
siwica has joined #ruby
<GreatSUN> and in german you get "furchtbar" :D
<QKO_> barfoo
<combusean> i love it when you end up using baz and bat because foo and bar are taken
<pontiki> after foo, bar, baz, you're supposed to use quux
<jhass> foo bar are great for writing context less examples
brucelee_ has quit [Ping timeout: 240 seconds]
<jhass> they're horrible to explain problems
zigomir_ has quit [Remote host closed the connection]
<GreatSUN> jhass: mostly, yes
<combusean> quux?
<jhass> since problems tend to depend on context
<GreatSUN> matters on complexity
<combusean> hmmm
aagdbl has joined #ruby
sigurding has joined #ruby
<GreatSUN> jhass: you know what "furchtbar" in german means?
<jhass> I'm german ,)
zigomir_ has joined #ruby
<GreatSUN> jhass: ahhh nice :-)
<jhass> (and no, I don't think they sound alike)
Slavox is now known as Slavox|AFK
hemanth has quit [Quit: This computer has gone to sleep]
siwica1 has joined #ruby
cj3kim has joined #ruby
maximski has joined #ruby
zigomir_ has quit [Remote host closed the connection]
pu22l3r has joined #ruby
cj3kim has quit [Remote host closed the connection]
keeguon has quit [Quit: keeguon]
siwica has quit [Ping timeout: 240 seconds]
enebo has quit [Quit: enebo]
Jon30 has joined #ruby
Jon30 has quit [Changing host]
Jon30 has joined #ruby
zigomir has joined #ruby
dstynchu_ has joined #ruby
tesuji has quit [Ping timeout: 252 seconds]
Jonah11_ has quit [Ping timeout: 240 seconds]
timonv_ has quit [Remote host closed the connection]
michaeldeol has joined #ruby
aagdbl has quit [Quit: Leaving]
Zai00 has quit [Quit: Zai00]
afreidah1 has joined #ruby
pu22l3r has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pu22l3r has joined #ruby
<GaryOak_> they should use iron man to promote ruby, they're the same color
<certainty> i once read a piece of C sources where the variables had names like, banana and diaper
claymore has quit [Ping timeout: 268 seconds]
pfg has joined #ruby
dstynchula has quit [Ping timeout: 240 seconds]
cj3kim has joined #ruby
<jhass> probably still better than all the single letter stuff
<certainty> oh that was in there too
<GaryOak_> everyone should start metaphorically naming variables
dblessing has quit [Remote host closed the connection]
dblessing has joined #ruby
arietis has joined #ruby
<certainty> meta-names?
<RubyPanther> mine are: foo bar baz bing bong omg wtf
cj3kim has quit [Remote host closed the connection]
<certainty> RubyPanther: heh ordered with the level of frustration in the moment you use them? :)
habanany has joined #ruby
* combusean hearts metasyntactic variables
keen_ has left #ruby [#ruby]
karmatr0n has joined #ruby
<GaryOak_> it would let people know where difficult parts of the code are
<RubyPanther> certainty: if I get to help_im_trapped_in_a_bug then I'll throw it all away and write tests instead
sambao21 has quit [Read error: Connection reset by peer]
Lewix has quit [Remote host closed the connection]
habanany has quit [Max SendQ exceeded]
jamto11 has joined #ruby
subbyyy_ has quit [Ping timeout: 240 seconds]
Czupa has joined #ruby
sambao21 has joined #ruby
agjacome has quit [Remote host closed the connection]
peterellisjones has quit [Quit: Leaving.]
davy_ has joined #ruby
<certainty> RubyPanther: good plan. I usually have tests like it "helps me when i'm trapped in a bug" ...
<certainty> not
<GreatSUN> RubyPanther: hmmm... I got a lot of workarounds instead :D
lkba has joined #ruby
<RubyPanther> GreatSUN: I don't need tests because I know what the workarounds were, and somebody else... isn't me! They can write the tests if they need them. I still remember what the code does.
thrillagorilla has joined #ruby
Kricir has quit [Remote host closed the connection]
jxf has joined #ruby
<GreatSUN> RubyPanther: ahhh, you write tests to get to know what bug you found
<GreatSUN> sorry, missunderstood you though
toastynerd has joined #ruby
zigomir has quit [Remote host closed the connection]
<RubyPanther> If I know I found a bug but I'm not sure what it is... for most people that would be a test problem. For me that would imply an architecture rewrite.
zigomir has joined #ruby
<certainty> at least it's an indicator that there is something wrong. In the end, when all your shiny tests have passed and you app still misbehaves you need to be able to actually understand the system and debug
pel_daniel has joined #ruby
Slavox|AFK is now known as Slavox
Lewix has joined #ruby
<certainty> i don't know if i'd always rewrite
nanoyak has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
Kricir has joined #ruby
pfg has quit [Quit: Textual IRC Client: www.textualapp.com]
rm_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
claymore has joined #ruby
claymore has quit [Changing host]
claymore has joined #ruby
testcore has joined #ruby
Cheets-X has joined #ruby
relix has joined #ruby
zigomir has quit [Ping timeout: 268 seconds]
nolic has quit [Remote host closed the connection]
garndt has quit [Quit: Connection closed for inactivity]
Kricir has quit [Ping timeout: 268 seconds]
Kricir_ has joined #ruby
rm_ has quit [Ping timeout: 255 seconds]
pu22l3r_ has joined #ruby
bilbo_swaggins has joined #ruby
pel_daniel has quit [Ping timeout: 255 seconds]
enebo has joined #ruby
einarj has quit [Remote host closed the connection]
<Hanmac> hihihi rdoc shows warnings when you install rdoc because its code is shitty ;P
habanany has joined #ruby
Solnse has quit [Quit: Leaving.]
habanany has quit [Max SendQ exceeded]
Lewix has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 240 seconds]
Kricir has joined #ruby
Kricir_ has quit [Ping timeout: 268 seconds]
<thrillagorilla> Hanmac: People still use rdoc?
JasmeetQA has joined #ruby
pu22l3r_ has quit [Ping timeout: 240 seconds]
maximski has quit []
JasmeetQA has quit [Client Quit]
reset has joined #ruby
cocotton_ has joined #ruby
derek_c has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
Kricir_ has joined #ruby
bilbo_swaggins has quit [Quit: Leaving]
jonmorehouse has quit [Ping timeout: 255 seconds]
shredding has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
Kricir has quit [Ping timeout: 240 seconds]
codabrink has quit [Quit: Textual IRC Client: www.textualapp.com]
subbyyy_ has joined #ruby
flowerpot has joined #ruby
Dizorder has quit []
habanany has joined #ruby
codabrink has joined #ruby
habanany has quit [Max SendQ exceeded]
Jonah11_ has joined #ruby
descala has quit [Ping timeout: 255 seconds]
<dmarr> I tried installing rbenv, and when I bundle install gems are still trying to install to system
Slavox is now known as Slavox|AFK
sambao21 has quit [Quit: Computer has gone to sleep.]
vpretzel has quit [Remote host closed the connection]
dstynchula has joined #ruby
descala has joined #ruby
<Jamo> dmarr: `which ruby` and `echo $PATH`
m0s is now known as m0s^away
davexunit has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
sski has quit []
m0s^away is now known as m0s
dstynchu_ has quit [Ping timeout: 252 seconds]
newUser1234 has joined #ruby
<dmarr> ruby was in ~/.rbenv/shims and ~/.rbenv/bin was first in path IIRC
<dmarr> its on my other machine, which I don't have with me
<jhass> so come back when we actually can debug your issue
<jhass> probably just missing rbenv rehash though
Kricir_ has quit [Remote host closed the connection]
teddyp1cker has quit [Remote host closed the connection]
<Jamo> yea. or try opening a new terminal window
shredding has quit [Quit: shredding]
Slavox|AFK is now known as Slavox
sambao21 has joined #ruby
Xeago has joined #ruby
<dmarr> rbenv wasn't setting GEM_HOME or GEM_PATh even after rbenv rehash
<dmarr> so gem env gemdir was still pointing to system
<dmarr> do I need the gemset plugin?
Kricir has joined #ruby
<jhass> that's unlikely
Es0teric has joined #ruby
LastWhisper has joined #ruby
Xeago has quit [Read error: Operation timed out]
fgo has joined #ruby
nitish has quit [Remote host closed the connection]
<LastWhisper> hey guys quick question about regex... I've got this currently, I basically want to make the 2nd part optional
<LastWhisper> but I can't get rid of that trailing space if I write it only with the first part
<LastWhisper> so if I write this: I have a localStorage cookie set for cookie_name with a value of 123
afex has joined #ruby
siwica1 has quit [Quit: siwica1]
<LastWhisper> it works, it returns cookie_name and 123
<LastWhisper> but if I just have
<LastWhisper> I have a localStorage cookie set for cookie_name
<LastWhisper> with no trailing space
<LastWhisper> it doesnt register :<
SCommette has quit [Quit: SCommette]
<centrx> LastWhisper, Why not put the space in the ? grouping
<Jamo> if you live a trailing space to it it works
<LastWhisper> I tried putting the sapce in there!
<LastWhisper> space*
<LastWhisper> it does not appear to work
<Jamo> ^I have a localStorage cookie set for (.+)(?: with a value of (.+))?$
<Jamo> this shouöd work
<LastWhisper> so
<LastWhisper> with the space within the optional params
<LastWhisper> it doesnt work for me
<LastWhisper> well, doesn't work.. in rubular
<LastWhisper> :P
tobago has joined #ruby
newUser1234 has quit [Remote host closed the connection]
agrinb has quit [Quit: Leaving...]
<RubyPanther> dmarr: usually that means you only added to PATH and didn't do eval "$(rbenv init -)"
dkamioka has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
<centrx> LastWhisper, It sure seems to work in Rubular
agrinb has joined #ruby
<LastWhisper> oh? shouldn't the 123 show up at the end>?
fgo has quit [Ping timeout: 240 seconds]
siwica has joined #ruby
<dmarr> RubyPanther: good to know. I'll check the syntax but I do remember adding that.. even was inspecting the output of that init command
<RubyPanther> dmarr: sometimes people put in the wrong file for their system, I recommend using ~/.profile because it should always get run. The other ones only get run in certain conditions.
nitish has joined #ruby
arietis has joined #ruby
Kricir has joined #ruby
<dmarr> yep, thats what I use
<LastWhisper> oh wait
<LastWhisper> im a dumbass
<LastWhisper> hang on
<terrellt> Anyone seen ruby scripts slow down because you're puts-ing to the console?
<LastWhisper> lol wow im an idiot
<RubyPanther> terrellt: no
<LastWhisper> haha thanks
nitish has quit [Client Quit]
lxsameer has quit [Quit: Leaving]
nitish has joined #ruby
nitish has quit [Changing host]
nitish has joined #ruby
davy_ has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 252 seconds]
<RubyPanther> terrellt: is it highly unlikely that puts is going to cause an IO bottleneck. I would check everything else first. And by everything, I'm including the Martian invasion.
<Jamo> I'v seen aleast in Java that if you print a lot the script will be slower
<Jamo> ans I bet its the same in Ruby
<Jamo> but it shouldn't matter unless you have huge datasets you will print
kaspergrubbe has joined #ruby
* combusean tests this
<RubyPanther> Ruby uses the print functions from the C stdlib
Kricir has quit [Read error: Connection reset by peer]
noop has joined #ruby
* combusean manages to crash vi in the process
<combusean> fuck i have the worst luck
davy_ has joined #ruby
<centrx> It sure seems slower to use puts
Kricir has joined #ruby
<centrx> probably waits on IO for terminal
<RubyPanther> printing to an IO is not going to slow down the code before and after. The print calls themselves will be slow if you're printing a huge amount to a console, or other slow IO. If you're printing in a tight loop, that can be slow enough to notice. But the code after runs normal speed.
<LastWhisper> okay
<LastWhisper> this is what i was worried about centrx Jamo
Azure is now known as __END__
<LastWhisper> the 123 isn't caught
toastynerd has quit [Remote host closed the connection]
casheew has joined #ruby
<RubyPanther> turning on (or off) autoflush might help, depending on the system
djbender has quit [Quit: djbender]
agrinb has left #ruby ["Leaving..."]
RaptorJesus has joined #ruby
x77686d has quit [Quit: x77686d]
heftig has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
Kricir_ has joined #ruby
Kricir has quit [Ping timeout: 268 seconds]
peret has joined #ruby
toastynerd has joined #ruby
<jhass> LastWhisper: http://rubular.com/r/f2XYq7mUwZ
<jhass> hmpf
chrisseaton has quit []
shredding has joined #ruby
Krakapow has joined #ruby
<LastWhisper> jhass: what does the ? on the 2nd arg mean ?
<jhass> non-greedy
Kricir_ has quit [Remote host closed the connection]
<LastWhisper> hmm can you explain that like i'm a 5 year old
shredding has quit [Client Quit]
Kricir has joined #ruby
<LastWhisper> like it was taking up the rest of the arg previously?
<LastWhisper> does non-greedy mean it's optional?
<jhass> insteading of taking at much as it can it takes as less as it can
x1337807x has quit [Ping timeout: 240 seconds]
<RubyPanther> I'd tell a 5yo, "don't worry, you can read the manual when you're older."
<wallerdev> haha
teddyp1cker has joined #ruby
tjr9898 has quit [Remote host closed the connection]
<wallerdev> .+ will match the rest of the string and not try to match anything after it if you dont use the ?
<jhass> LastWhisper: the sane and robust solution would be to drop the .+ for more specific versions, but I can't tell the possible values from that example
<jhass> LastWhisper: http://rubular.com/r/GtnzzKdj9v as a still rough one
selina345 has joined #ruby
decoponio has quit [Quit: Leaving...]
hooper has joined #ruby
<selina345> trying to deploy first heroku app
<selina345> but it keeps saying page not found
<selina345> or doesnt exist or w/e
x1337807x has joined #ruby
<LastWhisper> jhass: that one works quite well
<LastWhisper> ty sir :)
<wallerdev> are you using the right url
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bean has joined #ruby
pwh has quit []
<selina345> yeah i did heroku open
mark_locklear has quit [Read error: Connection reset by peer]
<selina345> it's the first_app
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<wallerdev> might want to ask in #heroku
Kricir_ has joined #ruby
mark_locklear has joined #ruby
<RubyPanther> does anybody know of a mirror or collection of all of _why's art that was released under some sort of open license?
<RubyPanther> like the stuff from redhanded
michaeldeol has joined #ruby
Kricir has quit [Ping timeout: 255 seconds]
Geniack_ is now known as Geniack
crystal77 has quit [Quit: Computer has gone to sleep.]
rhcake has joined #ruby
lapinferoce has joined #ruby
bbloom has quit [Quit: Textual IRC Client: www.textualapp.com]
rhcake has left #ruby [#ruby]
djbender has joined #ruby
kirun has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
cj3kim has joined #ruby
<wallerdev> RubyPanther: if you consider his code art, i think it's all on github
<Hanmac> shevy: http://xkcd.com/1351/
davy_ has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
gfunc has joined #ruby
<RubyPanther> wallerdev: code I have! I want to borrow some art for in-game graphics
hamakn has quit [Remote host closed the connection]
kaspergr_ has joined #ruby
bilbo_swaggins has joined #ruby
bilbo_swaggins has quit [Client Quit]
vallieres_ has joined #ruby
<RubyPanther> the performance art skit named _why is gone, but it can live on in the art that was performed during the skit... in my Flappy Duck game
kaspergr_ has quit [Remote host closed the connection]
afreidah1 has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
rm_ has joined #ruby
ndrei has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
nitish has quit [Remote host closed the connection]
<wallerdev> lol
rakm has joined #ruby
nitish has joined #ruby
sambao21 has joined #ruby
rm_ has quit [Ping timeout: 268 seconds]
lmickh has quit [Remote host closed the connection]
Jonah11_ has quit [Ping timeout: 268 seconds]
srji has joined #ruby
linuxer1 has joined #ruby
hfp is now known as hfp`away
<shevy> do you guys use something simple to split at 80 chars per line, if a string is longer than that?
arianit has joined #ruby
linuxer1 has quit [Client Quit]
Riking has quit [Read error: Operation timed out]
<BraddBitt> do you mean in-editor shevy ?
<shevy> BraddBitt no, for output in a ruby script
<shevy> I have some long overflowing strings
<shevy> it would be nice to easily split them up on a per-word basis, at n position
<BraddBitt> output in terminal or to a file?
<shevy> terminal yeah
<BraddBitt> well wont re-sizing the terminal fix that?
<shevy> hehe
<BraddBitt> ( ≖‿≖)
aspires has quit []
flowerpot has quit [Quit: leaving]
flowerpot has joined #ruby
advorak has joined #ruby
<BraddBitt> you could use a gsub to place a newline char '\n' at any blank space position if the string is >80
crystal77 has joined #ruby
<BraddBitt> and recursively do that until the string is less than 80 chars in length
Kricir_ has quit [Remote host closed the connection]
bronson has quit [Quit: bronson]
<shevy> yeah
hamakn has joined #ruby
<thoraxe> anyone kjnow where i can find the libselinux-ruby docs? i am trying to figure out how to observe selinux information about files on the fs
soahccc has quit [Quit: Legalize it!]
<Hanmac> shevy: yeah they use the evil program mIRC for that ;P
<BraddBitt> wallerdev if you don't mind me asking, are you in school or work?
<wallerdev> work
<wallerdev> in SF
sambao21 has quit [Quit: Computer has gone to sleep.]
nitish has quit [Remote host closed the connection]
aspires has joined #ruby
<BraddBitt> ah, nice. I'm in SF too. I only ask because you've been particularly knowledgeable and helpful with my questions
<wallerdev> oh cool where at?
arianit has quit [Quit: Leaving]
<BraddBitt> recent AppAcademy grad
<BraddBitt> so like, mid-market (unfortunately)
arietis has quit [Quit: Computer has gone to sleep.]
rezzack has joined #ruby
afreidah1 has joined #ruby
<advorak> I am trying to understand why the variable "letters" isn't understood in my code (I'm sure it has something to do with scope, but why it's not working I don't understand ...) https://gist.github.com/advorak/9980951
ndrei has quit [Read error: Operation timed out]
<wallerdev> haha
george2 has quit [Remote host closed the connection]
<wallerdev> im at 989 market
sambao21 has joined #ruby
kennym has quit [Quit: Leaving.]
snezhi has joined #ruby
<shevy> what does this mean
<shevy> sex against money?
poguez_ has quit [Quit: Connection closed for inactivity]
<BraddBitt> oh wow, you're super close to me then. I'm at 1061
<shevy> and why are you folks all in SF
DouweM has quit [Read error: Connection reset by peer]
<combusean> I live in Parkmerced =)
<wallerdev> all the cool people in SF shevy
snezhi has left #ruby [#ruby]
<combusean> well
<advorak> #sfcastro
<shevy> yeah I am beginning to see that wallerdev
randomnick_ has quit [Quit: Leaving]
<shevy> but the town scares me, it's built on a frigging hill
<BraddBitt> ahaha
Riking has joined #ruby
<combusean> work at main and mission
Riking has quit [Excess Flood]
<wallerdev> market st / soma area is pretty flat
<BraddBitt> did you go to SFSU combusean ?
<combusean> nope
<combusean> maybe someday
Riking has joined #ruby
Riking has quit [Excess Flood]
DouweM has joined #ruby
Soda has quit [Remote host closed the connection]
<combusean> just needed an apartment in SF and I had requirements
<BraddBitt> ah I see
<BraddBitt> I'm not particularly fond of living that far out
Riking has joined #ruby
Riking has quit [Excess Flood]
timonv has joined #ruby
<combusean> yeah i hate it
<hooper> the outer richmond is nice
Guest54003 has joined #ruby
Guest54003 has quit [Excess Flood]
<shevy> who is hooper now
<combusean> the dirty 8 tho
<shevy> there are like a million SF folks popping out of nowhere
<wallerdev> lol
Lewix has joined #ruby
<wallerdev> SF meetup in #ruby
riking_ has joined #ruby
riking_ has quit [Excess Flood]
ndrei has joined #ruby
* combusean ships shevy out from wherever he is out to SF.
Ziarkaen has joined #ruby
<certainty> SF?
riking_ has joined #ruby
riking_ has quit [Excess Flood]
<combusean> san francisco
Spami has quit [Quit: This computer has gone to sleep]
<wallerdev> hes across the world
<certainty> ah, alright
<combusean> oh well, he'll adjust
<BraddBitt> advorak is that end on line 7 premature?
<BraddBitt> or one of them on line 11/12
riking_ has joined #ruby
riking_ has quit [Excess Flood]
riking_ has joined #ruby
riking_ has quit [Excess Flood]
<v0n> do you guys have an idea of an unicode character that makes think about a CPU?
<BraddBitt> well I guess now is an appropriate time to ask, does anyone know any quality SF ruby/rails/js/cs theory meetups ?
<BraddBitt> v0n cpu like processor chip or cpu computer?
<combusean> BraddBitt, does that mean there are bad ones in the city?
mary5030 has quit [Read error: Connection reset by peer]
riking_ has joined #ruby
<wallerdev> theres a women's javascript conference held here every wednesday i think
mary5030 has joined #ruby
<BraddBitt> I wouldn't doubt it. I've never been to any but I can't imagine they are all amazing
<combusean> eh
<BraddBitt> im particularly interested in a cs theory meetup
<v0n> BraddBitt: processor
<combusean> they're usually good places to drink and eat and socialize
Solnse has joined #ruby
<combusean> sometimes for free
<combusean> often for free
DouweM has quit [Read error: Operation timed out]
<BraddBitt> i doubt it v0n. Can you use a glyphicon or vector image instead?
Hobogrammer has quit [Quit: WeeChat 0.4.3]
<BraddBitt> that's what I've heard combusean
<BraddBitt> plus network and find me a jobby joby
<BraddBitt> s/joby/job
DouweM has joined #ruby
<combusean> the market's tough
<advorak> BraddBitt, It is not premature. I reposted this question to #ruby after realizing it was a ruby question after posting it to #rubyonrails .. right now I'm getting help there :-) sorry for the trouble ..
<combusean> for there being a lot of demand
<combusean> not knowing ruby is enough
<wallerdev> its not that tough
<v0n> BraddBitt: I'm not familiar with glyphicon :s it's meant to use with a standard font such as DejaVu
<wallerdev> just send out some applications haha
<combusean> you need mobile or ops or scaling and usually have to have a solid CS fundamentals
codeurge has joined #ruby
<advorak> BraddBitt, There were really nice Ruby meetups in Baltimore and DC when I lived there through March last year ... There needs to be similar-quality ones here in SF, definitely ..
<combusean> wallerdev, in SF it's very tough, esp if you don't have a CS degree and aren't an ad nauseum expert at stuff
saarinen has quit [Quit: saarinen]
<wallerdev> oh he doesnt have a CS degree?
Lewix has quit [Ping timeout: 268 seconds]
<combusean> i don't.
<BraddBitt> i never finished my degree
mark_locklear has quit [Read error: Operation timed out]
<wallerdev> do you have any projects you can talk about
<BraddBitt> i started my job search on monday though and I already have a few phone and technical interviews lined up
<wallerdev> like open source something or other
<BraddBitt> of course
<BraddBitt> my github is quite populated
<wallerdev> then you'll be fine
<BraddBitt> in ruby, js, java, python, etc
mark_locklear has joined #ruby
<BraddBitt> well assuming I don't blow the tech interviews ( ≖‿≖)
<combusean> java programmers interview you and they expect you to know binary search trees and linked lists and all sorts of sort algos that you'll never deal with in ruby.
iceden has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<BraddBitt> ahaha exactly
<wallerdev> just brush up on interview questions and you'll do great
<DouweM> combusean: that stuff is still good to know
<BraddBitt> thats the plan today/this weekend
<combusean> they use the same academic qualifiers that academia uses.
<combusean> it is, DouweM, but it's not relevant to engineering these apps people are working on generally.
<DouweM> true
<wallerdev> BraddBitt: are you interested in working for a startup?
<BraddBitt> yes
<DouweM> but I definitely think the two years of CS education I have had until now have made me a better programmer
<BraddBitt> that is mostly where I have been applying
saarinen has joined #ruby
<BraddBitt> I worked as a junior dev at one before, and I love the quickness of a startup
<BraddBitt> you don't get lost between the cracks
<combusean> BraddBitt, you on dice.com ?
<wallerdev> i know someone looking for people to work at one of the startups he invests in
<combusean> post your resume, recruiters do the work for you
<lupine> this is fun: Object.dup.new.is_a?(Object)
<BraddBitt> no. I'm on angel.co, s/o careers and linkedin (hah)
<BraddBitt> thank you combusean I'll do that now
<lupine> you can set up a completely parallel object hierarchy
<combusean> expect your phone to blow up as soon as you do
echevemaster has joined #ruby
<BraddBitt> sounds good to me ( ≖‿≖)
<lupine> Class.new.is_a?(Object) => true
afex has quit [Ping timeout: 240 seconds]
<DouweM> lupine: is that surprising?
<shevy> Penis.new.better_than_the_old_one? # => true
<lupine> it's a little inconsistent
<DouweM> lupine: how so
<BraddBitt> seems consistent to me
yokel has quit [Ping timeout: 264 seconds]
<DouweM> yeah, not sure what you deem inconsistent
<lupine> maybe I'm just not thinking about it correctly
saarinen has quit [Client Quit]
<certainty> shevy: as that doesn't remove the old one, you're wife suddenly has two problems :p
<RubyPanther> shevy: https://gist.github.com/rubypanther/9981233 # circa 2007
<DouweM> perhaps. the ruby class hierarchy can be a bit confusing at times
<certainty> your, even
Spami has joined #ruby
<lupine> Object.dup.new.is_a?(BasicObject) => true
fgo has joined #ruby
<DouweM> I really don't see the inconsistency
codeurge has quit [Quit: codeurge]
noob101 has joined #ruby
chichou has joined #ruby
<lupine> mm, I agree, there isn't one
<certainty> look harder!
<noob101> I love ruby,
<RubyPanther> shevy: rails probably has a more correct example by now
* noob101 Loves ruby.
hfp`away is now known as hfp
<DouweM> noob101: you're in good company here then
<RubyPanther> <3 <3 <3 Ruby
<lupine> it's just fun that you can dup BasicObject (it turns out) and start inheriting from that
Lewix has joined #ruby
<BraddBitt> dup the kernel
hfp is now known as hfp`away
<lupine> Class.new.superclass => Object, after all
hfp`away is now known as hfp
<DouweM> >> BasicObject.dup
<eval-in> DouweM => can't copy the root class (TypeError) ... (https://eval.in/132001)
<DouweM> lupine: what were you saying?
Speed has quit [Ping timeout: 240 seconds]
<RubyPanther> >> Class.superclass.superclass
<eval-in> RubyPanther => Object (https://eval.in/132002)
flops_ has quit [Read error: Operation timed out]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hobogrammer has joined #ruby
<BraddBitt> >> puts self.kind_of?(Object)
<eval-in> BraddBitt => true ... (https://eval.in/132003)
SCommette has joined #ruby
cocotton_ has quit [Remote host closed the connection]
kennym has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
<RubyPanther> All that stuff makes me glad that it doesn't matter because we really duck type :)
<DouweM> hehe
dkamioka_ has joined #ruby
<certainty> still few opjects respond to #duck? :(
sepp2k has joined #ruby
<BraddBitt> must not be a duck then ( ≖‿≖)
<certainty> objects
<certainty> damn
<certainty> could be some other bird
<certainty> a combinator bird maybe
yokel has joined #ruby
nicoulaj has joined #ruby
<RubyPanther> if you're worrying what kind of bird it "really" is, the duck already died
phutchins has quit [Ping timeout: 268 seconds]
cj3kim has quit [Remote host closed the connection]
<Squarepy> shrodingers duck
dgarstang has quit [Ping timeout: 252 seconds]
<certainty> if it smells like a dead duck it probably is a dead duck
<RubyPanther> right, we don't know if you're duck typing until you do it... there is no declaration
dkamioka has quit [Ping timeout: 240 seconds]
nanoyak has joined #ruby
rdark has quit [Quit: leaving]
Cheets-X has left #ruby ["Leaving"]
<certainty> duck typing is just a synonym for hunt & peck
GaryOak_ has quit [Remote host closed the connection]
teddyp1cker has quit [Remote host closed the connection]
<noob101> Hey I have a question.
<certainty> does it involve ducks of some kind?
nanoyak has quit [Read error: Connection reset by peer]
<noob101> I am trying to clean my lenovo computer clean, what channel should I go to for that?
cocotton has joined #ruby
nanoyak has joined #ruby
DEA7TH has quit [Ping timeout: 240 seconds]
<certainty> #java
Hanmac1 has joined #ruby
donnoc has joined #ruby
<shevy> #php
<BraddBitt> he said clean, not destroy
deg- has left #ruby [#ruby]
Hanmac has quit [Ping timeout: 240 seconds]
pel_daniel has joined #ruby
dyoko has quit [Ping timeout: 240 seconds]
<certainty> #basic as he wanted to goto there
<Squarepy> #burn
<shevy> #die
<noob101> What channel should I go to, any suggestions please?
<noob101> Hi shevy!
<cout> noob101: have you tried windex?
<shevy> noob101 eh
<shevy> go use linux man
<noob101> What is windex?
<Squarepy> noob101, #linux , please insert live cd -> overwrite HD -> yes, byebye windows
<cout> noob101: the blue stuff in the spray bottle
<shevy> windows hates you noob101
<noob101> Linux, hmm. I don't know. Everyone is telling me to switch to windows.
<noob101> I mean linux
<noob101> See I am thinking about windows
<certainty> they really mean amiga os
<noob101> I used it since I was a child.
<Squarepy> mike os
<cout> noob101: you can try linux inside a vm if you want to experiment with it
<certainty> or a vm inside linux
<certainty> works both ways
<BraddBitt> or live boot
<lupine> linux fte
<noob101> But what channel would help me clean my computer?
<lupine> ftw*
Ziarkaen has quit [Remote host closed the connection]
carraroj has quit [Quit: Konversation terminated!]
<certainty> noob101: it depends on your operating system and the current phase of the moon
<BraddBitt> noob101 you mean clean up the software or physically clean the inside?
elaptics is now known as elaptics`away
<noob101> Windows.
<BraddBitt> i think a google search would be more helpful
<noob101> BraddBitt, I am trying to start my computer from scratch like when I first got it
aspires has quit []
donnoc has quit [Ping timeout: 240 seconds]
<BraddBitt> get spybot S&D, hijack this, clean up the startup processes, delete old files/folders, remove unused programs
<noob101> Bradd, I did that but there are so many types of computers and different operations that I am not familiar with
<noob101> I don't want to do an operation then mess up my only desktop.
Megtastique has joined #ruby
maximski has joined #ruby
brunops has joined #ruby
<noob101> I already messed up my laptop yesterday it has a black screen and can't boot into windows. :(
<BraddBitt> combusean if i make my dice.com profile "Searchable" is that basically saying "spam me please"
mattmcclure has joined #ruby
<lupine> your local computer shop will be pleased to charge you a small fortune to help
maximski has quit [Max SendQ exceeded]
<BraddBitt> noob101 start with basic virus scan
<BraddBitt> actually lets take this to PM
<combusean> BraddBitt, it's making you searchable to recruiters that have paid for dice membership
<BraddBitt> so... yes
<BraddBitt> ( ≖‿≖)
<combusean> you WANT to be spammed when you're looking for a job
lmickh has joined #ruby
x1337807x has joined #ruby
<BraddBitt> eh, true
<combusean> recruiters are your best friend when you're unemployed and your worst enemy when you're working
<BraddBitt> haha
<BraddBitt> alright
maximski has joined #ruby
<BraddBitt> good advice
<RubyPanther> noob101: step 1: download linux "livecd" step 2: click something with words like "install to disk" step 3: when the installer asks about your hard drive, tell it to format. That will start you over fresh and new. step 4: click Next until done
carraroj has joined #ruby
donnoc has joined #ruby
<RubyPanther> recruiters are _always_ evil.
timonv has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
<RubyPanther> recruiters do NOT help you get a job, they help you get your resume into the first round of selection... right where it starts if you apply directly to companies you want to work for
<noob101> RubyPanther, I don't want Linux though. I don't feel comfortable. Thank you though for the advice.
Megtastique has quit [Client Quit]
<RubyPanther> if you need a special OS to "feel comfortable" you should just "get over it" and stop being scared of computers.
kennym has quit [Quit: Leaving.]
x77686d has joined #ruby
chrisseaton has joined #ruby
Nukepuppy has quit [Ping timeout: 240 seconds]
randomnick_ has joined #ruby
klaut has joined #ruby
<RubyPanther> it is just applications, even the interfaces are all the same, eg, you get interfaces from frameworks not OSes. and applications it shouldn't matter if it is an Apple ][, an Amiga, Windows 3.11 with Win32s extensions, or linux
havenwood has joined #ruby
mehlah has joined #ruby
SHyx0rmZ has joined #ruby
carraroj has quit [Remote host closed the connection]
jxf has quit [Ping timeout: 240 seconds]
davy_ has joined #ruby
Megtastique has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
habanany has joined #ruby
jkamenik has joined #ruby
carraroj has joined #ruby
habanany has quit [Max SendQ exceeded]
pwh has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
Musashi1 has joined #ruby
davy__ has joined #ruby
Musashi1 has quit [Client Quit]
nanoyak has joined #ruby
arubincloud has quit []
Spami has joined #ruby
nomenkun has joined #ruby
dx7_ has joined #ruby
sigurding has quit [Quit: sigurding]
rm_ has joined #ruby
frewsxcv has joined #ruby
donnoc has quit [Ping timeout: 240 seconds]
davy_ has quit [Ping timeout: 240 seconds]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dx7 has quit [Ping timeout: 255 seconds]
saarinen has joined #ruby
nomenkun has quit [Ping timeout: 240 seconds]
frewsxcv has left #ruby ["Textual IRC Client: www.textualapp.com"]
<BraddBitt> which is the more expensive operation: read random line from file or read random row from DB? The file, right?
donnoc has joined #ruby
kennym has joined #ruby
rm_ has quit [Ping timeout: 255 seconds]
<shevy> I think it may depend on the size
<DouweM> depends on your definition of "random", whether you have any DB indexes in place and whether the DB or file are already loaded into memory, but generally I'd say yeah, the file.
<iitywimwybmab> BraddBitt: not sure that's enough info to say
<DouweM> +1 shevy, size matters as well
Hanmac has joined #ruby
<shevy> yeah man, girls taught me that
<DouweM> :)
jackyalcine has quit [Excess Flood]
<BraddBitt> lets assume we are storing text (varchar 255 in the db), no indexes, 1 block of text per line in file/row in db
<BraddBitt> equal length
dorei has joined #ruby
chichou has quit [Remote host closed the connection]
timonv has joined #ruby
<shevy> well I would hope that the database is faster
<shevy> I am absolutely sure it is faster the more and more data it has stored, compared to the same information stored in flat files
<BraddBitt> right
<shevy> but who knows, perhaps you have a quadrilcore CPU and a few trillion gigabytes of RAM
<BraddBitt> ok
<DouweM> with the file, you'd still have to read the entire file and then get the rand() line you're looking for, with the DB you'll be able to access it randomly
dblessing has quit [Quit: dblessing]
<BraddBitt> hmm
<shevy> perhaps he just uses seek to set a position
<BraddBitt> im deciding the most efficient way to build markov chains
<DouweM> are you looking for random or arbitrary?
<shevy> you know I have no idea what I am talking about
<shevy> because I never had to do any of that :)
<BraddBitt> but i think doing 5-10 database reads to build a chain could be expensivee
<shevy> markov
<shevy> sounds russian
<DouweM> in any case, the DB performance will be increased by using indexes, no such thing with plain text files
CaptainJet has joined #ruby
brunops has quit [Read error: No route to host]
<BraddBitt> maybe a better solution is to hold a buffer of the last n lines written in memory, and use that to build the chains
<DouweM> but who the hell cares if we're talking < a million lines or so
<DouweM> your bottleneck will probably be Ruby anyway
<BraddBitt> heh
<BraddBitt> true
Es0teric has quit [Ping timeout: 240 seconds]
<selina345> i keep getting readline errors in ROR on ubuntu
<BraddBitt> can you post the erroR?
<BraddBitt> error*
<RubyPanther> BraddBitt: unless the file has fixed-length lines, you have to read the whole file up to the record, the database can short-circuit each row if you're testing for a condition. So the "random" case is not really a good sample... testing random rows against a string is a more realistic case, and the db is faster at that point even without indexes
<BraddBitt> I see...
<dorei> DBs usually use b-trees, right?
<certainty> you could also map the file to memory
<BraddBitt> i think i'll circumvent this whole problem and store the last 500 or so lines in memory
<RubyPanther> with an index the db is always faster, of course
<DouweM> dorei: that's one of multiple options for indexes, sure
brunops has joined #ruby
<BraddBitt> plus, that ensures a somewhat "fresh" markov chain each time
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
<RubyPanther> The thing is, any disk that is used frequently, _including_ the db files, will be in your OS cache already
<BraddBitt> ah
ascarter has joined #ruby
<RubyPanther> So it is a lot easier to slow that down that speed it up :) even using a ram disk
<RubyPanther> but I'd use a RAM disk before memory-mapping a file, because it is generic and doesn't push your optimization onto your other code
RaptorJesus has quit [Ping timeout: 268 seconds]
donnoc has quit [Ping timeout: 252 seconds]
<selina345> Could not find gem 'rb-read\-line (~> 0.4.2)
zigomir has joined #ruby
<selina345> in the gems available on this machine
<selina345> BraddBitt
<BraddBitt> did you bundle install?
<selina345> bundle install what?
<selina345> i was trying to bundle install --without production
<BraddBitt> run the command `bundle install`
cocotton has quit [Remote host closed the connection]
<BraddBitt> oh
<selina345> and it keeps giving me that message
tesuji has joined #ruby
<BraddBitt> can you post the line in your gemfile that has that gem name?
saarinen has quit [Quit: saarinen]
chuk has joined #ruby
dkamioka_ has quit [Remote host closed the connection]
<wallerdev> selina345: are you on windows?
Lewix has quit [Remote host closed the connection]
<wallerdev> lol
<selina345> ubuntu
<wallerdev> why are you using a readline gem then
<certainty> no love for rlwrap
<BraddBitt> yeah, ruby has a built in File class with #readlines method
<BraddBitt> if that is what you're ater
<BraddBitt> after
<thoraxe> can someone take a look at: https://github.com/thoraxe/lambchop -- when I call "Lambchop.dsl("/some/file", :selinux => true)" I get: NoMethodError: undefined method `selinux_stanzas' for Lambchop::Parser:Class
jkamenik has quit [Quit: Leaving.]
<selina345> BraddBitt: gem 'rb-read\-line (~> 0.4.2) ruby'
<selina345> that's the line in my gemfile
<BraddBitt> selina345 try gem 'rb-readline', '~> 0.5.1'
<BraddBitt> but again, you shouldn't need a gem for reading lines
<selina345> in that syntax?
<BraddBitt> yes
<selina345> no backslash
<BraddBitt> yes
<BraddBitt> i assume this is the gem you were trying to install: https://github.com/luislavena/rb-readline
bluOxigen has joined #ruby
sambao21 has quit [Read error: Connection reset by peer]
cocotton has joined #ruby
<BraddBitt> thoraxe i assume the errors is on line 31 in lambchop.rb ?
toastynerd has quit [Read error: Connection reset by peer]
dx7_ has quit [Remote host closed the connection]
toastynerd has joined #ruby
casheew has quit [Ping timeout: 240 seconds]
GaryOak_ has joined #ruby
saarinen has joined #ruby
iceden has joined #ruby
sambao21 has joined #ruby
dx7 has joined #ruby
brucelee has joined #ruby
<thoraxe> BraddBitt: from /home/thoraxe/.gem/ruby/gems/lambchop-0.2.0/lib/lambchop.rb:31:in `dsl' -- probably should've gisted it, sorry
<BraddBitt> np
<selina345> dude that totally worked
<selina345> thanks
<selina345> ive been stuck on it for over an hour
<BraddBitt> haha, np
dtcrshr has quit [Remote host closed the connection]
<BraddBitt> thoraxe should selinux_stanzas be a class or instance method?
<thoraxe> BraddBitt: class method, which i guess means it needs to be def self.selinux_stanzas ?
<BraddBitt> : )
<thoraxe> i suppose it could be an instance method, but i'm not sure on what instance it would be called
<BraddBitt> right
<BraddBitt> try it out and report back
yalue has quit [Quit: Leaving]
MattStratton has joined #ruby
<thoraxe> there won't bea new
MattStratton has quit [Max SendQ exceeded]
<BraddBitt> exactly
nateberkopec has quit [Quit: Leaving...]
dunix has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
dtcrshr has joined #ruby
mikepack has quit [Ping timeout: 268 seconds]
timonv has quit [Remote host closed the connection]
hfp is now known as hfp`away
maximski has quit []
arietis has joined #ruby
saarinen has quit [Quit: saarinen]
keeguon has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
mark_locklear has quit [Quit: Leaving]
brucelee has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
SCommette has quit [Quit: SCommette]
chichou has joined #ruby
arietis has quit [Ping timeout: 252 seconds]
havenwood has quit [Remote host closed the connection]
mib_mib has joined #ruby
havenwood has joined #ruby
sigurding has joined #ruby
SHyx0rmZ has quit [Ping timeout: 268 seconds]
<BraddBitt> wow combusean already cintacted by a recruiter
Musashi1 has joined #ruby
<BraddBitt> in less than an hour
<combusean> :)
<combusean> good luck out there Bradd
sigurding_ has joined #ruby
Musashi1 has quit [Client Quit]
<BraddBitt> thanks
sdegutis has joined #ruby
codabrink has quit [Ping timeout: 255 seconds]
carraroj has quit [Quit: Konversation terminated!]
mrmargolis has quit []
GaryOak_ has quit [Remote host closed the connection]
sambao21 has joined #ruby
wallerdev has quit [Quit: wallerdev]
RowdyChildren is now known as RowdyChild|Away
<sdegutis> Never mind, figured it out.
codabrink has joined #ruby
havenwood has quit [Ping timeout: 268 seconds]
nopolitica has joined #ruby
<sdegutis> Apparently I had to do ARGV.clear before doing anything else, otherwise 'gets' would assume args were names of files and try to load them up.
yacks has quit [Ping timeout: 240 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sigurding has quit [Ping timeout: 268 seconds]
sigurding_ is now known as sigurding
<thoraxe> so i'm trying to use rake to package my gem (https://github.com/thoraxe/lambchop/blob/master/lambchop.gemspec) but can't seem to figure out how to "use" rake to do it. trying to follow http://rake.rubyforge.org/classes/Rake/GemPackageTask.html for example
sdegutis has left #ruby [#ruby]
rudisimo has quit []
x1337807x has joined #ruby
m0s is now known as m0s^away
<thoraxe> oh
<thoraxe> that's supposed to go in the rakefile
dayepa has joined #ruby
newUser1234 has joined #ruby
lapinferoce has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 240 seconds]
andy___ has joined #ruby
andy___ is now known as Guest9681
Guest9681 has quit [Read error: Connection reset by peer]
SHyx0rmZ has joined #ruby
terrellt has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
linojon has quit [Quit: linojon]
nateberkopec has joined #ruby
tjr9898 has joined #ruby
wjlafrance has quit [Quit: This computer has gone to sleep]
andy__ has quit [Ping timeout: 240 seconds]
Bumptious has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Morkel has quit [Quit: Morkel]
andy__ has joined #ruby
linojon has joined #ruby
habanany has joined #ruby
wjlafrance has joined #ruby
habanany has quit [Max SendQ exceeded]
noop has quit [Read error: Operation timed out]
ascarter has joined #ruby
twiceaday has quit [Ping timeout: 240 seconds]
twiceaday has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
toastynerd has quit [Remote host closed the connection]
tjr9898 has quit [Ping timeout: 265 seconds]
jackneill has quit [Remote host closed the connection]
noob101 has quit [Ping timeout: 245 seconds]
im0b__ is now known as im0b
habanany has joined #ruby
evenix has quit [Remote host closed the connection]
habanany has quit [Max SendQ exceeded]
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
toastynerd has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
saarinen has joined #ruby
ascarter has joined #ruby
rayners has quit [Remote host closed the connection]
saarinen has quit [Client Quit]
saarinen has joined #ruby
saarinen has quit [Client Quit]
echevemaster has quit [Quit: Leaving]
alexju has quit [Remote host closed the connection]
brucelee has joined #ruby
jobewan has quit [Quit: Leaving]
Es0teric has joined #ruby
rm__ has joined #ruby
davy__ has quit [Remote host closed the connection]
Jonah11_ has joined #ruby
Mon_Ouie has joined #ruby
saarinen has joined #ruby
jrhe has quit [Quit: Connection closed for inactivity]
afex has joined #ruby
andy__ has quit [Read error: Connection reset by peer]
andy__ has joined #ruby
ddfreyne has joined #ruby
rm__ has quit [Ping timeout: 240 seconds]
johns_ has joined #ruby
ktosiek has joined #ruby
djbender has quit [Quit: djbender]
johns_ has quit [Client Quit]
aspires has quit []
nicoulaj has quit [Remote host closed the connection]
showaz has quit [Quit: Textual IRC Client: www.textualapp.com]
existensil has joined #ruby
endash_ has quit [Quit: endash_]
wallerdev has joined #ruby
aspires has joined #ruby
himsin has quit [Quit: himsin]
habanany has joined #ruby
habanany has quit [Max SendQ exceeded]
brunops has quit [Read error: No route to host]
mattlebel has joined #ruby
skammer has joined #ruby
brunops has joined #ruby
brunops has quit [Changing host]
brunops has joined #ruby
chipotle has quit [Ping timeout: 255 seconds]
sigurding has quit [Read error: No route to host]
arubin has joined #ruby
weems has quit [Read error: Connection reset by peer]
showaz has joined #ruby
sigurding has joined #ruby
tcstar has quit [Read error: Connection reset by peer]
x1337807x has quit [Ping timeout: 255 seconds]
Czupa has quit [Remote host closed the connection]
paulfm has quit []
<Takumo> Anyone know why when I call #save! on a mongoid model, I get the error "Undefined constant #{model_name}" ?
jorts has quit [Quit: jorts]
supermarin____ has joined #ruby
razrunelord has quit [Ping timeout: 240 seconds]
ronel has joined #ruby
<Takumo> oh its something to do with my relationships :/
SCommette has joined #ruby
jorts has joined #ruby
kaspergrubbe has joined #ruby
mjs2600 has quit [Remote host closed the connection]
nari has quit [Ping timeout: 240 seconds]
supermarin___ has quit [Ping timeout: 255 seconds]
cpruitt has joined #ruby
bilbo_swaggins has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sent-hil has joined #ruby
bean has joined #ruby
kirun has quit [Quit: Client exiting]
icole has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
popl has quit [Ping timeout: 255 seconds]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
devdazed has quit [Quit: Bye]
RaptorJesus has joined #ruby
x1337807x has joined #ruby
alvaro_o has joined #ruby
toastynerd has quit [Remote host closed the connection]
cj3kim has joined #ruby
afex has quit [Ping timeout: 240 seconds]
bricker`LA has quit [Quit: leaving]
Speed has joined #ruby
fgo has joined #ruby
sigurding has quit [Quit: sigurding]
mib_mib has quit [Remote host closed the connection]
toastynerd has joined #ruby
mr_snowf1ake has quit [Ping timeout: 252 seconds]
Kricir has joined #ruby
ronel has left #ruby [#ruby]
razrunelord has joined #ruby
axl_ has quit [Ping timeout: 240 seconds]
brunops has quit [Ping timeout: 240 seconds]
jacky has joined #ruby
Guest65874 has joined #ruby
SCommette has quit [Quit: SCommette]
cocotton has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 268 seconds]
Guest65874 has quit [Client Quit]
lunks has joined #ruby
Speed has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
<lunks> What is the best way to propose a feature request to the language? Just add it to the bug tracker, mail to the ruby core or...?
fgo has quit [Ping timeout: 255 seconds]
cocotton has joined #ruby
cj3kim has joined #ruby
newUser1234 has quit [Remote host closed the connection]
<wallerdev> whats the feature request?
Exeia has joined #ruby
benzrf|offline is now known as benzrf
<benzrf> yo
<wallerdev> hey benzo
razrunelord has quit [Remote host closed the connection]
<bilbo_swaggins> if you can program, you can submit a patch yourself
razrunelord has joined #ruby
doodlehaus has quit [Remote host closed the connection]
Speed has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bilbo_swaggins> is GitHub the main repo for Ruby?
newUser1234 has joined #ruby
spyderman4g63 has quit []
dtcrshr has quit [Quit: Saindo]
<shevy> $this->db->query("UPDATE `" . DB_PREFIX . "user` SET salt = '" . $this->db->escape($salt = substr(md5(uniqid(rand(), true)), 0, 9)) . "', password = '" . $this->db->escape(sha1($salt . sha1($salt . sha1($password)))) . "', code = '' WHERE user_id = '" . (int)$user_id . "'");
davy_ has joined #ruby
<shevy> no more mercy for PHP
<shevy> it must die
workmad3 has joined #ruby
<bilbo_swaggins> all the power of perl
postmodern has joined #ruby
<bilbo_swaggins> with all the beauty of perl
<shevy> well
axl_ has joined #ruby
<shevy> you are rubbing a wound here bilbo_swaggins
<shevy> perl should have prevented the rise of php :\
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bilbo_swaggins> nothing can stop languages from popping up
goleldar has joined #ruby
<bilbo_swaggins> even if an almost identical language already exists
* combusean sighs at php
<combusean> I did that for far too long
<combusean> it's like a bad drug
mattlebel has left #ruby [#ruby]
Megtastique has quit []
<shevy> bilbo_swaggins on average distribution the amount of new people coming to lisp and coding a web shop in it will be very low
teddyp1cker has joined #ruby
<Hanmac> bilbo_swaggins: the main repo is at http://svn.ruby-lang.org/repos/ruby/trunk .. https://github.com/ruby/ruby is only a mirror
<shevy> I'd argue that more people will go and use php than perl in the years to come
<bilbo_swaggins> brb
Speed has quit [Ping timeout: 255 seconds]
<benzrf> idk if its still the cause
<benzrf> *case
<benzrf> but at least at one point
<benzrf> php auto converted numeric-looking strings into ints for comparison in some cases
<bilbo_swaggins> shevy, what did you mean about lisp?
<benzrf> so two long hex strings, such as hashes
<shevy> hey benzrf you should do something like this: http://k.swd.cc/burn/
<benzrf> could compare equal even when theyre not
<bilbo_swaggins> thanks Hanmac
<shevy> bilbo_swaggins you said that languages will pop up even if identical languages already exist, I likened it to the average distribution of new users coming to a language
thrillagorilla has quit []
<bilbo_swaggins> I don't follow
x1337807x has joined #ruby
lagweezle has joined #ruby
jlast has quit [Remote host closed the connection]
<sent-hil> i'm getting i686-apple-darwin11-gcc-4.2.1: yes: No such file or directory when trying to install hiredis. i'm on mountain lion
<Hanmac> shevy what was this language statistic site? last "Language of the Year" was a proprietary one from microsoft
<shevy> tiobe?
<Hanmac> yeah
<shevy> I no longer trust them even for anything
teddyp1cker has quit [Ping timeout: 252 seconds]
<shevy> they seemed to be more an ad-site
<benzrf> shevy that looks sweet
St_Marx has quit [Remote host closed the connection]
pwh has quit []
brucelee has quit [Ping timeout: 268 seconds]
<benzrf> but the english on the page is rather poor =[
<shevy> "go use this microsoft product, look it jumped up 20 ranks in a year"
<lagweezle> I misseded you all!
St_Marx has joined #ruby
<shevy> benzrf hey
<shevy> english is hard, documentation is hard
<shevy> ...
<shevy> :)
<shevy> writing documentation is so damn boring
Stalkr_ has quit [Quit: Linkinus - http://linkinus.com]
<Hanmac> shevy: last week i tryed to only commit something when in the diff more comment lines where added than code lines ;P
nemesit|znc has quit [Ping timeout: 255 seconds]
<benzrf> Hanmac: poor english ;-;
sambao21 has quit [Quit: Computer has gone to sleep.]
tris has joined #ruby
brucelee has joined #ruby
whatasunnyday has joined #ruby
<Hanmac> benzrf: http://www.bbc.com/news/technology-26879185 "Xbox password flaw exposed by five-year-old boy"
sambao21 has joined #ruby
nemesit|znc has joined #ruby
afex has joined #ruby
byennen has quit []
taf2 has quit [Quit: taf2]
newUser1234 has quit [Remote host closed the connection]
jeregrine has quit [Quit: Connection closed for inactivity]
donnoc has joined #ruby
AndChat| has joined #ruby
agrinb_ has joined #ruby
wjlafrance has quit [Remote host closed the connection]
byennen has joined #ruby
AlexRussia has quit [Read error: Operation timed out]
jarto has joined #ruby
lkba has quit [Read error: Connection reset by peer]
codabrink has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GreatSUN has quit [Quit: Page closed]
crystal77 has quit [Quit: Computer has gone to sleep.]
Shidash has joined #ruby
newUser1234 has joined #ruby
AlexRussia has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wjlafrance has joined #ruby
toastynerd has quit [Remote host closed the connection]
CreativeEmbassy has quit [Quit: FO SHO]
mostlybadfly has quit [Quit: Connection closed for inactivity]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
postmodern has quit [Remote host closed the connection]
taf2 has joined #ruby
ascarter has joined #ruby
<mozzarella> GUYS
rm_ has joined #ruby
<xybre> wat
<benzrf> yeah?
claymore has quit [Quit: Leaving]
Shidash has quit [Ping timeout: 252 seconds]
meatherly has quit [Remote host closed the connection]
<hooper> ls
meatherly has joined #ruby
tcstar has joined #ruby
<mozzarella> if I have an object @cmd and would like to call multiple methods on it, what can I do? I'd like to open its scope… and not have to type @cmd.something everytime
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> you do want to type that everytime
crystal77 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> some people do something like .tap do |c|
rm_ has quit [Ping timeout: 268 seconds]
saarinen has quit [Quit: saarinen]
kitak has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 240 seconds]
Shidash has joined #ruby
<jhass> but if I'd find @cmd.instance_eval do in production code to safe typing, I'd go hunting for the author
<jhass> *save
nolic has joined #ruby
kitak has joined #ruby
Celm_ has joined #ruby
postmodern has joined #ruby
ndrei has joined #ruby
jarto has quit [Ping timeout: 240 seconds]
meatherly has quit [Ping timeout: 268 seconds]
kevind has quit [Quit: kevind]
siwica has quit [Read error: Operation timed out]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davy_ has quit [Remote host closed the connection]
djbender has joined #ruby
Celm has quit [Ping timeout: 252 seconds]
albedoa has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davy_ has joined #ruby
nopolitica has quit [Remote host closed the connection]
weems has joined #ruby
banister has joined #ruby
dayepa has quit [Quit: dayepa]
m8 has quit [Quit: Sto andando via]
afex has quit [Ping timeout: 240 seconds]
tobago has quit [Read error: Connection reset by peer]
<bilbo_swaggins> is there any way to emulate namespacing with Ruby?
bean has joined #ruby
donnoc has quit [Ping timeout: 252 seconds]
bean has quit [Changing host]
bean has joined #ruby
<DouweM> as in?
rezzack has quit [Read error: Operation timed out]
<Hanmac> bilbo_swaggins: modules /classes works like namespaces too ...
banister has quit [Ping timeout: 252 seconds]
<bilbo_swaggins> I mean like Python's "import X as Y"
axl_ has quit [Quit: axl_]
St_Marx has quit [Remote host closed the connection]
<bilbo_swaggins> maybe I'm using the wrong term
<chrisseaton> bilbo_swaggins: you can require 'x'; Y = X if you want to
<Hanmac> ShortConst = This::Is::A_VERY_LONG_NAMESPACE
<Hanmac> you could even store the whole Class inside local variables
phantummm has quit [Quit: phantummm]
jarto has joined #ruby
<bilbo_swaggins> I mean less for making big things small
<bilbo_swaggins> but rather for not polluting the namespace
saarinen has joined #ruby
newUser1234 has quit [Remote host closed the connection]
<shevy> bilbo_swaggins only by assignment to another namespace
afreidah1 has quit [Ping timeout: 240 seconds]
<bilbo_swaggins> it's okay I'll work around it
<bilbo_swaggins> ah okay
<shevy> bilbo_swaggins if you support me then I will file an issue at the ruby bugtracker
toastynerd has joined #ruby
St_Marx has joined #ruby
<shevy> we need to present convincing arguments though
chipotle has joined #ruby
<bilbo_swaggins> this has been a gripe for you before?
banister has joined #ruby
<bilbo_swaggins> I don't have a *specific* need right now
<bilbo_swaggins> just trying to learn a new technique
JoeJulian has joined #ruby
SCommette has joined #ruby
<Hanmac> bilbo_swaggins: you mean like that?
<Hanmac> >> a = Class; b = a.new; c = b.new; [a,b,c]
<eval-in> Hanmac => [Class, #<Class:0x407f6404>, #<#<Class:0x407f6404>:0x407f63dc>] (https://eval.in/132137)
<mozzarella> jhass: thanks bro, that's exactly what I wanted
<bilbo_swaggins> sorry brb
<bilbo_swaggins> on a call
SCommette has quit [Client Quit]
<Hanmac> shevy i think he is more looking for something like require_into ... that prevents require from adding the code to the main namespace and add it into a anoymous/local one ...
<bilbo_swaggins> yes
funktor has joined #ruby
<shevy> bilbo_swaggins yeah, I don't think we should be forced to restrict ourselves to namespaces that other people came up with for us
<mozzarella> what's wrong with it, btw?
cocotton_ has joined #ruby
<mozzarella> (instance_eval)
cocotton_ has quit [Remote host closed the connection]
linojon has quit [Quit: linojon]
<shevy> Hanmac yep, that is also perfectly fine, my issue at the ruby bugtracker would include those possibilities
<bilbo_swaggins> I'd support you, yeah
<shevy> I've been too lazy to formulate it so far and without a chance of success and support I'll not do so anyway, too many other things I can work on safely or work around
<shevy> \o/
supermarin____ has quit [Quit: Computer has gone to sleep.]
hooper has quit [Ping timeout: 240 seconds]
<shevy> bilbo_swaggins right now I am even cheating the require system of ruby
<shevy> it's not good at all
<shevy> require 'foobar' # <-- foobar gem
<Hanmac> shvy for sample load with a parameter adds the code into an anoymous namespace ... but it does not retrun this one
<shevy> require 'foobar/module' # <-- foobar gem became a module
<bilbo_swaggins> it's about time I learn C#
<shevy> require 'foobar/autoinclude' # <-- foobar gem will be autoincluded
<bilbo_swaggins> now that it's wading into the OSS ecosystem
<bilbo_swaggins> I hear great things about it
<shevy> Hanmac yeah but I dont think matz will add anything to require()
Martxel has joined #ruby
<bilbo_swaggins> and I ought to have another Ruby-like language
zchrykng-work has quit [Quit: Leaving]
<shevy> I'd need to make the case that python offers more with import
<mozzarella> should I create my own ruby forum
<mozzarella> or use an existing one
<shevy> problem is, I dont know what importa all does
cescalante is now known as ce_afk
<shevy> *import
<Hanmac> shevy i may not want to add it to require itself, maybe an extra function like require_relative
<shevy> mozzarella use the ruby-forum backend
skammer has joined #ruby
<bilbo_swaggins> mozzarella: use Discourse unless you have a specific reason not to
<shevy> mozzarella and help improve it haha
cocotton_ has joined #ruby
<mozzarella> shevy: what's that?
<bilbo_swaggins> might as well not reinvent the wheel
<shevy> Hanmac I hate require_relative !
cocotton has quit [Ping timeout: 240 seconds]
cocotton_ has quit [Remote host closed the connection]
<bilbo_swaggins> oh god it's the worst
<shevy> but yeah
rylev has joined #ruby
<shevy> perhaps another way to require or include something
<mozzarella> bilbo_swaggins: discourse is fucking hard to deploy
<shevy> perhaps IMPORT :D :D :D
afreidah1 has joined #ruby
<bilbo_swaggins> fair enough I haven't used Discourse
<shevy> mozzarella, the one used for: https://www.ruby-forum.com/
<mozzarella> and you need ubuntu?!?
<shevy> it was written by some dude in germany years ago
enebo has quit [Quit: enebo]
lagweezle has left #ruby [#ruby]
AlexRussia has quit [Read error: Connection reset by peer]
drocsid has joined #ruby
<mozzarella> not sure if I should use that
Speed has joined #ruby
<drocsid> I'm using a machine running an ancient centOS 5.10 with ruby 1.8.5 in the repos. What's the easiest way to get a more recent version ?
VTLob has quit [Quit: VTLob]
<shevy> ack
<shevy> you are on centos
<shevy> don't they tell you how to upgrade their packages?
<Hanmac> drocsid: format the disks ?
<pontiki> i hope you are kidding about Discourse
<shevy> lol
<mozzarella> pontiki: who?
<pontiki> bilbo
maximski has joined #ruby
<drocsid> I think they intentionally use old packages..... :(
<Nilium> What about discourse?
<shevy> drocsid further options are: compile from source: ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.bz2 or use something like chruby rvm ruby-install and so forth
<shevy> yeah, centos is the slowest of the slow ones
<mozzarella> discourse is a monolithic app
<shevy> even slower than debian "stable"
* combusean dislikes centos
<Hanmac> shevy i think stonehage was faster ;P
<drocsid> I don't like it either
<mozzarella> which must be run on ubuntu 64 bit on a intel processor
x77686d has quit [Quit: x77686d]
<drocsid> but its what I was given
<mozzarella> inside a virtual machine
<drocsid> what I have to work with
<shevy> drocsid enjoy it :)
wjlafrance has quit [Quit: This computer has gone to sleep]
<pontiki> that?
* Nilium flips off discourse and goes back to staring into the void
nateberkopec has quit [Quit: Leaving...]
<mozzarella> no
<mozzarella> but discourse should have been a gem, indeed
<mozzarella> gem install discourse
<mozzarella> discourse init
<Nilium> I assumed the discourse in question was that forum thing that sucks
afreidah1 has quit [Ping timeout: 252 seconds]
<mozzarella> it's good client side
<bilbo_swaggins> didn't know it sucked
nisstyre has joined #ruby
<bilbo_swaggins> disregard that
riotjones has quit [Ping timeout: 240 seconds]
<bilbo_swaggins> I gave bad advice
<drocsid> Ok room vote seems to be discourse, I will look at that
<bilbo_swaggins> what
<Nilium> I hate using discourse-based forums
<bilbo_swaggins> that's not at all the impression I got from people
<Nilium> They're horrifyingly painful to find anything on
<bilbo_swaggins> they say it sucks
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cover has quit [Remote host closed the connection]
<Nilium> Oh you want to find an old thread? I hope you like scrolling down a lot, 'cause our search tool sucks.
<shevy> drocsid I think they answered that to mozzarella, not you
<drocsid> oh
<drocsid> sorry
<shevy> drocsid wget ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.bz2
<drocsid> so does rvm depend on ruby?
<shevy> nah
bronson has joined #ruby
riotjones has joined #ruby
<shevy> \curl -sSL https://get.rvm.io | bash -s stable
<shevy> but I dont recommend any of it
<drocsid> whould i get rvm or source build. I'm just worried about out of date dependices
<shevy> I recommend to wget the source
toastynerd has quit [Remote host closed the connection]
<mozzarella> it's a wonderful shell script ;-)))))))
<Nilium> Was it rvm that is a giant monstrosity of bash scripts?
<shevy> I just mentioned it so you know your options drocsid
<shevy> I have no idea, I never used rvm or any other of those managers
<jhass> drocsid: you can also ruby-build, ruby-install or a sane distro that ships a recent ruby
<shevy> or compile from the source!
chris_thomson has joined #ruby
<Nilium> I just use rbenv.
<Nilium> Could use chruby but I'm lazy about switching.
<Nilium> I compile all my Ruby versions from source.
<mozzarella> ruby in the fedora repos is good… not too outdated
<shevy> you use rbenv!
x1337807x has joined #ruby
toastynerd has joined #ruby
<jhass> Nilium: chruby has auto switching
Es0teric has quit [Quit: Computer has gone to sleep.]
<Nilium> Then just symlink the directory into rbenv's ruby versions directory.
<Nilium> So does rbenv.
ktosiek has quit [Ping timeout: 240 seconds]
<shevy> yeah, that's what most everyone does when managing multiple versions
<dorei> rvm is nice
<Nilium> Unless you're referring to the lazy-about-switching thing, in which case I'm talking about switching from rbenv to chruby, not some feature of rbenv
<combusean> i agree dorei
GreatSUN has joined #ruby
<dorei> i really like that that .ruby-version and .ruby-gemset files autoselect your ruby enviroment without needing to type anything :)
<shevy> oh man
<shevy> this channel should be renamed to #ruby-lazy
peret has quit []
<bilbo_swaggins> RVM is nice
Speed has quit [Quit: reboot]
<combusean> you'd be surprised how "lazy" the working world is
<bilbo_swaggins> what's with the hate?
m0s^away is now known as m0s
<dorei> shevy: if I weren't lazy, I'd be coding in java :p
<bilbo_swaggins> lol
x77686d has joined #ruby
<bilbo_swaggins> compiling from source isn't too hard
<shevy> :)
<bilbo_swaggins> but why do work when you don't have to?
<shevy> !!!
crystal77 has quit [Quit: Computer has gone to sleep.]
<bilbo_swaggins> if we wanted to do work ourselves, we wouldn't use computers
Speed has joined #ruby
<shevy> computers made people lazy
<bilbo_swaggins> LOOK WHAT YOU DID TO US, COMPUTERS!
whatasunnyday has quit [Quit: whatasunnyday]
zorak has joined #ruby
evenix has joined #ruby
coderhs has quit [Ping timeout: 240 seconds]
<drocsid> failed to compile readline
bronson has quit [Ping timeout: 240 seconds]
okdas has quit [Quit: Computer has gone to sleep.]
<bilbo_swaggins> wut
terrellt has joined #ruby
<drocsid> a bunch of other failures
DrShoggoth has quit [Quit: Leaving]
<shevy> yeah
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<shevy> centos gave you a nice crippled environment
<shevy> if you are lucky you can uncripple it; centos surely has some -dev package of readline
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
evenix has quit [Remote host closed the connection]
rankine has joined #ruby
<drocsid> does rvm get precompiled binaries? if nor is there some alternative that ships with ruby 1.8.5 that does?
<dorei> 1.8.5?!?! :O
<drocsid> I have other things to work on....
niklasb has joined #ruby
<shevy> haha
<shevy> centos prisoners are hilarious :D
<shevy> on debian it is not so hard to uncripple ruby and its dependencies
<drocsid> yeah i like debian
<shevy> apt-get install ruby
<drocsid> and arch linux
<shevy> apt-get install ruby1.8-dev
<dorei> i like opensuse :)
<shevy> obviously that is outdated
<bilbo_swaggins> shevy, yeah if you want ruby 1.8
_Andres has joined #ruby
<shevy> hey I am not using debian, I am just comparing it to centos
<bilbo_swaggins> but building is easy on deb
<shevy> the centos folks coming to #ruby are the worst
<shevy> "I have ruby 1.6.2 how can I update with my powerful gcc 2.99"
tjr9898 has joined #ruby
<drocsid> lolz
Nukepuppy has joined #ruby
<shevy> there you go drocsid
mehlah_ has joined #ruby
<LiquidInsect> I would laugh, but... ruby -v -> ruby 1.8.7 (2011-12-28 MBARI...
<shevy> well that is younger than 1.8.5
<shevy> so you can still laugh
<shevy> wait
* Nilium sets LiquidInsect on fire
<shevy> LiquidInsect are you on centos?
<LiquidInsect> 3 years after I started here and we're still banging rocks toether
Speed has quit [Ping timeout: 268 seconds]
<LiquidInsect> this is on os x 10.8... I think production is ubuntu
jrhe has joined #ruby
<shevy> aha
montyboy has joined #ruby
<drocsid> latest git compiled pretty easy however
<drocsid> yeah your google search forgot to mention centOS 5.10
centrx has joined #ruby
<drocsid> your results are for centOS 6
mehlah has quit [Ping timeout: 240 seconds]
jameswlane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tjr9898 has quit [Ping timeout: 265 seconds]
<benzrf> DouweM: i thought about it a little more and i think merging might be a bit infeasible -.-
<bilbo_swaggins> meh
<benzrf> itd be too hard to track what classes and stuff exist and so on
mehlah_ is now known as mehlah
meatherly has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
funktor has quit []
keeguon has quit [Quit: keeguon]
toastynerd has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
afex has joined #ruby
nolic has quit [Ping timeout: 240 seconds]
klaut has quit [Remote host closed the connection]
ndrei has quit [Quit: Lost terminal]
workmad3 has quit [Ping timeout: 240 seconds]
cpruitt has quit [Quit: cpruitt]
rm__ has joined #ruby
LastWhisper has quit [Quit: Page closed]
Bumptious has quit [Remote host closed the connection]
kennym1 has joined #ruby
Bumptious has joined #ruby
kennym has quit [Ping timeout: 240 seconds]
zipace has joined #ruby
zipace has quit [Max SendQ exceeded]
<drocsid> why is mysql-server a dependency?
codezomb has joined #ruby
rm__ has quit [Ping timeout: 240 seconds]
<combusean> for what?
<drocsid> compiling ruby
<benzrf> wat
<jhass> it's not
chipotle has joined #ruby
<drocsid> oh hmm i was looking at dudes google reference and he yum installs mysql-server , to instruct people to compile ruby
sailias has quit [Quit: Leaving.]
<combusean> heh
<jhass> okay, that's just dumb
Fin1te has joined #ruby
Nukepuppy has quit [Ping timeout: 255 seconds]
Fin1te has left #ruby [#ruby]
Tritania has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kennym has joined #ruby
<drocsid> ./ruby
<drocsid> <internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError) from <internal:gem_prelude>:1:in `<compiled>'
SCommette has joined #ruby
<drocsid> looks like it built ok
<drocsid> yay
<drocsid> !
supermarin____ has joined #ruby
SCommette has quit [Client Quit]
<bilbo_swaggins> I wouldn't say that if it's missing gems
armstrjare has joined #ruby
Nukepuppy has joined #ruby
<bilbo_swaggins> why are you installing 1.9.3?
evenix has joined #ruby
<bilbo_swaggins> just grab the latest source
kennym1 has quit [Ping timeout: 240 seconds]
<bilbo_swaggins> the README is pretty straightforward and you just gotta make sure you have the relatively few dependencies
Jonah11_ has quit [Ping timeout: 240 seconds]
<bilbo_swaggins> ./configure && make && make install
<bilbo_swaggins> it'll tell you what dependencies are missing
jorts has quit [Quit: jorts]
crystal77 has joined #ruby
srji_ has joined #ruby
<arubin> Why are we compiling from source without a package/port system?
<bilbo_swaggins> old packages
<bilbo_swaggins> ^^
<arubin> There are better options, no?
s2013 has quit [Ping timeout: 240 seconds]
<arubin> ruby-install for instance.
<bilbo_swaggins> check the scrollback
<bilbo_swaggins> but yes
ghr has joined #ruby
<bilbo_swaggins> personally, I prefer RVM
<benzrf> DouweM: you there?
<bilbo_swaggins> that's my true recommendation
jorts has joined #ruby
x1337807x has joined #ruby
srji has quit [Ping timeout: 252 seconds]
maximski has quit []
<chichou> personally I prefer rbenv but I want to give chruby a try
Nukepuppy has quit [Ping timeout: 240 seconds]
<bilbo_swaggins> meh I have something which works
<bilbo_swaggins> is there really a compelling reason to try chruby?
nateberkopec has joined #ruby
<chichou> non intrusive ruby version manager
sambao21 has quit [Quit: Computer has gone to sleep.]
<postmodern> bilbo_swaggins, it does one thing and does it well?
<chichou> as overriding cd is a bad thing imho
<bilbo_swaggins> it overrides cd?
<chichou> rvm ?
ghr has quit [Ping timeout: 255 seconds]
<bilbo_swaggins> yes?
<chichou> last tme I used it yep
<bilbo_swaggins> for the whole system?
<bilbo_swaggins> I don't have that issue
<bilbo_swaggins> that would be pretty stupid, though
<bilbo_swaggins> "Be sure to call the builtin cd function or you will cause either very nasty or very amusing side effects (depending on perspective)."
<postmodern> rvm improved it after chruby, http://niczsoft.com/2012/12/story-of-prompt_command-and-rvm/
andrewlio has quit [Quit: Leaving.]
<postmodern> although chruby now uses `trap DEBUG`, since PROMPT_COMMAND only works in interactive-mode
<chichou> ok I dropped rvm like 3 years ago :D
<bilbo_swaggins> I don't use the functionality that that hackish cd-extension is meant to accomplish
<billiam> probably obvious, but is there a more readable way of writing some_array_with_duplicates.group_by{|item| item} ?
<bilbo_swaggins> so I didn't notice either way
<bilbo_swaggins> syntax wise or naming wise, billiam?
<billiam> bilbo_swaggins: syntax-wise
eynj has joined #ruby
<bilbo_swaggins> what are you trying to accomplish?
<jhass> billiam: uh, .uniq?
Jon30 has quit [Ping timeout: 255 seconds]
<billiam> bilbo_swaggins, jhass: find duplicates in an array
<billiam> jhass: That'll remove my dupes, I'm trying to get a list of them.
<jhass> find or remove them?
selina345 has quit [Ping timeout: 255 seconds]
<bilbo_swaggins> so you want a builtin
<bilbo_swaggins> check the ruby documentation for array
<bilbo_swaggins> I'm not sure if that exists
donnoc has joined #ruby
<drocsid> bilbo_swaggins: i didn't install 1.9.3
<bilbo_swaggins> not really salient
mercwithamouth has joined #ruby
<chichou> array.select {|n| array.count(n) < 1} but it's not really optimized
<chichou> >1 *
chipotle has quit [Quit: cya]
rankine has quit [Quit: leaving]
kitak has quit [Remote host closed the connection]
<drocsid> however the ruby installer didn't seem like it told me the missing dependencies. I just got a list from that post
<bilbo_swaggins> what was the output of the installer
<bilbo_swaggins> wait
<drocsid> it let me build missing things
<drocsid> readline
<bilbo_swaggins> the installer or when compiling?
<drocsid> etc
<bilbo_swaggins> readline, etc isn't helpful :(
kitak has joined #ruby
<drocsid> when compiling
<drocsid> doh
<drocsid> anyways everything is cool
<bilbo_swaggins> okay no worries
predator217 has joined #ruby
jarto has quit [Ping timeout: 255 seconds]
<bilbo_swaggins> chichou: that's O(n^2) ;_;
<chichou> yeah I know :p
<BraddBitt> wow, I just did array[Random(array.length)]
<BraddBitt> im losing my mind
<bilbo_swaggins> lol
lmickh has quit [Ping timeout: 255 seconds]
<chichou> the not really optimized is an euphemism
AndChat| has quit [Ping timeout: 240 seconds]
<bilbo_swaggins> billiam should really check the ruby docs
<bilbo_swaggins> that's the best bet if he wants a builtin
<benzrf> hmmm, anybody here use Thor?
<bilbo_swaggins> file manager?
<bilbo_swaggins> wait
<benzrf> na
<bilbo_swaggins> that's thunar
<benzrf> i want to allow arbitrary text and flags after a subcommand
mary5030 has quit [Remote host closed the connection]
crystal77 has quit [Quit: Computer has gone to sleep.]
predator117 has quit [Ping timeout: 240 seconds]
<bilbo_swaggins> alright see yah later gangsters and gentlemen
bilbo_swaggins has quit [Quit: Leaving]
mary5030 has joined #ruby
solidus-river has joined #ruby
<solidus-river> hey all, if i have a hash and i want to unwrap its arguments to pass as parameters to a function... is there a way to do that?
brucelee has quit [Ping timeout: 240 seconds]
<benzrf> solidus-river: hash arguments?
<solidus-river> i'm building up a list of named parameters to a function that i want to pass to it
poguez_ has joined #ruby
kitak has quit [Ping timeout: 260 seconds]
<solidus-river> well so i have a function that expects.... fun "string", :name=>value, :name=>value
<shevy> solidus-river can you show a small example
andy__ has quit [Remote host closed the connection]
<solidus-river> i'm building up a {:name=>value, :name=>value} hash for the named args
psyko666 has joined #ruby
<solidus-river> yeah, let me pastie
Kricir has quit [Remote host closed the connection]
<shevy> small pls! minimal amount to reproduce
andy__ has joined #ruby
teddyp1cker has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
aspires has quit []
ndrei has joined #ruby
agrinb_ has quit [Quit: Leaving...]
<wallerdev> is the hash ordered right, if so you can just splat the values into send
mary5030 has quit [Ping timeout: 240 seconds]
RaptorJesus_ has joined #ruby
<shevy> splat a flat
<shevy> splat a fat wallerdev
<shevy> it's all the same
<shevy> splat them down!
nateberkopec has quit [Quit: Leaving...]
<shevy> I meant to write *fly
<shevy> not flat :(
<shevy> the tiredness is slowly kicking in ...
<wallerdev> lol
<solidus-river> shevy http://pastie.org/8995257
<solidus-river> there are some typos there but should be enough to get the idea
<shevy> I am not sure what you want to achieve
<shevy> but I am quite sure you want to use *
<jle`> what are some things you guys feel would improve ruby? thinking about writing a new scripting language and looking for some inspiration
<shevy> jle` improve in which regard
andy__ has quit [Ping timeout: 240 seconds]
<jle`> anything, any language ideas
derek_c has joined #ruby
<shevy> I mean, there are a million ways to answer
mostlybadfly has joined #ruby
<jle`> yeah it's pretty open ended
<shevy> so, better high quality documentation is not a good answer? :>
<jle`> language design ideas
<shevy> jle` k
<wallerdev> solidus-river: are you talking about ruby 2 named params?
<jhass> solidus-river: foo({:foo => bar}), foo(:foo => bar), foo {:foo => bar} and foo :foo => bar are all the same thing
teddyp1cker has quit [Ping timeout: 240 seconds]
<shevy> jle` ruby 3.0 should be much simpler, also for newcomers. it should also focus on the www such as php did. it should have a much better documentation and for the features it offers there should be clear use cases
<solidus-river> jhass: but one of the params is not named and expected as the first arg
<jhass> solidus-river: show the method definition
<solidus-river> jhass: and foo("something", {:foo => bar}) is no thte same as foo("something, :foo => bar)
<jhass> solidus-river: it is
<shevy> jle` distributing addons should be simple and streamlined, no gem/bundler madness
<solidus-river> * "something"
<solidus-river> wierd it is?
<shevy> solidus-river ruby cheats
RaptorJesus has quit [Ping timeout: 268 seconds]
<jhass> solidus-river: foo {foo: bar} can not be the same as foo foo: bar, depending on the method definition
<shevy> :foo => bar is really { :foo => bar }
donnoc has quit [Ping timeout: 240 seconds]
<solidus-river> i'm building up parameters for search in the searchkick gem here
<solidus-river> let me try to find the actual def
supersyy has joined #ruby
jarto has joined #ruby
<jhass> as you see that just takes a hash as second param
<solidus-river> ah, so if i do search "blah" {} it should be the same as specifying options
<solidus-river> yeah, i never knew that
<solidus-river> huh, cool, but confusing
sent-hil has quit [Quit: Connection closed for inactivity]
<shevy> yeah well
<shevy> don't omit stuff!
saarinen has quit [Quit: saarinen]
<shevy> it'll be rather you to get confused than the ruby parser will
saarinen has joined #ruby
saarinen has quit [Client Quit]
<jle`> shevy: ty :)
<shevy> lately I found some weird madness
<shevy> I think it was either foo () vs. foo()
<shevy> or something else
zigomir has quit [Remote host closed the connection]
zipace has joined #ruby
narcan has joined #ruby
chipotle has joined #ruby
chipotle has quit [Client Quit]
hooper has joined #ruby
Geniack has quit [Ping timeout: 268 seconds]
rakm has quit [Quit: Connection closed for inactivity]
<solidus-river> lol
markisonfire has joined #ruby
whatasunnyday has joined #ruby
Geniack has joined #ruby
m0s is now known as m0s^away
Kricir has joined #ruby
selina345 has joined #ruby
mehlah has quit [Quit: Leaving...]
evenix has quit [Remote host closed the connection]
brunops has joined #ruby
zellio has joined #ruby
Musashi1 has joined #ruby
pr00t has joined #ruby
moted has quit [Quit: moted]
newUser1234 has joined #ruby
chipotle has joined #ruby
hfp`away is now known as hfp
rm_ has joined #ruby
chipotle has quit [Client Quit]
lukec has joined #ruby
jarto has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
testcore has quit [Quit: BitchX-1.3-git -- just do it.]
<snath> what's the purpose of a statement like "blah = {}" ?
<jhass> snath: it assigns an empty hash to blah
<zellio> yeah that
<zellio> It's the same as `foo = Hash.new`
<jhass> though preferred
<zellio> ^^^
lkba has joined #ruby
chitopunk has joined #ruby
<shevy> it's not the same
<shevy> {} is faster
<snath> Ah, ran across it in some code. Looks like a Perl programmer wrote it
justinmcp_ has quit [Ping timeout: 246 seconds]
<shevy> nah
<shevy> ruby is also terse
<shevy> but you can keep on using Foo.new
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> after a few hundred times, you'll understand why people use {} instead
<bawNg> I use `foo = {}` in many languages
<shevy> perl has those weird $ all over the place
timonv has joined #ruby
<bawNg> Ruby, CoffeeScript, Lua
<bawNg> Though I use `foo = { }` in lua
niftylettuce_ has quit [Quit: Connection closed for inactivity]
wjlafrance has joined #ruby
nolic has joined #ruby
Martxel has quit [Ping timeout: 240 seconds]
mr_snowf1ake has joined #ruby
<shevy> eww
renier has quit [Quit: Textual IRC Client: www.textualapp.com]
slawrence00 has joined #ruby
vallieres_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<snath> Ok, I was trying to parse it as a block notation
rm_ has quit [Ping timeout: 240 seconds]
<shevy> that can be confusing
<shevy> seeing how ruby uses the same { for different things
<shevy> Hash.new {}
<shevy> {} {}
timonv has quit [Ping timeout: 252 seconds]
Avahey_ has quit [Quit: Connection closed for inactivity]