apeiros changed the topic of #ruby to: Ruby 2.1.3; 2.0.0-p576; 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
<banisterfiend> and you have a local variable that shadows the var you're iterating over
* csmrfx is still trying to figure out what it is "inject({})" is supposed to achieve
<banisterfiend> it'll still work, but it's unnecessarily confusing
wottam has quit [Ping timeout: 255 seconds]
<zenspider> csmrfx: bad code is bad
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
<csmrfx> it's like dwarves turning into questionmarks in DF when confused
<banisterfiend> csmrfx the initial value of teh accumulator
klmlfl has quit []
<csmrfx> ah, silly me, there it is in the docs, "initial"
i_s has quit [Remote host closed the connection]
ghostmoth has quit [Quit: ghostmoth]
jimbach has joined #ruby
_whitelogger has joined #ruby
<zenspider> this code is in github, stackoverflow, various gists... it's all over
Stalkr_ has quit [Quit: Leaving...]
heftig has quit [Ping timeout: 260 seconds]
<zenspider> basically translating to: this company isn't even trying
davasaurous has joined #ruby
klmlfl has joined #ruby
agjacome has quit [Quit: leaving]
bthesorceror has quit [Ping timeout: 260 seconds]
KanKava has quit [Remote host closed the connection]
heftig has joined #ruby
klmlfl has quit [Remote host closed the connection]
<csmrfx> so what the h is the backslash then?
<csmrfx> mmnnasd
<csmrfx> oops, it only locks up my irb or term
arescorpio has joined #ruby
<zenspider> again, bad code is bad
<csmrfx> ah, nevermind, I was reading it to be a method, silly me
mallu has quit [Ping timeout: 246 seconds]
<dhardison> you
<dhardison> you're right
<csmrfx> zzZ
<dhardison> lol
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
jimbach has quit [Ping timeout: 265 seconds]
<eam> here's an idea, why not use the rdoc block as the method name itself. self-documenting code and when the documented interface changes the method changes too
fabrice31 has joined #ruby
<benzrf> >inject
<benzrf> >not foldl
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<zenspider> eam: so my method name should be "##\n# blah calculates the thing and returns the stuff" ?
<eam> >> define_method "# this method does things\n# and other things", Proc.new { puts "the method" }; send :"# this method does things\n# and other things"
<eval-in__> eam => the method ... (https://eval.in/206935)
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
<zenspider> that's a great idea. you should fork ruby
<eam> no need it has wonderful support for this already
choke has quit [Read error: Connection reset by peer]
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
{xenomorph} has quit [Ping timeout: 260 seconds]
SpaceKookie has quit [Ping timeout: 260 seconds]
snath has quit [Ping timeout: 272 seconds]
<dhardison> it
phrozen77 has quit [Ping timeout: 260 seconds]
mary5030 has quit [Remote host closed the connection]
davedev2_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
{xenomorph} has joined #ruby
SpaceKookie has joined #ruby
tkuchiki has quit [Ping timeout: 250 seconds]
fabrice31 has quit [Ping timeout: 272 seconds]
wethu has joined #ruby
justin_pdx has joined #ruby
j2p2 has quit [Ping timeout: 260 seconds]
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
St_Marx has joined #ruby
phrozen77 has joined #ruby
robustus has joined #ruby
wethu has quit [Client Quit]
robustus has quit [Ping timeout: 250 seconds]
crunk_bear has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oleo__ has joined #ruby
oleo is now known as Guest4131
jimbach has joined #ruby
ta_ has quit [Ping timeout: 272 seconds]
bthesorceror has joined #ruby
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
snath has joined #ruby
justin_pdx has quit [Ping timeout: 272 seconds]
thsig has quit [Remote host closed the connection]
heftig has joined #ruby
heftig has quit [Ping timeout: 260 seconds]
Guest4131 has quit [Ping timeout: 240 seconds]
davasaurous has quit [Remote host closed the connection]
_whitelogger has joined #ruby
sepp2k has quit [Ping timeout: 260 seconds]
sepp2k has joined #ruby
ghr has joined #ruby
dhardison has left #ruby [#ruby]
centrx has joined #ruby
_whitelogger has joined #ruby
Azure has quit [Quit: Blue Sky Fish]
zz_karupa is now known as karupa
jnollette has quit [Ping timeout: 250 seconds]
_whitelogger has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
maletor has joined #ruby
_whitelogger has joined #ruby
jasooon has joined #ruby
jbueza has joined #ruby
_whitelogger has joined #ruby
tkuchiki has joined #ruby
i8igmac has quit [Ping timeout: 246 seconds]
jasooon has quit [Ping timeout: 255 seconds]
justinmburrous has quit [Ping timeout: 255 seconds]
SpaceKookie has quit [Ping timeout: 260 seconds]
SpaceKookie has joined #ruby
i8igmac has joined #ruby
heftig has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
arup_r has joined #ruby
aCicloid is now known as cicloid
Cache_Money has joined #ruby
heftig has joined #ruby
troyready has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
sedai has quit [Quit: sedai]
Channel6 has joined #ruby
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TheRubyist has joined #ruby
alem0lars has quit [Quit: AFK..]
<TheRubyist> 2 questions
tkuchiki has quit [Ping timeout: 260 seconds]
<TheRubyist> what should ruby/rails developers wear?
arup_r has quit [Quit: Leaving.]
matchaw_ has joined #ruby
<apeiros> TheRubyist: wear? as in clothes?
Cache_Money has quit [Quit: Cache_Money]
<TheRubyist> yeah
<apeiros> o0
i8igmac has quit [Ping timeout: 255 seconds]
<TheRubyist> nvm that
<apeiros> whatever you please, of course
Takle has joined #ruby
<TheRubyist> could the stagnating popularity of ruby in its early stages
<TheRubyist> be due to the fact
<TheRubyist> thats its shit in windows?
bricker`work has quit [Ping timeout: 260 seconds]
<apeiros> you look like a troll
<zenspider> you're just catching on?
<apeiros> benefit of the doubt
<apeiros> you got ops here, zenspider?
matchaw has quit [Ping timeout: 250 seconds]
xaxisx has joined #ruby
<zenspider> unfortunately, no
heftig has quit [Read error: Connection reset by peer]
<apeiros> :-/
<zenspider> I should prolly ask around and get that fixed
justin_pdx has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sevenseacat has joined #ruby
<TheRubyist> im not a troll :/
<TheRubyist> Im serious
<TheRubyist> Ruby devs say that ruby is SUPER bad on the windows platform
<volty> how do I avoid multiplying of '\', because of chained assignments ?
<zenspider> trolls are always "serious"
<TheRubyist> and since windows is majority of world OS's
<TheRubyist> it stagnated
jhass is now known as jhass|off
<TheRubyist> zen i assure you
<apeiros> actually, windows is no longer a majority
<TheRubyist> im not
afhammad has joined #ruby
<apeiros> and probably wasn't for a long time
<arrubin> Walks like a duck, talks like a duck...
<TheRubyist> oh? which is?
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> android, iOS, linux
klmlfl has joined #ruby
heftig has joined #ruby
<apeiros> probably about that order too
<TheRubyist> im sorry
<TheRubyist> Desktop OSs
<zenspider> volty: what are you referring to?
djbkd has quit [Remote host closed the connection]
eka has joined #ruby
danguita has joined #ruby
eka has quit [Client Quit]
fgo has joined #ruby
Haiiro is now known as Haiiro|Away
Takle has quit [Ping timeout: 246 seconds]
<volty> avoid escaping
TheRubyist has quit [Quit: Page closed]
<volty> "\\a" -> "\\\\a"
justinmburrous has joined #ruby
Aova has quit [Quit: See ya]
aspires has quit []
Aova has joined #ruby
mclosson has joined #ruby
<volty> never mind, i'm going to remove that '\' from the start, i do not need it
phrozen77 has quit [Ping timeout: 260 seconds]
fgo has quit [Read error: Connection reset by peer]
wottam has joined #ruby
aspires has joined #ruby
fgo has joined #ruby
aspires has quit [Client Quit]
phrozen77 has joined #ruby
Avahey has quit [Quit: Connection closed for inactivity]
jhass|off is now known as jhass
aspires has joined #ruby
elektronaut has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
wottam has quit [Ping timeout: 260 seconds]
drPoggs has quit [Ping timeout: 260 seconds]
renderful has joined #ruby
drPoggs has joined #ruby
elektronaut has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
jlast has joined #ruby
jbueza has joined #ruby
<benzrf> >> 'test\''
<eval-in__> benzrf => "test'" (https://eval.in/206952)
<benzrf> ayy
<benzrf> >> 'test"'
<eval-in__> benzrf => "test\"" (https://eval.in/206953)
<benzrf> well in *PYTHON* it'll choose the best quotes when showin the string for less escapin!
bklane has joined #ruby
<ionelmc> centrx: I don't get it. Ruby doesn't have metaclasses right?
renderful has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby
tkuchiki has joined #ruby
samuel02 has quit []
emmesswhy has quit [Quit: This computer has gone to sleep]
aspires has quit []
lampd1 has quit [Ping timeout: 258 seconds]
rshetty has joined #ruby
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emmesswhy has joined #ruby
bklane has quit []
ad_boot has quit [Quit: ad_boot]
rshetty has quit [Remote host closed the connection]
wald0 has quit [Quit: Lost terminal]
iamjarvo has joined #ruby
<ionelmc> centrx: so how can you make more that one class use the same metaclass?
sailias has joined #ruby
enebo has quit [Quit: enebo]
<centrx> ionelmc, go to a swingers bar
<ionelmc> The examples on that article don't explicitly specify the metaclass, but patch it through a normal class
<zenspider> ionelmc: what is a metaclass in your mind?
SpaceKookie has quit [Ping timeout: 260 seconds]
Roa_ has quit [Quit: leaving]
c107 has joined #ruby
tokik has joined #ruby
<ionelmc> Something like in Python
SpaceKookie has joined #ruby
afhammad has quit []
<ionelmc> I'll be honest , I don't know much ruby, but I'm curious if you can do what you can do in Python
KC9YDN has joined #ruby
davasaurous has quit [Remote host closed the connection]
hellangel7 has quit [Remote host closed the connection]
phrozen77 has quit [Ping timeout: 260 seconds]
<zenspider> "something like in python" == nonsense
jeer has quit [Read error: Connection reset by peer]
<ionelmc> Very possible :-)
phrozen77 has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bricker`work has joined #ruby
<centrx> ionelmc, Ruby is generally more expressive than Python, and of course they are both Turing-complete so they can do all the same things fundamentally
aspires has joined #ruby
<volty> haskell is yet more expressive, but pity that you get lost in expressing, in all that expressiveness :)
mary5030 has joined #ruby
arup_r has joined #ruby
ghr has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
alvaro_o has quit [Quit: Ex-Chat]
maletor has joined #ruby
mary5030 has quit [Ping timeout: 265 seconds]
bthesorceror has quit [Read error: No route to host]
jasooon has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
jbueza has joined #ruby
tier has joined #ruby
justinmburrous has quit [Remote host closed the connection]
maestrojed has quit [Quit: Computer has gone to sleep.]
jasooon has quit [Ping timeout: 250 seconds]
bthesorceror has joined #ruby
phutchins has quit [Ping timeout: 265 seconds]
bentanweihao has joined #ruby
heftig has quit [Read error: Connection reset by peer]
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
softaco_s has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 245 seconds]
exile-bot-2 has joined #ruby
heftig has joined #ruby
jordsmi has joined #ruby
drPoggs has quit [Ping timeout: 260 seconds]
drPoggs has joined #ruby
rahult has joined #ruby
boombadaroomba has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
<benzrf> ionelmc: the thing is that most of the metaprogramming you do with metaclasses in python can be accomplished without them in ruby
<benzrf> iirc
<benzrf> ionelmc: however, ruby does not have any special language support for metaclasses
<benzrf> er, *and*
<benzrf> you CAN subclass Class, nothing stops you from doing that
<benzrf> and you can call .new on the subclass
Snerf_ has left #ruby [#ruby]
boombadaroomba has quit [Ping timeout: 240 seconds]
tier has quit [Remote host closed the connection]
volty has quit [Quit: Konversation terminated!]
abuzze_ has joined #ruby
davasaurous has joined #ruby
dx7 has joined #ruby
rshetty has joined #ruby
oinkon has quit [Ping timeout: 258 seconds]
<shevy> ionelmc what does a metaclass do in python?
levisbakalinsky has quit [Read error: Connection reset by peer]
KC9YDN has quit [Quit: "Let a hundred flowers bloom: let a hundred schools of thought contend." - Mao Zedong]
levisbakalinsky has joined #ruby
abuzze has quit [Ping timeout: 265 seconds]
codeFiend has joined #ruby
magic is now known as cuddles
cuddles is now known as Guest73069
Guest73069 is now known as magic
davasaurous has quit [Ping timeout: 240 seconds]
magic is now known as snuggles
papercode has quit [Quit: WeeChat 0.4.3]
snuggles is now known as pretty
papercode has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
levisbakalinsky has quit [Ping timeout: 245 seconds]
<benzrf> shevy: it is a class's class
<benzrf> DUH!
<shevy> eh?
<benzrf> well, what else would it be
<benzrf> ?
x77686d has joined #ruby
SpaceKookie has joined #ruby
justinmburrous has joined #ruby
wottam has joined #ruby
kenndel_ has joined #ruby
arup_r has quit [Quit: Leaving.]
spastorino has joined #ruby
fabrice31 has joined #ruby
goshdarnyou has joined #ruby
emocakes has quit []
<shevy> I don't even know what a class's class would be
<shevy> does that even exist?
<shevy> >> class.class
<eval-in__> shevy => /tmp/execpad-38304ad778ec/source-38304ad778ec:2: syntax error, unexpected '.' ... (https://eval.in/206957)
<shevy> no it does not!
kenndel has quit [Ping timeout: 272 seconds]
<sevenseacat> only because you're calling it wrong
<sevenseacat> >> Class.new.class
<eval-in__> sevenseacat => Class (https://eval.in/206958)
tyll has joined #ruby
<sevenseacat> >> Class.class
<eval-in__> sevenseacat => Class (https://eval.in/206959)
wottam has quit [Ping timeout: 246 seconds]
fabrice31 has quit [Ping timeout: 258 seconds]
msmith_ has joined #ruby
jasooon has joined #ruby
djbkd has quit [Remote host closed the connection]
SilkFox has joined #ruby
emocakes has joined #ruby
tyll_ has quit [Ping timeout: 260 seconds]
yetanotherdave has quit [Ping timeout: 240 seconds]
j2p2 has joined #ruby
<shevy> sevenseacat of Class sure, but not of class
braincra- has joined #ruby
wolves_cs has joined #ruby
<sevenseacat> err
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
braincrash has quit [Ping timeout: 255 seconds]
<sevenseacat> what are you talking about?
aspires has quit []
<shevy> benzrf wrote <benzrf> shevy: it is a class's class
zeroNones has joined #ruby
jnollette has joined #ruby
linojon has quit [Quit: linojon]
ghostmoth has joined #ruby
zeroNones has quit [Client Quit]
KC9YDN has joined #ruby
wallerdev has quit [Quit: wallerdev]
arup_r has joined #ruby
zeroNones has joined #ruby
codeFiend has quit [Quit: codeFiend]
ramfjord has quit [Ping timeout: 260 seconds]
arup_r has quit [Client Quit]
yetanotherdave has joined #ruby
yetanotherdave has quit [Client Quit]
livingstn has quit []
magikfx has quit [Quit: (null)]
freerobby has joined #ruby
Axy has quit [Read error: Connection reset by peer]
davasaurous has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
softaco_s has joined #ruby
jimbach has quit [Quit: Leaving...]
crazydiamond has quit [Ping timeout: 250 seconds]
rshetty has quit [Ping timeout: 255 seconds]
rshetty_ has joined #ruby
ghr has joined #ruby
<benzrf> shevy: yes
<benzrf> >> class Kek; end; Kek.class
<eval-in__> benzrf => Class (https://eval.in/206961)
bluOxigen has joined #ruby
<benzrf> so it's almost always Class
cicloid is now known as aCicloid
justinmburrous has quit [Remote host closed the connection]
softaco_s has quit [Ping timeout: 260 seconds]
radic has joined #ruby
voodoofish1 has joined #ruby
justinmburrous has joined #ruby
voodoofish has quit [Ping timeout: 240 seconds]
cndiv has quit [Ping timeout: 245 seconds]
rahult is now known as rahult_
ghr has quit [Ping timeout: 272 seconds]
radic_ has quit [Ping timeout: 260 seconds]
NoNMaDDeN has joined #ruby
justinmburrous has quit [Ping timeout: 255 seconds]
weemsledeux has joined #ruby
weemsledeux has joined #ruby
pretty is now known as magic
justinmburrous has joined #ruby
mary5030 has joined #ruby
icebourg has joined #ruby
exile-bot-2 has quit [Remote host closed the connection]
hackeron has quit [Ping timeout: 245 seconds]
hackeron has joined #ruby
emocakes__ has joined #ruby
tonybird has joined #ruby
emocakes has quit [Ping timeout: 250 seconds]
tonybird has quit [Max SendQ exceeded]
j2p2 has quit [Ping timeout: 250 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
Eiam has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
rossgeesman has joined #ruby
rossgeesman has quit [Read error: Connection reset by peer]
Akagi201 has quit [Remote host closed the connection]
Akagi201 has joined #ruby
jnollette has quit [Read error: Connection reset by peer]
msmith_ has quit [Remote host closed the connection]
jnollette has joined #ruby
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tanema has quit [Ping timeout: 255 seconds]
jarjar_prime has joined #ruby
jarjar_prime has quit [Client Quit]
skullz has quit [Remote host closed the connection]
fgo has joined #ruby
bbloom has quit [Quit: Textual IRC Client: www.textualapp.com]
fgo has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
wottam has joined #ruby
spicerack has joined #ruby
t_mmyv has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
fgo has joined #ruby
spicerack has quit [Client Quit]
oinkon has joined #ruby
wottam has quit [Ping timeout: 260 seconds]
rshetty_ has quit [Remote host closed the connection]
spicerack has joined #ruby
rockdon_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
braincra- has quit [Quit: bye bye]
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BadQuanta has quit [Ping timeout: 240 seconds]
bricker`work has quit [Quit: leaving]
tylersmi_ has joined #ruby
yfeldblum has joined #ruby
tylersmith has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
aCicloid is now known as cicloid
havenwood has joined #ruby
fgo has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
jnollett_ has joined #ruby
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
SpaceKookie has quit [Ping timeout: 260 seconds]
lukeholder has joined #ruby
jnollette has quit [Ping timeout: 260 seconds]
jbueza has joined #ruby
braincrash has quit [Ping timeout: 272 seconds]
SpaceKookie has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
levisbakalinsky has joined #ruby
BadQuanta has joined #ruby
levisbakalinsky has quit [Read error: Connection reset by peer]
heftig has quit [Ping timeout: 260 seconds]
jasooon has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
levisbakalinsky has joined #ruby
heftig has joined #ruby
melik has quit [Quit: (null)]
kaspergrubbe has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
braincrash has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
raj_ has joined #ruby
ghr has joined #ruby
rahult_ is now known as rahult
<raj_> is there any channel for rails ??
SpaceKookie has joined #ruby
<havenwood> raj_: #rubyonrails
<raj_> thanks havenwood
levisbakalinsky has quit [Ping timeout: 260 seconds]
Spami has quit [Quit: This computer has gone to sleep]
voodoofish1 has quit [Ping timeout: 260 seconds]
{xenomorph} has quit [Ping timeout: 260 seconds]
{xenomorph} has joined #ruby
raj_ is now known as rajallala
steffes has joined #ruby
skolman has joined #ruby
ramfjord has joined #ruby
babykosh has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
wolves_cs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
siwica1 has quit [Ping timeout: 255 seconds]
rajallala has quit [Quit: Leaving]
zeroNones has quit [Quit: Textual IRC Client: www.textualapp.com]
gja has joined #ruby
siwica has joined #ruby
tonybird has joined #ruby
tonybird has quit [Max SendQ exceeded]
tonybird has joined #ruby
tonybird has quit [Max SendQ exceeded]
gja has quit [Ping timeout: 255 seconds]
siwica1 has joined #ruby
siwica has quit [Ping timeout: 240 seconds]
govg_ has quit [Remote host closed the connection]
tonybird has joined #ruby
tonybird has quit [Max SendQ exceeded]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
tonybird has joined #ruby
KnownSyntax has quit []
tonybird has quit [Max SendQ exceeded]
cschneid has quit [Ping timeout: 272 seconds]
tonybird has joined #ruby
tonybird has quit [Max SendQ exceeded]
emmesswhy has quit [Quit: This computer has gone to sleep]
babykosh has quit [Quit: babykosh]
<shevy> hmm if I download a file into a directory
<shevy> and there are several other files
<shevy> what method should I use in a ruby script to sort the entries of said files according to age? .mtime?
fabrice31 has joined #ruby
cschneid has joined #ruby
<shevy> *the entries of said directory
larissa has quit [Quit: Leaving]
siwica has joined #ruby
babykosh has joined #ruby
<havenwood> shevy: you want to know when the file was born or last modified?
siwica1 has quit [Ping timeout: 240 seconds]
<shevy> hmm I guess born
<havenwood> shevy: File.birthtime, File#birthtime in Ruby 2.2
rossgeesman has joined #ruby
<shevy> cool
<shevy> thanks havenwood you walking knowledgebase you
IceDragon has quit [Ping timeout: 265 seconds]
levisbakalinsky has joined #ruby
<havenwood> shevy: it'll be a christmas present i'll be glad to have
IceDragon has joined #ruby
Cache_Money has joined #ruby
<shevy> how do you know these things? are these announced on the mailing list or somewhere?
<sevenseacat> from checking the docs?
fabrice31 has quit [Ping timeout: 272 seconds]
<havenwood> shevy: i read the manual!
siwica has quit [Ping timeout: 260 seconds]
babykosh has quit [Client Quit]
<sevenseacat> this is a novel concept.
gkra has quit [Ping timeout: 245 seconds]
davasaurous has quit [Remote host closed the connection]
jordsmi has quit [Quit: Connection closed for inactivity]
<havenwood> shevy: Check under "Notable Changes since 2.1" here for the tasty bits: https://www.ruby-lang.org/en/news/2014/09/18/ruby-2-2-0-preview1-released/
cfillion has joined #ruby
rossgeesman has quit [Ping timeout: 260 seconds]
mary5030 has quit [Remote host closed the connection]
KnownSyntax has joined #ruby
<shevy> cool
ylluminarious has quit [Quit: Leaving...]
<havenwood> shevy: [1, 2, 3, 4].min(2) #=> [1, 2]
gja has quit [Quit: This computer has gone to sleep]
<shevy> yay!
<havenwood> shevy: :)
gkra has joined #ruby
sailias has quit [Quit: Leaving.]
wottam has joined #ruby
siwica has joined #ruby
<havenwood> shevy: it used to be that `-3.prime?` was true but now it's false
maletor has joined #ruby
luckyruby has quit [Ping timeout: 255 seconds]
SilkFox has quit [Ping timeout: 260 seconds]
techsethi has joined #ruby
x77686d has quit [Quit: x77686d]
mistermocha has joined #ruby
wottam has quit [Ping timeout: 240 seconds]
davasaurous has joined #ruby
rshetty has joined #ruby
<havenwood> shevy: i wonder what the fastest algorithm would be for #prime?: https://github.com/ruby/ruby/pull/736#issuecomment-59411716
Avahey has joined #ruby
Channel6 has quit [Quit: Leaving]
jxf has joined #ruby
<benzrf> bye
<havenwood> benzrf: later
benzrf is now known as benzrf|offline
t_mmyv has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
exile-bot has joined #ruby
<bentanweihao> ohai!
freerobby has quit [Quit: Leaving.]
<jxf> I have two UTC Times, and I'd like to get all the UTC Times that are between them which occur at some interval (e.g. every 15 minutes past the hour). I'm a little stumped about how to do that in a general way. Any suggestions?
siwica has quit [Ping timeout: 260 seconds]
bentanweihao has quit []
Kricir has quit [Remote host closed the connection]
<jxf> er, not every 15 minutes past the hour, but rather every 15 minutes each hour (e.g. :15, :30, :45, :00, etc.)
hmsimha has quit [Ping timeout: 245 seconds]
siwica has joined #ruby
<jxf> so if the times were, e.g. `Nov 1 2014 @ 11:46` and `Nov 1 2014 @ 12:33`, I'd get 11/1 @ 11:46, 11/1 @ 12:00, 11/1 @ 12:15, 11/1 @ 12:30, 11/1 @ 12:33.
Kricir has joined #ruby
exile-bot has quit [Ping timeout: 260 seconds]
bthesorceror has quit [Quit: Lost terminal]
luckyruby has joined #ruby
<havenwood> >> Time.now.to_i.step(by: 60 * 15, to: Time.now.to_i + 5400).map { |n| Time.at n }
<eval-in__> havenwood => [2014-10-17 04:15:42 +0000, 2014-10-17 04:30:42 +0000, 2014-10-17 04:45:42 +0000, 2014-10-17 05:00:42 +0000, 2014-10-17 05:15:42 +0000, 2014-10-17 05:30:42 +0000, 2014-10-17 05:45:42 +0000] (https://eval.in/206972)
siwica1 has joined #ruby
siwica has quit [Ping timeout: 265 seconds]
<havenwood> jxf: the chronic gem is nice for natural language time parsing: https://github.com/mojombo/chronic#readme
<jxf> havenwood: that's almost right, but I want the intermediate times to "line up" on the boundaries (e.g. note that the last two times are 12:30 and then 12:33)
<jxf> havenwood: ah, cool, I'll take a look! thanks for the heads-up
<jxf> I think I almost want some kind of "modulo Time" operation
<jxf> but I'm not sure what that would be called or if it even exists
levisbakalinsky has quit [Quit: Textual IRC Client: www.textualapp.com]
ghostmoth has quit [Quit: ghostmoth]
codeurge has quit [Quit: Textual IRC Client: www.textualapp.com]
coderwill has quit [Quit: leaving]
Kricir has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
Kricir has joined #ruby
havenwood has joined #ruby
benzrf|offline is now known as benzrf
ghr has joined #ruby
Es0teric has joined #ruby
benzrf is now known as benzrf|offline
{xenomorph} has quit [Ping timeout: 260 seconds]
{xenomorph} has joined #ruby
coderwill has joined #ruby
Kricir has quit [Ping timeout: 246 seconds]
ki0 has joined #ruby
Photism has quit [Quit: Leaving]
Kricir has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
ghr has quit [Ping timeout: 258 seconds]
rshetty has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
icebourg has quit []
maestrojed has joined #ruby
ARCADIVS has joined #ruby
rshetty has joined #ruby
Kricir has quit [Remote host closed the connection]
hakunin has quit []
mikeric has joined #ruby
rshetty has quit [Remote host closed the connection]
Kricir has joined #ruby
lukeholder has quit [Ping timeout: 250 seconds]
gja has joined #ruby
KC9YDN has quit [Quit: "Let a hundred flowers bloom: let a hundred schools of thought contend." - Mao Zedong]
tejas has joined #ruby
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
Macaveli has joined #ruby
lukeholder has joined #ruby
justinmburrous has quit [Remote host closed the connection]
lukeholder has quit [Max SendQ exceeded]
Es0teric has quit [Quit: Computer has gone to sleep.]
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
Kricir has quit [Ping timeout: 260 seconds]
lukeholder has joined #ruby
rshetty has joined #ruby
lukeholder has quit [Max SendQ exceeded]
lukeholder has joined #ruby
rossgeesman has joined #ruby
bigmac has joined #ruby
djbkd has joined #ruby
x77686d has joined #ruby
kiki_lamb has quit [Quit: leaving]
rshetty has quit [Remote host closed the connection]
kiki_lamb has joined #ruby
rossgeesman has quit [Ping timeout: 250 seconds]
Kricir has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
Morkel has joined #ruby
wottam has joined #ruby
drPoggs has quit [Ping timeout: 260 seconds]
drPoggs has joined #ruby
rshetty has joined #ruby
Channel6 has joined #ruby
arescorpio has quit [Excess Flood]
x77686d has quit [Quit: x77686d]
babykosh has joined #ruby
jusmyth has joined #ruby
renderful has joined #ruby
wottam has quit [Ping timeout: 272 seconds]
techsethi has quit [Quit: techsethi]
lampd1 has joined #ruby
lukeholder has quit [Quit: Textual IRC Client: www.textualapp.com]
ki0 has quit [Remote host closed the connection]
duncannz has joined #ruby
softaco_s has joined #ruby
koderok has joined #ruby
renderful has quit [Ping timeout: 260 seconds]
KC9YDN has joined #ruby
Spami has joined #ruby
Morkel_ has joined #ruby
Spami has quit [Client Quit]
maletor has quit [Quit: Computer has gone to sleep.]
koderok has quit [Client Quit]
Morkel has quit [Ping timeout: 272 seconds]
Morkel_ is now known as Morkel
levisbakalinsky has joined #ruby
levisbakalinsky has quit [Client Quit]
Spami has joined #ruby
dawkirst has joined #ruby
diegoviola has quit [Read error: Connection reset by peer]
tejas has quit [Ping timeout: 244 seconds]
gja has quit [Ping timeout: 255 seconds]
havenwood has joined #ruby
babykosh has quit [Quit: babykosh]
techsethi has joined #ruby
cajone has left #ruby [#ruby]
lmickh has joined #ruby
NullEntity_ has quit [Ping timeout: 258 seconds]
tlarevo_ has joined #ruby
Guest7370 has quit [Ping timeout: 240 seconds]
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cache_Money has quit [Quit: Cache_Money]
jbueza has joined #ruby
jhass is now known as jhass|off
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
tejas has joined #ruby
jbueza has quit [Client Quit]
lolmaus has joined #ruby
rockdon_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
heftig has quit [Read error: Connection reset by peer]
tvw has joined #ruby
cajone has joined #ruby
lampd1 has quit [Ping timeout: 255 seconds]
rockdon_ has joined #ruby
heftig has joined #ruby
rockdon_ has quit [Client Quit]
Channel6 has quit [Quit: Leaving]
davasaurous has quit [Remote host closed the connection]
Vile` has quit [Remote host closed the connection]
maletor has joined #ruby
ghr has joined #ruby
tejas has quit [Read error: Connection reset by peer]
<shevy> who else here is using KDE konsole
Vile` has joined #ruby
tejas has joined #ruby
justinmburrous has joined #ruby
rockdon_ has joined #ruby
Blizzy has quit [Ping timeout: 272 seconds]
czaks has quit [Ping timeout: 250 seconds]
rockdon_ has quit [Client Quit]
ghr has quit [Ping timeout: 246 seconds]
maletor has quit [Client Quit]
davasaurous has joined #ruby
softaco_s has quit []
oleo__ has quit [Quit: Verlassend]
fabrice31 has joined #ruby
techsethi has quit [Quit: techsethi]
SpaceKookie has quit [Ping timeout: 260 seconds]
codecop has joined #ruby
agent_white has quit [Quit: leaving]
SpaceKookie has joined #ruby
czaks has joined #ruby
havenwood has quit [Remote host closed the connection]
<msx> shevy: o/ me
IceDragon has quit [Quit: Space~~~]
<shevy> yay!
<shevy> I am not alone
fabrice31 has quit [Ping timeout: 255 seconds]
tagrudev has joined #ruby
<msx> shevy: :) I swtiched to it back from urxvt
mxrguspxrt has joined #ruby
<msx> the compromise between features and weight wasn't worth
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
<shevy> hehe
wottam has joined #ruby
phrozen77 has quit [Ping timeout: 260 seconds]
<shevy> kde konsole is just about the only KDE app I use regularly
<shevy> a while ago someone else here pointed out that you can use at least 256 colours on KDE konsole
<shevy> I forgot who it was :(
ki0 has joined #ruby
<msx> not to mention colors look beautiful in konsole (and i'm a heavy terminal user). Regardless of that, while I do not use the full KDE DE - just herbstluftwm, which happens to be the best manual tiling WM of all times :D - I do use most of KDE apps so... you figure it :)
<shevy> lol
<shevy> that name cracked me up
<shevy> herbstluftwm
<msx> "autumm air" in Deutsch
<sevenseacat> i find kde ugly
dawkirst has quit [Remote host closed the connection]
<msx> or more likely "autumm breeze"?
<shevy> yeah
<shevy> sevenseacat aren't you a mac cat?
<msx> shevy: konsole rocks
<sevenseacat> nein
mxrguspxrt has quit [Ping timeout: 246 seconds]
<msx> lightweight, feature packaged, what more could one else? Even tmux runs admirably fast on it
<shevy> msx there was some programmer from vienna a long time ago, he created the "Mailüfterl" ... like "may breeze" or something... breeze in the month May http://en.wikipedia.org/wiki/Mail%C3%BCfterl bei Hans Zemanek in 1956
<msx> sevenseacat: you mean GNOME, Xfce and all those? KDE is just beautiful albeit I agree not as vanilla
<msx> O_O
almostworking has joined #ruby
<sevenseacat> well all i said was kde is ugly, im not much of a fan of the alternatives either
<sevenseacat> i use unity
<shevy> ack
<shevy> you are a wicked cat
koderok has joined #ruby
starkhalo has quit [Ping timeout: 240 seconds]
<msx> lol
<msx> i actually like Unity
* msx steps back...
koderok has quit [Remote host closed the connection]
<sevenseacat> i dont particularly like it, but im used to it
<msx> interesting enough, it's absolutely kbd friendly
elektronaut has quit [Ping timeout: 260 seconds]
dawkirst has joined #ruby
<shevy> you are all weird
phrozen77 has joined #ruby
<shevy> unity is worse than vim
<msx> shevy: i take that as a compliment, thank you <3
<shevy> well at least you don't use it, you only like it
elektronaut has joined #ruby
<shevy> whereas the cat hates it but uses it
<msx> shevy: Emacs FTM! I just stop using Chrome and I'm on Conkeror now. Only annoying thing is it's based on FF ):
ixx has joined #ruby
<shevy> Conkeror?
<shevy> I had a weird bug today on firefox
ixx is now known as Guest71097
speaking1ode has joined #ruby
klmlfl has quit [Remote host closed the connection]
<shevy> I could not get an in-page display of a remote .pdf file, firefox wanted to use an evince plugin
<shevy> so I tried in konqueror and it worked there
drPoggs has quit [Ping timeout: 260 seconds]
<shevy> why firefox insists on using evince eludes me
alem0lars has joined #ruby
<msx> shevy: nice article, and the idea of "Viennese May Breeze" is just beautiful
drPoggs has joined #ruby
{xenomorph} has quit [Ping timeout: 260 seconds]
<shevy> hehe
speakingcode has quit [Ping timeout: 260 seconds]
<shevy> actually he only called it "Mailüfterl" I think ...
<shevy> I guess I have to try out herbstluftwm
<shevy> just for the name alone... which is a better name than awesomewm
<msx> i settled with it after trying various WM, most of them dynamic tiling
{xenomorph} has joined #ruby
<shevy> I don't really know how to use a tiling WM
mattmcclure has quit [Quit: Connection closed for inactivity]
<msx> hlwm - short for herbstluftwm - has this absolutely useful ideas of frames which I believe is way ahead of traditional dynamic tiling WM. I would love to see Notion's 'tabs' idea added
User458764 has joined #ruby
<msx> shevy: time and little patience to learn their ways, i dind't too at first but now i can't get back to traditional desktops
<msx> shevy: do you use tmux?
<shevy> nope
<msx> or GNU Screen? It's basically the same concept
<shevy> tmux also confuses me
<shevy> nope, neither
krz has joined #ruby
<shevy> it completely confuses the heck out of me
shortCircuit__ has joined #ruby
<shevy> it's why I use kde konsole, I simply have tabs open
<msx> oh... may be WM are not for you them :S
<shevy> I am on fluxbox right now
<msx> ah well, minimalist your way :D
<msx> hell, this gem update will fry my laptop xD
gja has quit [Quit: This computer has gone to sleep]
tejas has quit [Quit: This computer has gone to sleep]
timonv_ has joined #ruby
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
toretore has joined #ruby
lukeholder has joined #ruby
bMalum has quit [Quit: bMalum]
jlast has quit [Remote host closed the connection]
lolmaus has quit [Quit: Konversation terminated!]
alem0lars has quit [Quit: Bye bye..]
SpaceKookie has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 258 seconds]
steffes has quit []
djbkd has quit [Quit: My people need me...]
Bira has joined #ruby
SpaceKookie has joined #ruby
spicerack has quit [Quit: Textual IRC Client: www.textualapp.com]
alem0lars has joined #ruby
atmosx has quit [Ping timeout: 264 seconds]
lukeholder has quit [Quit: Textual IRC Client: www.textualapp.com]
Scotteh_ has joined #ruby
nonks has quit [Ping timeout: 260 seconds]
skolman has quit [Remote host closed the connection]
gja has joined #ruby
tejas has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
tejas has joined #ruby
tejas has quit [Changing host]
skolman_ has joined #ruby
Bira has quit [Ping timeout: 255 seconds]
almostworking has quit [Quit: Leaving]
alem0lars has quit [Client Quit]
alem0lars has joined #ruby
<alem0lars> Hi
goodenough has joined #ruby
Scotteh has quit [Ping timeout: 265 seconds]
<alem0lars> System Information: Model: MacBook Pro (15-inch Retina Late-2013) • CPU: Intel Core i7-4750HQ (8 Threads, 4 Cores) @ 2.00 GHz • Memory: 16,00 GB • Uptime: 1 day • Load: 16% • OS: Mac OS X 10.10 ((null)) (Build 14A388a)
ndrei has joined #ruby
<alem0lars> ops
<alem0lars> sorry
elektronaut has quit [Ping timeout: 260 seconds]
skolman_ has quit [Ping timeout: 265 seconds]
rockdon_ has joined #ruby
Avahey has quit [Quit: Connection closed for inactivity]
lukeholder has joined #ruby
tejas has quit [Quit: This computer has gone to sleep]
gja has quit [Quit: This computer has gone to sleep]
lukeholder has quit [Max SendQ exceeded]
Asher has joined #ruby
codeFiend has joined #ruby
lukeholder has joined #ruby
elektronaut has joined #ruby
bal has joined #ruby
emmesswhy has joined #ruby
sinkensabe has joined #ruby
x77686d has joined #ruby
bricker`work has joined #ruby
<msx> alem0lars: nice beast
<alem0lars> msx: ty... wrong irc cmd tho
atmosx has joined #ruby
jusmyth has quit [Read error: Connection reset by peer]
ki0 has quit [Remote host closed the connection]
jusmyth has joined #ruby
<msx> usual stuff... that used to happened a lot to me when i start using the multiwindows feature of WeeChat ;)
gja has joined #ruby
<msx> *happen
adac has joined #ruby
mercwithamouth has joined #ruby
<msx> *started
tejas has joined #ruby
<msx> DAMN
icebourg has joined #ruby
lukehold_ has joined #ruby
lukeholder has quit [Ping timeout: 245 seconds]
ghr has joined #ruby
c107 has quit [Remote host closed the connection]
t_mmyv has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
davasaurous has quit []
oinkon has quit [Quit: Lost terminal]
bentanweihao has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
spicerack has joined #ruby
mikeric has quit []
koderok has joined #ruby
NoNMaDDeN has quit [Ping timeout: 265 seconds]
HelperW has joined #ruby
schaerli has joined #ruby
echevemaster has quit [Ping timeout: 272 seconds]
koderok has quit [Client Quit]
kwd has joined #ruby
bentanweihao has quit []
Xeago has joined #ruby
Xeago_ has joined #ruby
justin_pdx has joined #ruby
echevemaster has joined #ruby
mikeric has joined #ruby
niftylettuce has quit [Quit: Connection closed for inactivity]
ephemerian has joined #ruby
echevemaster has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
rockdon_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has joined #ruby
justin_pdx has quit [Client Quit]
Deejay has joined #ruby
Deejay is now known as Guest11820
Kricir has quit [Ping timeout: 245 seconds]
ixti has joined #ruby
Guest11820 has quit [Client Quit]
lukehold_ has quit [Quit: Textual IRC Client: www.textualapp.com]
jacobat has joined #ruby
nonks has joined #ruby
rahult is now known as rahult_
NoNMaDDeN has joined #ruby
gauke has joined #ruby
NoNMaDDeN has quit [Client Quit]
NullEntity has joined #ruby
rahult_ is now known as rahult
lolmaus has joined #ruby
hanmac1 has joined #ruby
drager has quit [Ping timeout: 258 seconds]
TejasDinkar has joined #ruby
jheg has joined #ruby
tejas has quit [Ping timeout: 245 seconds]
bulters has joined #ruby
tejas has joined #ruby
gja has quit [Ping timeout: 272 seconds]
mikeric has quit []
SpaceKookie has quit [Ping timeout: 260 seconds]
Xeago_ has quit [Remote host closed the connection]
AFKGeek has joined #ruby
jlast has joined #ruby
jimmyy has quit []
SpaceKookie has joined #ruby
drager has joined #ruby
jheg has quit [Quit: jheg]
towski has quit [Quit: goodbye friends I am gone]
jheg has joined #ruby
jheg has quit [Client Quit]
dawkirst has quit [Remote host closed the connection]
Xeago has joined #ruby
EasyCo has quit [Quit: Connection closed for inactivity]
orangerobot has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
<orangerobot> hi there. I've developed a gem that uses rspec and other stuff for testing. Is there a way to force ruby to download the development dependencies to the user's machine as well when running 'gem install <mygem>' ?
tejas has quit [Quit: Leaving]
TejasDinkar has quit [Quit: Leaving]
<orangerobot> in other words, I would like to know whether there's a command that will download a gem, its dependencies (this is already done by default) but also its development dependencies
jlast has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: zzz]
rahult is now known as rahult_
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
bricker`work has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
qba73 has joined #ruby
<hanmac1> orangerobot: when you do "gem install" add "--development" too, that will download the development stuff
klaut has joined #ruby
<hanmac1> shevy: look, i am there twice ;P
<orangerobot> hanmac1: ok i will test it out now.
<orangerobot> hanmac1: so if i've added dev deps to my gem (via spec.add_development_dependency in my gemspec) then they should be should be downloaded as well, right
<hanmac1> yes
Alina-malina has quit [Ping timeout: 272 seconds]
Alina-malina has joined #ruby
rahult_ is now known as rahult
kwd has quit [Quit: Leaving.]
rahult is now known as rahult_
mercwithamouth has quit [Quit: Lost terminal]
<orangerobot> ok thank you hanmac1
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dumdedum has joined #ruby
charliesome has joined #ruby
kwd has joined #ruby
<hanmac1> hm i think i should add rspec testing stuff later to my gems too
yfeldblum has joined #ruby
bbloom has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yokel has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
orangerobot has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
RealMarc is now known as Marc
ta has joined #ruby
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
Marc is now known as Guest53847
Alina-malina has quit [Ping timeout: 240 seconds]
anaeem1 has joined #ruby
Xeago has joined #ruby
rippa has joined #ruby
sk87 has joined #ruby
mityaz has joined #ruby
Alina-malina has joined #ruby
sigurding has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sigurding has quit [Client Quit]
nonks has quit [Ping timeout: 240 seconds]
govg has joined #ruby
HelperW has quit [Quit: (null)]
HelperW has joined #ruby
HelperW has quit [Excess Flood]
kaspergrubbe has joined #ruby
rshetty has quit [Remote host closed the connection]
bricker`work has joined #ruby
Scotteh_ has quit [Quit: Later, folks]
eka has joined #ruby
livathinos has joined #ruby
goodenough has quit [Remote host closed the connection]
grzywacz has joined #ruby
Soda has joined #ruby
HelperW has joined #ruby
goodenough has joined #ruby
alex88 has joined #ruby
bMalum has joined #ruby
ki0 has joined #ruby
ki0 has quit [Remote host closed the connection]
ki0 has joined #ruby
fantazo has quit [Ping timeout: 240 seconds]
ki0_ has joined #ruby
rbrs has joined #ruby
bbloom has quit [Ping timeout: 265 seconds]
terlar has joined #ruby
ki0 has quit [Ping timeout: 265 seconds]
<teotwaki> Hi, I'm using rspec to run some behaviour tests against my API based on Grape. I use Rack::Test::Methods, which works fine, however, I'm running into some performance issues: If I run the suite on my models (which actually hits the DB), ~40 tests will execute in roughly 0.14 seconds. If I run the API suite, ~30 tests run in 30 seconds. The first 10 or so tests are fast, things go very much downhill after those.
<teotwaki> How would I go about analysing/understanding this issue?
bbloom has joined #ruby
justinmburrous has quit []
<hanmac1> teotwaki: hm you might try to ask the question again at #rspec where you might get more help (but say that you asked in this channel before)
nircUser has joined #ruby
rdark has joined #ruby
rshetty has joined #ruby
HewloThere has joined #ruby
<HewloThere> Hey guys! Would it be best to make this in Ruby or another language? What I'd like to do is make a website with a few, limited people, logins, with the ability for them to upload images and have albums, as well as for selected albums, have passwords?
dawkirst has joined #ruby
<teotwaki> hanmac1: sure, that works.
<teotwaki> hanmac1: ta
<shevy> HewloThere I guess you want ruby on rails -> #rubyonrails
<HewloThere> I thought Ruby was also a web language?
<shevy> HewloThere in general it depends on what other language you want to use. php? :)
<HewloThere> Sorry though.
<shevy> ruby is general purpose
<HewloThere> Oh...
<hanmac1> HewloThere: you can use Ruby for nearly anything
<shevy> you can use ruby in .cgi scripts too, like perl
<shevy> then there is sinatra... rack... and so forth
<hanmac1> rails is only one of possible webframeworks in ruby
<HewloThere> I see... What language would you suggest? (Presuming you need to learn it)
<shevy> ruby ;)
<HewloThere> Can Ruby be used with websites?
<shevy> ruby on rails uses ruby
<hanmac1> with the right libs/gems yes
<HewloThere> I see... So with ROR?
<shevy> yeah
tylersmi_ has quit [Remote host closed the connection]
<HewloThere> =D Thx. =)
tylersmith has joined #ruby
<HewloThere> Can Ruby/ROR be used with extensive CSS, div's, etc?
dawkirst has quit [Ping timeout: 245 seconds]
ramfjord has quit [Ping timeout: 250 seconds]
<teotwaki> HewloThere: what webframework wouldn't be able to do so?
<HewloThere> I've got no idea.
psy has quit [Remote host closed the connection]
<shevy> HewloThere I think your question makes no sense
<HewloThere> < teotwaki > Would you suggest someone who knows nothing about Ruby to learn it on codecademy or somewhere else...?
<shevy> when you basically generate html, you have the instructions towards .css files, or embed them directly
<bulters> HewloThere: It all comes down to string concatenation, so you can basically concatenate the hell out of any div you want, css all the things and forget anything "frameworky"
<HewloThere> I was having a mind blank.
<shevy> and the moment you generate html, you get ALL of the html features
lw has quit [Read error: Connection reset by peer]
rbrs has quit [Remote host closed the connection]
<shevy> which will include CSS normally just as well. And you can then apply all CSS rules and styling towards the tags + ids
<hanmac1> one day i will make a website with C just because i can ;P
lw has joined #ruby
kwd has quit [Read error: Connection reset by peer]
<shevy> there is usually that http meta tag or whatever was the name that specifies what reply the webserver shall give to the visitor
lw has quit [Max SendQ exceeded]
kwd has joined #ruby
<HewloThere> Mmkay. Thx. =)
<HewloThere> Getting back to my other question, would you suggest someone who knows nothing about Ruby to learn it on codecademy or somewhere else...?
jottr has quit [Ping timeout: 240 seconds]
<shevy> somewhere else
lw has joined #ruby
<shevy> do you use linux
<HewloThere> Such as?
<shevy> the commandline
tylersmith has quit [Ping timeout: 255 seconds]
<shevy> :)
<HewloThere> My PC isn't Linux, but I've got a VPS/
<HewloThere> . *
ki0 has joined #ruby
<shevy> awww :(
<HewloThere> On CentOS.
<HewloThere> =P
dawkirst has joined #ruby
<HewloThere> Why?
<shevy> you need to put your brain into working + thinking mode
<shevy> and that means you have to write code
<HewloThere> Mmm...
<bulters> shevy: ouch! It's not even mid-day here!
<HewloThere> shevy: Where did you learn Ruby?
<shevy> bulters well it won't work, he is using windows :(
bMalum has quit [Ping timeout: 272 seconds]
<shevy> HewloThere well that is not good to compare, I learned perl before
zarubin has quit [Quit: Leaving.]
<HewloThere> Are they similar?
<shevy> the philosophy is
<shevy> the syntax not so much
<HewloThere> Right...
<shevy> but if you reaaaaally start from zero
<shevy> use php
<shevy> you'll switch to a better language lateron anyway
<shevy> I went perl->php->ruby
<HewloThere> I see... Is PHP and Ruby similar?
<shevy> nah
<HewloThere> Oh.
<HewloThere> Time to start PHP!
<shevy> ruby has a conceptual design, PHP is a melting bot of whoever is able to throw in code
<HewloThere> Lol.
<shevy> melting *pot
livathin_ has joined #ruby
ki0_ has quit [Ping timeout: 265 seconds]
subraminion has joined #ruby
livathin_ has quit [Remote host closed the connection]
<hanmac1> HewloThere: for CentOS i just can say that you totally need to update your software like ruby or php because the centos stuff is totally outdated
<HewloThere> CentOS 7?
jpierre03 has joined #ruby
<hanmac1> hm ok that night to be newer ... so it might be ok for once
mikecmpbll has joined #ruby
<HewloThere> =P I installed PHP about half hour ago.
<HewloThere> I don't think there's been an update since then.
Takle has joined #ruby
<gregf_> shevy: how would you reverse a number in perl :p
alem0lars has quit [Quit: AFK..]
<gregf_> *without googling*
<hanmac1> gregf_: you mean like 23 to 32 ?
livathinos has quit [Ping timeout: 244 seconds]
<gregf_> heh, i was expecting shevy to answer, since he's worked on it :)
Haiiro|Away is now known as Haiiro
jlast has joined #ruby
<shevy> gregf_ I last touched perl code like 10 years ago or so
<gregf_> ah - ok. then nevrmind ;)
<shevy> in ruby the answer is .reverse
agent_white has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
<shevy> >> 123.to_s.reverse.to_i
<eval-in__> shevy => 321 (https://eval.in/207024)
<crome> you can reverse a string, not a number
<agent_white> Ello everyone
<shevy> hey agent_white
lkba has joined #ruby
* crome waves a cat at shevy
<shevy> agent_white HewloThere is undecided which language he should learn
<shevy> crome cat abuser!
<crome> nah, they like it
<agent_white> HewloThere: Ruby is like silly putty. Who doesn't like playing with silly-putty?!
<HewloThere> I have got no idea.
<crome> I'm always surprised how much I don't like going to work after drinking
gja has joined #ruby
gja has joined #ruby
<HewloThere> Is JS any good to learn?
jbueza has joined #ruby
roolo has joined #ruby
maasha has joined #ruby
robbyoconnor has joined #ruby
<crome> that's a pretty silly question
<HewloThere> Okay, let me re word that. Is JS any good to learn to make things look pretty?
<crome> if you have to do something that is best done in JS, by all means, learn it
<agent_white> HewloThere: Every language is good to learn. Majority are free to try. Why not try them instead of asking?
<HewloThere> I guess.
<crome> HewloThere: define pretty
jlast has quit [Ping timeout: 260 seconds]
<agent_white> Until then you're just picking from the pool of opinions. The fellows here like Ruby. And you are here. How bout you try Ruby?
<crome> do you mean it is useful to learn JS if you want to make kickass webapps?
coderhs has joined #ruby
<maasha> Morn
tlarevo_ has quit [Ping timeout: 265 seconds]
<gregf_> HewloThere: JQuery(rather than JS) does'nt make things pretty. its the CSS with the html and images :/
tlarevo has joined #ruby
<gregf_> JS does the clever bit tho' :/
* hanmac1 likes websites that does "work" even with disabled JS
<maasha> I would like to write some HTML pages using HAML in a non-Rails app - basically using HTML instead of ERB. Search the docs and google seems to only turn up Rails this and Rails that. So what is the HAML equivalent of html = ERB.new(template) ?
<crome> hanmac1: no drag and drop? :(
<HewloThere> gregf_ this is a pretty website: No, it's useful to learn JS to make things like this:
<HewloThere> I mean ghost.org
<HewloThere> KIK!
<HewloThere> LOL! *
<hanmac1> crome: if javascript is disabled then its nice if the website does find an alternate way to work
goshdarnyou has quit [Quit: Connection closed for inactivity]
nonks has joined #ruby
<agent_white> HewloThere: So have you started your ruby program yet? :)
einarj has joined #ruby
<HewloThere> I've gotta learn JS first. Then it's time for Ruby.
<HewloThere> I need to make pretty things in JS.
<maasha> crome: ah, excellent. Google-foo++ to you :o)
jacobat has quit [Ping timeout: 265 seconds]
<crome> maasha: just to help you in the future: the keywords I used for finding stuff about using haml without rails is: "haml without rails"
<crome> using search engines should be taught in elementary school
elaptics`away is now known as elaptics
WormDrink has joined #ruby
psy has joined #ruby
<maasha> crome: there was no internet back then :o(
<crome> well, they still don't teach it
shredding has joined #ruby
<maasha> I remember when alta-vista was hot.
rshetty has quit [Remote host closed the connection]
<gregf_> haha, what goes around comes around ;)
<crome> metagopher was the thing
bricker`work has quit [Ping timeout: 240 seconds]
nonks has quit [Ping timeout: 260 seconds]
<maasha> crome: yeah, gopher rings a bell too
gja has quit [Quit: This computer has gone to sleep]
jacobat has joined #ruby
aspiers has quit [Quit: WeeChat 0.4.3]
_cake has quit [Read error: Connection reset by peer]
<crome> I never got to use usenet though
<shevy> you simply were not l33t enough
goodenough has quit [Remote host closed the connection]
<crome> alright, werk
<crome> bbl
<hanmac1> usenet still exist? oO
<hanmac1> i thought it already died +5 years ago
ghr has joined #ruby
AFKGeek has quit [Ping timeout: 240 seconds]
<maasha> hanmac1: they keep it around because of Godwin's Law
rshetty has joined #ruby
francisfish has joined #ruby
AFKGeek has joined #ruby
timonv_ has quit [Remote host closed the connection]
<maasha> and I read somewhere that the Netscape browser will be revived
<msx> guys, could anyone explain me in a few words why it takes so much time to parse gems' documentation? a gem update has been running for more than an hour and still going
<shevy> msx sounds more like a bug
timonv_ has joined #ruby
jacobat has quit [Ping timeout: 272 seconds]
<msx> shevy: :P
<msx> ty
<msx> Ctrl+C
<shevy> what gem was it?
<msx> to the rescue. Second time I hit this bug
<shevy> It's been a while since I hit that
<shevy> I usually install only one gem though
<shevy> and put it into my local storage
kwd has quit [Read error: Connection reset by peer]
<shevy> gem install --ignore-dependencies -no-ri -no-rdoc
kwd_ has joined #ruby
<shevy> fast way to install local stuff!
<msx> libyajl2-1.1.0.gem
Xeago_ has joined #ruby
<msx> shevy: ^ ^
<canton7> not so keen on the --ignore-dependencies :P
<msx> shevy: i'm a total n00b with ruby, I just installed my gems via 'gem install ...'
<shevy> but that's where it takes the time
<msx> canton7: hello!
<shevy> msx what is your gem version?
<shevy> I am at 2.4.1
<msx> latest
<msx> let me check
<msx> shevy: yeap, same
<msx> another gem update and now everything worked nicely
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv_ has quit [Ping timeout: 260 seconds]
techsethi has joined #ruby
<teotwaki> Ok, so after doing a bit of refcounting, I can confirm that my issue comes from uncollectable references (see https://github.com/intridea/grape/issues/665#issuecomment-59482615 for details). I guess I'll keep digging to try and find a solution.
Xeago has quit [Ping timeout: 260 seconds]
<hanmac1> msx did the output say "building native extensions, that will take a while" or something similar?
mattjbarlow has quit [Ping timeout: 272 seconds]
jusmyth has left #ruby [#ruby]
<HewloThere> Is anyone here any good with JS?
<msx> hanmac1: hello, double-checked and not, it doesn't says so anywhere
andrewh has quit [Ping timeout: 255 seconds]
ruisantos has quit [Ping timeout: 260 seconds]
olivier_bK has joined #ruby
<wasamasa> HewloThere: this is #ruby, how can anyone here be any good with JS?
<HewloThere> I know it's #ruby. No one on JS is helping me at all. No one even read it after waiting like 10 minutes and posting it several times.
<wasamasa> wait longer
<HewloThere> =/
<wasamasa> also, asking for help doesn't guarantee getting any
<sevenseacat> spamming wont get you more help
<agent_white> Or learn ruby instead!!! :D
<wasamasa> this is just a volunteer thing
Soda has quit [Remote host closed the connection]
<wasamasa> if nobody bothers responding, chances are nobody capable of answering has seen it
<teotwaki> "I tried to buy a Renault in a Renault shop, but there were no salesmen available, so I came into this Ford shop. Why won't you sell me a Renault?!"
<wasamasa> teotwaki: rofl
<HewloThere> I just wanted to know how to do this... It's the simplest thing ever. http://www.codecademy.com/courses/getting-started-v2/3/2?curriculum_id=506324b3a7dffd00020bf661#
<wasamasa> teotwaki: I'd watch such a movie
<sevenseacat> pretty much
<HewloThere> I'm going to learn JS, then Ruby, then Python.
<wasamasa> sounds pretty silly
hakunin has joined #ruby
<teotwaki> just learn to program, the language doesn't really matter.
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<wasamasa> ruby, then python?
<HewloThere> Yea... Should I do other way round?
<hanmac1> hm i dont know why you will need python when you can ruby
<wasamasa> ^
gbchaosmaster has joined #ruby
<wasamasa> these two cover lots of common ground
<wasamasa> the philosophy behind them is different though
<HewloThere> In every language, there's people who love them and hate them.
<wasamasa> you forgot the silly people
<hanmac1> they are like twins ... ruby is the more evil one ;P
<HewloThere> Lots of people say PHP is amazing, lots of other people say it's crap. Same with everything.
<HewloThere> Does Ruby require any other languages (other than HTML and CSS)?
<wasamasa> HewloThere: no, actually there are lots of apologetic php users
<teotwaki> that's because those who say it's amazing are zealots
<HewloThere> =P
jrdnull has quit [Quit: ZNC - http://znc.in]
mageru has joined #ruby
<HewloThere> I've seen that...
<teotwaki> The number of (mainly PHP) devs in my company who can look at that article and say "he's nit-picking"
<sevenseacat> ruby doesnt require html and css. what are you talking about?
jrdnull has joined #ruby
<wasamasa> sevenseacat: things he doesn't know about
<HewloThere> For web...
<sevenseacat> apparently so
gremax has quit [Ping timeout: 250 seconds]
<wasamasa> HewloThere: web development is a very broad field
<HewloThere> I'm aware of that.
<hanmac1> HewloThere: depends on the implmentation ruby does use C or Java but you dont need to know C or java to do ruby
<wasamasa> HewloThere: if you're just starting out, I'd suggest writing simple command line applications instead
mattjbarlow has joined #ruby
<HewloThere> =/
<msx> HewloThere: just try by yourself. I always knew I absolutely like Ruby but started learning Python because a lot of system tools are written with it. Now I have to learn Chef and Puppet and have little time for anything else I'm forced to come back to my roots, couldn't be happier
<wasamasa> patience would help, too
NullEntity_ has joined #ruby
danguita has quit [Ping timeout: 264 seconds]
<HewloThere> Mmm...
<teotwaki> I love ruby, but I have to say I much prefer Twisted over EventMachine when it comes to event-driven programming.
gremax has joined #ruby
<HewloThere> I just don't know what to learn. Everyone says something different.
<wasamasa> choose one and stick with it
kevinfagan has quit [Ping timeout: 240 seconds]
<msx> ^ ^
<wasamasa> do it long enough to actually get a feel what it's god and not so good for
<HewloThere> There's advantages and disadvantages of each. I'd prefer to know USEFUL ones, not crap ones.
autonomousdev has joined #ruby
Xeago has joined #ruby
<wasamasa> maybe learn another language to expand your horizon
<wasamasa> after you've done this with like, three completely different languages, learning new ones as you need them becomes easier
<teotwaki> learn one language a year
<HewloThere> I guess.
Xeago_ has quit [Read error: Connection reset by peer]
tonini has quit [Ping timeout: 244 seconds]
<teotwaki> HewloThere: whatever you do, don't assume you're good.
<sevenseacat> this is why i like having a formal education, to get the basics down and make picking up new stuff a lot easier
Xeago_ has joined #ruby
<HewloThere> I'm not assuming I'm good.
<wasamasa> and if you plan to do that to become a paid software developer, you'll need to learn languages, frameworks, working in a team, ...
<wasamasa> constantly
NullEntity has quit [Ping timeout: 255 seconds]
<sevenseacat> yep
ki0 has quit [Remote host closed the connection]
<teotwaki> HewloThere: you suck at development. Your code will be absolute shite. Ask people for input, learn how to explain the architecture you're imagining.
<wasamasa> I used to be a python fanboy and could write it well enough to solve pretty much any problem
danguita has joined #ruby
<hanmac1> i learned Haxe recently for a new job ... its also a confusing language
<wasamasa> but since I've started interning at my current company, I picked up ruby
<HewloThere> I'm only 14. I'd like to get a pretty decent knowledge of web languages by the time I finish college (~3.5 years).
<wasamasa> that made me cut down on fanboying :P
<teotwaki> HewloThere: stop with the focus on web
<wasamasa> HewloThere: there is no such thing as a "web language"
<teotwaki> HewloThere: web developers are a dime a dozen
<wasamasa> HewloThere: you use what works out for you
<HewloThere> ...
<apeiros> wasamasa: I think JS and PHP qualify
<teotwaki> apeiros: really? Node.js doesn't seem restricted to the web
<wasamasa> HewloThere: if every browser you target runs JS client-side and you need to do client-side things, guess what, you learn JS
<apeiros> since, yes, you can do other stuff with JS and PHP, but realistically, 99%+ of JS/PHP code is web
<apeiros> teotwaki: and how much non-web node.js have you seen? :)
<agent_white> I learned ruby to write tests for my devs when I was a network tech. Then I left and took ruby with me :D
<teotwaki> apeiros: I disagree, we have 30k SLOC of Node in the backend, barely 10k on the client.
<wasamasa> HewloThere: but for the backend any language does that has http bindings
<msx> agent_white: yeah but that's changing fast
kevinfagan has joined #ruby
<HewloThere> I'd like to have good knowledge of HTML and CSS (already know), JS, Ruby, PHP, Python, Node.js, jQuery and probably a few others.
<apeiros> teotwaki: back-end for what? let me guess - web
<wasamasa> HewloThere: and pretty much everything beats the php/jsp/asp/... crap
<HewloThere> Mmm...
ta has quit [Remote host closed the connection]
<teotwaki> apeiros: nope, VoIP event processing.
<sevenseacat> HewloThere: yeah good luck with that
<gbchaosmaster> HewloThere: If you want to get into web development, learn JS next.
<teotwaki> apeiros: it's a backend to our SBCs.
<apeiros> teotwaki: ok then. so 30k SLOC vs. the billions of existing.
<gbchaosmaster> You're gonna wanna know all of the client-side shit.
<HewloThere> Before or after Ruby...?
ta has joined #ruby
<apeiros> you're pretty much the exception in that case.
<sevenseacat> you're going to need more than that for web dev, you're going to want SQL and everything that entails as well
<HewloThere> Huh?
<teotwaki> apeiros: I know, I'm special :)
<agent_white> 30k SLOC... I have trouble poking through stuff I wrote ~400.
Xeago has quit [Ping timeout: 245 seconds]
<agent_white> o_o
<wasamasa> agent_white: write better :P
<teotwaki> agent_white: the C++ part is 350k SLOC
<agent_white> ;D
<gbchaosmaster> You would use Ruby for server-side code. The languages serve entirely different purposes.
<agent_white> Lord.
<apeiros> agent_white: proper segregation of concerns helps a lot
<gbchaosmaster> Not that you can't run server-side JS.
<apeiros> agent_white: lego code ;-)
<teotwaki> agent_white: the Python/Twisted part is 50k
Haiiro is now known as Haiiro|Away
Guest45586 has joined #ruby
<gbchaosmaster> Don't even bother learning PHP, the less people that know PHP the quicker it'll die.
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<wasamasa> gbchaosmaster: after facebook dies maybe
<teotwaki> actually, look at PHP after you've looked at a few languages that are coherent
Haiiro|Away is now known as Haiiro
kaspergrubbe has quit [Remote host closed the connection]
tonini has joined #ruby
<teotwaki> if you start with PHP, it'll take a lot of effort to excusing any mistake a language makes
Aaaal has joined #ruby
<teotwaki> s/to/to stop/
top4o has joined #ruby
<gbchaosmaster> I thought PHP was really cool when I first learned it and started to play around with it as a preprocessor
<gbchaosmaster> Then I saw what happened as soon as things got even a little bit big.
krz has quit [Ping timeout: 244 seconds]
anaeem1 has quit [Quit: Leaving...]
anaeem1_ has joined #ruby
<teotwaki> The horror with PHP is how punishing it is to use for the dev
* wasamasa suspect ##js ignored HewloThere because explaining him what went wrong would solve the exercise immediately
ki0 has joined #ruby
startupality has joined #ruby
lkba has quit [Ping timeout: 255 seconds]
<HewloThere> wasamasa, what?
jnollett_ has quit [Ping timeout: 272 seconds]
<teotwaki> And as if hit by Stockholm Syndrome, the devs keep asking for more and even protecting/defending their torturer
<wasamasa> HewloThere: yes, that codecademy exercise
<HewloThere> =P
<gbchaosmaster> Stockholm Syndrome is all too common in the programming world.
<hanmac1> hm my biggest stuff i have is 18kLOC ...
<gbchaosmaster> *cough*Java*coughcoughvomit*
<wasamasa> HewloThere: if you can not figure out what's missing there, there's a lot more basic things to worry about than what you should learn to become a web developer
jacobat has joined #ruby
livathinos has joined #ruby
<teotwaki> then again, he's only 14, he has time
<HewloThere> I know. I'm just dumb.
<gbchaosmaster> wasamasa: Oh god now I wanna see the problem
anaeem1_ has quit [Remote host closed the connection]
<teotwaki> but yeah, you won't be the next Zuckerberg, if that's why you were getting into development.
jnollette has joined #ruby
noop has joined #ruby
<wasamasa> teotwaki: what, nonsense!
<apeiros> teotwaki: 14?!??? he should already have created his own language, written his own DB and created a new webframework!!!!!!1!
<apeiros> /jk
<wasamasa> teotwaki: every one in here is a potential billionaire!
anaeem1_ has joined #ruby
<agent_white> HewloThere: No! You just needa code first, ask later.
rpag has quit [Ping timeout: 244 seconds]
mclosson has quit [Ping timeout: 246 seconds]
<wasamasa> apeiros: these days I wouldn't be surprised to find such a news in my atom feed
rpag has joined #ruby
<sevenseacat> oh man, i just clicked to actually look at the question and code sample
jnollett_ has joined #ruby
gja has joined #ruby
sevenseacat has quit [Remote host closed the connection]
<wasamasa> oh noes, what did I do
jnollette has quit [Ping timeout: 240 seconds]
grzywacz has quit [Quit: :wq]
jnollett_ has quit [Read error: Connection reset by peer]
jnollette has joined #ruby
Mohan has quit [Ping timeout: 272 seconds]
sk87 has joined #ruby
jnollett_ has joined #ruby
Mohan has joined #ruby
Mohan is now known as Guest67442
startupality has quit [Quit: startupality]
kaspergrubbe has joined #ruby
testestestest has joined #ruby
jnollette has quit [Ping timeout: 272 seconds]
brendenb has quit [Ping timeout: 272 seconds]
fgo has joined #ruby
testestestest has quit [Client Quit]
brendenb has joined #ruby
pontiki has joined #ruby
tlarevo_ has joined #ruby
tlarevo has quit [Read error: Connection reset by peer]
poguez has quit [Quit: Connection closed for inactivity]
<HewloThere> Hey guys, should this have "nil" at the bottom or did I forget something? http://i.imgur.com/uNsNXRq.png
crdpink has quit [Ping timeout: 272 seconds]
alem0lars has joined #ruby
alem0lars has quit [Client Quit]
jlast has joined #ruby
<csmrfx> looks fine
skaflem has joined #ruby
<HewloThere> Oh.
Jackneill has joined #ruby
<HewloThere> Is it possible to put .length and .downcase for the same string?
<csmrfx> dont sweat the small stuff
crdpink has joined #ruby
<csmrfx> ueah
<HewloThere> =P
<HewloThere> How would you do that?
<csmrfx> you can chain in ruby
<HewloThere> I see...
<gregf_> length would give you a number and case does not matter :/
<csmrfx> if you look under the hood a little
<csmrfx> you will realize each expression calls a method
crdpink has quit [Read error: Connection reset by peer]
<csmrfx> and those methods return a value
skaflem has quit [Client Quit]
<csmrfx> which the next one in chain picks up
crdpink has joined #ruby
<HewloThere> Mmm...
<csmrfx> try it in irb
<csmrfx> first each as standalone
<csmrfx> then chain them
<HewloThere> I'll just follow this tutorial for a bit longer... =P
rbrs has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
<csmrfx> ok it probably has the same jive
<HewloThere> When making a (I think) variable (e.g. name) do you have to write it as "name = myname" or can you do "name=myname"?
<agent_white> Try it and see?
<hanmac1> HewloThere: hmmm downcase/upcase does not change the length of a string ...
<HewloThere> hanmac1, I'm aware of that. I was just wondering how to do multiple for 1 string...
jnollett_ has quit [Read error: Connection reset by peer]
jnollette has joined #ruby
SpaceKookie has joined #ruby
jlast has quit [Ping timeout: 272 seconds]
doev has joined #ruby
<HewloThere> To have Ruby on a website, do you need to install anythign?
<HewloThere> anything *
tlarevo_ has quit [Ping timeout: 250 seconds]
fgo has quit [Remote host closed the connection]
jottr has joined #ruby
<hanmac1> HewloThere: for "something <Operator> other" you need to look at "a - 1" and "a-1" vs "a -1" ... the last one is parsed as "a(-1)" ... so you need a bit careful when using spaces with operators ...
charliesome has quit [Quit: zzz]
<HewloThere> Mmkay. Thanks.
bayed has joined #ruby
<gizmore> HewloThere: There are multiple options to let ruby talk http
<HewloThere> Such as?
<csmrfx> I think you need more practice/homework on as what "ruby on a website" would mean, technically
cicloid is now known as aCicloid
w1xz has joined #ruby
<HewloThere> As in, having a web page built using Ruby on a web server.
govg has quit [Quit: leaving]
<csmrfx> ok, a ruby web application
<HewloThere> What would I need to install for my server to display it?
<csmrfx> consider it as a app server + web server (+possibly caching proxy)
Soda has joined #ruby
<HewloThere> Yea.
<csmrfx> so you need at least web server and ruby
jusmyth has joined #ruby
<HewloThere> I've got a web server.
<HewloThere> What would I need to install though?
<gizmore> >> s = TCPSocket.new(80);
<eval-in__> gizmore => uninitialized constant TCPSocket (NameError) ... (https://eval.in/207039)
<csmrfx> rack, thin
aCicloid is now known as cicloid
<gizmore> passanger?
Haiiro is now known as Haiiro|Away
krz has joined #ruby
<wasamasa> HewloThere: `python3 -m http.server`
<wasamasa> HewloThere: visit the ip address and bam, you got a file listing
<wasamasa> HewloThere: that's all it takes
<gizmore> `nc -L 80 < yourpage.html`
crdpink has quit [Ping timeout: 260 seconds]
<wasamasa> ^ more unixy
wottam has quit [Ping timeout: 258 seconds]
<HewloThere> How to quit the Python command line?
<tobiasvl> ^d
<tobiasvl> why are we talking about python in #ruby
Lightsword has joined #ruby
<tobiasvl> HewloThere: ^d
kiely has quit [Quit: cognizance]
<wasamasa> tobiasvl: because I can never remember the ruby equivalent oneliner
<tobiasvl> hehe
<wasamasa> it barely fits under the twitter maximum length
<HewloThere> Is there any packages I need? I've got Apache, PHP, is there anything else I need?
<wasamasa> ...
<tobiasvl> HewloThere: need for what?
<HewloThere> To use Ruby on a web page...
<tobiasvl> to use ruby on a web page?
<HewloThere> Yes.
<tobiasvl> well you need … ruby
crdpink2 has joined #ruby
<tobiasvl> you don't need php
<wasamasa> HewloThere: doesn't sound like you grasp the basics yet :P
<HewloThere> =/
<wasamasa> HewloThere: as I've said earlier, all you need is some server (which is just a computer, far, far away) and a language with socket bindings
crdpink2 has quit [Read error: Connection reset by peer]
<wasamasa> HewloThere: that's all it takes
<Lightsword> I’m trying to write a socket client using something like eventmachine, I need to make many socket connections at once, are there any examples of how to do that? I managed to do something similar using em-http-request but I need to use unix sockets instead
<HewloThere> With a .rb file, do I need to install anything on my VPS for it to output that properly?
crdpink2 has joined #ruby
<tobiasvl> HewloThere: please read a book about ruby
<tobiasvl> HewloThere: yes, you need to install RUBY on your vps
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
bal has quit [Read error: Connection reset by peer]
<wasamasa> HewloThere: and to run ruby scripts, you need to install ruby obviously
<HewloThere> YAY! Someone finally understands. What do I need to install? Is the package "ruby"?
<HewloThere> Wait, it is. Is there anything else I need?
jnollett_ has joined #ruby
<wasamasa> no
<HewloThere> Good.
<wasamasa> a working brain maybe
<wasamasa> and a towel
<HewloThere> =/
<wasamasa> towels are good
workmad3 has joined #ruby
<wasamasa> and learning material
<emocakes__> dont forget to bring a towel!
schaerli has quit []
* wasamasa glances over to the "Learn to Program" book by chris pine in the room
* emocakes__ looks at the bottle of hand lotion and roll of tissu paper on his desk
duncannz has quit [Remote host closed the connection]
jnollette has quit [Ping timeout: 244 seconds]
bal has joined #ruby
vincent1 has joined #ruby
doev has quit [Ping timeout: 244 seconds]
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
wottam has joined #ruby
ki0_ has joined #ruby
Haiiro|Away is now known as Haiiro
mageru has quit [Ping timeout: 258 seconds]
KC9YDN has quit [Read error: Connection reset by peer]
BTRE has quit [Quit: Leaving]
BTRE has joined #ruby
ki0 has quit [Ping timeout: 260 seconds]
TejasDinkar has joined #ruby
KC9YDN has joined #ruby
Guest67442 has quit [Ping timeout: 240 seconds]
doev has joined #ruby
gja has quit [Ping timeout: 272 seconds]
roolo has quit [Ping timeout: 240 seconds]
Mohan__ has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
schaerli has joined #ruby
phrozen77 has quit [Ping timeout: 260 seconds]
iinzg has quit [Ping timeout: 255 seconds]
startupality has joined #ruby
SpaceKookie has joined #ruby
nonks has joined #ruby
Takle has quit [Remote host closed the connection]
Trieste has quit [Ping timeout: 260 seconds]
andrewlio has joined #ruby
phrozen77 has joined #ruby
jusmyth has left #ruby [#ruby]
mxrguspxrt has joined #ruby
timmow has quit [Ping timeout: 260 seconds]
<rshetty> Hey
* csmrfx glances over ri
Takle has joined #ruby
timmow has joined #ruby
hellangel7 has joined #ruby
amundj has quit [Ping timeout: 255 seconds]
<agent_white> HewloThere: Just... `gem install pry`... and use `pry` instead of `irb`
<agent_white> And... put pry in your pocket.
nonks has quit [Ping timeout: 265 seconds]
<agent_white> It is like a map to the rubiverse.
zarubin has joined #ruby
aep has quit [Ping timeout: 240 seconds]
davzie has left #ruby ["WeeChat 0.3.0"]
aep has joined #ruby
ferr_ has joined #ruby
timonv_ has joined #ruby
sk87 has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
techsethi_ has joined #ruby
Alina-malina has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
roolo has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
Vile` has quit [Ping timeout: 255 seconds]
techsethi has quit [Ping timeout: 258 seconds]
techsethi_ is now known as techsethi
startupality has quit [Quit: startupality]
lolmaus has joined #ruby
tyll has quit [Ping timeout: 246 seconds]
mxrguspxrt has quit [Remote host closed the connection]
tyll has joined #ruby
Deejay_ has joined #ruby
startupality has joined #ruby
w1xz has quit [Quit: .. lightyears a head but just a message away ..]
Deejay_ has quit [Client Quit]
TejasDinkar has quit [Ping timeout: 272 seconds]
ayaz has joined #ruby
mclosson has joined #ruby
tlarevo has joined #ruby
jottr has joined #ruby
jeroenvisser101 has joined #ruby
jeroenvisser101 has quit [Remote host closed the connection]
jusmyth1 has joined #ruby
ta__ has joined #ruby
bulters has quit [Ping timeout: 255 seconds]
nonks has joined #ruby
jusmyth1 has left #ruby [#ruby]
sigurding has joined #ruby
mclosson has quit [Ping timeout: 250 seconds]
SpaceKookie has quit [Ping timeout: 260 seconds]
qba73 has quit [Remote host closed the connection]
jlast has joined #ruby
ta has quit [Ping timeout: 260 seconds]
SpaceKookie has joined #ruby
qba73 has joined #ruby
Azure has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
Mia has joined #ruby
Mia has joined #ruby
thsig has joined #ruby
vincent1 has quit [Ping timeout: 265 seconds]
niftylettuce has joined #ruby
godd2 has joined #ruby
ki0 has joined #ruby
Takle has quit [Remote host closed the connection]
Bira has joined #ruby
ki0_ has quit [Ping timeout: 250 seconds]
jusmyth has joined #ruby
ta__ is now known as ta
<txdv> >> "shevy " * 100
<eval-in__> txdv => "shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy sh ... (https://eval.in/207074)
<txdv> no automatization
Ulrike_Rayne has quit [Max SendQ exceeded]
<godd2> automatization or automization?
subraminion has quit [Ping timeout: 272 seconds]
fabrice31 has quit [Remote host closed the connection]
<txdv> atomization
Spami has quit [Quit: Leaving]
Ulrike_Rayne has joined #ruby
fabrice31 has joined #ruby
karupa is now known as zz_karupa
<godd2> Now I'm just more confused
<txdv> life - a state of perpetual confusion
sigurding has quit [Ping timeout: 244 seconds]
<godd2> 2deep4me
fabrice31_ has joined #ruby
alex88 has quit [Quit: Leaving...]
rshetty has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 260 seconds]
jusmyth has quit [Quit: Leaving.]
matthewhill has joined #ruby
oo_ has quit [Remote host closed the connection]
rshetty has joined #ruby
htmldrum has joined #ruby
oo_ has joined #ruby
tlarevo has quit [Ping timeout: 260 seconds]
bulters has joined #ruby
nonks has quit [Ping timeout: 272 seconds]
wald0 has joined #ruby
Haiiro is now known as Haiiro|Away
fabrice31_ has quit [Ping timeout: 260 seconds]
drawingthesun has joined #ruby
tkuchiki has quit [Remote host closed the connection]
zarubin has quit [Remote host closed the connection]
tkuchiki has joined #ruby
oo_ has quit [Ping timeout: 250 seconds]
marr has joined #ruby
elektronaut has quit [Ping timeout: 260 seconds]
elektronaut has joined #ruby
echooo1 has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
{xenomorph} has quit [Ping timeout: 260 seconds]
<Lightsword> can I use em-synchrony to make many asyncronous tcpsocket requests? https://github.com/igrigorik/em-synchrony
echooo has joined #ruby
{xenomorph} has joined #ruby
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has joined #ruby
fabrice31 has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
dangerousdave has joined #ruby
roolo has quit [Remote host closed the connection]
echooo1 has joined #ruby
dangerousdave has quit [Max SendQ exceeded]
roolo has joined #ruby
dangerousdave has joined #ruby
echooo has quit [Ping timeout: 265 seconds]
<godd2> looks like a yes
waxjar has quit [Ping timeout: 244 seconds]
ruisantos has joined #ruby
oso|away has quit [Ping timeout: 260 seconds]
<wottam> quit
wottam has quit [Quit: WeeChat 1.0]
schaerli has quit [Remote host closed the connection]
roolo has quit [Ping timeout: 240 seconds]
sivoais has quit [Ping timeout: 260 seconds]
jhass|off is now known as jhass
schaerli has joined #ruby
mxrguspxrt has joined #ruby
<Lightsword> godd2, know how to do it with a raw TCPSocket, I’ve been able to do it for http requests but I need raw sockets support
andrewh has joined #ruby
waxjar has joined #ruby
sivoais has joined #ruby
<Lightsword> godd2, I have something like this https://gist.github.com/jameshilliard/00e43d98ec2c2c432843 which kind of works but doesn’t appear to be asynchronous
oso|away has joined #ruby
<godd2> It could just be coincidentally doing things in order
oso|away is now known as oso96_2000
<Lightsword> godd2, it would appear so
<Lightsword> but I’m not sure why
<Lightsword> and how to stop it from doing that
schaerli has quit [Remote host closed the connection]
<godd2> if you want to check asynchronicity, put sleep rand(1..4) at the beginning of the begin block to make sure
schaerli has joined #ruby
<godd2> that way you might make the first one sleep for 4 seconds, but the second one sleep for 1 second before going on
<godd2> you can tailor the numbers to your needs
fantazo has joined #ruby
<Lightsword> godd2, well it appears to be making requests so far but no responses yet
emocakes__ has quit []
nfk has joined #ruby
<Lightsword> oh, I think I broke something else, hmm
roolo has joined #ruby
doodlehaus has joined #ruby
<Lightsword> godd2, yeah it would appear it is not async
<godd2> "(
<Lightsword> since its walking through each IP
<Lightsword> I fixed the other issue
drawingthesun has quit [Ping timeout: 255 seconds]
<godd2> hmm
havenwood has joined #ruby
kaspertidemann has joined #ruby
<Lightsword> this eventmachine syntax is super confusing
BadQuanta has quit [Ping timeout: 265 seconds]
<Lightsword> I can’t find a single example of someone doing actual raw TCPSocket async multirequests
<Lightsword> plenty for crawlers for http
Deejay_ has joined #ruby
<godd2> looks like you need to use an EM::Synchrony::Iterator object
Bira has quit [Remote host closed the connection]
reinaldob has joined #ruby
<godd2> and pass it the array of ips
<Lightsword> godd2, where would that go?
<godd2> looks like it's a wrapper for the array
<godd2> something like that
kamilc__ has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
hackeron has quit [Ping timeout: 240 seconds]
<Lightsword> godd2, any idea how it would work with a tcpsocket? the syntax for the tcprequest seems a bit different
<Lightsword> and I don’t know where I would specify port either
hackeron has joined #ruby
phutchins has joined #ruby
Hobogrammer has quit [Ping timeout: 265 seconds]
Hightower_ has quit [Ping timeout: 260 seconds]
<godd2> something like that?
tlarevo has joined #ruby
tlarevo has quit [Remote host closed the connection]
renderful has joined #ruby
<godd2> and then add the sleep rand thing if that works at all to see if its working asynch
bulters has quit [Ping timeout: 265 seconds]
decoponio has joined #ruby
rshetty has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
gbchaosmaster has quit [Ping timeout: 250 seconds]
Spami has joined #ruby
rshetty has joined #ruby
renderful has quit [Ping timeout: 260 seconds]
timonv_ has quit [Remote host closed the connection]
Deejay_ has quit [Quit: Computer has gone to sleep.]
Hightower_ has joined #ruby
govg has joined #ruby
rahult has joined #ruby
jlast has joined #ruby
danguita has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
<Lightsword> godd2, gettin undefined method `FiberIterator' for EventMachine::Synchrony:Module
<Lightsword> even with a require "em-synchrony/fiber_iterator"
danguita has joined #ruby
<godd2> Yea I have no idea. it was a shot in the dark.
<godd2> although...
<godd2> do you have pry installed?
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robustus is now known as robustus|Off
<Lightsword> godd2, hmm think I may have got something
<godd2> you can always drop binding.pry in a gem to see what the flip is going on
Akagi201_ has joined #ruby
<Lightsword> EM::Synchrony::FiberIterator.new
<godd2> and then use `gem pristine gem_name` to revert it
<godd2> oh yea you could try that too
<Lightsword> that made it go fast
<Lightsword> but the responses are out of sync now
dumdedum has quit [Quit: foo]
<godd2> isnt that what you wanted?
rshetty has quit [Remote host closed the connection]
<Lightsword> yeah, but need to trace them, may have just messed something else up though one sec
<Lightsword> ok, I think that worked
jlast has quit [Ping timeout: 265 seconds]
<Lightsword> I had changed a variable somewhere else
thsig_ has joined #ruby
<godd2> k Ill go put "EM::Synchrony Expert" on my resume now
Akagi201 has quit [Ping timeout: 245 seconds]
<Lightsword> godd2, cool :) this made my request tool 20 times faster
Akagi201_ has quit [Remote host closed the connection]
I_Eat_Humans has joined #ruby
<I_Eat_Humans> hello ruby peeps
<agent_white> hay dere
zarubin has joined #ruby
dangerousdave has joined #ruby
thsig has quit [Ping timeout: 260 seconds]
<I_Eat_Humans> So I have a string, which represents a software version "example: 2.5.1", I want to be able to do conditinal testing on it, example if < than 2.5.0, etc... I tried converting it to an interger and it won't work because it has two "."s any suggestions?
spastorino has joined #ruby
<jhass> I_Eat_Humans: Gem::Version
<I_Eat_Humans> jhass: cool, but is there a way to do this without a gem?
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
<hanmac1> I_Eat_Humans: yes you can do it
<jhass> >> Gem::Version.new("2.5.1") < Gem::Version.new("2.5.2")
<eval-in__> jhass => true (https://eval.in/207110)
<jhass> no gems involved
<I_Eat_Humans> ah gotcha
<I_Eat_Humans> thanks!
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
rahult has quit [Quit: Back to the world of zombies]
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
drawingthesun has joined #ruby
<I_Eat_Humans> jhass: Excellent!!!
alem0lars has joined #ruby
<crome> I_Eat_Humans: but you could really just remove the dots and convert it to a number
SpaceKookie has quit [Ping timeout: 260 seconds]
<hanmac1> jhass: the funny thing even with Gem module:
<hanmac1> >> "1.2.9".succ
<eval-in__> hanmac1 => "1.3.0" (https://eval.in/207112)
alem0lars has quit [Max SendQ exceeded]
<hanmac1> crome no
<crome> well, unless there are things like 1.3.11
<I_Eat_Humans> one more for ya if you don't mind. How can I check that the version (which will be avariable called ver) is always formatted in "n.n.n" notation? and not "n.n" or "n.n.n.n" -- I am reading this from the command line as an argument.
alem0lars has joined #ruby
<hanmac1> I_Eat_Humans: you can use regexp for that
<I_Eat_Humans> hanmac1: I am new to Ruby... so I don't know how off the top of my head :)
<jhass> puts "wrong format" unless ver.match(/\d+\.\d+\.\d+/)
SpaceKookie has joined #ruby
<I_Eat_Humans> jhass: you are a rockstar, thanks man
<hanmac1> jhass: hm not complete enoug
<hanmac1> >> /^\d+\.\d+\.\d+$/ =~ "2.5.1" ? "is version i like" : "dont like it"
<eval-in__> hanmac1 => "is version i like" (https://eval.in/207124)
PierreRambaud has quit [Remote host closed the connection]
<hanmac1> >> /^\d+\.\d+\.\d+$/ =~ "2.5.1.4" ? "is version i like" : "dont like it"
<eval-in__> hanmac1 => "dont like it" (https://eval.in/207125)
alem0lars has quit [Client Quit]
qmfnp has joined #ruby
tokik has quit [Ping timeout: 265 seconds]
Azulinho has joined #ruby
<I_Eat_Humans> thanks guys, that should get me where I need to go, much appreciated!!!
lxsameer has joined #ruby
lxsameer has joined #ruby
timonv_ has joined #ruby
<apeiros> use \A and \z instead of ^ and $
<apeiros> ^ and $ are line related, not full string
ghr has quit []
doev has quit [Ping timeout: 240 seconds]
<hanmac1> apeiros: ah ok i always do it wrong because i dont use then that much often ...
corkfuse has joined #ruby
<apeiros> yeah, it's a common mistake
<apeiros> also because this is somewhat unique to ruby
Haiiro|Away is now known as Haiiro
ldnunes has joined #ruby
endlessdark has joined #ruby
<hanmac1> apeiros: i found a funny method name ... or what do you say to: "spermy_recommendation" ? ;P
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
<apeiros> hanmac1: that's for ~> qualifiers ;-)
<hanmac1> i know i just found the method name for that funny ;D
doodlehaus has quit []
Bira has joined #ruby
<endlessdark> Hey! I have a superfast request for you. Since I come from traditional languages like C, I have problems using ruby features and I end up writing code as if I would be writting C or Java.
<endlessdark> So I will ask you to 'rubyfy' a small chunk of code if possible
gyre007_ has joined #ruby
<gyre007_> guys, is there any way how I can interpolate values in %w() defined array ?
autonomousdev has joined #ruby
<gyre007_> sa like interpolate variables passed to %w() array
max96at|off is now known as max96at
<hanmac1> endlessdark: just make a pastie and then we can tell you what should be better
<endlessdark> this small function I wrote, I guess is not well rubyfied
<endlessdark> def getRandomConsonant
<endlessdark> randLetter = (rand(25)+97).chr
<endlessdark> while (isCharVowel(randLetter)) do
<godd2> endlessdark stop
<godd2> use gist
<hanmac1> endlessdark: https://gist.github.com/
<endlessdark> okok
<shevy> txdv \o/
<endlessdark> sorry
<godd2> its all good
<shevy> endlessdark it is not very common to use such method names
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<endlessdark> I guess its full of miskates
<godd2> also, ranges are your friend. "a".."z"
<shevy> the code looks as if a C++ coder translated his code 1:1 into ruby
<endlessdark> thats the problem I have
<shevy> >> randLetter = (rand(25)+97).chr
<eval-in__> shevy => "q" (https://eval.in/207131)
<endlessdark> that I write like if I were writing c++
<shevy> oh my
<shevy> how convoluated can you code man ;)
<shevy> *convoluted
<shevy> though it is actually quite short
<shevy> but this should be more readable: ("a".."z").to_a.shuffle[0]
<endlessdark> so 1.- Naming 2.- Ranges
<shevy> or even
<shevy> ALPHABET = ("a".."z").to_a
<shevy> and then ALPHABET.shuffle[0]
<godd2> ([*"b".."z"] - ["e", "i", "o", "u"]).sample
<shevy> wheeeee
<shevy> all vowels removed
<godd2> a little less readable but more rubyesque
Heskie has joined #ruby
<shevy> better than (rand(25)+97).chr really
<endlessdark> that's what I want rubyesque code
jheg_ has joined #ruby
jheg_ has quit [Client Quit]
<endlessdark> nice! Thanks, I'm going to review all similar chunks around my code
<hanmac1> shevy: now the "y" is all alone in that array of evil Consonants ;P
<godd2> I'd make the method name random_consonant, not get_random_consonant
<godd2> also, make method names snake case, not cAmElCaSe
<godd2> it's not required, but its how mosts rubyists write ruby
bbloom has quit [Ping timeout: 244 seconds]
<endlessdark> yeah, I was reading a book called 'Agile web development with Rails' or something like that
startupality has quit [Quit: startupality]
<endlessdark> and I remember they mentioned that
<gyre007_> I'm trying to do something like this: http://pastie.org/9656095
rshetty has joined #ruby
tomgavin has joined #ruby
<gyre007_> but have no idea how to interpolate variables in %w() array
<godd2> endlessdark there are a lot of methods on the Array class that allow you to do sneaky kinds of iteration and selection without writing loops
jbw has quit [Ping timeout: 265 seconds]
<endlessdark> Thank you guys! I'm going to read some documentation about theres a looong way to go in the ruby path! Thanks for pointing me!
<shevy> endlessdark lots of nice methods like .select or .reject
havenwood has joined #ruby
<shevy> you only have to set your brain to ruby-mode, then it all flows naturally without any resistance
mxrguspxrt has quit [Remote host closed the connection]
<shevy> because the operations are minimal
jbw has joined #ruby
<shevy> container.each
<godd2> one of us... one of us...
<shevy> file_listing.reject {|file| file.size > 5 }
<shevy> cars.select {|car| car.color == 'pink' }
<godd2> >> [1,2,3].map {|num| 2*num }
<eval-in__> godd2 => [2, 4, 6] (https://eval.in/207137)
bbloom has joined #ruby
mxrguspxrt has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
<hanmac1> gyre007_: %W(#{val} two three) ?
reinaldob has quit []
<godd2> is that the capital W doing the work there?
<tobiasvl> yes
rocknrollmarc has joined #ruby
<hanmac1> %W means like "", %w means like ''
Macaveli has joined #ruby
<godd2> >> val = "car"; %W(#{val} house pool)
<eval-in__> godd2 => ["car", "house", "pool"] (https://eval.in/207142)
<godd2> sweet
reinaldob has joined #ruby
xymbol has joined #ruby
schaerli has quit [Remote host closed the connection]
Deejay_ has joined #ruby
jacobat_ has joined #ruby
<apeiros> hanmac1: if you find that funny, search through minitest's method names. search for methods with names >15 chars length ;-)
havenwood has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<apeiros> hanmac1: precisely :D
luckyruby has quit [Remote host closed the connection]
<crome> I love that one :D
jacobat has quit [Ping timeout: 272 seconds]
yokel has joined #ruby
<hanmac1> hm for one of my testcases the order is important ... but i think thats not such a big problem in that case
<apeiros> hanmac1: it doesn't say order is bad. it says test cases relying on order is bad.
schaerli has joined #ruby
<hanmac1> apeiros: https://github.com/Hanmac/rwx/blob/master/test/test_color.rb ... "test_color_constant_and_names" need to be called before "test_equal"
Notte has joined #ruby
bulters has joined #ruby
tanema has joined #ruby
shredding has quit [Quit: shredding]
tanema has quit [Client Quit]
robustus|Off is now known as robustus
<apeiros> hanmac1: ok, that's not good
xiq__ has quit [Read error: Connection reset by peer]
Notte has quit [Client Quit]
xiq_ has joined #ruby
fsapo has joined #ruby
<hanmac1> apeiros: its about that WX::App thing ... without the system is not loaded, the constants are not defined, and == "red" MIGHT return false :/
<apeiros> hanmac1: just ensure that it is loaded in test_equal too
zarubin has quit [Remote host closed the connection]
drPoggs has quit [Ping timeout: 260 seconds]
drPoggs has joined #ruby
<hanmac1> hm ok, i might do it, the only prob is that i cant test it in test_equal that its not loaded
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<crome> load it in a hook
bulters has quit [Ping timeout: 255 seconds]
<crome> ah but then you won't be able to test it without loading it
<godd2> yea extract the logic of selcetion to a different method and test against that
jacobat_ has quit [Ping timeout: 245 seconds]
spyderman4g63 has joined #ruby
nonks has joined #ruby
<hanmac1> hm yeah thats the very first test case for that project so its ok if its not perfect yet
<hanmac1> hm i also might add rspec stuff too
<gyre007_> hanmac1: excellent!
<gyre007_> thanks
<godd2> "but then you won't be able to test it without loading it" - it's okay to have dependencies. Although you may want to consider stubbing the constants?
mkopriva has joined #ruby
<apeiros> I think not testing behavior when it is not loaded is perfectly fine
<hanmac1> godd2: hm what do you mean with "stubbing" ?
<apeiros> as that's just repeating the tests other should do (e.g. ruby stdlib/core tests)
jlast has joined #ruby
<godd2> stubbing is when you make a fake version of an object so you can test the logic of something in isolation
<hanmac1> godd2: so you mean i should just define the RED constants for the testcase or something similar?
jacobat has joined #ruby
<godd2> yea it's sort of like saying "assuming the rest of my system works the way it should..."
livathinos has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 255 seconds]
<godd2> but then that's why they're 'unit' tests
<hanmac1> hm i just wanted to show that they cant be used without WX::App ... (i also will add that part extra in the documentation)
mkopriva has left #ruby [#ruby]
havenwood has joined #ruby
<godd2> that's fine, it's just a more integrated kind of test.
<godd2> integration tests are more coupled and they test the interaction of different parts of your system
SpaceKookie has quit [Ping timeout: 260 seconds]
<hanmac1> its because in some ports the underling values like wxRED are not available before wxApp is started ... yeah its a bit fucked up but i cant do much about than writing around
nonks has quit [Ping timeout: 265 seconds]
rpag has quit [Quit: Leaving]
ValicekB has quit [Ping timeout: 272 seconds]
<godd2> hehe, to me that just tells me that the test is trying to tell you something about your design ;)
SpaceKookie has joined #ruby
doev has joined #ruby
<hanmac1> its not my design directly ... its about the binded lib ...
jlast has quit [Ping timeout: 260 seconds]
shredding has joined #ruby
HelperW has quit [Ping timeout: 258 seconds]
<godd2> oh it's tests over some ext code
jacobat has quit [Ping timeout: 260 seconds]
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
workmad3 has quit [Ping timeout: 272 seconds]
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
jacobat has joined #ruby
tvw has quit [Ping timeout: 255 seconds]
havenwood has quit [Remote host closed the connection]
tvw has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
bulters has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
jacobat has quit [Ping timeout: 260 seconds]
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
matthewhill has quit [Quit: Lingo: www.lingoirc.com]
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
robustus is now known as robustus|Off
alem0lars has joined #ruby
Deejay_ has quit [Quit: Computer has gone to sleep.]
amundj has joined #ruby
Lightsword has quit [Quit: Lightsword]
aclearman037 has joined #ruby
Fractional has joined #ruby
<Fractional> Is this SRP done right or wrong? https://gist.github.com/Freddan962/1ef34d33271da3da7dfd
drawingthesun has quit [Ping timeout: 250 seconds]
<Fractional> Is this SRP done right or wrong? https://gist.github.com/Freddan962/1ef34d33271da3da7dfd
<godd2> Fractional it doesn't seem to violate SRP
<Fractional> gcdd2: Do you think there's anything I should change?
benzrf|offline is now known as benzrf
hmsimha has joined #ruby
<godd2> however you are arguably violating the D in solid since you aren't injecting your dependencies but focusing on one SOLID principle at a time if fine
bMalum has joined #ruby
<godd2> it's only arguably violating it
jacobat has joined #ruby
king313 has quit [Ping timeout: 260 seconds]
<Fractional> godd2: How would you have done it to not violate either of the SOLID principles?
<godd2> your Book#read method should have the BookReader object that will do the rading passed to it
rpag has joined #ruby
<godd2> likewise, when you do Book.new you should pass a BookLoader to it, not have one created inside the method
sepp2k has joined #ruby
<godd2> After all, BookLoader should know what paths are, not Book
livathinos has joined #ruby
<godd2> So like Book.new('Sparrow 2.0', BookLoader.new('./books/Sparrow2.0.txt')) or something like that
shanlar- has quit [Read error: Connection reset by peer]
<apeiros> Fractional: seems like overboarding SRP
<hanmac1> godd2: or let Book#load pass the book object to a static helper that does access the correct loader type form the path of the book
<apeiros> Fractional: we don't have ArraySelecter, ArrayMapper etc. because arrays have bad SRP
<godd2> I agree apeiros but I wasnt going to make that crticism since he needs to do it too much before he learns how much too much is
<apeiros> Fractional: it isn't always easy to figure where to draw the line, though
<Fractional> Yeah, but I am doing my best to learn! :)
<godd2> #select and #map are included from Enmerable though
<apeiros> godd2: sure. multiple opinions is a good thing :)
<godd2> :)
<apeiros> godd2: for array, they're actually not ;-p
<apeiros> (it wouldn't be necessary for array to implement them itself, tho - so it's just an implementation detail)
dangerousdave has joined #ruby
zorak8 has joined #ruby
<godd2> >> Array.ancestors
<eval-in__> godd2 => [Array, Enumerable, Object, Kernel, BasicObject] (https://eval.in/207146)
timonv_ has quit [Remote host closed the connection]
<apeiros> >> Array.instance_method(:map).owner
<eval-in__> apeiros => Array (https://eval.in/207147)
<godd2> I know, I know ancestor chain lies all the time
livathinos has quit [Remote host closed the connection]
<Fractional> godd2, is the new revision more correct in terms of SOLID?
<apeiros> godd2: anyway, that's besides the point. we also don't have EnumerableSelector, EnumerableMapper etc. ;-)
<godd2> Ruby = ProgrammingLanguage.new(Syntax.new("blocks and stuff"))
<godd2> Fractional yes, you now know how to inject dependencies and that's a useful tool :)
livingstn has joined #ruby
<godd2> now, it's not necessarily the answer all the time, but its a good tool in your toolbelt
<Fractional> godd2, would it not be more 'SRP' like to remove the Book#read method, and only use the BookReader#read method to read the book?
livathinos has joined #ruby
rshetty has quit [Remote host closed the connection]
SpaceKookie has quit [Ping timeout: 260 seconds]
<godd2> That's a design decision that's up to you
<Fractional> BookReader.new(Book).read(lines) for example?
<godd2> well I personally think that would be a mistake
<godd2> since Book should be dependent on BookReader, not the other way around
<apeiros> Fractional: javaistic API :-p
niftylettuce has quit [Quit: Connection closed for inactivity]
<godd2> but like I said, that's up to you. It's a question you have to answer for yourself
yfeldblum has joined #ruby
workmad3 has joined #ruby
<apeiros> book = Book.new(path); book.lines(…)
<Fractional> Ok :P
<Fractional> Thanks for the help like always guys.
<godd2> "what components of my system are dependent on others?"
<apeiros> I see no point in moving that into a separate class. KISS.
manzo has joined #ruby
<apeiros> don't overabstract. you generate technical debt quickly that way.
SpaceKookie has joined #ruby
<Fractional> This was just a short program so I could see if I can do this correctly :P
<hanmac1> Fractional: i would do #load like that: https://gist.github.com/Hanmac/5ad8e73e38638dca0998
<godd2> I respectfully disagree with apeiros. I think investigating different abstraction techniques and solutions results in a deeper understanding of the language
kamilc__ has quit [Quit: Leaving...]
<godd2> But you do have a point that you can over-abstract very easily
<apeiros> godd2: I don't think we disagree. I have nothing against investigating :) learning is important.
<godd2> Over-abstraction is when you have two levels of abstraction over what you need. Finding out what you need is the hard part ;)
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> but I guess it's difficult to make up cases which make proper sense for the technique to be explored.
tier has joined #ruby
livingstn has quit [Ping timeout: 256 seconds]
distax has joined #ruby
<Fractional> Now I am confused here. godd2 wants me to make the objects outside of the class to not break the D in solid, while Hanmac makes the objects within the class. Back on square one :'<
<distax> is ?e some special kind of variable set by ruby itself
gccostabr has quit [Ping timeout: 260 seconds]
Xiti has quit [Quit: Leaving]
<godd2> distax no it's for codepoints
<hanmac1> in ruby you can abstract it in the infinity ... its like the difference of a Painting and an Abstraction of a Painting ;P
<godd2> distax it returns the ascii codepoint for the character
jacobat has quit [Ping timeout: 260 seconds]
<godd2> >> ?A
<hanmac1> godd2: no
<eval-in__> godd2 => "A" (https://eval.in/207148)
gccostabr has joined #ruby
<godd2> crap
<hanmac1> ?A does return a string on 1.9+ but a Integer on 1.8
<hanmac1> its equal to "A"[0] in that versions
livingstn has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
xiq_ has quit [Ping timeout: 260 seconds]
<godd2> okay so I was half-right. either way, ?e just means the "e" character. Also, it's not recommended to use in Ruby, for style reasons
<distax> good2 et al.: thx, saw this for test and was wondering what it was
foooobear has joined #ruby
benzrf is now known as benzrf|offline
<godd2> if you want codepoints, use unpack though. "a".unpack("c")[0] == 97
<apeiros> C actually is bytes
aep has quit [Ping timeout: 250 seconds]
<apeiros> codepoints is encoding dependent. unpack("U*") for unicode strings.
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<distax> no, as i said, Kernel#test uses it (at least in the example i saw)
sevenseacat has joined #ruby
rkalfane has joined #ruby
<apeiros> (and with unpack as bytes, you usually want C, not c - the latter is -128..127, the former 0..255)
king313 has joined #ruby
<apeiros> distax: Kernel#test(cmd, …) used to take an integer as cmd. it can still be seen by the bug in the docs "Uses the integer cmd"
Juanchito has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
aep has joined #ruby
<apeiros> and ?e etc. was a convenient way to get the integer, and it was close to how bash's test works
<distax> it from 'the well grounded rub..' 1.9.3 though
coderdad has joined #ruby
<apeiros> distax: yes, Kernel#test was updated to accept strings. which is why ?e etc. still work.
rkalfane has quit [Client Quit]
ta has quit [Remote host closed the connection]
KC9YDN has quit [Read error: Connection reset by peer]
<godd2> In Programming Ruby under the section on ? chars, they state "Do yourself a favor and forget this section."
<distax> :)
end_guy has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<apeiros> distax: I assume the author simply didn't take their time to update that section, or still likes ?<char>. But as godd2 already said, I'd advise to not use that notation.
end_guy has joined #ruby
jacobat has joined #ruby
<hanmac1> godd2: +1 for the AT image ;P
sevenseacat has left #ruby [#ruby]
<distax> the book is from 2009 and covers 1.9.3
AFKGeek has quit [Quit: Leaving]
<distax> but a new version was relesed this month
Heskie has quit []
rpzdi has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
Darryl has joined #ruby
User458764 has joined #ruby
timonv_ has joined #ruby
<rpzdi> how operating system control memory ram? how a system program which resides inside a chip controls the physical RAM chip?and change the variables between o.s and applications program and shell?
kaspertidemann has quit []
lw has quit [Quit: s]
<apeiros> rpzdi: errr, what?
<godd2> rpzdi #ruby is probably not the place to ask things like that
tkuchiki has quit [Remote host closed the connection]
zaid_h has joined #ruby
<godd2> but if you want to know that stuff, I suggest you pick up a book on assembly
tkuchiki has joined #ruby
<godd2> and a book on electrical engineering for computer scientists
Notte has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
bMalum has quit [Quit: bMalum]
gja has quit [Quit: This computer has gone to sleep]
<rpzdi> tnx
rpzdi has quit [Client Quit]
nonks has joined #ruby
mike32 has joined #ruby
einarj has quit [Remote host closed the connection]
weemsledeux has joined #ruby
weemsledeux has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
Haiiro is now known as Haiiro|Away
mleone has joined #ruby
rbrs has quit [Remote host closed the connection]
twohlix has joined #ruby
kp666 has joined #ruby
weemsledeux has quit [Client Quit]
jlast has joined #ruby
ta has joined #ruby
freerobby has joined #ruby
nonks has quit [Ping timeout: 265 seconds]
techsethi has quit [Quit: techsethi]
kp666 has quit [Client Quit]
kp666 has joined #ruby
wolves_cs has joined #ruby
KC9YDN has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
kp666 has quit [Client Quit]
kp666 has joined #ruby
jacobat has quit [Ping timeout: 260 seconds]
livathinos has quit [Remote host closed the connection]
taptapdan has quit [Quit: taptapdan]
mleone has quit [Ping timeout: 244 seconds]
sevenseacat has joined #ruby
tonybird has joined #ruby
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SpaceKookie has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
krz has quit [Quit: WeeChat 1.0.1]
autonomousdev has joined #ruby
benzrf|offline is now known as benzrf
foooobear has quit [Read error: Connection reset by peer]
txdv has quit [Quit: leaving]
distax has quit [Quit: Leaving]
jimbach has joined #ruby
rkalfane has joined #ruby
rkalfane has quit [Client Quit]
zorak8 has quit [Ping timeout: 240 seconds]
rossgeesman has joined #ruby
bMalum has joined #ruby
twohlix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xiq has joined #ruby
elektronaut has quit [Ping timeout: 260 seconds]
emmesswhy has joined #ruby
psy has quit [Remote host closed the connection]
elektronaut has joined #ruby
zaid_h has quit [Quit: ZZZzzz…]
emmesswhy has quit [Client Quit]
rossgeesman has quit [Ping timeout: 255 seconds]
livathinos has joined #ruby
hanmac1 has quit [Read error: Connection reset by peer]
emmesswhy has joined #ruby
hanmac1 has joined #ruby
dblessing has joined #ruby
x77686d has joined #ruby
yfeldblum has joined #ruby
User458764 has quit [Ping timeout: 244 seconds]
x77686d has quit [Client Quit]
ta has quit [Remote host closed the connection]
kwd_ has quit [Quit: Leaving.]
danguita has quit [Ping timeout: 264 seconds]
User458764 has joined #ruby
iamjarvo has joined #ruby
zaid_h has joined #ruby
beef-wellington has joined #ruby
tagrudev has quit [Remote host closed the connection]
Fractional has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 258 seconds]
zorak8 has joined #ruby
kp666 has quit [Quit: Konversation terminated!]
Xeago has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
iamjarvo has quit [Client Quit]
Heskie has joined #ruby
dx7 has quit [Remote host closed the connection]
ghr has joined #ruby
dx7 has joined #ruby
alem0lars has quit [Remote host closed the connection]
livathinos has quit [Remote host closed the connection]
alem0lars has joined #ruby
edwardloveall has joined #ruby
ylluminarious has joined #ruby
Xeago_ has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
banister has joined #ruby
banister has quit [Client Quit]
havenwood has joined #ruby
psy has joined #ruby
jerius has joined #ruby
dx7 has quit [Ping timeout: 260 seconds]
Mia has quit [Ping timeout: 244 seconds]
Mia has joined #ruby
RaCx_ has joined #ruby
pedromoreira has joined #ruby
RaCx has quit [Ping timeout: 265 seconds]
RaCx_ is now known as RaCx
HewloThere has quit [Quit: Leaving]
danguita has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
j2p2 has joined #ruby
gccostabr has quit [Quit: See you later!]
mikepack has quit [Remote host closed the connection]
Xiti has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Scotteh has joined #ruby
<bulters> dear people of #ruby, I present to you my humble question
msmith_ has joined #ruby
alem0lars has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
<bulters> in which 'object' is my constant FooBarQuuxBaz defined... when i evaluate: module ::FooBarQuuxBaz; end
alem0lars has joined #ruby
<waxjar> Object
ringarin has joined #ruby
<bulters> and with Object I assume (i know) you mean the class Object
lw has joined #ruby
<waxjar> yeah
lw has quit [Max SendQ exceeded]
spyderman4g63 has quit [Read error: No route to host]
spyderma_ has joined #ruby
<bulters> So module Blurp; end is actually the same as Object.const_set("Blurp", Module.new)
twohlix has joined #ruby
<Mon_Ouie> If you're at top-level, yes
ta has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
Xeago has quit [Remote host closed the connection]
<bulters> well, I want to define top level modules (and classes) from within a class, but defining const_set("::WorkDamnit", Module.new)... doesn't actually work
<bulters> so betty call const_set on Object then...
lw has joined #ruby
rockdon_ has joined #ruby
benzrf is now known as benzrf|offline
<waxjar> can't you make a Module and mix that into Object at the end?
<Mon_Ouie> That's because in module ::Foo; end the name of the module is Foo, not '::Foo'
<Mon_Ouie> const_set
gja has joined #ruby
<Mon_Ouie> const_set wants only the name of the constant, it does not understand the scoping operator
boombadaroomba has joined #ruby
<bulters> Mon_Ouie: I figured, just having some trouble finding a "root of all objects"
<bulters> due to the somewhat cyclic nature of parents near the "root"-singularity
<apeiros> Object is the root
<bulters> which isn't actually a singularity in ruby ;-)
danguita has quit [Remote host closed the connection]
danguita has joined #ruby
otakbeku has joined #ruby
<bulters> nice, thanks guys... I might actually be able to ship something today now... one more hour left on the clock... deploy and off to the kids for the weekend ;-)
rkalfane has joined #ruby
<waxjar> bulters: why not do it like this? https://gist.github.com/gists
blackoperat has joined #ruby
blackoperat has quit [Client Quit]
joast has quit [Quit: Leaving.]
xaxisx_ has joined #ruby
awestroke has joined #ruby
<apeiros> waxjar: did you really want that link and not a specific gist? :)
<waxjar> heh,
Takle has joined #ruby
<bulters> waxjar: I see some prolog there! nice ;-)
<waxjar> idk why that link was copied :/
SpaceKookie has quit [Ping timeout: 260 seconds]
{xenomorph} has quit [Ping timeout: 260 seconds]
siwica1 has quit [Remote host closed the connection]
<waxjar> i guess it's some javascript history magic, oh well
<bulters> waxjar: well, I'm running a kind of bootstrapping process for AR classes (yes, a rails thingy)
<apeiros> waxjar: always make such methods module_function
freerobby has quit [Quit: Leaving.]
<apeiros> waxjar: (that's how Kernel and e.g. Math work too btw.)
siwica has joined #ruby
<bulters> but for multiple 'applications'
boombadaroomba has quit [Ping timeout: 258 seconds]
xaxisx has quit [Disconnected by services]
xaxisx_ is now known as xaxisx
freerobby has joined #ruby
<waxjar> ah, didn't know that, but that makes sense
SpaceKookie has joined #ruby
xaxisx_ has joined #ruby
<bulters> I've been thinking about storing Module instances in a application top level constant (i.e. {app1: Module.new, app2: Module.new}) and refering to those instead
<bulters> but that really fscks up error reporting ;-)
Axy has joined #ruby
{xenomorph} has joined #ruby
bMalum has quit [Quit: bMalum]
Mia has quit [Read error: Connection reset by peer]
<bulters> At least now I get nice exceptions App1_SomeRandomIdentifier::User lalalala ArgumentError
techsethi has joined #ruby
alem0lars has quit [Remote host closed the connection]
alem0lars has joined #ruby
p8952 has quit [Quit: ZNC - http://znc.in]
alem0lars has quit [Max SendQ exceeded]
GPH|work has joined #ruby
Heskie has quit []
p8952 has joined #ruby
<apeiros> bulters: I wouldn't put generated constants into the top level
Heskie has joined #ruby
<apeiros> App1::Generated::RANDOM_ID_HERE
alem0lars has joined #ruby
devdazed has joined #ruby
alem0lars has quit [Max SendQ exceeded]
<apeiros> or somesuch
gja has quit [Quit: This computer has gone to sleep]
<apeiros> I did something like that for my reloadable plugin system
<bulters> apeiros: applications are identified by an internal uuid, some SomeRandomIdentifier is not really random ;-)
centrx has joined #ruby
alem0lars has joined #ruby
<apeiros> bulters: that's irrelevant to the suggestion ;-)
Kricir has joined #ruby
<bulters> So if app 1 has the identifier "invoices", and the uuid "12345" the base module will be Invoices_12345
<bulters> but I catch your drift
<apeiros> you generally don't put stuff into the toplevel. that's just bad design.
<bulters> might be a smart thing to put in in a base module
<bulters> thanks
<apeiros> yw
User458764 has quit [Ping timeout: 265 seconds]
kaspergrubbe_ has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
larissa has joined #ruby
phrozen77 has quit [Ping timeout: 260 seconds]
Channel6 has joined #ruby
<hanmac1> bulters: hm you might store the module objects in a instance variable of a master object
phrozen77 has joined #ruby
mary5030 has quit [Remote host closed the connection]
<hanmac1> and then you might so: Root["12345"]::Invoices or something similar
sk87 has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<bulters> hanmac1: Tried that, that was my first iteration of this, problem lies in error reporting, since your "key" will not be logged in default error logs
rossgeesman has joined #ruby
xymbol has quit [Quit: Lingo: www.lingoirc.com]
kaspergrubbe_ is now known as kaspergrubbe
agent_white has joined #ruby
shortCircuit__ has quit [Remote host closed the connection]
sailias has joined #ruby
alem0lars has quit [Read error: Connection reset by peer]
alem0lars has joined #ruby
robustus|Off is now known as robustus
alem0lars has quit [Max SendQ exceeded]
it0a has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
alem0lars has joined #ruby
sevenseacat has quit [Quit: Leaving.]
alem0lars has quit [Max SendQ exceeded]
livathinos has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
alem0lars has joined #ruby
mxrguspxrt has joined #ruby
alem0lars has quit [Max SendQ exceeded]
agent_white has quit [Client Quit]
<apeiros> bulters: you can always change that too
RaCx has joined #ruby
<apeiros> find what method your logger uses to print the object, define that method properly.
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
ec has quit [Ping timeout: 260 seconds]
p8952 has quit [Quit: ZNC - http://znc.in]
alem0lars has joined #ruby
<bulters> apeiros: true. I actually think it's a cleaner solution since it's still "application data"; but will defer actually implementing it that way until I get the green light to spent a few weeks on this project ;-)
alem0lars has quit [Max SendQ exceeded]
jlast has joined #ruby
alem0lars has joined #ruby
nonks has joined #ruby
<bulters> always a problemen, trying to define 'cleanness' for an app that's a poc, but is probably going to be used in production ;-)
alem0lars has quit [Max SendQ exceeded]
ec has joined #ruby
p8952 has joined #ruby
netmask has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
mityaz has quit [Quit: Leaving]
alem0lars has joined #ruby
gja has joined #ruby
gja has joined #ruby
alem0lars has quit [Max SendQ exceeded]
gja has quit [Remote host closed the connection]
Haiiro|Away is now known as Haiiro
alem0lars has joined #ruby
nonks has quit [Ping timeout: 240 seconds]
jlast has quit [Ping timeout: 260 seconds]
rbrs has joined #ruby
rbrs has quit [Remote host closed the connection]
ghr has joined #ruby
iamjarvo has joined #ruby
alem0lars has quit [Remote host closed the connection]
ghr has quit [Client Quit]
raldu has left #ruby [#ruby]
raldu has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
djstorm has joined #ruby
Axy has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
lkba has joined #ruby
Axy has joined #ruby
Axy has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
enebo has joined #ruby
alem0lars has joined #ruby
yfeldblum has joined #ruby
treehug88 has joined #ruby
alem0lars has quit [Max SendQ exceeded]
alem0lars has joined #ruby
relix has joined #ruby
alem0lars has quit [Max SendQ exceeded]
snath has quit [Ping timeout: 255 seconds]
weemsledeux has joined #ruby
oleo has joined #ruby
alem0lars has joined #ruby
sinkensabe has joined #ruby
zaid_h has quit [Quit: ZZZzzz…]
RaCx has quit [Ping timeout: 255 seconds]
rossgeesman has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
RaCx has joined #ruby
rossgeesman has joined #ruby
tkuchiki has joined #ruby
dp has left #ruby [#ruby]
ringarin has quit [Read error: Connection reset by peer]
banister has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has quit [Ping timeout: 260 seconds]
cicloid is now known as aCicloid
GPH|work has quit [Read error: Connection reset by peer]
pedromoreira has quit [Ping timeout: 272 seconds]
<endlessdark> Fast question, I have a class for generating a string. It has the 'generate' public method and some others used by 'generate' that are private. As the whole prupose of the class is calling the 'generate' method, and it holds no data, should I declare it as a class method? or rename it as the initialize method?
rossgeesman has quit [Ping timeout: 245 seconds]
sinkensabe has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 255 seconds]
<endlessdark> SampleString.generate vs SampleString.new
<tobiasvl> sounds like you could just generate it in initialize?
<endlessdark> I see creating an object pointless as I will not need it anymore
alem0lars has quit [Remote host closed the connection]
jobewan has joined #ruby
<edwardloveall> i like the class method approach
<edwardloveall> SampleString.generate reads better to me
alem0lars has joined #ruby
<apeiros> endlessdark: def SampleString.generate; new.generate; end
alem0lars has quit [Max SendQ exceeded]
Ankhers has joined #ruby
<apeiros> i.e., keep the rest as it is and provide a convenience class method
marr has quit [Ping timeout: 250 seconds]
jrhe_ has quit [Quit: Connection closed for inactivity]
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
<edwardloveall> yes
<edwardloveall> i was about to suggest that also
Spami has quit [Quit: Leaving]
<endlessdark> is convenient creating an object that won't be used anymore?
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
duketogo13 has joined #ruby
alem0lars has joined #ruby
<endlessdark> *an instance
alem0lars has quit [Max SendQ exceeded]
robustus is now known as robustus|Off
Spami has joined #ruby
mengu has quit []
alem0lars has joined #ruby
<apeiros> endlessdark: implementation detail. whom of your users will care?
havenwood has joined #ruby
elektronaut has quit [Ping timeout: 260 seconds]
mary5030 has joined #ruby
ferno has joined #ruby
larissa has quit [Quit: Leaving]
Xeago has joined #ruby
<ferno> What's the best way to remove a method from a specific class instance?
<endlessdark> ok, I see
<endlessdark> thanks!
<apeiros> endlessdark: if your app is too slow and your benchmark show the generate method to be a culprit, then you optimize it. and since it's an implementation detail, nobody has to adapt anything.
maasha has quit [Quit: Page closed]
shredding has quit [Quit: shredding]
<olivier_bK> some have already use mechanize ?
kamilc__ has joined #ruby
Xeago has quit [Remote host closed the connection]
iinzg has joined #ruby
elektronaut has joined #ruby
agjacome has joined #ruby
<tobiasvl> ferno: I guess it's this: class << your_instance; remove_method(:method_name); end
<ferno> What's the best way to remove a method from a specific class instance?
<ferno> Ah, my bad, ignore the dup
icebourg has quit []
<tobiasvl> ie. removing it from the instance's eiginclass
aCicloid is now known as cicloid
zeroNones has joined #ruby
<ferno> Hmm, but that gives a NameError, it isn't finding the method on the class (strangely)
znst has joined #ruby
crazydiamond has joined #ruby
alem0lars has quit [Read error: Connection reset by peer]
livathinos has quit [Remote host closed the connection]
zorak8 has quit [Ping timeout: 244 seconds]
<znst> How do I get the occurence count of a substring from a string? e.g. ocurrence_count("hello", "l") returns 2
techsethi has quit [Ping timeout: 255 seconds]
{xenomorph} has quit [Ping timeout: 260 seconds]
Channel6 has quit [Quit: Leaving]
<hanmac1> znst: ?
<hanmac1> >> "hello".count("l")
<eval-in__> hanmac1 => 2 (https://eval.in/207217)
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alem0lars has joined #ruby
{xenomorph} has joined #ruby
GPH|work has joined #ruby
alem0lars has quit [Max SendQ exceeded]
<jxf> I have a date string generated from Date.today.to_s (e.g. "2014-10-17"). I would like the UTC time at midnight on this day, e.g. the result of Time.utc(2014, 10, 17). Is there a method that will get me that?
<ferno> tobiasvl: It's an instance method, not a class method.
SpaceKookie has quit [Ping timeout: 260 seconds]
Takle has quit [Remote host closed the connection]
<ferno> Aka, it's defined within the clas with def method_name ... end
benzrf|offline is now known as benzrf
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
<znst> >> "hello".count("ll")
<eval-in__> znst => 2 (https://eval.in/207218)
duketogo13 has quit [Quit: [BX] Time wasted: 11m 21s]
hanmac1 has quit [Quit: Leaving.]
<znst> hanmac1: ^ it breaks down for me when evaluating the above
alem0lars has joined #ruby
freerobby has quit [Quit: Leaving.]
alem0lars has quit [Max SendQ exceeded]
<znst> hanmac1: i'd expect the output to be 1
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
<havenwood> znst: it's a set of characters
coderdad has quit [Remote host closed the connection]
SpaceKookie has joined #ruby
<Mon_Ouie> Right, count (like tr and delete) checks individual character
alem0lars has joined #ruby
<Mon_Ouie> You can use string.scan(substring).count
coderdad has joined #ruby
alem0lars has quit [Max SendQ exceeded]
<Mon_Ouie> (or use enum_for to make it lazier)
<godd2> ah so "hello".count("ll") matched on each l so there were 2 matches
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
<znst> Mon_Ouie: excellent, thank you :)
<havenwood> >> 'abracadabra'.count 'a-d'
<eval-in__> havenwood => 9 (https://eval.in/207219)
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
IceDragon has joined #ruby
ferno has quit [Quit: WeeChat 0.3.2]
Zesty has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
<znst> havenwood: #count is still confusing ot me
<godd2> znst duplicates are ignored
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
<godd2> so like "hello".count("llll") will still be 2 since there are two l's in the original
mxrguspxrt has quit [Remote host closed the connection]
alem0lars has joined #ruby
dangerousdave has joined #ruby
alem0lars has quit [Max SendQ exceeded]
<godd2> but "hello".count("oleh") will be 5 since each character in the argument matches up to all 5 in the original string
freerobby has joined #ruby
happyface_ has joined #ruby
<olivier_bK> some have already use mechanize ?
cicloid is now known as aCicloid
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
Xeago has joined #ruby
doodlehaus has joined #ruby
<centrx> Yes, mechanize good
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
taptapdan has joined #ruby
<znst> so it matches each character against the character set passed into count?
<happyface_> "gem install compass” is installing the latest version of the “sass” gem. How can I get it to use an older version of the “sass” gem instead?
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
klmlfl has joined #ruby
banister has joined #ruby
rockdon_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
klmlfl has quit [Remote host closed the connection]
banister has quit [Max SendQ exceeded]
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
Xeago has quit [Remote host closed the connection]
klmlfl has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
alem0lars has joined #ruby
<godd2> znst that's right. think of the argument passed as a set of characters. order doesnt matter and duplicates are ignored
alem0lars has quit [Max SendQ exceeded]
failshell has joined #ruby
GPH|work has quit [Ping timeout: 260 seconds]
DrShoggoth has joined #ruby
<centrx> happyface_, gem install sass -v <version number>
<olivier_bK> centrx, you use mechanize ?
banister has joined #ruby
<centrx> happyface_, You probably want to use bundler with a Gemfile
banister has quit [Max SendQ exceeded]
workmad3 is now known as wm3|away
<happyface_> centrx: it’s still using the newer version, because it’s installing 2 versions of sass
Zesty has quit [Quit: Linkinus - http://linkinus.com]
alem0lars has joined #ruby
aclearman037 has quit []
alem0lars has quit [Max SendQ exceeded]
<centrx> happyface_, Use bundler, specify any exact versions you need in the Gemfile, then run with bundle exec
<znst> godd2: havenwood: thank you
banister has joined #ruby
<centrx> happyface_, after bundle install
gsd has joined #ruby
banister has quit [Max SendQ exceeded]
vyorkin has joined #ruby
<happyface_> centrx: oh perfect, thanks for the help!
vyorkin has quit [Client Quit]
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
vyorkin has joined #ruby
pedromoreira has joined #ruby
vyorkin has quit [Client Quit]
alem0lars has joined #ruby
Zesty has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
vyorkin has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
alem0lars has quit [Read error: Connection reset by peer]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
livathinos has joined #ruby
alem0lars has joined #ruby
Mint has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
HelloFred has joined #ruby
Zettam has joined #ruby
pedromoreira has left #ruby [#ruby]
end_guy has quit [Remote host closed the connection]
eikood has joined #ruby
Axy has quit [Read error: Connection reset by peer]
end_guy has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
RaCx has quit [Ping timeout: 245 seconds]
RaCx has joined #ruby
schaerli has quit [Remote host closed the connection]
alem0lars has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
aclearman037 has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
manzo has quit [Remote host closed the connection]
speaking1ode is now known as speakingcode
goodenough has joined #ruby
Zesty has quit [Quit: Linkinus - http://linkinus.com]
t_mmyv has joined #ruby
nateberkopec has joined #ruby
mikepack has joined #ruby
geekbri has joined #ruby
snath has joined #ruby
mclosson has joined #ruby
aclearman037 has quit [Ping timeout: 272 seconds]
{xenomorph} has quit [Ping timeout: 260 seconds]
leizzer has joined #ruby
{xenomorph} has joined #ruby
User458764 has joined #ruby
goodenough has quit [Remote host closed the connection]
St_Marx has quit [Ping timeout: 264 seconds]
zwischenzug2 has joined #ruby
gja has joined #ruby
zwischenzug has quit [Ping timeout: 250 seconds]
aclearman037 has joined #ruby
ghr has joined #ruby
rshetty has joined #ruby
agjacome_ has joined #ruby
benzrf is now known as benzrf|offline
jlast has joined #ruby
francisfish has quit []
Kricir has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
freezey has joined #ruby
Kricir has joined #ruby
gja has quit [Client Quit]
Azulinho has quit [Ping timeout: 250 seconds]
livathinos has quit [Remote host closed the connection]
awestroke has quit [Read error: Connection reset by peer]
agjacome has quit [Ping timeout: 260 seconds]
fsapo has quit [Ping timeout: 246 seconds]
endlessdark has quit [Quit: Saliendo]
jobewan has quit [Quit: Leaving]
yfeldblum has joined #ruby
jobewan has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
ki0 has quit []
livathinos has joined #ruby
adac has quit [Ping timeout: 260 seconds]
gregf has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 272 seconds]
nonks has joined #ruby
bal has quit [Ping timeout: 245 seconds]
Kricir has quit [Ping timeout: 272 seconds]
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
mistermocha has joined #ruby
gauke has quit [Quit: gauke]
yfeldblum has quit [Ping timeout: 260 seconds]
Scotteh_ has joined #ruby
benzrf is now known as benzrf|offline
nonks has quit [Ping timeout: 246 seconds]
andrewlio has quit [Remote host closed the connection]
livathinos has quit [Remote host closed the connection]
vyorkin has quit [Quit: WeeChat 1.0.1]
Mint has quit [Quit: Textual IRC Client: www.textualapp.com]
Mint has joined #ruby
rossgeesman has joined #ruby
Mint has quit [Client Quit]
Scotteh has quit [Ping timeout: 246 seconds]
orionstein has quit [Quit: ZNC - http://znc.in]
Bira has quit [Remote host closed the connection]
icebourg has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
orionstein has joined #ruby
maletor has joined #ruby
VTLob has joined #ruby
Takle has joined #ruby
bulters has quit [Ping timeout: 240 seconds]
mclosson has quit [Ping timeout: 265 seconds]
tylersmith has joined #ruby
DrShoggoth has quit [Quit: Leaving]
<znst> is there a way to assert a string is valid html in the ruby library?
centrx has quit [Ping timeout: 246 seconds]
lampd1 has joined #ruby
Soda has quit [Remote host closed the connection]
robustus|Off is now known as robustus
tylersmith has quit [Remote host closed the connection]
RaCx has quit [Ping timeout: 250 seconds]
icarus has joined #ruby
RaCx has joined #ruby
zeroNones has quit [Ping timeout: 260 seconds]
troyready has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
zarubin has joined #ruby
BadQuanta has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
phrozen77 has quit [Ping timeout: 260 seconds]
Bira has joined #ruby
elektronaut has quit [Ping timeout: 260 seconds]
alem0lars has joined #ruby
kireevco has quit [Quit: Leaving.]
alem0lars has quit [Max SendQ exceeded]
havenwood has quit [Remote host closed the connection]
rubie has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
<rubie> hi all: anyone know what this error means? EventManager initialized. /Users/balwh/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/csv.rb:1256:in `initialize': No such file or directory @ rb_sysopen - event_attendees.csv (Errno::ENOENT)
elektronaut has joined #ruby
alem0lars has joined #ruby
phrozen77 has joined #ruby
<rubie> that event_attendees.csv file does exist
<rubie> in the lib folder
x77686d has joined #ruby
x77686d has quit [Client Quit]
mpistone has joined #ruby
JaMz has joined #ruby
klmlfl has quit []
failshell has quit []
msmith_ has quit [Remote host closed the connection]
kireevco has joined #ruby
emmesswhy has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
lkba has joined #ruby
<allcentu1> exit
almostworking has joined #ruby
msmith_ has joined #ruby
allcentu1 has quit [Quit: WeeChat 1.0]
hamakn has quit [Remote host closed the connection]
Kricir has joined #ruby
goodenough has joined #ruby
SpaceKookie has joined #ruby
skiabox has joined #ruby
freerobby has joined #ruby
skiabox has quit [Client Quit]
almostworking has left #ruby [#ruby]
Takle has quit [Remote host closed the connection]
centrx has joined #ruby
Ankhers has quit [Remote host closed the connection]
robustus is now known as robustus|Off
noop has quit [Ping timeout: 260 seconds]
cndiv has joined #ruby
neoxquick has joined #ruby
corkfuse has quit []
ghostmoth has joined #ruby
garethrees has joined #ruby
eikood has quit [Quit: Leaving]
ghr has quit [Ping timeout: 272 seconds]
IceDragon has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
IceDragon has joined #ruby
qba73 has quit []
Mohan__ is now known as Mohan
emmesswhy is now known as SomeNick2
Mohan is now known as Guest49201
wolves_cs has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest49201 has quit [Changing host]
Guest49201 has joined #ruby
roolo has quit [Remote host closed the connection]
roolo has joined #ruby
Guest49201 is now known as Mohan
ptrrr has joined #ruby
gregf has joined #ruby
xaxisx has quit [Quit: xaxisx]
roolo has quit [Client Quit]
SomeNick2 is now known as SomeOtherNick
SomeOtherNick is now known as SomeOtherNick2
JBreit has joined #ruby
multi_io_ has joined #ruby
Snowstormer has quit [Ping timeout: 245 seconds]
starkhalo has joined #ruby
multi_io has quit [Ping timeout: 240 seconds]
ptrrr has quit [Quit: ptrrr]
JBreit has quit [Read error: Connection reset by peer]
Snowstormer has joined #ruby
duitz has joined #ruby
t_mmyv has quit [Quit: Textual IRC Client: www.textualapp.com]
benzrf|offline is now known as benzrf
mike32 has quit [Quit: Leaving]
orionstein has quit [Quit: ZNC - http://znc.in]
larissa has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
rbrs has joined #ruby
ptrrr has joined #ruby
orionstein has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
mikecmpbll has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
wm3|away has quit [Ping timeout: 245 seconds]
a_ has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
{xenomorph} has quit [Ping timeout: 260 seconds]
{xenomorph} has joined #ruby
{xenomorph} has quit [Changing host]
{xenomorph} has joined #ruby
joast has joined #ruby
t_mmyv has joined #ruby
lmickh has quit [Remote host closed the connection]
jlast has joined #ruby
Avahey has joined #ruby
mikecmpbll has joined #ruby
Zettam has quit [Read error: Connection reset by peer]
zeroNones has joined #ruby
SouL_ has joined #ruby
hamakn has joined #ruby
Zettam has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SomeOtherNick2 is now known as emmesswhy
havenwood has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
rubie has quit [Ping timeout: 246 seconds]
klmlfl has joined #ruby
bricker`work has joined #ruby
jlast has quit [Ping timeout: 260 seconds]
kenneth has joined #ruby
Darryl has quit [Quit: Connection closed for inactivity]
<bricker`work> So I want something like this (the transaction tracer is from the newrelic client): https://gist.github.com/bricker/d2d8921b3b9e2dc4d2c7 so that every job subclass automatically gets the transaction tracer. The problem is that the method needs to be defined *before* add_transaction_tracer is called. I think I can defined a stub "perform" method on the base class, but is there a better way to accomplish this?
<bricker`work> define*
lolmaus has quit [Remote host closed the connection]
Notte has quit []
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
lolmaus has joined #ruby
rkalfane has joined #ruby
skolman_ has joined #ruby
crunk_bear has joined #ruby
jnylen has joined #ruby
goodenough has quit [Remote host closed the connection]
<Hanmac> bricker`work: look at "self.inherited"
<jnylen> I have a issue with paperclip/delayed_paperclip: sh: 1: file: not found
<jnylen> any ideas?
Darryl has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banister has joined #ruby
Hightower666 has joined #ruby
timonv_ has quit [Ping timeout: 245 seconds]
dangerousdave has joined #ruby
xaxisx has joined #ruby
yetanotherdave has joined #ruby
axilla has quit [Quit: Lost terminal]
rocknrollmarc has quit [Ping timeout: 265 seconds]
Heskie has quit []
robustus|Off is now known as robustus
gccostabr has joined #ruby
terlar has quit [Ping timeout: 260 seconds]
marr has joined #ruby
AlexRussia has quit [Ping timeout: 255 seconds]
crazydiamond has quit [Ping timeout: 246 seconds]
rockdon_ has joined #ruby
matthewhill has joined #ruby
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jimbach has quit [Remote host closed the connection]
max96at is now known as max96at|off
HelloFred has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
emmesswhy has quit [Quit: Leaving]
max96at|off is now known as max96at
AlexRussia has joined #ruby
i_s has joined #ruby
marlonandrade1 has quit [Quit: Leaving.]
marlonandrade has joined #ruby
Lightsword has joined #ruby
rdark has quit [Quit: leaving]
tier has quit [Remote host closed the connection]
sevvie has joined #ruby
j2p2 has quit []
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lw has quit [Quit: s]
icebourg has quit [Read error: Connection reset by peer]
matthewhill has quit [Quit: Be back later ...]
jfran has joined #ruby
icebourg has joined #ruby
stunder has joined #ruby
Deejay_ has joined #ruby
zarubin has quit [Quit: Leaving.]
Deejay_ has quit [Client Quit]
<bricker`work> Hanmac: Oh yeah, good idea
gyre007_ has quit [Remote host closed the connection]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jimbach has joined #ruby
pizzahead has joined #ruby
zeroNones has joined #ruby
zarubin has joined #ruby
jimbach has quit [Remote host closed the connection]
Hightower666 has quit [Ping timeout: 246 seconds]
jimbach has joined #ruby
<pizzahead> so I'm trying to run a bundle update oauth2 and have it set at version 0.9.3 in my Gemfile but I'm seeing this error: https://gist.github.com/anonymous/d1612e50d5cfcdf71753
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
doev has quit [Quit: Verlassend]
dangerousdave has joined #ruby
txdv has joined #ruby
ndrei has quit [Quit: Lost terminal]
zarubin has quit [Client Quit]
ndrei has joined #ruby
HelloFred has joined #ruby
JohnBat26 has joined #ruby
<pizzahead> I'm confused because it looks like it's telling me that oauth2 needs to be at a version that will be fine with the upgrade
<godd2> oauth2 (~> 0.8.0) ruby
<godd2> that means up to 0.8.9 or something like that
<godd2> so 0.9.3 would break the two things that are dependent on oauth2
<pizzahead> ah I see , I was looking at it like > 0.8.0
<pizzahead> ty
<havenwood> yay, lifting up my left shift key and blowing on it fixed it!
<godd2> yea the ~> means anything that doesnt change the first and second part
tylersmith has joined #ruby
zarubin has joined #ruby
tier has joined #ruby
maletor has joined #ruby
parduse is now known as Guest87309
Guest87309 has quit [Killed (sinisalo.freenode.net (Nickname regained by services))]
parduse has joined #ruby
HelloFred has quit [Read error: Connection reset by peer]
regexhelp has joined #ruby
msmith_ has quit [Remote host closed the connection]
<regexhelp> how can I run a regexp scan on " 370 100% Done 0.0 0.0 82.0 371* 22% Stopped" to get the percents i.e. 100 and 22. I am having trouble getting it to work properly
olivier_bK has quit [Ping timeout: 244 seconds]
<pizzahead> godd2: thank you!
<godd2> regexhelp are there always going to be spaces before the number that has the percent?
<apeiros> regexhelp: what have you tried so far?
<regexhelp> godd2: yes white space i don't know if it's a space or tab or what but there will be whitespace
coderdad has quit [Remote host closed the connection]
gagan has joined #ruby
<godd2> string.scan(/\b(\d[^ ])+%/) ?
startupality has joined #ruby
msmith_ has joined #ruby
carraroj has joined #ruby
<regexhelp> i have tried .scan(/\s+(.*?)%/)
<apeiros> godd2: any number of (digit plus non-whitespace) sounds wrong ;-)
<apeiros> requires an even number of digits
lampd1 has quit [Remote host closed the connection]
<godd2> I missed a pipe
<godd2> string.scan(/\b(\d|[^ ])+%/)
<apeiros> godd2: just put all in the char-class
lmickh has joined #ruby
Takle has joined #ruby
<godd2> darn thats wrong too
johnhamelink has quit [Read error: Connection reset by peer]
Klumben has quit [Read error: Connection reset by peer]
<apeiros> tbh, not sure why you have that [^ ] there at all. consumes % too btw.
<klmlfl> so someone asked me what is the fastest way to learn to code and my answer was practice
<apeiros> [\d.]+ IMO
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 260 seconds]
<klmlfl> lots and lots of practice
<klmlfl> their response was how is that the fastest, that seems hard
lolmaus has quit [Quit: Konversation terminated!]
<havenwood> regexhelp: obligatory non-regexp solution:
<havenwood> >> " 370 100% Done 0.0 0.0 82.0 371* 22% Stopped".split.keep_if { |w| w[-1] == '%' }.map(&:to_i)
<eval-in__> havenwood => [100, 22] (https://eval.in/207242)
<godd2> well if he never has floats in the string, can jsut do .scan(/\b(\d+)+%/)
pushpak has joined #ruby
<klmlfl> Whats up with people want to learn code fast & not hard?
<klmlfl> lol
<apeiros> havenwood: whyyyyy?!? :D
<havenwood> apeiros: obligatory!
<klmlfl> here, take this pill with some food
<klmlfl> take a nap
<klmlfl> after 4 hours you'll be able to code
<godd2> havenwood is the obligeur and we are the obligees
<regexhelp> that non regexp worked also it worked with .scan(/\s+(.*?)%/) thanks havenwood and godd2!
kantakt has joined #ruby
<apeiros> godd2: (\d+)+ # <-- not a good idea
Guest45586 has quit [Remote host closed the connection]
<apeiros> drop one of the quantifiers
<apeiros> preferably the one outside the capturing group
<godd2> rule 1 of regex, as long as it works, dont change it
mrsolo has joined #ruby
<regexhelp> hahaha godd2
<godd2> no wait thats rule 2. rule 1 is know your data
<apeiros> I respectfully disagree :-p
<apeiros> well, granted, my top rule is not restricted to regexen: don't cargo cult. understand what you do :-D
lampd1 has joined #ruby
elektronaut has quit [Ping timeout: 260 seconds]
<regexhelp> .scan(/\b(\d+)%/) seems to work is it true i don't need the addtional plus sign after (\d+)+
matchaw_ has quit [Ping timeout: 255 seconds]
Ulrike_Rayne has quit [Ping timeout: 246 seconds]
<godd2> if you take away the group match, youll just get an array of strings
zorak8 has joined #ruby
<gregf_> >>" 370 100% Done 0.0 0.0 82.0 371* 22% Stopped".scan(/(\d+)%/)
<eval-in__> gregf_ => [["100"], ["22"]] (https://eval.in/207244)
matchaw has joined #ruby
<apeiros> and now one which doesn't need flatten…
elektronaut has joined #ruby
<apeiros> >> " 370 100% Done 0.0 0.0 82.0 371* 22% Stopped".scan(/\b\d+(?=%)/)
<eval-in__> apeiros => ["100", "22"] (https://eval.in/207245)
<godd2> >> " 370 100% Done 0.0 0.0 82.0 371* 22% Stopped".scan(/\b\d+(?=%)/).map(&:to_i)
<eval-in__> godd2 => [100, 22] (https://eval.in/207246)
Klumben has joined #ruby
<Hanmac> hm if it can have spaces:
<Hanmac> >> " 370 100 % Done 0.0 0.0 82.0 371* 22 % Stopped".scan(/(?:\d+)\s?(?=%)/).map(&:to_i)
<eval-in__> Hanmac => [100, 22] (https://eval.in/207247)
Ulrike_Rayne has joined #ruby
t_mmyv has quit [Quit: Textual IRC Client: www.textualapp.com]
Rollabunna has joined #ruby
yfeldblum has joined #ruby
<apeiros> >> " 370 100% Done 0.0 0.0 82.0 371* 22.7% Stopped".scan(/\b\d+(?:\.\d+)?(?=%)/) # with proper float support
<eval-in__> apeiros => ["100", "22.7"] (https://eval.in/207248)
cndiv has quit [Ping timeout: 250 seconds]
qmfnp is now known as qmfnlunch
qmfnlunch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac> hm with type convert:
<Hanmac> >> " 370 100% Done 0.0 0.0 82.0 371* 22.7% Stopped".scan(/\b\d+(?:\.\d+)?(?=%)/).map { |s| Integer(s) rescue Float (s) }
<eval-in__> Hanmac => [100, 22.7] (https://eval.in/207249)
startupality has quit [Quit: startupality]
<godd2> is Integer(s) rescue Float(s) a pattern for something?
<godd2> does it yell at you if its not a reasonable number or something?
<apeiros> without rescue:
<apeiros> >> " 370 100% Done 0.0 0.0 82.0 371* 22.7% Stopped".scan(/\b(\d+(\.\d+)?)(?=%)/).map { |a,b| b ? Float(a) : Integer(a) }
<eval-in__> apeiros => [100, 22.7] (https://eval.in/207250)
fabrice31 has joined #ruby
mistermocha has quit [Remote host closed the connection]
garethrees has quit [Ping timeout: 250 seconds]
gsd has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
yetanotherdave has quit [Ping timeout: 245 seconds]
maestrojed has joined #ruby
troyready has quit [Ping timeout: 244 seconds]
elektronaut has quit [Ping timeout: 260 seconds]
coderhs has quit [Read error: Connection reset by peer]
schaerli has joined #ruby
koderok has joined #ruby
troyready has joined #ruby
wallerdev has joined #ruby
elektronaut has joined #ruby
renderful has joined #ruby
hamakn has quit [Remote host closed the connection]
carraroj has quit [Ping timeout: 272 seconds]
jlast has joined #ruby
johnhamelink has joined #ruby
lxsameer has quit [Quit: Leaving]
startupality has joined #ruby
schaerli has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 258 seconds]
pandaant has joined #ruby
gbaway has joined #ruby
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbrs has quit [Remote host closed the connection]
gauke has joined #ruby
coderhs has joined #ruby
renderful has quit [Ping timeout: 244 seconds]
BadQuanta has quit [Ping timeout: 272 seconds]
jlast has quit [Ping timeout: 265 seconds]
jerius has quit []
justin_pdx has joined #ruby
iamjarvo has joined #ruby
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
codezomb has joined #ruby
jottr has quit [Quit: WeeChat 1.0]
kaspergrubbe has quit [Remote host closed the connection]
at3560k has joined #ruby
sevvie has quit [Quit: leaving]
fsapo has joined #ruby
<at3560k> query: Been a python developer for a decade. I'd really like to have an interactive prompt *like* ipython... just for the basic functionality... command history, readline completion, a bit of coloring and pretty print... Is there something I can augment/enhance/replace irb with to do something like that?
<havenwood> at3560k: using Pry instead of irb is a popular choice
yetanotherdave has joined #ruby
<txdv> at3560k: what made you move to ruby?
jfran has quit [Remote host closed the connection]
<havenwood> at3560k: gem install pry pry-doc
twohlix has quit [Ping timeout: 258 seconds]
<at3560k> txdv: wanted to at least learn it when I saw momentum in it, did my first plugin for logstash in ruby... new team I'm on works in it... so.. here I am learning the toolchain.
<at3560k> havenwood: thank you
Azulinho has joined #ruby
<txdv> poor pyton guy, getting gems shoved down his throat
<txdv> :(
andrewlio has joined #ruby
tesaf has joined #ruby
dawkirst has quit [Remote host closed the connection]
<txdv> >> "SHEVY " * 100
<eval-in__> txdv => "SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SHEVY SH ... (https://eval.in/207259)
<havenwood> txdv: gems are good for you. have a gem!
aCicloid is now known as cicloid
robustus is now known as robustus|Off
Scotteh has joined #ruby
<toretore> at3560k: pry is kinda like that
<at3560k> I...miss my virtualenvs, rbenv seems like a good replacement. bundle has been awesome.
bigkevmcd has quit [Quit: Outta here...]
<havenwood> at3560k: chruby
Scotteh_ has quit [Ping timeout: 246 seconds]
<havenwood> at3560k: Bundler has been good to me. I do look forward to its features being merged into RubyGems though. One less tool to worry about!
Kricir has left #ruby [#ruby]
graft has joined #ruby
Aaaal has quit [Quit: Aaaal]
freezey has quit [Remote host closed the connection]
matthewhill has joined #ruby
<at3560k> havenwood, chruby runs local gems per folder, unlike rbenv?
jerius has joined #ruby
<havenwood> at3560k: rbenv creates a bunch of shims that point to your gem executables, hence you have to: rbenv rehash
carraroj has joined #ruby
freezey has joined #ruby
<havenwood> at3560k: chruby properly sets env variables
GPH|work has joined #ruby
<at3560k> Hrm. Any recommendations about my desire to have totally isolated gems per project?
Morkel_ has joined #ruby
<havenwood> at3560k: Use Bundler?
thagomizer has joined #ruby
Morkel has quit [Ping timeout: 260 seconds]
Morkel_ is now known as Morkel
Ankhers has joined #ruby
<havenwood> at3560k: There're tools like gem_home that provide a similar feature to RVM's gemsets, but you can: bundle install --path vendor/bundle
<at3560k> *headscratch* I am using bundle... but the gems go to the ruby that rbenv is using. Like if I have two projects on 1.9.3 I have to run bundle install when I switch between them or...not compatible?
choke has joined #ruby
<havenwood> at3560k: bundle help install
benzrf is now known as benzrf|offline
melik has joined #ruby
benzrf|offline is now known as benzrf
<havenwood> at3560k: TL;DR: --path: Specify a different path than the system default ($BUNDLE_PATH or $GEM_HOME). Bundler will remember this value for future installs on this machine
Tricon has quit [Quit: Lost terminal]
benzrf is now known as benzrf|offline
<at3560k> excellent. Thank you.
shanlar has joined #ruby
ghr has joined #ruby
benzrf|offline is now known as benzrf
jbueza has joined #ruby
matthewhill has quit [Quit: Lingo: www.lingoirc.com]
bal has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
postmodern has joined #ruby
maletor has quit [Quit: Textual IRC Client: www.textualapp.com]
startupality has quit [Quit: startupality]
jespada has joined #ruby
User458764 has quit [Ping timeout: 240 seconds]
sssilver has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
carraroj has quit [Quit: Konversation terminated!]
j2p2 has joined #ruby
graft has quit [Ping timeout: 258 seconds]
banister has joined #ruby
RaCx_ has joined #ruby
RaCx has quit [Ping timeout: 255 seconds]
RaCx_ is now known as RaCx
sinkensabe has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
adac has joined #ruby
<sssilver> Hey guys... I am trying to build a project using compass, and it's failing to build. This is my first exposure to Ruby, so can anyone please help me understand what the issue might be? The output log is here -- https://bpaste.net/show/3098f2988de6
RichardLitt has joined #ruby
sinkensabe has quit [Remote host closed the connection]
iceden has joined #ruby
seanmarcia has quit [Quit: ZNC - http://znc.in]
seanmarcia has joined #ruby
bluehavana has quit [Quit: Connection closed for inactivity]
altamic has joined #ruby
vyorkin has joined #ruby
HelloFred has joined #ruby
Hightower666 has joined #ruby
pushpak has quit [Ping timeout: 265 seconds]
sk87 has joined #ruby
sk87 has quit [Client Quit]
x77686d has joined #ruby
boombadaroomba has joined #ruby
x77686d has quit [Client Quit]
zeroNones has joined #ruby
adac has quit [Ping timeout: 240 seconds]
agrinb has joined #ruby
adac has joined #ruby
kirun has joined #ruby
diegoviola has joined #ruby
cndiv has joined #ruby
kobain has joined #ruby
robustus|Off is now known as robustus
startupality has joined #ruby
boombadaroomba has quit [Ping timeout: 265 seconds]
Hightower666 has quit [Ping timeout: 244 seconds]
davedev2_ has quit []
davedev24_ has joined #ruby
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
rp__ has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
matchaw has quit [Remote host closed the connection]
justin_pdx has joined #ruby
matchaw has joined #ruby
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skolman_ has quit [Remote host closed the connection]
Takle has quit [Ping timeout: 246 seconds]
skolman_ has joined #ruby
startupality has quit [Quit: startupality]
yfeldblum has quit [Ping timeout: 244 seconds]
WormDrink has quit [Ping timeout: 260 seconds]
pushpak has joined #ruby
justin_pdx has quit [Client Quit]
hellangel7 has quit [Remote host closed the connection]
adac has quit [Ping timeout: 272 seconds]
coderdad has joined #ruby
hellangel7 has joined #ruby
skolman_ has quit [Ping timeout: 250 seconds]
jbueza has quit [Read error: Connection reset by peer]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
prasselpikachu has joined #ruby
ptrrr has quit [Quit: ptrrr]
jbueza has joined #ruby
startupality has joined #ruby
RedDwarf has joined #ruby
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
elaptics is now known as elaptics`away
mistermocha has joined #ruby
Zackio has quit [Ping timeout: 265 seconds]
gagan has quit [Ping timeout: 246 seconds]
julieeharshaw has quit [Ping timeout: 260 seconds]
coderdad has quit [Ping timeout: 240 seconds]
<prasselpikachu> hello everyone, a friend of mine is working on win7 with rubyinstaller (ruby 2.1) and devkit. now we have some problems with the tzinfo gem - as to be expected with windows. we already install tzinfo-data, but the same error, TZInfo::DataSourceNotFound still occurs...
startupality has quit [Client Quit]
bMalum has joined #ruby
dte has joined #ruby
rbrs has joined #ruby
dte is now known as mxrguspxrt
freezey has quit [Remote host closed the connection]
mxrguspxrt has quit [Client Quit]
NoNMaDDeN has joined #ruby
mxrguspxrt has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
jlast has joined #ruby
ndrei has joined #ruby
julieeharshaw has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
ringarin has joined #ruby
dangerousdave has joined #ruby
julieeharshaw has quit [Max SendQ exceeded]
rshetty has quit [Remote host closed the connection]
hedin has joined #ruby
rshetty has joined #ruby
moted has joined #ruby
benzrf is now known as benzrf|offline
jlast has quit [Ping timeout: 260 seconds]
julieeharshaw has joined #ruby
<hedin> Hello, I have problems with https://github.com/jjmartres/VIMbix/blob/master/rakefile line 78, when I run rake daemon:start, It returns "starting vimbix" but it doesn't start and I don't know how I can make it return whatever it's doing, so that I can start debugging
julieeharshaw has quit [Max SendQ exceeded]
<hedin> so basicly, how can I run the command on line 78: system("thin -c #{root} -C config/vimbix.yml -R config.ru start") from the cli, in a way so that it tells me what's happening?
SpaceKookie has quit [Quit: ZNC - http://znc.in]
fantazo has quit [Ping timeout: 260 seconds]
rshetty has quit [Ping timeout: 244 seconds]
mleone has joined #ruby
ndrei has quit [Quit: leaving]
eka has joined #ruby
jobewan has quit [Quit: Leaving]
jobewan has joined #ruby
eka has quit [Client Quit]
ndrei has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
mistermocha has joined #ruby
iceden has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
rocknrollmarc has joined #ruby
Photism has joined #ruby
threesixes has joined #ruby
Kricir has joined #ruby
spider-mario has joined #ruby
ramfjord has joined #ruby
julieeharshaw has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
shinobi_one has joined #ruby
spider-mario has quit [Remote host closed the connection]
kies has quit [Ping timeout: 260 seconds]
bayed has quit [Quit: Connection closed for inactivity]
elektronaut has quit [Ping timeout: 260 seconds]
drPoggs has quit [Ping timeout: 260 seconds]
startupality has joined #ruby
pikitg238 has joined #ruby
drPoggs has joined #ruby
gagan has joined #ruby
startupality has quit [Client Quit]
Kricir has quit [Ping timeout: 240 seconds]
spider-mario has joined #ruby
elektronaut has joined #ruby
<shevy> txdv \o/ ... I just woke up ... :(
kaspergrubbe has joined #ruby
mxrguspxrt has joined #ruby
<shevy> wow
<shevy> soon there is php 6
pizzahead has quit [Quit: EPIC5-1.1.6[1693] - amnesiac : A)bort, R)etry, I)gnore, V)alium?]
qmfnp has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
orionstein has quit [Quit: ZNC - http://znc.in]
orionstein has joined #ruby
gagan has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
Eiam has joined #ruby
rossgeesman has quit [Remote host closed the connection]
rossgeesman has joined #ruby
carraroj has joined #ruby
ghr has joined #ruby
HelloFred_ has joined #ruby
jamgood96 has joined #ruby
maletor has joined #ruby
carraroj has quit [Ping timeout: 272 seconds]
<hedin> is this the wrong channel to ask about rake problems?
jfran has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
<wasamasa> I don't think so, it's just that apparently nobody capable of answering your question has read it yet
riles has joined #ruby
tvw has quit []
<riles> Hi! I'm having trouble getting guard to run rspec (#guard channel is quiet). When I save a file, guard observes the change, and the path to the desired spec is being constructed correctly, but the specs aren't actually running. In debug mode, I see "Hook :run_on_changes_begin executed for Guard::RSpec", but the specs aren't actually run
kireevco has quit [Quit: Leaving.]
alvaro_o has joined #ruby
kireevco has joined #ruby
rossgeesman has quit [Remote host closed the connection]
Soda has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hakunin has quit []
taptapdan has quit [Quit: taptapdan]
koderok has quit [Read error: Connection reset by peer]
weemsledeux has joined #ruby
taptapdan has joined #ruby
hellangel7 has quit [Ping timeout: 260 seconds]
tutus has joined #ruby
tutus has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
<hedin> wasamasa: okay, I'l just stick around :)
tutus has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vyorkin has quit [Quit: WeeChat 1.0.1]
koderok has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
siwica has quit [Remote host closed the connection]
fabrice31 has joined #ruby
alem0lars has quit [Ping timeout: 246 seconds]
siwica has joined #ruby
bluenemo has joined #ruby
mpistone has quit []
<shevy> wasamasa I would be capable! but I don't use rake myself so
Eiam has quit [Read error: Connection reset by peer]
Eiam has joined #ruby
claymore has joined #ruby
alem0lars has joined #ruby
awarner_ has joined #ruby
fabrice31 has quit [Ping timeout: 260 seconds]
Bira has quit [Remote host closed the connection]
lampd1 has quit [Read error: Connection reset by peer]
awarner has quit [Ping timeout: 258 seconds]
pu22l3r has joined #ruby
lampd1 has joined #ruby
gbaway has quit [Quit: I screamma, you screamma, we all screamma for ice cream!]
DLSteve has joined #ruby
claw_ has joined #ruby
crazydiamond has joined #ruby
HelloFred_ has quit [Quit: Saliendo]
claw has quit [Ping timeout: 255 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
HelloFred has quit [Remote host closed the connection]
robbyoconnor has quit [Quit: Konversation terminated!]
levisbak_ has joined #ruby
lmickh has quit [Remote host closed the connection]
kireevco has left #ruby [#ruby]
Darryl has quit [Quit: Connection closed for inactivity]
elektronaut has quit [Ping timeout: 260 seconds]
Zettam has quit [Read error: Connection reset by peer]
elektronaut has joined #ruby
bluenemo has quit [Quit: Verlassend]
mistermocha has joined #ruby
Bira has joined #ruby
NullEntity_ has quit [Ping timeout: 265 seconds]
olivier_bK has joined #ruby
ringarin has quit [Ping timeout: 272 seconds]
msmith_ has quit [Read error: Connection reset by peer]
msmith__ has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
Mia has joined #ruby
NullEntity has joined #ruby
drkyro has joined #ruby
koderok has quit [Quit: koderok]
jbueza_ has joined #ruby
jbueza has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
gsd has quit [Quit: Textual IRC Client: www.textualapp.com]
jlast has joined #ruby
lampd1 has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
lampd1 has joined #ruby
mleone has quit [Quit: Textual IRC Client: www.textualapp.com]
mikepack has quit [Remote host closed the connection]
rbrs has quit [Read error: Connection reset by peer]
gtc has quit [Remote host closed the connection]
kamilc__ has quit [Quit: Linkinus - http://linkinus.com]
coderdad has joined #ruby
skolman_ has joined #ruby
jlast has quit [Ping timeout: 260 seconds]
robustus is now known as robustus|Off
wallerdev has quit [Quit: wallerdev]
duitz has quit [Quit: Leaving]
genta has quit [Ping timeout: 260 seconds]
skolman_ has quit [Remote host closed the connection]
nonks has joined #ruby
skolman_ has joined #ruby
t_mmyv has joined #ruby
dawkirst has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
zaid_h has joined #ruby
phrozen77 has quit [Ping timeout: 260 seconds]
Blizzy has joined #ruby
skolman_ has quit [Ping timeout: 250 seconds]
kaspertidemann has joined #ruby
phrozen77 has joined #ruby
bMalum has quit [Quit: bMalum]
rkalfane has joined #ruby
<tzero> does anyone use asset_sync, fog, middleman-sync, or any of that related chain-of-messes?
jimmyhoughjr has joined #ruby
<tzero> I found some issue with deleting existing files, back into an asset_sync method, which looks exactly the same as a fog example, yet doesn't actually work at all
levisbak_ has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
schaerli has joined #ruby
skolman_ has joined #ruby
genta has joined #ruby
siwica1 has joined #ruby
anarang has joined #ruby
bluenemo has joined #ruby
siwica has quit [Ping timeout: 258 seconds]
siwica has joined #ruby
eikood has joined #ruby
pu22l3r_ has joined #ruby
<tzero> specifically, get_remote_files at https://github.com/rumblelabs/asset_sync/blob/master/lib/asset_sync/storage.rb#L98 "matches" https://github.com/fog/fog/blob/master/lib/fog/rackspace/examples/storage/delete_file.rb#L62 , yet some strategic awesome_prints on both 'bucket' and 'bucket.files' show that the fog ::Directory contains files, but #files method doesn't actually work (but only in asset_sync)
rbrs has joined #ruby
bluehavana has joined #ruby
siwica1 has quit [Ping timeout: 240 seconds]
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
itspots has quit [Quit: (null)]
ndrei has quit [Ping timeout: 255 seconds]
pu22l3r has quit [Ping timeout: 260 seconds]
siwica has quit [Ping timeout: 240 seconds]
siwica1 has joined #ruby
eka has joined #ruby
sergio__ has joined #ruby
ptrrr has joined #ruby
ghr has joined #ruby
sergio__ is now known as serargz
drkyro has quit [Quit: Textual IRC Client: www.textualapp.com]
xaxisx has quit [Quit: xaxisx]
WormDrink has joined #ruby
literary has joined #ruby
<havenwood> prasselpikachu: using bundler?
<literary> Does Sass (not SCSS) have some single-line syntax?
<prasselpikachu> yeah
<literary> Then how?
<literary> I want to do "body: color: 3" on one line somehow. Can Sass do this?
<prasselpikachu> oh sorry literary, was answering havenwood XDD
<havenwood> prasselpikachu: tried modifying the Gemfile like so?: gem 'tzinfo-data', platforms: [:x64_mingw, :mingw, :mswin]
serargz is now known as serargz_
<literary> help
<prasselpikachu> havenwood, it's like this right now, bud is using 32bit windows
<prasselpikachu> gem 'tzinfo-data', platforms: [:mingw, :mswin]
ghr has quit [Ping timeout: 258 seconds]
eikood has quit [Quit: Leaving]
<havenwood> hedin: you could modify the gem with a `binding.pry` and take a look what the command returns when run with backticks.
siwica has joined #ruby
<havenwood> hedin: or just try the command yourself
top4o has quit [Quit: ChatZilla 0.9.91 [Firefox 32.0.3/20140923175406]]
eikood has joined #ruby
siwica1 has quit [Ping timeout: 272 seconds]
<havenwood> hedin: alternatively, change `config/vimbix.yml` to not be in daemonized in production mode, just print to stdout/stderr
<hedin> havenwood: I just found out that "thin" was not in path... when I tried to run "~/.gem/ruby/2.0.0/bin/thin -c VIMbix -C config/vimbix.yml -R config.ru start" it worked
<havenwood> hedin: ahh, what are you using to switch Rubies?
<literary> help
Mia has quit [Read error: Connection reset by peer]
eikood has quit [Client Quit]
Mia has joined #ruby
<hedin> havenwood: dunno, i'm a dumb user when it comes to ruby related stuff... I just git cloned https://github.com/jjmartres/VIMbix and folloed the README
<havenwood> literary: Wont you please, please help me. Help me help meeee, eeeee.
Iniesta8 has joined #ruby
Iniesta8 has quit [Max SendQ exceeded]
jbueza_ has quit [Read error: Connection reset by peer]
rossgeesman has joined #ruby
jbueza has joined #ruby
<havenwood> hedin: so it appears the instructions are presuming you're using the rubygems-bundler gem that auto-prefixes `bundle exec` to commands run inside the app root directory.
rossgeesman has quit [Read error: Connection reset by peer]
rossgeesman has joined #ruby
<havenwood> hedin: Try prefixing `bundle exec` yourself, e.g.: bundle exec rake install:initscript
eikood has joined #ruby
magic is now known as pretty
JaMz has quit [Ping timeout: 260 seconds]
<hedin> havenwood: works :D
agjacome has joined #ruby
skolman_ has quit [Remote host closed the connection]
AlexRussia has quit [Remote host closed the connection]
skolman has joined #ruby
skolman has quit [Remote host closed the connection]
justin_pdx has joined #ruby
AlexRussia has joined #ruby
skolman_ has joined #ruby
siwica1 has joined #ruby
JaMz has joined #ruby
<hedin> how come ruby progs want to handle dependencies outside of package managers and seems to explode if some of the dependencies are installed via package management?
siwica has quit [Ping timeout: 265 seconds]
agjacome_ has quit [Ping timeout: 258 seconds]
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
<hedin> Redmine is a good example of this problem... I at least have had quite a few problems upgrading redmine)
literary has quit [Quit: Leaving...]
spicerack has joined #ruby
ringarin has joined #ruby
Morkel_ has joined #ruby
Morkel has quit [Ping timeout: 255 seconds]
Morkel_ is now known as Morkel
lw has joined #ruby
adac has joined #ruby
Tricon has joined #ruby
tylersmi_ has joined #ruby
mistermocha has quit [Remote host closed the connection]
genta has quit [Quit: Quit]
tylersmith has quit [Read error: Connection reset by peer]
Eiam has joined #ruby
papercode has quit [Quit: WeeChat 0.4.3]
Maxdamantus has quit [Ping timeout: 265 seconds]
papercode has joined #ruby
Maxdamantus has joined #ruby
tustex has joined #ruby
eikood has quit [Quit: Leaving]
agjacome_ has joined #ruby
eikood has joined #ruby
agjacome_ has quit [Client Quit]
schaerli has quit [Remote host closed the connection]
ringarin has quit [Ping timeout: 240 seconds]
lampd1 has quit []
awarner has joined #ruby
ringarin has joined #ruby
ptrrr has quit [Quit: ptrrr]
agjacome has quit [Ping timeout: 250 seconds]
rossgeesman has quit [Read error: Connection reset by peer]
martin_work has joined #ruby
serargz_ is now known as serargz
RaCx has quit [Ping timeout: 272 seconds]
rossgeesman has joined #ruby
x77686d has joined #ruby
mistermocha has joined #ruby
x77686d has quit [Client Quit]
RaCx has joined #ruby
awarner_ has quit [Ping timeout: 244 seconds]
kireevco has joined #ruby
awarner has quit [Ping timeout: 255 seconds]
gauke has quit [Quit: gauke]
mistermocha has quit [Remote host closed the connection]
max96at is now known as max96at|off
benzrf|offline is now known as benzrf
ringarin has quit [Quit: Leaving]
mpistone has joined #ruby
genta has joined #ruby
troyready has quit [Remote host closed the connection]
yetanotherdave has quit [Ping timeout: 250 seconds]
fantazo has joined #ruby
nonks has quit [Ping timeout: 255 seconds]
paulfm has joined #ruby
RaCx_ has joined #ruby
klmlfl_ has joined #ruby
Takle has quit [Remote host closed the connection]
RaCx has quit [Ping timeout: 258 seconds]
RaCx_ is now known as RaCx
Takle has joined #ruby
reinaldob has quit []
bal has quit [Remote host closed the connection]
ptrrr has joined #ruby
manzo has joined #ruby
ptrrr has quit [Client Quit]
lw has quit [Quit: s]
klmlfl has quit [Ping timeout: 255 seconds]
mattmcclure has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bluOxigen has quit [Ping timeout: 265 seconds]
lw has joined #ruby
Takle has quit [Ping timeout: 258 seconds]
jlast has joined #ruby
rbrs has quit [Remote host closed the connection]
awarner has joined #ruby
djbkd has joined #ruby
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
mxrguspxrt has quit [Remote host closed the connection]
skolman_ has quit [Remote host closed the connection]
rkalfane has joined #ruby
znst has quit [Ping timeout: 255 seconds]
skolman_ has joined #ruby
eikood has quit [Quit: Leaving]
eikood has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rollabunna has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 260 seconds]
djbkd has quit [Ping timeout: 258 seconds]
Bira has quit []
skolman_ has quit [Ping timeout: 246 seconds]
BadQuanta has joined #ruby
nonks has joined #ruby
geekbri has quit []
elektronaut has quit [Ping timeout: 260 seconds]
codeFiend has quit [Quit: codeFiend]
drPoggs has quit [Ping timeout: 260 seconds]
drPoggs has joined #ruby
bulters has joined #ruby
beef-wellington has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
timonv_ has joined #ruby
elektronaut has joined #ruby
<shevy> anyone has tested
<shevy> if input is an Array, is input[0] or input.first faster?
skolman has joined #ruby
threesixes has quit [Remote host closed the connection]
<yxhuvud> if that is an issue, you have a totally different problem in reality.
<eam> my guess is that #first *should* be faster, but I don't know if it is
weeb1e has joined #ruby
mleone has joined #ruby
mleone has quit [Max SendQ exceeded]
ndrei has joined #ruby
njames has joined #ruby
gsd has joined #ruby
<shevy> yeah I think it should be
<shevy> going to benchmark it
gbchaosmaster has joined #ruby
kaspergrubbe_ has joined #ruby
<eam> talk of optimization makes ruby people uncomfortable
jonathanwallace has quit [Read error: Connection reset by peer]
kaspergrubbe has quit [Read error: Connection reset by peer]
<yxhuvud> eam: not really, but the point is to optimize the relevant thing.
<njames> whois eam
<njames> :-)
<godd2> looking at source, first should be faster. fewer conditionals
<yxhuvud> and if a relevant time is spent doing array lookups, the solution is generally speaking not to make it faster, but to make fewer lookups.
<eam> and no arg on the stack
<eam> yxhuvud: all approaches are valid
Jackneill has quit [Ping timeout: 260 seconds]
jbueza has quit [Read error: Connection reset by peer]
<eam> I suggest the uncomfortableness stems from the environment being so very difficult to optimize in
cicloid is now known as aCicloid
<godd2> oh no wait, looks like #first just runs [](0)
niftylettuce has joined #ruby
jbueza has joined #ruby
<apeiros> the [] syntax has an optimized path for hash and array iirc
wallerdev has joined #ruby
<yxhuvud> eam: sure, but looking at first vs [] seems like the absolute last thing one should do compared to everything else one should look at.
<eam> yxhuvud: it's an interesting question not because a typical ruby programmer should care, but because the implementation itself can optimize things like this and produce significant gains in the aggregate
<apeiros> and iirc the performance difference is measurable. but in most cases completely irrelevant.
Takle has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schaerli has joined #ruby
duncannz has joined #ruby
<eam> that is, it's not useful as an idiom, but it's very useful when we're bringing optimizing ruby itself into the discussion
<apeiros> I remember .first and .at being faster than [] 1.8, but sometime after 1.9, it stopped being true
aCicloid is now known as cicloid
tutus was kicked from #ruby by apeiros [spamming is off limites]
tutus has joined #ruby
tutus was banned on #ruby by apeiros [tutus!*@*]
tutus was banned on #ruby by apeiros [*!*@90.174.3.190]
tutus was kicked from #ruby by apeiros [spamming is off limites]
<apeiros> *limits
<apeiros> brah
<yxhuvud> apeiros: thanks for that ban.
<eam> +1
thsig_ has quit []
<apeiros> yxhuvud: yw, but sadly it's rather useless. thankfully the spambot author is an idiot.
User458764 has joined #ruby
maletor has joined #ruby
<yxhuvud> yes, life on the aggregate is much simpler because most of the evil people are idiots.
<shevy> indeed, [] is faster
St_Marx has joined #ruby
beef-wellington has joined #ruby
<shevy> so I can continue using [] \o/
jonathanwallace has joined #ruby
<shevy> wow
<shevy> tutus -> tustex
x77686d has joined #ruby
bluenemo has quit [Quit: Verlassend]
JBreit has joined #ruby
mdw has joined #ruby
jamgood96 has quit [Read error: Connection reset by peer]
kyb3r_ has joined #ruby
benzrf is now known as benzrf|offline
AlexRussia has quit [Ping timeout: 245 seconds]
jamgood96 has joined #ruby
benzrf|offline is now known as benzrf
xaxisx has joined #ruby
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
ghr has joined #ruby
djbkd has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
RedDwarf is now known as Zackio
banister has joined #ruby
banister has quit [Max SendQ exceeded]
ghr has quit [Read error: Connection reset by peer]
j2p2 has quit [Ping timeout: 272 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
mikepack has joined #ruby
<yxhuvud> shevy: the difference is roughly 200 nanoseconds per use, so if you call #first 50 million times, then you will lost a second, in total. Usually, it is easier to find a lot of places that will gain magnitudes greater gains than that.
decoponio has quit [Quit: Leaving...]
j2p2 has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
RaCx has quit [Quit: Computer has gone to sleep.]
<shevy> right so I should continue using .first for the remainder of my life
<shevy> besides, why would you assume that your second sentence would not apply here either? I can optimize here AND elsewhere.
fabrice31 has joined #ruby
RaCx has joined #ruby
cicloid is now known as aCicloid
AlexRussia has joined #ruby
<shevy> eam is always making fun at how perl is faster than ruby :(
jamgood96 has quit [Quit: Leaving...]
<yxhuvud> you can optimize in both places, but in the end, it is a good idea to start with the parts that yield greater gains and work yourself downward until it is fast enough.
<godd2> what would need to be done to make ruby faster? complete overhaul of the c code?
<shevy> godd2 probably to remove some features
spastorino has joined #ruby
<yxhuvud> the key to prioritizing optimizations is measurements.
<godd2> why not just not use the features?
spider-mario has quit [Remote host closed the connection]
<godd2> or make it to where the rest of ruby is faster unless you use those features or something
<shevy> godd2 well different people use different features
djbkd has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<godd2> that's true, but ruby's flak for being slow is from benchmark tests no?
<shevy> and then you have this "we must retain backwards compatibility" problem
<shevy> ruby can be quite slow or sluggish
<shevy> at work in February 2014, the team was a perl team... they had a debian workstation on their cluster... you could somehow enable ruby 1.9.x "module load ruby"
Asher has quit [Quit: Leaving.]
<shevy> but there was some kind of weird delay when I invoked a simple .rb script compared to a simple .pl script
lw has quit [Quit: b]
kireevco has quit [Quit: Leaving.]
fabrice31 has quit [Ping timeout: 272 seconds]
<shevy> ruby felt much slower there :\
<shevy> and there are guys in the basement IT dungeon that won't upgrade for years
<apeiros> tustex is the spammer now?
Azulinho has quit [Quit: Leaving]
<shevy> yeah
<shevy> after you banned that other bot, and I wrote something tustex instantly privmsg popped up
<godd2> shevy seems like if there are a bunch of non-upgraders then backwards compatibility isn't as big of an issue
djbkd has joined #ruby
almostworking has joined #ruby
tustex was banned on #ruby by apeiros [*!*@80.30.150.62]
tustex was banned on #ruby by apeiros [tustex!*@*]
djbkd has quit [Remote host closed the connection]
tustex was kicked from #ruby by apeiros [spamming is off limits]
<shevy> godd2 right because they did not adopt ruby in the first place, perl still fills that niche :) they were about +10 years older than I was on average though so it is kinda a generation problem mostly
yetanotherdave has joined #ruby
djbkd has joined #ruby
almostworking has left #ruby [#ruby]
<shevy> they were math-heavy guys actually, bioinformatics and computationyl biology (and service facility for the other in-house/campus labs)
<shevy> *computational
<eam> the upgrade problem relates to overall software lifecycle for large codebases
<eam> the more code you have, the longer it takes to migrate to new implementations
<shevy> they did not even use perl .cgi so they were like from the 1995 era
<godd2> well if anything, DHH has set most the ruby community to be ready for change
phutchins has quit [Ping timeout: 240 seconds]
fantazo has quit [Ping timeout: 240 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<godd2> (disclaimer: when I say "ruby community" I'm including Rails ppl)
<eam> godd2: much of the problem is in boundaries with other non-ruby software. eg, distro packaged ruby
coderdad has quit [Remote host closed the connection]
king313 has quit [Ping timeout: 250 seconds]
banister has joined #ruby
banister has quit [Client Quit]
xaxisx has quit [Quit: xaxisx]
zorak8 has quit [Ping timeout: 245 seconds]
<shevy> well
<shevy> the newer language needs to be significantly better than the older language
<shevy> to warrant change
Eiam has joined #ruby
<godd2> Im not sure about that shevy. plenty of people grab the newest version of whatever without even considering the consequences
<godd2> unless you're talking about a significant departure from whatever ruby currently is
<shevy> I mean for like that team to move away from perl to ruby
<eam> the newer language needs to be significantly *fashionable*
_lexjm has joined #ruby
<godd2> oh I see
<shevy> imagine if you worked for 15 years and hacked perl code every day at work
<eam> fashion is sometimes driven by utility, but just as often not
<shevy> they actually were really good at what they did too, so I would not only have to compete in perl vs. ruby but also against the knowledge stored in their brains, which easily outperforms my brain
<shevy> except for cgi/CSS/HTML/javascript, that was entirely unknown to them ;)
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
anarang has quit [Quit: Leaving]
<godd2> Ill cut em slack on CSS
<shevy> from those four listed there, I like CSS the most
fsapo has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
mistermocha has quit [Remote host closed the connection]
<godd2> It's the most different from the others.
aclearman037 has quit []
klmlfl_ has quit [Remote host closed the connection]
paulfm has quit []
klmlfl has joined #ruby
tesaf has quit [Quit: Lost terminal]
SilkFox has joined #ruby
mxrguspxrt has joined #ruby
orionstein has quit [Quit: ZNC - http://znc.in]
beef-wellington has quit [Ping timeout: 244 seconds]
ringarin has joined #ruby
orionstein has joined #ruby
spyderma_ has quit [Remote host closed the connection]
livingstn has quit []
yfeldblum has quit [Ping timeout: 272 seconds]
spyderman4g63 has joined #ruby
<_lexjm> has anyone run the thoughtbot laptop script on their machine?
levisbak_ has joined #ruby
<apeiros> _lexjm: noone ever has
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
paulfm has joined #ruby
rossgeesman has quit [Remote host closed the connection]
jbueza_ has joined #ruby
sailias has quit [Quit: Leaving.]
RaCx has quit [Quit: Computer has gone to sleep.]
paulfm has quit [Client Quit]
Stalkr_ has joined #ruby
Stalkr_ has joined #ruby
Stalkr_ has quit [Remote host closed the connection]
<shevy> apeiros hehehehe
<shevy> apeiros is in a funny mood again
<shevy> _lexjm is that a ruby script?
recurrence has joined #ruby
jbueza has quit [Ping timeout: 258 seconds]
rossgeesman has joined #ruby
wald0 has quit [Quit: Lost terminal]
<_lexjm> that's helpful :P I'm trying to understand how to get it to run my caskfile while it sets up ruby and other dependencies
{xenomorph} has quit [Ping timeout: 260 seconds]
<shevy> huh
<shevy> caskfile
<shevy> what a weird name
spyderman4g63 has quit [Ping timeout: 272 seconds]
endash has quit [Quit: endash]
endash has joined #ruby
RaCx has joined #ruby
{xenomorph} has joined #ruby
SilkFox has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
elektronaut has quit [Ping timeout: 260 seconds]
tonybird has quit [Quit: Textual IRC Client: www.textualapp.com]
hamakn has joined #ruby
RaCx has quit [Client Quit]
skolman has quit [Remote host closed the connection]
<sterns> redis labs limits one to 10 connections on their free plan. Does Redis To Go have a similar limit? Or, can anyone recommend another free redis provider that has a significantly greater connection limit>
weeb1e has joined #ruby
RaCx has joined #ruby
codeFiend has joined #ruby
elektronaut has joined #ruby
skolman has joined #ruby
renderful has joined #ruby
pikitg238 has quit [Ping timeout: 260 seconds]
shosti has joined #ruby
Lightsword has quit [Quit: Lightsword]
shosti has quit [Remote host closed the connection]
<postmodern> what type does RSTRING_LEN return?
doodlehaus has quit [Remote host closed the connection]
jlast has joined #ruby
Ankhers has quit [Ping timeout: 264 seconds]
alem0lars has quit [Quit: Quit!]
yfeldblum has joined #ruby
hamakn has quit [Ping timeout: 244 seconds]
lolmaus has joined #ruby
shinobi_one has quit [Quit: Leaving...]
serargz has quit [Ping timeout: 244 seconds]
iamjarvo has joined #ruby
skolman has quit [Ping timeout: 272 seconds]
kirun has quit [Quit: Client exiting]
mxrguspxrt has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 265 seconds]
ldnunes has quit [Quit: Leaving]
skolman_ has joined #ruby
jlast has quit [Ping timeout: 260 seconds]
AlexRussia has quit [Remote host closed the connection]
chrishough has joined #ruby
ferr_ has quit [Quit: leaving]
AlexRussia has joined #ruby
ferr_ has joined #ruby
maletor has quit [Read error: Connection reset by peer]
{xenomorph} has quit [Ping timeout: 260 seconds]
rossgeesman has quit [Remote host closed the connection]
{xenomorph} has joined #ruby
jespada has quit [Quit: Leaving]
drPoggs has quit [Ping timeout: 260 seconds]
drPoggs has joined #ruby
phrozen77 has quit [Ping timeout: 260 seconds]
ferr_ is now known as ferr
serargz has joined #ruby
hackeron has quit [Ping timeout: 272 seconds]
hackeron has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
kevind has joined #ruby
eka has quit [Ping timeout: 260 seconds]
phrozen77 has joined #ruby
RaCx has joined #ruby
carraroj has joined #ruby
adac has quit [Ping timeout: 260 seconds]
eka has joined #ruby
levisbak_ has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
treehug88 has quit []
RaCx has quit [Client Quit]
bulters has quit [Ping timeout: 272 seconds]
netmask has quit [Remote host closed the connection]
altamic has quit [Quit: altamic]
netmask has joined #ruby
RaCx has joined #ruby
RaCx has quit [Client Quit]
levisbak_ has joined #ruby
ringarin has quit [Ping timeout: 272 seconds]
carraroj has quit [Remote host closed the connection]
<apeiros> interesting how seemingly simple problems become hard
carraroj has joined #ruby
* apeiros tries to maneuver ships on interception courses :)
tier has quit [Remote host closed the connection]
<yxhuvud> apeiros: I learnt that lesson playing frontier loads of years ago!
<apeiros> :)
* apeiros works a bit on a game
carraroj has quit [Client Quit]
<bricker`work> postmodern: long
<apeiros> I'm currently wondering whether I want to try to come up with the algorithms for acceleration and course correction myself or google around
mleone has joined #ruby
mary5030 has quit [Remote host closed the connection]
levisbak_ has quit [Read error: Connection reset by peer]
zeroNones has joined #ruby
netmask has quit [Ping timeout: 260 seconds]
ringarin has joined #ruby
claymore has quit [Quit: Leaving]
ylluminarious has quit [Quit: Leaving...]
edwardloveall has quit [Quit: Leaving.]
levisba__ has joined #ruby
levisba__ has quit [Read error: Connection reset by peer]
recurrence has quit [Quit: Textual IRC Client: www.textualapp.com]
zaid_h has quit [Quit: ZZZzzz…]
vyorkin has joined #ruby
jimbach_ has joined #ruby
SilkFox has joined #ruby
RichardLitt has quit [Quit: RichardLitt]
j2p2 has quit [Ping timeout: 250 seconds]
mdw has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> apeiros: I've written that code!
<zenspider> there's a really good mathematica demo of it too
mistermocha has joined #ruby
<apeiros> zenspider: in ruby? would love to see that :)
graft has quit [Ping timeout: 244 seconds]
jimbach has quit [Ping timeout: 244 seconds]
<apeiros> my basic problem is: I have a heading and speed (which are not necessarily towards the target). I can change acceleration and turn. so I have to compensate the speed and direction I already have. I think the result is some kind of arc function
<apeiros> I think bezier curves work somewhat like that
vyorkin has quit [Quit: WeeChat 1.0.1]
ghostmoth has quit [Quit: ghostmoth]
<zenspider> apeiros: static triangle calculations each cycle. If you happen to be pointed the direction the enemy will be in at the right time, fire.
<zenspider> it'll look like an arc over time, but each calculation is just plain triangles
mistermocha has quit [Remote host closed the connection]
<apeiros> ah, firing is easy. weapons are assumed to be turreted and will always fire in the right direction :D
jerius has quit []
devdazed has quit [Quit: Computer has gone to sleep.]
threesixes has joined #ruby
<apeiros> (luckily, I make the rules of the combat arena)
havenwood has quit [Remote host closed the connection]
mistermocha has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
<zenspider> apeiros: what type of game are you working on/with?
<apeiros> cloning starbase orion. which in turn is a clone of master of orion II
netmask has joined #ruby
<yxhuvud> do you have a limited amount of fuel as well?
{xenomorph} has quit [Ping timeout: 260 seconds]
<apeiros> during battle? no
<apeiros> starbase orion's battle works quite differently from master of orion
havenwood has joined #ruby
phrozen77 has quit [Ping timeout: 260 seconds]
<apeiros> the fight is entirely automated
{xenomorph} has joined #ruby
<apeiros> weapons have different strength depending on distance. so lots is maneuvering, keeping the right distance.
<shevy> defend the starbase onion!
<apeiros> heh
boombadaroomba has joined #ruby
codeFiend has quit [Quit: codeFiend]
rossgeesman has joined #ruby
devdazed has joined #ruby
devdazed has quit [Client Quit]
<apeiros> watching tv while coding == huge efficiency loss :D
ta has quit [Ping timeout: 240 seconds]
SilkFox has quit [Ping timeout: 260 seconds]
<yxhuvud> well, that holds for drinking beer while coding as well
phrozen77 has joined #ruby
<yxhuvud> (except that it breaks that damned analysis paralysis)
<apeiros> ^^
Morkel has quit [Quit: Morkel]
rpag has quit [Ping timeout: 240 seconds]
boombadaroomba has quit [Ping timeout: 260 seconds]
rossgeesman has quit [Ping timeout: 246 seconds]
<shevy> minus the occasional toilet run
kevind has quit [Quit: kevind]
msmith__ has quit [Remote host closed the connection]
pretty is now known as magic
Akuma has quit [Quit: So long sukkas!]
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coderdad has joined #ruby
linagee has joined #ruby
jimbach_ has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
chinaski has joined #ruby
roolo has joined #ruby
pu22l3r has joined #ruby
pork_clips has joined #ruby
roolo has quit [Client Quit]
otakbeku has quit [Ping timeout: 260 seconds]
mikepack has quit [Remote host closed the connection]
crunk_bear has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pu22l3r_ has quit [Ping timeout: 260 seconds]
t_mmyv has quit [Quit: Textual IRC Client: www.textualapp.com]
wldcordeiro has quit [Quit: Leaving]
pork_clips has quit [Ping timeout: 240 seconds]
at3560k has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 260 seconds]
havenwood has quit [Remote host closed the connection]
VTLob has quit [Quit: VTLob]
kaspertidemann has quit []
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
codeFiend has joined #ruby
Akuma has joined #ruby
icarus has quit [Quit: Lost terminal]
jlast has joined #ruby
User458764 has quit [Ping timeout: 260 seconds]
iamjarvo has quit [Read error: Connection reset by peer]
leizzer has quit [Quit: WeeChat 0.4.2]
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
Rollabunna has joined #ruby
thagomizer has quit [Quit: Leaving.]
thagomizer has joined #ruby
rpag has joined #ruby
OffTheRails has joined #ruby
emmesswhy has joined #ruby
jlast has quit [Ping timeout: 260 seconds]
micahhhhhh has joined #ruby
<micahhhhhh> hi mattheewwww
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
robbyoconnor has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
micahhhhhh has left #ruby [#ruby]
elektronaut has quit [Ping timeout: 260 seconds]
elektronaut has joined #ruby
jottr has joined #ruby
Rollabunna has quit [Ping timeout: 245 seconds]
TeresaP has joined #ruby
emmesswhy has quit [Remote host closed the connection]
tttttttttttttttt has joined #ruby
<TeresaP> Anyone know who system commands are executed as?
OffTheRails has quit [Ping timeout: 258 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
tttttttttttttttt has quit [Client Quit]
weaksauce has joined #ruby
otakbeku has joined #ruby
weaksauce has quit [Client Quit]
weaksauce has joined #ruby
crdpink2 has quit [Quit: q term]
boaaa has joined #ruby
Lightsword has joined #ruby
ringaring has joined #ruby
hackeron has quit [Ping timeout: 265 seconds]
hackeron has joined #ruby
x45t has quit [Read error: Connection reset by peer]
x45t has joined #ruby
graft has joined #ruby
graft has joined #ruby
<bricker`work> TeresaP: the user that is running the program
fabrice31 has joined #ruby
<bricker`work> TeresaP: you can type `whoami` to check
riles has quit [Quit: Page closed]
eikood has quit [Quit: Leaving]
ringarin has quit [Ping timeout: 260 seconds]
it0a has quit [Ping timeout: 265 seconds]
<TeresaP> Hmm, ok. I am having issues with 'ifuse' mounting my ipad, transfer the file with FileUtils.cp, and then later when I do a Dir.glob for the file it sometimes doesn't show the file even though it exists
<TeresaP> I thought maybe it was a permissions issue
freerobby has joined #ruby
c107 has joined #ruby
endash has quit [Ping timeout: 260 seconds]
<bricker`work> TeresaP: unix doesn't hide files that you don't have permission to view - it will very clearly and loudly tell you when you aren't allowed to see something
RaCx has joined #ruby
andrewlio has quit [Quit: Leaving.]
mary5030 has joined #ruby
ghostmoth has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
t_mmyv has joined #ruby
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
banister has joined #ruby
siwica1 has quit [Ping timeout: 260 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GPH|work has quit [Ping timeout: 272 seconds]
banister has quit [Client Quit]
weaksauce has joined #ruby
siwica has joined #ruby
nobitanobi has joined #ruby
rbrs has joined #ruby
iamjarvo has joined #ruby
<cajone> anyone had any experience of centos, where reading via readlines a txt file chomping the input and loading into an array cause all the readlines to be concat'ed into a single string in the array, I olny mentioned centos as this is the target machine I'm trying to get the script to run on, the script works fine on another linux distro
endash has joined #ruby
<nobitanobi> How do people comment on Github with several lines?
weaksauce has quit [Client Quit]
icebourg has quit []
qmfnp has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
weaksauce has joined #ruby
iamjarvo has joined #ruby
coderdad has quit [Remote host closed the connection]
<regexhelp> don't think it'd be distro specific
coderdad has joined #ruby
OffTheRails has joined #ruby
klmlfl has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
weemsledeux has joined #ruby
jobewan has quit [Quit: Leaving]
coderdad has quit [Ping timeout: 244 seconds]
voodoofish430 has left #ruby [#ruby]
<bricker`work> nobitanobi: huh?
_whitelogger has joined #ruby
_whitelogger_ has joined #ruby
_whitelogger has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
cfillion has left #ruby ["WeeChat 1.0.1"]
Ankhers has joined #ruby
ylluminarious has joined #ruby
siwica has quit [Remote host closed the connection]
timonv_ has quit [Ping timeout: 260 seconds]
siwica has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
kireevco has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
kireevco has quit [Max SendQ exceeded]
rbrs has quit [Remote host closed the connection]
kireevco has joined #ruby
spyderman4g63 has joined #ruby
Snowstormer has quit [Ping timeout: 272 seconds]
levisbak_ has joined #ruby
prasselpikachu has quit [Ping timeout: 255 seconds]
Kilo`byte has quit [Ping timeout: 272 seconds]
snath has quit [Ping timeout: 255 seconds]
spyderman4g63 has quit [Ping timeout: 255 seconds]
weemsledeux has joined #ruby
weemsledeux has quit [Changing host]
weemsledeux has joined #ruby
mistermocha has quit [Remote host closed the connection]
BadQuanta has quit [Ping timeout: 260 seconds]
thsig has joined #ruby
tokik has joined #ruby
ephemerian has quit [Read error: Connection reset by peer]
jamgood96 has joined #ruby
hellangel7 has joined #ruby
siwica has quit [Ping timeout: 260 seconds]
jbueza_ has quit [Quit: Textual IRC Client: www.textualapp.com]
siwica has joined #ruby
<havenwood> sudo ruby -run -ehttpd .
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamgood96 has quit [Client Quit]
niftylettuce has quit [Quit: Connection closed for inactivity]
jlast has joined #ruby
<bricker`work> useful for local "cdn"
siwica has quit [Ping timeout: 265 seconds]
JaMz has quit []
ringaroses2 has joined #ruby
<shevy> cajone I don't think this can be the issue with centos - perhaps the ruby version you have is messed up. what is the ruby version anyway? and what is the exact ruby code you use?
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
AlSquire has quit [Quit: Quitte]
snath has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
ptrrr has joined #ruby
ringaring has quit [Ping timeout: 255 seconds]
kireevco has quit [Quit: Leaving.]
ptrrr has quit [Client Quit]
<cajone> shevy: yeah I agree I carved out the failing 5 lines and put them in a separate file and all works fine with a small test sample on the centos server, the problem lies else where, thanks for the input
siwica has joined #ruby
boaaa has quit [Ping timeout: 246 seconds]
<shevy> \o/
mistermocha has quit [Remote host closed the connection]
<shevy> one problem squished
<shevy> thousands more to come!
kantakt has quit []
OffTheRails has joined #ruby
marr has quit [Ping timeout: 260 seconds]
<cajone> shevy: challenges and opportunities shevy, not problems ;)
<eam> cajone: what are the line separator characters?
zorak8 has joined #ruby
<cajone> earn \n
zeroNones has quit [Quit: Textual IRC Client: www.textualapp.com]
<eam> like, did you double check?
netmask has quit [Remote host closed the connection]
<csmrfx> eam did you already fork?
<eam> xxd the file?
<eam> csmrfx: fork what?
<csmrfx> ruby
<eam> oh why would I do that
netmask has joined #ruby
<csmrfx> lol that was yesterday
<eam> ruby already has all these wonderful features
<csmrfx> lol like dynamic and vague method naems
<eam> it's almost as good as perl and that's high praise
<csmrfx> what
<csmrfx> sacriledhge
Ankhers has quit [Ping timeout: 264 seconds]
larissa has quit [Quit: Leaving]
<shevy> he wrote a lot of perl code
<shevy> he has hundred different and actively maintained perl projects
<eam> shevy: I have more ruby than perl
IcyDragon has joined #ruby
<csmrfx> I'll touch that heap of crap only if you pay me more than 50 euros/h
kaspergrubbe_ has quit [Ping timeout: 245 seconds]
zaid_h has joined #ruby
<eam> what is that in freedom dollars
<eam> $63/hr? that's kinda cheap
<eam> is that really the going rate over there?
IceDragon has quit [Ping timeout: 245 seconds]
<shevy> that's a lot of money eam
<csmrfx> hm, thats kinda the avg for project work
<csmrfx> maybe even local upper tier
<eam> I wouldn't eat donuts for that
levisbak_ has quit [Read error: Connection reset by peer]
<shevy> a regular guy working at a mall gets about 9 euro or so
<csmrfx> yeah, absurd
<eam> yeah
<eam> minimum wage in CA is around $9 too
zeroNones has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
<csmrfx> afaik local monthly avg for skilled dev is little under 5k/30d
<csmrfx> then again
netmask has quit [Ping timeout: 240 seconds]
<csmrfx> I see north american devs pulling 100k or 200k a year
<eam> 50 euro is around $150k/yr salary which is like, median
iamjarvo has joined #ruby
* apeiros thinks those minimum wages are ridiculously low
<eam> (and not counting equity)
<shevy> germany only recently declared that the minimum wage after 2015 will be 8.50 Euro / hour
<eam> csmrfx: anyone good is pulling 200k+ plus another 100-400k equity/year
<shevy> apeiros yeah not everyone can get paid as much as in switzerland!
<eam> (good, or doing something sucky)
<csmrfx> I'm hardly making my monthly rent
<apeiros> shevy: sadly they're not much higher here
<apeiros> which I find disgraceful
<eam> apeiros: you're swiss? Why have you not passed basic income yet
kireevco has joined #ruby
<apeiros> eam: wouldn't work as an island (in the metaphoric sense)
mrsolo has quit [Quit: Leaving]
<shevy> eam the swiss have built up mountains all around themselves for protection :)
<csmrfx> I bet the guys who pull 200k a year work 10 hour days
<csmrfx> even longer
<apeiros> csmrfx: that'd be a stupid thing to do, though.
<csmrfx> well
<csmrfx> thats NA work culture for you
<csmrfx> 21 days hollies per year
hackeron has quit [Ping timeout: 260 seconds]
<eam> csmrfx: 200k total or base?
<csmrfx> long days
<shevy> 21 days only
<eam> the thing about tech salaries is the base is often less than the equity
<shevy> that stinks
phrozen77 has quit [Ping timeout: 260 seconds]
<eam> you have some folks making 150k and some making 500k for the same job
hackeron has joined #ruby
hackeron has joined #ruby
hackeron has quit [Changing host]
timonv_ has joined #ruby
phrozen77 has joined #ruby
<eam> and of course the equity is long term cap gains, so a third lower taxes
j_mcnally has joined #ruby
<csmrfx> or, zilch
<eam> rarely zilch
<eam> 400k+ you're going to pay 20% federal plus 10% CA state
<csmrfx> I make avg of around 27k
agrinb has quit [Remote host closed the connection]
<csmrfx> hence, I'm going bankrupt in Jan
<shevy> don't be so pessimistic
<eam> but a person making salary will be paying 40% effective (46% marginal)
<csmrfx> January is a shitty month to be homeless
<shevy> start earlier!
<csmrfx> mehhhh
<eam> I was told it's impossible to be homeless in socialist europe
<csmrfx> well in theory i can get security
<csmrfx> but in practice it is a game of scrabble
<csmrfx> heh
<csmrfx> I'll probably get some proper gig tho
TeresaP has quit [Ping timeout: 246 seconds]
t_mmyv has joined #ruby
<shevy> eam nah
<shevy> eam usually even in austria, you only get security (AFTER you had a job for a while), for a limited amount of time
<shevy> the only thing you'll still have is the base medical services for free
<eam> lame
<shevy> even if you went bankrupt
<eam> in the USA even if you earn a quarter mil a year medical can bankrupt you
kireevco has quit [Quit: Leaving.]
<shevy> that's why you need to include ideas from Canada!
<shevy> well, the medical treatment is mostly just for the cheapest variant possible to treat a given illness
<eam> same here though
stunder has quit [Quit: Screw you guys I'm going home]
levisbak_ has joined #ruby
Mirubiri has joined #ruby
prasselpikachu has joined #ruby
zeroNones has quit [Quit: Textual IRC Client: www.textualapp.com]
serargz has quit [Quit: leaving]
Snowstormer has joined #ruby
j_mcnally has quit [Ping timeout: 258 seconds]
levisbak_ has quit [Read error: Connection reset by peer]
Mirubiri has quit [Client Quit]
t_mmyv has quit [Quit: Textual IRC Client: www.textualapp.com]
sterns has quit [Remote host closed the connection]
Lightsword has quit [Ping timeout: 265 seconds]
Lightsword has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
coderdad has joined #ruby
tylersmi_ is now known as tylersmith
Takle has quit [Remote host closed the connection]
Kilo`byte has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lightsword has quit [Client Quit]
gauke has joined #ruby
njames has quit [Remote host closed the connection]
njames has joined #ruby
kireevco has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> is it a good idea to do this:
<shevy> module Foo; class Foo
kireevco has quit [Client Quit]
<shevy> and inside class Foo, to prefix via :: to invoke class methods on the main module Foo namespace?
coderdad has quit [Ping timeout: 244 seconds]
Snowstormer has quit [Ping timeout: 250 seconds]
justin_pdx has quit [Quit: justin_pdx]
Kilo`byte has quit [Ping timeout: 244 seconds]
Takle has joined #ruby
prasselpikachu has quit [Ping timeout: 258 seconds]
njames has quit [Ping timeout: 258 seconds]
zaid_h has quit [Quit: ZZZzzz…]
rkjaer has quit [Read error: Connection reset by peer]
<apeiros> shevy: I find it smells a bit. but there's nothing inherently wrong with it.
rkjaer_ has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has joined #ruby
<shevy> yeah well I am not quite sure if it smells or not but those :: trip me up
<shevy> I really don't like to use them :\
levisbak_ has joined #ruby
jnollett_ has quit [Quit: Leaving...]
rockdon_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
levisbak_ has quit [Remote host closed the connection]